]> git.sur5r.net Git - openldap/blob - include/portable.h.nt
13a155fc443700ee626deb99cb3597a04203c2f1
[openldap] / include / portable.h.nt
1 /* include/portable.h.in.  Generated automatically from configure.in by autoheader.  */
2 /*
3 Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
4 All rights reserved.
5
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.
10
11 This work is derived from the University of Michigan LDAP v3.3
12 distribution.  Information concerning is available at
13     http://www.umich.edu/~dirsvcs/ldap/ldap.html.
14
15 This work also contains materials derived from public sources.
16
17 ---
18
19 Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
20 All rights reserved.
21
22 Redistribution and use in source and binary forms are permitted
23 provided that this notice is preserved and that due credit is given
24 to the University of Michigan at Ann Arbor. The name of the University
25 may not be used to endorse or promote products derived from this 
26 software without specific prior written permission. This software
27 is provided ``as is'' without express or implied warranty.
28  
29 */
30
31 #ifndef _LDAP_PORTABLE_H
32 #define _LDAP_PORTABLE_H
33
34 /* we installed Henry Spencer's REGEX */
35 #define HAVE_REGEX_H 1
36
37 /* win32 specific stuff */
38 #define strcasecmp      stricmp
39 #define strncasecmp     strnicmp
40 #define strdup          _strdup
41
42 /* define type for caddr_t */
43 typedef char * caddr_t;
44
45 /* we have winsock2 */
46 #define HAVE_WINSOCK2 1
47
48 /* we have <io.h> */
49 #define HAVE_IO_H 1
50
51 /* we have <process.h> */
52 #define HAVE_PROCESS_H 1
53
54 /* --------------------------------------------------- */
55
56 /* Define if on AIX 3.
57    System headers sometimes define this.
58    We just want to avoid a redefinition error message.  */
59 #ifndef _ALL_SOURCE
60 /* #undef _ALL_SOURCE */
61 #endif
62
63 /* Define to empty if the keyword does not work.  */
64 /* #undef const */
65
66 /* Define to the type of elements in the array set by `getgroups'.
67    Usually this is either `int' or `gid_t'.  */
68 /* #undef GETGROUPS_T */
69
70 /* Define to `int' if <sys/types.h> doesn't define.  */
71 #define gid_t long
72
73 /* Define if you don't have vprintf but do have _doprnt.  */
74 /* #undef HAVE_DOPRNT */
75
76 /* Define if your struct stat has st_blksize.  */
77 /* #undef HAVE_ST_BLKSIZE */
78
79 /* Define if you have the strftime function.  */
80 #define HAVE_STRFTIME 1
81
82 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
83 /* #undef HAVE_SYS_WAIT_H */
84
85 /* Define if you have the vprintf function.  */
86 #define HAVE_VPRINTF 1
87
88 /* Define if you have the wait3 system call.  */
89 /* #undef HAVE_WAIT3 */
90
91 /* Define if on MINIX.  */
92 /* #undef _MINIX */
93
94 /* Define to `int' if <sys/types.h> doesn't define.  */
95 #define mode_t int
96
97 /* Define to `long' if <sys/types.h> doesn't define.  */
98 /* #undef off_t */
99
100 /* Define to `int' if <sys/types.h> doesn't define.  */
101 #define pid_t int
102
103 /* Define if the system does not provide POSIX.1 features except
104    with this defined.  */
105 /* #undef _POSIX_1_SOURCE */
106
107 /* Define if you need to in order for stat and other things to work.  */
108 /* #undef _POSIX_SOURCE */
109
110 /* Define as the return type of signal handlers (int or void).  */
111 #define RETSIGTYPE void
112
113 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
114 /* #undef size_t */
115
116 /* Define if you have the ANSI C header files.  */
117 #define STDC_HEADERS 1
118
119 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
120 /* #undef TIME_WITH_SYS_TIME */
121
122 /* Define if your <sys/time.h> declares struct tm.  */
123 /* #undef TM_IN_SYS_TIME */
124
125 /* Define to `int' if <sys/types.h> doesn't define.  */
126 #define uid_t long
127
128 /* define this if toupper() requires tolower() */
129 #define C_UPPER_LOWER
130
131 /* define this if sys_errlist is not defined in stdio.h or errno.h */
132 /* #undef DECL_SYS_ERRLIST */
133
134 /* define if you have berkeley db */
135 /* #undef HAVE_BERKELEY_DB */
136
137 /* define if you have berkeley db2 */
138 /* #undef HAVE_BERKELEY_DB2 */
139
140 /* define if you have crypt */
141 /* #undef HAVE_CRYPT */
142
143 /* define if you have DCE */
144 /* #undef HAVE_DCE */
145
146 /* define if you have GDBM */
147 /* #undef HAVE_GDBM */
148
149 /* define if you have Kerberos */
150 /* #undef HAVE_KERBEROS */
151
152 /* define if you have LinuxThreads */
153 /* #undef HAVE_LINUX_THREADS */
154
155 /* define if you have Sun LWP (SunOS style) */
156 /* #undef HAVE_LWP */
157
158 /* define if you have -lncurses */
159 /* #undef HAVE_NCURSES */
160
161 /* define if you have NDBM */
162 /* #undef HAVE_NDBM */
163
164 /* define if you have Mach CThreads */
165 /* #undef HAVE_MACH_CTHREADS */
166
167 /* define if you have a preemptive POSIX Threads implementation */
168 /* #undef HAVE_PREEMPTIVE_PTHREADS */
169
170 /* define if you have POSIX Threads */
171 /* #undef HAVE_PTHREADS */
172
173 /* define if your POSIX Threads implementatin is circa Draft 4 */
174 /* #undef HAVE_PTHREADS_D4 */
175
176 /* define if you have -lwrap */
177 /* #undef HAVE_TCPD */
178
179 /* define if you have -ltermcap */
180 /* #undef HAVE_TERMCAP */
181
182 /* define if you have Solaris LWP Threads */
183 /* #undef HAVE_THR */
184
185 /* define this for connectionless LDAP support */
186 /* #undef LDAP_CONNECTIONLESS */
187
188 /* define this to add debugging code */
189 #define LDAP_DEBUG 1
190
191 /* define this for LDAP DNS support */
192 #define LDAP_DNS 1
193
194 /* define this to remove -lldap cache support */
195 /* #undef LDAP_NOCACHE */
196
197 /* define this for LDAP referrals support */
198 #define LDAP_REFERRALS 1
199
200 /* define this for LDAP User Interface support */
201 /* #undef LDAP_LIBUI */
202
203 /* define this to use DBBTREE w/ LDBM backend */
204 /* #undef LDBM_USE_DBBTREE */
205
206 /* define this to use DBHASH w/ LDBM backend */
207 /* #undef LDBM_USE_DBHASH */
208
209 /* define this if you want no termcap support */
210 #define NO_TERMCAP 1
211
212 /* define this if you want no thread support */
213 #define NO_THREADS 1
214
215 /* define this if the thread package is preemptive */
216 #define PREEMPTIVE_THREADS 1
217
218 /* define this for ACL Group support */
219 #define SLAPD_ACLGROUPS
220
221 /* define this for crypt(3) password support */
222 /* #undef SLAPD_CRYPT */
223
224 /* define this to use SLAPD LDBM backend */
225 /* #undef SLAPD_LDBM */
226
227 /* define this for MD5 password support */
228 #define SLAPD_MD5 1
229
230 /* define this to use SLAPD passwd backend */
231 /* #undef SLAPD_PASSWD */
232
233 /* define this for phonetic support */
234 /* #undef SLAPD_PHONETIC */
235
236 /* define this for Reverse Lookup support */
237 #define SLAPD_RLOOKUPS 1
238
239 /* define this for SHA1 password support */
240 #define SLAPD_SHA1 1
241
242 /* define this to use SLAPD shell backend */
243 /* #undef SLAPD_SHELL */
244
245 /* Define if you have the bcopy function.  */
246 /* #undef HAVE_BCOPY */
247
248 /* Define if you have the flock function.  */
249 /* #undef HAVE_FLOCK */
250
251 /* Define if you have the getdtablesize function.  */
252 /* #undef HAVE_GETDTABLESIZE */
253
254 /* Define if you have the gethostname function.  */
255 #define HAVE_GETHOSTNAME 1
256
257 /* define if you have the getopt function */
258 /* #undef HAVE_GETOPT */
259
260 /* Define if you have the gettimeofday function.  */
261 /* #undef HAVE_GETTIMEOFDAY */
262
263 /* Define if you have the lockf function.  */
264 /* #undef HAVE_LOCKF */
265
266 /* Define if you have the memcpy function.  */
267 #define HAVE_MEMCPY 1
268
269 /* Define if you have the memmove function.  */
270 #define HAVE_MEMMOVE 1
271
272 /* Define if you have the mkstemp function.  */
273 /* #undef HAVE_MKSTEMP */
274
275 /* Define if you have the mktime function.  */
276 #define HAVE_MKTIME 1
277
278 /* Define if you have the pthread_kill function.  */
279 /* #undef HAVE_PTHREAD_KILL */
280
281 /* Define if you have the pthread_yield function.  */
282 /* #undef HAVE_PTHREAD_YIELD */
283
284 /* Define if you have the sched_yield function.  */
285 /* #undef HAVE_SCHED_YIELD */
286
287 /* Define if you have the select function.  */
288 #define HAVE_SELECT 1
289
290 /* Define if you have the setpwfile function.  */
291 /* #undef HAVE_SETPWFILE */
292
293 /* Define if you have the setsid function.  */
294 /* #undef HAVE_SETSID */
295
296 /* Define if you have the signal function.  */
297 #define HAVE_SIGNAL 1
298
299 /* Define if you have the sigset function.  */
300 /* #undef HAVE_SIGSET */
301
302 /* Define if you have the socket function.  */
303 #define HAVE_SOCKET 1
304
305 /* Define if you have the strdup function.  */
306 #define HAVE_STRDUP 1
307
308 /* Define if you have the strerror function.  */
309 #define HAVE_STRERROR 1
310
311 /* Define if you have the strrchr function.  */
312 #define HAVE_STRRCHR 1
313
314 /* Define if you have the strsep function.  */
315 /* #undef HAVE_STRSEP */
316
317 /* Define if you have the strstr function.  */
318 #define HAVE_STRSTR 1
319
320 /* Define if you have the strtod function.  */
321 #define HAVE_STRTOD 1
322
323 /* Define if you have the strtol function.  */
324 #define HAVE_STRTOL 1
325
326 /* Define if you have the strtoul function.  */
327 #define HAVE_STRTOUL 1
328
329 /* Define if you have the sysconf function.  */
330 /* #undef HAVE_SYSCONF */
331
332 /* Define if you have the waitpid function.  */
333 #define HAVE_WAITPID 1
334
335 /* Define if you have the <db.h> header file.  */
336 /* #undef HAVE_DB_H */
337
338 /* Define if you have the <db_185.h> header file.  */
339 /* #undef HAVE_DB_185_H */
340
341 /* Define if you have the <des.h> header file.  */
342 /* #undef HAVE_DES_H */
343
344 /* Define if you have the <dirent.h> header file.  */
345 /* #undef HAVE_DIRENT_H */
346
347 /* Define if you have the <errno.h> header file.  */
348 #define HAVE_ERRNO_H 1
349
350 /* Define if you have the <fcntl.h> header file.  */
351 #define HAVE_FCNTL_H 1
352
353 /* Define if you have the <filio.h> header file.  */
354 /* #undef HAVE_FILIO_H */
355
356 /* Define if you have the <gdbm.h> header file.  */
357 /* #undef HAVE_GDBM_H */
358
359 /* Define if you have the <getopt.h> header file.  */
360 /* #undef HAVE_GETOPT_H */
361
362 /* Define if you have the <kerberosIV/des.h> header file.  */
363 /* #undef HAVE_KERBEROSIV_DES_H */
364
365 /* Define if you have the <kerberosIV/krb.h> header file.  */
366 /* #undef HAVE_KERBEROSIV_KRB_H */
367
368 /* Define if you have the <krb.h> header file.  */
369 /* #undef HAVE_KRB_H */
370
371 /* Define if you have the <limits.h> header file.  */
372 #define HAVE_LIMITS_H 1
373
374 /* Define if you have the <lwp/lwp.h> header file.  */
375 /* #undef HAVE_LWP_LWP_H */
376
377 /* Define if you have the <mach/cthreads.h> header file.  */
378 /* #undef HAVE_MACH_CTHREADS_H */
379
380 /* Define if you have the <malloc.h> header file.  */
381 #define HAVE_MALLOC_H 1
382
383 /* Define if you have the <ncurses.h> header file.  */
384 /* #undef HAVE_NCURSES_H */
385
386 /* Define if you have the <ndbm.h> header file.  */
387 /* #undef HAVE_NDBM_H */
388
389 /* Define if you have the <ndir.h> header file.  */
390 /* #undef HAVE_NDIR_H */
391
392 /* Define if you have the <pthread.h> header file.  */
393 /* #undef HAVE_PTHREAD_H */
394
395 /* Define if you have the <regex.h> header file.  */
396 /* #undef HAVE_REGEX_H */
397
398 /* Define if you have the <sched.h> header file.  */
399 /* #undef HAVE_SCHED_H */
400
401 /* Define if you have the <sgtty.h> header file.  */
402 /* #undef HAVE_SGTTY_H */
403
404 /* Define if you have the <stddef.h> header file.  */
405 #define HAVE_STDDEF_H 1
406
407 /* Define if you have the <synch.h> header file.  */
408 /* #undef HAVE_SYNCH_H */
409
410 /* Define if you have the <sys/dir.h> header file.  */
411 /* #undef HAVE_SYS_DIR_H */
412
413 /* Define if you have the <sys/errno.h> header file.  */
414 /* #undef HAVE_SYS_ERRNO_H */
415
416 /* Define if you have the <sys/file.h> header file.  */
417 /* #undef HAVE_SYS_FILE_H */
418
419 /* Define if you have the <sys/ioctl.h> header file.  */
420 /* #undef HAVE_SYS_IOCTL_H */
421
422 /* Define if you have the <sys/ndir.h> header file.  */
423 /* #undef HAVE_SYS_NDIR_H */
424
425 /* Define if you have the <sys/param.h> header file.  */
426 /* #undef HAVE_SYS_PARAM_H */
427
428 /* Define if you have the <sys/socket.h> header file.  */
429 /* #undef HAVE_SYS_SOCKET_H */
430
431 /* Define if you have the <sys/syslog.h> header file.  */
432 /* #undef HAVE_SYS_SYSLOG_H */
433
434 /* Define if you have the <sys/time.h> header file.  */
435 /* #undef HAVE_SYS_TIME_H */
436
437 /* Define if you have the <sys/types.h> header file.  */
438 #define HAVE_SYS_TYPES_H 1
439
440 /* Define if you have the <syslog.h> header file.  */
441 /* #undef HAVE_SYSLOG_H */
442
443 /* Define if you have the <termcap.h> header file.  */
444 /* #undef HAVE_TERMCAP_H */
445
446 /* Define if you have the <termios.h> header file.  */
447 /* #undef HAVE_TERMIOS_H */
448
449 /* Define if you have the <thread.h> header file.  */
450 /* #undef HAVE_THREAD_H */
451
452 /* Define if you have the <unistd.h> header file.  */
453 /* #undef HAVE_UNISTD_H */
454
455 /* Define if you have the V3 library (-lV3).  */
456 /* #undef HAVE_LIBV3 */
457
458 /* Define if you have the gen library (-lgen).  */
459 /* #undef HAVE_LIBGEN */
460
461 /* Define if you have the inet library (-linet).  */
462 /* #undef HAVE_LIBINET */
463
464 /* Define if you have the net library (-lnet).  */
465 /* #undef HAVE_LIBNET */
466
467 /* Define if you have the nsl library (-lnsl).  */
468 /* #undef HAVE_LIBNSL */
469
470 /* Define if you have the nsl_s library (-lnsl_s).  */
471 /* #undef HAVE_LIBNSL_S */
472
473 /* Define if you have the socket library (-lsocket).  */
474 /* #undef HAVE_LIBSOCKET */
475
476 #ifdef HAVE_STDDEF_H
477 #       include <stddef.h>
478 #endif
479
480 #include "ldap_cdefs.h"
481
482 #endif /* _LDAP_PORTABLE_H */