]> git.sur5r.net Git - openldap/blob - include/portable.h.in
Patch to support to determine the number of args of the
[openldap] / include / portable.h.in
1 /* include/portable.h.in.  Generated automatically from configure.in by autoheader.  */
2 /*
3  * Copyright 1998,1999 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
12 #ifndef _LDAP_PORTABLE_H
13 #define _LDAP_PORTABLE_H
14
15 /* end of preamble */
16
17 /* Define if on AIX 3.
18    System headers sometimes define this.
19    We just want to avoid a redefinition error message.  */
20 #ifndef _ALL_SOURCE
21 #undef _ALL_SOURCE
22 #endif
23
24 /* Define to empty if the keyword does not work.  */
25 #undef const
26
27 /* Define to the type of elements in the array set by `getgroups'.
28    Usually this is either `int' or `gid_t'.  */
29 #undef GETGROUPS_T
30
31 /* Define to `int' if <sys/types.h> doesn't define.  */
32 #undef gid_t
33
34 /* Define if you don't have vprintf but do have _doprnt.  */
35 #undef HAVE_DOPRNT
36
37 /* Define if your struct stat has st_blksize.  */
38 #undef HAVE_ST_BLKSIZE
39
40 /* Define if you have the strftime function.  */
41 #undef HAVE_STRFTIME
42
43 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
44 #undef HAVE_SYS_WAIT_H
45
46 /* Define if you have the vprintf function.  */
47 #undef HAVE_VPRINTF
48
49 /* Define if on MINIX.  */
50 #undef _MINIX
51
52 /* Define to `int' if <sys/types.h> doesn't define.  */
53 #undef mode_t
54
55 /* Define to `long' if <sys/types.h> doesn't define.  */
56 #undef off_t
57
58 /* Define to `int' if <sys/types.h> doesn't define.  */
59 #undef pid_t
60
61 /* Define if the system does not provide POSIX.1 features except
62    with this defined.  */
63 #undef _POSIX_1_SOURCE
64
65 /* Define if you need to in order for stat and other things to work.  */
66 #undef _POSIX_SOURCE
67
68 /* Define as the return type of signal handlers (int or void).  */
69 #undef RETSIGTYPE
70
71 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
72 #undef size_t
73
74 /* Define if you have the ANSI C header files.  */
75 #undef STDC_HEADERS
76
77 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
78 #undef TIME_WITH_SYS_TIME
79
80 /* Define if your <sys/time.h> declares struct tm.  */
81 #undef TM_IN_SYS_TIME
82
83 /* Define to `int' if <sys/types.h> doesn't define.  */
84 #undef uid_t
85
86 /* Define if your processor stores words with the most significant
87    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
88 #undef WORDS_BIGENDIAN
89
90 /* define this if needed to get reentrant functions */
91 #ifndef REENTRANT
92 #undef REENTRANT
93 #endif
94 #ifndef _REENTRANT
95 #undef _REENTRANT
96 #endif
97
98 /* define this if needed to get threadsafe functions */
99 #ifndef THREADSAFE
100 #undef THREADSAFE
101 #endif
102 #ifndef _THREADSAFE
103 #undef _THREADSAFE
104 #endif
105 #ifndef THREAD_SAFE
106 #undef THREAD_SAFE
107 #endif
108 #ifndef _THREAD_SAFE
109 #undef _THREAD_SAFE
110 #endif
111
112 /* define this if toupper() requires tolower() check */
113 #undef C_UPPER_LOWER
114
115 /* define this to the number of arguments ctime_r() expects */
116 #undef CTIME_R_NARGS
117
118 /* define this if sys_errlist is not defined in stdio.h or errno.h */
119 #undef DECL_SYS_ERRLIST
120
121 /* define if you have berkeley db */
122 #undef HAVE_BERKELEY_DB
123
124 /* define if you have berkeley db2 */
125 #undef HAVE_BERKELEY_DB2
126
127 /* define if you have crypt */
128 #undef HAVE_CRYPT
129
130 /* define if you have GDBM */
131 #undef HAVE_GDBM
132
133 /* define if you have NDBM */
134 #undef HAVE_NDBM
135
136 /* define if you have res_search() */
137 #ifdef __notdef__
138 /* see second res_search define */
139 #undef HAVE_RES_SEARCH
140 #endif
141
142 /* define if you have sched_yield() */
143 #ifdef __notdef__
144 /* see second sched_yield define */
145 #undef HAVE_SCHED_YIELD
146 #endif
147
148 /* define if you have setproctitle() */
149 #undef HAVE_SETPROCTITLE
150
151 /* define this for connectionless LDAP support */
152 #undef LDAP_CONNECTIONLESS
153
154 /* define this to add debugging code */
155 #undef LDAP_DEBUG
156
157 /* define this to remove -lldap cache support */
158 #undef LDAP_NOCACHE
159
160 /* define this for LDAP process title support */
161 #undef LDAP_PROCTITLE
162
163 /* define this for LDAP User Interface support */
164 #undef LDAP_LIBUI
165
166 /* define this to add syslog code */
167 #undef LDAP_SYSLOG
168
169 /* define this to use DBBTREE w/ LDBM backend */
170 #undef LDBM_USE_DBBTREE
171
172 /* define this to use DBHASH w/ LDBM backend */
173 #undef LDBM_USE_DBHASH
174
175 /* define this for ACL Group support */
176 #undef SLAPD_ACLGROUPS
177
178 /* define this to use SLAPD Berkeley DB2 backend */
179 #undef SLAPD_BDB2
180
181 /* define this for ClearText password support */
182 #undef SLAPD_CLEARTEXT
183
184 /* define this for crypt(3) password support */
185 #undef SLAPD_CRYPT
186
187 /* define this to use SLAPD LDBM backend */
188 #undef SLAPD_LDBM
189
190 /* define this to use SLAPD passwd backend */
191 #undef SLAPD_PASSWD
192
193 /* define this to use SLAPD Perl backend */
194 #undef SLAPD_PERL
195
196 /* define this for phonetic support */
197 #undef SLAPD_PHONETIC
198
199 /* define this for Reverse Lookup support */
200 #undef SLAPD_RLOOKUPS
201
202 /* define this to use SLAPD shell backend */
203 #undef SLAPD_SHELL
204
205 /* define this to use SLAPD TCL backend */
206 #undef SLAPD_TCL
207
208 /* define this to be empty if your compiler doesn't support volatile */
209 #undef volatile
210
211 /* define this if sig_atomic_t isn't defined in signal.h */
212 #undef sig_atomic_t
213
214 /* These are defined in ldap_features.h */
215 /*
216  LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
217  LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
218  LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
219  LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
220 */
221
222 /* The number of bytes in a int.  */
223 #undef SIZEOF_INT
224
225 /* The number of bytes in a long.  */
226 #undef SIZEOF_LONG
227
228 /* The number of bytes in a short.  */
229 #undef SIZEOF_SHORT
230
231 /* Define if you have the bcopy function.  */
232 #undef HAVE_BCOPY
233
234 /* Define if you have the ctime_r function.  */
235 #undef HAVE_CTIME_R
236
237 /* Define if you have the flock function.  */
238 #undef HAVE_FLOCK
239
240 /* Define if you have the getdtablesize function.  */
241 #undef HAVE_GETDTABLESIZE
242
243 /* Define if you have the gethostbyaddr_r function.  */
244 #undef HAVE_GETHOSTBYADDR_R
245
246 /* Define if you have the gethostbyname_r function.  */
247 #undef HAVE_GETHOSTBYNAME_R
248
249 /* Define if you have the gethostname function.  */
250 #undef HAVE_GETHOSTNAME
251
252 /* Define if you have the getopt function.  */
253 #undef HAVE_GETOPT
254
255 /* Define if you have the getpwuid function.  */
256 #undef HAVE_GETPWUID
257
258 /* Define if you have the gettimeofday function.  */
259 #undef HAVE_GETTIMEOFDAY
260
261 /* Define if you have the lockf function.  */
262 #undef HAVE_LOCKF
263
264 /* Define if you have the memcpy function.  */
265 #undef HAVE_MEMCPY
266
267 /* Define if you have the memmove function.  */
268 #undef HAVE_MEMMOVE
269
270 /* Define if you have the mkstemp function.  */
271 #undef HAVE_MKSTEMP
272
273 /* Define if you have the pthread_getconcurrency function.  */
274 #undef HAVE_PTHREAD_GETCONCURRENCY
275
276 /* Define if you have the pthread_kill function.  */
277 #undef HAVE_PTHREAD_KILL
278
279 /* Define if you have the pthread_setconcurrency function.  */
280 #undef HAVE_PTHREAD_SETCONCURRENCY
281
282 /* Define if you have the pthread_yield function.  */
283 #undef HAVE_PTHREAD_YIELD
284
285 /* Define if you have the res_search function.  */
286 #undef HAVE_RES_SEARCH
287
288 /* Define if you have the sched_yield function.  */
289 #undef HAVE_SCHED_YIELD
290
291 /* Define if you have the select function.  */
292 #undef HAVE_SELECT
293
294 /* Define if you have the setpwfile function.  */
295 #undef HAVE_SETPWFILE
296
297 /* Define if you have the setsid function.  */
298 #undef HAVE_SETSID
299
300 /* Define if you have the signal function.  */
301 #undef HAVE_SIGNAL
302
303 /* Define if you have the sigset function.  */
304 #undef HAVE_SIGSET
305
306 /* Define if you have the snprintf function.  */
307 #undef HAVE_SNPRINTF
308
309 /* Define if you have the socket function.  */
310 #undef HAVE_SOCKET
311
312 /* Define if you have the strdup function.  */
313 #undef HAVE_STRDUP
314
315 /* Define if you have the strerror function.  */
316 #undef HAVE_STRERROR
317
318 /* Define if you have the strpbrk function.  */
319 #undef HAVE_STRPBRK
320
321 /* Define if you have the strrchr function.  */
322 #undef HAVE_STRRCHR
323
324 /* Define if you have the strsep function.  */
325 #undef HAVE_STRSEP
326
327 /* Define if you have the strspn function.  */
328 #undef HAVE_STRSPN
329
330 /* Define if you have the strstr function.  */
331 #undef HAVE_STRSTR
332
333 /* Define if you have the strtol function.  */
334 #undef HAVE_STRTOL
335
336 /* Define if you have the strtoul function.  */
337 #undef HAVE_STRTOUL
338
339 /* Define if you have the sysconf function.  */
340 #undef HAVE_SYSCONF
341
342 /* Define if you have the tempnam function.  */
343 #undef HAVE_TEMPNAM
344
345 /* Define if you have the thr_getconcurrency function.  */
346 #undef HAVE_THR_GETCONCURRENCY
347
348 /* Define if you have the thr_setconcurrency function.  */
349 #undef HAVE_THR_SETCONCURRENCY
350
351 /* Define if you have the thr_yield function.  */
352 #undef HAVE_THR_YIELD
353
354 /* Define if you have the vsnprintf function.  */
355 #undef HAVE_VSNPRINTF
356
357 /* Define if you have the vsprintf function.  */
358 #undef HAVE_VSPRINTF
359
360 /* Define if you have the waitpid function.  */
361 #undef HAVE_WAITPID
362
363 /* Define if you have the <arpa/nameser.h> header file.  */
364 #undef HAVE_ARPA_NAMESER_H
365
366 /* Define if you have the <crypt.h> header file.  */
367 #undef HAVE_CRYPT_H
368
369 /* Define if you have the <db.h> header file.  */
370 #undef HAVE_DB_H
371
372 /* Define if you have the <db_185.h> header file.  */
373 #undef HAVE_DB_185_H
374
375 /* Define if you have the <des.h> header file.  */
376 #undef HAVE_DES_H
377
378 /* Define if you have the <dirent.h> header file.  */
379 #undef HAVE_DIRENT_H
380
381 /* Define if you have the <dmalloc.h> header file.  */
382 #undef HAVE_DMALLOC_H
383
384 /* Define if you have the <errno.h> header file.  */
385 #undef HAVE_ERRNO_H
386
387 /* Define if you have the <fcntl.h> header file.  */
388 #undef HAVE_FCNTL_H
389
390 /* Define if you have the <filio.h> header file.  */
391 #undef HAVE_FILIO_H
392
393 /* Define if you have the <gdbm.h> header file.  */
394 #undef HAVE_GDBM_H
395
396 /* Define if you have the <getopt.h> header file.  */
397 #undef HAVE_GETOPT_H
398
399 /* Define if you have the <kerberosIV/des.h> header file.  */
400 #undef HAVE_KERBEROSIV_DES_H
401
402 /* Define if you have the <kerberosIV/krb.h> header file.  */
403 #undef HAVE_KERBEROSIV_KRB_H
404
405 /* Define if you have the <krb.h> header file.  */
406 #undef HAVE_KRB_H
407
408 /* Define if you have the <libutil.h> header file.  */
409 #undef HAVE_LIBUTIL_H
410
411 /* Define if you have the <limits.h> header file.  */
412 #undef HAVE_LIMITS_H
413
414 /* Define if you have the <locale.h> header file.  */
415 #undef HAVE_LOCALE_H
416
417 /* Define if you have the <lwp/lwp.h> header file.  */
418 #undef HAVE_LWP_LWP_H
419
420 /* Define if you have the <mach/cthreads.h> header file.  */
421 #undef HAVE_MACH_CTHREADS_H
422
423 /* Define if you have the <malloc.h> header file.  */
424 #undef HAVE_MALLOC_H
425
426 /* Define if you have the <memory.h> header file.  */
427 #undef HAVE_MEMORY_H
428
429 /* Define if you have the <ncurses.h> header file.  */
430 #undef HAVE_NCURSES_H
431
432 /* Define if you have the <ndbm.h> header file.  */
433 #undef HAVE_NDBM_H
434
435 /* Define if you have the <ndir.h> header file.  */
436 #undef HAVE_NDIR_H
437
438 /* Define if you have the <psap.h> header file.  */
439 #undef HAVE_PSAP_H
440
441 /* Define if you have the <pthread.h> header file.  */
442 #undef HAVE_PTHREAD_H
443
444 /* Define if you have the <pwd.h> header file.  */
445 #undef HAVE_PWD_H
446
447 /* Define if you have the <regex.h> header file.  */
448 #undef HAVE_REGEX_H
449
450 /* Define if you have the <resolv.h> header file.  */
451 #undef HAVE_RESOLV_H
452
453 /* Define if you have the <sched.h> header file.  */
454 #undef HAVE_SCHED_H
455
456 /* Define if you have the <sgtty.h> header file.  */
457 #undef HAVE_SGTTY_H
458
459 /* Define if you have the <stdarg.h> header file.  */
460 #undef HAVE_STDARG_H
461
462 /* Define if you have the <stddef.h> header file.  */
463 #undef HAVE_STDDEF_H
464
465 /* Define if you have the <string.h> header file.  */
466 #undef HAVE_STRING_H
467
468 /* Define if you have the <strings.h> header file.  */
469 #undef HAVE_STRINGS_H
470
471 /* Define if you have the <synch.h> header file.  */
472 #undef HAVE_SYNCH_H
473
474 /* Define if you have the <sys/dir.h> header file.  */
475 #undef HAVE_SYS_DIR_H
476
477 /* Define if you have the <sys/errno.h> header file.  */
478 #undef HAVE_SYS_ERRNO_H
479
480 /* Define if you have the <sys/file.h> header file.  */
481 #undef HAVE_SYS_FILE_H
482
483 /* Define if you have the <sys/filio.h> header file.  */
484 #undef HAVE_SYS_FILIO_H
485
486 /* Define if you have the <sys/ioctl.h> header file.  */
487 #undef HAVE_SYS_IOCTL_H
488
489 /* Define if you have the <sys/ndir.h> header file.  */
490 #undef HAVE_SYS_NDIR_H
491
492 /* Define if you have the <sys/param.h> header file.  */
493 #undef HAVE_SYS_PARAM_H
494
495 /* Define if you have the <sys/resource.h> header file.  */
496 #undef HAVE_SYS_RESOURCE_H
497
498 /* Define if you have the <sys/socket.h> header file.  */
499 #undef HAVE_SYS_SOCKET_H
500
501 /* Define if you have the <sys/syslog.h> header file.  */
502 #undef HAVE_SYS_SYSLOG_H
503
504 /* Define if you have the <sys/time.h> header file.  */
505 #undef HAVE_SYS_TIME_H
506
507 /* Define if you have the <sys/types.h> header file.  */
508 #undef HAVE_SYS_TYPES_H
509
510 /* Define if you have the <sysexits.h> header file.  */
511 #undef HAVE_SYSEXITS_H
512
513 /* Define if you have the <syslog.h> header file.  */
514 #undef HAVE_SYSLOG_H
515
516 /* Define if you have the <tcl.h> header file.  */
517 #undef HAVE_TCL_H
518
519 /* Define if you have the <tcpd.h> header file.  */
520 #undef HAVE_TCPD_H
521
522 /* Define if you have the <termcap.h> header file.  */
523 #undef HAVE_TERMCAP_H
524
525 /* Define if you have the <termios.h> header file.  */
526 #undef HAVE_TERMIOS_H
527
528 /* Define if you have the <thread.h> header file.  */
529 #undef HAVE_THREAD_H
530
531 /* Define if you have the <unistd.h> header file.  */
532 #undef HAVE_UNISTD_H
533
534 /* Define if you have the V3 library (-lV3).  */
535 #undef HAVE_LIBV3
536
537 /* Define if you have the bind library (-lbind).  */
538 #undef HAVE_LIBBIND
539
540 /* Define if you have the dmalloc library (-ldmalloc).  */
541 #undef HAVE_LIBDMALLOC
542
543 /* Define if you have the gen library (-lgen).  */
544 #undef HAVE_LIBGEN
545
546 /* Define if you have the inet library (-linet).  */
547 #undef HAVE_LIBINET
548
549 /* Define if you have the net library (-lnet).  */
550 #undef HAVE_LIBNET
551
552 /* Define if you have the nsl library (-lnsl).  */
553 #undef HAVE_LIBNSL
554
555 /* Define if you have the nsl_s library (-lnsl_s).  */
556 #undef HAVE_LIBNSL_S
557
558 /* Define if you have the resolv library (-lresolv).  */
559 #undef HAVE_LIBRESOLV
560
561 /* Define if you have the socket library (-lsocket).  */
562 #undef HAVE_LIBSOCKET
563
564 /* define if you have -lxttp */
565 #undef HAVE_XTPP
566
567 /* define if you have -ldsap */
568 #undef HAVE_DSAP
569
570 /* define if you have -lisode */
571 #undef HAVE_ISODE
572
573 /* define if you have -lpp */
574 #undef HAVE_PP
575
576 /* define if you have Kerberos des_debug */
577 #undef HAVE_DES_DEBUG
578
579 /* define if you have Kerberos */
580 #undef HAVE_KERBEROS
581
582 /* define if pthreads API compatible with final spec */
583 #undef HAVE_PTHREADS_FINAL
584
585 /* define if pthreads API compatible with draft4 spec */
586 #undef HAVE_PTHREADS_D4
587
588 /* define if you have LinuxThreads */
589 #undef HAVE_LINUX_THREADS
590
591 /* define if you have POSIX Threads */
592 #undef HAVE_PTHREADS
593
594 /* define if you have pthread_detach function */
595 #undef HAVE_PTHREAD_DETACH
596
597 /* define if you have Mach Cthreads */
598 #undef HAVE_MACH_CTHREADS
599
600 /* if you have Solaris LWP (thr) package */
601 #undef HAVE_THR
602
603 /* if you have SunOS LWP package */
604 #undef HAVE_LWP
605
606 /* define if select implicitly yields */
607 #undef HAVE_YIELDING_SELECT
608
609 /* define if you have (or want) no threads */
610 #undef NO_THREADS
611
612 /* define if you have -lwrap */
613 #undef HAVE_TCPD
614
615 /* define if you have -ltermcap */
616 #undef HAVE_TERMCAP
617
618 /* define if you have -lncurses */
619 #undef HAVE_NCURSES
620
621 /* define if you have no termcap support */
622 #undef NO_TERMCAP
623
624 /* Define if TIOCGWINSZ requires sys/ioctl.h */
625 #undef GWINSZ_IN_SYS_IOCTL
626
627 /* define if you have POSIX termios */
628 #undef HAVE_POSIX_TERMIOS
629
630 /* Define if system has ptrdiff_t type */
631 #undef HAVE_PTRDIFF_T
632
633 /* define if cross compiling */
634 #undef CROSS_COMPILING
635
636 /* begin of postamble */
637
638 #ifdef HAVE_STDDEF_H
639 #       include <stddef.h>
640 #endif
641
642 #include "ldap_cdefs.h"
643 #include "ldap_features.h"
644
645 #endif /* _LDAP_PORTABLE_H */