1 /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
3 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms are permitted only
7 * as authorized by the OpenLDAP Public License. A copy of this
8 * license is available at http://www.OpenLDAP.org/license.html or
9 * in file LICENSE in the top-level directory of the distribution.
12 #ifndef _LDAP_PORTABLE_H
13 #define _LDAP_PORTABLE_H
18 /* Define if on AIX 3.
19 System headers sometimes define this.
20 We just want to avoid a redefinition error message. */
25 /* Define to empty if the keyword does not work. */
28 /* Define to the type of elements in the array set by `getgroups'.
29 Usually this is either `int' or `gid_t'. */
32 /* Define to `int' if <sys/types.h> doesn't define. */
35 /* Define if you don't have vprintf but do have _doprnt. */
38 /* Define if your struct stat has st_blksize. */
39 #undef HAVE_ST_BLKSIZE
41 /* Define if you have the strftime function. */
44 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
45 #undef HAVE_SYS_WAIT_H
47 /* Define if you have the vprintf function. */
50 /* Define if on MINIX. */
53 /* Define to `int' if <sys/types.h> doesn't define. */
56 /* Define to `long' if <sys/types.h> doesn't define. */
59 /* Define to `int' if <sys/types.h> doesn't define. */
62 /* Define if the system does not provide POSIX.1 features except
64 #undef _POSIX_1_SOURCE
66 /* Define if you need to in order for stat and other things to work. */
69 /* Define as the return type of signal handlers (int or void). */
72 /* Define to the type of arg1 for select(). */
73 #undef SELECT_TYPE_ARG1
75 /* Define to the type of args 2, 3 and 4 for select(). */
76 #undef SELECT_TYPE_ARG234
78 /* Define to the type of arg5 for select(). */
79 #undef SELECT_TYPE_ARG5
81 /* Define to `unsigned' if <sys/types.h> doesn't define. */
84 /* Define if you have the ANSI C header files. */
87 /* Define if you can safely include both <sys/time.h> and <time.h>. */
88 #undef TIME_WITH_SYS_TIME
90 /* Define if your <sys/time.h> declares struct tm. */
93 /* Define to `int' if <sys/types.h> doesn't define. */
96 /* Define if your processor stores words with the most significant
97 byte first (like Motorola and SPARC, unlike Intel and VAX). */
98 #undef WORDS_BIGENDIAN
100 /* define this if needed to get reentrant functions */
108 /* define this if needed to get threadsafe functions */
122 #ifndef _SGI_MP_SOURCE
123 #undef _SGI_MP_SOURCE
126 /* These are defined in ldap_features.h */
128 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
129 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
130 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
131 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
134 /* These are defined in lber_types.h */
142 /* define to character address type */
145 /* define to signed size type */
148 /* Define if you have the bcopy function. */
151 /* Define if you have the closesocket function. */
152 #undef HAVE_CLOSESOCKET
154 /* Define if you have the ctime_r function. */
157 /* Define if you have the endgrent function. */
160 /* Define if you have the endpwent function. */
163 /* Define if you have the flock function. */
166 /* Define if you have the getdtablesize function. */
167 #undef HAVE_GETDTABLESIZE
169 /* Define if you have the getgrgid function. */
172 /* Define if you have the gethostbyaddr_r function. */
173 #undef HAVE_GETHOSTBYADDR_R
175 /* Define if you have the gethostbyname_r function. */
176 #undef HAVE_GETHOSTBYNAME_R
178 /* Define if you have the gethostname function. */
179 #undef HAVE_GETHOSTNAME
181 /* Define if you have the getopt function. */
184 /* Define if you have the getpass function. */
187 /* Define if you have the getpwnam function. */
190 /* Define if you have the getpwuid function. */
193 /* Define if you have the getspnam function. */
196 /* Define if you have the gettimeofday function. */
197 #undef HAVE_GETTIMEOFDAY
199 /* Define if you have the initgroups function. */
200 #undef HAVE_INITGROUPS
202 /* Define if you have the lockf function. */
205 /* Define if you have the memcpy function. */
208 /* Define if you have the memmove function. */
211 /* Define if you have the mkstemp function. */
214 /* Define if you have the pipe function. */
217 /* Define if you have the pthread_getconcurrency function. */
218 #undef HAVE_PTHREAD_GETCONCURRENCY
220 /* Define if you have the pthread_kill function. */
221 #undef HAVE_PTHREAD_KILL
223 /* Define if you have the pthread_setconcurrency function. */
224 #undef HAVE_PTHREAD_SETCONCURRENCY
226 /* Define if you have the pthread_yield function. */
227 #undef HAVE_PTHREAD_YIELD
229 /* Define if you have the read function. */
232 /* Define if you have the recv function. */
235 /* Define if you have the recvfrom function. */
238 /* Define if you have the sched_yield function. */
239 #undef HAVE_SCHED_YIELD
241 /* Define if you have the send function. */
244 /* Define if you have the sendto function. */
247 /* Define if you have the setegid function. */
250 /* Define if you have the seteuid function. */
253 /* Define if you have the setgid function. */
256 /* Define if you have the setpwfile function. */
257 #undef HAVE_SETPWFILE
259 /* Define if you have the setsid function. */
262 /* Define if you have the setuid function. */
265 /* Define if you have the sigaction function. */
266 #undef HAVE_SIGACTION
268 /* Define if you have the signal function. */
271 /* Define if you have the sigset function. */
274 /* Define if you have the snprintf function. */
277 /* Define if you have the strdup function. */
280 /* Define if you have the strerror function. */
283 /* Define if you have the strpbrk function. */
286 /* Define if you have the strrchr function. */
289 /* Define if you have the strsep function. */
292 /* Define if you have the strspn function. */
295 /* Define if you have the strstr function. */
298 /* Define if you have the strtol function. */
301 /* Define if you have the strtoul function. */
304 /* Define if you have the sysconf function. */
307 /* Define if you have the tempnam function. */
310 /* Define if you have the thr_getconcurrency function. */
311 #undef HAVE_THR_GETCONCURRENCY
313 /* Define if you have the thr_setconcurrency function. */
314 #undef HAVE_THR_SETCONCURRENCY
316 /* Define if you have the thr_yield function. */
317 #undef HAVE_THR_YIELD
319 /* Define if you have the vsnprintf function. */
320 #undef HAVE_VSNPRINTF
322 /* Define if you have the vsprintf function. */
325 /* Define if you have the wait4 function. */
328 /* Define if you have the waitpid function. */
331 /* Define if you have the write function. */
334 /* Define if you have the <arpa/inet.h> header file. */
335 #undef HAVE_ARPA_INET_H
337 /* Define if you have the <arpa/nameser.h> header file. */
338 #undef HAVE_ARPA_NAMESER_H
340 /* Define if you have the <assert.h> header file. */
343 /* Define if you have the <conio.h> header file. */
346 /* Define if you have the <crypt.h> header file. */
349 /* Define if you have the <db.h> header file. */
352 /* Define if you have the <db1/db.h> header file. */
355 /* Define if you have the <db_185.h> header file. */
358 /* Define if you have the <des.h> header file. */
361 /* Define if you have the <direct.h> header file. */
364 /* Define if you have the <dirent.h> header file. */
367 /* Define if you have the <dmalloc.h> header file. */
368 #undef HAVE_DMALLOC_H
370 /* Define if you have the <errno.h> header file. */
373 /* Define if you have the <fcntl.h> header file. */
376 /* Define if you have the <filio.h> header file. */
379 /* Define if you have the <gdbm.h> header file. */
382 /* Define if you have the <getopt.h> header file. */
385 /* Define if you have the <grp.h> header file. */
388 /* Define if you have the <io.h> header file. */
391 /* Define if you have the <kerberosIV/des.h> header file. */
392 #undef HAVE_KERBEROSIV_DES_H
394 /* Define if you have the <kerberosIV/krb.h> header file. */
395 #undef HAVE_KERBEROSIV_KRB_H
397 /* Define if you have the <krb-archaeology.h> header file. */
398 #undef HAVE_KRB_ARCHAEOLOGY_H
400 /* Define if you have the <krb.h> header file. */
403 /* Define if you have the <libutil.h> header file. */
404 #undef HAVE_LIBUTIL_H
406 /* Define if you have the <limits.h> header file. */
409 /* Define if you have the <locale.h> header file. */
412 /* Define if you have the <ltdl.h> header file. */
415 /* Define if you have the <lwp/lwp.h> header file. */
416 #undef HAVE_LWP_LWP_H
418 /* Define if you have the <mach/cthreads.h> header file. */
419 #undef HAVE_MACH_CTHREADS_H
421 /* Define if you have the <malloc.h> header file. */
424 /* Define if you have the <mdbm.h> header file. */
427 /* Define if you have the <memory.h> header file. */
430 /* Define if you have the <ncurses.h> header file. */
431 #undef HAVE_NCURSES_H
433 /* Define if you have the <ndbm.h> header file. */
436 /* Define if you have the <ndir.h> header file. */
439 /* Define if you have the <netinet/tcp.h> header file. */
440 #undef HAVE_NETINET_TCP_H
442 /* Define if you have the <openssl/ssl.h> header file. */
443 #undef HAVE_OPENSSL_SSL_H
445 /* Define if you have the <process.h> header file. */
446 #undef HAVE_PROCESS_H
448 /* Define if you have the <psap.h> header file. */
451 /* Define if you have the <pth.h> header file. */
454 /* Define if you have the <pthread.h> header file. */
455 #undef HAVE_PTHREAD_H
457 /* Define if you have the <pwd.h> header file. */
460 /* Define if you have the <quipu/commonarg.h> header file. */
461 #undef HAVE_QUIPU_COMMONARG_H
463 /* Define if you have the <readline/history.h> header file. */
464 #undef HAVE_READLINE_HISTORY_H
466 /* Define if you have the <readline/readline.h> header file. */
467 #undef HAVE_READLINE_READLINE_H
469 /* Define if you have the <regex.h> header file. */
472 /* Define if you have the <resolv.h> header file. */
475 /* Define if you have the <sched.h> header file. */
478 /* Define if you have the <sgtty.h> header file. */
481 /* Define if you have the <shadow.h> header file. */
484 /* Define if you have the <ssl.h> header file. */
487 /* Define if you have the <stddef.h> header file. */
490 /* Define if you have the <string.h> header file. */
493 /* Define if you have the <strings.h> header file. */
494 #undef HAVE_STRINGS_H
496 /* Define if you have the <synch.h> header file. */
499 /* Define if you have the <sys/dir.h> header file. */
500 #undef HAVE_SYS_DIR_H
502 /* Define if you have the <sys/errno.h> header file. */
503 #undef HAVE_SYS_ERRNO_H
505 /* Define if you have the <sys/file.h> header file. */
506 #undef HAVE_SYS_FILE_H
508 /* Define if you have the <sys/filio.h> header file. */
509 #undef HAVE_SYS_FILIO_H
511 /* Define if you have the <sys/ioctl.h> header file. */
512 #undef HAVE_SYS_IOCTL_H
514 /* Define if you have the <sys/ndir.h> header file. */
515 #undef HAVE_SYS_NDIR_H
517 /* Define if you have the <sys/param.h> header file. */
518 #undef HAVE_SYS_PARAM_H
520 /* Define if you have the <sys/resource.h> header file. */
521 #undef HAVE_SYS_RESOURCE_H
523 /* Define if you have the <sys/select.h> header file. */
524 #undef HAVE_SYS_SELECT_H
526 /* Define if you have the <sys/socket.h> header file. */
527 #undef HAVE_SYS_SOCKET_H
529 /* Define if you have the <sys/syslog.h> header file. */
530 #undef HAVE_SYS_SYSLOG_H
532 /* Define if you have the <sys/time.h> header file. */
533 #undef HAVE_SYS_TIME_H
535 /* Define if you have the <sys/types.h> header file. */
536 #undef HAVE_SYS_TYPES_H
538 /* Define if you have the <sysexits.h> header file. */
539 #undef HAVE_SYSEXITS_H
541 /* Define if you have the <syslog.h> header file. */
544 /* Define if you have the <tcl.h> header file. */
547 /* Define if you have the <tcpd.h> header file. */
550 /* Define if you have the <termcap.h> header file. */
551 #undef HAVE_TERMCAP_H
553 /* Define if you have the <termios.h> header file. */
554 #undef HAVE_TERMIOS_H
556 /* Define if you have the <thread.h> header file. */
559 /* Define if you have the <unistd.h> header file. */
562 /* Define if you have the <winsock.h> header file. */
563 #undef HAVE_WINSOCK_H
565 /* Define if you have the V3 library (-lV3). */
568 /* Define if you have the bind library (-lbind). */
571 /* Define if you have the dmalloc library (-ldmalloc). */
572 #undef HAVE_LIBDMALLOC
574 /* Define if you have the gen library (-lgen). */
577 /* Define if you have the inet library (-linet). */
580 /* Define if you have the net library (-lnet). */
583 /* Define if you have the nsl library (-lnsl). */
586 /* Define if you have the nsl_s library (-lnsl_s). */
589 /* Define if you have the resolv library (-lresolv). */
590 #undef HAVE_LIBRESOLV
592 /* Define if you have the socket library (-lsocket). */
593 #undef HAVE_LIBSOCKET
596 #undef OPENLDAP_PACKAGE
599 #undef OPENLDAP_VERSION
601 /* define this if you have mkversion */
602 #undef HAVE_MKVERSION
604 /* defined to be the EXE extension */
607 /* define if you have libtool -ltdl */
610 /* define if system uses EBCDIC instead of ASCII */
613 /* Define if TIOCGWINSZ requires sys/ioctl.h */
614 #undef GWINSZ_IN_SYS_IOCTL
616 /* define if you have POSIX termios */
617 #undef HAVE_POSIX_TERMIOS
619 /* define if you have winsock */
622 /* define if you have res_search() */
623 #undef HAVE_RES_SEARCH
625 /* define if you have -lxttp */
628 /* define if you have -ldsap */
631 /* define if you have -lisode */
634 /* define if you have -lpp */
637 /* define if you have Kerberos des_debug */
638 #undef HAVE_DES_DEBUG
640 /* define if you have Kth Kerberos */
641 #undef HAVE_KTH_KERBEROS
643 /* define if you have Kerberos */
646 /* define if you have SSLeay or OpenSSL */
649 /* define if you have RSAref */
652 /* define if you have TLS */
655 /* set to the number of arguments ctime_r() expects */
658 /* set to the number of arguments gethostbyname_r() expects */
659 #undef GETHOSTBYNAME_R_NARGS
661 /* set to the number of arguments gethostbyaddr_r() expects */
662 #undef GETHOSTBYADDR_R_NARGS
664 /* if you have NT threads */
665 #undef HAVE_NT_THREADS
667 /* define if pthreads API compatible with final spec */
668 #undef HAVE_PTHREADS_FINAL
670 /* define if pthreads API compatible with draft4 spec */
671 #undef HAVE_PTHREADS_D4
673 /* if you have LinuxThreads */
674 #undef HAVE_LINUX_THREADS
676 /* define if you have POSIX Threads */
679 /* Define if you have the sched_yield function. */
680 #undef HAVE_SCHED_YIELD
682 /* define if you have pthread_detach function */
683 #undef HAVE_PTHREAD_DETACH
685 /* define if you have Mach Cthreads */
686 #undef HAVE_MACH_CTHREADS
688 /* if you have GNU Pth */
691 /* if you have Solaris LWP (thr) package */
694 /* if you have SunOS LWP package */
697 /* define if select implicitly yields */
698 #undef HAVE_YIELDING_SELECT
700 /* if you have LinuxThreads */
701 #undef HAVE_LINUX_THREADS
703 /* define if you have (or want) no threads */
706 /* define if Berkeley DBv2 is available */
707 #undef HAVE_BERKELEY_DB2
709 /* define this to use DBHASH w/ LDBM backend */
710 #undef LDBM_USE_DBHASH
712 /* define this to use DBBTREE w/ LDBM backend */
713 #undef LDBM_USE_DBBTREE
715 /* define if BerkeleyDB2 has DB_THREAD support */
716 #undef HAVE_BERKELEY_DB2_DB_THREAD
718 /* define if Berkeley DB is available */
719 #undef HAVE_BERKELEY_DB
721 /* define this to use DBHASH w/ LDBM backend */
722 #undef LDBM_USE_DBHASH
724 /* define this to use DBBTREE w/ LDBM backend */
725 #undef LDBM_USE_DBBTREE
727 /* define if MDBM is available */
730 /* define if GNU DBM is available */
733 /* define if NDBM is available */
736 /* define if you have -lwrap */
739 /* define if you have -ltermcap */
742 /* define if you have -lncurses */
745 /* define if you have no termcap support */
748 /* define if you have Cyrus SASL */
749 #undef HAVE_CYRUS_SASL
751 /* set to urandom device */
752 #undef URANDOM_DEVICE
754 /* define if you actually have FreeBSD fetch(3) */
757 /* define if you have -lreadline */
760 /* define if crypt(3) is available */
763 /* define if setproctitle(3) is available */
764 #undef HAVE_SETPROCTITLE
766 /* Define if system has ptrdiff_t type */
767 #undef HAVE_PTRDIFF_T
769 /* define to int if socklen_t is not available */
772 /* define to atomic type if sig_atomic_t is not available */
775 /* define if struct passwd has pw_gecos */
778 /* define if struct passwd has pw_passwd */
779 #undef HAVE_PW_PASSWD
781 /* define if toupper() requires islower() */
784 /* define as empty if volatile is not supported */
787 /* define if cross compiling */
788 #undef CROSS_COMPILING
790 /* The number of bytes in type short */
793 /* The number of bytes in type int */
796 /* The number of bytes in type long */
799 /* define to you inet_aton(3) is available */
800 #undef HAVE_INET_ATON
802 /* if you have spawnlp() */
805 /* define to snprintf routine */
808 /* define to vsnprintf routine */
811 /* define if sys_errlist is not declared in stdio.h or errno.h */
812 #undef DECL_SYS_ERRLIST
814 /* define if you actually have sys_errlist in your libs */
815 #undef HAVE_SYS_ERRLIST
817 /* define this to add debugging code */
820 /* define this to add syslog code */
823 /* define this for LDAP User Interface support */
826 /* define this to remove -lldap cache support */
829 /* define this for LDAP process title support */
830 #undef LDAP_PROCTITLE
832 /* define to support CLDAP */
833 #undef LDAP_CONNECTIONLESS
835 /* define to support crypt(3) passwords */
838 /* define to support cleartext passwords */
839 #undef SLAPD_CLEARTEXT
841 /* define to support multimaster replication */
842 #undef SLAPD_MULTIMASTER
844 /* define to support phonetic */
845 #undef SLAPD_PHONETIC
847 /* define to support reverse lookups */
848 #undef SLAPD_RLOOKUPS
850 /* define to support per-object ACIs */
851 #undef SLAPD_ACI_ENABLED
853 /* define to support discrete rights in ACIs */
854 #undef SLAPD_ACI_DISCRETE_RIGHTS
856 /* define to support modules */
859 /* define to support BDB2 backend */
862 /* define to support dynamic BDB2 backend */
863 #undef SLAPD_BDB2_DYNAMIC
865 /* define to support LDAP backend */
868 /* define to support dynamic LDAP backend */
869 #undef SLAPD_LDAP_DYNAMIC
871 /* define to support LDBM backend */
874 /* define to support dynamic LDBM backend */
875 #undef SLAPD_LDBM_DYNAMIC
877 /* define to support PASSWD backend */
880 /* define to support dynamic PASSWD backend */
881 #undef SLAPD_PASSWD_DYNAMIC
883 /* define to support PERL backend */
886 /* define to support dynamic PERL backend */
887 #undef SLAPD_PERL_DYNAMIC
889 /* define to support SHELL backend */
892 /* define to support dynamic SHELL backend */
893 #undef SLAPD_SHELL_DYNAMIC
895 /* define to support TCL backend */
898 /* define to support dynamic TCL backend */
899 #undef SLAPD_TCL_DYNAMIC
902 /* begin of postamble */
905 /* don't suck in all of the win32 api */
906 # define WIN32_LEAN_AND_MEAN
909 #ifndef __NEED_PROTOTYPES
910 /* force LDAP_P to always include prototypes */
911 #define __NEED_PROTOTYPES 1
918 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
921 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
925 #include "ldap_cdefs.h"
926 #include "ldap_features.h"
928 #include "ac/assert.h"
930 #endif /* _LDAP_PORTABLE_H */