1 /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1998-2004 The OpenLDAP Foundation
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
11 * A copy of this license is available in the file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
16 #ifndef _LDAP_PORTABLE_H
17 #define _LDAP_PORTABLE_H
22 /* Define to empty if the keyword does not work. */
25 /* Define to `int' if <sys/types.h> doesn't define. */
28 /* Define if you don't have vprintf but do have _doprnt. */
31 /* Define if your struct stat has st_blksize. */
32 #undef HAVE_ST_BLKSIZE
34 /* Define if you have the strftime function. */
37 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
38 #undef HAVE_SYS_WAIT_H
40 /* Define if you have the vprintf function. */
43 /* Define as the return type of signal handlers (int or void). */
46 /* Define to the type of arg1 for select(). */
47 #undef SELECT_TYPE_ARG1
49 /* Define to the type of args 2, 3 and 4 for select(). */
50 #undef SELECT_TYPE_ARG234
52 /* Define to the type of arg5 for select(). */
53 #undef SELECT_TYPE_ARG5
55 /* Define if you have the ANSI C header files. */
58 /* Define if you can safely include both <sys/time.h> and <time.h>. */
59 #undef TIME_WITH_SYS_TIME
61 /* Define if your <sys/time.h> declares struct tm. */
64 /* Define to `int' if <sys/types.h> doesn't define. */
67 /* Define if your processor stores words with the most significant
68 byte first (like Motorola and SPARC, unlike Intel and VAX). */
69 #undef WORDS_BIGENDIAN
71 /* define this if needed to get reentrant functions */
79 /* define this if needed to get threadsafe functions */
93 #ifndef _SGI_MP_SOURCE
97 /* These are defined in ldap_features.h */
99 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
100 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
101 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
102 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
105 /* These are defined in lber_types.h */
113 /* Define if you have the bcopy function. */
116 /* Define if you have the chroot function. */
119 /* Define if you have the closesocket function. */
120 #undef HAVE_CLOSESOCKET
122 /* Define if you have the ctime_r function. */
125 /* Define if you have the endgrent function. */
128 /* Define if you have the endpwent function. */
131 /* Define if you have the fcntl function. */
134 /* Define if you have the flock function. */
137 /* Define if you have the fstat function. */
140 /* Define if you have the gai_strerror function. */
141 #undef HAVE_GAI_STRERROR
143 /* Define if you have the getaddrinfo function. */
144 #undef HAVE_GETADDRINFO
146 /* Define if you have the getdtablesize function. */
147 #undef HAVE_GETDTABLESIZE
149 /* Define if you have the getgrgid function. */
152 /* Define if you have the gethostbyaddr_r function. */
153 #undef HAVE_GETHOSTBYADDR_R
155 /* Define if you have the gethostbyname_r function. */
156 #undef HAVE_GETHOSTBYNAME_R
158 /* Define if you have the gethostname function. */
159 #undef HAVE_GETHOSTNAME
161 /* Define if you have the getnameinfo function. */
162 #undef HAVE_GETNAMEINFO
164 /* Define if you have the getopt function. */
167 /* Define if you have the getpass function. */
170 /* Define if you have the getpassphrase function. */
171 #undef HAVE_GETPASSPHRASE
173 /* Define if you have the getpeereid function. */
174 #undef HAVE_GETPEEREID
176 /* Define if you have the getpwnam function. */
179 /* Define if you have the getpwuid function. */
182 /* Define if you have the getspnam function. */
185 /* Define if you have the gettimeofday function. */
186 #undef HAVE_GETTIMEOFDAY
188 /* Define if you have the inet_ntop function. */
189 #undef HAVE_INET_NTOP
191 /* Define if you have the initgroups function. */
192 #undef HAVE_INITGROUPS
194 /* Define if you have the lockf function. */
197 /* Define if you have the memcpy function. */
200 /* Define if you have the memmove function. */
203 /* Define if you have the mkstemp function. */
206 /* Define if you have the mktemp function. */
209 /* Define if you have the pipe function. */
212 /* Define if you have the pthread_getconcurrency function. */
213 #undef HAVE_PTHREAD_GETCONCURRENCY
215 /* Define if you have the pthread_kill function. */
216 #undef HAVE_PTHREAD_KILL
218 /* Define if you have the pthread_kill_other_threads_np function. */
219 #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
221 /* Define if you have the pthread_rwlock_destroy function. */
222 #undef HAVE_PTHREAD_RWLOCK_DESTROY
224 /* Define if you have the pthread_setconcurrency function. */
225 #undef HAVE_PTHREAD_SETCONCURRENCY
227 /* Define if you have the pthread_yield function. */
228 #undef HAVE_PTHREAD_YIELD
230 /* Define if you have the read function. */
233 /* Define if you have the recv function. */
236 /* Define if you have the recvfrom function. */
239 /* Define if you have the sched_yield function. */
240 #undef HAVE_SCHED_YIELD
242 /* Define if you have the send function. */
245 /* Define if you have the sendmsg function. */
248 /* Define if you have the sendto function. */
251 /* Define if you have the setegid function. */
254 /* Define if you have the seteuid function. */
257 /* Define if you have the setgid function. */
260 /* Define if you have the setpwfile function. */
261 #undef HAVE_SETPWFILE
263 /* Define if you have the setsid function. */
266 /* Define if you have the setuid function. */
269 /* Define if you have the sigaction function. */
270 #undef HAVE_SIGACTION
272 /* Define if you have the signal function. */
275 /* Define if you have the sigset function. */
278 /* Define if you have the snprintf function. */
281 /* Define if you have the strdup function. */
284 /* Define if you have the strerror function. */
287 /* Define if you have the strpbrk function. */
290 /* Define if you have the strrchr function. */
293 /* Define if you have the strsep function. */
296 /* Define if you have the strspn function. */
299 /* Define if you have the strstr function. */
302 /* Define if you have the strtol function. */
305 /* Define if you have the strtoll function. */
308 /* Define if you have the strtoq function. */
311 /* Define if you have the strtoul function. */
314 /* Define if you have the strtouq function. */
317 /* Define if you have the sysconf function. */
320 /* Define if you have the thr_getconcurrency function. */
321 #undef HAVE_THR_GETCONCURRENCY
323 /* Define if you have the thr_setconcurrency function. */
324 #undef HAVE_THR_SETCONCURRENCY
326 /* Define if you have the thr_yield function. */
327 #undef HAVE_THR_YIELD
329 /* Define if you have the usleep function. */
332 /* Define if you have the vsnprintf function. */
333 #undef HAVE_VSNPRINTF
335 /* Define if you have the wait4 function. */
338 /* Define if you have the waitpid function. */
341 /* Define if you have the write function. */
344 /* Define if you have the <arpa/inet.h> header file. */
345 #undef HAVE_ARPA_INET_H
347 /* Define if you have the <arpa/nameser.h> header file. */
348 #undef HAVE_ARPA_NAMESER_H
350 /* Define if you have the <assert.h> header file. */
353 /* Define if you have the <bits/types.h> header file. */
354 #undef HAVE_BITS_TYPES_H
356 /* Define if you have the <conio.h> header file. */
359 /* Define if you have the <crypt.h> header file. */
362 /* Define if you have the <cthreads.h> header file. */
363 #undef HAVE_CTHREADS_H
365 /* Define if you have the <db.h> header file. */
368 /* Define if you have the <db_185.h> header file. */
371 /* Define if you have the <des.h> header file. */
374 /* Define if you have the <direct.h> header file. */
377 /* Define if you have the <dirent.h> header file. */
380 /* Define if you have the <dlfcn.h> header file. */
383 /* Define if you have the <errno.h> header file. */
386 /* Define if you have the <fcntl.h> header file. */
389 /* Define if you have the <filio.h> header file. */
392 /* Define if you have the <gdbm.h> header file. */
395 /* Define if you have the <getopt.h> header file. */
398 /* Define if you have the <grp.h> header file. */
401 /* Define if you have the <heim_err.h> header file. */
402 #undef HAVE_HEIM_ERR_H
404 /* Define if you have the <io.h> header file. */
407 /* Define if you have the <kerberosIV/des.h> header file. */
408 #undef HAVE_KERBEROSIV_DES_H
410 /* Define if you have the <kerberosIV/krb.h> header file. */
411 #undef HAVE_KERBEROSIV_KRB_H
413 /* Define if you have the <krb-archaeology.h> header file. */
414 #undef HAVE_KRB_ARCHAEOLOGY_H
416 /* Define if you have the <krb.h> header file. */
419 /* Define if you have the <krb5.h> header file. */
422 /* Define if you have the <libutil.h> header file. */
423 #undef HAVE_LIBUTIL_H
425 /* Define if you have the <limits.h> header file. */
428 /* Define if you have the <locale.h> header file. */
431 /* Define if you have the <ltdl.h> header file. */
434 /* Define if you have the <lwp/lwp.h> header file. */
435 #undef HAVE_LWP_LWP_H
437 /* Define if you have the <mach/cthreads.h> header file. */
438 #undef HAVE_MACH_CTHREADS_H
440 /* Define if you have the <malloc.h> header file. */
443 /* Define if you have the <mdbm.h> header file. */
446 /* Define if you have the <memory.h> header file. */
449 /* Define if you have the <ndbm.h> header file. */
452 /* Define if you have the <ndir.h> header file. */
455 /* Define if you have the <netinet/tcp.h> header file. */
456 #undef HAVE_NETINET_TCP_H
458 /* Define if you have the <openssl/ssl.h> header file. */
459 #undef HAVE_OPENSSL_SSL_H
461 /* Define if you have the <process.h> header file. */
462 #undef HAVE_PROCESS_H
464 /* Define if you have the <psap.h> header file. */
467 /* Define if you have the <pth.h> header file. */
470 /* Define if you have the <pthread.h> header file. */
471 #undef HAVE_PTHREAD_H
473 /* Define if you have the <pwd.h> header file. */
476 /* Define if you have the <regex.h> header file. */
479 /* Define if you have the <resolv.h> header file. */
482 /* Define if you have the <sasl.h> header file. */
485 /* Define if you have the <sasl/sasl.h> header file. */
486 #undef HAVE_SASL_SASL_H
488 /* Define if you have the <sched.h> header file. */
491 /* Define if you have the <sgtty.h> header file. */
494 /* Define if you have the <shadow.h> header file. */
497 /* Define if you have the <slp.h> header file. */
500 /* Define if you have the <sql.h> header file. */
503 /* Define if you have the <sqlext.h> header file. */
506 /* Define if you have the <ssl.h> header file. */
509 /* Define if you have the <stddef.h> header file. */
512 /* Define if you have the <string.h> header file. */
515 /* Define if you have the <strings.h> header file. */
516 #undef HAVE_STRINGS_H
518 /* Define if you have the <synch.h> header file. */
521 /* Define if you have the <sys/dir.h> header file. */
522 #undef HAVE_SYS_DIR_H
524 /* Define if you have the <sys/errno.h> header file. */
525 #undef HAVE_SYS_ERRNO_H
527 /* Define if you have the <sys/file.h> header file. */
528 #undef HAVE_SYS_FILE_H
530 /* Define if you have the <sys/filio.h> header file. */
531 #undef HAVE_SYS_FILIO_H
533 /* Define if you have the <sys/ioctl.h> header file. */
534 #undef HAVE_SYS_IOCTL_H
536 /* Define if you have the <sys/ndir.h> header file. */
537 #undef HAVE_SYS_NDIR_H
539 /* Define if you have the <sys/param.h> header file. */
540 #undef HAVE_SYS_PARAM_H
542 /* Define if you have the <sys/resource.h> header file. */
543 #undef HAVE_SYS_RESOURCE_H
545 /* Define if you have the <sys/select.h> header file. */
546 #undef HAVE_SYS_SELECT_H
548 /* Define if you have the <sys/socket.h> header file. */
549 #undef HAVE_SYS_SOCKET_H
551 /* Define if you have the <sys/stat.h> header file. */
552 #undef HAVE_SYS_STAT_H
554 /* Define if you have the <sys/syslog.h> header file. */
555 #undef HAVE_SYS_SYSLOG_H
557 /* Define if you have the <sys/time.h> header file. */
558 #undef HAVE_SYS_TIME_H
560 /* Define if you have the <sys/types.h> header file. */
561 #undef HAVE_SYS_TYPES_H
563 /* Define if you have the <sys/ucred.h> header file. */
564 #undef HAVE_SYS_UCRED_H
566 /* Define if you have the <sys/uio.h> header file. */
567 #undef HAVE_SYS_UIO_H
569 /* Define if you have the <sys/un.h> header file. */
572 /* Define if you have the <sys/uuid.h> header file. */
573 #undef HAVE_SYS_UUID_H
575 /* Define if you have the <sysexits.h> header file. */
576 #undef HAVE_SYSEXITS_H
578 /* Define if you have the <syslog.h> header file. */
581 /* Define if you have the <tcpd.h> header file. */
584 /* Define if you have the <termios.h> header file. */
585 #undef HAVE_TERMIOS_H
587 /* Define if you have the <thread.h> header file. */
590 /* Define if you have the <unistd.h> header file. */
593 /* Define if you have the <winsock.h> header file. */
594 #undef HAVE_WINSOCK_H
596 /* Define if you have the <winsock2.h> header file. */
597 #undef HAVE_WINSOCK2_H
599 /* Define if you have the V3 library (-lV3). */
602 /* Define if you have the bind library (-lbind). */
605 /* Define if you have the gen library (-lgen). */
608 /* Define if you have the inet library (-linet). */
611 /* Define if you have the net library (-lnet). */
614 /* Define if you have the nsl library (-lnsl). */
617 /* Define if you have the nsl_s library (-lnsl_s). */
620 /* Define if you have the resolv library (-lresolv). */
621 #undef HAVE_LIBRESOLV
623 /* Define if you have the socket library (-lsocket). */
624 #undef HAVE_LIBSOCKET
627 #undef OPENLDAP_PACKAGE
630 #undef OPENLDAP_VERSION
633 #undef LDAP_VENDOR_VERSION
636 #undef LDAP_VENDOR_VERSION_MAJOR
639 #undef LDAP_VENDOR_VERSION_MINOR
642 #undef LDAP_VENDOR_VERSION_PATCH
644 /* define this if you have mkversion */
645 #undef HAVE_MKVERSION
647 /* defined to be the EXE extension */
650 /* define if you have AIX security lib */
651 #undef HAVE_AIX_SECURITY
653 /* define to use both <string.h> and <strings.h> */
654 #undef BOTH_STRINGS_H
656 /* define if you have libtool -ltdl */
659 /* define if system uses EBCDIC instead of ASCII */
662 /* Define if TIOCGWINSZ requires sys/ioctl.h */
663 #undef GWINSZ_IN_SYS_IOCTL
665 /* define if you have POSIX termios */
666 #undef HAVE_POSIX_TERMIOS
668 /* define if you have winsock */
671 /* define if you have winsock2 */
674 /* define if you have uuid_to_str() */
675 #undef HAVE_UUID_TO_STR
677 /* define if you have res_query() */
678 #undef HAVE_RES_QUERY
680 /* define if you have HEIMDAL Kerberos */
681 #undef HAVE_HEIMDAL_KERBEROS
683 /* define if you have Kerberos V */
686 /* define if you have Kerberos V with IV support */
689 /* define if you have Kerberos IV */
692 /* define if you have Kerberos des_debug */
693 #undef HAVE_DES_DEBUG
695 /* define if you have Kerberos IV */
698 /* define if you have Kth Kerberos */
699 #undef HAVE_KTH_KERBEROS
701 /* define if you have Kerberos */
704 /* define if you have SSLeay or OpenSSL */
707 /* define if you have RSAref */
710 /* define if you have TLS */
713 /* define to support LAN Manager passwords */
716 /* if you have NT Threads */
717 #undef HAVE_NT_THREADS
719 /* if you have NT Service Manager */
720 #undef HAVE_NT_SERVICE_MANAGER
722 /* if you have NT Event Log */
723 #undef HAVE_NT_EVENT_LOG
725 /* define to pthreads API spec revision */
728 /* if you have LinuxThreads */
729 #undef HAVE_LINUX_THREADS
731 /* Define if you have the sched_yield function. */
732 #undef HAVE_SCHED_YIELD
734 /* define if you have pthread_detach function */
735 #undef HAVE_PTHREAD_DETACH
737 /* define if you have Mach Cthreads */
738 #undef HAVE_MACH_CTHREADS
740 /* if you have GNU Pth */
743 /* if you have Solaris LWP (thr) package */
746 /* if you have SunOS LWP package */
749 /* define if select implicitly yields */
750 #undef HAVE_YIELDING_SELECT
752 /* if you have LinuxThreads */
753 #undef HAVE_LINUX_THREADS
755 /* define if you have (or want) no threads */
758 /* set to the number of arguments ctime_r() expects */
761 /* set to the number of arguments gethostbyname_r() expects */
762 #undef GETHOSTBYNAME_R_NARGS
764 /* set to the number of arguments gethostbyaddr_r() expects */
765 #undef GETHOSTBYADDR_R_NARGS
767 /* define if Berkeley DB has DB_THREAD support */
768 #undef HAVE_BERKELEY_DB_THREAD
770 /* define this if Berkeley DB is available */
771 #undef HAVE_BERKELEY_DB
773 /* define this to use DBHASH w/ LDBM backend */
774 #undef LDBM_USE_DBHASH
776 /* define this to use DBBTREE w/ LDBM backend */
777 #undef LDBM_USE_DBBTREE
779 /* define if MDBM is available */
782 /* define if GNU DBM is available */
785 /* define if NDBM is available */
788 /* define if LDAP libs are dynamic */
789 #undef LDAP_LIBS_DYNAMIC
791 /* define if you have -lwrap */
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 crypt(3) is available */
809 /* define if setproctitle(3) is available */
810 #undef HAVE_SETPROCTITLE
812 /* define if you have -lslp */
815 /* define if you have 'long long' */
816 #undef HAVE_LONG_LONG
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 /* The number of bytes in type wchar_t */
870 #undef SIZEOF_WCHAR_T
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 if struct msghdr has msg_accrights */
885 #undef HAVE_MSGHDR_MSG_ACCRIGHTS
887 /* define to snprintf routine */
890 /* define to snprintf routine */
893 /* define if sys_errlist is not declared in stdio.h or errno.h */
894 #undef DECL_SYS_ERRLIST
896 /* define if you actually have sys_errlist in your libs */
897 #undef HAVE_SYS_ERRLIST
899 /* define if you have libtool -ltdl */
902 /* define this to add SLAPI code */
905 /* define this to add debugging code */
908 /* define this to add syslog code */
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 SASL passwords */
929 /* define to support multimaster replication */
930 #undef SLAPD_MULTIMASTER
932 /* define to support reverse lookups */
933 #undef SLAPD_RLOOKUPS
935 /* define to support per-object ACIs */
936 #undef SLAPD_ACI_ENABLED
938 /* define to support modules */
941 /* statically linked module */
942 #undef SLAPD_MOD_STATIC
944 /* dynamically linked module */
945 #undef SLAPD_MOD_DYNAMIC
947 /* define to support BDB backend */
950 /* define to support DNS SRV backend */
953 /* define to support HDB backend */
956 /* define to support LDAP backend */
959 /* define to support LDBM backend */
962 /* define to support LDAP Metadirectory backend */
965 /* define to support cn=Monitor backend */
968 /* define to support NULL backend */
971 /* define to support PASSWD backend */
974 /* define to support PERL backend */
977 /* define to support SHELL backend */
980 /* define to support SQL backend */
983 /* define for Dynamic Group overlay */
984 #undef SLAPD_OVER_DYNGROUP
986 /* define for Proxy Cache overlay */
987 #undef SLAPD_OVER_PROXYCACHE
989 /* define to enable rewriting in back-ldap and back-meta */
990 #undef ENABLE_REWRITE
992 /* define to enable slapi library */
996 /* begin of postamble */
999 /* don't suck in all of the win32 api */
1000 # define WIN32_LEAN_AND_MEAN 1
1003 #ifndef LDAP_NEEDS_PROTOTYPES
1004 /* force LDAP_P to always include prototypes */
1005 #define LDAP_NEEDS_PROTOTYPES 1
1008 #ifndef LDAP_REL_ENG
1009 #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
1012 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
1017 #ifdef HAVE_STDDEF_H
1018 # include <stddef.h>
1022 /* ASCII/EBCDIC converting replacements for stdio funcs
1023 * vsnprintf and snprintf are used too, but they are already
1024 * checked by the configure script
1026 #define fputs ber_pvt_fputs
1027 #define fgets ber_pvt_fgets
1028 #define printf ber_pvt_printf
1029 #define fprintf ber_pvt_fprintf
1030 #define vfprintf ber_pvt_vfprintf
1031 #define vsprintf ber_pvt_vsprintf
1034 #include "ac/fdset.h"
1036 #include "ldap_cdefs.h"
1037 #include "ldap_features.h"
1039 #include "ac/assert.h"
1040 #include "ac/localize.h"
1042 #endif /* _LDAP_PORTABLE_H */