1 /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
3 * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
8 * Public License. A copy of this license is available at
9 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10 * top-level directory of the distribution.
13 #ifndef _LDAP_PORTABLE_H
14 #define _LDAP_PORTABLE_H
19 /* Define to empty if the keyword does not work. */
22 /* Define to `int' if <sys/types.h> doesn't define. */
25 /* Define if you don't have vprintf but do have _doprnt. */
28 /* Define if your struct stat has st_blksize. */
29 #undef HAVE_ST_BLKSIZE
31 /* Define if you have the strftime function. */
34 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
35 #undef HAVE_SYS_WAIT_H
37 /* Define if you have the vprintf function. */
40 /* Define as the return type of signal handlers (int or void). */
43 /* Define to the type of arg1 for select(). */
44 #undef SELECT_TYPE_ARG1
46 /* Define to the type of args 2, 3 and 4 for select(). */
47 #undef SELECT_TYPE_ARG234
49 /* Define to the type of arg5 for select(). */
50 #undef SELECT_TYPE_ARG5
52 /* Define if you have the ANSI C header files. */
55 /* Define if you can safely include both <sys/time.h> and <time.h>. */
56 #undef TIME_WITH_SYS_TIME
58 /* Define if your <sys/time.h> declares struct tm. */
61 /* Define to `int' if <sys/types.h> doesn't define. */
64 /* Define if your processor stores words with the most significant
65 byte first (like Motorola and SPARC, unlike Intel and VAX). */
66 #undef WORDS_BIGENDIAN
68 /* define this if needed to get reentrant functions */
76 /* define this if needed to get threadsafe functions */
90 #ifndef _SGI_MP_SOURCE
94 /* These are defined in ldap_features.h */
96 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
97 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
98 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
99 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
102 /* These are defined in lber_types.h */
110 /* Define if you have the bcopy function. */
113 /* Define if you have the chroot function. */
116 /* Define if you have the closesocket function. */
117 #undef HAVE_CLOSESOCKET
119 /* Define if you have the ctime_r function. */
122 /* Define if you have the endgrent function. */
125 /* Define if you have the endpwent function. */
128 /* Define if you have the fcntl function. */
131 /* Define if you have the flock function. */
134 /* Define if you have the fstat function. */
137 /* Define if you have the gai_strerror function. */
138 #undef HAVE_GAI_STRERROR
140 /* Define if you have the getaddrinfo function. */
141 #undef HAVE_GETADDRINFO
143 /* Define if you have the getdtablesize function. */
144 #undef HAVE_GETDTABLESIZE
146 /* Define if you have the getgrgid function. */
149 /* Define if you have the gethostbyaddr_r function. */
150 #undef HAVE_GETHOSTBYADDR_R
152 /* Define if you have the gethostbyname_r function. */
153 #undef HAVE_GETHOSTBYNAME_R
155 /* Define if you have the gethostname function. */
156 #undef HAVE_GETHOSTNAME
158 /* Define if you have the getopt function. */
161 /* Define if you have the getpass function. */
164 /* Define if you have the getpassphrase function. */
165 #undef HAVE_GETPASSPHRASE
167 /* Define if you have the getpeereid function. */
168 #undef HAVE_GETPEEREID
170 /* Define if you have the getpwnam function. */
173 /* Define if you have the getpwuid function. */
176 /* Define if you have the getspnam function. */
179 /* Define if you have the gettimeofday function. */
180 #undef HAVE_GETTIMEOFDAY
182 /* Define if you have the inet_ntop function. */
183 #undef HAVE_INET_NTOP
185 /* Define if you have the initgroups function. */
186 #undef HAVE_INITGROUPS
188 /* Define if you have the lockf function. */
191 /* Define if you have the memcpy function. */
194 /* Define if you have the memmove function. */
197 /* Define if you have the mkstemp function. */
200 /* Define if you have the mktemp function. */
203 /* Define if you have the pipe function. */
206 /* Define if you have the pthread_getconcurrency function. */
207 #undef HAVE_PTHREAD_GETCONCURRENCY
209 /* Define if you have the pthread_kill function. */
210 #undef HAVE_PTHREAD_KILL
212 /* Define if you have the pthread_kill_other_threads_np function. */
213 #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
215 /* Define if you have the pthread_rwlock_destroy function. */
216 #undef HAVE_PTHREAD_RWLOCK_DESTROY
218 /* Define if you have the pthread_setconcurrency function. */
219 #undef HAVE_PTHREAD_SETCONCURRENCY
221 /* Define if you have the pthread_yield function. */
222 #undef HAVE_PTHREAD_YIELD
224 /* Define if you have the read function. */
227 /* Define if you have the recv function. */
230 /* Define if you have the recvfrom function. */
233 /* Define if you have the sched_yield function. */
234 #undef HAVE_SCHED_YIELD
236 /* Define if you have the send function. */
239 /* Define if you have the sendmsg function. */
242 /* Define if you have the sendto function. */
245 /* Define if you have the setegid function. */
248 /* Define if you have the seteuid function. */
251 /* Define if you have the setgid function. */
254 /* Define if you have the setpwfile function. */
255 #undef HAVE_SETPWFILE
257 /* Define if you have the setsid function. */
260 /* Define if you have the setuid function. */
263 /* Define if you have the sigaction function. */
264 #undef HAVE_SIGACTION
266 /* Define if you have the signal function. */
269 /* Define if you have the sigset function. */
272 /* Define if you have the snprintf function. */
275 /* Define if you have the strdup function. */
278 /* Define if you have the strerror function. */
281 /* Define if you have the strpbrk function. */
284 /* Define if you have the strrchr function. */
287 /* Define if you have the strsep function. */
290 /* Define if you have the strspn function. */
293 /* Define if you have the strstr function. */
296 /* Define if you have the strtol function. */
299 /* Define if you have the strtoul function. */
302 /* Define if you have the sysconf function. */
305 /* Define if you have the thr_getconcurrency function. */
306 #undef HAVE_THR_GETCONCURRENCY
308 /* Define if you have the thr_setconcurrency function. */
309 #undef HAVE_THR_SETCONCURRENCY
311 /* Define if you have the thr_yield function. */
312 #undef HAVE_THR_YIELD
314 /* Define if you have the usleep function. */
317 /* Define if you have the vsnprintf function. */
318 #undef HAVE_VSNPRINTF
320 /* Define if you have the wait4 function. */
323 /* Define if you have the waitpid function. */
326 /* Define if you have the write function. */
329 /* Define if you have the <arpa/inet.h> header file. */
330 #undef HAVE_ARPA_INET_H
332 /* Define if you have the <arpa/nameser.h> header file. */
333 #undef HAVE_ARPA_NAMESER_H
335 /* Define if you have the <assert.h> header file. */
338 /* Define if you have the <conio.h> header file. */
341 /* Define if you have the <crypt.h> header file. */
344 /* Define if you have the <cthreads.h> header file. */
345 #undef HAVE_CTHREADS_H
347 /* Define if you have the <db.h> header file. */
350 /* Define if you have the <db_185.h> header file. */
353 /* Define if you have the <des.h> header file. */
356 /* Define if you have the <direct.h> header file. */
359 /* Define if you have the <dirent.h> header file. */
362 /* Define if you have the <dlfcn.h> header file. */
365 /* Define if you have the <errno.h> header file. */
368 /* Define if you have the <fcntl.h> header file. */
371 /* Define if you have the <filio.h> header file. */
374 /* Define if you have the <gdbm.h> header file. */
377 /* Define if you have the <getopt.h> header file. */
380 /* Define if you have the <grp.h> header file. */
383 /* Define if you have the <heim_err.h> header file. */
384 #undef HAVE_HEIM_ERR_H
386 /* Define if you have the <io.h> header file. */
389 /* Define if you have the <kerberosIV/des.h> header file. */
390 #undef HAVE_KERBEROSIV_DES_H
392 /* Define if you have the <kerberosIV/krb.h> header file. */
393 #undef HAVE_KERBEROSIV_KRB_H
395 /* Define if you have the <krb-archaeology.h> header file. */
396 #undef HAVE_KRB_ARCHAEOLOGY_H
398 /* Define if you have the <krb.h> header file. */
401 /* Define if you have the <krb5.h> header file. */
404 /* Define if you have the <libutil.h> header file. */
405 #undef HAVE_LIBUTIL_H
407 /* Define if you have the <limits.h> header file. */
410 /* Define if you have the <locale.h> header file. */
413 /* Define if you have the <ltdl.h> header file. */
416 /* Define if you have the <lwp/lwp.h> header file. */
417 #undef HAVE_LWP_LWP_H
419 /* Define if you have the <mach/cthreads.h> header file. */
420 #undef HAVE_MACH_CTHREADS_H
422 /* Define if you have the <malloc.h> header file. */
425 /* Define if you have the <mdbm.h> header file. */
428 /* Define if you have the <memory.h> header file. */
431 /* Define if you have the <ncurses.h> header file. */
432 #undef HAVE_NCURSES_H
434 /* Define if you have the <ndbm.h> header file. */
437 /* Define if you have the <ndir.h> header file. */
440 /* Define if you have the <netinet/tcp.h> header file. */
441 #undef HAVE_NETINET_TCP_H
443 /* Define if you have the <openssl/ssl.h> header file. */
444 #undef HAVE_OPENSSL_SSL_H
446 /* Define if you have the <process.h> header file. */
447 #undef HAVE_PROCESS_H
449 /* Define if you have the <psap.h> header file. */
452 /* Define if you have the <pth.h> header file. */
455 /* Define if you have the <pthread.h> header file. */
456 #undef HAVE_PTHREAD_H
458 /* Define if you have the <pwd.h> header file. */
461 /* Define if you have the <readline/history.h> header file. */
462 #undef HAVE_READLINE_HISTORY_H
464 /* Define if you have the <readline/readline.h> header file. */
465 #undef HAVE_READLINE_READLINE_H
467 /* Define if you have the <regex.h> header file. */
470 /* Define if you have the <resolv.h> header file. */
473 /* Define if you have the <sasl.h> header file. */
476 /* Define if you have the <sasl/sasl.h> header file. */
477 #undef HAVE_SASL_SASL_H
479 /* Define if you have the <sched.h> header file. */
482 /* Define if you have the <sgtty.h> header file. */
485 /* Define if you have the <shadow.h> header file. */
488 /* Define if you have the <slp.h> header file. */
491 /* Define if you have the <sql.h> header file. */
494 /* Define if you have the <sqlext.h> header file. */
497 /* Define if you have the <ssl.h> header file. */
500 /* Define if you have the <stddef.h> header file. */
503 /* Define if you have the <string.h> header file. */
506 /* Define if you have the <strings.h> header file. */
507 #undef HAVE_STRINGS_H
509 /* Define if you have the <synch.h> header file. */
512 /* Define if you have the <sys/dir.h> header file. */
513 #undef HAVE_SYS_DIR_H
515 /* Define if you have the <sys/errno.h> header file. */
516 #undef HAVE_SYS_ERRNO_H
518 /* Define if you have the <sys/file.h> header file. */
519 #undef HAVE_SYS_FILE_H
521 /* Define if you have the <sys/filio.h> header file. */
522 #undef HAVE_SYS_FILIO_H
524 /* Define if you have the <sys/ioctl.h> header file. */
525 #undef HAVE_SYS_IOCTL_H
527 /* Define if you have the <sys/ndir.h> header file. */
528 #undef HAVE_SYS_NDIR_H
530 /* Define if you have the <sys/param.h> header file. */
531 #undef HAVE_SYS_PARAM_H
533 /* Define if you have the <sys/resource.h> header file. */
534 #undef HAVE_SYS_RESOURCE_H
536 /* Define if you have the <sys/select.h> header file. */
537 #undef HAVE_SYS_SELECT_H
539 /* Define if you have the <sys/socket.h> header file. */
540 #undef HAVE_SYS_SOCKET_H
542 /* Define if you have the <sys/syslog.h> header file. */
543 #undef HAVE_SYS_SYSLOG_H
545 /* Define if you have the <sys/time.h> header file. */
546 #undef HAVE_SYS_TIME_H
548 /* Define if you have the <sys/types.h> header file. */
549 #undef HAVE_SYS_TYPES_H
551 /* Define if you have the <sys/ucred.h> header file. */
552 #undef HAVE_SYS_UCRED_H
554 /* Define if you have the <sys/un.h> header file. */
557 /* Define if you have the <sys/uuid.h> header file. */
558 #undef HAVE_SYS_UUID_H
560 /* Define if you have the <sysexits.h> header file. */
561 #undef HAVE_SYSEXITS_H
563 /* Define if you have the <syslog.h> header file. */
566 /* Define if you have the <tcl.h> header file. */
569 /* Define if you have the <tcpd.h> header file. */
572 /* Define if you have the <termcap.h> header file. */
573 #undef HAVE_TERMCAP_H
575 /* Define if you have the <termios.h> header file. */
576 #undef HAVE_TERMIOS_H
578 /* Define if you have the <thread.h> header file. */
581 /* Define if you have the <unistd.h> header file. */
584 /* Define if you have the <winsock.h> header file. */
585 #undef HAVE_WINSOCK_H
587 /* Define if you have the <winsock2.h> header file. */
588 #undef HAVE_WINSOCK2_H
590 /* Define if you have the V3 library (-lV3). */
593 /* Define if you have the bind library (-lbind). */
596 /* Define if you have the dl library (-ldl). */
599 /* Define if you have the gen library (-lgen). */
602 /* Define if you have the inet library (-linet). */
605 /* Define if you have the net library (-lnet). */
608 /* Define if you have the nsl library (-lnsl). */
611 /* Define if you have the nsl_s library (-lnsl_s). */
614 /* Define if you have the resolv library (-lresolv). */
615 #undef HAVE_LIBRESOLV
617 /* Define if you have the socket library (-lsocket). */
618 #undef HAVE_LIBSOCKET
621 #undef OPENLDAP_PACKAGE
624 #undef OPENLDAP_VERSION
627 #undef LDAP_VENDOR_VERSION
630 #undef LDAP_VENDOR_VERSION_MAJOR
633 #undef LDAP_VENDOR_VERSION_MINOR
636 #undef LDAP_VENDOR_VERSION_PATCH
638 /* define this if you have mkversion */
639 #undef HAVE_MKVERSION
641 /* defined to be the EXE extension */
644 /* define if you have AIX security lib */
645 #undef HAVE_AIX_SECURITY
647 /* define to use both <string.h> and <strings.h> */
648 #undef BOTH_STRINGS_H
650 /* define if you have libtool -ltdl */
653 /* define if system uses EBCDIC instead of ASCII */
656 /* Define if TIOCGWINSZ requires sys/ioctl.h */
657 #undef GWINSZ_IN_SYS_IOCTL
659 /* define if you have POSIX termios */
660 #undef HAVE_POSIX_TERMIOS
662 /* define if you have winsock */
665 /* define if you have winsock2 */
668 /* define if you have uuid_to_str() */
669 #undef HAVE_UUID_TO_STR
671 /* define if you have res_query() */
672 #undef HAVE_RES_QUERY
674 /* define if you have HEIMDAL Kerberos */
675 #undef HAVE_HEIMDAL_KERBEROS
677 /* define if you have Kerberos V */
680 /* define if you have Kerberos V with IV support */
683 /* define if you have Kerberos IV */
686 /* define if you have Kerberos des_debug */
687 #undef HAVE_DES_DEBUG
689 /* define if you have Kerberos IV */
692 /* define if you have Kth Kerberos */
693 #undef HAVE_KTH_KERBEROS
695 /* define if you have Kerberos */
698 /* define if you have SSLeay or OpenSSL */
701 /* define if you have RSAref */
704 /* define if you have TLS */
707 /* define to support LAN Manager passwords */
710 /* if you have NT Threads */
711 #undef HAVE_NT_THREADS
713 /* if you have NT Service Manager */
714 #undef HAVE_NT_SERVICE_MANAGER
716 /* if you have NT Event Log */
717 #undef HAVE_NT_EVENT_LOG
719 /* define to pthreads API spec revision */
722 /* if you have LinuxThreads */
723 #undef HAVE_LINUX_THREADS
725 /* Define if you have the sched_yield function. */
726 #undef HAVE_SCHED_YIELD
728 /* define if you have pthread_detach function */
729 #undef HAVE_PTHREAD_DETACH
731 /* define if you have Mach Cthreads */
732 #undef HAVE_MACH_CTHREADS
734 /* if you have GNU Pth */
737 /* if you have Solaris LWP (thr) package */
740 /* if you have SunOS LWP package */
743 /* define if select implicitly yields */
744 #undef HAVE_YIELDING_SELECT
746 /* if you have LinuxThreads */
747 #undef HAVE_LINUX_THREADS
749 /* define if you have (or want) no threads */
752 /* set to the number of arguments ctime_r() expects */
755 /* set to the number of arguments gethostbyname_r() expects */
756 #undef GETHOSTBYNAME_R_NARGS
758 /* set to the number of arguments gethostbyaddr_r() expects */
759 #undef GETHOSTBYADDR_R_NARGS
761 /* define if Berkeley DB has DB_THREAD support */
762 #undef HAVE_BERKELEY_DB_THREAD
764 /* define this if Berkeley DB is available */
765 #undef HAVE_BERKELEY_DB
767 /* define this to use DBHASH w/ LDBM backend */
768 #undef LDBM_USE_DBHASH
770 /* define this to use DBBTREE w/ LDBM backend */
771 #undef LDBM_USE_DBBTREE
773 /* define if MDBM is available */
776 /* define if GNU DBM is available */
779 /* define if NDBM is available */
782 /* define if LDAP libs are dynamic */
783 #undef LDAP_LIBS_DYNAMIC
785 /* define if you have -lwrap */
788 /* define if you have -ltermcap */
791 /* define if you have -lncurses */
794 /* define if you have no termcap support */
797 /* define if you have Cyrus SASL */
798 #undef HAVE_CYRUS_SASL
800 /* define if your SASL library has sasl_version() */
801 #undef HAVE_SASL_VERSION
803 /* set to urandom device */
804 #undef URANDOM_DEVICE
806 /* define if you actually have FreeBSD fetch(3) */
809 /* define if you have -lreadline */
812 /* define if crypt(3) is available */
815 /* define if setproctitle(3) is available */
816 #undef HAVE_SETPROCTITLE
818 /* define if you have -lslp */
821 /* Define to `int' if <sys/types.h> does not define. */
824 /* Define to `long' if <sys/types.h> does not define. */
827 /* Define to `int' if <sys/types.h> does not define. */
830 /* Define if system has ptrdiff_t type */
831 #undef HAVE_PTRDIFF_T
833 /* Define to `unsigned' if <sys/types.h> does not define. */
836 /* Define to `signed int' if <sys/types.h> does not define. */
839 /* Define to `char *' if <sys/types.h> does not define. */
842 /* define to int if socklen_t is not available */
845 /* define to atomic type if sig_atomic_t is not available */
848 /* define if struct passwd has pw_gecos */
851 /* define if struct passwd has pw_passwd */
852 #undef HAVE_PW_PASSWD
854 /* define if toupper() requires islower() */
857 /* define as empty if volatile is not supported */
860 /* define if cross compiling */
861 #undef CROSS_COMPILING
863 /* The number of bytes in type short */
866 /* The number of bytes in type int */
869 /* The number of bytes in type long */
872 /* define to you inet_aton(3) is available */
873 #undef HAVE_INET_ATON
875 /* if you have spawnlp() */
878 /* define to snprintf routine */
881 /* define to vsnprintf routine */
884 /* define to snprintf routine */
887 /* define to snprintf routine */
890 /* define if sys_errlist is not declared in stdio.h or errno.h */
891 #undef DECL_SYS_ERRLIST
893 /* define if you actually have sys_errlist in your libs */
894 #undef HAVE_SYS_ERRLIST
896 /* define if you have libtool -ltdl */
899 /* define this to add SLAPI code */
902 /* define this to add debugging code */
905 /* define this to add syslog code */
908 /* define this to remove -lldap cache support */
911 /* define this for LDAP process title support */
912 #undef LDAP_PROCTITLE
914 /* define to support PF_LOCAL */
917 /* define to support PF_INET6 */
920 /* define to support cleartext passwords */
921 #undef SLAPD_CLEARTEXT
923 /* define to support crypt(3) passwords */
926 /* define to support Kerberos passwords */
929 /* define to support SASL passwords */
932 /* define to support multimaster replication */
933 #undef SLAPD_MULTIMASTER
935 /* define to support phonetic */
936 #undef SLAPD_PHONETIC
938 /* define to support reverse lookups */
939 #undef SLAPD_RLOOKUPS
941 /* define to support per-object ACIs */
942 #undef SLAPD_ACI_ENABLED
944 /* define to support modules */
947 /* define to support BDB backend */
950 /* define to support dynamic BDB backend */
951 #undef SLAPD_BDB_DYNAMIC
953 /* define to support DNS SRV backend */
956 /* define to support dynamic DNS SRV backend */
957 #undef SLAPD_DNSSRV_DYNAMIC
959 /* define to support LDAP backend */
962 /* define to support dynamic LDAP backend */
963 #undef SLAPD_LDAP_DYNAMIC
965 /* define to support LDBM backend */
968 /* define to support dynamic LDBM backend */
969 #undef SLAPD_LDBM_DYNAMIC
971 /* define to support LDAP Metadirectory backend */
974 /* define to support dynamic LDAP Metadirectory backend */
975 #undef SLAPD_META_DYNAMIC
977 /* define to support cn=Monitor backend */
980 /* define to support dynamic cn=Monitor backend */
981 #undef SLAPD_MONITOR_DYNAMIC
983 /* define to support NULL backend */
986 /* define to support dynamic NULL backend */
987 #undef SLAPD_NULL_DYNAMIC
989 /* define to support PASSWD backend */
992 /* define to support dynamic PASSWD backend */
993 #undef SLAPD_PASSWD_DYNAMIC
995 /* define to support PERL backend */
998 /* define to support dynamic PERL backend */
999 #undef SLAPD_PERL_DYNAMIC
1001 /* define to support SHELL backend */
1004 /* define to support dynamic SHELL backend */
1005 #undef SLAPD_SHELL_DYNAMIC
1007 /* define to support TCL backend */
1010 /* define to support dynamic TCL backend */
1011 #undef SLAPD_TCL_DYNAMIC
1013 /* define to support SQL backend */
1016 /* define to support dynamic SQL backend */
1017 #undef SLAPD_SQL_DYNAMIC
1019 /* define to enable rewriting in back-ldap and back-meta */
1020 #undef ENABLE_REWRITE
1022 /* define to enable slapi library */
1026 /* begin of postamble */
1029 /* don't suck in all of the win32 api */
1030 # define WIN32_LEAN_AND_MEAN 1
1033 #ifndef LDAP_NEEDS_PROTOTYPES
1034 /* force LDAP_P to always include prototypes */
1035 #define LDAP_NEEDS_PROTOTYPES 1
1038 #ifdef HAVE_STDDEF_H
1039 # include <stddef.h>
1042 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
1045 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
1050 /* ASCII/EBCDIC converting replacements for stdio funcs
1051 * vsnprintf and snprintf are used too, but they are already
1052 * checked by the configure script
1054 #define fputs ber_pvt_fputs
1055 #define fgets ber_pvt_fgets
1056 #define printf ber_pvt_printf
1057 #define fprintf ber_pvt_fprintf
1058 #define vfprintf ber_pvt_vfprintf
1059 #define vsprintf ber_pvt_vsprintf
1062 #include "ldap_cdefs.h"
1063 #include "ldap_features.h"
1065 #include "ac/assert.h"
1067 #endif /* _LDAP_PORTABLE_H */