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 gai_strerror function. */
135 #undef HAVE_GAI_STRERROR
137 /* Define if you have the getaddrinfo function. */
138 #undef HAVE_GETADDRINFO
140 /* Define if you have the getdtablesize function. */
141 #undef HAVE_GETDTABLESIZE
143 /* Define if you have the getgrgid function. */
146 /* Define if you have the gethostbyaddr_r function. */
147 #undef HAVE_GETHOSTBYADDR_R
149 /* Define if you have the gethostbyname_r function. */
150 #undef HAVE_GETHOSTBYNAME_R
152 /* Define if you have the gethostname function. */
153 #undef HAVE_GETHOSTNAME
155 /* Define if you have the getopt function. */
158 /* Define if you have the getpass function. */
161 /* Define if you have the getpassphrase function. */
162 #undef HAVE_GETPASSPHRASE
164 /* Define if you have the getpwnam function. */
167 /* Define if you have the getpwuid function. */
170 /* Define if you have the getspnam function. */
173 /* Define if you have the gettimeofday function. */
174 #undef HAVE_GETTIMEOFDAY
176 /* Define if you have the inet_ntop function. */
177 #undef HAVE_INET_NTOP
179 /* Define if you have the initgroups function. */
180 #undef HAVE_INITGROUPS
182 /* Define if you have the lockf function. */
185 /* Define if you have the memcpy function. */
188 /* Define if you have the memmove function. */
191 /* Define if you have the mkstemp function. */
194 /* Define if you have the mktemp function. */
197 /* Define if you have the pipe function. */
200 /* Define if you have the pthread_getconcurrency function. */
201 #undef HAVE_PTHREAD_GETCONCURRENCY
203 /* Define if you have the pthread_kill function. */
204 #undef HAVE_PTHREAD_KILL
206 /* Define if you have the pthread_kill_other_threads_np function. */
207 #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
209 /* Define if you have the pthread_rwlock_destroy function. */
210 #undef HAVE_PTHREAD_RWLOCK_DESTROY
212 /* Define if you have the pthread_setconcurrency function. */
213 #undef HAVE_PTHREAD_SETCONCURRENCY
215 /* Define if you have the pthread_yield function. */
216 #undef HAVE_PTHREAD_YIELD
218 /* Define if you have the read function. */
221 /* Define if you have the recv function. */
224 /* Define if you have the recvfrom function. */
227 /* Define if you have the recvmsg function. */
230 /* Define if you have the sched_yield function. */
231 #undef HAVE_SCHED_YIELD
233 /* Define if you have the send function. */
236 /* Define if you have the sendto function. */
239 /* Define if you have the setegid function. */
242 /* Define if you have the seteuid function. */
245 /* Define if you have the setgid function. */
248 /* Define if you have the setpwfile function. */
249 #undef HAVE_SETPWFILE
251 /* Define if you have the setsid function. */
254 /* Define if you have the setuid function. */
257 /* Define if you have the sigaction function. */
258 #undef HAVE_SIGACTION
260 /* Define if you have the signal function. */
263 /* Define if you have the sigset function. */
266 /* Define if you have the strdup function. */
269 /* Define if you have the strerror function. */
272 /* Define if you have the strpbrk function. */
275 /* Define if you have the strrchr function. */
278 /* Define if you have the strsep function. */
281 /* Define if you have the strspn function. */
284 /* Define if you have the strstr function. */
287 /* Define if you have the strtol function. */
290 /* Define if you have the strtoul function. */
293 /* Define if you have the sysconf function. */
296 /* Define if you have the thr_getconcurrency function. */
297 #undef HAVE_THR_GETCONCURRENCY
299 /* Define if you have the thr_setconcurrency function. */
300 #undef HAVE_THR_SETCONCURRENCY
302 /* Define if you have the thr_yield function. */
303 #undef HAVE_THR_YIELD
305 /* Define if you have the usleep function. */
308 /* Define if you have the vsnprintf function. */
309 #undef HAVE_VSNPRINTF
311 /* Define if you have the vsprintf function. */
314 /* Define if you have the wait4 function. */
317 /* Define if you have the waitpid function. */
320 /* Define if you have the write function. */
323 /* Define if you have the <arpa/inet.h> header file. */
324 #undef HAVE_ARPA_INET_H
326 /* Define if you have the <arpa/nameser.h> header file. */
327 #undef HAVE_ARPA_NAMESER_H
329 /* Define if you have the <assert.h> header file. */
332 /* Define if you have the <conio.h> header file. */
335 /* Define if you have the <crypt.h> header file. */
338 /* Define if you have the <cthreads.h> header file. */
339 #undef HAVE_CTHREADS_H
341 /* Define if you have the <db.h> header file. */
344 /* Define if you have the <db_185.h> header file. */
347 /* Define if you have the <des.h> header file. */
350 /* Define if you have the <direct.h> header file. */
353 /* Define if you have the <dirent.h> header file. */
356 /* Define if you have the <dlfcn.h> header file. */
359 /* Define if you have the <errno.h> header file. */
362 /* Define if you have the <fcntl.h> header file. */
365 /* Define if you have the <filio.h> header file. */
368 /* Define if you have the <gdbm.h> header file. */
371 /* Define if you have the <getopt.h> header file. */
374 /* Define if you have the <grp.h> header file. */
377 /* Define if you have the <heim_err.h> header file. */
378 #undef HAVE_HEIM_ERR_H
380 /* Define if you have the <io.h> header file. */
383 /* Define if you have the <kerberosIV/des.h> header file. */
384 #undef HAVE_KERBEROSIV_DES_H
386 /* Define if you have the <kerberosIV/krb.h> header file. */
387 #undef HAVE_KERBEROSIV_KRB_H
389 /* Define if you have the <krb-archaeology.h> header file. */
390 #undef HAVE_KRB_ARCHAEOLOGY_H
392 /* Define if you have the <krb.h> header file. */
395 /* Define if you have the <krb5.h> header file. */
398 /* Define if you have the <libutil.h> header file. */
399 #undef HAVE_LIBUTIL_H
401 /* Define if you have the <limits.h> header file. */
404 /* Define if you have the <locale.h> header file. */
407 /* Define if you have the <ltdl.h> header file. */
410 /* Define if you have the <lwp/lwp.h> header file. */
411 #undef HAVE_LWP_LWP_H
413 /* Define if you have the <mach/cthreads.h> header file. */
414 #undef HAVE_MACH_CTHREADS_H
416 /* Define if you have the <malloc.h> header file. */
419 /* Define if you have the <mdbm.h> header file. */
422 /* Define if you have the <memory.h> header file. */
425 /* Define if you have the <ncurses.h> header file. */
426 #undef HAVE_NCURSES_H
428 /* Define if you have the <ndbm.h> header file. */
431 /* Define if you have the <ndir.h> header file. */
434 /* Define if you have the <netinet/tcp.h> header file. */
435 #undef HAVE_NETINET_TCP_H
437 /* Define if you have the <openssl/ssl.h> header file. */
438 #undef HAVE_OPENSSL_SSL_H
440 /* Define if you have the <process.h> header file. */
441 #undef HAVE_PROCESS_H
443 /* Define if you have the <psap.h> header file. */
446 /* Define if you have the <pth.h> header file. */
449 /* Define if you have the <pthread.h> header file. */
450 #undef HAVE_PTHREAD_H
452 /* Define if you have the <pwd.h> header file. */
455 /* Define if you have the <readline/history.h> header file. */
456 #undef HAVE_READLINE_HISTORY_H
458 /* Define if you have the <readline/readline.h> header file. */
459 #undef HAVE_READLINE_READLINE_H
461 /* Define if you have the <regex.h> header file. */
464 /* Define if you have the <resolv.h> header file. */
467 /* Define if you have the <sasl.h> header file. */
470 /* Define if you have the <sasl/sasl.h> header file. */
471 #undef HAVE_SASL_SASL_H
473 /* Define if you have the <sched.h> header file. */
476 /* Define if you have the <sgtty.h> header file. */
479 /* Define if you have the <shadow.h> header file. */
482 /* Define if you have the <slp.h> header file. */
485 /* Define if you have the <ssl.h> header file. */
488 /* Define if you have the <stddef.h> header file. */
491 /* Define if you have the <string.h> header file. */
494 /* Define if you have the <strings.h> header file. */
495 #undef HAVE_STRINGS_H
497 /* Define if you have the <synch.h> header file. */
500 /* Define if you have the <sys/dir.h> header file. */
501 #undef HAVE_SYS_DIR_H
503 /* Define if you have the <sys/errno.h> header file. */
504 #undef HAVE_SYS_ERRNO_H
506 /* Define if you have the <sys/file.h> header file. */
507 #undef HAVE_SYS_FILE_H
509 /* Define if you have the <sys/filio.h> header file. */
510 #undef HAVE_SYS_FILIO_H
512 /* Define if you have the <sys/ioctl.h> header file. */
513 #undef HAVE_SYS_IOCTL_H
515 /* Define if you have the <sys/ndir.h> header file. */
516 #undef HAVE_SYS_NDIR_H
518 /* Define if you have the <sys/param.h> header file. */
519 #undef HAVE_SYS_PARAM_H
521 /* Define if you have the <sys/resource.h> header file. */
522 #undef HAVE_SYS_RESOURCE_H
524 /* Define if you have the <sys/select.h> header file. */
525 #undef HAVE_SYS_SELECT_H
527 /* Define if you have the <sys/socket.h> header file. */
528 #undef HAVE_SYS_SOCKET_H
530 /* Define if you have the <sys/syslog.h> header file. */
531 #undef HAVE_SYS_SYSLOG_H
533 /* Define if you have the <sys/time.h> header file. */
534 #undef HAVE_SYS_TIME_H
536 /* Define if you have the <sys/types.h> header file. */
537 #undef HAVE_SYS_TYPES_H
539 /* Define if you have the <sys/un.h> header file. */
542 /* Define if you have the <sys/uuid.h> header file. */
543 #undef HAVE_SYS_UUID_H
545 /* Define if you have the <sysexits.h> header file. */
546 #undef HAVE_SYSEXITS_H
548 /* Define if you have the <syslog.h> header file. */
551 /* Define if you have the <tcpd.h> header file. */
554 /* Define if you have the <termcap.h> header file. */
555 #undef HAVE_TERMCAP_H
557 /* Define if you have the <termios.h> header file. */
558 #undef HAVE_TERMIOS_H
560 /* Define if you have the <thread.h> header file. */
563 /* Define if you have the <unistd.h> header file. */
566 /* Define if you have the <winsock.h> header file. */
567 #undef HAVE_WINSOCK_H
569 /* Define if you have the <winsock2.h> header file. */
570 #undef HAVE_WINSOCK2_H
572 /* Define if you have the V3 library (-lV3). */
575 /* Define if you have the bind library (-lbind). */
578 /* Define if you have the dl library (-ldl). */
581 /* Define if you have the gen library (-lgen). */
584 /* Define if you have the inet library (-linet). */
587 /* Define if you have the net library (-lnet). */
590 /* Define if you have the nsl library (-lnsl). */
593 /* Define if you have the nsl_s library (-lnsl_s). */
596 /* Define if you have the resolv library (-lresolv). */
597 #undef HAVE_LIBRESOLV
599 /* Define if you have the socket library (-lsocket). */
600 #undef HAVE_LIBSOCKET
603 #undef OPENLDAP_PACKAGE
606 #undef OPENLDAP_VERSION
609 #undef LDAP_VENDOR_VERSION
612 #undef LDAP_VENDOR_VERSION_MAJOR
615 #undef LDAP_VENDOR_VERSION_MINOR
618 #undef LDAP_VENDOR_VERSION_PATCH
620 /* define this if you have mkversion */
621 #undef HAVE_MKVERSION
623 /* defined to be the EXE extension */
626 /* define if you have AIX security lib */
627 #undef HAVE_AIX_SECURITY
629 /* define if you have libtool -ltdl */
632 /* define if system uses EBCDIC instead of ASCII */
635 /* Define if TIOCGWINSZ requires sys/ioctl.h */
636 #undef GWINSZ_IN_SYS_IOCTL
638 /* define if you have POSIX termios */
639 #undef HAVE_POSIX_TERMIOS
641 /* define if you have winsock */
644 /* define if you have winsock2 */
647 /* define if you have uuid_to_str() */
648 #undef HAVE_UUID_TO_STR
650 /* define if you have res_query() */
651 #undef HAVE_RES_QUERY
653 /* define if you have HEIMDAL Kerberos */
654 #undef HAVE_HEIMDAL_KERBEROS
656 /* define if you have Kerberos V */
659 /* define if you have Kerberos V with IV support */
662 /* define if you have Kerberos IV */
665 /* define if you have Kerberos des_debug */
666 #undef HAVE_DES_DEBUG
668 /* define if you have Kerberos IV */
671 /* define if you have Kth Kerberos */
672 #undef HAVE_KTH_KERBEROS
674 /* define if you have Kerberos */
677 /* define if you have SSLeay or OpenSSL */
680 /* define if you have RSAref */
683 /* define if you have TLS */
686 /* define to support LAN Manager passwords */
689 /* set to the number of arguments ctime_r() expects */
692 /* set to the number of arguments gethostbyname_r() expects */
693 #undef GETHOSTBYNAME_R_NARGS
695 /* set to the number of arguments gethostbyaddr_r() expects */
696 #undef GETHOSTBYADDR_R_NARGS
698 /* if you have NT Threads */
699 #undef HAVE_NT_THREADS
701 /* if you have NT Service Manager */
702 #undef HAVE_NT_SERVICE_MANAGER
704 /* if you have NT Event Log */
705 #undef HAVE_NT_EVENT_LOG
707 /* define if pthreads API compatible with final spec */
708 #undef HAVE_PTHREADS_FINAL
710 /* define if pthreads API compatible with draft4 spec */
711 #undef HAVE_PTHREADS_D4
713 /* if you have LinuxThreads */
714 #undef HAVE_LINUX_THREADS
716 /* define if you have POSIX Threads */
719 /* Define if you have the sched_yield function. */
720 #undef HAVE_SCHED_YIELD
722 /* define if you have pthread_detach function */
723 #undef HAVE_PTHREAD_DETACH
725 /* define if you have Mach Cthreads */
726 #undef HAVE_MACH_CTHREADS
728 /* if you have GNU Pth */
731 /* if you have Solaris LWP (thr) package */
734 /* if you have SunOS LWP package */
737 /* define if select implicitly yields */
738 #undef HAVE_YIELDING_SELECT
740 /* if you have LinuxThreads */
741 #undef HAVE_LINUX_THREADS
743 /* define if you have (or want) no threads */
746 /* define if Berkeley DB has DB_THREAD support */
747 #undef HAVE_BERKELEY_DB_THREAD
749 /* define this if Berkeley DB is available */
750 #undef HAVE_BERKELEY_DB
752 /* define this to use DBHASH w/ LDBM backend */
753 #undef LDBM_USE_DBHASH
755 /* define this to use DBBTREE w/ LDBM backend */
756 #undef LDBM_USE_DBBTREE
758 /* define if MDBM is available */
761 /* define if GNU DBM is available */
764 /* define if NDBM is available */
767 /* define if LDAP libs are dynamic */
768 #undef LDAP_LIBS_DYNAMIC
770 /* define if you have -lwrap */
773 /* define if you have -ltermcap */
776 /* define if you have -lncurses */
779 /* define if you have no termcap support */
782 /* define if you have Cyrus SASL */
783 #undef HAVE_CYRUS_SASL
785 /* set to urandom device */
786 #undef URANDOM_DEVICE
788 /* define if you actually have FreeBSD fetch(3) */
791 /* define if you have -lreadline */
794 /* define if crypt(3) is available */
797 /* define if setproctitle(3) is available */
798 #undef HAVE_SETPROCTITLE
800 /* define if you have -lslp */
803 /* Define to `int' if <sys/types.h> does not define. */
806 /* Define to `long' if <sys/types.h> does not define. */
809 /* Define to `int' if <sys/types.h> does not define. */
812 /* Define if system has ptrdiff_t type */
813 #undef HAVE_PTRDIFF_T
815 /* Define to `unsigned' if <sys/types.h> does not define. */
818 /* Define to `signed int' if <sys/types.h> does not define. */
821 /* Define to `char *' if <sys/types.h> does not define. */
824 /* define to int if socklen_t is not available */
827 /* define to atomic type if sig_atomic_t is not available */
830 /* define if struct passwd has pw_gecos */
833 /* define if struct passwd has pw_passwd */
834 #undef HAVE_PW_PASSWD
836 /* define if toupper() requires islower() */
839 /* define as empty if volatile is not supported */
842 /* define if cross compiling */
843 #undef CROSS_COMPILING
845 /* The number of bytes in type short */
848 /* The number of bytes in type int */
851 /* The number of bytes in type long */
854 /* define to you inet_aton(3) is available */
855 #undef HAVE_INET_ATON
857 /* if you have spawnlp() */
860 /* define to snprintf routine */
863 /* define to vsnprintf routine */
866 /* define if sys_errlist is not declared in stdio.h or errno.h */
867 #undef DECL_SYS_ERRLIST
869 /* define if you actually have sys_errlist in your libs */
870 #undef HAVE_SYS_ERRLIST
872 /* define this to add debugging code */
875 /* define this to add syslog code */
878 /* define this to remove -lldap cache support */
881 /* define this for LDAP process title support */
882 #undef LDAP_PROCTITLE
884 /* define to support PF_LOCAL */
887 /* define to support PF_INET6 */
890 /* define to support cleartext passwords */
891 #undef SLAPD_CLEARTEXT
893 /* define to support crypt(3) passwords */
896 /* define to support Kerberos passwords */
899 /* define to support SASL passwords */
902 /* define to support multimaster replication */
903 #undef SLAPD_MULTIMASTER
905 /* define to support phonetic */
906 #undef SLAPD_PHONETIC
908 /* define to support reverse lookups */
909 #undef SLAPD_RLOOKUPS
911 /* define to support per-object ACIs */
912 #undef SLAPD_ACI_ENABLED
914 /* define to support modules */
917 /* define to support BDB backend */
920 /* define to support dynamic BDB backend */
921 #undef SLAPD_BDB_DYNAMIC
923 /* define to support DNS SRV backend */
926 /* define to support dynamic DNS SRV backend */
927 #undef SLAPD_DNSSRV_DYNAMIC
929 /* define to support LDAP backend */
932 /* define to support dynamic LDAP backend */
933 #undef SLAPD_LDAP_DYNAMIC
935 /* define to support LDBM backend */
938 /* define to support dynamic LDBM backend */
939 #undef SLAPD_LDBM_DYNAMIC
941 /* define to support LDAP Metadirectory backend */
944 /* define to support dynamic LDAP Metadirectory backend */
945 #undef SLAPD_META_DYNAMIC
947 /* define to support cn=Monitor backend */
950 /* define to support dynamic cn=Monitor backend */
951 #undef SLAPD_MONITOR_DYNAMIC
953 /* define to support NULL backend */
956 /* define to support dynamic NULL backend */
957 #undef SLAPD_NULL_DYNAMIC
959 /* define to support PASSWD backend */
962 /* define to support dynamic PASSWD backend */
963 #undef SLAPD_PASSWD_DYNAMIC
965 /* define to support PERL backend */
968 /* define to support dynamic PERL backend */
969 #undef SLAPD_PERL_DYNAMIC
971 /* define to support SHELL backend */
974 /* define to support dynamic SHELL backend */
975 #undef SLAPD_SHELL_DYNAMIC
977 /* define to support SQL backend */
980 /* define to support dynamic SQL backend */
981 #undef SLAPD_SQL_DYNAMIC
983 /* define to enable rewriting in back-ldap and back-meta */
984 #undef ENABLE_REWRITE
987 /* begin of postamble */
990 /* don't suck in all of the win32 api */
991 # define WIN32_LEAN_AND_MEAN 1
994 #ifndef LDAP_NEEDS_PROTOTYPES
995 /* force LDAP_P to always include prototypes */
996 #define LDAP_NEEDS_PROTOTYPES 1
1000 # include <stddef.h>
1003 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
1006 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
1010 #include "ldap_cdefs.h"
1011 #include "ldap_features.h"
1013 #include "ac/assert.h"
1015 #endif /* _LDAP_PORTABLE_H */