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 getpwnam function. */
170 /* Define if you have the getpwuid function. */
173 /* Define if you have the getspnam function. */
176 /* Define if you have the gettimeofday function. */
177 #undef HAVE_GETTIMEOFDAY
179 /* Define if you have the inet_ntop function. */
180 #undef HAVE_INET_NTOP
182 /* Define if you have the initgroups function. */
183 #undef HAVE_INITGROUPS
185 /* Define if you have the lockf function. */
188 /* Define if you have the memcpy function. */
191 /* Define if you have the memmove function. */
194 /* Define if you have the mkstemp function. */
197 /* Define if you have the mktemp function. */
200 /* Define if you have the pipe function. */
203 /* Define if you have the pthread_getconcurrency function. */
204 #undef HAVE_PTHREAD_GETCONCURRENCY
206 /* Define if you have the pthread_kill function. */
207 #undef HAVE_PTHREAD_KILL
209 /* Define if you have the pthread_kill_other_threads_np function. */
210 #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
212 /* Define if you have the pthread_rwlock_destroy function. */
213 #undef HAVE_PTHREAD_RWLOCK_DESTROY
215 /* Define if you have the pthread_setconcurrency function. */
216 #undef HAVE_PTHREAD_SETCONCURRENCY
218 /* Define if you have the pthread_yield function. */
219 #undef HAVE_PTHREAD_YIELD
221 /* Define if you have the read function. */
224 /* Define if you have the recv function. */
227 /* Define if you have the recvfrom function. */
230 /* Define if you have the recvmsg 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 <ssl.h> header file. */
491 /* Define if you have the <stddef.h> header file. */
494 /* Define if you have the <string.h> header file. */
497 /* Define if you have the <strings.h> header file. */
498 #undef HAVE_STRINGS_H
500 /* Define if you have the <synch.h> header file. */
503 /* Define if you have the <sys/dir.h> header file. */
504 #undef HAVE_SYS_DIR_H
506 /* Define if you have the <sys/errno.h> header file. */
507 #undef HAVE_SYS_ERRNO_H
509 /* Define if you have the <sys/file.h> header file. */
510 #undef HAVE_SYS_FILE_H
512 /* Define if you have the <sys/filio.h> header file. */
513 #undef HAVE_SYS_FILIO_H
515 /* Define if you have the <sys/ioctl.h> header file. */
516 #undef HAVE_SYS_IOCTL_H
518 /* Define if you have the <sys/ndir.h> header file. */
519 #undef HAVE_SYS_NDIR_H
521 /* Define if you have the <sys/param.h> header file. */
522 #undef HAVE_SYS_PARAM_H
524 /* Define if you have the <sys/resource.h> header file. */
525 #undef HAVE_SYS_RESOURCE_H
527 /* Define if you have the <sys/select.h> header file. */
528 #undef HAVE_SYS_SELECT_H
530 /* Define if you have the <sys/socket.h> header file. */
531 #undef HAVE_SYS_SOCKET_H
533 /* Define if you have the <sys/syslog.h> header file. */
534 #undef HAVE_SYS_SYSLOG_H
536 /* Define if you have the <sys/time.h> header file. */
537 #undef HAVE_SYS_TIME_H
539 /* Define if you have the <sys/types.h> header file. */
540 #undef HAVE_SYS_TYPES_H
542 /* Define if you have the <sys/un.h> header file. */
545 /* Define if you have the <sys/uuid.h> header file. */
546 #undef HAVE_SYS_UUID_H
548 /* Define if you have the <sysexits.h> header file. */
549 #undef HAVE_SYSEXITS_H
551 /* Define if you have the <syslog.h> header file. */
554 /* Define if you have the <tcl.h> header file. */
557 /* Define if you have the <tcpd.h> header file. */
560 /* Define if you have the <termcap.h> header file. */
561 #undef HAVE_TERMCAP_H
563 /* Define if you have the <termios.h> header file. */
564 #undef HAVE_TERMIOS_H
566 /* Define if you have the <thread.h> header file. */
569 /* Define if you have the <unistd.h> header file. */
572 /* Define if you have the <winsock.h> header file. */
573 #undef HAVE_WINSOCK_H
575 /* Define if you have the <winsock2.h> header file. */
576 #undef HAVE_WINSOCK2_H
578 /* Define if you have the V3 library (-lV3). */
581 /* Define if you have the bind library (-lbind). */
584 /* Define if you have the dl library (-ldl). */
587 /* Define if you have the gen library (-lgen). */
590 /* Define if you have the inet library (-linet). */
593 /* Define if you have the net library (-lnet). */
596 /* Define if you have the nsl library (-lnsl). */
599 /* Define if you have the nsl_s library (-lnsl_s). */
602 /* Define if you have the resolv library (-lresolv). */
603 #undef HAVE_LIBRESOLV
605 /* Define if you have the socket library (-lsocket). */
606 #undef HAVE_LIBSOCKET
609 #undef OPENLDAP_PACKAGE
612 #undef OPENLDAP_VERSION
615 #undef LDAP_VENDOR_VERSION
618 #undef LDAP_VENDOR_VERSION_MAJOR
621 #undef LDAP_VENDOR_VERSION_MINOR
624 #undef LDAP_VENDOR_VERSION_PATCH
626 /* define this if you have mkversion */
627 #undef HAVE_MKVERSION
629 /* defined to be the EXE extension */
632 /* define if you have AIX security lib */
633 #undef HAVE_AIX_SECURITY
635 /* define to use both <string.h> and <strings.h> */
636 #undef BOTH_STRINGS_H
638 /* define if you have libtool -ltdl */
641 /* define if system uses EBCDIC instead of ASCII */
644 /* Define if TIOCGWINSZ requires sys/ioctl.h */
645 #undef GWINSZ_IN_SYS_IOCTL
647 /* define if you have POSIX termios */
648 #undef HAVE_POSIX_TERMIOS
650 /* define if you have winsock */
653 /* define if you have winsock2 */
656 /* define if you have uuid_to_str() */
657 #undef HAVE_UUID_TO_STR
659 /* define if you have res_query() */
660 #undef HAVE_RES_QUERY
662 /* define if you have HEIMDAL Kerberos */
663 #undef HAVE_HEIMDAL_KERBEROS
665 /* define if you have Kerberos V */
668 /* define if you have Kerberos V with IV support */
671 /* define if you have Kerberos IV */
674 /* define if you have Kerberos des_debug */
675 #undef HAVE_DES_DEBUG
677 /* define if you have Kerberos IV */
680 /* define if you have Kth Kerberos */
681 #undef HAVE_KTH_KERBEROS
683 /* define if you have Kerberos */
686 /* define if you have SSLeay or OpenSSL */
689 /* define if you have RSAref */
692 /* define if you have TLS */
695 /* define to support LAN Manager passwords */
698 /* set to the number of arguments ctime_r() expects */
701 /* set to the number of arguments gethostbyname_r() expects */
702 #undef GETHOSTBYNAME_R_NARGS
704 /* set to the number of arguments gethostbyaddr_r() expects */
705 #undef GETHOSTBYADDR_R_NARGS
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 /* define if Berkeley DB has DB_THREAD support */
750 #undef HAVE_BERKELEY_DB_THREAD
752 /* define this if Berkeley DB is available */
753 #undef HAVE_BERKELEY_DB
755 /* define this to use DBHASH w/ LDBM backend */
756 #undef LDBM_USE_DBHASH
758 /* define this to use DBBTREE w/ LDBM backend */
759 #undef LDBM_USE_DBBTREE
761 /* define if MDBM is available */
764 /* define if GNU DBM is available */
767 /* define if NDBM is available */
770 /* define if LDAP libs are dynamic */
771 #undef LDAP_LIBS_DYNAMIC
773 /* define if you have -lwrap */
776 /* define if you have -ltermcap */
779 /* define if you have -lncurses */
782 /* define if you have no termcap support */
785 /* define if you have Cyrus SASL */
786 #undef HAVE_CYRUS_SASL
788 /* define if your SASL library has sasl_version() */
789 #undef HAVE_SASL_VERSION
791 /* set to urandom device */
792 #undef URANDOM_DEVICE
794 /* define if you actually have FreeBSD fetch(3) */
797 /* define if you have -lreadline */
800 /* define if crypt(3) is available */
803 /* define if setproctitle(3) is available */
804 #undef HAVE_SETPROCTITLE
806 /* define if you have -lslp */
809 /* Define to `int' if <sys/types.h> does not define. */
812 /* Define to `long' if <sys/types.h> does not define. */
815 /* Define to `int' if <sys/types.h> does not define. */
818 /* Define if system has ptrdiff_t type */
819 #undef HAVE_PTRDIFF_T
821 /* Define to `unsigned' if <sys/types.h> does not define. */
824 /* Define to `signed int' if <sys/types.h> does not define. */
827 /* Define to `char *' if <sys/types.h> does not define. */
830 /* define to int if socklen_t is not available */
833 /* define to atomic type if sig_atomic_t is not available */
836 /* define if struct passwd has pw_gecos */
839 /* define if struct passwd has pw_passwd */
840 #undef HAVE_PW_PASSWD
842 /* define if toupper() requires islower() */
845 /* define as empty if volatile is not supported */
848 /* define if cross compiling */
849 #undef CROSS_COMPILING
851 /* The number of bytes in type short */
854 /* The number of bytes in type int */
857 /* The number of bytes in type long */
860 /* define to you inet_aton(3) is available */
861 #undef HAVE_INET_ATON
863 /* if you have spawnlp() */
866 /* define to snprintf routine */
869 /* define to vsnprintf routine */
872 /* define to snprintf routine */
875 /* define to snprintf routine */
878 /* define if sys_errlist is not declared in stdio.h or errno.h */
879 #undef DECL_SYS_ERRLIST
881 /* define if you actually have sys_errlist in your libs */
882 #undef HAVE_SYS_ERRLIST
884 /* define this to add debugging code */
887 /* define this to add syslog code */
890 /* define this to remove -lldap cache support */
893 /* define this for LDAP process title support */
894 #undef LDAP_PROCTITLE
896 /* define to support PF_LOCAL */
899 /* define to support PF_INET6 */
902 /* define to support cleartext passwords */
903 #undef SLAPD_CLEARTEXT
905 /* define to support crypt(3) passwords */
908 /* define to support Kerberos passwords */
911 /* define to support SASL passwords */
914 /* define to support multimaster replication */
915 #undef SLAPD_MULTIMASTER
917 /* define to support phonetic */
918 #undef SLAPD_PHONETIC
920 /* define to support reverse lookups */
921 #undef SLAPD_RLOOKUPS
923 /* define to support per-object ACIs */
924 #undef SLAPD_ACI_ENABLED
926 /* define to support modules */
929 /* define to support BDB backend */
932 /* define to support dynamic BDB backend */
933 #undef SLAPD_BDB_DYNAMIC
935 /* define to support DNS SRV backend */
938 /* define to support dynamic DNS SRV backend */
939 #undef SLAPD_DNSSRV_DYNAMIC
941 /* define to support LDAP backend */
944 /* define to support dynamic LDAP backend */
945 #undef SLAPD_LDAP_DYNAMIC
947 /* define to support LDBM backend */
950 /* define to support dynamic LDBM backend */
951 #undef SLAPD_LDBM_DYNAMIC
953 /* define to support LDAP Metadirectory backend */
956 /* define to support dynamic LDAP Metadirectory backend */
957 #undef SLAPD_META_DYNAMIC
959 /* define to support cn=Monitor backend */
962 /* define to support dynamic cn=Monitor backend */
963 #undef SLAPD_MONITOR_DYNAMIC
965 /* define to support NULL backend */
968 /* define to support dynamic NULL backend */
969 #undef SLAPD_NULL_DYNAMIC
971 /* define to support PASSWD backend */
974 /* define to support dynamic PASSWD backend */
975 #undef SLAPD_PASSWD_DYNAMIC
977 /* define to support PERL backend */
980 /* define to support dynamic PERL backend */
981 #undef SLAPD_PERL_DYNAMIC
983 /* define to support SHELL backend */
986 /* define to support dynamic SHELL backend */
987 #undef SLAPD_SHELL_DYNAMIC
989 /* define to support TCL backend */
992 /* define to support dynamic TCL backend */
993 #undef SLAPD_TCL_DYNAMIC
995 /* define to support SQL backend */
998 /* define to support dynamic SQL backend */
999 #undef SLAPD_SQL_DYNAMIC
1001 /* define to enable rewriting in back-ldap and back-meta */
1002 #undef ENABLE_REWRITE
1005 /* begin of postamble */
1008 /* don't suck in all of the win32 api */
1009 # define WIN32_LEAN_AND_MEAN 1
1012 #ifndef LDAP_NEEDS_PROTOTYPES
1013 /* force LDAP_P to always include prototypes */
1014 #define LDAP_NEEDS_PROTOTYPES 1
1017 #ifdef HAVE_STDDEF_H
1018 # include <stddef.h>
1021 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
1024 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
1029 /* ASCII/EBCDIC converting replacements for stdio funcs
1030 * vsnprintf and snprintf are used too, but they are already
1031 * checked by the configure script
1033 #define fputs ber_pvt_fputs
1034 #define fgets ber_pvt_fgets
1035 #define printf ber_pvt_printf
1036 #define fprintf ber_pvt_fprintf
1037 #define vfprintf ber_pvt_vfprintf
1038 #define vsprintf ber_pvt_vsprintf
1041 #include "ldap_cdefs.h"
1042 #include "ldap_features.h"
1044 #include "ac/assert.h"
1046 #endif /* _LDAP_PORTABLE_H */