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
15 /* --------------------------------------------------- */
16 /* begin of WINNT specific entries */
18 #if defined(WINNT) || defined(_WIN32)
20 /* don't suck in all of the win32 api */
21 #define WIN32_LEAN_AND_MEAN
23 #define MAXPATHLEN _MAX_PATH
25 /* preprocess out undefined functions */
30 /* define undefined types */
31 #define ssize_t signed int
32 typedef char * caddr_t;
36 /* end of WINNT specific entries */
37 /* --------------------------------------------------- */
41 /* Define if on AIX 3.
42 System headers sometimes define this.
43 We just want to avoid a redefinition error message. */
48 /* Define to empty if the keyword does not work. */
51 /* Define to the type of elements in the array set by `getgroups'.
52 Usually this is either `int' or `gid_t'. */
55 /* Define to `int' if <sys/types.h> doesn't define. */
58 /* Define if you don't have vprintf but do have _doprnt. */
61 /* Define if your struct stat has st_blksize. */
62 #undef HAVE_ST_BLKSIZE
64 /* Define if you have the strftime function. */
67 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
68 #undef HAVE_SYS_WAIT_H
70 /* Define if you have the vprintf function. */
73 /* Define if on MINIX. */
76 /* Define to `int' if <sys/types.h> doesn't define. */
79 /* Define to `long' if <sys/types.h> doesn't define. */
82 /* Define to `int' if <sys/types.h> doesn't define. */
85 /* Define if the system does not provide POSIX.1 features except
87 #undef _POSIX_1_SOURCE
89 /* Define if you need to in order for stat and other things to work. */
92 /* Define as the return type of signal handlers (int or void). */
95 /* Define to the type of arg1 for select(). */
96 #undef SELECT_TYPE_ARG1
98 /* Define to the type of args 2, 3 and 4 for select(). */
99 #undef SELECT_TYPE_ARG234
101 /* Define to the type of arg5 for select(). */
102 #undef SELECT_TYPE_ARG5
104 /* Define to `unsigned' if <sys/types.h> doesn't define. */
107 /* Define if you have the ANSI C header files. */
110 /* Define if you can safely include both <sys/time.h> and <time.h>. */
111 #undef TIME_WITH_SYS_TIME
113 /* Define if your <sys/time.h> declares struct tm. */
114 #undef TM_IN_SYS_TIME
116 /* Define to `int' if <sys/types.h> doesn't define. */
119 /* Define if your processor stores words with the most significant
120 byte first (like Motorola and SPARC, unlike Intel and VAX). */
121 #undef WORDS_BIGENDIAN
123 /* define this if needed to get reentrant functions */
131 /* define this if needed to get threadsafe functions */
145 #ifndef _SGI_MP_SOURCE
146 #undef _SGI_MP_SOURCE
149 /* These are defined in ldap_features.h */
151 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
152 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
153 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
154 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
157 /* These are defined in lber_types.h */
165 /* The number of bytes in a int. */
168 /* The number of bytes in a long. */
171 /* The number of bytes in a short. */
174 /* Define if you have the bcopy function. */
177 /* Define if you have the closesocket function. */
178 #undef HAVE_CLOSESOCKET
180 /* Define if you have the ctime_r function. */
183 /* Define if you have the endgrent function. */
186 /* Define if you have the endpwent function. */
189 /* Define if you have the flock function. */
192 /* Define if you have the getdtablesize function. */
193 #undef HAVE_GETDTABLESIZE
195 /* Define if you have the getgrgid function. */
198 /* Define if you have the gethostbyaddr_r function. */
199 #undef HAVE_GETHOSTBYADDR_R
201 /* Define if you have the gethostbyname_r function. */
202 #undef HAVE_GETHOSTBYNAME_R
204 /* Define if you have the gethostname function. */
205 #undef HAVE_GETHOSTNAME
207 /* Define if you have the getopt function. */
210 /* Define if you have the getpass function. */
213 /* Define if you have the getpwnam function. */
216 /* Define if you have the getpwuid function. */
219 /* Define if you have the getspnam function. */
222 /* Define if you have the gettimeofday function. */
223 #undef HAVE_GETTIMEOFDAY
225 /* Define if you have the initgroups function. */
226 #undef HAVE_INITGROUPS
228 /* Define if you have the lockf function. */
231 /* Define if you have the memcpy function. */
234 /* Define if you have the memmove function. */
237 /* Define if you have the mkstemp function. */
240 /* Define if you have the pipe function. */
243 /* Define if you have the pthread_getconcurrency function. */
244 #undef HAVE_PTHREAD_GETCONCURRENCY
246 /* Define if you have the pthread_kill function. */
247 #undef HAVE_PTHREAD_KILL
249 /* Define if you have the pthread_setconcurrency function. */
250 #undef HAVE_PTHREAD_SETCONCURRENCY
252 /* Define if you have the pthread_yield function. */
253 #undef HAVE_PTHREAD_YIELD
255 /* Define if you have the read function. */
258 /* Define if you have the recv function. */
261 /* Define if you have the recvfrom function. */
264 /* Define if you have the sched_yield function. */
265 #undef HAVE_SCHED_YIELD
267 /* Define if you have the send function. */
270 /* Define if you have the sendto function. */
273 /* Define if you have the setegid function. */
276 /* Define if you have the seteuid function. */
279 /* Define if you have the setgid function. */
282 /* Define if you have the setpwfile function. */
283 #undef HAVE_SETPWFILE
285 /* Define if you have the setsid function. */
288 /* Define if you have the setuid function. */
291 /* Define if you have the sigaction function. */
292 #undef HAVE_SIGACTION
294 /* Define if you have the signal function. */
297 /* Define if you have the sigset function. */
300 /* Define if you have the snprintf function. */
303 /* Define if you have the strdup function. */
306 /* Define if you have the strerror function. */
309 /* Define if you have the strpbrk function. */
312 /* Define if you have the strrchr function. */
315 /* Define if you have the strsep function. */
318 /* Define if you have the strspn function. */
321 /* Define if you have the strstr function. */
324 /* Define if you have the strtol function. */
327 /* Define if you have the strtoul function. */
330 /* Define if you have the sysconf function. */
333 /* Define if you have the tempnam function. */
336 /* Define if you have the thr_getconcurrency function. */
337 #undef HAVE_THR_GETCONCURRENCY
339 /* Define if you have the thr_setconcurrency function. */
340 #undef HAVE_THR_SETCONCURRENCY
342 /* Define if you have the thr_yield function. */
343 #undef HAVE_THR_YIELD
345 /* Define if you have the vsnprintf function. */
346 #undef HAVE_VSNPRINTF
348 /* Define if you have the vsprintf function. */
351 /* Define if you have the wait4 function. */
354 /* Define if you have the waitpid function. */
357 /* Define if you have the write function. */
360 /* Define if you have the <arpa/inet.h> header file. */
361 #undef HAVE_ARPA_INET_H
363 /* Define if you have the <arpa/nameser.h> header file. */
364 #undef HAVE_ARPA_NAMESER_H
366 /* Define if you have the <assert.h> header file. */
369 /* Define if you have the <conio.h> header file. */
372 /* Define if you have the <crypt.h> header file. */
375 /* Define if you have the <db.h> header file. */
378 /* Define if you have the <db1/db.h> header file. */
381 /* Define if you have the <db_185.h> header file. */
384 /* Define if you have the <des.h> header file. */
387 /* Define if you have the <direct.h> header file. */
390 /* Define if you have the <dirent.h> header file. */
393 /* Define if you have the <dmalloc.h> header file. */
394 #undef HAVE_DMALLOC_H
396 /* Define if you have the <errno.h> header file. */
399 /* Define if you have the <fcntl.h> header file. */
402 /* Define if you have the <filio.h> header file. */
405 /* Define if you have the <gdbm.h> header file. */
408 /* Define if you have the <getopt.h> header file. */
411 /* Define if you have the <grp.h> header file. */
414 /* Define if you have the <io.h> header file. */
417 /* Define if you have the <kerberosIV/des.h> header file. */
418 #undef HAVE_KERBEROSIV_DES_H
420 /* Define if you have the <kerberosIV/krb.h> header file. */
421 #undef HAVE_KERBEROSIV_KRB_H
423 /* Define if you have the <krb-archaeology.h> header file. */
424 #undef HAVE_KRB_ARCHAEOLOGY_H
426 /* Define if you have the <krb.h> header file. */
429 /* Define if you have the <libutil.h> header file. */
430 #undef HAVE_LIBUTIL_H
432 /* Define if you have the <limits.h> header file. */
435 /* Define if you have the <locale.h> header file. */
438 /* Define if you have the <ltdl.h> header file. */
441 /* Define if you have the <lwp/lwp.h> header file. */
442 #undef HAVE_LWP_LWP_H
444 /* Define if you have the <mach/cthreads.h> header file. */
445 #undef HAVE_MACH_CTHREADS_H
447 /* Define if you have the <malloc.h> header file. */
450 /* Define if you have the <mdbm.h> header file. */
453 /* Define if you have the <memory.h> header file. */
456 /* Define if you have the <ncurses.h> header file. */
457 #undef HAVE_NCURSES_H
459 /* Define if you have the <ndbm.h> header file. */
462 /* Define if you have the <ndir.h> header file. */
465 /* Define if you have the <netinet/tcp.h> header file. */
466 #undef HAVE_NETINET_TCP_H
468 /* Define if you have the <openssl/ssl.h> header file. */
469 #undef HAVE_OPENSSL_SSL_H
471 /* Define if you have the <process.h> header file. */
472 #undef HAVE_PROCESS_H
474 /* Define if you have the <psap.h> header file. */
477 /* Define if you have the <pth.h> header file. */
480 /* Define if you have the <pthread.h> header file. */
481 #undef HAVE_PTHREAD_H
483 /* Define if you have the <pwd.h> header file. */
486 /* Define if you have the <quipu/commonarg.h> header file. */
487 #undef HAVE_QUIPU_COMMONARG_H
489 /* Define if you have the <readline/history.h> header file. */
490 #undef HAVE_READLINE_HISTORY_H
492 /* Define if you have the <readline/readline.h> header file. */
493 #undef HAVE_READLINE_READLINE_H
495 /* Define if you have the <regex.h> header file. */
498 /* Define if you have the <resolv.h> header file. */
501 /* Define if you have the <sched.h> header file. */
504 /* Define if you have the <sgtty.h> header file. */
507 /* Define if you have the <shadow.h> header file. */
510 /* Define if you have the <ssl.h> header file. */
513 /* Define if you have the <stddef.h> header file. */
516 /* Define if you have the <string.h> header file. */
519 /* Define if you have the <strings.h> header file. */
520 #undef HAVE_STRINGS_H
522 /* Define if you have the <synch.h> header file. */
525 /* Define if you have the <sys/dir.h> header file. */
526 #undef HAVE_SYS_DIR_H
528 /* Define if you have the <sys/errno.h> header file. */
529 #undef HAVE_SYS_ERRNO_H
531 /* Define if you have the <sys/file.h> header file. */
532 #undef HAVE_SYS_FILE_H
534 /* Define if you have the <sys/filio.h> header file. */
535 #undef HAVE_SYS_FILIO_H
537 /* Define if you have the <sys/ioctl.h> header file. */
538 #undef HAVE_SYS_IOCTL_H
540 /* Define if you have the <sys/ndir.h> header file. */
541 #undef HAVE_SYS_NDIR_H
543 /* Define if you have the <sys/param.h> header file. */
544 #undef HAVE_SYS_PARAM_H
546 /* Define if you have the <sys/resource.h> header file. */
547 #undef HAVE_SYS_RESOURCE_H
549 /* Define if you have the <sys/select.h> header file. */
550 #undef HAVE_SYS_SELECT_H
552 /* Define if you have the <sys/socket.h> header file. */
553 #undef HAVE_SYS_SOCKET_H
555 /* Define if you have the <sys/syslog.h> header file. */
556 #undef HAVE_SYS_SYSLOG_H
558 /* Define if you have the <sys/time.h> header file. */
559 #undef HAVE_SYS_TIME_H
561 /* Define if you have the <sys/types.h> header file. */
562 #undef HAVE_SYS_TYPES_H
564 /* Define if you have the <sysexits.h> header file. */
565 #undef HAVE_SYSEXITS_H
567 /* Define if you have the <syslog.h> header file. */
570 /* Define if you have the <tcl.h> header file. */
573 /* Define if you have the <tcpd.h> header file. */
576 /* Define if you have the <termcap.h> header file. */
577 #undef HAVE_TERMCAP_H
579 /* Define if you have the <termios.h> header file. */
580 #undef HAVE_TERMIOS_H
582 /* Define if you have the <thread.h> header file. */
585 /* Define if you have the <unistd.h> header file. */
588 /* Define if you have the <winsock.h> header file. */
589 #undef HAVE_WINSOCK_H
591 /* Define if you have the V3 library (-lV3). */
594 /* Define if you have the bind library (-lbind). */
597 /* Define if you have the dmalloc library (-ldmalloc). */
598 #undef HAVE_LIBDMALLOC
600 /* Define if you have the gen library (-lgen). */
603 /* Define if you have the inet library (-linet). */
606 /* Define if you have the net library (-lnet). */
609 /* Define if you have the nsl library (-lnsl). */
612 /* Define if you have the nsl_s library (-lnsl_s). */
615 /* Define if you have the resolv library (-lresolv). */
616 #undef HAVE_LIBRESOLV
618 /* Define if you have the socket library (-lsocket). */
619 #undef HAVE_LIBSOCKET
622 #undef OPENLDAP_PACKAGE
625 #undef OPENLDAP_VERSION
627 /* define this if you have mkversion */
628 #undef HAVE_MKVERSION
630 /* defined to be the EXE extension */
633 /* define if you have libtool -ltdl */
636 /* define if system uses EBCDIC instead of ASCII */
639 /* Define if TIOCGWINSZ requires sys/ioctl.h */
640 #undef GWINSZ_IN_SYS_IOCTL
642 /* define if you have POSIX termios */
643 #undef HAVE_POSIX_TERMIOS
645 /* define if you have winsock */
648 /* define if you have res_search() */
649 #undef HAVE_RES_SEARCH
651 /* define if you have -lxttp */
654 /* define if you have -ldsap */
657 /* define if you have -lisode */
660 /* define if you have -lpp */
663 /* define if you have Kerberos des_debug */
664 #undef HAVE_DES_DEBUG
666 /* define if you have Kth Kerberos */
667 #undef HAVE_KTH_KERBEROS
669 /* define if you have Kerberos */
672 /* define if you have SSLeay or OpenSSL */
675 /* define if you have RSAref */
678 /* define if you have TLS */
681 /* set to the number of arguments ctime_r() expects */
684 /* set to the number of arguments gethostbyname_r() expects */
685 #undef GETHOSTBYNAME_R_NARGS
687 /* set to the number of arguments gethostbyaddr_r() expects */
688 #undef GETHOSTBYADDR_R_NARGS
690 /* if you have NT threads */
691 #undef HAVE_NT_THREADS
693 /* define if pthreads API compatible with final spec */
694 #undef HAVE_PTHREADS_FINAL
696 /* define if pthreads API compatible with draft4 spec */
697 #undef HAVE_PTHREADS_D4
699 /* if you have LinuxThreads */
700 #undef HAVE_LINUX_THREADS
702 /* define if you have POSIX Threads */
705 /* Define if you have the sched_yield function. */
706 #undef HAVE_SCHED_YIELD
708 /* define if you have pthread_detach function */
709 #undef HAVE_PTHREAD_DETACH
711 /* define if you have Mach Cthreads */
712 #undef HAVE_MACH_CTHREADS
714 /* if you have GNU Pth */
717 /* if you have Solaris LWP (thr) package */
720 /* if you have SunOS LWP package */
723 /* define if select implicitly yields */
724 #undef HAVE_YIELDING_SELECT
726 /* if you have LinuxThreads */
727 #undef HAVE_LINUX_THREADS
729 /* define if you have (or want) no threads */
732 /* define if Berkeley DBv2 is available */
733 #undef HAVE_BERKELEY_DB2
735 /* define this to use DBHASH w/ LDBM backend */
736 #undef LDBM_USE_DBHASH
738 /* define this to use DBBTREE w/ LDBM backend */
739 #undef LDBM_USE_DBBTREE
741 /* define if BerkeleyDB2 has DB_THREAD support */
742 #undef HAVE_BERKELEY_DB2_DB_THREAD
744 /* define if Berkeley DB is available */
745 #undef HAVE_BERKELEY_DB
747 /* define this to use DBHASH w/ LDBM backend */
748 #undef LDBM_USE_DBHASH
750 /* define this to use DBBTREE w/ LDBM backend */
751 #undef LDBM_USE_DBBTREE
753 /* define if MDBM is available */
756 /* define if GNU DBM is available */
759 /* define if NDBM is available */
762 /* define if you have -lwrap */
765 /* define if you have -ltermcap */
768 /* define if you have -lncurses */
771 /* define if you have no termcap support */
774 /* define if you have Cyrus SASL */
775 #undef HAVE_CYRUS_SASL
777 /* set to urandom device */
778 #undef URANDOM_DEVICE
780 /* define if you actually have FreeBSD fetch(3) */
783 /* define if you have -lreadline */
786 /* define if crypt(3) is available */
789 /* define if setproctitle(3) is available */
790 #undef HAVE_SETPROCTITLE
792 /* Define if system has ptrdiff_t type */
793 #undef HAVE_PTRDIFF_T
795 /* define to int if socklen_t is not available */
798 /* define to atomic type if sig_atomic_t is not available */
801 /* define if struct passwd has pw_gecos */
804 /* define if struct passwd has pw_passwd */
805 #undef HAVE_PW_PASSWD
807 /* define if toupper() requires islower() */
810 /* define as empty if volatile is not supported */
813 /* define if cross compiling */
814 #undef CROSS_COMPILING
816 /* define to you inet_aton(3) is available */
817 #undef HAVE_INET_ATON
819 /* define to snprintf routine */
822 /* define to vsnprintf routine */
825 /* if you have spawnlp() */
828 /* define if sys_errlist is not declared in stdio.h or errno.h */
829 #undef DECL_SYS_ERRLIST
831 /* define if you actually have sys_errlist in your libs */
832 #undef HAVE_SYS_ERRLIST
834 /* define this to add debugging code */
837 /* define this to add syslog code */
840 /* define this for LDAP User Interface support */
843 /* define this to remove -lldap cache support */
846 /* define this for LDAP process title support */
847 #undef LDAP_PROCTITLE
849 /* define to support CLDAP */
850 #undef LDAP_CONNECTIONLESS
852 /* define to support crypt(3) passwords */
855 /* define to support cleartext passwords */
856 #undef SLAPD_CLEARTEXT
858 /* define to support multimaster replication */
859 #undef SLAPD_MULTIMASTER
861 /* define to support phonetic */
862 #undef SLAPD_PHONETIC
864 /* define to support reverse lookups */
865 #undef SLAPD_RLOOKUPS
867 /* define to support per-object ACIs */
868 #undef SLAPD_ACI_ENABLED
870 /* define to support discrete rights in ACIs */
871 #undef SLAPD_ACI_DISCRETE_RIGHTS
873 /* define to support modules */
876 /* define to support BDB2 backend */
879 /* define to support dynamic BDB2 backend */
880 #undef SLAPD_BDB2_DYNAMIC
882 /* define to support LDAP backend */
885 /* define to support dynamic LDAP backend */
886 #undef SLAPD_LDAP_DYNAMIC
888 /* define to support LDBM backend */
891 /* define to support dynamic LDBM backend */
892 #undef SLAPD_LDBM_DYNAMIC
894 /* define to support PASSWD backend */
897 /* define to support dynamic PASSWD backend */
898 #undef SLAPD_PASSWD_DYNAMIC
900 /* define to support PERL backend */
903 /* define to support dynamic PERL backend */
904 #undef SLAPD_PERL_DYNAMIC
906 /* define to support SHELL backend */
909 /* define to support dynamic SHELL backend */
910 #undef SLAPD_SHELL_DYNAMIC
912 /* define to support TCL backend */
915 /* define to support dynamic TCL backend */
916 #undef SLAPD_TCL_DYNAMIC
918 /* begin of postamble */
920 #ifndef __NEED_PROTOTYPES
921 /* force LDAP_P to always include prototypes */
922 #define __NEED_PROTOTYPES 1
929 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
932 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
936 #include "ldap_cdefs.h"
937 #include "ldap_features.h"
939 #include "ac/assert.h"
941 #endif /* _LDAP_PORTABLE_H */