1/* config.h.  Generated from config.h.in by configure.  */
2/* config.h.in.  Generated from configure.in by autoheader.  */
3
4
5/* acconfig.h - autoheader configuration input */
6/*
7 * Copyright (c) 1998-2003 Carnegie Mellon University.  All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 *
13 * 1. Redistributions of source code must retain the above copyright
14 *    notice, this list of conditions and the following disclaimer.
15 *
16 * 2. Redistributions in binary form must reproduce the above copyright
17 *    notice, this list of conditions and the following disclaimer in
18 *    the documentation and/or other materials provided with the
19 *    distribution.
20 *
21 * 3. The name "Carnegie Mellon University" must not be used to
22 *    endorse or promote products derived from this software without
23 *    prior written permission. For permission or any other legal
24 *    details, please contact
25 *      Office of Technology Transfer
26 *      Carnegie Mellon University
27 *      5000 Forbes Avenue
28 *      Pittsburgh, PA  15213-3890
29 *      (412) 268-4387, fax: (412) 268-7395
30 *      tech-transfer@andrew.cmu.edu
31 *
32 * 4. Redistributions of any form whatsoever must retain the following
33 *    acknowledgment:
34 *    "This product includes software developed by Computing Services
35 *     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
36 *
37 * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
38 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39 * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
40 * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
41 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
42 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
43 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
44 */
45
46#ifndef CONFIG_H
47#define CONFIG_H
48
49
50/* Runtime config file location */
51#define CONFIGDIR "/usr/lib/sasl2:/etc/sasl2"
52
53/* Do we need a leading _ for dlsym? */
54/* #undef DLSYM_NEEDS_UNDERSCORE */
55
56/* Should we build a shared plugin (via dlopen) library? */
57#define DO_DLOPEN /**/
58
59/* should we support sasl_checkapop? */
60#define DO_SASL_CHECKAPOP /**/
61
62/* should we support setpass() for SRP? */
63/* #undef DO_SRP_SETPASS */
64
65/* should we mutex-wrap calls into the GSS library? */
66#define GSS_USE_MUTEXES /**/
67
68/* Enable 'alwaystrue' password verifier? */
69/* #undef HAVE_ALWAYSTRUE */
70
71/* Include support for Courier's authdaemond? */
72#define HAVE_AUTHDAEMON /**/
73
74/* Define to 1 if you have the <des.h> header file. */
75/* #undef HAVE_DES_H */
76
77/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
78   */
79#define HAVE_DIRENT_H 1
80
81/* Define to 1 if you have the <dlfcn.h> header file. */
82#define HAVE_DLFCN_H 1
83
84/* Define to 1 if you have the `dns_lookup' function. */
85/* #undef HAVE_DNS_LOOKUP */
86
87/* Define to 1 if you have the `dn_expand' function. */
88#define HAVE_DN_EXPAND 1
89
90/* Define to 1 if you have the <fcntl.h> header file. */
91#define HAVE_FCNTL_H 1
92
93/* Do we have a getaddrinfo? */
94#define HAVE_GETADDRINFO /**/
95
96/* Define to 1 if you have the `getdomainname' function. */
97#define HAVE_GETDOMAINNAME 1
98
99/* Define to 1 if you have the `gethostname' function. */
100#define HAVE_GETHOSTNAME 1
101
102/* Do we have a getnameinfo() function? */
103#define HAVE_GETNAMEINFO /**/
104
105/* Define to 1 if you have the `getpassphrase' function. */
106/* #undef HAVE_GETPASSPHRASE */
107
108/* Define to 1 if you have the `getpwnam' function. */
109#define HAVE_GETPWNAM 1
110
111/* Define to 1 if you have the `getspnam' function. */
112/* #undef HAVE_GETSPNAM */
113
114/* do we have getsubopt()? */
115#define HAVE_GETSUBOPT /**/
116
117/* Define to 1 if you have the `gettimeofday' function. */
118#define HAVE_GETTIMEOFDAY 1
119
120/* Define to 1 if you have the <gssapi/gssapi_ext.h> header file. */
121/* #undef HAVE_GSSAPI_GSSAPI_EXT_H */
122
123/* Define if you have the gssapi.h header file */
124/* #undef HAVE_GSSAPI_H */
125
126/* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function.
127   */
128/* #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY */
129
130/* Define if your GSSAPI implementation defines GSS_C_NT_HOSTBASED_SERVICE */
131#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/
132
133/* Define if your GSSAPI implementation defines GSS_C_NT_USER_NAME */
134#define HAVE_GSS_C_NT_USER_NAME /**/
135
136/* Define to 1 if you have the `gss_decapsulate_token' function. */
137/* #undef HAVE_GSS_DECAPSULATE_TOKEN */
138
139/* Define to 1 if you have the `gss_encapsulate_token' function. */
140/* #undef HAVE_GSS_ENCAPSULATE_TOKEN */
141
142/* Define to 1 if you have the `gss_get_name_attribute' function. */
143/* #undef HAVE_GSS_GET_NAME_ATTRIBUTE */
144
145/* Define to 1 if you have the `gss_oid_equal' function. */
146/* #undef HAVE_GSS_OID_EQUAL */
147
148/* Define if your GSSAPI implementation supports SPNEGO */
149/* #undef HAVE_GSS_SPNEGO */
150
151/* Define to 1 if you have the `inet_aton' function. */
152#define HAVE_INET_ATON 1
153
154/* Define to 1 if you have the <inttypes.h> header file. */
155#define HAVE_INTTYPES_H 1
156
157/* Define to 1 if you have the `jrand48' function. */
158#define HAVE_JRAND48 1
159
160/* Do we have Kerberos 4 Support? */
161/* #undef HAVE_KRB */
162
163/* Define to 1 if you have the `krb_get_err_text' function. */
164/* #undef HAVE_KRB_GET_ERR_TEXT */
165
166/* Define to 1 if you have the <lber.h> header file. */
167/* #undef HAVE_LBER_H */
168
169/* Define to 1 if you have the <ldap.h> header file. */
170/* #undef HAVE_LDAP_H */
171
172/* Define to 1 if you have the `resolv' library (-lresolv). */
173#define HAVE_LIBRESOLV 1
174
175/* Define to 1 if you have the <limits.h> header file. */
176#define HAVE_LIMITS_H 1
177
178/* Define to 1 if you have the <malloc.h> header file. */
179/* #undef HAVE_MALLOC_H */
180
181/* Define to 1 if you have the `memcpy' function. */
182#define HAVE_MEMCPY 1
183
184/* Define to 1 if you have the <memory.h> header file. */
185#define HAVE_MEMORY_H 1
186
187/* Define to 1 if you have the `mkdir' function. */
188#define HAVE_MKDIR 1
189
190/* Do we have mysql support? */
191/* #undef HAVE_MYSQL */
192
193/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
194/* #undef HAVE_NDIR_H */
195
196/* Do we have OpenSSL? */
197/* #undef HAVE_OPENSSL */
198
199/* Use OPIE for server-side OTP? */
200/* #undef HAVE_OPIE */
201
202/* Define to 1 if you have the <pam/pam_appl.h> header file. */
203#define HAVE_PAM_PAM_APPL_H 1
204
205/* Define to 1 if you have the <paths.h> header file. */
206#define HAVE_PATHS_H 1
207
208/* Do we have Postgres support? */
209/* #undef HAVE_PGSQL */
210
211/* Include Support for pwcheck daemon? */
212/* #undef HAVE_PWCHECK */
213
214/* Include support for saslauthd? */
215#define HAVE_SASLAUTHD /**/
216
217/* Define to 1 if you have the <security/pam_appl.h> header file. */
218/* #undef HAVE_SECURITY_PAM_APPL_H */
219
220/* Define to 1 if you have the `select' function. */
221#define HAVE_SELECT 1
222
223/* Does the system have snprintf()? */
224#define HAVE_SNPRINTF /**/
225
226/* Does sockaddr have an sa_len? */
227#define HAVE_SOCKADDR_SA_LEN /**/
228
229/* Define to 1 if you have the `socket' function. */
230#define HAVE_SOCKET 1
231
232/* Do we have a socklen_t? */
233#define HAVE_SOCKLEN_T /**/
234
235/* Do we have SQLite support? */
236/* #undef HAVE_SQLITE */
237
238/* Do we have SQLite3 support? */
239/* #undef HAVE_SQLITE3 */
240
241/* Is there an ss_family in sockaddr_storage? */
242#define HAVE_SS_FAMILY /**/
243
244/* Define to 1 if you have the <stdarg.h> header file. */
245#define HAVE_STDARG_H 1
246
247/* Define to 1 if you have the <stdint.h> header file. */
248#define HAVE_STDINT_H 1
249
250/* Define to 1 if you have the <stdlib.h> header file. */
251#define HAVE_STDLIB_H 1
252
253/* Define to 1 if you have the `strchr' function. */
254#define HAVE_STRCHR 1
255
256/* Define to 1 if you have the `strdup' function. */
257#define HAVE_STRDUP 1
258
259/* Define to 1 if you have the `strerror' function. */
260#define HAVE_STRERROR 1
261
262/* Define to 1 if you have the <strings.h> header file. */
263#define HAVE_STRINGS_H 1
264
265/* Define to 1 if you have the <string.h> header file. */
266#define HAVE_STRING_H 1
267
268/* Define to 1 if you have the `strspn' function. */
269#define HAVE_STRSPN 1
270
271/* Define to 1 if you have the `strstr' function. */
272#define HAVE_STRSTR 1
273
274/* Define to 1 if you have the `strtol' function. */
275#define HAVE_STRTOL 1
276
277/* Do we have struct sockaddr_stroage? */
278#define HAVE_STRUCT_SOCKADDR_STORAGE /**/
279
280/* Define to 1 if you have the <sysexits.h> header file. */
281#define HAVE_SYSEXITS_H 1
282
283/* Define to 1 if you have the `syslog' function. */
284#define HAVE_SYSLOG 1
285
286/* Define to 1 if you have the <syslog.h> header file. */
287#define HAVE_SYSLOG_H 1
288
289/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
290   */
291/* #undef HAVE_SYS_DIR_H */
292
293/* Define to 1 if you have the <sys/file.h> header file. */
294#define HAVE_SYS_FILE_H 1
295
296/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
297   */
298/* #undef HAVE_SYS_NDIR_H */
299
300/* Define to 1 if you have the <sys/param.h> header file. */
301#define HAVE_SYS_PARAM_H 1
302
303/* Define to 1 if you have the <sys/stat.h> header file. */
304#define HAVE_SYS_STAT_H 1
305
306/* Define to 1 if you have the <sys/time.h> header file. */
307#define HAVE_SYS_TIME_H 1
308
309/* Define to 1 if you have the <sys/types.h> header file. */
310#define HAVE_SYS_TYPES_H 1
311
312/* Define to 1 if you have the <sys/uio.h> header file. */
313#define HAVE_SYS_UIO_H 1
314
315/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
316#define HAVE_SYS_WAIT_H 1
317
318/* Define to 1 if you have the <unistd.h> header file. */
319#define HAVE_UNISTD_H 1
320
321/* Define to 1 if you have the <varargs.h> header file. */
322/* #undef HAVE_VARARGS_H */
323
324/* Does the system have vsnprintf()? */
325#define HAVE_VSNPRINTF /**/
326
327/* define if your compiler has __attribute__ */
328/* #undef HAVE___ATTRIBUTE__ */
329
330/* Should we keep handle to Berkeley DB open in SASLDB plugin? */
331/* #undef KEEP_DB_OPEN */
332
333/* Ignore IP Address in Kerberos 4 tickets? */
334/* #undef KRB4_IGNORE_IP_ADDRESS */
335
336/* Name of package */
337#ifndef PACKAGE /* APPLE */
338#define PACKAGE "cyrus-sasl"
339#endif
340
341/* Define to the address where bug reports for this package should be sent. */
342#define PACKAGE_BUGREPORT ""
343
344/* Define to the full name of this package. */
345#define PACKAGE_NAME ""
346
347/* Define to the full name and version of this package. */
348#define PACKAGE_STRING ""
349
350/* Define to the one symbol short name of this package. */
351#define PACKAGE_TARNAME ""
352
353/* Define to the version of this package. */
354#define PACKAGE_VERSION ""
355
356/* Where do we look for Courier authdaemond's socket? */
357#define PATH_AUTHDAEMON_SOCKET "/dev/null"
358
359/* Where do we look for saslauthd's socket? */
360#define PATH_SASLAUTHD_RUNDIR "/var/state/saslauthd"
361
362/* Runtime plugin location */
363#define PLUGINDIR "/usr/lib/sasl2"
364
365/* Force a preferred mechanism */
366/* #undef PREFER_MECH */
367
368/* Location of pwcheck socket */
369/* #undef PWCHECKDIR */
370
371/* Define as the return type of signal handlers (`int' or `void'). */
372#define RETSIGTYPE void
373
374/* Use BerkeleyDB for SASLdb */
375/* #undef SASL_BERKELEYDB */
376
377/* Path to default SASLdb database */
378#define SASL_DB_PATH "/etc/sasldb2"
379
380/* File to use for source of randomness */
381#define SASL_DEV_RANDOM "/dev/random"
382
383/* Use GDBM for SASLdb */
384/* #undef SASL_GDBM */
385
386/* Use NDBM for SASLdb */
387#define SASL_NDBM /**/
388
389/* The size of `long', as computed by sizeof. */
390#define SIZEOF_LONG 8
391
392/* Link ANONYMOUS Statically */
393/* #undef STATIC_ANONYMOUS */
394
395/* Link CRAM-MD5 Statically */
396/* #undef STATIC_CRAMMD5 */
397
398/* Link DIGEST-MD5 Statically */
399/* #undef STATIC_DIGESTMD5 */
400
401/* Link GSSAPI Statically */
402#define STATIC_GSSAPIV2 /**/
403
404/* User KERBEROS_V4 Staticly */
405/* #undef STATIC_KERBEROS4 */
406
407/* Link ldapdb plugin Statically */
408/* #undef STATIC_LDAPDB */
409
410/* Link LOGIN Statically */
411/* #undef STATIC_LOGIN */
412
413/* Link NTLM Statically */
414/* #undef STATIC_NTLM */
415
416/* Link OTP Statically */
417/* #undef STATIC_OTP */
418
419/* Link PASSDSS Statically */
420/* #undef STATIC_PASSDSS */
421
422/* Link PLAIN Staticly */
423/* #undef STATIC_PLAIN */
424
425/* Link SASLdb Staticly */
426/* #undef STATIC_SASLDB */
427
428/* Link SCRAM Statically */
429/* #undef STATIC_SCRAM */
430
431/* Link SQL plugin statically */
432/* #undef STATIC_SQL */
433
434/* Link SRP Statically */
435/* #undef STATIC_SRP */
436
437/* Define to 1 if you have the ANSI C header files. */
438#define STDC_HEADERS 1
439
440/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
441#define TIME_WITH_SYS_TIME 1
442
443/* Should we try to dlopen() plugins while statically compiled? */
444/* #undef TRY_DLOPEN_WHEN_STATIC */
445
446/* use the doors IPC API for saslauthd? */
447/* #undef USE_DOORS */
448
449/* Version number of package */
450#define VERSION "2.1.26"
451
452/* Use DES */
453/* #undef WITH_DES */
454
455/* Linking against dmalloc? */
456/* #undef WITH_DMALLOC */
457
458/* Use internal RC4 implementation? */
459#define WITH_RC4 /**/
460
461/* Use OpenSSL DES Implementation */
462#define WITH_SSL_DES /**/
463
464/* Use CRAM-MD5 hash */
465#define OBSOLETE_CRAM_ATTR /**/
466
467/* Define to empty if `const' does not conform to ANSI C. */
468/* #undef const */
469
470/* Define to `__inline__' or `__inline' if that's what the C compiler
471   calls it, or to nothing if 'inline' is not supported under any name.  */
472#ifndef __cplusplus
473/* #undef inline */
474#endif
475
476/* Define to `int' if <sys/types.h> does not define. */
477/* #undef mode_t */
478
479/* Define to `int' if <sys/types.h> does not define. */
480/* #undef pid_t */
481
482
483
484
485/* Create a struct iovec if we need one */
486#if !defined(_WIN32)
487#if !defined(HAVE_SYS_UIO_H)
488/* (win32 is handled in sasl.h) */
489struct iovec {
490    char *iov_base;
491    long iov_len;
492};
493#else
494#include <sys/types.h>
495#include <sys/uio.h>
496#endif
497#endif
498
499/* location of the random number generator */
500#ifdef DEV_RANDOM
501/* #undef DEV_RANDOM */
502#endif
503#define DEV_RANDOM SASL_DEV_RANDOM
504
505/* if we've got krb_get_err_txt, we might as well use it;
506   especially since krb_err_txt isn't in some newer distributions
507   (MIT Kerb for Mac 4 being a notable example). If we don't have
508   it, we fall back to the krb_err_txt array */
509#ifdef HAVE_KRB_GET_ERR_TEXT
510#define get_krb_err_txt krb_get_err_text
511#else
512#define get_krb_err_txt(X) (krb_err_txt[(X)])
513#endif
514
515/* Make Solaris happy... */
516#ifndef __EXTENSIONS__
517#define __EXTENSIONS__
518#endif
519
520/* Make Linux happy... */
521#ifndef _GNU_SOURCE
522#define _GNU_SOURCE
523#endif
524
525#ifndef HAVE___ATTRIBUTE__
526/* Can't use attributes... */
527#define __attribute__(foo)
528#endif
529
530#define SASL_PATH_ENV_VAR "SASL_PATH"
531#define SASL_CONF_PATH_ENV_VAR "SASL_CONF_PATH"
532
533#include <stdlib.h>
534#include <sys/types.h>
535#ifndef WIN32
536# include <sys/socket.h>
537# include <netdb.h>
538# include <netinet/in.h>
539# ifdef HAVE_SYS_PARAM_H
540#  include <sys/param.h>
541# endif
542#else /* WIN32 */
543# include <winsock2.h>
544#endif /* WIN32 */
545#include <string.h>
546
547#ifndef HAVE_SOCKLEN_T
548typedef unsigned int socklen_t;
549#endif /* HAVE_SOCKLEN_T */
550
551#if !defined(HAVE_STRUCT_SOCKADDR_STORAGE) && !defined(WIN32)
552#define	_SS_MAXSIZE	128	/* Implementation specific max size */
553#define	_SS_PADSIZE	(_SS_MAXSIZE - sizeof (struct sockaddr))
554
555struct sockaddr_storage {
556	struct	sockaddr ss_sa;
557	char		__ss_pad2[_SS_PADSIZE];
558};
559# define ss_family ss_sa.sa_family
560#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
561
562#ifndef AF_INET6
563/* Define it to something that should never appear */
564#define	AF_INET6	AF_MAX
565#endif
566
567#ifndef HAVE_GETADDRINFO
568#define	getaddrinfo	sasl_getaddrinfo
569#define	freeaddrinfo	sasl_freeaddrinfo
570#define	gai_strerror	sasl_gai_strerror
571#endif
572
573#ifndef HAVE_GETNAMEINFO
574#define	getnameinfo	sasl_getnameinfo
575#endif
576
577#if !defined(HAVE_GETNAMEINFO) || !defined(HAVE_GETADDRINFO)
578#include "gai.h"
579#endif
580
581#ifndef AI_NUMERICHOST   /* support glibc 2.0.x */
582#define AI_NUMERICHOST  4
583#define NI_NUMERICHOST  2
584#define NI_NAMEREQD     4
585#define NI_NUMERICSERV  8
586#endif
587
588/* Defined in RFC 1035. max strlen is only 253 due to length bytes. */
589#ifndef MAXHOSTNAMELEN
590#define        MAXHOSTNAMELEN  255
591#endif
592
593#ifndef HAVE_SYSEXITS_H
594#include "exits.h"
595#else
596#include "sysexits.h"
597#endif
598
599/* Get the correct time.h */
600#if TIME_WITH_SYS_TIME
601# include <sys/time.h>
602# include <time.h>
603#else
604# if HAVE_SYS_TIME_H
605#  include <sys/time.h>
606# else
607#  include <time.h>
608# endif
609#endif
610
611#ifndef HIER_DELIMITER
612#define HIER_DELIMITER '/'
613#endif
614
615#ifdef WIN32
616#define SASL_ROOT_KEY "SOFTWARE\\Carnegie Mellon\\Project Cyrus\\SASL Library"
617#define SASL_PLUGIN_PATH_ATTR "SearchPath"
618#define SASL_CONF_PATH_ATTR "ConfFile"
619
620#include <windows.h>
621inline static unsigned int sleep(unsigned int seconds) {
622       Sleep(seconds * 1000);
623       return 0;
624}
625#endif
626
627#endif /* CONFIG_H */
628
629