1 /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
3 * Copyright 1998-2002 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 sendto function. */
242 /* Define if you have the setegid function. */
245 /* Define if you have the seteuid function. */
248 /* Define if you have the setgid function. */
251 /* Define if you have the setpwfile function. */
252 #undef HAVE_SETPWFILE
254 /* Define if you have the setsid function. */
257 /* Define if you have the setuid function. */
260 /* Define if you have the sigaction function. */
261 #undef HAVE_SIGACTION
263 /* Define if you have the signal function. */
266 /* Define if you have the sigset function. */
269 /* Define if you have the snprintf function. */
272 /* Define if you have the strdup function. */
275 /* Define if you have the strerror function. */
278 /* Define if you have the strpbrk function. */
281 /* Define if you have the strrchr function. */
284 /* Define if you have the strsep function. */
287 /* Define if you have the strspn function. */
290 /* Define if you have the strstr function. */
293 /* Define if you have the strtol function. */
296 /* Define if you have the strtoul function. */
299 /* Define if you have the sysconf function. */
302 /* Define if you have the thr_getconcurrency function. */
303 #undef HAVE_THR_GETCONCURRENCY
305 /* Define if you have the thr_setconcurrency function. */
306 #undef HAVE_THR_SETCONCURRENCY
308 /* Define if you have the thr_yield function. */
309 #undef HAVE_THR_YIELD
311 /* Define if you have the usleep function. */
314 /* Define if you have the vsnprintf function. */
315 #undef HAVE_VSNPRINTF
317 /* Define if you have the wait4 function. */
320 /* Define if you have the waitpid function. */
323 /* Define if you have the write function. */
326 /* Define if you have the <arpa/inet.h> header file. */
327 #undef HAVE_ARPA_INET_H
329 /* Define if you have the <arpa/nameser.h> header file. */
330 #undef HAVE_ARPA_NAMESER_H
332 /* Define if you have the <assert.h> header file. */
335 /* Define if you have the <conio.h> header file. */
338 /* Define if you have the <crypt.h> header file. */
341 /* Define if you have the <cthreads.h> header file. */
342 #undef HAVE_CTHREADS_H
344 /* Define if you have the <db.h> header file. */
347 /* Define if you have the <db_185.h> header file. */
350 /* Define if you have the <des.h> header file. */
353 /* Define if you have the <direct.h> header file. */
356 /* Define if you have the <dirent.h> header file. */
359 /* Define if you have the <dlfcn.h> header file. */
362 /* Define if you have the <errno.h> header file. */
365 /* Define if you have the <fcntl.h> header file. */
368 /* Define if you have the <filio.h> header file. */
371 /* Define if you have the <gdbm.h> header file. */
374 /* Define if you have the <getopt.h> header file. */
377 /* Define if you have the <grp.h> header file. */
380 /* Define if you have the <heim_err.h> header file. */
381 #undef HAVE_HEIM_ERR_H
383 /* Define if you have the <io.h> header file. */
386 /* Define if you have the <kerberosIV/des.h> header file. */
387 #undef HAVE_KERBEROSIV_DES_H
389 /* Define if you have the <kerberosIV/krb.h> header file. */
390 #undef HAVE_KERBEROSIV_KRB_H
392 /* Define if you have the <krb-archaeology.h> header file. */
393 #undef HAVE_KRB_ARCHAEOLOGY_H
395 /* Define if you have the <krb.h> header file. */
398 /* Define if you have the <krb5.h> header file. */
401 /* Define if you have the <libutil.h> header file. */
402 #undef HAVE_LIBUTIL_H
404 /* Define if you have the <limits.h> header file. */
407 /* Define if you have the <locale.h> header file. */
410 /* Define if you have the <ltdl.h> header file. */
413 /* Define if you have the <lwp/lwp.h> header file. */
414 #undef HAVE_LWP_LWP_H
416 /* Define if you have the <mach/cthreads.h> header file. */
417 #undef HAVE_MACH_CTHREADS_H
419 /* Define if you have the <malloc.h> header file. */
422 /* Define if you have the <mdbm.h> header file. */
425 /* Define if you have the <memory.h> header file. */
428 /* Define if you have the <ncurses.h> header file. */
429 #undef HAVE_NCURSES_H
431 /* Define if you have the <ndbm.h> header file. */
434 /* Define if you have the <ndir.h> header file. */
437 /* Define if you have the <netinet/tcp.h> header file. */
438 #undef HAVE_NETINET_TCP_H
440 /* Define if you have the <openssl/ssl.h> header file. */
441 #undef HAVE_OPENSSL_SSL_H
443 /* Define if you have the <process.h> header file. */
444 #undef HAVE_PROCESS_H
446 /* Define if you have the <psap.h> header file. */
449 /* Define if you have the <pth.h> header file. */
452 /* Define if you have the <pthread.h> header file. */
453 #undef HAVE_PTHREAD_H
455 /* Define if you have the <pwd.h> header file. */
458 /* Define if you have the <readline/history.h> header file. */
459 #undef HAVE_READLINE_HISTORY_H
461 /* Define if you have the <readline/readline.h> header file. */
462 #undef HAVE_READLINE_READLINE_H
464 /* Define if you have the <regex.h> header file. */
467 /* Define if you have the <resolv.h> header file. */
470 /* Define if you have the <sasl.h> header file. */
473 /* Define if you have the <sasl/sasl.h> header file. */
474 #undef HAVE_SASL_SASL_H
476 /* Define if you have the <sched.h> header file. */
479 /* Define if you have the <sgtty.h> header file. */
482 /* Define if you have the <shadow.h> header file. */
485 /* Define if you have the <slp.h> header file. */
488 /* Define if you have the <sql.h> header file. */
491 /* Define if you have the <sqlext.h> header file. */
494 /* Define if you have the <ssl.h> header file. */
497 /* Define if you have the <stddef.h> header file. */
500 /* Define if you have the <string.h> header file. */
503 /* Define if you have the <strings.h> header file. */
504 #undef HAVE_STRINGS_H
506 /* Define if you have the <synch.h> header file. */
509 /* Define if you have the <sys/dir.h> header file. */
510 #undef HAVE_SYS_DIR_H
512 /* Define if you have the <sys/errno.h> header file. */
513 #undef HAVE_SYS_ERRNO_H
515 /* Define if you have the <sys/file.h> header file. */
516 #undef HAVE_SYS_FILE_H
518 /* Define if you have the <sys/filio.h> header file. */
519 #undef HAVE_SYS_FILIO_H
521 /* Define if you have the <sys/ioctl.h> header file. */
522 #undef HAVE_SYS_IOCTL_H
524 /* Define if you have the <sys/ndir.h> header file. */
525 #undef HAVE_SYS_NDIR_H
527 /* Define if you have the <sys/param.h> header file. */
528 #undef HAVE_SYS_PARAM_H
530 /* Define if you have the <sys/resource.h> header file. */
531 #undef HAVE_SYS_RESOURCE_H
533 /* Define if you have the <sys/select.h> header file. */
534 #undef HAVE_SYS_SELECT_H
536 /* Define if you have the <sys/socket.h> header file. */
537 #undef HAVE_SYS_SOCKET_H
539 /* Define if you have the <sys/syslog.h> header file. */
540 #undef HAVE_SYS_SYSLOG_H
542 /* Define if you have the <sys/time.h> header file. */
543 #undef HAVE_SYS_TIME_H
545 /* Define if you have the <sys/types.h> header file. */
546 #undef HAVE_SYS_TYPES_H
548 /* Define if you have the <sys/ucred.h> header file. */
549 #undef HAVE_SYS_UCRED_H
551 /* Define if you have the <sys/un.h> header file. */
554 /* Define if you have the <sys/uuid.h> header file. */
555 #undef HAVE_SYS_UUID_H
557 /* Define if you have the <sysexits.h> header file. */
558 #undef HAVE_SYSEXITS_H
560 /* Define if you have the <syslog.h> header file. */
563 /* Define if you have the <tcl.h> header file. */
566 /* Define if you have the <tcpd.h> header file. */
569 /* Define if you have the <termcap.h> header file. */
570 #undef HAVE_TERMCAP_H
572 /* Define if you have the <termios.h> header file. */
573 #undef HAVE_TERMIOS_H
575 /* Define if you have the <thread.h> header file. */
578 /* Define if you have the <unistd.h> header file. */
581 /* Define if you have the <winsock.h> header file. */
582 #undef HAVE_WINSOCK_H
584 /* Define if you have the <winsock2.h> header file. */
585 #undef HAVE_WINSOCK2_H
587 /* Define if you have the V3 library (-lV3). */
590 /* Define if you have the bind library (-lbind). */
593 /* Define if you have the dl library (-ldl). */
596 /* Define if you have the gen library (-lgen). */
599 /* Define if you have the inet library (-linet). */
602 /* Define if you have the net library (-lnet). */
605 /* Define if you have the nsl library (-lnsl). */
608 /* Define if you have the nsl_s library (-lnsl_s). */
611 /* Define if you have the resolv library (-lresolv). */
612 #undef HAVE_LIBRESOLV
614 /* Define if you have the socket library (-lsocket). */
615 #undef HAVE_LIBSOCKET
618 #undef OPENLDAP_PACKAGE
621 #undef OPENLDAP_VERSION
624 #undef LDAP_VENDOR_VERSION
627 #undef LDAP_VENDOR_VERSION_MAJOR
630 #undef LDAP_VENDOR_VERSION_MINOR
633 #undef LDAP_VENDOR_VERSION_PATCH
635 /* define this if you have mkversion */
636 #undef HAVE_MKVERSION
638 /* defined to be the EXE extension */
641 /* define if you have AIX security lib */
642 #undef HAVE_AIX_SECURITY
644 /* define to use both <string.h> and <strings.h> */
645 #undef BOTH_STRINGS_H
647 /* define if you have libtool -ltdl */
650 /* define if system uses EBCDIC instead of ASCII */
653 /* Define if TIOCGWINSZ requires sys/ioctl.h */
654 #undef GWINSZ_IN_SYS_IOCTL
656 /* define if you have POSIX termios */
657 #undef HAVE_POSIX_TERMIOS
659 /* define if you have winsock */
662 /* define if you have winsock2 */
665 /* define if you have uuid_to_str() */
666 #undef HAVE_UUID_TO_STR
668 /* define if you have res_query() */
669 #undef HAVE_RES_QUERY
671 /* define if you have HEIMDAL Kerberos */
672 #undef HAVE_HEIMDAL_KERBEROS
674 /* define if you have Kerberos V */
677 /* define if you have Kerberos V with IV support */
680 /* define if you have Kerberos IV */
683 /* define if you have Kerberos des_debug */
684 #undef HAVE_DES_DEBUG
686 /* define if you have Kerberos IV */
689 /* define if you have Kth Kerberos */
690 #undef HAVE_KTH_KERBEROS
692 /* define if you have Kerberos */
695 /* define if you have SSLeay or OpenSSL */
698 /* define if you have RSAref */
701 /* define if you have TLS */
704 /* define to support LAN Manager passwords */
707 /* if you have NT Threads */
708 #undef HAVE_NT_THREADS
710 /* if you have NT Service Manager */
711 #undef HAVE_NT_SERVICE_MANAGER
713 /* if you have NT Event Log */
714 #undef HAVE_NT_EVENT_LOG
716 /* define to pthreads API spec revision */
719 /* if you have LinuxThreads */
720 #undef HAVE_LINUX_THREADS
722 /* Define if you have the sched_yield function. */
723 #undef HAVE_SCHED_YIELD
725 /* define if you have pthread_detach function */
726 #undef HAVE_PTHREAD_DETACH
728 /* define if you have Mach Cthreads */
729 #undef HAVE_MACH_CTHREADS
731 /* if you have GNU Pth */
734 /* if you have Solaris LWP (thr) package */
737 /* if you have SunOS LWP package */
740 /* define if select implicitly yields */
741 #undef HAVE_YIELDING_SELECT
743 /* if you have LinuxThreads */
744 #undef HAVE_LINUX_THREADS
746 /* define if you have (or want) no threads */
749 /* set to the number of arguments ctime_r() expects */
752 /* set to the number of arguments gethostbyname_r() expects */
753 #undef GETHOSTBYNAME_R_NARGS
755 /* set to the number of arguments gethostbyaddr_r() expects */
756 #undef GETHOSTBYADDR_R_NARGS
758 /* define if Berkeley DB has DB_THREAD support */
759 #undef HAVE_BERKELEY_DB_THREAD
761 /* define this if Berkeley DB is available */
762 #undef HAVE_BERKELEY_DB
764 /* define this to use DBHASH w/ LDBM backend */
765 #undef LDBM_USE_DBHASH
767 /* define this to use DBBTREE w/ LDBM backend */
768 #undef LDBM_USE_DBBTREE
770 /* define if MDBM is available */
773 /* define if GNU DBM is available */
776 /* define if NDBM is available */
779 /* define if LDAP libs are dynamic */
780 #undef LDAP_LIBS_DYNAMIC
782 /* define if you have -lwrap */
785 /* define if you have -ltermcap */
788 /* define if you have -lncurses */
791 /* define if you have no termcap support */
794 /* define if you have Cyrus SASL */
795 #undef HAVE_CYRUS_SASL
797 /* define if your SASL library has sasl_version() */
798 #undef HAVE_SASL_VERSION
800 /* set to urandom device */
801 #undef URANDOM_DEVICE
803 /* define if you actually have FreeBSD fetch(3) */
806 /* define if you have -lreadline */
809 /* define if crypt(3) is available */
812 /* define if setproctitle(3) is available */
813 #undef HAVE_SETPROCTITLE
815 /* define if you have -lslp */
818 /* Define to `int' if <sys/types.h> does not define. */
821 /* Define to `long' if <sys/types.h> does not define. */
824 /* Define to `int' if <sys/types.h> does not define. */
827 /* Define if system has ptrdiff_t type */
828 #undef HAVE_PTRDIFF_T
830 /* Define to `unsigned' if <sys/types.h> does not define. */
833 /* Define to `signed int' if <sys/types.h> does not define. */
836 /* Define to `char *' if <sys/types.h> does not define. */
839 /* define to int if socklen_t is not available */
842 /* define to atomic type if sig_atomic_t is not available */
845 /* define if struct passwd has pw_gecos */
848 /* define if struct passwd has pw_passwd */
849 #undef HAVE_PW_PASSWD
851 /* define if toupper() requires islower() */
854 /* define as empty if volatile is not supported */
857 /* define if cross compiling */
858 #undef CROSS_COMPILING
860 /* The number of bytes in type short */
863 /* The number of bytes in type int */
866 /* The number of bytes in type long */
869 /* define to you inet_aton(3) is available */
870 #undef HAVE_INET_ATON
872 /* if you have spawnlp() */
875 /* define to snprintf routine */
878 /* define to vsnprintf routine */
881 /* define to snprintf routine */
884 /* define to snprintf routine */
887 /* define if sys_errlist is not declared in stdio.h or errno.h */
888 #undef DECL_SYS_ERRLIST
890 /* define if you actually have sys_errlist in your libs */
891 #undef HAVE_SYS_ERRLIST
893 /* define this to add debugging code */
896 /* define this to add syslog code */
899 /* define this to remove -lldap cache support */
902 /* define this for LDAP process title support */
903 #undef LDAP_PROCTITLE
905 /* define to support PF_LOCAL */
908 /* define to support PF_INET6 */
911 /* define to support cleartext passwords */
912 #undef SLAPD_CLEARTEXT
914 /* define to support crypt(3) passwords */
917 /* define to support Kerberos passwords */
920 /* define to support SASL passwords */
923 /* define to support multimaster replication */
924 #undef SLAPD_MULTIMASTER
926 /* define to support phonetic */
927 #undef SLAPD_PHONETIC
929 /* define to support reverse lookups */
930 #undef SLAPD_RLOOKUPS
932 /* define to support per-object ACIs */
933 #undef SLAPD_ACI_ENABLED
935 /* define to support modules */
938 /* define to support BDB backend */
941 /* define to support dynamic BDB backend */
942 #undef SLAPD_BDB_DYNAMIC
944 /* define to support DNS SRV backend */
947 /* define to support dynamic DNS SRV backend */
948 #undef SLAPD_DNSSRV_DYNAMIC
950 /* define to support LDAP backend */
953 /* define to support dynamic LDAP backend */
954 #undef SLAPD_LDAP_DYNAMIC
956 /* define to support LDBM backend */
959 /* define to support dynamic LDBM backend */
960 #undef SLAPD_LDBM_DYNAMIC
962 /* define to support LDAP Metadirectory backend */
965 /* define to support dynamic LDAP Metadirectory backend */
966 #undef SLAPD_META_DYNAMIC
968 /* define to support cn=Monitor backend */
971 /* define to support dynamic cn=Monitor backend */
972 #undef SLAPD_MONITOR_DYNAMIC
974 /* define to support NULL backend */
977 /* define to support dynamic NULL backend */
978 #undef SLAPD_NULL_DYNAMIC
980 /* define to support PASSWD backend */
983 /* define to support dynamic PASSWD backend */
984 #undef SLAPD_PASSWD_DYNAMIC
986 /* define to support PERL backend */
989 /* define to support dynamic PERL backend */
990 #undef SLAPD_PERL_DYNAMIC
992 /* define to support SHELL backend */
995 /* define to support dynamic SHELL backend */
996 #undef SLAPD_SHELL_DYNAMIC
998 /* define to support TCL backend */
1001 /* define to support dynamic TCL backend */
1002 #undef SLAPD_TCL_DYNAMIC
1004 /* define to support SQL backend */
1007 /* define to support dynamic SQL backend */
1008 #undef SLAPD_SQL_DYNAMIC
1010 /* define to enable rewriting in back-ldap and back-meta */
1011 #undef ENABLE_REWRITE
1014 /* begin of postamble */
1017 /* don't suck in all of the win32 api */
1018 # define WIN32_LEAN_AND_MEAN 1
1021 #ifndef LDAP_NEEDS_PROTOTYPES
1022 /* force LDAP_P to always include prototypes */
1023 #define LDAP_NEEDS_PROTOTYPES 1
1026 #ifdef HAVE_STDDEF_H
1027 # include <stddef.h>
1030 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
1033 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
1038 /* ASCII/EBCDIC converting replacements for stdio funcs
1039 * vsnprintf and snprintf are used too, but they are already
1040 * checked by the configure script
1042 #define fputs ber_pvt_fputs
1043 #define fgets ber_pvt_fgets
1044 #define printf ber_pvt_printf
1045 #define fprintf ber_pvt_fprintf
1046 #define vfprintf ber_pvt_vfprintf
1047 #define vsprintf ber_pvt_vsprintf
1050 #include "ldap_cdefs.h"
1051 #include "ldap_features.h"
1053 #include "ac/assert.h"
1055 #endif /* _LDAP_PORTABLE_H */