2 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5 * Redistribution and use in source and binary forms are permitted only
6 * as authorized by the OpenLDAP Public License. A copy of this
7 * license is available at http://www.OpenLDAP.org/license.html or
8 * in file LICENSE in the top-level directory of the distribution.
11 #ifndef _LDAP_PORTABLE_H
12 #define _LDAP_PORTABLE_H
17 /* define this if needed to get reentrant functions */
25 /* define this if needed to get threadsafe functions */
39 #ifndef _SGI_MP_SOURCE
43 /* define this if cross compiling */
44 #undef CROSS_COMPILING
46 /* define this if toupper() requires tolower() check */
49 /* define this to the number of arguments ctime_r() expects */
52 /* define this to the number of arguments gethostbyaddr_r expects */
53 #undef GETHOSTBYADDR_R_NARGS
55 /* define this to the number of arguments gethostbyname_r expects */
56 #undef GETHOSTBYNAME_R_NARGS
58 /* define this if sys_errlist is not defined in stdio.h or errno.h */
59 #undef DECL_SYS_ERRLIST
61 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
62 #undef GWINSZ_IN_SYS_IOCTL
64 /* define if you have berkeley db */
65 #undef HAVE_BERKELEY_DB
67 /* define if you have berkeley db2 */
68 #undef HAVE_BERKELEY_DB2
70 /* define if you have crypt */
73 /* define if you have DSAP */
76 /* define if you have GDBM */
79 /* define if you have ISODE */
82 /* define if you have Kerberos */
85 /* define if you have LinuxThreads */
86 #undef HAVE_LINUX_THREADS
88 /* define if you have Sun LWP (SunOS style) */
91 /* define if you have -lncurses */
94 /* define if you have NDBM */
97 /* define if you have Mach CThreads */
98 #undef HAVE_MACH_CTHREADS
100 /* define if you have POSIX termios */
101 #undef HAVE_POSIX_TERMIOS
103 /* define if you have PP */
106 /* define if you have POSIX Threads */
109 /* define if your POSIX Threads implementation is circa Final Draft */
110 #undef HAVE_PTHREADS_FINAL
112 /* define if your POSIX Threads implementation is circa Draft 4 */
113 #undef HAVE_PTHREADS_D4
115 /* define if you have ptrdiff_t */
116 #undef HAVE_PTRDIFF_T
118 /* define if you have res_search() */
120 /* see second res_search define */
121 #undef HAVE_RES_SEARCH
124 /* define if you have sched_yield() */
126 /* see second sched_yield define */
127 #undef HAVE_SCHED_YIELD
130 /* define if you have setproctitle() */
131 #undef HAVE_SETPROCTITLE
133 /* define if you have -lwrap */
136 /* define if you have -ltermcap */
139 /* define if you have Sun LWP (Solaris style) */
142 /* define if you have XTPP */
145 /* define this if select() implicitly yields in thread environments */
146 #undef HAVE_YIELDING_SELECT
148 /* define this for connectionless LDAP support */
149 #undef LDAP_CONNECTIONLESS
151 /* define this to add debugging code */
154 /* define this for LDAP DNS support */
157 /* define this to remove -lldap cache support */
160 /* define this for LDAP process title support */
161 #undef LDAP_PROCTITLE
163 /* define this for LDAP User Interface support */
166 /* define this to add syslog code */
169 /* define this to use DB2 in native mode */
172 /* define this to use DB2 in compat185 mode */
173 #undef LDBM_USE_DB2_COMPAT185
175 /* define this to use DBBTREE w/ LDBM backend */
176 #undef LDBM_USE_DBBTREE
178 /* define this to use DBHASH w/ LDBM backend */
179 #undef LDBM_USE_DBHASH
181 /* define this to use GDBM w/ LDBM backend */
184 /* define this to use NDBM w/ LDBM backend */
187 /* define this if you want no termcap support */
190 /* define this if you want no thread support */
193 /* define this for ACL Group support */
194 #undef SLAPD_ACLGROUPS
196 /* define this to use SLAPD Berkeley DB2 backend */
199 /* define this for ClearText password support */
200 #undef SLAPD_CLEARTEXT
202 /* define this for crypt(3) password support */
205 /* define this to use SLAPD LDAP backend */
208 /* define this to use SLAPD LDBM backend */
211 /* define this to use SLAPD Modules */
214 /* define this to use SLAPD passwd backend */
217 /* define this to use SLAPD Perl backend */
220 /* define this for phonetic support */
221 #undef SLAPD_PHONETIC
223 /* define this for Reverse Lookup support */
224 #undef SLAPD_RLOOKUPS
226 /* define this to use SLAPD shell backend */
229 /* define this to use SLAPD TCL backend */
232 /* define this to be empty if your compiler doesn't support volatile */
235 /* define this if sig_atomic_t isn't defined in signal.h */
238 /* These are defined in ldap_features.h */
240 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
241 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
242 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
243 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
247 /* Leave that blank line there!! Autoheader needs it. */
250 /* begin of postamble */
256 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
259 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
263 #include "ldap_cdefs.h"
264 #include "ldap_features.h"
266 #include "ac/assert.h"
268 #endif /* _LDAP_PORTABLE_H */