1 /* include/portable.h. Generated by configure. */ 2 /* include/portable.hin. Generated from configure.in by autoheader. */ 3 4 5 /* begin of portable.h.pre */ 6 /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 7 * 8 * Copyright 1998-2008 The OpenLDAP Foundation 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted only as authorized by the OpenLDAP 13 * Public License. 14 * 15 * A copy of this license is available in the file LICENSE in the 16 * top-level directory of the distribution or, alternatively, at 17 * <http://www.OpenLDAP.org/license.html>. 18 */ 19 20 #ifndef _LDAP_PORTABLE_H 21 #define _LDAP_PORTABLE_H 22 23 /* define this if needed to get reentrant functions */ 24 #ifndef REENTRANT 25 #define REENTRANT 1 26 #endif 27 #ifndef _REENTRANT 28 #define _REENTRANT 1 29 #endif 30 31 /* define this if needed to get threadsafe functions */ 32 #ifndef THREADSAFE 33 #define THREADSAFE 1 34 #endif 35 #ifndef _THREADSAFE 36 #define _THREADSAFE 1 37 #endif 38 #ifndef THREAD_SAFE 39 #define THREAD_SAFE 1 40 #endif 41 #ifndef _THREAD_SAFE 42 #define _THREAD_SAFE 1 43 #endif 44 45 #ifndef _SGI_MP_SOURCE 46 #define _SGI_MP_SOURCE 1 47 #endif 48 49 /* end of portable.h.pre */ 50 51 52 /* define to use both <string.h> and <strings.h> */ 53 /* #undef BOTH_STRINGS_H */ 54 55 /* define if cross compiling */ 56 /* #undef CROSS_COMPILING */ 57 58 /* set to the number of arguments ctime_r() expects */ 59 #define CTIME_R_NARGS 2 60 61 /* define if toupper() requires islower() */ 62 /* #undef C_UPPER_LOWER */ 63 64 /* define if sys_errlist is not declared in stdio.h or errno.h */ 65 /* #undef DECL_SYS_ERRLIST */ 66 67 /* define to enable rewriting in back-ldap and back-meta */ 68 /* #undef ENABLE_REWRITE */ 69 70 /* define to enable slapi library */ 71 /* #undef ENABLE_SLAPI */ 72 73 /* defined to be the EXE extension */ 74 #define EXEEXT "" 75 76 /* set to the number of arguments gethostbyaddr_r() expects */ 77 /* #undef GETHOSTBYADDR_R_NARGS */ 78 79 /* set to the number of arguments gethostbyname_r() expects */ 80 /* #undef GETHOSTBYNAME_R_NARGS */ 81 82 /* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */ 83 /* #undef GWINSZ_IN_SYS_IOCTL */ 84 85 /* define if you have AIX security lib */ 86 /* #undef HAVE_AIX_SECURITY */ 87 88 /* Define to 1 if you have the <arpa/inet.h> header file. */ 89 #define HAVE_ARPA_INET_H 1 90 91 /* Define to 1 if you have the <arpa/nameser.h> header file. */ 92 #define HAVE_ARPA_NAMESER_H 1 93 94 /* Define to 1 if you have the <assert.h> header file. */ 95 #define HAVE_ASSERT_H 1 96 97 /* Define to 1 if you have the `bcopy' function. */ 98 #define HAVE_BCOPY 1 99 100 /* define this if Berkeley DB is available */ 101 /* #undef HAVE_BERKELEY_DB */ 102 103 /* define if Berkeley DB has DB_THREAD support */ 104 /* #undef HAVE_BERKELEY_DB_THREAD */ 105 106 /* Define to 1 if you have the <bits/types.h> header file. */ 107 /* #undef HAVE_BITS_TYPES_H */ 108 109 /* Define to 1 if you have the `chroot' function. */ 110 #define HAVE_CHROOT 1 111 112 /* Define to 1 if you have the `closesocket' function. */ 113 /* #undef HAVE_CLOSESOCKET */ 114 115 /* Define to 1 if you have the <conio.h> header file. */ 116 /* #undef HAVE_CONIO_H */ 117 118 /* define if crypt(3) is available */ 119 /* #undef HAVE_CRYPT */ 120 121 /* Define to 1 if you have the <crypt.h> header file. */ 122 /* #undef HAVE_CRYPT_H */ 123 124 /* Define to 1 if you have the <cthreads.h> header file. */ 125 /* #undef HAVE_CTHREADS_H */ 126 127 /* Define to 1 if you have the `ctime_r' function. */ 128 #define HAVE_CTIME_R 1 129 130 /* define if you have Cyrus SASL */ 131 /* #undef HAVE_CYRUS_SASL */ 132 133 /* Define to 1 if you have the <db.h> header file. */ 134 /* #undef HAVE_DB_H */ 135 136 /* define if your system supports /dev/poll */ 137 /* #undef HAVE_DEVPOLL */ 138 139 /* Define to 1 if you have the <direct.h> header file. */ 140 /* #undef HAVE_DIRECT_H */ 141 142 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. 143 */ 144 #define HAVE_DIRENT_H 1 145 146 /* Define to 1 if you have the <dlfcn.h> header file. */ 147 #define HAVE_DLFCN_H 1 148 149 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ 150 /* #undef HAVE_DOPRNT */ 151 152 /* define if system uses EBCDIC instead of ASCII */ 153 /* #undef HAVE_EBCDIC */ 154 155 /* Define to 1 if you have the `endgrent' function. */ 156 #define HAVE_ENDGRENT 1 157 158 /* Define to 1 if you have the `endpwent' function. */ 159 #define HAVE_ENDPWENT 1 160 161 /* define if your system supports epoll */ 162 /* #undef HAVE_EPOLL */ 163 164 /* Define to 1 if you have the <errno.h> header file. */ 165 #define HAVE_ERRNO_H 1 166 167 /* Define to 1 if you have the `fcntl' function. */ 168 #define HAVE_FCNTL 1 169 170 /* Define to 1 if you have the <fcntl.h> header file. */ 171 #define HAVE_FCNTL_H 1 172 173 /* define if you actually have FreeBSD fetch(3) */ 174 /* #undef HAVE_FETCH */ 175 176 /* Define to 1 if you have the <filio.h> header file. */ 177 /* #undef HAVE_FILIO_H */ 178 179 /* Define to 1 if you have the `flock' function. */ 180 #define HAVE_FLOCK 1 181 182 /* Define to 1 if you have the `fstat' function. */ 183 #define HAVE_FSTAT 1 184 185 /* Define to 1 if you have the `gai_strerror' function. */ 186 #define HAVE_GAI_STRERROR 1 187 188 /* Define to 1 if you have the `getaddrinfo' function. */ 189 #define HAVE_GETADDRINFO 1 190 191 /* Define to 1 if you have the `getdtablesize' function. */ 192 #define HAVE_GETDTABLESIZE 1 193 194 /* Define to 1 if you have the `getgrgid' function. */ 195 #define HAVE_GETGRGID 1 196 197 /* Define to 1 if you have the `gethostbyaddr_r' function. */ 198 /* #undef HAVE_GETHOSTBYADDR_R */ 199 200 /* Define to 1 if you have the `gethostbyname_r' function. */ 201 /* #undef HAVE_GETHOSTBYNAME_R */ 202 203 /* Define to 1 if you have the `gethostname' function. */ 204 #define HAVE_GETHOSTNAME 1 205 206 /* Define to 1 if you have the `getnameinfo' function. */ 207 #define HAVE_GETNAMEINFO 1 208 209 /* Define to 1 if you have the `getopt' function. */ 210 #define HAVE_GETOPT 1 211 212 /* Define to 1 if you have the <getopt.h> header file. */ 213 #define HAVE_GETOPT_H 1 214 215 /* Define to 1 if you have the `getpass' function. */ 216 #define HAVE_GETPASS 1 217 218 /* Define to 1 if you have the `getpassphrase' function. */ 219 /* #undef HAVE_GETPASSPHRASE */ 220 221 /* Define to 1 if you have the `getpeereid' function. */ 222 #define HAVE_GETPEEREID 1 223 224 /* Define to 1 if you have the `getpeerucred' function. */ 225 /* #undef HAVE_GETPEERUCRED */ 226 227 /* Define to 1 if you have the `getpwnam' function. */ 228 #define HAVE_GETPWNAM 1 229 230 /* Define to 1 if you have the `getpwuid' function. */ 231 #define HAVE_GETPWUID 1 232 233 /* Define to 1 if you have the `getspnam' function. */ 234 /* #undef HAVE_GETSPNAM */ 235 236 /* Define to 1 if you have the `gettimeofday' function. */ 237 #define HAVE_GETTIMEOFDAY 1 238 239 /* Define to 1 if you have the <gmp.h> header file. */ 240 /* #undef HAVE_GMP_H */ 241 242 /* define if you have GNUtls */ 243 /* #undef HAVE_GNUTLS */ 244 245 /* Define to 1 if you have the <gnutls/gnutls.h> header file. */ 246 /* #undef HAVE_GNUTLS_GNUTLS_H */ 247 248 /* if you have GNU Pth */ 249 /* #undef HAVE_GNU_PTH */ 250 251 /* Define to 1 if you have the <grp.h> header file. */ 252 #define HAVE_GRP_H 1 253 254 /* Define to 1 if you have the `hstrerror' function. */ 255 #define HAVE_HSTRERROR 1 256 257 /* define if you actually have ICU */ 258 /* #undef HAVE_ICU */ 259 260 /* define to you inet_aton(3) is available */ 261 #define HAVE_INET_ATON 1 262 263 /* Define to 1 if you have the `inet_ntoa_b' function. */ 264 /* #undef HAVE_INET_NTOA_B */ 265 266 /* Define to 1 if you have the `inet_ntop' function. */ 267 #define HAVE_INET_NTOP 1 268 269 /* Define to 1 if you have the `initgroups' function. */ 270 #define HAVE_INITGROUPS 1 271 272 /* Define to 1 if you have the <inttypes.h> header file. */ 273 #define HAVE_INTTYPES_H 1 274 275 /* Define to 1 if you have the `ioctl' function. */ 276 #define HAVE_IOCTL 1 277 278 /* Define to 1 if you have the <io.h> header file. */ 279 /* #undef HAVE_IO_H */ 280 281 /* Define to 1 if you have the `gen' library (-lgen). */ 282 /* #undef HAVE_LIBGEN */ 283 284 /* Define to 1 if you have the `gmp' library (-lgmp). */ 285 /* #undef HAVE_LIBGMP */ 286 287 /* Define to 1 if you have the `inet' library (-linet). */ 288 /* #undef HAVE_LIBINET */ 289 290 /* define if you have libtool -ltdl */ 291 /* #undef HAVE_LIBLTDL */ 292 293 /* Define to 1 if you have the `net' library (-lnet). */ 294 /* #undef HAVE_LIBNET */ 295 296 /* Define to 1 if you have the `nsl' library (-lnsl). */ 297 /* #undef HAVE_LIBNSL */ 298 299 /* Define to 1 if you have the `nsl_s' library (-lnsl_s). */ 300 /* #undef HAVE_LIBNSL_S */ 301 302 /* Define to 1 if you have the `socket' library (-lsocket). */ 303 /* #undef HAVE_LIBSOCKET */ 304 305 /* Define to 1 if you have the <libutil.h> header file. */ 306 /* #undef HAVE_LIBUTIL_H */ 307 308 /* Define to 1 if you have the `V3' library (-lV3). */ 309 /* #undef HAVE_LIBV3 */ 310 311 /* Define to 1 if you have the <limits.h> header file. */ 312 #define HAVE_LIMITS_H 1 313 314 /* if you have LinuxThreads */ 315 /* #undef HAVE_LINUX_THREADS */ 316 317 /* Define to 1 if you have the <locale.h> header file. */ 318 #define HAVE_LOCALE_H 1 319 320 /* Define to 1 if you have the `lockf' function. */ 321 #define HAVE_LOCKF 1 322 323 /* Define to 1 if the system has the type `long long'. */ 324 #define HAVE_LONG_LONG 1 325 326 /* Define to 1 if you have the <ltdl.h> header file. */ 327 /* #undef HAVE_LTDL_H */ 328 329 /* if you have SunOS LWP package */ 330 /* #undef HAVE_LWP */ 331 332 /* Define to 1 if you have the <lwp/lwp.h> header file. */ 333 /* #undef HAVE_LWP_LWP_H */ 334 335 /* define if you have Mach Cthreads */ 336 /* #undef HAVE_MACH_CTHREADS */ 337 338 /* Define to 1 if you have the <mach/cthreads.h> header file. */ 339 /* #undef HAVE_MACH_CTHREADS_H */ 340 341 /* Define to 1 if you have the <malloc.h> header file. */ 342 #define HAVE_MALLOC_H 1 343 344 /* Define to 1 if you have the `memcpy' function. */ 345 #define HAVE_MEMCPY 1 346 347 /* Define to 1 if you have the `memmove' function. */ 348 #define HAVE_MEMMOVE 1 349 350 /* Define to 1 if you have the <memory.h> header file. */ 351 #define HAVE_MEMORY_H 1 352 353 /* Define to 1 if you have the `memrchr' function. */ 354 /* #undef HAVE_MEMRCHR */ 355 356 /* Define to 1 if you have the `mkstemp' function. */ 357 #define HAVE_MKSTEMP 1 358 359 /* Define to 1 if you have the `mktemp' function. */ 360 #define HAVE_MKTEMP 1 361 362 /* define this if you have mkversion */ 363 #define HAVE_MKVERSION 1 364 365 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ 366 /* #undef HAVE_NDIR_H */ 367 368 /* Define to 1 if you have the <netinet/tcp.h> header file. */ 369 #define HAVE_NETINET_TCP_H 1 370 371 /* define if strerror_r returns char* instead of int */ 372 /* #undef HAVE_NONPOSIX_STRERROR_R */ 373 374 /* if you have NT Event Log */ 375 /* #undef HAVE_NT_EVENT_LOG */ 376 377 /* if you have NT Service Manager */ 378 /* #undef HAVE_NT_SERVICE_MANAGER */ 379 380 /* if you have NT Threads */ 381 /* #undef HAVE_NT_THREADS */ 382 383 /* define if you have OpenSSL */ 384 #define HAVE_OPENSSL 1 385 386 /* Define to 1 if you have the <openssl/bn.h> header file. */ 387 /* #undef HAVE_OPENSSL_BN_H */ 388 389 /* define if you have OpenSSL with CRL checking capability */ 390 #define HAVE_OPENSSL_CRL 1 391 392 /* Define to 1 if you have the <openssl/crypto.h> header file. */ 393 /* #undef HAVE_OPENSSL_CRYPTO_H */ 394 395 /* Define to 1 if you have the <openssl/ssl.h> header file. */ 396 #define HAVE_OPENSSL_SSL_H 1 397 398 /* Define to 1 if you have the `pipe' function. */ 399 #define HAVE_PIPE 1 400 401 /* Define to 1 if you have the `poll' function. */ 402 #define HAVE_POLL 1 403 404 /* Define to 1 if you have the <poll.h> header file. */ 405 #define HAVE_POLL_H 1 406 407 /* Define to 1 if you have the <process.h> header file. */ 408 /* #undef HAVE_PROCESS_H */ 409 410 /* Define to 1 if you have the <psap.h> header file. */ 411 /* #undef HAVE_PSAP_H */ 412 413 /* define to pthreads API spec revision */ 414 #define HAVE_PTHREADS 10 415 416 /* define if you have pthread_detach function */ 417 #define HAVE_PTHREAD_DETACH 1 418 419 /* Define to 1 if you have the `pthread_getconcurrency' function. */ 420 /* #undef HAVE_PTHREAD_GETCONCURRENCY */ 421 422 /* Define to 1 if you have the <pthread.h> header file. */ 423 #define HAVE_PTHREAD_H 1 424 425 /* Define to 1 if you have the `pthread_kill' function. */ 426 #define HAVE_PTHREAD_KILL 1 427 428 /* Define to 1 if you have the `pthread_kill_other_threads_np' function. */ 429 /* #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP */ 430 431 /* define if you have pthread_rwlock_destroy function */ 432 #define HAVE_PTHREAD_RWLOCK_DESTROY 1 433 434 /* Define to 1 if you have the `pthread_setconcurrency' function. */ 435 /* #undef HAVE_PTHREAD_SETCONCURRENCY */ 436 437 /* Define to 1 if you have the `pthread_yield' function. */ 438 /* #undef HAVE_PTHREAD_YIELD */ 439 440 /* Define to 1 if you have the <pth.h> header file. */ 441 /* #undef HAVE_PTH_H */ 442 443 /* Define to 1 if the system has the type `ptrdiff_t'. */ 444 #define HAVE_PTRDIFF_T 1 445 446 /* Define to 1 if you have the <pwd.h> header file. */ 447 #define HAVE_PWD_H 1 448 449 /* Define to 1 if you have the `read' function. */ 450 #define HAVE_READ 1 451 452 /* Define to 1 if you have the `recv' function. */ 453 #define HAVE_RECV 1 454 455 /* Define to 1 if you have the `recvfrom' function. */ 456 #define HAVE_RECVFROM 1 457 458 /* Define to 1 if you have the <regex.h> header file. */ 459 #define HAVE_REGEX_H 1 460 461 /* Define to 1 if you have the <resolv.h> header file. */ 462 #define HAVE_RESOLV_H 1 463 464 /* define if you have res_query() */ 465 #define HAVE_RES_QUERY 1 466 467 /* define if OpenSSL needs RSAref */ 468 /* #undef HAVE_RSAREF */ 469 470 /* Define to 1 if you have the <sasl.h> header file. */ 471 /* #undef HAVE_SASL_H */ 472 473 /* Define to 1 if you have the <sasl/sasl.h> header file. */ 474 /* #undef HAVE_SASL_SASL_H */ 475 476 /* define if your SASL library has sasl_version() */ 477 /* #undef HAVE_SASL_VERSION */ 478 479 /* Define to 1 if you have the <sched.h> header file. */ 480 #define HAVE_SCHED_H 1 481 482 /* Define to 1 if you have the `sched_yield' function. */ 483 #define HAVE_SCHED_YIELD 1 484 485 /* Define to 1 if you have the `send' function. */ 486 #define HAVE_SEND 1 487 488 /* Define to 1 if you have the `sendmsg' function. */ 489 #define HAVE_SENDMSG 1 490 491 /* Define to 1 if you have the `sendto' function. */ 492 #define HAVE_SENDTO 1 493 494 /* Define to 1 if you have the `setegid' function. */ 495 #define HAVE_SETEGID 1 496 497 /* Define to 1 if you have the `seteuid' function. */ 498 #define HAVE_SETEUID 1 499 500 /* Define to 1 if you have the `setgid' function. */ 501 #define HAVE_SETGID 1 502 503 /* define if setproctitle(3) is available */ 504 #define HAVE_SETPROCTITLE 1 505 506 /* Define to 1 if you have the `setpwfile' function. */ 507 /* #undef HAVE_SETPWFILE */ 508 509 /* Define to 1 if you have the `setsid' function. */ 510 #define HAVE_SETSID 1 511 512 /* Define to 1 if you have the `setuid' function. */ 513 #define HAVE_SETUID 1 514 515 /* Define to 1 if you have the <sgtty.h> header file. */ 516 #define HAVE_SGTTY_H 1 517 518 /* Define to 1 if you have the <shadow.h> header file. */ 519 /* #undef HAVE_SHADOW_H */ 520 521 /* Define to 1 if you have the `sigaction' function. */ 522 #define HAVE_SIGACTION 1 523 524 /* Define to 1 if you have the `signal' function. */ 525 #define HAVE_SIGNAL 1 526 527 /* Define to 1 if you have the `sigset' function. */ 528 #define HAVE_SIGSET 1 529 530 /* define if you have -lslp */ 531 /* #undef HAVE_SLP */ 532 533 /* Define to 1 if you have the <slp.h> header file. */ 534 /* #undef HAVE_SLP_H */ 535 536 /* Define to 1 if you have the `snprintf' function. */ 537 #define HAVE_SNPRINTF 1 538 539 /* if you have spawnlp() */ 540 /* #undef HAVE_SPAWNLP */ 541 542 /* Define to 1 if you have the <sqlext.h> header file. */ 543 /* #undef HAVE_SQLEXT_H */ 544 545 /* Define to 1 if you have the <sql.h> header file. */ 546 /* #undef HAVE_SQL_H */ 547 548 /* Define to 1 if you have the <stddef.h> header file. */ 549 #define HAVE_STDDEF_H 1 550 551 /* Define to 1 if you have the <stdint.h> header file. */ 552 #define HAVE_STDINT_H 1 553 554 /* Define to 1 if you have the <stdlib.h> header file. */ 555 #define HAVE_STDLIB_H 1 556 557 /* Define to 1 if you have the `strdup' function. */ 558 #define HAVE_STRDUP 1 559 560 /* Define to 1 if you have the `strerror' function. */ 561 #define HAVE_STRERROR 1 562 563 /* Define to 1 if you have the `strerror_r' function. */ 564 #define HAVE_STRERROR_R 1 565 566 /* Define to 1 if you have the `strftime' function. */ 567 #define HAVE_STRFTIME 1 568 569 /* Define to 1 if you have the <strings.h> header file. */ 570 #define HAVE_STRINGS_H 1 571 572 /* Define to 1 if you have the <string.h> header file. */ 573 #define HAVE_STRING_H 1 574 575 /* Define to 1 if you have the `strpbrk' function. */ 576 #define HAVE_STRPBRK 1 577 578 /* Define to 1 if you have the `strrchr' function. */ 579 #define HAVE_STRRCHR 1 580 581 /* Define to 1 if you have the `strsep' function. */ 582 #define HAVE_STRSEP 1 583 584 /* Define to 1 if you have the `strspn' function. */ 585 #define HAVE_STRSPN 1 586 587 /* Define to 1 if you have the `strstr' function. */ 588 #define HAVE_STRSTR 1 589 590 /* Define to 1 if you have the `strtol' function. */ 591 #define HAVE_STRTOL 1 592 593 /* Define to 1 if you have the `strtoll' function. */ 594 #define HAVE_STRTOLL 1 595 596 /* Define to 1 if you have the `strtoq' function. */ 597 #define HAVE_STRTOQ 1 598 599 /* Define to 1 if you have the `strtoul' function. */ 600 #define HAVE_STRTOUL 1 601 602 /* Define to 1 if you have the `strtouq' function. */ 603 #define HAVE_STRTOUQ 1 604 605 /* Define to 1 if `msg_accrightslen' is member of `struct msghdr'. */ 606 /* #undef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN */ 607 608 /* Define to 1 if `msg_control' is member of `struct msghdr'. */ 609 /* #undef HAVE_STRUCT_MSGHDR_MSG_CONTROL */ 610 611 /* Define to 1 if `pw_gecos' is member of `struct passwd'. */ 612 #define HAVE_STRUCT_PASSWD_PW_GECOS 1 613 614 /* Define to 1 if `pw_passwd' is member of `struct passwd'. */ 615 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 616 617 /* Define to 1 if `st_blksize' is member of `struct stat'. */ 618 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 619 620 /* Define to 1 if `st_fstype' is member of `struct stat'. */ 621 /* #undef HAVE_STRUCT_STAT_ST_FSTYPE */ 622 623 /* define to 1 if st_fstype is char * */ 624 /* #undef HAVE_STRUCT_STAT_ST_FSTYPE_CHAR */ 625 626 /* define to 1 if st_fstype is int */ 627 /* #undef HAVE_STRUCT_STAT_ST_FSTYPE_INT */ 628 629 /* Define to 1 if `st_vfstype' is member of `struct stat'. */ 630 /* #undef HAVE_STRUCT_STAT_ST_VFSTYPE */ 631 632 /* Define to 1 if you have the <synch.h> header file. */ 633 /* #undef HAVE_SYNCH_H */ 634 635 /* Define to 1 if you have the `sysconf' function. */ 636 #define HAVE_SYSCONF 1 637 638 /* Define to 1 if you have the <sysexits.h> header file. */ 639 #define HAVE_SYSEXITS_H 1 640 641 /* Define to 1 if you have the <syslog.h> header file. */ 642 #define HAVE_SYSLOG_H 1 643 644 /* Define to 1 if you have the <sys/devpoll.h> header file. */ 645 /* #undef HAVE_SYS_DEVPOLL_H */ 646 647 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. 648 */ 649 /* #undef HAVE_SYS_DIR_H */ 650 651 /* Define to 1 if you have the <sys/epoll.h> header file. */ 652 /* #undef HAVE_SYS_EPOLL_H */ 653 654 /* define if you actually have sys_errlist in your libs */ 655 #define HAVE_SYS_ERRLIST 1 656 657 /* Define to 1 if you have the <sys/errno.h> header file. */ 658 #define HAVE_SYS_ERRNO_H 1 659 660 /* Define to 1 if you have the <sys/file.h> header file. */ 661 #define HAVE_SYS_FILE_H 1 662 663 /* Define to 1 if you have the <sys/filio.h> header file. */ 664 #define HAVE_SYS_FILIO_H 1 665 666 /* Define to 1 if you have the <sys/fstyp.h> header file. */ 667 /* #undef HAVE_SYS_FSTYP_H */ 668 669 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 670 #define HAVE_SYS_IOCTL_H 1 671 672 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. 673 */ 674 /* #undef HAVE_SYS_NDIR_H */ 675 676 /* Define to 1 if you have the <sys/param.h> header file. */ 677 #define HAVE_SYS_PARAM_H 1 678 679 /* Define to 1 if you have the <sys/poll.h> header file. */ 680 #define HAVE_SYS_POLL_H 1 681 682 /* Define to 1 if you have the <sys/privgrp.h> header file. */ 683 /* #undef HAVE_SYS_PRIVGRP_H */ 684 685 /* Define to 1 if you have the <sys/resource.h> header file. */ 686 #define HAVE_SYS_RESOURCE_H 1 687 688 /* Define to 1 if you have the <sys/select.h> header file. */ 689 #define HAVE_SYS_SELECT_H 1 690 691 /* Define to 1 if you have the <sys/socket.h> header file. */ 692 #define HAVE_SYS_SOCKET_H 1 693 694 /* Define to 1 if you have the <sys/stat.h> header file. */ 695 #define HAVE_SYS_STAT_H 1 696 697 /* Define to 1 if you have the <sys/syslog.h> header file. */ 698 #define HAVE_SYS_SYSLOG_H 1 699 700 /* Define to 1 if you have the <sys/time.h> header file. */ 701 #define HAVE_SYS_TIME_H 1 702 703 /* Define to 1 if you have the <sys/types.h> header file. */ 704 #define HAVE_SYS_TYPES_H 1 705 706 /* Define to 1 if you have the <sys/ucred.h> header file. */ 707 #define HAVE_SYS_UCRED_H 1 708 709 /* Define to 1 if you have the <sys/uio.h> header file. */ 710 #define HAVE_SYS_UIO_H 1 711 712 /* Define to 1 if you have the <sys/un.h> header file. */ 713 #define HAVE_SYS_UN_H 1 714 715 /* Define to 1 if you have the <sys/uuid.h> header file. */ 716 #define HAVE_SYS_UUID_H 1 717 718 /* Define to 1 if you have the <sys/vmount.h> header file. */ 719 /* #undef HAVE_SYS_VMOUNT_H */ 720 721 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 722 #define HAVE_SYS_WAIT_H 1 723 724 /* define if you have -lwrap */ 725 /* #undef HAVE_TCPD */ 726 727 /* Define to 1 if you have the <tcpd.h> header file. */ 728 /* #undef HAVE_TCPD_H */ 729 730 /* Define to 1 if you have the <termios.h> header file. */ 731 #define HAVE_TERMIOS_H 1 732 733 /* if you have Solaris LWP (thr) package */ 734 /* #undef HAVE_THR */ 735 736 /* Define to 1 if you have the <thread.h> header file. */ 737 /* #undef HAVE_THREAD_H */ 738 739 /* Define to 1 if you have the `thr_getconcurrency' function. */ 740 /* #undef HAVE_THR_GETCONCURRENCY */ 741 742 /* Define to 1 if you have the `thr_setconcurrency' function. */ 743 /* #undef HAVE_THR_SETCONCURRENCY */ 744 745 /* Define to 1 if you have the `thr_yield' function. */ 746 /* #undef HAVE_THR_YIELD */ 747 748 /* define if you have TLS */ 749 #define HAVE_TLS 1 750 751 /* Define to 1 if you have the <unicode/utypes.h> header file. */ 752 /* #undef HAVE_UNICODE_UTYPES_H */ 753 754 /* Define to 1 if you have the <unistd.h> header file. */ 755 #define HAVE_UNISTD_H 1 756 757 /* Define to 1 if you have the <utime.h> header file. */ 758 #define HAVE_UTIME_H 1 759 760 /* define if you have uuid_generate() */ 761 /* #undef HAVE_UUID_GENERATE */ 762 763 /* define if you have uuid_to_str() */ 764 /* #undef HAVE_UUID_TO_STR */ 765 766 /* Define to 1 if you have the <uuid/uuid.h> header file. */ 767 /* #undef HAVE_UUID_UUID_H */ 768 769 /* Define to 1 if you have the `vprintf' function. */ 770 #define HAVE_VPRINTF 1 771 772 /* Define to 1 if you have the `vsnprintf' function. */ 773 #define HAVE_VSNPRINTF 1 774 775 /* Define to 1 if you have the `wait4' function. */ 776 #define HAVE_WAIT4 1 777 778 /* Define to 1 if you have the `waitpid' function. */ 779 #define HAVE_WAITPID 1 780 781 /* define if you have winsock */ 782 /* #undef HAVE_WINSOCK */ 783 784 /* define if you have winsock2 */ 785 /* #undef HAVE_WINSOCK2 */ 786 787 /* Define to 1 if you have the <winsock2.h> header file. */ 788 /* #undef HAVE_WINSOCK2_H */ 789 790 /* Define to 1 if you have the <winsock.h> header file. */ 791 /* #undef HAVE_WINSOCK_H */ 792 793 /* Define to 1 if you have the `write' function. */ 794 #define HAVE_WRITE 1 795 796 /* define if select implicitly yields */ 797 #define HAVE_YIELDING_SELECT 1 798 799 /* define to 32-bit or greater integer type */ 800 #define LBER_INT_T int 801 802 /* define to large integer type */ 803 #define LBER_LEN_T long 804 805 /* define to socket descriptor type */ 806 #define LBER_SOCKET_T int 807 808 /* define to large integer type */ 809 #define LBER_TAG_T long 810 811 /* define to 1 if library is thread safe */ 812 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1 813 814 /* define to LDAP VENDOR VERSION */ 815 /* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */ 816 817 /* define this to add debugging code */ 818 #define LDAP_DEBUG 1 819 820 /* define if LDAP libs are dynamic */ 821 #define LDAP_LIBS_DYNAMIC 1 822 823 /* define to support PF_INET6 */ 824 #define LDAP_PF_INET6 1 825 826 /* define to support PF_LOCAL */ 827 #define LDAP_PF_LOCAL 1 828 829 /* define this for LDAP process title support */ 830 #define LDAP_PROCTITLE 1 831 832 /* define this to add SLAPI code */ 833 /* #undef LDAP_SLAPI */ 834 835 /* define this to add syslog code */ 836 #define LDAP_SYSLOG 1 837 838 /* Version */ 839 #define LDAP_VENDOR_VERSION 20409 840 841 /* Major */ 842 #define LDAP_VENDOR_VERSION_MAJOR 2 843 844 /* Minor */ 845 #define LDAP_VENDOR_VERSION_MINOR 4 846 847 /* Patch */ 848 #define LDAP_VENDOR_VERSION_PATCH 9 849 850 /* define if memcmp is not 8-bit clean or is otherwise broken */ 851 /* #undef NEED_MEMCMP_REPLACEMENT */ 852 853 /* define if you have (or want) no threads */ 854 /* #undef NO_THREADS */ 855 856 /* define to use the original debug style */ 857 /* #undef OLD_DEBUG */ 858 859 /* Package */ 860 #define OPENLDAP_PACKAGE "OpenLDAP" 861 862 /* Version */ 863 #define OPENLDAP_VERSION "2.4.9" 864 865 /* Define to the address where bug reports for this package should be sent. */ 866 #define PACKAGE_BUGREPORT "" 867 868 /* Define to the full name of this package. */ 869 #define PACKAGE_NAME "" 870 871 /* Define to the full name and version of this package. */ 872 #define PACKAGE_STRING "" 873 874 /* Define to the one symbol short name of this package. */ 875 #define PACKAGE_TARNAME "" 876 877 /* Define to the version of this package. */ 878 #define PACKAGE_VERSION "" 879 880 /* define if sched_yield yields the entire process */ 881 /* #undef REPLACE_BROKEN_YIELD */ 882 883 /* Define as the return type of signal handlers (`int' or `void'). */ 884 #define RETSIGTYPE void 885 886 /* Define to the type of arg 1 for `select'. */ 887 #define SELECT_TYPE_ARG1 int 888 889 /* Define to the type of args 2, 3 and 4 for `select'. */ 890 #define SELECT_TYPE_ARG234 (fd_set *) 891 892 /* Define to the type of arg 5 for `select'. */ 893 #define SELECT_TYPE_ARG5 (struct timeval *) 894 895 /* The size of a `int', as computed by sizeof. */ 896 #define SIZEOF_INT 4 897 898 /* The size of a `long', as computed by sizeof. */ 899 #define SIZEOF_LONG 4 900 901 /* The size of a `long long', as computed by sizeof. */ 902 #define SIZEOF_LONG_LONG 8 903 904 /* The size of a `short', as computed by sizeof. */ 905 #define SIZEOF_SHORT 2 906 907 /* The size of a `wchar_t', as computed by sizeof. */ 908 #define SIZEOF_WCHAR_T 4 909 910 /* define to support per-object ACIs */ 911 /* #undef SLAPD_ACI_ENABLED */ 912 913 /* define to support BDB backend */ 914 /* #undef SLAPD_BDB */ 915 916 /* define to support cleartext passwords */ 917 #define SLAPD_CLEARTEXT 1 918 919 /* define to support crypt(3) passwords */ 920 /* #undef SLAPD_CRYPT */ 921 922 /* define to support DNS SRV backend */ 923 /* #undef SLAPD_DNSSRV */ 924 925 /* define to support HDB backend */ 926 /* #undef SLAPD_HDB */ 927 928 /* define to support LDAP backend */ 929 /* #undef SLAPD_LDAP */ 930 931 /* define to support LAN Manager passwords */ 932 /* #undef SLAPD_LMHASH */ 933 934 /* define to support LDAP Metadirectory backend */ 935 /* #undef SLAPD_META */ 936 937 /* define to support modules */ 938 /* #undef SLAPD_MODULES */ 939 940 /* dynamically linked module */ 941 #define SLAPD_MOD_DYNAMIC 2 942 943 /* statically linked module */ 944 #define SLAPD_MOD_STATIC 1 945 946 /* define to support cn=Monitor backend */ 947 /* #undef SLAPD_MONITOR */ 948 949 /* define to support NULL backend */ 950 /* #undef SLAPD_NULL */ 951 952 /* define for In-Directory Access Logging overlay */ 953 /* #undef SLAPD_OVER_ACCESSLOG */ 954 955 /* define for Audit Logging overlay */ 956 /* #undef SLAPD_OVER_AUDITLOG */ 957 958 /* define for Attribute Constraint overlay */ 959 /* #undef SLAPD_OVER_CONSTRAINT */ 960 961 /* define for Dynamic Directory Services overlay */ 962 /* #undef SLAPD_OVER_DDS */ 963 964 /* define for Dynamic Group overlay */ 965 /* #undef SLAPD_OVER_DYNGROUP */ 966 967 /* define for Dynamic List overlay */ 968 /* #undef SLAPD_OVER_DYNLIST */ 969 970 /* define for Reverse Group Membership overlay */ 971 /* #undef SLAPD_OVER_MEMBEROF */ 972 973 /* define for Password Policy overlay */ 974 /* #undef SLAPD_OVER_PPOLICY */ 975 976 /* define for Proxy Cache overlay */ 977 /* #undef SLAPD_OVER_PROXYCACHE */ 978 979 /* define for Referential Integrity overlay */ 980 /* #undef SLAPD_OVER_REFINT */ 981 982 /* define for Referential Integrity overlay */ 983 /* #undef SLAPD_OVER_RETCODE */ 984 985 /* define for Rewrite/Remap overlay */ 986 /* #undef SLAPD_OVER_RWM */ 987 988 /* define for Sequential Modify overlay */ 989 /* #undef SLAPD_OVER_SEQMOD */ 990 991 /* define for Syncrepl Provider overlay */ 992 /* #undef SLAPD_OVER_SYNCPROV */ 993 994 /* define for Translucent Proxy overlay */ 995 /* #undef SLAPD_OVER_TRANSLUCENT */ 996 997 /* define for Attribute Uniqueness overlay */ 998 /* #undef SLAPD_OVER_UNIQUE */ 999 1000 /* define for Value Sorting overlay */ 1001 /* #undef SLAPD_OVER_VALSORT */ 1002 1003 /* define to support PASSWD backend */ 1004 /* #undef SLAPD_PASSWD */ 1005 1006 /* define to support PERL backend */ 1007 /* #undef SLAPD_PERL */ 1008 1009 /* define to support relay backend */ 1010 /* #undef SLAPD_RELAY */ 1011 1012 /* define to support reverse lookups */ 1013 /* #undef SLAPD_RLOOKUPS */ 1014 1015 /* define to support SHELL backend */ 1016 /* #undef SLAPD_SHELL */ 1017 1018 /* define to support SOCK backend */ 1019 /* #undef SLAPD_SOCK */ 1020 1021 /* define to support SASL passwords */ 1022 /* #undef SLAPD_SPASSWD */ 1023 1024 /* define to support SQL backend */ 1025 /* #undef SLAPD_SQL */ 1026 1027 /* define to support run-time loadable ACL */ 1028 /* #undef SLAP_DYNACL */ 1029 1030 /* Define to 1 if you have the ANSI C header files. */ 1031 #define STDC_HEADERS 1 1032 1033 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 1034 #define TIME_WITH_SYS_TIME 1 1035 1036 /* Define to 1 if your <sys/time.h> declares `struct tm'. */ 1037 /* #undef TM_IN_SYS_TIME */ 1038 1039 /* set to urandom device */ 1040 #define URANDOM_DEVICE "/dev/urandom" 1041 1042 /* define to use OpenSSL BIGNUM for MP */ 1043 /* #undef USE_MP_BIGNUM */ 1044 1045 /* define to use GMP for MP */ 1046 /* #undef USE_MP_GMP */ 1047 1048 /* define to use 'long' for MP */ 1049 /* #undef USE_MP_LONG */ 1050 1051 /* define to use 'long long' for MP */ 1052 #define USE_MP_LONG_LONG 1 1053 1054 /* Define to 1 if your processor stores words with the most significant byte 1055 first (like Motorola and SPARC, unlike Intel and VAX). */ 1056 /* #undef WORDS_BIGENDIAN */ 1057 1058 /* Define to the type of arg 3 for `accept'. */ 1059 #define ber_socklen_t socklen_t 1060 1061 /* Define to `char *' if <sys/types.h> does not define. */ 1062 /* #undef caddr_t */ 1063 1064 /* Define to empty if `const' does not conform to ANSI C. */ 1065 /* #undef const */ 1066 1067 /* Define to `int' if <sys/types.h> doesn't define. */ 1068 /* #undef gid_t */ 1069 1070 /* Define to `int' if <sys/types.h> does not define. */ 1071 /* #undef mode_t */ 1072 1073 /* Define to `long' if <sys/types.h> does not define. */ 1074 /* #undef off_t */ 1075 1076 /* Define to `int' if <sys/types.h> does not define. */ 1077 /* #undef pid_t */ 1078 1079 /* Define to `int' if <signal.h> does not define. */ 1080 /* #undef sig_atomic_t */ 1081 1082 /* Define to `unsigned' if <sys/types.h> does not define. */ 1083 /* #undef size_t */ 1084 1085 /* define to snprintf routine */ 1086 #define snprintf _snprintf 1087 1088 /* Define like ber_socklen_t if <sys/socket.h> does not define. */ 1089 /* #undef socklen_t */ 1090 1091 /* Define to `signed int' if <sys/types.h> does not define. */ 1092 /* #undef ssize_t */ 1093 1094 /* Define to `int' if <sys/types.h> doesn't define. */ 1095 /* #undef uid_t */ 1096 1097 /* define as empty if volatile is not supported */ 1098 /* #undef volatile */ 1099 1100 /* define to snprintf routine */ 1101 #define vsnprintf _vsnprintf 1102 1103 1104 /* begin of portable.h.post */ 1105 1106 #ifdef _WIN32 1107 /* don't suck in all of the win32 api */ 1108 # define WIN32_LEAN_AND_MEAN 1 1109 #endif 1110 1111 #ifndef LDAP_NEEDS_PROTOTYPES 1112 /* force LDAP_P to always include prototypes */ 1113 #define LDAP_NEEDS_PROTOTYPES 1 1114 #endif 1115 1116 #ifndef LDAP_REL_ENG 1117 #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL) 1118 #define LDAP_DEVEL 1119 #endif 1120 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST) 1121 #define LDAP_TEST 1122 #endif 1123 #endif 1124 1125 #ifdef HAVE_STDDEF_H 1126 # include <stddef.h> 1127 #endif 1128 1129 #ifdef HAVE_EBCDIC 1130 /* ASCII/EBCDIC converting replacements for stdio funcs 1131 * vsnprintf and snprintf are used too, but they are already 1132 * checked by the configure script 1133 */ 1134 #define fputs ber_pvt_fputs 1135 #define fgets ber_pvt_fgets 1136 #define printf ber_pvt_printf 1137 #define fprintf ber_pvt_fprintf 1138 #define vfprintf ber_pvt_vfprintf 1139 #define vsprintf ber_pvt_vsprintf 1140 #endif 1141 1142 #include "ac/fdset.h" 1143 1144 #include "ldap_cdefs.h" 1145 #include "ldap_features.h" 1146 1147 #include "ac/assert.h" 1148 #include "ac/localize.h" 1149 1150 #endif /* _LDAP_PORTABLE_H */ 1151 /* end of portable.h.post */ 1152 1153