]> git.sur5r.net Git - openldap/blob - acconfig.h
Add check for <assert.h> and put include in right file (acconfig.h)
[openldap] / acconfig.h
1 /*
2  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
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.
9  */
10
11 #ifndef _LDAP_PORTABLE_H
12 #define _LDAP_PORTABLE_H
13
14 /* end of preamble */
15 @TOP@
16
17 /* define this if needed to get reentrant functions */
18 #ifndef REENTRANT
19 #undef REENTRANT
20 #endif
21 #ifndef _REENTRANT
22 #undef _REENTRANT
23 #endif
24
25 /* define this if needed to get threadsafe functions */
26 #ifndef THREADSAFE
27 #undef THREADSAFE
28 #endif
29 #ifndef _THREADSAFE
30 #undef _THREADSAFE
31 #endif
32 #ifndef THREAD_SAFE
33 #undef THREAD_SAFE
34 #endif
35 #ifndef _THREAD_SAFE
36 #undef _THREAD_SAFE
37 #endif
38
39 /* define this if cross compiling */
40 #undef CROSS_COMPILING
41
42 /* define this if toupper() requires tolower() check */
43 #undef C_UPPER_LOWER
44
45 /* define this to the number of arguments ctime_r() expects */
46 #undef CTIME_R_NARGS
47
48 /* define this to the number of arguments gethostbyaddr_r expects */
49 #undef GETHOSTBYADDR_R_NARGS
50
51 /* define this to the number of arguments gethostbyname_r expects */
52 #undef GETHOSTBYNAME_R_NARGS
53
54 /* define this if sys_errlist is not defined in stdio.h or errno.h */
55 #undef DECL_SYS_ERRLIST
56
57 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
58 #undef GWINSZ_IN_SYS_IOCTL
59
60 /* define if you have berkeley db */
61 #undef HAVE_BERKELEY_DB
62
63 /* define if you have berkeley db2 */
64 #undef HAVE_BERKELEY_DB2
65
66 /* define if you have crypt */
67 #undef HAVE_CRYPT
68
69 /* define if you have DSAP */
70 #undef HAVE_DSAP
71
72 /* define if you have GDBM */
73 #undef HAVE_GDBM
74
75 /* define if you have ISODE */
76 #undef HAVE_ISODE
77
78 /* define if you have Kerberos */
79 #undef HAVE_KERBEROS
80
81 /* define if you have LinuxThreads */
82 #undef HAVE_LINUX_THREADS
83
84 /* define if you have Sun LWP (SunOS style) */
85 #undef HAVE_LWP
86
87 /* define if you have -lncurses */
88 #undef HAVE_NCURSES
89
90 /* define if you have NDBM */
91 #undef HAVE_NDBM
92
93 /* define if you have Mach CThreads */
94 #undef HAVE_MACH_CTHREADS
95
96 /* define if you have POSIX termios */
97 #undef HAVE_POSIX_TERMIOS
98
99 /* define if you have PP */
100 #undef HAVE_PP
101
102 /* define if you have POSIX Threads */
103 #undef HAVE_PTHREADS
104
105 /* define if your POSIX Threads implementation is circa Final Draft */
106 #undef HAVE_PTHREADS_FINAL
107
108 /* define if your POSIX Threads implementation is circa Draft 4 */
109 #undef HAVE_PTHREADS_D4
110
111 /* define if you have ptrdiff_t */
112 #undef HAVE_PTRDIFF_T
113
114 /* define if you have res_search() */
115 #ifdef __notdef__
116 /* see second res_search define */
117 #undef HAVE_RES_SEARCH
118 #endif
119
120 /* define if you have sched_yield() */
121 #ifdef __notdef__
122 /* see second sched_yield define */
123 #undef HAVE_SCHED_YIELD
124 #endif
125
126 /* define if you have setproctitle() */
127 #undef HAVE_SETPROCTITLE
128
129 /* define if you have -lwrap */
130 #undef HAVE_TCPD
131
132 /* define if you have -ltermcap */
133 #undef HAVE_TERMCAP
134
135 /* define if you have Sun LWP (Solaris style) */
136 #undef HAVE_THR
137
138 /* define if you have XTPP */
139 #undef HAVE_XTPP
140
141 /* define this if select() implicitly yields in thread environments */
142 #undef HAVE_YIELDING_SELECT
143
144 /* define this for connectionless LDAP support */
145 #undef LDAP_CONNECTIONLESS
146
147 /* define this to add debugging code */
148 #undef LDAP_DEBUG
149
150 /* define this for LDAP DNS support */
151 #undef LDAP_DNS
152
153 /* define this to remove -lldap cache support */
154 #undef LDAP_NOCACHE
155
156 /* define this for LDAP process title support */
157 #undef LDAP_PROCTITLE
158
159 /* define this for LDAP User Interface support */
160 #undef LDAP_LIBUI
161
162 /* define this to add syslog code */
163 #undef LDAP_SYSLOG
164
165 /* define this to use DB2 in native mode */
166 #undef LDBM_USE_DB2
167
168 /* define this to use DB2 in compat185 mode */
169 #undef LDBM_USE_DB2_COMPAT185
170
171 /* define this to use DBBTREE w/ LDBM backend */
172 #undef LDBM_USE_DBBTREE
173
174 /* define this to use DBHASH w/ LDBM backend */
175 #undef LDBM_USE_DBHASH
176
177 /* define this to use GDBM w/ LDBM backend */
178 #undef LDBM_USE_GDBM
179
180 /* define this to use NDBM w/ LDBM backend */
181 #undef LDBM_USE_NDBM
182
183 /* define this if you want no termcap support */
184 #undef NO_TERMCAP
185
186 /* define this if you want no thread support */
187 #undef NO_THREADS
188
189 /* define this for ACL Group support */
190 #undef SLAPD_ACLGROUPS
191
192 /* define this to use SLAPD Berkeley DB2 backend */
193 #undef SLAPD_BDB2
194
195 /* define this for ClearText password support */
196 #undef SLAPD_CLEARTEXT
197
198 /* define this for crypt(3) password support */
199 #undef SLAPD_CRYPT
200
201 /* define this to use SLAPD LDBM backend */
202 #undef SLAPD_LDBM
203
204 /* define this to use SLAPD passwd backend */
205 #undef SLAPD_PASSWD
206
207 /* define this to use SLAPD Perl backend */
208 #undef SLAPD_PERL
209
210 /* define this for phonetic support */
211 #undef SLAPD_PHONETIC
212
213 /* define this for Reverse Lookup support */
214 #undef SLAPD_RLOOKUPS
215
216 /* define this to use SLAPD shell backend */
217 #undef SLAPD_SHELL
218
219 /* define this to use SLAPD TCL backend */
220 #undef SLAPD_TCL
221
222 /* define this to be empty if your compiler doesn't support volatile */
223 #undef volatile
224
225 /* define this if sig_atomic_t isn't defined in signal.h */
226 #undef sig_atomic_t
227
228 /* These are defined in ldap_features.h */
229 /*
230         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
231         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
232         LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
233         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
234 */
235
236 \f
237 /* Leave that blank line there!!  Autoheader needs it. */
238
239 @BOTTOM@
240 /* begin of postamble */
241
242 #ifdef HAVE_STDDEF_H
243 #       include <stddef.h>
244 #endif
245
246 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
247 #define LDAP_TEST
248 #endif
249 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
250 #define LDAP_DEBUG
251 #endif
252
253 #include "ldap_cdefs.h"
254 #include "ldap_features.h"
255
256 #include "ac/assert.h"
257
258 #endif /* _LDAP_PORTABLE_H */