3 # from OpenLDAP: pkg/ldap/configure.in,v 1.300 2000/05/11 08:10:53 hyc Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-kbind enable V2 Kerberos IV bind (auto)"
44 --enable-cldap enable connectionless ldap (no)"
46 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
48 --enable-x-compile enable cross compiling (no)"
50 --enable-dmalloc enable debug malloc support (no)"
52 --with-cyrus-sasl with Cyrus SASL support (auto)"
54 --with-fetch with fetch URL support (auto)"
56 --with-kerberos with support (auto)"
58 --with-readline with readline support (auto)"
60 --with-threads use threads (auto)"
62 --with-tls with TLS/SSL support (auto)"
64 --with-yielding-select with implicitly yielding select (auto)"
66 LDAPD (X.500-to-LDAP Gateway) Options:"
68 --enable-ldapd enable building ldapd (no)"
70 SLAPD (Standalone LDAP Daemon) Options:"
72 --enable-slapd enable building slapd (yes)"
74 --enable-cleartext enable cleartext passwords (yes)"
76 --enable-crypt enable crypt(3) passwords (auto)"
78 --enable-kpasswd enable kerberos password verification (no)"
80 --enable-spasswd enable (Cyrus) SASL password verification (no)"
82 --enable-modules enable dynamic module support (no)"
84 --enable-multimaster enable multimaster replication (no)"
86 --enable-phonetic enable phonetic/soundex (no)"
88 --enable-quipu build quipu migration tools (no)"
90 --enable-rlookups enable reverse lookups (auto)"
92 --enable-aci enable per-object ACIs (no)"
94 --enable-wrappers enable tcp wrapper support (no)"
96 --enable-dynamic enable linking built binaries with dynamic libs (no)"
98 --enable-bdb2 enable bdb2 backend (no)"
100 --with-bdb2-module module type (static)"
102 --enable-dnssrv enable bdb2 backend (no)"
104 --with-dnssrv-module module type (static)"
106 --enable-ldap enable ldap backend (no)"
108 --with-ldap-module module type (static)"
110 --enable-ldbm enable ldbm backend (yes)"
112 --with-ldbm-api use LDBM API (auto)"
114 --with-ldbm-module module type (static)"
116 --with-ldbm-type use LDBM type (auto)"
118 --enable-passwd enable passwd backend (no)"
120 --with-passwd-module module type (static)"
122 --enable-perl enable perl backend (no)"
124 --with-perl-module module type (static)"
126 --enable-shell enable shell backend (no)"
128 --with-shell-module module type (static)"
130 --enable-sql enable sql backend (no)"
132 --with-sql-module module type (static)"
134 --enable-tcl enable tcl backend (no)"
136 --with-tcl-module module type (static)"
138 SLURPD (Replication Daemon) Options:"
140 --enable-slurpd enable building slurpd (auto)"
142 Library Generation & Linking Options"
144 --enable-static[=PKGS] build static libraries [default=yes]"
146 --enable-shared[=PKGS] build shared libraries [default=yes]"
148 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
150 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
152 --disable-libtool-lock avoid locking (might break parallel builds)"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file=./config.cache
167 program_transform_name=s,x,x,
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
188 # Initialize some other variables.
191 SHELL=${CONFIG_SHELL-/bin/sh}
192 # Maximum number of lines to put in a shell here document.
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
207 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
211 # Accept the important Cygnus configure options, so we can diagnose typos.
215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
218 bindir="$ac_optarg" ;;
220 -build | --build | --buil | --bui | --bu)
222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
223 build="$ac_optarg" ;;
225 -cache-file | --cache-file | --cache-fil | --cache-fi \
226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
227 ac_prev=cache_file ;;
228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
230 cache_file="$ac_optarg" ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir="$ac_optarg" ;;
238 -disable-* | --disable-*)
239 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
244 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
251 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
253 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix="$ac_optarg" ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he)
274 # Omit some internal or obsolete options to make the list less imposing.
275 # This message is too long to be a string in the A/UX 3.1 sh.
277 Usage: configure [options] [host]
278 Options: [defaults in brackets after descriptions]
280 --cache-file=FILE cache test results in FILE
281 --help print this message
282 --no-create do not create output files
283 --quiet, --silent do not print \`checking...' messages
284 --version print the version of autoconf that created configure
285 Directory and file names:
286 --prefix=PREFIX install architecture-independent files in PREFIX
288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
290 --bindir=DIR user executables in DIR [EPREFIX/bin]
291 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
292 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
293 --datadir=DIR read-only architecture-independent data in DIR
295 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
296 --sharedstatedir=DIR modifiable architecture-independent data in DIR
298 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
299 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
300 --includedir=DIR C header files in DIR [PREFIX/include]
301 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
302 --infodir=DIR info documentation in DIR [PREFIX/info]
303 --mandir=DIR man documentation in DIR [PREFIX/man]
304 --srcdir=DIR find the sources in DIR [configure dir or ..]
305 --program-prefix=PREFIX prepend PREFIX to installed program names
306 --program-suffix=SUFFIX append SUFFIX to installed program names
307 --program-transform-name=PROGRAM
308 run sed PROGRAM on installed program names
312 --build=BUILD configure for building on BUILD [BUILD=HOST]
313 --host=HOST configure for HOST [guessed]
314 --target=TARGET configure for TARGET [TARGET=HOST]
315 Features and packages:
316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
320 --x-includes=DIR X include files are in DIR
321 --x-libraries=DIR X library files are in DIR
323 if test -n "$ac_help"; then
324 echo "--enable and --with options recognized:$ac_help"
328 -host | --host | --hos | --ho)
330 -host=* | --host=* | --hos=* | --ho=*)
333 -includedir | --includedir | --includedi | --included | --include \
334 | --includ | --inclu | --incl | --inc)
335 ac_prev=includedir ;;
336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
337 | --includ=* | --inclu=* | --incl=* | --inc=*)
338 includedir="$ac_optarg" ;;
340 -infodir | --infodir | --infodi | --infod | --info | --inf)
342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
343 infodir="$ac_optarg" ;;
345 -libdir | --libdir | --libdi | --libd)
347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
348 libdir="$ac_optarg" ;;
350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
351 | --libexe | --libex | --libe)
352 ac_prev=libexecdir ;;
353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
354 | --libexe=* | --libex=* | --libe=*)
355 libexecdir="$ac_optarg" ;;
357 -localstatedir | --localstatedir | --localstatedi | --localstated \
358 | --localstate | --localstat | --localsta | --localst \
359 | --locals | --local | --loca | --loc | --lo)
360 ac_prev=localstatedir ;;
361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
362 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
363 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
364 localstatedir="$ac_optarg" ;;
366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
369 mandir="$ac_optarg" ;;
372 # Obsolete; use --without-fp.
375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
385 | --oldin | --oldi | --old | --ol | --o)
386 ac_prev=oldincludedir ;;
387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
390 oldincludedir="$ac_optarg" ;;
392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
395 prefix="$ac_optarg" ;;
397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
398 | --program-pre | --program-pr | --program-p)
399 ac_prev=program_prefix ;;
400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
402 program_prefix="$ac_optarg" ;;
404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
405 | --program-suf | --program-su | --program-s)
406 ac_prev=program_suffix ;;
407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
409 program_suffix="$ac_optarg" ;;
411 -program-transform-name | --program-transform-name \
412 | --program-transform-nam | --program-transform-na \
413 | --program-transform-n | --program-transform- \
414 | --program-transform | --program-transfor \
415 | --program-transfo | --program-transf \
416 | --program-trans | --program-tran \
417 | --progr-tra | --program-tr | --program-t)
418 ac_prev=program_transform_name ;;
419 -program-transform-name=* | --program-transform-name=* \
420 | --program-transform-nam=* | --program-transform-na=* \
421 | --program-transform-n=* | --program-transform-=* \
422 | --program-transform=* | --program-transfor=* \
423 | --program-transfo=* | --program-transf=* \
424 | --program-trans=* | --program-tran=* \
425 | --progr-tra=* | --program-tr=* | --program-t=*)
426 program_transform_name="$ac_optarg" ;;
428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
429 | -silent | --silent | --silen | --sile | --sil)
432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
436 sbindir="$ac_optarg" ;;
438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
440 | --sharedst | --shareds | --shared | --share | --shar \
442 ac_prev=sharedstatedir ;;
443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
447 sharedstatedir="$ac_optarg" ;;
449 -site | --site | --sit)
451 -site=* | --site=* | --sit=*)
454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
457 srcdir="$ac_optarg" ;;
459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
460 | --syscon | --sysco | --sysc | --sys | --sy)
461 ac_prev=sysconfdir ;;
462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
464 sysconfdir="$ac_optarg" ;;
466 -target | --target | --targe | --targ | --tar | --ta | --t)
468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
469 target="$ac_optarg" ;;
471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 -version | --version | --versio | --versi | --vers)
475 echo "configure generated by autoconf version 2.13.1"
479 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 ac_package=`echo $ac_package| sed 's/-/_/g'`
489 eval "with_${ac_package}='$ac_optarg'" ;;
491 -without-* | --without-*)
492 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
495 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
497 ac_package=`echo $ac_package| sed 's/-/_/g'`
498 eval "with_${ac_package}=no" ;;
501 # Obsolete; use --with-x.
504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
505 | --x-incl | --x-inc | --x-in | --x-i)
506 ac_prev=x_includes ;;
507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
509 x_includes="$ac_optarg" ;;
511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
513 ac_prev=x_libraries ;;
514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
516 x_libraries="$ac_optarg" ;;
518 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
522 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
523 echo "configure: warning: $ac_option: invalid host type" 1>&2
525 if test "x$nonopt" != xNONE; then
526 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
534 if test -n "$ac_prev"; then
535 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
540 # File descriptor usage:
543 # 2 errors and warnings
544 # 3 some systems may open it to /dev/tty
545 # 4 used on the Kubota Titan
546 # 6 checking for... messages and results
547 # 5 compiler messages saved in config.log
548 if test "$silent" = yes; then
556 This file contains any messages produced by compilers while
557 running configure, to aid debugging if configure makes a mistake.
560 # Strip out --no-create and --no-recursion so they do not pile up.
561 # Also quote any args containing shell metacharacters.
566 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
567 | --no-cr | --no-c) ;;
568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
571 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
572 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
577 # Only set these to C if already set. These must not be set unconditionally
578 # because not all systems understand e.g. LANG=C (notably SCO).
579 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
580 # Non-C LC_CTYPE values break the ctype check.
581 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
582 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
583 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
584 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
587 rm -rf conftest* confdefs.h
588 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 # A filename unique to this package, relative to the directory that
592 # configure is in, which we can look for to find out if srcdir is correct.
593 ac_unique_file=build/version
595 # Find the source files, if location was not specified.
596 if test -z "$srcdir"; then
597 ac_srcdir_defaulted=yes
598 # Try the directory containing this script, then its parent.
600 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
601 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
603 if test ! -r $srcdir/$ac_unique_file; then
607 ac_srcdir_defaulted=no
609 if test ! -r $srcdir/$ac_unique_file; then
610 if test "$ac_srcdir_defaulted" = yes; then
611 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
613 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
636 ac_cpp='$CPP $CPPFLAGS'
637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
639 cross_compiling=$ac_cv_prog_cc_cross
643 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
644 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
645 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
652 ac_n= ac_c='\c' ac_t=
656 for ac_dir in build $srcdir/build; do
657 if test -f $ac_dir/install-sh; then
659 ac_install_sh="$ac_aux_dir/install-sh -c"
661 elif test -f $ac_dir/install.sh; then
663 ac_install_sh="$ac_aux_dir/install.sh -c"
665 elif test -f $ac_dir/shtool; then
667 ac_install_sh="$ac_aux_dir/shtool install -c"
671 if test -z "$ac_aux_dir"; then
672 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
674 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
675 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
676 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
678 OL_VERSION=`cat $ac_aux_dir/version`
679 if test -z "$OL_VERSION"; then
680 { echo "configure: error: could not determine version" 1>&2; exit 1; }
683 echo "Configuring OpenLDAP $OL_VERSION ..."
686 echo $ac_n "checking host system type""... $ac_c" 1>&6
687 echo "configure:688: checking host system type" >&5
688 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
690 # Make sure we can run config.sub.
691 if $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 ac_cv_host_alias=$host
696 case "$ac_cv_host_alias" in
700 if ac_cv_host_alias=`$ac_config_guess`; then :
701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 *) ac_cv_host_alias=$nonopt ;;
707 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
708 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo $ac_n "(cached) $ac_c" 1>&6
715 echo "$ac_t""$ac_cv_host" 1>&6
718 host_alias=$ac_cv_host_alias
719 host_cpu=$ac_cv_host_cpu
720 host_vendor=$ac_cv_host_vendor
721 host_os=$ac_cv_host_os
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
729 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
731 # Make sure we can run config.sub.
732 if $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 ac_cv_target_alias=$target
737 case "$ac_cv_target_alias" in
741 ac_cv_target_alias=$host_alias ;;
743 *) ac_cv_target_alias=$nonopt ;;
747 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
748 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo $ac_n "(cached) $ac_c" 1>&6
755 echo "$ac_t""$ac_cv_target" 1>&6
758 target_alias=$ac_cv_target_alias
759 target_cpu=$ac_cv_target_cpu
760 target_vendor=$ac_cv_target_vendor
761 target_os=$ac_cv_target_os
767 echo $ac_n "checking build system type""... $ac_c" 1>&6
768 echo "configure:769: checking build system type" >&5
769 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
771 # Make sure we can run config.sub.
772 if $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
776 ac_cv_build_alias=$build
777 case "$ac_cv_build_alias" in
781 ac_cv_build_alias=$host_alias ;;
783 *) ac_cv_build_alias=$nonopt ;;
787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
788 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo $ac_n "(cached) $ac_c" 1>&6
795 echo "$ac_t""$ac_cv_build" 1>&6
798 build_alias=$ac_cv_build_alias
799 build_cpu=$ac_cv_build_cpu
800 build_vendor=$ac_cv_build_vendor
801 build_os=$ac_cv_build_os
807 # Do some error checking and defaulting for the host and target type.
809 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
812 # 1. You are not allowed to specify --host, --target, and nonopt at the
814 # 2. Host defaults to nonopt.
815 # 3. If nonopt is not specified, then host defaults to the current host,
816 # as determined by config.guess.
817 # 4. Target and build default to nonopt.
818 # 5. If nonopt is not specified, then target and build default to host.
820 # The aliases save the names the user supplied, while $host etc.
821 # will get canonicalized.
822 case $host---$target---$nonopt in
823 NONE---*---* | *---NONE---* | *---*---NONE) ;;
824 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
827 test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
830 program_prefix=${target_alias}-
833 # Find a good install program. We prefer a C program (faster),
834 # so one script is as good as another. But avoid the broken or
835 # incompatible versions:
836 # SysV /etc/install, /usr/sbin/install
837 # SunOS /usr/etc/install
840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843 # ./install, which can be erroneously created by make from ./install.sh.
844 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845 echo "configure:846: checking for a BSD compatible install" >&5
846 if test -z "$INSTALL"; then
847 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
851 for ac_dir in $PATH; do
852 # Account for people who put trailing slashes in PATH elements.
854 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
856 # OSF1 and SCO ODT 3.0 have their own names for install.
857 # Don't use installbsd from OSF since it installs stuff as root
859 for ac_prog in ginstall scoinst install; do
860 if test -f $ac_dir/$ac_prog; then
861 if test $ac_prog = install &&
862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # AIX install. It has an incompatible calling convention.
865 elif test $ac_prog = install &&
866 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # program-specific install script used by HP pwplus--don't use.
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
891 echo "$ac_t""$INSTALL" 1>&6
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
901 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
902 echo "configure:903: checking whether build environment is sane" >&5
905 echo timestamp > conftestfile
906 # Do `set' in a subshell so we don't clobber the current shell's
907 # arguments. Must try -L first in case configure is actually a
908 # symlink; some systems play weird games with the mod time of symlinks
909 # (eg FreeBSD returns the mod time of the symlink's containing
912 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
913 if test "$*" = "X"; then
915 set X `ls -t $srcdir/configure conftestfile`
917 if test "$*" != "X $srcdir/configure conftestfile" \
918 && test "$*" != "X conftestfile $srcdir/configure"; then
920 # If neither matched, then we have a broken ls. This can happen
921 # if, for instance, CONFIG_SHELL is bash and it inherits a
922 # broken ls alias from the environment. This has actually
923 # happened. Such a system could not be considered "sane".
924 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
925 alias in your environment" 1>&2; exit 1; }
928 test "$2" = conftestfile
934 { echo "configure: error: newly created file is older than distributed files!
935 Check your system clock" 1>&2; exit 1; }
938 echo "$ac_t""yes" 1>&6
939 if test "$program_transform_name" = s,x,x,; then
940 program_transform_name=
942 # Double any \ or $. echo might interpret backslashes.
943 cat <<\EOF_SED > conftestsed
944 s,\\,\\\\,g; s,\$,$$,g
946 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
949 test "$program_prefix" != NONE &&
950 program_transform_name="s,^,${program_prefix},;$program_transform_name"
951 # Use a double $ so make ignores it.
952 test "$program_suffix" != NONE &&
953 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
955 # sed with no file args requires a program.
956 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
958 for ac_prog in mawk gawk nawk awk
960 # Extract the first word of "$ac_prog", so it can be a program name with args.
961 set dummy $ac_prog; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$AWK"; then
968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_AWK="$ac_prog"
982 AWK="$ac_cv_prog_AWK"
983 if test -n "$AWK"; then
984 echo "$ac_t""$AWK" 1>&6
986 echo "$ac_t""no" 1>&6
989 test -n "$AWK" && break
992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5
994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
995 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftestmake <<\EOF
1000 @echo 'ac_maketemp="${MAKE}"'
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1004 if test -n "$ac_maketemp"; then
1005 eval ac_cv_prog_make_${ac_make}_set=yes
1007 eval ac_cv_prog_make_${ac_make}_set=no
1011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1016 SET_MAKE="MAKE=${MAKE-make}"
1025 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1026 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1031 missing_dir=`cd $ac_aux_dir && pwd`
1032 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working aclocal" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 ACLOCAL="$missing_dir/missing aclocal"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working autoconf" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOCONF="$missing_dir/missing autoconf"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working automake" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (automake --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOMAKE="$missing_dir/missing automake"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working autoheader" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1077 AUTOHEADER=autoheader
1078 echo "$ac_t""found" 1>&6
1080 AUTOHEADER="$missing_dir/missing autoheader"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working makeinfo" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 MAKEINFO="$missing_dir/missing makeinfo"
1094 echo "$ac_t""missing" 1>&6
1097 install_sh="$missing_dir/install-sh"
1098 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1100 for ac_prog in gnutar gtar tar
1102 # Extract the first word of "$ac_prog", so it can be a program name with args.
1103 set dummy $ac_prog; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$AMTAR"; then
1110 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_AMTAR="$ac_prog"
1124 AMTAR="$ac_cv_prog_AMTAR"
1125 if test -n "$AMTAR"; then
1126 echo "$ac_t""$AMTAR" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 test -n "$AMTAR" && break
1136 if test -n "$AMTAR"; then
1137 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1155 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1156 echo "configure:1157: checking configure arguments" >&5
1161 ldap_subdir="/openldap"
1163 # Check whether --with-subdir or --without-subdir was given.
1164 if test "${with_subdir+set}" = set; then
1165 withval="$with_subdir"
1172 ldap_subdir="$withval"
1175 ldap_subdir="/$withval"
1182 # OpenLDAP --enable-debug
1183 # Check whether --enable-debug or --disable-debug was given.
1184 if test "${enable_debug+set}" = set; then
1185 enableval="$enable_debug"
1188 for ol_val in auto yes no ; do
1189 if test "$enableval" = "$ol_val" ; then
1193 if test "$ol_arg" = "invalid" ; then
1194 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1196 ol_enable_debug="$ol_arg"
1199 ol_enable_debug="yes"
1201 # end --enable-debug
1202 # OpenLDAP --enable-syslog
1203 # Check whether --enable-syslog or --disable-syslog was given.
1204 if test "${enable_syslog+set}" = set; then
1205 enableval="$enable_syslog"
1208 for ol_val in auto yes no ; do
1209 if test "$enableval" = "$ol_val" ; then
1213 if test "$ol_arg" = "invalid" ; then
1214 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1216 ol_enable_syslog="$ol_arg"
1219 ol_enable_syslog="auto"
1221 # end --enable-syslog
1222 # OpenLDAP --enable-proctitle
1223 # Check whether --enable-proctitle or --disable-proctitle was given.
1224 if test "${enable_proctitle+set}" = set; then
1225 enableval="$enable_proctitle"
1228 for ol_val in auto yes no ; do
1229 if test "$enableval" = "$ol_val" ; then
1233 if test "$ol_arg" = "invalid" ; then
1234 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1236 ol_enable_proctitle="$ol_arg"
1239 ol_enable_proctitle="yes"
1241 # end --enable-proctitle
1242 # OpenLDAP --enable-cache
1243 # Check whether --enable-cache or --disable-cache was given.
1244 if test "${enable_cache+set}" = set; then
1245 enableval="$enable_cache"
1248 for ol_val in auto yes no ; do
1249 if test "$enableval" = "$ol_val" ; then
1253 if test "$ol_arg" = "invalid" ; then
1254 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1256 ol_enable_cache="$ol_arg"
1259 ol_enable_cache="yes"
1261 # end --enable-cache
1262 # OpenLDAP --enable-dns
1263 # Check whether --enable-dns or --disable-dns was given.
1264 if test "${enable_dns+set}" = set; then
1265 enableval="$enable_dns"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1276 ol_enable_dns="$ol_arg"
1282 # OpenLDAP --enable-referrals
1283 # Check whether --enable-referrals or --disable-referrals was given.
1284 if test "${enable_referrals+set}" = set; then
1285 enableval="$enable_referrals"
1288 for ol_val in auto yes no ; do
1289 if test "$enableval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1296 ol_enable_referrals="$ol_arg"
1299 ol_enable_referrals="yes"
1301 # end --enable-referrals
1302 # OpenLDAP --enable-kbind
1303 # Check whether --enable-kbind or --disable-kbind was given.
1304 if test "${enable_kbind+set}" = set; then
1305 enableval="$enable_kbind"
1308 for ol_val in auto yes no ; do
1309 if test "$enableval" = "$ol_val" ; then
1313 if test "$ol_arg" = "invalid" ; then
1314 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1316 ol_enable_kbind="$ol_arg"
1319 ol_enable_kbind="auto"
1321 # end --enable-kbind
1322 # OpenLDAP --enable-cldap
1323 # Check whether --enable-cldap or --disable-cldap was given.
1324 if test "${enable_cldap+set}" = set; then
1325 enableval="$enable_cldap"
1328 for ol_val in auto yes no ; do
1329 if test "$enableval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1336 ol_enable_cldap="$ol_arg"
1339 ol_enable_cldap="no"
1341 # end --enable-cldap
1342 # OpenLDAP --enable-ldapi
1343 # Check whether --enable-ldapi or --disable-ldapi was given.
1344 if test "${enable_ldapi+set}" = set; then
1345 enableval="$enable_ldapi"
1348 for ol_val in auto yes no ; do
1349 if test "$enableval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1356 ol_enable_ldapi="$ol_arg"
1359 ol_enable_ldapi="no"
1361 # end --enable-ldapi
1362 # OpenLDAP --enable-x_compile
1363 # Check whether --enable-x_compile or --disable-x_compile was given.
1364 if test "${enable_x_compile+set}" = set; then
1365 enableval="$enable_x_compile"
1368 for ol_val in yes no ; do
1369 if test "$enableval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1376 ol_enable_x_compile="$ol_arg"
1379 ol_enable_x_compile="no"
1381 # end --enable-x_compile
1383 # OpenLDAP --enable-dmalloc
1384 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1385 if test "${enable_dmalloc+set}" = set; then
1386 enableval="$enable_dmalloc"
1389 for ol_val in auto yes no ; do
1390 if test "$enableval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1397 ol_enable_dmalloc="$ol_arg"
1400 ol_enable_dmalloc="no"
1402 # end --enable-dmalloc
1404 # OpenLDAP --with-cyrus_sasl
1405 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1406 if test "${with_cyrus_sasl+set}" = set; then
1407 withval="$with_cyrus_sasl"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1418 ol_with_cyrus_sasl="$ol_arg"
1421 ol_with_cyrus_sasl="auto"
1423 # end --with-cyrus_sasl
1425 # OpenLDAP --with-fetch
1426 # Check whether --with-fetch or --without-fetch was given.
1427 if test "${with_fetch+set}" = set; then
1428 withval="$with_fetch"
1431 for ol_val in auto yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1439 ol_with_fetch="$ol_arg"
1442 ol_with_fetch="auto"
1446 # OpenLDAP --with-kerberos
1447 # Check whether --with-kerberos or --without-kerberos was given.
1448 if test "${with_kerberos+set}" = set; then
1449 withval="$with_kerberos"
1452 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1460 ol_with_kerberos="$ol_arg"
1463 ol_with_kerberos="auto"
1465 # end --with-kerberos
1467 # OpenLDAP --with-readline
1468 # Check whether --with-readline or --without-readline was given.
1469 if test "${with_readline+set}" = set; then
1470 withval="$with_readline"
1473 for ol_val in auto yes no ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1481 ol_with_readline="$ol_arg"
1484 ol_with_readline="auto"
1486 # end --with-readline
1488 # OpenLDAP --with-threads
1489 # Check whether --with-threads or --without-threads was given.
1490 if test "${with_threads+set}" = set; then
1491 withval="$with_threads"
1494 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1502 ol_with_threads="$ol_arg"
1505 ol_with_threads="auto"
1507 # end --with-threads
1509 # OpenLDAP --with-tls
1510 # Check whether --with-tls or --without-tls was given.
1511 if test "${with_tls+set}" = set; then
1515 for ol_val in auto ssleay openssl yes no ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1523 ol_with_tls="$ol_arg"
1530 # OpenLDAP --with-yielding_select
1531 # Check whether --with-yielding_select or --without-yielding_select was given.
1532 if test "${with_yielding_select+set}" = set; then
1533 withval="$with_yielding_select"
1536 for ol_val in auto yes no manual ; do
1537 if test "$withval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1544 ol_with_yielding_select="$ol_arg"
1547 ol_with_yielding_select="auto"
1549 # end --with-yielding_select
1552 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1553 if test "${with_xxldapdoptions+set}" = set; then
1554 withval="$with_xxldapdoptions"
1558 # OpenLDAP --enable-ldapd
1559 # Check whether --enable-ldapd or --disable-ldapd was given.
1560 if test "${enable_ldapd+set}" = set; then
1561 enableval="$enable_ldapd"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1572 ol_enable_ldapd="$ol_arg"
1575 ol_enable_ldapd="no"
1577 # end --enable-ldapd
1579 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1580 if test "${with_xxslapdoptions+set}" = set; then
1581 withval="$with_xxslapdoptions"
1585 # OpenLDAP --enable-slapd
1586 # Check whether --enable-slapd or --disable-slapd was given.
1587 if test "${enable_slapd+set}" = set; then
1588 enableval="$enable_slapd"
1591 for ol_val in auto yes no ; do
1592 if test "$enableval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1599 ol_enable_slapd="$ol_arg"
1602 ol_enable_slapd="yes"
1604 # end --enable-slapd
1605 # OpenLDAP --enable-cleartext
1606 # Check whether --enable-cleartext or --disable-cleartext was given.
1607 if test "${enable_cleartext+set}" = set; then
1608 enableval="$enable_cleartext"
1611 for ol_val in auto yes no ; do
1612 if test "$enableval" = "$ol_val" ; then
1616 if test "$ol_arg" = "invalid" ; then
1617 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1619 ol_enable_cleartext="$ol_arg"
1622 ol_enable_cleartext="yes"
1624 # end --enable-cleartext
1625 # OpenLDAP --enable-crypt
1626 # Check whether --enable-crypt or --disable-crypt was given.
1627 if test "${enable_crypt+set}" = set; then
1628 enableval="$enable_crypt"
1631 for ol_val in auto yes no ; do
1632 if test "$enableval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1639 ol_enable_crypt="$ol_arg"
1642 ol_enable_crypt="auto"
1644 # end --enable-crypt
1645 # OpenLDAP --enable-kpasswd
1646 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1647 if test "${enable_kpasswd+set}" = set; then
1648 enableval="$enable_kpasswd"
1651 for ol_val in auto yes no ; do
1652 if test "$enableval" = "$ol_val" ; then
1656 if test "$ol_arg" = "invalid" ; then
1657 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1659 ol_enable_kpasswd="$ol_arg"
1662 ol_enable_kpasswd="no"
1664 # end --enable-kpasswd
1665 # OpenLDAP --enable-spasswd
1666 # Check whether --enable-spasswd or --disable-spasswd was given.
1667 if test "${enable_spasswd+set}" = set; then
1668 enableval="$enable_spasswd"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1679 ol_enable_spasswd="$ol_arg"
1682 ol_enable_spasswd="no"
1684 # end --enable-spasswd
1685 # OpenLDAP --enable-modules
1686 # Check whether --enable-modules or --disable-modules was given.
1687 if test "${enable_modules+set}" = set; then
1688 enableval="$enable_modules"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1699 ol_enable_modules="$ol_arg"
1702 ol_enable_modules="no"
1704 # end --enable-modules
1705 # OpenLDAP --enable-multimaster
1706 # Check whether --enable-multimaster or --disable-multimaster was given.
1707 if test "${enable_multimaster+set}" = set; then
1708 enableval="$enable_multimaster"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1719 ol_enable_multimaster="$ol_arg"
1722 ol_enable_multimaster="no"
1724 # end --enable-multimaster
1725 # OpenLDAP --enable-phonetic
1726 # Check whether --enable-phonetic or --disable-phonetic was given.
1727 if test "${enable_phonetic+set}" = set; then
1728 enableval="$enable_phonetic"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1739 ol_enable_phonetic="$ol_arg"
1742 ol_enable_phonetic="no"
1744 # end --enable-phonetic
1745 # OpenLDAP --enable-quipu
1746 # Check whether --enable-quipu or --disable-quipu was given.
1747 if test "${enable_quipu+set}" = set; then
1748 enableval="$enable_quipu"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1759 ol_enable_quipu="$ol_arg"
1762 ol_enable_quipu="no"
1764 # end --enable-quipu
1765 # OpenLDAP --enable-rlookups
1766 # Check whether --enable-rlookups or --disable-rlookups was given.
1767 if test "${enable_rlookups+set}" = set; then
1768 enableval="$enable_rlookups"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1779 ol_enable_rlookups="$ol_arg"
1782 ol_enable_rlookups="auto"
1784 # end --enable-rlookups
1785 # OpenLDAP --enable-aci
1786 # Check whether --enable-aci or --disable-aci was given.
1787 if test "${enable_aci+set}" = set; then
1788 enableval="$enable_aci"
1791 for ol_val in auto yes no ; do
1792 if test "$enableval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1799 ol_enable_aci="$ol_arg"
1805 # OpenLDAP --enable-wrappers
1806 # Check whether --enable-wrappers or --disable-wrappers was given.
1807 if test "${enable_wrappers+set}" = set; then
1808 enableval="$enable_wrappers"
1811 for ol_val in auto yes no ; do
1812 if test "$enableval" = "$ol_val" ; then
1816 if test "$ol_arg" = "invalid" ; then
1817 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1819 ol_enable_wrappers="$ol_arg"
1822 ol_enable_wrappers="no"
1824 # end --enable-wrappers
1825 # OpenLDAP --enable-dynamic
1826 # Check whether --enable-dynamic or --disable-dynamic was given.
1827 if test "${enable_dynamic+set}" = set; then
1828 enableval="$enable_dynamic"
1831 for ol_val in auto yes no ; do
1832 if test "$enableval" = "$ol_val" ; then
1836 if test "$ol_arg" = "invalid" ; then
1837 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1839 ol_enable_dynamic="$ol_arg"
1842 ol_enable_dynamic="no"
1844 # end --enable-dynamic
1846 # OpenLDAP --enable-bdb2
1847 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1848 if test "${enable_bdb2+set}" = set; then
1849 enableval="$enable_bdb2"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1860 ol_enable_bdb2="$ol_arg"
1866 # OpenLDAP --with-bdb2_module
1867 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1868 if test "${with_bdb2_module+set}" = set; then
1869 withval="$with_bdb2_module"
1872 for ol_val in static dynamic ; do
1873 if test "$withval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1880 ol_with_bdb2_module="$ol_arg"
1883 ol_with_bdb2_module="static"
1885 # end --with-bdb2_module
1887 # OpenLDAP --enable-dnssrv
1888 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1889 if test "${enable_dnssrv+set}" = set; then
1890 enableval="$enable_dnssrv"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1901 ol_enable_dnssrv="$ol_arg"
1904 ol_enable_dnssrv="no"
1906 # end --enable-dnssrv
1907 # OpenLDAP --with-dnssrv_module
1908 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1909 if test "${with_dnssrv_module+set}" = set; then
1910 withval="$with_dnssrv_module"
1913 for ol_val in static dynamic ; do
1914 if test "$withval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1921 ol_with_dnssrv_module="$ol_arg"
1924 ol_with_dnssrv_module="static"
1926 # end --with-dnssrv_module
1928 # OpenLDAP --enable-ldap
1929 # Check whether --enable-ldap or --disable-ldap was given.
1930 if test "${enable_ldap+set}" = set; then
1931 enableval="$enable_ldap"
1934 for ol_val in auto yes no ; do
1935 if test "$enableval" = "$ol_val" ; then
1939 if test "$ol_arg" = "invalid" ; then
1940 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1942 ol_enable_ldap="$ol_arg"
1948 # OpenLDAP --with-ldap_module
1949 # Check whether --with-ldap_module or --without-ldap_module was given.
1950 if test "${with_ldap_module+set}" = set; then
1951 withval="$with_ldap_module"
1954 for ol_val in static dynamic ; do
1955 if test "$withval" = "$ol_val" ; then
1959 if test "$ol_arg" = "invalid" ; then
1960 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1962 ol_with_ldap_module="$ol_arg"
1965 ol_with_ldap_module="static"
1967 # end --with-ldap_module
1969 # OpenLDAP --enable-ldbm
1970 # Check whether --enable-ldbm or --disable-ldbm was given.
1971 if test "${enable_ldbm+set}" = set; then
1972 enableval="$enable_ldbm"
1975 for ol_val in auto yes no ; do
1976 if test "$enableval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1983 ol_enable_ldbm="$ol_arg"
1986 ol_enable_ldbm="yes"
1989 # OpenLDAP --with-ldbm_api
1990 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1991 if test "${with_ldbm_api+set}" = set; then
1992 withval="$with_ldbm_api"
1995 for ol_val in auto db2 db mdbm gdbm manual ; do
1996 if test "$withval" = "$ol_val" ; then
2000 if test "$ol_arg" = "invalid" ; then
2001 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2003 ol_with_ldbm_api="$ol_arg"
2006 ol_with_ldbm_api="auto"
2008 # end --with-ldbm_api
2010 # OpenLDAP --with-ldbm_module
2011 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2012 if test "${with_ldbm_module+set}" = set; then
2013 withval="$with_ldbm_module"
2016 for ol_val in static dynamic ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2024 ol_with_ldbm_module="$ol_arg"
2027 ol_with_ldbm_module="static"
2029 # end --with-ldbm_module
2031 # OpenLDAP --with-ldbm_type
2032 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2033 if test "${with_ldbm_type+set}" = set; then
2034 withval="$with_ldbm_type"
2037 for ol_val in auto btree hash ; do
2038 if test "$withval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2045 ol_with_ldbm_type="$ol_arg"
2048 ol_with_ldbm_type="auto"
2050 # end --with-ldbm_type
2052 # OpenLDAP --enable-passwd
2053 # Check whether --enable-passwd or --disable-passwd was given.
2054 if test "${enable_passwd+set}" = set; then
2055 enableval="$enable_passwd"
2058 for ol_val in auto yes no ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2066 ol_enable_passwd="$ol_arg"
2069 ol_enable_passwd="no"
2071 # end --enable-passwd
2072 # OpenLDAP --with-passwd_module
2073 # Check whether --with-passwd_module or --without-passwd_module was given.
2074 if test "${with_passwd_module+set}" = set; then
2075 withval="$with_passwd_module"
2078 for ol_val in static dynamic ; do
2079 if test "$withval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2086 ol_with_passwd_module="$ol_arg"
2089 ol_with_passwd_module="static"
2091 # end --with-passwd_module
2093 # OpenLDAP --enable-perl
2094 # Check whether --enable-perl or --disable-perl was given.
2095 if test "${enable_perl+set}" = set; then
2096 enableval="$enable_perl"
2099 for ol_val in auto yes no ; do
2100 if test "$enableval" = "$ol_val" ; then
2104 if test "$ol_arg" = "invalid" ; then
2105 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2107 ol_enable_perl="$ol_arg"
2113 # OpenLDAP --with-perl_module
2114 # Check whether --with-perl_module or --without-perl_module was given.
2115 if test "${with_perl_module+set}" = set; then
2116 withval="$with_perl_module"
2119 for ol_val in static dynamic ; do
2120 if test "$withval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2127 ol_with_perl_module="$ol_arg"
2130 ol_with_perl_module="static"
2132 # end --with-perl_module
2134 # OpenLDAP --enable-shell
2135 # Check whether --enable-shell or --disable-shell was given.
2136 if test "${enable_shell+set}" = set; then
2137 enableval="$enable_shell"
2140 for ol_val in auto yes no ; do
2141 if test "$enableval" = "$ol_val" ; then
2145 if test "$ol_arg" = "invalid" ; then
2146 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2148 ol_enable_shell="$ol_arg"
2151 ol_enable_shell="no"
2153 # end --enable-shell
2154 # OpenLDAP --with-shell_module
2155 # Check whether --with-shell_module or --without-shell_module was given.
2156 if test "${with_shell_module+set}" = set; then
2157 withval="$with_shell_module"
2160 for ol_val in static dynamic ; do
2161 if test "$withval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2168 ol_with_shell_module="$ol_arg"
2171 ol_with_shell_module="static"
2173 # end --with-shell_module
2175 # OpenLDAP --enable-sql
2176 # Check whether --enable-sql or --disable-sql was given.
2177 if test "${enable_sql+set}" = set; then
2178 enableval="$enable_sql"
2181 for ol_val in auto yes no ; do
2182 if test "$enableval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2189 ol_enable_sql="$ol_arg"
2195 # OpenLDAP --with-sql_module
2196 # Check whether --with-sql_module or --without-sql_module was given.
2197 if test "${with_sql_module+set}" = set; then
2198 withval="$with_sql_module"
2201 for ol_val in static dynamic ; do
2202 if test "$withval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2209 ol_with_sql_module="$ol_arg"
2212 ol_with_sql_module="static"
2214 # end --with-sql_module
2216 # OpenLDAP --enable-tcl
2217 # Check whether --enable-tcl or --disable-tcl was given.
2218 if test "${enable_tcl+set}" = set; then
2219 enableval="$enable_tcl"
2222 for ol_val in auto yes no ; do
2223 if test "$enableval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2230 ol_enable_tcl="$ol_arg"
2236 # OpenLDAP --with-tcl_module
2237 # Check whether --with-tcl_module or --without-tcl_module was given.
2238 if test "${with_tcl_module+set}" = set; then
2239 withval="$with_tcl_module"
2242 for ol_val in static dynamic ; do
2243 if test "$withval" = "$ol_val" ; then
2247 if test "$ol_arg" = "invalid" ; then
2248 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2250 ol_with_tcl_module="$ol_arg"
2253 ol_with_tcl_module="static"
2255 # end --with-tcl_module
2258 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2259 if test "${with_xxslurpdoptions+set}" = set; then
2260 withval="$with_xxslurpdoptions"
2264 # OpenLDAP --enable-slurpd
2265 # Check whether --enable-slurpd or --disable-slurpd was given.
2266 if test "${enable_slurpd+set}" = set; then
2267 enableval="$enable_slurpd"
2270 for ol_val in auto yes no ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2278 ol_enable_slurpd="$ol_arg"
2281 ol_enable_slurpd="auto"
2283 # end --enable-slurpd
2285 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2286 if test "${with_xxliboptions+set}" = set; then
2287 withval="$with_xxliboptions"
2291 # Check whether --enable-static or --disable-static was given.
2292 if test "${enable_static+set}" = set; then
2293 enableval="$enable_static"
2294 p=${PACKAGE-default}
2295 case "$enableval" in
2296 yes) enable_static=yes ;;
2297 no) enable_static=no ;;
2300 # Look at the argument we got. We use all the common list separators.
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2302 for pkg in $enableval; do
2303 if test "X$pkg" = "X$p"; then
2314 # Check whether --enable-shared or --disable-shared was given.
2315 if test "${enable_shared+set}" = set; then
2316 enableval="$enable_shared"
2317 p=${PACKAGE-default}
2318 case "$enableval" in
2319 yes) enable_shared=yes ;;
2320 no) enable_shared=no ;;
2323 # Look at the argument we got. We use all the common list separators.
2324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2325 for pkg in $enableval; do
2326 if test "X$pkg" = "X$p"; then
2340 if test $ol_enable_dns = yes ; then
2341 if test $ol_enable_referrals = no ; then
2342 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2344 if test $ol_enable_referrals = auto ; then
2345 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2346 ol_enable_referrals=yes
2350 if test $ol_enable_slapd = no ; then
2351 if test $ol_enable_bdb2 = yes ; then
2352 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2354 if test $ol_enable_dnssrv = yes ; then
2355 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2357 if test $ol_enable_ldap = yes ; then
2358 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2360 if test $ol_enable_ldbm = yes ; then
2361 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2363 if test $ol_enable_passwd = yes ; then
2364 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2366 if test $ol_enable_perl = yes ; then
2367 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2369 if test $ol_enable_shell = yes ; then
2370 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2372 if test $ol_enable_tcl = yes ; then
2373 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2375 if test $ol_enable_sql = yes ; then
2376 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2378 if test $ol_enable_modules = yes ; then
2379 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2381 if test $ol_enable_multimaster = yes ; then
2382 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2384 if test $ol_enable_wrappers = yes ; then
2385 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2387 if test $ol_enable_phonetic = yes ; then
2388 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2390 if test $ol_enable_quipu = yes ; then
2391 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2393 if test $ol_enable_rlookups = yes ; then
2394 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2396 if test $ol_enable_aci = yes ; then
2397 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2399 if test $ol_with_ldbm_api != auto ; then
2400 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2402 if test $ol_with_ldbm_type != auto ; then
2403 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2405 if test $ol_with_bdb2_module != static ; then
2406 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2408 if test $ol_with_dnssrv_module != static ; then
2409 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2411 if test $ol_with_ldap_module != static ; then
2412 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2414 if test $ol_with_ldbm_module != static ; then
2415 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2417 if test $ol_with_passwd_module != static ; then
2418 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2420 if test $ol_with_perl_module != static ; then
2421 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2423 if test $ol_with_shell_module != static ; then
2424 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2426 if test $ol_with_tcl_module != static ; then
2427 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2429 if test $ol_with_sql_module != static ; then
2430 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2432 if test $ol_enable_slurpd = yes ; then
2433 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2436 # force settings to no
2447 ol_enable_modules=no
2448 ol_enable_multimaster=no
2449 ol_enable_phonetic=no
2451 ol_enable_rlookups=no
2453 ol_enable_wrappers=no
2454 ol_enable_dynamic=no
2457 ol_with_ldbm_type=no
2459 ol_with_bdb2_module=static
2460 ol_with_dnssrv_module=static
2461 ol_with_ldap_module=static
2462 ol_with_ldbm_module=static
2463 ol_with_passwd_module=static
2464 ol_with_perl_module=static
2465 ol_with_shell_module=static
2466 ol_with_tcl_module=static
2467 ol_with_sql_module=static
2471 elif test $ol_enable_ldbm = no ; then
2473 if test $ol_with_ldbm_api != auto ; then
2474 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2477 if test $ol_with_ldbm_type != auto ; then
2478 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2481 if test $ol_with_ldbm_module != static ; then
2482 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2485 if test $ol_enable_bdb2 = yes ; then
2486 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2489 if test $ol_enable_modules != yes -a \
2490 $ol_enable_dnssrv = no -a \
2491 $ol_enable_ldap = no -a \
2492 $ol_enable_passwd = no -a \
2493 $ol_enable_perl = no -a \
2494 $ol_enable_shell = no -a \
2495 $ol_enable_sql = no -a \
2496 $ol_enable_tcl = no ; then
2497 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2501 ol_with_ldbm_type=no
2502 ol_with_ldbm_module=static
2504 elif test $ol_enable_bdb2 = yes ; then
2506 if test $ol_with_ldbm_api != auto -a \
2507 $ol_with_ldbm_api != db2 ; then
2508 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2511 ol_with_ldbm_api=db2
2515 if test $ol_enable_bdb2 != no ; then
2516 if test $ol_with_ldbm_api != auto -a \
2517 $ol_with_ldbm_api != db2 ; then
2518 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2523 if test $ol_with_ldbm_api = gdbm -a \
2524 $ol_with_ldbm_type = btree ; then
2525 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2527 if test $ol_with_ldbm_api = mdbm -a \
2528 $ol_with_ldbm_type = btree ; then
2529 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2531 if test $ol_with_ldbm_api = ndbm -a \
2532 $ol_with_ldbm_type = btree ; then
2533 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2537 if test $ol_enable_slurpd = yes ; then
2538 if test $ol_with_threads = no ; then
2539 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2543 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2544 if test $ol_with_kerberos = no ; then
2545 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2547 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2548 if test $ol_with_kerberos != auto ; then
2549 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2555 if test $ol_enable_spasswd = yes ; then
2556 if test $ol_with_cyrus_sasl = no ; then
2557 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2562 echo "$ac_t""done" 1>&6
2591 BUILD_BDB2_DYNAMIC=static
2592 BUILD_DNSSRV_DYNAMIC=static
2593 BUILD_LDAP_DYNAMIC=static
2594 BUILD_LDBM_DYNAMIC=static
2595 BUILD_PASSWD_DYNAMIC=static
2596 BUILD_PERL_DYNAMIC=static
2597 BUILD_SHELL_DYNAMIC=static
2598 BUILD_TCL_DYNAMIC=static
2599 BUILD_SQL_DYNAMIC=static
2601 SLAPD_MODULES_LDFLAGS=
2602 SLAPD_MODULES_CPPFLAGS=
2625 cat >> confdefs.h <<\EOF
2626 #define HAVE_MKVERSION 1
2634 *-*-aix*) if test -z "$CC" ; then
2635 case "$ol_with_threads" in
2636 auto | yes | posix) ol_aix_threads=yes ;;
2642 if test $ol_aix_threads = yes ; then
2643 if test -z "${CC}" ; then
2644 for ac_prog in cc_r xlc_r cc
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_word" >&5
2650 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2658 for ac_dir in $ac_dummy; do
2659 test -z "$ac_dir" && ac_dir=.
2660 if test -f $ac_dir/$ac_word; then
2661 ac_cv_prog_CC="$ac_prog"
2669 if test -n "$CC"; then
2670 echo "$ac_t""$CC" 1>&6
2672 echo "$ac_t""no" 1>&6
2675 test -n "$CC" && break
2679 if test "$CC" = cc ; then
2680 if test $ol_with_threads != auto ; then
2681 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2683 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2689 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2690 ol_with_threads=posix
2691 ol_cv_pthread_create=yes
2695 if test -z "${CC}"; then
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_word" >&5
2702 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2710 for ac_dir in $ac_dummy; do
2711 test -z "$ac_dir" && ac_dir=.
2712 if test -f $ac_dir/$ac_word; then
2713 ac_cv_prog_CC="$ac_prog"
2721 if test -n "$CC"; then
2722 echo "$ac_t""$CC" 1>&6
2724 echo "$ac_t""no" 1>&6
2727 test -n "$CC" && break
2735 # Check whether --enable-fast-install or --disable-fast-install was given.
2736 if test "${enable_fast_install+set}" = set; then
2737 enableval="$enable_fast_install"
2738 p=${PACKAGE-default}
2739 case "$enableval" in
2740 yes) enable_fast_install=yes ;;
2741 no) enable_fast_install=no ;;
2743 enable_fast_install=no
2744 # Look at the argument we got. We use all the common list separators.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2746 for pkg in $enableval; do
2747 if test "X$pkg" = "X$p"; then
2748 enable_fast_install=yes
2755 enable_fast_install=yes
2758 # Extract the first word of "ranlib", so it can be a program name with args.
2759 set dummy ranlib; ac_word=$2
2760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_word" >&5
2762 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 if test -n "$RANLIB"; then
2766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2770 for ac_dir in $ac_dummy; do
2771 test -z "$ac_dir" && ac_dir=.
2772 if test -f $ac_dir/$ac_word; then
2773 ac_cv_prog_RANLIB="ranlib"
2778 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2781 RANLIB="$ac_cv_prog_RANLIB"
2782 if test -n "$RANLIB"; then
2783 echo "$ac_t""$RANLIB" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2817 if test -z "$CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_word" >&5
2822 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 for ac_dir in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir=.
2833 if test -f $ac_dir/$ac_word; then
2834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2847 if test $# -gt 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2852 set dummy "$ac_dir/$ac_word" "$@"
2860 if test -n "$CC"; then
2861 echo "$ac_t""$CC" 1>&6
2863 echo "$ac_t""no" 1>&6
2866 if test -z "$CC"; then
2867 case "`uname -s`" in
2868 *win32* | *WIN32* | *CYGWIN*)
2869 # Extract the first word of "cl", so it can be a program name with args.
2870 set dummy cl; ac_word=$2
2871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_word" >&5
2873 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2881 for ac_dir in $ac_dummy; do
2882 test -z "$ac_dir" && ac_dir=.
2883 if test -f $ac_dir/$ac_word; then
2892 if test -n "$CC"; then
2893 echo "$ac_t""$CC" 1>&6
2895 echo "$ac_t""no" 1>&6
2900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2904 echo "configure:2905: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2911 cross_compiling=$ac_cv_prog_cc_cross
2913 cat > conftest.$ac_ext << EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 ac_cv_prog_cc_works=yes
2922 # If we can't run a trivial program, we are probably using a cross compiler.
2923 if (./conftest; exit) 2>/dev/null; then
2924 ac_cv_prog_cc_cross=no
2926 ac_cv_prog_cc_cross=yes
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2931 ac_cv_prog_cc_works=no
2935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2939 cross_compiling=$ac_cv_prog_cc_cross
2941 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2942 if test $ac_cv_prog_cc_works = no; then
2943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2946 echo "configure:2947: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2947 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2948 cross_compiling=$ac_cv_prog_cc_cross
2950 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2951 echo "configure:2952: checking whether we are using GNU C" >&5
2952 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.c <<EOF
2960 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2967 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2969 if test $ac_cv_prog_gcc = yes; then
2975 ac_test_CFLAGS="${CFLAGS+set}"
2976 ac_save_CFLAGS="$CFLAGS"
2978 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2979 echo "configure:2980: checking whether ${CC-cc} accepts -g" >&5
2980 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 echo 'void f(){}' > conftest.c
2984 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2993 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2994 if test "$ac_test_CFLAGS" = set; then
2995 CFLAGS="$ac_save_CFLAGS"
2996 elif test $ac_cv_prog_cc_g = yes; then
2997 if test "$GCC" = yes; then
3003 if test "$GCC" = yes; then
3010 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3011 if test "${with_gnu_ld+set}" = set; then
3012 withval="$with_gnu_ld"
3013 test "$withval" = no || with_gnu_ld=yes
3019 if test "$ac_cv_prog_gcc" = yes; then
3020 # Check if gcc -print-prog-name=ld gives a path.
3021 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3022 echo "configure:3023: checking for ld used by GCC" >&5
3023 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3025 # Accept absolute paths.
3026 [\\/]* | [A-Za-z]:[\\/]*)
3027 re_direlt='/[^/][^/]*/\.\./'
3028 # Canonicalize the path of ld
3029 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3031 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3033 test -z "$LD" && LD="$ac_prog"
3036 # If it fails, then pretend we aren't using GCC.
3040 # If it is relative, then search for the first ld in PATH.
3044 elif test "$with_gnu_ld" = yes; then
3045 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3046 echo "configure:3047: checking for GNU ld" >&5
3048 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3049 echo "configure:3050: checking for non-GNU ld" >&5
3051 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -z "$LD"; then
3055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3056 for ac_dir in $PATH; do
3057 test -z "$ac_dir" && ac_dir=.
3058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3059 ac_cv_path_LD="$ac_dir/$ac_prog"
3060 # Check to see if the program is GNU ld. I'd rather use --version,
3061 # but apparently some GNU ld's only accept -v.
3062 # Break only if it was the GNU/non-GNU ld that we prefer.
3063 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3064 test "$with_gnu_ld" != no && break
3066 test "$with_gnu_ld" != yes && break
3072 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3077 if test -n "$LD"; then
3078 echo "$ac_t""$LD" 1>&6
3080 echo "$ac_t""no" 1>&6
3082 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3083 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3084 echo "configure:3085: checking if the linker ($LD) is GNU ld" >&5
3085 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3089 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3090 ac_cv_prog_gnu_ld=yes
3092 ac_cv_prog_gnu_ld=no
3096 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3099 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3100 echo "configure:3101: checking for BSD-compatible nm" >&5
3101 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test -n "$NM"; then
3105 # Let the user override the test.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3109 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3112 # Check to see if the nm accepts a BSD-compat flag.
3113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3114 # nm: unknown option "B" ignored
3115 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3116 ac_cv_path_NM="$ac_dir/nm -B"
3118 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3119 ac_cv_path_NM="$ac_dir/nm -p"
3122 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3123 continue # so that we can try to find one that supports BSD flags
3128 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3133 echo "$ac_t""$NM" 1>&6
3135 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3136 echo "configure:3137: checking whether ln -s works" >&5
3137 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3141 if ln -s X conftestdata 2>/dev/null
3144 ac_cv_prog_LN_S="ln -s"
3149 LN_S="$ac_cv_prog_LN_S"
3150 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3151 echo "$ac_t""yes" 1>&6
3153 echo "$ac_t""no" 1>&6
3156 if test $host != $build; then
3157 ac_tool_prefix=${host_alias}-
3164 NONE) lt_target="$host" ;;
3165 *) lt_target="$target" ;;
3168 # Check for any special flags to pass to ltconfig.
3169 libtool_flags="--cache-file=$cache_file"
3170 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3171 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3172 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3173 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3174 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3175 libtool_flags="$libtool_flags --enable-dlopen"
3176 libtool_flags="$libtool_flags --enable-win32-dll"
3177 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3178 if test "${enable_libtool_lock+set}" = set; then
3179 enableval="$enable_libtool_lock"
3183 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3184 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3186 # Some flags need to be propagated to the compiler or linker for good
3188 case "$lt_target" in
3190 # Find out which ABI we are using.
3191 echo '#line 3192 "configure"' > conftest.$ac_ext
3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193 case "`/usr/bin/file conftest.o`" in
3209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3210 SAVE_CFLAGS="$CFLAGS"
3211 CFLAGS="$CFLAGS -belf"
3212 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3213 echo "configure:3214: checking whether the C compiler needs -belf" >&5
3214 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 lt_cv_cc_needs_belf=yes
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 lt_cv_cc_needs_belf=no
3237 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3238 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3239 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3240 CFLAGS="$SAVE_CFLAGS"
3244 *-*-cygwin* | *-*-mingw*)
3245 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3248 echo "configure:3249: checking for $ac_word" >&5
3249 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 if test -n "$DLLTOOL"; then
3253 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3257 for ac_dir in $ac_dummy; do
3258 test -z "$ac_dir" && ac_dir=.
3259 if test -f $ac_dir/$ac_word; then
3260 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3267 DLLTOOL="$ac_cv_prog_DLLTOOL"
3268 if test -n "$DLLTOOL"; then
3269 echo "$ac_t""$DLLTOOL" 1>&6
3271 echo "$ac_t""no" 1>&6
3275 if test -z "$ac_cv_prog_DLLTOOL"; then
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "dlltool", so it can be a program name with args.
3278 set dummy dlltool; ac_word=$2
3279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_word" >&5
3281 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 if test -n "$DLLTOOL"; then
3285 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3289 for ac_dir in $ac_dummy; do
3290 test -z "$ac_dir" && ac_dir=.
3291 if test -f $ac_dir/$ac_word; then
3292 ac_cv_prog_DLLTOOL="dlltool"
3297 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3300 DLLTOOL="$ac_cv_prog_DLLTOOL"
3301 if test -n "$DLLTOOL"; then
3302 echo "$ac_t""$DLLTOOL" 1>&6
3304 echo "$ac_t""no" 1>&6
3312 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}as; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3316 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 if test -n "$AS"; then
3320 ac_cv_prog_AS="$AS" # Let the user override the test.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3324 for ac_dir in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f $ac_dir/$ac_word; then
3327 ac_cv_prog_AS="${ac_tool_prefix}as"
3335 if test -n "$AS"; then
3336 echo "$ac_t""$AS" 1>&6
3338 echo "$ac_t""no" 1>&6
3342 if test -z "$ac_cv_prog_AS"; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "as", so it can be a program name with args.
3345 set dummy as; ac_word=$2
3346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_word" >&5
3348 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 if test -n "$AS"; then
3352 ac_cv_prog_AS="$AS" # Let the user override the test.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3356 for ac_dir in $ac_dummy; do
3357 test -z "$ac_dir" && ac_dir=.
3358 if test -f $ac_dir/$ac_word; then
3364 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3368 if test -n "$AS"; then
3369 echo "$ac_t""$AS" 1>&6
3371 echo "$ac_t""no" 1>&6
3379 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3382 echo "configure:3383: checking for $ac_word" >&5
3383 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 if test -n "$OBJDUMP"; then
3387 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3391 for ac_dir in $ac_dummy; do
3392 test -z "$ac_dir" && ac_dir=.
3393 if test -f $ac_dir/$ac_word; then
3394 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3401 OBJDUMP="$ac_cv_prog_OBJDUMP"
3402 if test -n "$OBJDUMP"; then
3403 echo "$ac_t""$OBJDUMP" 1>&6
3405 echo "$ac_t""no" 1>&6
3409 if test -z "$ac_cv_prog_OBJDUMP"; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "objdump", so it can be a program name with args.
3412 set dummy objdump; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3415 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 if test -n "$OBJDUMP"; then
3419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3423 for ac_dir in $ac_dummy; do
3424 test -z "$ac_dir" && ac_dir=.
3425 if test -f $ac_dir/$ac_word; then
3426 ac_cv_prog_OBJDUMP="objdump"
3431 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3434 OBJDUMP="$ac_cv_prog_OBJDUMP"
3435 if test -n "$OBJDUMP"; then
3436 echo "$ac_t""$OBJDUMP" 1>&6
3438 echo "$ac_t""no" 1>&6
3451 # Save cache, so that ltconfig can load it
3454 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3455 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3456 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3457 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3458 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3459 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3460 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3461 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3463 # Reload cache, that may have been modified by ltconfig
3466 # This can be used to rebuild libtool when needed
3467 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3469 # Always use our own libtool.
3470 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3472 # Redirect the config.log output again, so that the ltconfig log is not
3473 # clobbered by the next message.
3474 exec 5>>./config.log
3477 for ac_prog in mawk gawk nawk awk
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3482 echo "configure:3483: checking for $ac_word" >&5
3483 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 if test -n "$AWK"; then
3487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3491 for ac_dir in $ac_dummy; do
3492 test -z "$ac_dir" && ac_dir=.
3493 if test -f $ac_dir/$ac_word; then
3494 ac_cv_prog_AWK="$ac_prog"
3501 AWK="$ac_cv_prog_AWK"
3502 if test -n "$AWK"; then
3503 echo "$ac_t""$AWK" 1>&6
3505 echo "$ac_t""no" 1>&6
3508 test -n "$AWK" && break
3511 # test for ln hardlink support
3512 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3513 echo "configure:3514: checking whether ln works" >&5
3514 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 rm -f conftest.src conftest.dst
3518 echo "conftest" > conftest.src
3519 if ln conftest.src conftest.dst 2>/dev/null
3521 ol_cv_prog_LN_H="ln"
3523 ol_cv_prog_LN_H="cp"
3525 rm -f conftest.src conftest.dst
3528 LN_H="$ol_cv_prog_LN_H"
3529 if test "$ol_cv_prog_LN_H" = "ln"; then
3530 echo "$ac_t""yes" 1>&6
3532 echo "$ac_t""no" 1>&6
3535 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3536 echo "configure:3537: checking whether ln -s works" >&5
3537 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3541 if ln -s X conftestdata 2>/dev/null
3544 ac_cv_prog_LN_S="ln -s"
3549 LN_S="$ac_cv_prog_LN_S"
3550 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3551 echo "$ac_t""yes" 1>&6
3553 echo "$ac_t""no" 1>&6
3557 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3561 # Extract the first word of "sendmail", so it can be a program name with args.
3562 set dummy sendmail; ac_word=$2
3563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_word" >&5
3565 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3570 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3573 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3577 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3578 for ac_dir in $ac_dummy; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f $ac_dir/$ac_word; then
3581 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3586 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3590 SENDMAIL="$ac_cv_path_SENDMAIL"
3591 if test -n "$SENDMAIL"; then
3592 echo "$ac_t""$SENDMAIL" 1>&6
3594 echo "$ac_t""no" 1>&6
3597 # Extract the first word of "vi", so it can be a program name with args.
3598 set dummy vi; ac_word=$2
3599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3600 echo "configure:3601: checking for $ac_word" >&5
3601 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3609 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3613 ac_dummy="$PATH:/usr/ucb"
3614 for ac_dir in $ac_dummy; do
3615 test -z "$ac_dir" && ac_dir=.
3616 if test -f $ac_dir/$ac_word; then
3617 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3622 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3626 EDITOR="$ac_cv_path_EDITOR"
3627 if test -n "$EDITOR"; then
3628 echo "$ac_t""$EDITOR" 1>&6
3630 echo "$ac_t""no" 1>&6
3633 # Extract the first word of "finger", so it can be a program name with args.
3634 set dummy finger; ac_word=$2
3635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3636 echo "configure:3637: checking for $ac_word" >&5
3637 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3642 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3645 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3649 ac_dummy="$PATH:/usr/ucb"
3650 for ac_dir in $ac_dummy; do
3651 test -z "$ac_dir" && ac_dir=.
3652 if test -f $ac_dir/$ac_word; then
3653 ac_cv_path_FINGER="$ac_dir/$ac_word"
3658 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3662 FINGER="$ac_cv_path_FINGER"
3663 if test -n "$FINGER"; then
3664 echo "$ac_t""$FINGER" 1>&6
3666 echo "$ac_t""no" 1>&6
3671 if test $ol_enable_perl != no ; then
3672 # Extract the first word of "perl", so it can be a program name with args.
3673 set dummy perl; ac_word=$2
3674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_word" >&5
3676 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3681 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3684 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3689 for ac_dir in $ac_dummy; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if test -f $ac_dir/$ac_word; then
3692 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3697 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3701 PERLBIN="$ac_cv_path_PERLBIN"
3702 if test -n "$PERLBIN"; then
3703 echo "$ac_t""$PERLBIN" 1>&6
3705 echo "$ac_t""no" 1>&6
3709 if test "no$PERLBIN" = "no" ; then
3710 if test $ol_enable_perl = yes ; then
3711 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3715 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3716 if test x"$ol_with_perl_module" = "xstatic" ; then
3717 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3719 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3725 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3726 echo "configure:3727: checking how to run the C preprocessor" >&5
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3731 if test -z "$CPP"; then
3732 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 # This must be in double quotes, not single quotes, because CPP may get
3736 # substituted into the Makefile and "${CC-cc}" will confuse make.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp.
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3747 { (eval echo configure:3748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3749 if test -z "$ac_err"; then
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 CPP="${CC-cc} -E -traditional-cpp"
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3764 { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3766 if test -z "$ac_err"; then
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 CPP="${CC-cc} -nologo -E"
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3781 { (eval echo configure:3782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3783 if test -z "$ac_err"; then
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3797 ac_cv_prog_CPP="$CPP"
3799 CPP="$ac_cv_prog_CPP"
3801 ac_cv_prog_CPP="$CPP"
3803 echo "$ac_t""$CPP" 1>&6
3806 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3807 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3809 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3810 echo "configure: warning: programs compiled here do run here..." 1>&2
3811 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3813 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3814 echo "configure: warning: programs compiled here do not run here..." 1>&2
3815 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3818 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3819 echo "configure:3820: checking for AIX" >&5
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 egrep "yes" >/dev/null 2>&1; then
3831 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3832 #define _ALL_SOURCE 1
3837 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3843 echo "configure:3844: checking for POSIXized ISC" >&5
3844 if test -d /etc/conf/kconfig.d &&
3845 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3847 echo "$ac_t""yes" 1>&6
3848 ISC=yes # If later tests want to check for ISC.
3849 cat >> confdefs.h <<\EOF
3850 #define _POSIX_SOURCE 1
3853 if test "$GCC" = yes; then
3859 echo "$ac_t""no" 1>&6
3863 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3864 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3865 echo "configure:3866: checking for minix/config.h" >&5
3866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 #include <minix/config.h>
3874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3879 eval "ac_cv_header_$ac_safe=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_header_$ac_safe=no"
3889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3893 echo "$ac_t""no" 1>&6
3897 if test "$MINIX" = yes; then
3898 cat >> confdefs.h <<\EOF
3899 #define _POSIX_SOURCE 1
3902 cat >> confdefs.h <<\EOF
3903 #define _POSIX_1_SOURCE 2
3906 cat >> confdefs.h <<\EOF
3913 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3914 echo "configure:3915: checking for Cygwin environment" >&5
3915 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3925 #define __CYGWIN__ __CYGWIN32__
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3942 echo "$ac_t""$ac_cv_cygwin" 1>&6
3944 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3945 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3946 echo "configure:3947: checking for mingw32 environment" >&5
3947 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3958 if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3970 echo "$ac_t""$ac_cv_mingw32" 1>&6
3972 test "$ac_cv_mingw32" = yes && MINGW32=yes
3973 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3974 echo "configure:3975: checking for EMX OS/2 environment" >&5
3975 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3998 echo "$ac_t""$ac_cv_emxos2" 1>&6
4000 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4004 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4005 echo "configure:4006: checking for executable suffix" >&5
4006 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4013 echo 'int main () { return 0; }' > conftest.$ac_ext
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4016 for file in conftest.*; do
4018 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4019 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4023 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4026 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4031 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4032 echo "$ac_t""${ac_cv_exeext}" 1>&6
4035 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4036 echo "configure:4037: checking for object suffix" >&5
4037 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4041 echo 'int i = 1;' > conftest.$ac_ext
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4043 for ac_file in conftest.*; do
4046 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4050 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4055 echo "$ac_t""$ac_cv_objext" 1>&6
4056 OBJEXT=$ac_cv_objext
4057 ac_objext=$ac_cv_objext
4060 cat >> confdefs.h <<EOF
4061 #define EXEEXT "${EXEEXT}"
4065 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4066 echo "configure:4067: checking for be_app in -lbe" >&5
4067 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 ac_save_LIBS="$LIBS"
4072 LIBS="-lbe -lroot -lnet $LIBS"
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* Override any gcc2 internal prototype to avoid an error. */
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087 eval "ac_cv_lib_$ac_lib_var=yes"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 eval "ac_cv_lib_$ac_lib_var=no"
4095 LIBS="$ac_save_LIBS"
4098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4099 echo "$ac_t""yes" 1>&6
4100 LIBS="$LIBS -lbe -lroot -lnet"
4102 echo "$ac_t""no" 1>&6
4110 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4111 echo "configure:4112: checking for ${CC-cc} option to accept ANSI C" >&5
4112 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 am_cv_prog_cc_stdc=no
4117 # Don't try gcc -ansi; that turns off useful extensions and
4118 # breaks some systems' header files.
4119 # AIX -qlanglvl=ansi
4120 # Ultrix and OSF/1 -std1
4121 # HP-UX 10.20 and later -Ae
4122 # HP-UX older versions -Aa -D_HPUX_SOURCE
4123 # SVR4 -Xc -D__EXTENSIONS__
4124 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126 CC="$ac_save_CC $ac_arg"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4132 #include <sys/types.h>
4133 #include <sys/stat.h>
4134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135 struct buf { int x; };
4136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137 static char *e (p, i)
4143 static char *f (char * (*g) (char **, int), char **p, ...)
4148 s = g (p, va_arg (v,int));
4152 int test (int i, double x);
4153 struct s1 {int (*f) (int a);};
4154 struct s2 {int (*f) (double a);};
4155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4165 if { (eval echo configure:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 am_cv_prog_cc_stdc="$ac_arg"; break
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4178 if test -z "$am_cv_prog_cc_stdc"; then
4179 echo "$ac_t""none needed" 1>&6
4181 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4183 case "x$am_cv_prog_cc_stdc" in
4185 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4188 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4189 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4192 # test for make depend flag
4195 if test -z "${MKDEP}"; then
4197 if test -z "${MKDEP_FLAGS}"; then
4198 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4199 echo "configure:4200: checking for ${OL_MKDEP} depend flag" >&5
4200 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4205 for flag in "-M" "-xM"; do
4206 cat > conftest.c <<EOF
4209 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4210 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4212 if test ! -f conftest."${ac_object}" ; then
4214 OL_MKDEP_FLAGS="$flag"
4223 echo "$ac_t""$ol_cv_mkdep" 1>&6
4226 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4231 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4236 if test "${ol_cv_mkdep}" = no ; then
4237 # this will soon become an error
4238 echo "configure: warning: do not know how to generate dependencies" 1>&2
4241 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4242 echo "configure:4243: checking for afopen in -ls" >&5
4243 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 ac_save_LIBS="$LIBS"
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* Override any gcc2 internal prototype to avoid an error. */
4253 /* We use char because int might match the return type of a gcc2
4254 builtin and then its argument prototype would still apply. */
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 eval "ac_cv_lib_$ac_lib_var=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_lib_$ac_lib_var=no"
4271 LIBS="$ac_save_LIBS"
4274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4278 cat >> confdefs.h <<\EOF
4279 #define HAVE_AIX_SECURITY 1
4284 echo "$ac_t""no" 1>&6
4289 if test $ol_enable_modules != no ; then
4290 for ac_hdr in ltdl.h
4292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_hdr" >&5
4295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_hdr 1
4326 echo "$ac_t""no" 1>&6
4331 if test $ac_cv_header_ltdl_h = no ; then
4332 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4335 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4336 echo "configure:4337: checking for lt_dlinit in -lltdl" >&5
4337 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4338 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 ac_save_LIBS="$LIBS"
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4357 eval "ac_cv_lib_$ac_lib_var=yes"
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4362 eval "ac_cv_lib_$ac_lib_var=no"
4365 LIBS="$ac_save_LIBS"
4368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_LIBLTDL 1
4378 echo "$ac_t""no" 1>&6
4382 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4383 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4387 ol_with_bdb2_module=static
4388 ol_with_dnssrv_module=static
4389 ol_with_ldap_module=static
4390 ol_with_ldbm_module=static
4391 ol_with_passwd_module=static
4392 ol_with_perl_module=static
4393 ol_with_shell_module=static
4394 ol_with_tcl_module=static
4395 ol_with_sql_module=static
4399 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4400 echo "configure:4401: checking for EBCDIC" >&5
4401 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4410 #include <__ASCII__/generate_error.h>
4414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4417 if test -z "$ac_err"; then
4419 ol_cv_cpp_ebcdic=yes
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4430 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4431 if test $ol_cv_cpp_ebcdic = yes ; then
4432 cat >> confdefs.h <<\EOF
4433 #define HAVE_EBCDIC 1
4438 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4439 echo "configure:4440: checking for ANSI C header files" >&5
4440 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4452 { (eval echo configure:4453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4454 if test -z "$ac_err"; then
4456 ol_cv_header_stdc=yes
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 ol_cv_header_stdc=no
4466 if test $ol_cv_header_stdc = yes; then
4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 egrep "memchr" >/dev/null 2>&1; then
4478 ol_cv_header_stdc=no
4484 if test $ol_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 egrep "free" >/dev/null 2>&1; then
4496 ol_cv_header_stdc=no
4502 if test $ol_cv_header_stdc = yes; then
4503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4504 if test "$cross_compiling" = yes; then
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4516 || ('j' <= (c) && (c) <= 'r') \
4517 || ('s' <= (c) && (c) <= 'z'))
4518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int main () { int i; for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 ol_cv_header_stdc=no
4541 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4542 if test $ol_cv_header_stdc = yes; then
4543 cat >> confdefs.h <<\EOF
4544 #define STDC_HEADERS 1
4548 ac_cv_header_stdc=disable
4551 if test $ol_cv_header_stdc != yes; then
4552 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4559 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_hdr that defines DIR" >&5
4561 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <sys/types.h>
4573 if { (eval echo configure:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 eval "ac_cv_header_dirent_$ac_safe=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 eval "ac_cv_header_dirent_$ac_safe=no"
4584 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4587 cat >> confdefs.h <<EOF
4588 #define $ac_tr_hdr 1
4590 ac_header_dirent=$ac_hdr; break
4592 echo "$ac_t""no" 1>&6
4595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4596 if test $ac_header_dirent = dirent.h; then
4597 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4598 echo "configure:4599: checking for opendir in -ldir" >&5
4599 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4600 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 ac_save_LIBS="$LIBS"
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 eval "ac_cv_lib_$ac_lib_var=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 eval "ac_cv_lib_$ac_lib_var=no"
4627 LIBS="$ac_save_LIBS"
4630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4631 echo "$ac_t""yes" 1>&6
4634 echo "$ac_t""no" 1>&6
4638 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4639 echo "configure:4640: checking for opendir in -lx" >&5
4640 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 ac_save_LIBS="$LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4675 echo "$ac_t""no" 1>&6
4680 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4681 echo "configure:4682: checking for sys/wait.h that is POSIX.1 compatible" >&5
4682 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 #include <sys/types.h>
4689 #include <sys/wait.h>
4691 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4694 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4699 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4702 if { (eval echo configure:4703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4704 ac_cv_header_sys_wait_h=yes
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 ac_cv_header_sys_wait_h=no
4714 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4715 if test $ac_cv_header_sys_wait_h = yes; then
4716 cat >> confdefs.h <<\EOF
4717 #define HAVE_SYS_WAIT_H 1
4722 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4723 echo "configure:4724: checking POSIX termios" >&5
4724 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <sys/types.h>
4732 #include <termios.h>
4734 /* SunOS 4.0.3 has termios.h but not the library calls. */
4738 if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4740 am_cv_sys_posix_termios=yes
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 am_cv_sys_posix_termios=no
4750 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4753 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4754 echo "configure:4755: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4755 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4760 gwinsz_in_termios_h=no
4761 if test $am_cv_sys_posix_termios = yes; then
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <sys/types.h>
4766 # include <termios.h>
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 egrep "yes" >/dev/null 2>&1; then
4775 gwinsz_in_termios_h=yes
4781 if test $gwinsz_in_termios_h = no; then
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 #include <sys/types.h>
4786 # include <sys/ioctl.h>
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 egrep "yes" >/dev/null 2>&1; then
4795 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4803 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4804 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4805 cat >> confdefs.h <<\EOF
4806 #define GWINSZ_IN_SYS_IOCTL 1
4811 if test $am_cv_sys_posix_termios = yes ; then
4812 cat >> confdefs.h <<\EOF
4813 #define HAVE_POSIX_TERMIOS 1
4864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4866 echo "configure:4867: checking for $ac_hdr" >&5
4867 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4876 { (eval echo configure:4877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4878 if test -z "$ac_err"; then
4880 eval "ac_cv_header_$ac_safe=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4886 eval "ac_cv_header_$ac_safe=no"
4890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4893 cat >> confdefs.h <<EOF
4894 #define $ac_tr_hdr 1
4898 echo "$ac_t""no" 1>&6
4905 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4906 echo "configure:4907: checking for sigset in -lV3" >&5
4907 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4908 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 eval "ac_cv_lib_$ac_lib_var=yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 eval "ac_cv_lib_$ac_lib_var=no"
4935 LIBS="$ac_save_LIBS"
4938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_lib 1
4949 echo "$ac_t""no" 1>&6
4953 if test $ac_cv_header_winsock_h = yes; then
4954 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4955 echo "configure:4956: checking for winsock" >&5
4956 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 #include <winsock.h>
4966 select(0,NULL,NULL,NULL,NULL);
4968 gethostname(NULL,0);
4972 if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4984 echo "$ac_t""$ol_cv_winsock" 1>&6
4986 if test $ol_cv_winsock = yes ; then
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_WINSOCK 1
4991 ac_cv_func_socket=yes
4992 ac_cv_func_select=yes
4993 ac_cv_func_closesocket=yes
4994 ac_cv_func_gethostname=yes
4999 echo $ac_n "checking for socket""... $ac_c" 1>&6
5000 echo "configure:5001: checking for socket" >&5
5001 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 /* System header to define __stub macros and hopefully few prototypes,
5008 which can conflict with char socket(); below. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5018 /* The GNU C library defines this for functions which it implements
5019 to always fail with ENOSYS. Some functions are actually named
5020 something starting with __ and the normal name is an alias. */
5021 #if defined (__stub_socket) || defined (__stub___socket)
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 eval "ac_cv_func_socket=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 eval "ac_cv_func_socket=no"
5041 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5045 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5048 echo "configure:5049: checking for main in -lsocket" >&5
5049 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 ac_save_LIBS="$LIBS"
5054 LIBS="-lsocket $LIBS"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_lib_$ac_lib_var=no"
5073 LIBS="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_lib 1
5084 LIBS="-lsocket $LIBS"
5087 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5091 echo "configure:5092: checking for main in -lnet" >&5
5092 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_lib_$ac_lib_var=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_lib_$ac_lib_var=no"
5116 LIBS="$ac_save_LIBS"
5119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_lib 1
5130 echo "$ac_t""no" 1>&6
5133 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5134 echo "configure:5135: checking for main in -lnsl_s" >&5
5135 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 ac_save_LIBS="$LIBS"
5140 LIBS="-lnsl_s $LIBS"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5149 if { (eval echo configure:5150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5151 eval "ac_cv_lib_$ac_lib_var=yes"
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 eval "ac_cv_lib_$ac_lib_var=no"
5159 LIBS="$ac_save_LIBS"
5162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5163 echo "$ac_t""yes" 1>&6
5164 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5166 cat >> confdefs.h <<EOF
5167 #define $ac_tr_lib 1
5170 LIBS="-lnsl_s $LIBS"
5173 echo "$ac_t""no" 1>&6
5176 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5177 echo "configure:5178: checking for main in -lnsl" >&5
5178 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 ac_save_LIBS="$LIBS"
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 eval "ac_cv_lib_$ac_lib_var=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_lib_$ac_lib_var=no"
5202 LIBS="$ac_save_LIBS"
5205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5209 cat >> confdefs.h <<EOF
5210 #define $ac_tr_lib 1
5216 echo "$ac_t""no" 1>&6
5219 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5220 echo "configure:5221: checking for socket in -linet" >&5
5221 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 ac_save_LIBS="$LIBS"
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 eval "ac_cv_lib_$ac_lib_var=yes"
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 eval "ac_cv_lib_$ac_lib_var=no"
5249 LIBS="$ac_save_LIBS"
5252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5256 cat >> confdefs.h <<EOF
5257 #define $ac_tr_lib 1
5263 echo "$ac_t""no" 1>&6
5266 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5267 echo "configure:5268: checking for main in -lgen" >&5
5268 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5272 ac_save_LIBS="$LIBS"
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5284 eval "ac_cv_lib_$ac_lib_var=yes"
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 eval "ac_cv_lib_$ac_lib_var=no"
5292 LIBS="$ac_save_LIBS"
5295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5299 cat >> confdefs.h <<EOF
5300 #define $ac_tr_lib 1
5306 echo "$ac_t""no" 1>&6
5313 echo $ac_n "checking for select""... $ac_c" 1>&6
5314 echo "configure:5315: checking for select" >&5
5315 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char select(); below. */
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_select) || defined (__stub___select)
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5345 eval "ac_cv_func_select=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 eval "ac_cv_func_select=no"
5355 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5359 echo "$ac_t""no" 1>&6
5360 { echo "configure: error: select() required." 1>&2; exit 1; }
5364 if test "${ac_cv_header_winsock_h}" != yes; then
5365 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5366 echo "configure:5367: checking types of arguments for select()" >&5
5367 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5377 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5378 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 #ifdef HAVE_SYS_TYPES_H
5383 #include <sys/types.h>
5385 #ifdef HAVE_SYS_TIME_H
5386 #include <sys/time.h>
5388 #ifdef HAVE_SYS_SELECT_H
5389 #include <sys/select.h>
5391 #ifdef HAVE_SYS_SOCKET_H
5392 #include <sys/socket.h>
5394 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
5399 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5401 ac_not_found=no ; break 3
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5418 if test "$ac_not_found" = yes; then
5419 ac_cv_func_select_arg1=int
5420 ac_cv_func_select_arg234='int *'
5421 ac_cv_func_select_arg5='struct timeval *'
5423 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5424 cat >> confdefs.h <<EOF
5425 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5428 cat >> confdefs.h <<EOF
5429 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5432 cat >> confdefs.h <<EOF
5433 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5440 for ac_hdr in regex.h
5442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5444 echo "configure:5445: checking for $ac_hdr" >&5
5445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5456 if test -z "$ac_err"; then
5458 eval "ac_cv_header_$ac_safe=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_header_$ac_safe=no"
5468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_hdr 1
5476 echo "$ac_t""no" 1>&6
5480 if test "$ac_cv_header_regex_h" != yes ; then
5481 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5483 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5484 echo "configure:5485: checking for regfree" >&5
5485 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* System header to define __stub macros and hopefully few prototypes,
5492 which can conflict with char regfree(); below. */
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_regfree) || defined (__stub___regfree)
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 eval "ac_cv_func_regfree=yes"
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 eval "ac_cv_func_regfree=no"
5525 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5529 echo "$ac_t""no" 1>&6
5530 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5535 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5536 echo "configure:5537: checking for compatible POSIX regex" >&5
5537 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5541 if test "$cross_compiling" = yes; then
5542 ol_cv_c_posix_regex=cross
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5548 #include <sys/types.h>
5550 static char *pattern, *string;
5558 if(regcomp(&re, pattern, 0)) {
5562 string = "ALL MATCH";
5564 rc = regexec(&re, string, 0, (void*)0, 0);
5571 if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5573 ol_cv_c_posix_regex=yes
5575 echo "configure: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5578 ol_cv_c_posix_regex=no
5585 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5587 if test "$ol_cv_c_posix_regex" = no ; then
5588 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5591 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5592 echo "configure:5593: checking for res_search" >&5
5593 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* System header to define __stub macros and hopefully few prototypes,
5600 which can conflict with char res_search(); below. */
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_res_search) || defined (__stub___res_search)
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623 eval "ac_cv_func_res_search=yes"
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 eval "ac_cv_func_res_search=no"
5633 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5637 echo "$ac_t""no" 1>&6
5640 if test $ac_cv_func_res_search = no ; then
5641 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5642 echo "configure:5643: checking for res_search in -lbind" >&5
5643 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 ac_save_LIBS="$LIBS"
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 eval "ac_cv_lib_$ac_lib_var=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_lib_$ac_lib_var=no"
5671 LIBS="$ac_save_LIBS"
5674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_lib 1
5685 echo "$ac_t""no" 1>&6
5688 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5691 if test $ac_cv_func_res_search = no ; then
5692 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5693 echo "configure:5694: checking for __res_search in -lbind" >&5
5694 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 ac_save_LIBS="$LIBS"
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* Override any gcc2 internal prototype to avoid an error. */
5704 /* We use char because int might match the return type of a gcc2
5705 builtin and then its argument prototype would still apply. */
5706 char __res_search();
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5714 eval "ac_cv_lib_$ac_lib_var=yes"
5716 echo "configure: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5719 eval "ac_cv_lib_$ac_lib_var=no"
5722 LIBS="$ac_save_LIBS"
5725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5726 echo "$ac_t""yes" 1>&6
5727 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5729 cat >> confdefs.h <<EOF
5730 #define $ac_tr_lib 1
5736 echo "$ac_t""no" 1>&6
5739 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5742 if test $ac_cv_func_res_search = no ; then
5743 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5744 echo "configure:5745: checking for res_search in -lresolv" >&5
5745 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 ac_save_LIBS="$LIBS"
5750 LIBS="-lresolv $LIBS"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5765 eval "ac_cv_lib_$ac_lib_var=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 eval "ac_cv_lib_$ac_lib_var=no"
5773 LIBS="$ac_save_LIBS"
5776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5777 echo "$ac_t""yes" 1>&6
5778 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5780 cat >> confdefs.h <<EOF
5781 #define $ac_tr_lib 1
5784 LIBS="-lresolv $LIBS"
5787 echo "$ac_t""no" 1>&6
5790 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5793 if test "$ac_cv_func_res_search" = yes ; then
5794 cat >> confdefs.h <<\EOF
5795 #define HAVE_RES_SEARCH 1
5798 elif test $ol_enable_dns = yes ; then
5799 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5800 elif test $ol_enable_dns != no ; then
5801 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5806 if test $ol_enable_ldapd != no ; then
5807 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5809 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5810 echo "configure:5811: checking for main in -lxtpp" >&5
5811 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 ac_save_LIBS="$LIBS"
5816 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_lib_$ac_lib_var=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_lib_$ac_lib_var=no"
5835 LIBS="$ac_save_LIBS"
5838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5842 cat >> confdefs.h <<\EOF
5846 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5849 echo "$ac_t""no" 1>&6
5853 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5854 echo "configure:5855: checking for main in -ldsap" >&5
5855 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 ac_save_LIBS="$LIBS"
5860 LIBS="-ldsap -lisode $LIBS"
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5871 eval "ac_cv_lib_$ac_lib_var=yes"
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 eval "ac_cv_lib_$ac_lib_var=no"
5879 LIBS="$ac_save_LIBS"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5883 echo "$ac_t""yes" 1>&6
5886 cat >> confdefs.h <<\EOF
5890 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5893 echo "$ac_t""no" 1>&6
5897 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5898 echo "configure:5899: checking for main in -lisode" >&5
5899 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 ac_save_LIBS="$LIBS"
5904 LIBS="-lisode $LIBS"
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 eval "ac_cv_lib_$ac_lib_var=yes"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 eval "ac_cv_lib_$ac_lib_var=no"
5923 LIBS="$ac_save_LIBS"
5926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5930 cat >> confdefs.h <<\EOF
5931 #define HAVE_ISODE 1
5934 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5937 echo "$ac_t""no" 1>&6
5943 if test $ol_link_isode != no; then
5944 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5945 echo "configure:5946: checking for main in -lpp" >&5
5946 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5947 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 ac_save_LIBS="$LIBS"
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 eval "ac_cv_lib_$ac_lib_var=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_lib_$ac_lib_var=no"
5970 LIBS="$ac_save_LIBS"
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5976 cat >> confdefs.h <<\EOF
5980 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5983 echo "$ac_t""no" 1>&6
5988 # Extract the first word of "pepsy", so it can be a program name with args.
5989 set dummy pepsy; ac_word=$2
5990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5991 echo "configure:5992: checking for $ac_word" >&5
5992 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5997 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
6000 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
6003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6005 for ac_dir in $ac_dummy; do
6006 test -z "$ac_dir" && ac_dir=.
6007 if test -f $ac_dir/$ac_word; then
6008 ac_cv_path_PEPSY="$ac_dir/$ac_word"
6016 PEPSY="$ac_cv_path_PEPSY"
6017 if test -n "$PEPSY"; then
6018 echo "$ac_t""$PEPSY" 1>&6
6020 echo "$ac_t""no" 1>&6
6025 if test $ol_enable_quipu != no ; then
6026 for ac_hdr in quipu/commonarg.h
6028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_hdr" >&5
6031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6040 { (eval echo configure:6041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6042 if test -z "$ac_err"; then
6044 eval "ac_cv_header_$ac_safe=yes"
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6050 eval "ac_cv_header_$ac_safe=no"
6054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6057 cat >> confdefs.h <<EOF
6058 #define $ac_tr_hdr 1
6062 echo "$ac_t""no" 1>&6
6067 if test $ac_cv_header_quipu_commonarg_h = yes ; then
6069 elif test $ol_enable_quipu = auto ; then
6070 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
6072 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
6081 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
6082 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
6084 for ac_hdr in krb5.h
6086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6088 echo "configure:6089: checking for $ac_hdr" >&5
6089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6098 { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6100 if test -z "$ac_err"; then
6102 eval "ac_cv_header_$ac_safe=yes"
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6108 eval "ac_cv_header_$ac_safe=no"
6112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6115 cat >> confdefs.h <<EOF
6116 #define $ac_tr_hdr 1
6120 echo "$ac_t""no" 1>&6
6125 if test $ac_cv_header_krb5_h = yes ; then
6126 for ac_hdr in heim_err.h
6128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_hdr" >&5
6131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6140 { (eval echo configure:6141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6142 if test -z "$ac_err"; then
6144 eval "ac_cv_header_$ac_safe=yes"
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 eval "ac_cv_header_$ac_safe=no"
6154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6157 cat >> confdefs.h <<EOF
6158 #define $ac_tr_hdr 1
6162 echo "$ac_t""no" 1>&6
6166 if test $ac_cv_header_heim_err_h = yes ; then
6172 if test $krb5_impl = mit; then
6173 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6174 echo "configure:6175: checking for main in -lkrb5" >&5
6175 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 ac_save_LIBS="$LIBS"
6180 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 eval "ac_cv_lib_$ac_lib_var=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_lib_$ac_lib_var=no"
6199 LIBS="$ac_save_LIBS"
6202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6205 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6207 echo "$ac_t""no" 1>&6
6212 elif test $krb5_impl = heimdal; then
6213 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6214 echo "configure:6215: checking for main in -lkrb5" >&5
6215 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 ac_save_LIBS="$LIBS"
6220 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 eval "ac_cv_lib_$ac_lib_var=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_lib_$ac_lib_var=no"
6239 LIBS="$ac_save_LIBS"
6242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6243 echo "$ac_t""yes" 1>&6
6245 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6247 echo "$ac_t""no" 1>&6
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_HEIMDAL_KERBEROS 1
6258 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6261 if test $have_krb5 = yes ; then
6264 cat >> confdefs.h <<\EOF
6269 if test $ol_enable_kpasswd != no ; then
6270 ol_link_kpasswd=yes;
6273 if test $ol_with_kerberos = k5only ; then
6274 ol_with_kerberos=found
6277 elif test $ol_with_kerberos != auto ; then
6278 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6284 if test $ol_link_krb5 = yes -a \
6285 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6287 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_hdr" >&5
6292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6301 { (eval echo configure:6302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6303 if test -z "$ac_err"; then
6305 eval "ac_cv_header_$ac_safe=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 eval "ac_cv_header_$ac_safe=no"
6315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_hdr 1
6323 echo "$ac_t""no" 1>&6
6328 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6329 if test $krb5_impl = mit; then
6330 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6331 echo "configure:6332: checking for main in -lkrb4" >&5
6332 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6336 ac_save_LIBS="$LIBS"
6337 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6338 cat > conftest.$ac_ext <<EOF
6339 #line 6340 "configure"
6340 #include "confdefs.h"
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 eval "ac_cv_lib_$ac_lib_var=yes"
6350 echo "configure: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval "ac_cv_lib_$ac_lib_var=no"
6356 LIBS="$ac_save_LIBS"
6359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6360 echo "$ac_t""yes" 1>&6
6362 KRB4_LIBS="-lkrb4 -ldes425"
6364 echo "$ac_t""no" 1>&6
6369 elif test $krb5_impl = heimdal; then
6370 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6371 echo "configure:6372: checking for main in -lkrb4" >&5
6372 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6374 echo $ac_n "(cached) $ac_c" 1>&6
6376 ac_save_LIBS="$LIBS"
6377 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_lib_$ac_lib_var=no"
6396 LIBS="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6404 echo "$ac_t""no" 1>&6
6411 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6414 if test $have_k425 = yes ; then
6415 ol_with_kerberos=found
6418 cat >> confdefs.h <<\EOF
6419 #define HAVE_KRB425 1
6422 cat >> confdefs.h <<\EOF
6427 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6428 echo "configure:6429: checking for des_debug in Kerberos libraries" >&5
6429 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6434 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6439 #include <kerberosIV/krb.h>
6440 #include <kerberosIV/des.h>
6441 extern int des_debug;
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 ol_cv_var_des_debug=yes
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 ol_cv_var_des_debug=no
6463 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6465 if test $ol_cv_var_des_debug = yes ; then
6466 cat >> confdefs.h <<\EOF
6467 #define HAVE_DES_DEBUG 1
6477 if test $ol_link_krb5 = yes ; then
6478 ol_with_kerberos=found
6481 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6482 -o $ol_with_kerberos = kth ; then
6484 for ac_hdr in krb.h des.h krb-archaeology.h
6486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6488 echo "configure:6489: checking for $ac_hdr" >&5
6489 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6490 echo $ac_n "(cached) $ac_c" 1>&6
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6498 { (eval echo configure:6499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6500 if test -z "$ac_err"; then
6502 eval "ac_cv_header_$ac_safe=yes"
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6508 eval "ac_cv_header_$ac_safe=no"
6512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6515 cat >> confdefs.h <<EOF
6516 #define $ac_tr_hdr 1
6520 echo "$ac_t""no" 1>&6
6525 if test $ac_cv_header_krb_h = yes ; then
6526 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6527 echo "configure:6528: checking for main in -lkrb" >&5
6528 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6
6532 ac_save_LIBS="$LIBS"
6533 LIBS="-lkrb -ldes $LIBS"
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 eval "ac_cv_lib_$ac_lib_var=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_lib_$ac_lib_var=no"
6552 LIBS="$ac_save_LIBS"
6555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6559 echo "$ac_t""no" 1>&6
6564 if test $have_k4 = yes ; then
6565 ol_with_kerberos=found
6568 cat >> confdefs.h <<\EOF
6573 KRB4_LIBS="-lkrb -ldes"
6575 if test $ac_cv_header_krb_archaeology_h = yes ; then
6576 cat >> confdefs.h <<\EOF
6577 #define HAVE_KTH_KERBEROS 1
6585 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6586 ol_link_kpasswd=yes;
6589 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_KERBEROS 1
6595 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6596 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6600 if test $ol_with_tls != no ; then
6602 for ac_hdr in openssl/ssl.h ssl.h
6604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6606 echo "configure:6607: checking for $ac_hdr" >&5
6607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6616 { (eval echo configure:6617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6618 if test -z "$ac_err"; then
6620 eval "ac_cv_header_$ac_safe=yes"
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 eval "ac_cv_header_$ac_safe=no"
6630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6631 echo "$ac_t""yes" 1>&6
6632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6633 cat >> confdefs.h <<EOF
6634 #define $ac_tr_hdr 1
6638 echo "$ac_t""no" 1>&6
6643 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6644 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6645 echo "configure:6646: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6646 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6
6650 ac_save_LIBS="$LIBS"
6651 LIBS="-lssl -lcrypto $LIBS"
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658 char SSLeay_add_ssl_algorithms();
6661 SSLeay_add_ssl_algorithms()
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6666 eval "ac_cv_lib_$ac_lib_var=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6671 eval "ac_cv_lib_$ac_lib_var=no"
6674 LIBS="$ac_save_LIBS"
6677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6682 echo "$ac_t""no" 1>&6
6687 if test $have_ssleay = no ; then
6688 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6689 echo "configure:6690: checking for SSL_library_init in -lssl" >&5
6690 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 ac_save_LIBS="$LIBS"
6695 LIBS="-lssl -lcrypto $LIBS"
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6702 char SSL_library_init();
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_lib_$ac_lib_var=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_lib_$ac_lib_var=no"
6718 LIBS="$ac_save_LIBS"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6726 echo "$ac_t""no" 1>&6
6732 if test $have_ssleay = no ; then
6733 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6734 echo "configure:6735: checking for ssl3_accept in -lssl" >&5
6735 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6736 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6739 ac_save_LIBS="$LIBS"
6740 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6755 eval "ac_cv_lib_$ac_lib_var=yes"
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6760 eval "ac_cv_lib_$ac_lib_var=no"
6763 LIBS="$ac_save_LIBS"
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6771 echo "$ac_t""no" 1>&6
6777 if test $have_ssleay = yes ; then
6781 cat >> confdefs.h <<\EOF
6782 #define HAVE_SSLEAY 1
6786 if test $need_rsaref = yes; then
6787 cat >> confdefs.h <<\EOF
6788 #define HAVE_RSAREF 1
6792 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6794 TLS_LIBS="-lssl -lcrypto"
6800 if test $ol_link_tls = yes ; then
6801 cat >> confdefs.h <<\EOF
6809 gethostbyname_r gethostbyaddr_r \
6812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6813 echo "configure:6814: checking for $ac_func" >&5
6814 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* System header to define __stub macros and hopefully few prototypes,
6821 which can conflict with char $ac_func(); below. */
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6831 /* The GNU C library defines this for functions which it implements
6832 to always fail with ENOSYS. Some functions are actually named
6833 something starting with __ and the normal name is an alias. */
6834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 eval "ac_cv_func_$ac_func=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 eval "ac_cv_func_$ac_func=no"
6854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6857 cat >> confdefs.h <<EOF
6858 #define $ac_tr_func 1
6862 echo "$ac_t""no" 1>&6
6867 if test "$ac_cv_func_ctime_r" = no ; then
6868 ol_cv_func_ctime_r_nargs=0
6870 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6871 echo "configure:6872: checking number of arguments of ctime_r" >&5
6872 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6873 echo $ac_n "(cached) $ac_c" 1>&6
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6880 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6883 if { (eval echo configure:6884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6885 ol_cv_func_ctime_r_nargs3=yes
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 ol_cv_func_ctime_r_nargs3=no
6894 cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6899 time_t ti; char *buffer; ctime_r(&ti,buffer);
6902 if { (eval echo configure:6903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6904 ol_cv_func_ctime_r_nargs2=yes
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 ol_cv_func_ctime_r_nargs2=no
6913 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6914 $ol_cv_func_ctime_r_nargs2 = no ; then
6916 ol_cv_func_ctime_r_nargs=3
6918 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6919 $ol_cv_func_ctime_r_nargs2 = yes ; then
6921 ol_cv_func_ctime_r_nargs=2
6924 ol_cv_func_ctime_r_nargs=0
6929 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6931 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6932 cat >> confdefs.h <<EOF
6933 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6940 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6941 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6942 echo "configure:6943: checking number of arguments of gethostbyname_r" >&5
6943 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6949 #include <sys/types.h>
6950 #include <sys/socket.h>
6951 #include <netinet/in.h>
6953 #define BUFSIZE (sizeof(struct hostent)+10)
6955 struct hostent hent; char buffer[BUFSIZE];
6956 int bufsize=BUFSIZE;int h_errno;
6957 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6958 buffer, bufsize, &h_errno);
6961 if { (eval echo configure:6962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6963 ol_cv_func_gethostbyname_r_nargs5=yes
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6968 ol_cv_func_gethostbyname_r_nargs5=no
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6975 #include <sys/types.h>
6976 #include <sys/socket.h>
6977 #include <netinet/in.h>
6979 #define BUFSIZE (sizeof(struct hostent)+10)
6981 struct hostent hent;struct hostent *rhent;
6982 char buffer[BUFSIZE];
6983 int bufsize=BUFSIZE;int h_errno;
6984 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6988 if { (eval echo configure:6989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6990 ol_cv_func_gethostbyname_r_nargs6=yes
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 ol_cv_func_gethostbyname_r_nargs6=no
6999 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7000 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7002 ol_cv_func_gethostbyname_r_nargs=5
7004 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7005 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7007 ol_cv_func_gethostbyname_r_nargs=6
7010 ol_cv_func_gethostbyname_r_nargs=0
7015 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7016 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7017 cat >> confdefs.h <<EOF
7018 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7024 ol_cv_func_gethostbyname_r_nargs=0
7027 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7028 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7029 echo "configure:7030: checking number of arguments of gethostbyaddr_r" >&5
7030 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 #include <sys/types.h>
7037 #include <sys/socket.h>
7038 #include <netinet/in.h>
7040 #define BUFSIZE (sizeof(struct hostent)+10)
7042 struct hostent hent; char buffer[BUFSIZE];
7044 size_t alen=sizeof(struct in_addr);
7045 int bufsize=BUFSIZE;int h_errno;
7046 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7047 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7050 if { (eval echo configure:7051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7052 ol_cv_func_gethostbyaddr_r_nargs7=yes
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 ol_cv_func_gethostbyaddr_r_nargs7=no
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 #include <sys/types.h>
7065 #include <sys/socket.h>
7066 #include <netinet/in.h>
7068 #define BUFSIZE (sizeof(struct hostent)+10)
7070 struct hostent hent;
7071 struct hostent *rhent; char buffer[BUFSIZE];
7073 size_t alen=sizeof(struct in_addr);
7074 int bufsize=BUFSIZE;int h_errno;
7075 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7076 alen, AF_INET, &hent, buffer, bufsize,
7080 if { (eval echo configure:7081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7082 ol_cv_func_gethostbyaddr_r_nargs8=yes
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 ol_cv_func_gethostbyaddr_r_nargs8=no
7091 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7092 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7094 ol_cv_func_gethostbyaddr_r_nargs=7
7096 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7097 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7099 ol_cv_func_gethostbyaddr_r_nargs=8
7102 ol_cv_func_gethostbyaddr_r_nargs=0
7107 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7108 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7109 cat >> confdefs.h <<EOF
7110 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7116 ol_cv_func_gethostbyaddr_r_nargs=0
7119 if test "$ac_cv_func_ctime_r" = yes \
7120 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7121 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7122 -a "$ac_cv_func_gethostbyname_r" = yes \
7123 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7124 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7125 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7126 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7127 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7130 cat >> confdefs.h <<\EOF
7131 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7138 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7139 -o $ol_with_threads = nt ; then
7142 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7143 echo "configure:7144: checking for NT Threads" >&5
7144 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7148 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7149 echo "configure:7150: checking for _beginthread" >&5
7150 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 /* System header to define __stub macros and hopefully few prototypes,
7157 which can conflict with char _beginthread(); below. */
7159 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7162 char _beginthread();
7167 /* The GNU C library defines this for functions which it implements
7168 to always fail with ENOSYS. Some functions are actually named
7169 something starting with __ and the normal name is an alias. */
7170 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7178 if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 eval "ac_cv_func__beginthread=yes"
7182 echo "configure: failed program was:" >&5
7183 cat conftest.$ac_ext >&5
7185 eval "ac_cv_func__beginthread=no"
7190 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7191 echo "$ac_t""yes" 1>&6
7192 ol_cv_nt_threads=yes
7194 echo "$ac_t""no" 1>&6
7201 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7203 if test $ol_cv_nt_threads = yes ; then
7204 cat >> confdefs.h <<\EOF
7205 #define HAVE_NT_THREADS 1
7211 if test "$ol_cv_nt_threads" = yes ; then
7213 ol_with_threads=found
7214 ol_with_yielding_select=yes
7216 cat >> confdefs.h <<\EOF
7217 #define HAVE_NT_SERVICE_MANAGER 1
7220 cat >> confdefs.h <<\EOF
7221 #define HAVE_NT_EVENT_LOG 1
7226 if test $ol_with_threads = nt ; then
7227 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7231 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7232 -o $ol_with_threads = posix ; then
7234 for ac_hdr in pthread.h
7236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7238 echo "configure:7239: checking for $ac_hdr" >&5
7239 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7248 { (eval echo configure:7249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7250 if test -z "$ac_err"; then
7252 eval "ac_cv_header_$ac_safe=yes"
7255 echo "configure: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7258 eval "ac_cv_header_$ac_safe=no"
7262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7263 echo "$ac_t""yes" 1>&6
7264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7265 cat >> confdefs.h <<EOF
7266 #define $ac_tr_hdr 1
7270 echo "$ac_t""no" 1>&6
7275 if test $ac_cv_header_pthread_h = yes ; then
7276 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7277 echo "configure:7278: checking POSIX thread version" >&5
7278 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7286 # include <pthread.h>
7287 /* this check could be improved */
7288 # ifdef PTHREAD_ONCE_INIT
7289 pthread_version_final;
7293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294 egrep "pthread_version_final" >/dev/null 2>&1; then
7296 ol_pthread_final=yes
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7308 # include <pthread.h>
7309 /* this check could be improved */
7310 # ifdef pthread_once_init
7311 pthread_version_draft4;
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7318 ol_pthread_draft4=yes
7321 ol_pthread_draft4=no
7326 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7327 ol_cv_pthread_version=final
7328 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7329 ol_cv_pthread_version=draft4
7331 ol_cv_pthread_version=unknown
7336 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7339 if test $ol_cv_pthread_version = final ; then
7340 cat >> confdefs.h <<\EOF
7341 #define HAVE_PTHREADS_FINAL 1
7344 elif test $ol_cv_pthread_version = draft4 ; then
7345 cat >> confdefs.h <<\EOF
7346 #define HAVE_PTHREADS_D4 1
7350 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7353 # consider threads found
7354 ol_with_threads=found
7357 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7358 echo "configure:7359: checking for LinuxThreads pthread.h" >&5
7359 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 #include <pthread.h>
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7370 ol_cv_header_linux_threads=yes
7373 ol_cv_header_linux_threads=no
7380 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7381 if test $ol_cv_header_linux_threads = yes; then
7382 cat >> confdefs.h <<\EOF
7383 #define HAVE_LINUX_THREADS 1
7389 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7390 echo "configure:7391: checking for GNU Pth pthread.h" >&5
7391 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <pthread.h>
7398 #ifdef _POSIX_THREAD_IS_GNU_PTH
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 egrep "__gnu_pth__" >/dev/null 2>&1; then
7406 ol_cv_header_gnu_pth_pthread_h=yes
7409 ol_cv_header_gnu_pth_pthread_h=no
7416 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7419 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7420 for ac_hdr in sched.h
7422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7424 echo "configure:7425: checking for $ac_hdr" >&5
7425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6
7428 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7434 { (eval echo configure:7435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7436 if test -z "$ac_err"; then
7438 eval "ac_cv_header_$ac_safe=yes"
7441 echo "configure: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7444 eval "ac_cv_header_$ac_safe=no"
7448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_hdr 1
7456 echo "$ac_t""no" 1>&6
7463 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7464 echo "configure:7465: checking for pthread_create in default libraries" >&5
7465 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7469 if test "$cross_compiling" = yes; then
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* pthread test headers */
7474 #include <pthread.h>
7476 #define NULL (void*)0
7479 static void *task(p)
7482 return (void *) (p == NULL);
7487 /* pthread test function */
7490 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7491 /* This system (e.g. AIX) defaults detached; must override */
7492 pthread_attr_t attr;
7494 status = pthread_attr_init(&attr);
7495 if( status ) exit( status );
7497 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7498 if( status ) exit( status );
7502 #if HAVE_PTHREADS_D4
7503 #define ATTR pthread_attr_default
7508 /* make sure pthread_create() isn't just a stub */
7509 status = pthread_create(&t, ATTR, task, NULL);
7510 if( status ) exit( status );
7512 /* make sure pthread_detach() isn't just a stub */
7513 #if HAVE_PTHREADS_D4
7514 status = pthread_detach( &t );
7516 status = pthread_detach( t );
7519 #ifdef HAVE_LINUX_THREADS
7520 pthread_kill_other_threads_np();
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 ol_cv_pthread_create=yes
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 ol_cv_pthread_create=no
7538 cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 /* pthread test headers */
7542 #include <pthread.h>
7544 #define NULL (void*)0
7547 static void *task(p)
7550 return (void *) (p == NULL);
7554 int main(argc, argv)
7559 /* pthread test function */
7562 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7563 /* This system (e.g. AIX) defaults detached; must override */
7564 pthread_attr_t attr;
7566 status = pthread_attr_init(&attr);
7567 if( status ) exit( status );
7569 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7570 if( status ) exit( status );
7574 #if HAVE_PTHREADS_D4
7575 #define ATTR pthread_attr_default
7580 /* make sure pthread_create() isn't just a stub */
7581 status = pthread_create(&t, ATTR, task, NULL);
7582 if( status ) exit( status );
7584 /* make sure pthread_detach() isn't just a stub */
7585 #if HAVE_PTHREADS_D4
7586 status = pthread_detach( &t );
7588 status = pthread_detach( t );
7591 #ifdef HAVE_LINUX_THREADS
7592 pthread_kill_other_threads_np();
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7602 ol_cv_pthread_create=yes
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7607 ol_cv_pthread_create=no
7614 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7616 if test $ol_cv_pthread_create != no ; then
7617 ol_link_threads=posix
7621 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7622 if test "$ol_link_threads" = no ; then
7624 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7625 echo "configure:7626: checking for pthread link with -kthread" >&5
7626 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7632 LIBS="-kthread $LIBS"
7634 if test "$cross_compiling" = yes; then
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* pthread test headers */
7639 #include <pthread.h>
7641 #define NULL (void*)0
7644 static void *task(p)
7647 return (void *) (p == NULL);
7652 /* pthread test function */
7655 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7656 /* This system (e.g. AIX) defaults detached; must override */
7657 pthread_attr_t attr;
7659 status = pthread_attr_init(&attr);
7660 if( status ) exit( status );
7662 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7663 if( status ) exit( status );
7667 #if HAVE_PTHREADS_D4
7668 #define ATTR pthread_attr_default
7673 /* make sure pthread_create() isn't just a stub */
7674 status = pthread_create(&t, ATTR, task, NULL);
7675 if( status ) exit( status );
7677 /* make sure pthread_detach() isn't just a stub */
7678 #if HAVE_PTHREADS_D4
7679 status = pthread_detach( &t );
7681 status = pthread_detach( t );
7684 #ifdef HAVE_LINUX_THREADS
7685 pthread_kill_other_threads_np();
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694 ol_cv_pthread_kthread=yes
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7699 ol_cv_pthread_kthread=no
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 /* pthread test headers */
7707 #include <pthread.h>
7709 #define NULL (void*)0
7712 static void *task(p)
7715 return (void *) (p == NULL);
7719 int main(argc, argv)
7724 /* pthread test function */
7727 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7728 /* This system (e.g. AIX) defaults detached; must override */
7729 pthread_attr_t attr;
7731 status = pthread_attr_init(&attr);
7732 if( status ) exit( status );
7734 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7735 if( status ) exit( status );
7739 #if HAVE_PTHREADS_D4
7740 #define ATTR pthread_attr_default
7745 /* make sure pthread_create() isn't just a stub */
7746 status = pthread_create(&t, ATTR, task, NULL);
7747 if( status ) exit( status );
7749 /* make sure pthread_detach() isn't just a stub */
7750 #if HAVE_PTHREADS_D4
7751 status = pthread_detach( &t );
7753 status = pthread_detach( t );
7756 #ifdef HAVE_LINUX_THREADS
7757 pthread_kill_other_threads_np();
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7767 ol_cv_pthread_kthread=yes
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 ol_cv_pthread_kthread=no
7783 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7785 if test $ol_cv_pthread_kthread = yes ; then
7786 ol_link_pthreads="-kthread"
7787 ol_link_threads=posix
7791 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7792 if test "$ol_link_threads" = no ; then
7794 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7795 echo "configure:7796: checking for pthread link with -pthread" >&5
7796 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7802 LIBS="-pthread $LIBS"
7804 if test "$cross_compiling" = yes; then
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* pthread test headers */
7809 #include <pthread.h>
7811 #define NULL (void*)0
7814 static void *task(p)
7817 return (void *) (p == NULL);
7822 /* pthread test function */
7825 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7826 /* This system (e.g. AIX) defaults detached; must override */
7827 pthread_attr_t attr;
7829 status = pthread_attr_init(&attr);
7830 if( status ) exit( status );
7832 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7833 if( status ) exit( status );
7837 #if HAVE_PTHREADS_D4
7838 #define ATTR pthread_attr_default
7843 /* make sure pthread_create() isn't just a stub */
7844 status = pthread_create(&t, ATTR, task, NULL);
7845 if( status ) exit( status );
7847 /* make sure pthread_detach() isn't just a stub */
7848 #if HAVE_PTHREADS_D4
7849 status = pthread_detach( &t );
7851 status = pthread_detach( t );
7854 #ifdef HAVE_LINUX_THREADS
7855 pthread_kill_other_threads_np();
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 ol_cv_pthread_pthread=yes
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 ol_cv_pthread_pthread=no
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* pthread test headers */
7877 #include <pthread.h>
7879 #define NULL (void*)0
7882 static void *task(p)
7885 return (void *) (p == NULL);
7889 int main(argc, argv)
7894 /* pthread test function */
7897 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7898 /* This system (e.g. AIX) defaults detached; must override */
7899 pthread_attr_t attr;
7901 status = pthread_attr_init(&attr);
7902 if( status ) exit( status );
7904 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7905 if( status ) exit( status );
7909 #if HAVE_PTHREADS_D4
7910 #define ATTR pthread_attr_default
7915 /* make sure pthread_create() isn't just a stub */
7916 status = pthread_create(&t, ATTR, task, NULL);
7917 if( status ) exit( status );
7919 /* make sure pthread_detach() isn't just a stub */
7920 #if HAVE_PTHREADS_D4
7921 status = pthread_detach( &t );
7923 status = pthread_detach( t );
7926 #ifdef HAVE_LINUX_THREADS
7927 pthread_kill_other_threads_np();
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7937 ol_cv_pthread_pthread=yes
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 ol_cv_pthread_pthread=no
7953 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7955 if test $ol_cv_pthread_pthread = yes ; then
7956 ol_link_pthreads="-pthread"
7957 ol_link_threads=posix
7961 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7962 if test "$ol_link_threads" = no ; then
7964 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7965 echo "configure:7966: checking for pthread link with -pthreads" >&5
7966 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7972 LIBS="-pthreads $LIBS"
7974 if test "$cross_compiling" = yes; then
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 /* pthread test headers */
7979 #include <pthread.h>
7981 #define NULL (void*)0
7984 static void *task(p)
7987 return (void *) (p == NULL);
7992 /* pthread test function */
7995 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7996 /* This system (e.g. AIX) defaults detached; must override */
7997 pthread_attr_t attr;
7999 status = pthread_attr_init(&attr);
8000 if( status ) exit( status );
8002 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8003 if( status ) exit( status );
8007 #if HAVE_PTHREADS_D4
8008 #define ATTR pthread_attr_default
8013 /* make sure pthread_create() isn't just a stub */
8014 status = pthread_create(&t, ATTR, task, NULL);
8015 if( status ) exit( status );
8017 /* make sure pthread_detach() isn't just a stub */
8018 #if HAVE_PTHREADS_D4
8019 status = pthread_detach( &t );
8021 status = pthread_detach( t );
8024 #ifdef HAVE_LINUX_THREADS
8025 pthread_kill_other_threads_np();
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 ol_cv_pthread_pthreads=yes
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 ol_cv_pthread_pthreads=no
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* pthread test headers */
8047 #include <pthread.h>
8049 #define NULL (void*)0
8052 static void *task(p)
8055 return (void *) (p == NULL);
8059 int main(argc, argv)
8064 /* pthread test function */
8067 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8068 /* This system (e.g. AIX) defaults detached; must override */
8069 pthread_attr_t attr;
8071 status = pthread_attr_init(&attr);
8072 if( status ) exit( status );
8074 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8075 if( status ) exit( status );
8079 #if HAVE_PTHREADS_D4
8080 #define ATTR pthread_attr_default
8085 /* make sure pthread_create() isn't just a stub */
8086 status = pthread_create(&t, ATTR, task, NULL);
8087 if( status ) exit( status );
8089 /* make sure pthread_detach() isn't just a stub */
8090 #if HAVE_PTHREADS_D4
8091 status = pthread_detach( &t );
8093 status = pthread_detach( t );
8096 #ifdef HAVE_LINUX_THREADS
8097 pthread_kill_other_threads_np();
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8107 ol_cv_pthread_pthreads=yes
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 ol_cv_pthread_pthreads=no
8123 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8125 if test $ol_cv_pthread_pthreads = yes ; then
8126 ol_link_pthreads="-pthreads"
8127 ol_link_threads=posix
8131 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8132 if test "$ol_link_threads" = no ; then
8134 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8135 echo "configure:8136: checking for pthread link with -mthreads" >&5
8136 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8142 LIBS="-mthreads $LIBS"
8144 if test "$cross_compiling" = yes; then
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* pthread test headers */
8149 #include <pthread.h>
8151 #define NULL (void*)0
8154 static void *task(p)
8157 return (void *) (p == NULL);
8162 /* pthread test function */
8165 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8166 /* This system (e.g. AIX) defaults detached; must override */
8167 pthread_attr_t attr;
8169 status = pthread_attr_init(&attr);
8170 if( status ) exit( status );
8172 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8173 if( status ) exit( status );
8177 #if HAVE_PTHREADS_D4
8178 #define ATTR pthread_attr_default
8183 /* make sure pthread_create() isn't just a stub */
8184 status = pthread_create(&t, ATTR, task, NULL);
8185 if( status ) exit( status );
8187 /* make sure pthread_detach() isn't just a stub */
8188 #if HAVE_PTHREADS_D4
8189 status = pthread_detach( &t );
8191 status = pthread_detach( t );
8194 #ifdef HAVE_LINUX_THREADS
8195 pthread_kill_other_threads_np();
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 ol_cv_pthread_mthreads=yes
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 ol_cv_pthread_mthreads=no
8213 cat > conftest.$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216 /* pthread test headers */
8217 #include <pthread.h>
8219 #define NULL (void*)0
8222 static void *task(p)
8225 return (void *) (p == NULL);
8229 int main(argc, argv)
8234 /* pthread test function */
8237 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8238 /* This system (e.g. AIX) defaults detached; must override */
8239 pthread_attr_t attr;
8241 status = pthread_attr_init(&attr);
8242 if( status ) exit( status );
8244 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8245 if( status ) exit( status );
8249 #if HAVE_PTHREADS_D4
8250 #define ATTR pthread_attr_default
8255 /* make sure pthread_create() isn't just a stub */
8256 status = pthread_create(&t, ATTR, task, NULL);
8257 if( status ) exit( status );
8259 /* make sure pthread_detach() isn't just a stub */
8260 #if HAVE_PTHREADS_D4
8261 status = pthread_detach( &t );
8263 status = pthread_detach( t );
8266 #ifdef HAVE_LINUX_THREADS
8267 pthread_kill_other_threads_np();
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8277 ol_cv_pthread_mthreads=yes
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 ol_cv_pthread_mthreads=no
8293 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8295 if test $ol_cv_pthread_mthreads = yes ; then
8296 ol_link_pthreads="-mthreads"
8297 ol_link_threads=posix
8301 # Pthread try link: -thread (ol_cv_pthread_thread)
8302 if test "$ol_link_threads" = no ; then
8304 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8305 echo "configure:8306: checking for pthread link with -thread" >&5
8306 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8312 LIBS="-thread $LIBS"
8314 if test "$cross_compiling" = yes; then
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 /* pthread test headers */
8319 #include <pthread.h>
8321 #define NULL (void*)0
8324 static void *task(p)
8327 return (void *) (p == NULL);
8332 /* pthread test function */
8335 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8336 /* This system (e.g. AIX) defaults detached; must override */
8337 pthread_attr_t attr;
8339 status = pthread_attr_init(&attr);
8340 if( status ) exit( status );
8342 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8343 if( status ) exit( status );
8347 #if HAVE_PTHREADS_D4
8348 #define ATTR pthread_attr_default
8353 /* make sure pthread_create() isn't just a stub */
8354 status = pthread_create(&t, ATTR, task, NULL);
8355 if( status ) exit( status );
8357 /* make sure pthread_detach() isn't just a stub */
8358 #if HAVE_PTHREADS_D4
8359 status = pthread_detach( &t );
8361 status = pthread_detach( t );
8364 #ifdef HAVE_LINUX_THREADS
8365 pthread_kill_other_threads_np();
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8374 ol_cv_pthread_thread=yes
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8379 ol_cv_pthread_thread=no
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8386 /* pthread test headers */
8387 #include <pthread.h>
8389 #define NULL (void*)0
8392 static void *task(p)
8395 return (void *) (p == NULL);
8399 int main(argc, argv)
8404 /* pthread test function */
8407 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8408 /* This system (e.g. AIX) defaults detached; must override */
8409 pthread_attr_t attr;
8411 status = pthread_attr_init(&attr);
8412 if( status ) exit( status );
8414 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8415 if( status ) exit( status );
8419 #if HAVE_PTHREADS_D4
8420 #define ATTR pthread_attr_default
8425 /* make sure pthread_create() isn't just a stub */
8426 status = pthread_create(&t, ATTR, task, NULL);
8427 if( status ) exit( status );
8429 /* make sure pthread_detach() isn't just a stub */
8430 #if HAVE_PTHREADS_D4
8431 status = pthread_detach( &t );
8433 status = pthread_detach( t );
8436 #ifdef HAVE_LINUX_THREADS
8437 pthread_kill_other_threads_np();
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8447 ol_cv_pthread_thread=yes
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 ol_cv_pthread_thread=no
8463 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8465 if test $ol_cv_pthread_thread = yes ; then
8466 ol_link_pthreads="-thread"
8467 ol_link_threads=posix
8472 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8473 if test "$ol_link_threads" = no ; then
8474 # try -lpthread -lmach -lexc -lc_r
8475 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8476 echo "configure:8477: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8477 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8483 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8485 if test "$cross_compiling" = yes; then
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 /* pthread test headers */
8490 #include <pthread.h>
8492 #define NULL (void*)0
8495 static void *task(p)
8498 return (void *) (p == NULL);
8503 /* pthread test function */
8506 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8507 /* This system (e.g. AIX) defaults detached; must override */
8508 pthread_attr_t attr;
8510 status = pthread_attr_init(&attr);
8511 if( status ) exit( status );
8513 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8514 if( status ) exit( status );
8518 #if HAVE_PTHREADS_D4
8519 #define ATTR pthread_attr_default
8524 /* make sure pthread_create() isn't just a stub */
8525 status = pthread_create(&t, ATTR, task, NULL);
8526 if( status ) exit( status );
8528 /* make sure pthread_detach() isn't just a stub */
8529 #if HAVE_PTHREADS_D4
8530 status = pthread_detach( &t );
8532 status = pthread_detach( t );
8535 #ifdef HAVE_LINUX_THREADS
8536 pthread_kill_other_threads_np();
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8545 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* pthread test headers */
8558 #include <pthread.h>
8560 #define NULL (void*)0
8563 static void *task(p)
8566 return (void *) (p == NULL);
8570 int main(argc, argv)
8575 /* pthread test function */
8578 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8579 /* This system (e.g. AIX) defaults detached; must override */
8580 pthread_attr_t attr;
8582 status = pthread_attr_init(&attr);
8583 if( status ) exit( status );
8585 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8586 if( status ) exit( status );
8590 #if HAVE_PTHREADS_D4
8591 #define ATTR pthread_attr_default
8596 /* make sure pthread_create() isn't just a stub */
8597 status = pthread_create(&t, ATTR, task, NULL);
8598 if( status ) exit( status );
8600 /* make sure pthread_detach() isn't just a stub */
8601 #if HAVE_PTHREADS_D4
8602 status = pthread_detach( &t );
8604 status = pthread_detach( t );
8607 #ifdef HAVE_LINUX_THREADS
8608 pthread_kill_other_threads_np();
8616 if { (eval echo configure:8617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8618 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8634 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8636 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8637 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8638 ol_link_threads=posix
8642 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8643 if test "$ol_link_threads" = no ; then
8644 # try -lpthread -lmach -lexc
8645 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8646 echo "configure:8647: checking for pthread link with -lpthread -lmach -lexc" >&5
8647 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8653 LIBS="-lpthread -lmach -lexc $LIBS"
8655 if test "$cross_compiling" = yes; then
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 /* pthread test headers */
8660 #include <pthread.h>
8662 #define NULL (void*)0
8665 static void *task(p)
8668 return (void *) (p == NULL);
8673 /* pthread test function */
8676 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8677 /* This system (e.g. AIX) defaults detached; must override */
8678 pthread_attr_t attr;
8680 status = pthread_attr_init(&attr);
8681 if( status ) exit( status );
8683 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8684 if( status ) exit( status );
8688 #if HAVE_PTHREADS_D4
8689 #define ATTR pthread_attr_default
8694 /* make sure pthread_create() isn't just a stub */
8695 status = pthread_create(&t, ATTR, task, NULL);
8696 if( status ) exit( status );
8698 /* make sure pthread_detach() isn't just a stub */
8699 #if HAVE_PTHREADS_D4
8700 status = pthread_detach( &t );
8702 status = pthread_detach( t );
8705 #ifdef HAVE_LINUX_THREADS
8706 pthread_kill_other_threads_np();
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715 ol_cv_pthread_lpthread_lmach_lexc=yes
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 ol_cv_pthread_lpthread_lmach_lexc=no
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 /* pthread test headers */
8728 #include <pthread.h>
8730 #define NULL (void*)0
8733 static void *task(p)
8736 return (void *) (p == NULL);
8740 int main(argc, argv)
8745 /* pthread test function */
8748 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8749 /* This system (e.g. AIX) defaults detached; must override */
8750 pthread_attr_t attr;
8752 status = pthread_attr_init(&attr);
8753 if( status ) exit( status );
8755 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8756 if( status ) exit( status );
8760 #if HAVE_PTHREADS_D4
8761 #define ATTR pthread_attr_default
8766 /* make sure pthread_create() isn't just a stub */
8767 status = pthread_create(&t, ATTR, task, NULL);
8768 if( status ) exit( status );
8770 /* make sure pthread_detach() isn't just a stub */
8771 #if HAVE_PTHREADS_D4
8772 status = pthread_detach( &t );
8774 status = pthread_detach( t );
8777 #ifdef HAVE_LINUX_THREADS
8778 pthread_kill_other_threads_np();
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8788 ol_cv_pthread_lpthread_lmach_lexc=yes
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 ol_cv_pthread_lpthread_lmach_lexc=no
8804 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8806 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8807 ol_link_pthreads="-lpthread -lmach -lexc"
8808 ol_link_threads=posix
8813 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8814 if test "$ol_link_threads" = no ; then
8815 # try -lpthread -Wl,-woff,85
8816 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8817 echo "configure:8818: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8818 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8824 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8826 if test "$cross_compiling" = yes; then
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8830 /* pthread test headers */
8831 #include <pthread.h>
8833 #define NULL (void*)0
8836 static void *task(p)
8839 return (void *) (p == NULL);
8844 /* pthread test function */
8847 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8848 /* This system (e.g. AIX) defaults detached; must override */
8849 pthread_attr_t attr;
8851 status = pthread_attr_init(&attr);
8852 if( status ) exit( status );
8854 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8855 if( status ) exit( status );
8859 #if HAVE_PTHREADS_D4
8860 #define ATTR pthread_attr_default
8865 /* make sure pthread_create() isn't just a stub */
8866 status = pthread_create(&t, ATTR, task, NULL);
8867 if( status ) exit( status );
8869 /* make sure pthread_detach() isn't just a stub */
8870 #if HAVE_PTHREADS_D4
8871 status = pthread_detach( &t );
8873 status = pthread_detach( t );
8876 #ifdef HAVE_LINUX_THREADS
8877 pthread_kill_other_threads_np();
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8886 ol_cv_pthread_lib_lpthread_woff=yes
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8891 ol_cv_pthread_lib_lpthread_woff=no
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* pthread test headers */
8899 #include <pthread.h>
8901 #define NULL (void*)0
8904 static void *task(p)
8907 return (void *) (p == NULL);
8911 int main(argc, argv)
8916 /* pthread test function */
8919 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8920 /* This system (e.g. AIX) defaults detached; must override */
8921 pthread_attr_t attr;
8923 status = pthread_attr_init(&attr);
8924 if( status ) exit( status );
8926 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8927 if( status ) exit( status );
8931 #if HAVE_PTHREADS_D4
8932 #define ATTR pthread_attr_default
8937 /* make sure pthread_create() isn't just a stub */
8938 status = pthread_create(&t, ATTR, task, NULL);
8939 if( status ) exit( status );
8941 /* make sure pthread_detach() isn't just a stub */
8942 #if HAVE_PTHREADS_D4
8943 status = pthread_detach( &t );
8945 status = pthread_detach( t );
8948 #ifdef HAVE_LINUX_THREADS
8949 pthread_kill_other_threads_np();
8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8959 ol_cv_pthread_lib_lpthread_woff=yes
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8964 ol_cv_pthread_lib_lpthread_woff=no
8975 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8977 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8978 ol_link_pthreads="-lpthread -Wl,-woff,85"
8979 ol_link_threads=posix
8984 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8985 if test "$ol_link_threads" = no ; then
8987 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8988 echo "configure:8989: checking for pthread link with -lpthread" >&5
8989 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8995 LIBS="-lpthread $LIBS"
8997 if test "$cross_compiling" = yes; then
8998 cat > conftest.$ac_ext <<EOF
8999 #line 9000 "configure"
9000 #include "confdefs.h"
9001 /* pthread test headers */
9002 #include <pthread.h>
9004 #define NULL (void*)0
9007 static void *task(p)
9010 return (void *) (p == NULL);
9015 /* pthread test function */
9018 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9019 /* This system (e.g. AIX) defaults detached; must override */
9020 pthread_attr_t attr;
9022 status = pthread_attr_init(&attr);
9023 if( status ) exit( status );
9025 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9026 if( status ) exit( status );
9030 #if HAVE_PTHREADS_D4
9031 #define ATTR pthread_attr_default
9036 /* make sure pthread_create() isn't just a stub */
9037 status = pthread_create(&t, ATTR, task, NULL);
9038 if( status ) exit( status );
9040 /* make sure pthread_detach() isn't just a stub */
9041 #if HAVE_PTHREADS_D4
9042 status = pthread_detach( &t );
9044 status = pthread_detach( t );
9047 #ifdef HAVE_LINUX_THREADS
9048 pthread_kill_other_threads_np();
9055 if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9057 ol_cv_pthread_lpthread=yes
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9062 ol_cv_pthread_lpthread=no
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* pthread test headers */
9070 #include <pthread.h>
9072 #define NULL (void*)0
9075 static void *task(p)
9078 return (void *) (p == NULL);
9082 int main(argc, argv)
9087 /* pthread test function */
9090 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9091 /* This system (e.g. AIX) defaults detached; must override */
9092 pthread_attr_t attr;
9094 status = pthread_attr_init(&attr);
9095 if( status ) exit( status );
9097 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9098 if( status ) exit( status );
9102 #if HAVE_PTHREADS_D4
9103 #define ATTR pthread_attr_default
9108 /* make sure pthread_create() isn't just a stub */
9109 status = pthread_create(&t, ATTR, task, NULL);
9110 if( status ) exit( status );
9112 /* make sure pthread_detach() isn't just a stub */
9113 #if HAVE_PTHREADS_D4
9114 status = pthread_detach( &t );
9116 status = pthread_detach( t );
9119 #ifdef HAVE_LINUX_THREADS
9120 pthread_kill_other_threads_np();
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9130 ol_cv_pthread_lpthread=yes
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 ol_cv_pthread_lpthread=no
9146 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9148 if test $ol_cv_pthread_lpthread = yes ; then
9149 ol_link_pthreads="-lpthread"
9150 ol_link_threads=posix
9154 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9155 if test "$ol_link_threads" = no ; then
9157 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9158 echo "configure:9159: checking for pthread link with -lc_r" >&5
9159 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9167 if test "$cross_compiling" = yes; then
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 /* pthread test headers */
9172 #include <pthread.h>
9174 #define NULL (void*)0
9177 static void *task(p)
9180 return (void *) (p == NULL);
9185 /* pthread test function */
9188 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9189 /* This system (e.g. AIX) defaults detached; must override */
9190 pthread_attr_t attr;
9192 status = pthread_attr_init(&attr);
9193 if( status ) exit( status );
9195 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9196 if( status ) exit( status );
9200 #if HAVE_PTHREADS_D4
9201 #define ATTR pthread_attr_default
9206 /* make sure pthread_create() isn't just a stub */
9207 status = pthread_create(&t, ATTR, task, NULL);
9208 if( status ) exit( status );
9210 /* make sure pthread_detach() isn't just a stub */
9211 #if HAVE_PTHREADS_D4
9212 status = pthread_detach( &t );
9214 status = pthread_detach( t );
9217 #ifdef HAVE_LINUX_THREADS
9218 pthread_kill_other_threads_np();
9225 if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9227 ol_cv_pthread_lc_r=yes
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9232 ol_cv_pthread_lc_r=no
9236 cat > conftest.$ac_ext <<EOF
9237 #line 9238 "configure"
9238 #include "confdefs.h"
9239 /* pthread test headers */
9240 #include <pthread.h>
9242 #define NULL (void*)0
9245 static void *task(p)
9248 return (void *) (p == NULL);
9252 int main(argc, argv)
9257 /* pthread test function */
9260 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9261 /* This system (e.g. AIX) defaults detached; must override */
9262 pthread_attr_t attr;
9264 status = pthread_attr_init(&attr);
9265 if( status ) exit( status );
9267 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9268 if( status ) exit( status );
9272 #if HAVE_PTHREADS_D4
9273 #define ATTR pthread_attr_default
9278 /* make sure pthread_create() isn't just a stub */
9279 status = pthread_create(&t, ATTR, task, NULL);
9280 if( status ) exit( status );
9282 /* make sure pthread_detach() isn't just a stub */
9283 #if HAVE_PTHREADS_D4
9284 status = pthread_detach( &t );
9286 status = pthread_detach( t );
9289 #ifdef HAVE_LINUX_THREADS
9290 pthread_kill_other_threads_np();
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9300 ol_cv_pthread_lc_r=yes
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 ol_cv_pthread_lc_r=no
9316 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9318 if test $ol_cv_pthread_lc_r = yes ; then
9319 ol_link_pthreads="-lc_r"
9320 ol_link_threads=posix
9325 # Pthread try link: -threads (ol_cv_pthread_threads)
9326 if test "$ol_link_threads" = no ; then
9328 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9329 echo "configure:9330: checking for pthread link with -threads" >&5
9330 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9336 LIBS="-threads $LIBS"
9338 if test "$cross_compiling" = yes; then
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 /* pthread test headers */
9343 #include <pthread.h>
9345 #define NULL (void*)0
9348 static void *task(p)
9351 return (void *) (p == NULL);
9356 /* pthread test function */
9359 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9360 /* This system (e.g. AIX) defaults detached; must override */
9361 pthread_attr_t attr;
9363 status = pthread_attr_init(&attr);
9364 if( status ) exit( status );
9366 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9367 if( status ) exit( status );
9371 #if HAVE_PTHREADS_D4
9372 #define ATTR pthread_attr_default
9377 /* make sure pthread_create() isn't just a stub */
9378 status = pthread_create(&t, ATTR, task, NULL);
9379 if( status ) exit( status );
9381 /* make sure pthread_detach() isn't just a stub */
9382 #if HAVE_PTHREADS_D4
9383 status = pthread_detach( &t );
9385 status = pthread_detach( t );
9388 #ifdef HAVE_LINUX_THREADS
9389 pthread_kill_other_threads_np();
9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9398 ol_cv_pthread_threads=yes
9400 echo "configure: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9403 ol_cv_pthread_threads=no
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9410 /* pthread test headers */
9411 #include <pthread.h>
9413 #define NULL (void*)0
9416 static void *task(p)
9419 return (void *) (p == NULL);
9423 int main(argc, argv)
9428 /* pthread test function */
9431 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9432 /* This system (e.g. AIX) defaults detached; must override */
9433 pthread_attr_t attr;
9435 status = pthread_attr_init(&attr);
9436 if( status ) exit( status );
9438 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9439 if( status ) exit( status );
9443 #if HAVE_PTHREADS_D4
9444 #define ATTR pthread_attr_default
9449 /* make sure pthread_create() isn't just a stub */
9450 status = pthread_create(&t, ATTR, task, NULL);
9451 if( status ) exit( status );
9453 /* make sure pthread_detach() isn't just a stub */
9454 #if HAVE_PTHREADS_D4
9455 status = pthread_detach( &t );
9457 status = pthread_detach( t );
9460 #ifdef HAVE_LINUX_THREADS
9461 pthread_kill_other_threads_np();
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9471 ol_cv_pthread_threads=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9476 ol_cv_pthread_threads=no
9487 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9489 if test $ol_cv_pthread_threads = yes ; then
9490 ol_link_pthreads="-threads"
9491 ol_link_threads=posix
9496 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9497 if test "$ol_link_threads" = no ; then
9498 # try -lpthreads -lmach -lexc -lc_r
9499 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9500 echo "configure:9501: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9501 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9507 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9509 if test "$cross_compiling" = yes; then
9510 cat > conftest.$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 /* pthread test headers */
9514 #include <pthread.h>
9516 #define NULL (void*)0
9519 static void *task(p)
9522 return (void *) (p == NULL);
9527 /* pthread test function */
9530 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9531 /* This system (e.g. AIX) defaults detached; must override */
9532 pthread_attr_t attr;
9534 status = pthread_attr_init(&attr);
9535 if( status ) exit( status );
9537 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9538 if( status ) exit( status );
9542 #if HAVE_PTHREADS_D4
9543 #define ATTR pthread_attr_default
9548 /* make sure pthread_create() isn't just a stub */
9549 status = pthread_create(&t, ATTR, task, NULL);
9550 if( status ) exit( status );
9552 /* make sure pthread_detach() isn't just a stub */
9553 #if HAVE_PTHREADS_D4
9554 status = pthread_detach( &t );
9556 status = pthread_detach( t );
9559 #ifdef HAVE_LINUX_THREADS
9560 pthread_kill_other_threads_np();
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9569 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9574 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9578 cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 /* pthread test headers */
9582 #include <pthread.h>
9584 #define NULL (void*)0
9587 static void *task(p)
9590 return (void *) (p == NULL);
9594 int main(argc, argv)
9599 /* pthread test function */
9602 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9603 /* This system (e.g. AIX) defaults detached; must override */
9604 pthread_attr_t attr;
9606 status = pthread_attr_init(&attr);
9607 if( status ) exit( status );
9609 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9610 if( status ) exit( status );
9614 #if HAVE_PTHREADS_D4
9615 #define ATTR pthread_attr_default
9620 /* make sure pthread_create() isn't just a stub */
9621 status = pthread_create(&t, ATTR, task, NULL);
9622 if( status ) exit( status );
9624 /* make sure pthread_detach() isn't just a stub */
9625 #if HAVE_PTHREADS_D4
9626 status = pthread_detach( &t );
9628 status = pthread_detach( t );
9631 #ifdef HAVE_LINUX_THREADS
9632 pthread_kill_other_threads_np();
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9642 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9658 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9660 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9661 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9662 ol_link_threads=posix
9666 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9667 if test "$ol_link_threads" = no ; then
9668 # try -lpthreads -lmach -lexc
9669 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9670 echo "configure:9671: checking for pthread link with -lpthreads -lmach -lexc" >&5
9671 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9677 LIBS="-lpthreads -lmach -lexc $LIBS"
9679 if test "$cross_compiling" = yes; then
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 /* pthread test headers */
9684 #include <pthread.h>
9686 #define NULL (void*)0
9689 static void *task(p)
9692 return (void *) (p == NULL);
9697 /* pthread test function */
9700 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9701 /* This system (e.g. AIX) defaults detached; must override */
9702 pthread_attr_t attr;
9704 status = pthread_attr_init(&attr);
9705 if( status ) exit( status );
9707 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9708 if( status ) exit( status );
9712 #if HAVE_PTHREADS_D4
9713 #define ATTR pthread_attr_default
9718 /* make sure pthread_create() isn't just a stub */
9719 status = pthread_create(&t, ATTR, task, NULL);
9720 if( status ) exit( status );
9722 /* make sure pthread_detach() isn't just a stub */
9723 #if HAVE_PTHREADS_D4
9724 status = pthread_detach( &t );
9726 status = pthread_detach( t );
9729 #ifdef HAVE_LINUX_THREADS
9730 pthread_kill_other_threads_np();
9737 if { (eval echo configure:9738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9739 ol_cv_pthread_lpthreads_lmach_lexc=yes
9741 echo "configure: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9744 ol_cv_pthread_lpthreads_lmach_lexc=no
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9751 /* pthread test headers */
9752 #include <pthread.h>
9754 #define NULL (void*)0
9757 static void *task(p)
9760 return (void *) (p == NULL);
9764 int main(argc, argv)
9769 /* pthread test function */
9772 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9773 /* This system (e.g. AIX) defaults detached; must override */
9774 pthread_attr_t attr;
9776 status = pthread_attr_init(&attr);
9777 if( status ) exit( status );
9779 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9780 if( status ) exit( status );
9784 #if HAVE_PTHREADS_D4
9785 #define ATTR pthread_attr_default
9790 /* make sure pthread_create() isn't just a stub */
9791 status = pthread_create(&t, ATTR, task, NULL);
9792 if( status ) exit( status );
9794 /* make sure pthread_detach() isn't just a stub */
9795 #if HAVE_PTHREADS_D4
9796 status = pthread_detach( &t );
9798 status = pthread_detach( t );
9801 #ifdef HAVE_LINUX_THREADS
9802 pthread_kill_other_threads_np();
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9812 ol_cv_pthread_lpthreads_lmach_lexc=yes
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9817 ol_cv_pthread_lpthreads_lmach_lexc=no
9828 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9830 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9831 ol_link_pthreads="-lpthreads -lmach -lexc"
9832 ol_link_threads=posix
9836 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9837 if test "$ol_link_threads" = no ; then
9838 # try -lpthreads -lexc
9839 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9840 echo "configure:9841: checking for pthread link with -lpthreads -lexc" >&5
9841 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9847 LIBS="-lpthreads -lexc $LIBS"
9849 if test "$cross_compiling" = yes; then
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 /* pthread test headers */
9854 #include <pthread.h>
9856 #define NULL (void*)0
9859 static void *task(p)
9862 return (void *) (p == NULL);
9867 /* pthread test function */
9870 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9871 /* This system (e.g. AIX) defaults detached; must override */
9872 pthread_attr_t attr;
9874 status = pthread_attr_init(&attr);
9875 if( status ) exit( status );
9877 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9878 if( status ) exit( status );
9882 #if HAVE_PTHREADS_D4
9883 #define ATTR pthread_attr_default
9888 /* make sure pthread_create() isn't just a stub */
9889 status = pthread_create(&t, ATTR, task, NULL);
9890 if( status ) exit( status );
9892 /* make sure pthread_detach() isn't just a stub */
9893 #if HAVE_PTHREADS_D4
9894 status = pthread_detach( &t );
9896 status = pthread_detach( t );
9899 #ifdef HAVE_LINUX_THREADS
9900 pthread_kill_other_threads_np();
9907 if { (eval echo configure:9908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9909 ol_cv_pthread_lpthreads_lexc=yes
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9914 ol_cv_pthread_lpthreads_lexc=no
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* pthread test headers */
9922 #include <pthread.h>
9924 #define NULL (void*)0
9927 static void *task(p)
9930 return (void *) (p == NULL);
9934 int main(argc, argv)
9939 /* pthread test function */
9942 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9943 /* This system (e.g. AIX) defaults detached; must override */
9944 pthread_attr_t attr;
9946 status = pthread_attr_init(&attr);
9947 if( status ) exit( status );
9949 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9950 if( status ) exit( status );
9954 #if HAVE_PTHREADS_D4
9955 #define ATTR pthread_attr_default
9960 /* make sure pthread_create() isn't just a stub */
9961 status = pthread_create(&t, ATTR, task, NULL);
9962 if( status ) exit( status );
9964 /* make sure pthread_detach() isn't just a stub */
9965 #if HAVE_PTHREADS_D4
9966 status = pthread_detach( &t );
9968 status = pthread_detach( t );
9971 #ifdef HAVE_LINUX_THREADS
9972 pthread_kill_other_threads_np();
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9982 ol_cv_pthread_lpthreads_lexc=yes
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 ol_cv_pthread_lpthreads_lexc=no
9998 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10000 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10001 ol_link_pthreads="-lpthreads -lexc"
10002 ol_link_threads=posix
10007 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10008 if test "$ol_link_threads" = no ; then
10010 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10011 echo "configure:10012: checking for pthread link with -lpthreads" >&5
10012 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10018 LIBS="-lpthreads $LIBS"
10020 if test "$cross_compiling" = yes; then
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 /* pthread test headers */
10025 #include <pthread.h>
10027 #define NULL (void*)0
10030 static void *task(p)
10033 return (void *) (p == NULL);
10038 /* pthread test function */
10041 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10042 /* This system (e.g. AIX) defaults detached; must override */
10043 pthread_attr_t attr;
10045 status = pthread_attr_init(&attr);
10046 if( status ) exit( status );
10048 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10049 if( status ) exit( status );
10053 #if HAVE_PTHREADS_D4
10054 #define ATTR pthread_attr_default
10059 /* make sure pthread_create() isn't just a stub */
10060 status = pthread_create(&t, ATTR, task, NULL);
10061 if( status ) exit( status );
10063 /* make sure pthread_detach() isn't just a stub */
10064 #if HAVE_PTHREADS_D4
10065 status = pthread_detach( &t );
10067 status = pthread_detach( t );
10070 #ifdef HAVE_LINUX_THREADS
10071 pthread_kill_other_threads_np();
10078 if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10080 ol_cv_pthread_lib_lpthreads=yes
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 ol_cv_pthread_lib_lpthreads=no
10089 cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 /* pthread test headers */
10093 #include <pthread.h>
10095 #define NULL (void*)0
10098 static void *task(p)
10101 return (void *) (p == NULL);
10105 int main(argc, argv)
10110 /* pthread test function */
10113 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10114 /* This system (e.g. AIX) defaults detached; must override */
10115 pthread_attr_t attr;
10117 status = pthread_attr_init(&attr);
10118 if( status ) exit( status );
10120 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10121 if( status ) exit( status );
10125 #if HAVE_PTHREADS_D4
10126 #define ATTR pthread_attr_default
10131 /* make sure pthread_create() isn't just a stub */
10132 status = pthread_create(&t, ATTR, task, NULL);
10133 if( status ) exit( status );
10135 /* make sure pthread_detach() isn't just a stub */
10136 #if HAVE_PTHREADS_D4
10137 status = pthread_detach( &t );
10139 status = pthread_detach( t );
10142 #ifdef HAVE_LINUX_THREADS
10143 pthread_kill_other_threads_np();
10151 if { (eval echo configure:10152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10153 ol_cv_pthread_lib_lpthreads=yes
10155 echo "configure: failed program was:" >&5
10156 cat conftest.$ac_ext >&5
10158 ol_cv_pthread_lib_lpthreads=no
10169 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10171 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10172 ol_link_pthreads="-lpthreads"
10173 ol_link_threads=posix
10178 if test $ol_link_threads != no ; then
10179 cat >> confdefs.h <<\EOF
10180 #define HAVE_PTHREADS 1
10184 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10186 save_CPPFLAGS="$CPPFLAGS"
10188 LIBS="$LTHREAD_LIBS $LIBS"
10190 for ac_func in sched_yield pthread_yield
10192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10193 echo "configure:10194: checking for $ac_func" >&5
10194 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 /* System header to define __stub macros and hopefully few prototypes,
10201 which can conflict with char $ac_func(); below. */
10202 #include <assert.h>
10203 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10211 /* The GNU C library defines this for functions which it implements
10212 to always fail with ENOSYS. Some functions are actually named
10213 something starting with __ and the normal name is an alias. */
10214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10224 eval "ac_cv_func_$ac_func=yes"
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10229 eval "ac_cv_func_$ac_func=no"
10234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10235 echo "$ac_t""yes" 1>&6
10236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10237 cat >> confdefs.h <<EOF
10238 #define $ac_tr_func 1
10242 echo "$ac_t""no" 1>&6
10247 if test $ac_cv_func_sched_yield = no -a \
10248 $ac_cv_func_pthread_yield = no ; then
10249 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10250 echo "configure:10251: checking for sched_yield in -lrt" >&5
10251 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10255 ac_save_LIBS="$LIBS"
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10263 char sched_yield();
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10271 eval "ac_cv_lib_$ac_lib_var=yes"
10273 echo "configure: failed program was:" >&5
10274 cat conftest.$ac_ext >&5
10276 eval "ac_cv_lib_$ac_lib_var=no"
10279 LIBS="$ac_save_LIBS"
10282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_SCHED_YIELD 1
10289 ac_cv_func_sched_yield=yes
10291 echo "$ac_t""no" 1>&6
10292 ac_cv_func_sched_yield=no
10296 if test $ac_cv_func_sched_yield = no -a \
10297 $ac_cv_func_pthread_yield = no ; then
10298 for ac_func in thr_yield
10300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10301 echo "configure:10302: checking for $ac_func" >&5
10302 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 /* System header to define __stub macros and hopefully few prototypes,
10309 which can conflict with char $ac_func(); below. */
10310 #include <assert.h>
10311 /* Override any gcc2 internal prototype to avoid an error. */
10312 /* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10319 /* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10332 eval "ac_cv_func_$ac_func=yes"
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 eval "ac_cv_func_$ac_func=no"
10342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10343 echo "$ac_t""yes" 1>&6
10344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10345 cat >> confdefs.h <<EOF
10346 #define $ac_tr_func 1
10350 echo "$ac_t""no" 1>&6
10355 if test $ac_cv_func_sched_yield = no -a \
10356 $ac_cv_func_pthread_yield = no -a \
10357 "$ac_cv_func_thr_yield" = no ; then
10358 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10361 for ac_func in pthread_kill
10363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10364 echo "configure:10365: checking for $ac_func" >&5
10365 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func(); below. */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error. */
10375 /* We use char because int might match the return type of a gcc2
10376 builtin and then its argument prototype would still apply. */
10382 /* The GNU C library defines this for functions which it implements
10383 to always fail with ENOSYS. Some functions are actually named
10384 something starting with __ and the normal name is an alias. */
10385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10395 eval "ac_cv_func_$ac_func=yes"
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 eval "ac_cv_func_$ac_func=no"
10405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10406 echo "$ac_t""yes" 1>&6
10407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10408 cat >> confdefs.h <<EOF
10409 #define $ac_tr_func 1
10413 echo "$ac_t""no" 1>&6
10418 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10419 echo "configure:10420: checking for pthread_detach with <pthread.h>" >&5
10420 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10424 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10428 #include <pthread.h>
10430 #define NULL (void*)0
10434 pthread_detach(NULL);
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10439 ol_cv_func_pthread_detach=yes
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10444 ol_cv_func_pthread_detach=no
10450 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10452 if test $ol_cv_func_pthread_detach = no ; then
10453 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10456 cat >> confdefs.h <<\EOF
10457 #define HAVE_PTHREAD_DETACH 1
10462 pthread_setconcurrency \
10463 pthread_getconcurrency \
10464 thr_setconcurrency \
10465 thr_getconcurrency \
10468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10469 echo "configure:10470: checking for $ac_func" >&5
10470 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10476 /* System header to define __stub macros and hopefully few prototypes,
10477 which can conflict with char $ac_func(); below. */
10478 #include <assert.h>
10479 /* Override any gcc2 internal prototype to avoid an error. */
10480 /* We use char because int might match the return type of a gcc2
10481 builtin and then its argument prototype would still apply. */
10487 /* The GNU C library defines this for functions which it implements
10488 to always fail with ENOSYS. Some functions are actually named
10489 something starting with __ and the normal name is an alias. */
10490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10498 if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500 eval "ac_cv_func_$ac_func=yes"
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 eval "ac_cv_func_$ac_func=no"
10510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10511 echo "$ac_t""yes" 1>&6
10512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10513 cat >> confdefs.h <<EOF
10514 #define $ac_tr_func 1
10518 echo "$ac_t""no" 1>&6
10524 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10525 echo "configure:10526: checking for pthread_kill_other_threads_np" >&5
10526 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 /* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char pthread_kill_other_threads_np(); below. */
10534 #include <assert.h>
10535 /* Override any gcc2 internal prototype to avoid an error. */
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char pthread_kill_other_threads_np();
10543 /* The GNU C library defines this for functions which it implements
10544 to always fail with ENOSYS. Some functions are actually named
10545 something starting with __ and the normal name is an alias. */
10546 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10549 f = pthread_kill_other_threads_np;
10554 if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10556 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10566 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10567 echo "$ac_t""yes" 1>&6
10570 echo "$ac_t""no" 1>&6
10573 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10574 echo "configure:10575: checking for LinuxThreads implementation" >&5
10575 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10576 echo $ac_n "(cached) $ac_c" 1>&6
10578 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10581 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10586 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10587 echo "configure:10588: checking for LinuxThreads consistency" >&5
10588 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10592 if test $ol_cv_header_linux_threads = yes -a \
10593 $ol_cv_sys_linux_threads = yes; then
10594 ol_cv_linux_threads=yes
10595 elif test $ol_cv_header_linux_threads = no -a \
10596 $ol_cv_sys_linux_threads = no; then
10597 ol_cv_linux_threads=no
10599 ol_cv_linux_threads=error
10604 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10607 if test $ol_cv_linux_threads = error; then
10608 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10611 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10612 echo "configure:10613: checking if pthread_create() works" >&5
10613 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10617 if test "$cross_compiling" = yes; then
10618 ol_cv_pthread_create_works=yes
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* pthread test headers */
10624 #include <pthread.h>
10626 #define NULL (void*)0
10629 static void *task(p)
10632 return (void *) (p == NULL);
10636 int main(argc, argv)
10641 /* pthread test function */
10644 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10645 /* This system (e.g. AIX) defaults detached; must override */
10646 pthread_attr_t attr;
10648 status = pthread_attr_init(&attr);
10649 if( status ) exit( status );
10651 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10652 if( status ) exit( status );
10656 #if HAVE_PTHREADS_D4
10657 #define ATTR pthread_attr_default
10662 /* make sure pthread_create() isn't just a stub */
10663 status = pthread_create(&t, ATTR, task, NULL);
10664 if( status ) exit( status );
10666 /* make sure pthread_detach() isn't just a stub */
10667 #if HAVE_PTHREADS_D4
10668 status = pthread_detach( &t );
10670 status = pthread_detach( t );
10673 #ifdef HAVE_LINUX_THREADS
10674 pthread_kill_other_threads_np();
10682 if { (eval echo configure:10683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10684 ol_cv_pthread_create_works=yes
10686 echo "configure: failed program was:" >&5
10687 cat conftest.$ac_ext >&5
10689 ol_cv_pthread_create_works=no
10696 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10698 if test $ol_cv_pthread_create_works = no ; then
10699 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10702 if test $ol_with_yielding_select = auto ; then
10703 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10704 echo "configure:10705: checking if select yields when using pthreads" >&5
10705 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10709 if test "$cross_compiling" = yes; then
10710 ol_cv_pthread_select_yields=cross
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10716 #include <sys/types.h>
10717 #include <sys/time.h>
10718 #include <unistd.h>
10719 #include <pthread.h>
10721 #define NULL (void*) 0
10724 static int fildes[2];
10726 static void *task(p)
10738 FD_SET(fildes[0], &rfds);
10740 /* we're not interested in any fds */
10741 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10748 exit(0); /* if we exit here, the select blocked the whole process */
10751 int main(argc, argv)
10757 /* create a pipe to select */
10758 if(pipe(&fildes[0])) {
10763 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10764 (void) pthread_setconcurrency(2);
10766 #ifdef HAVE_THR_SETCONCURRENCY
10767 /* Set Solaris LWP concurrency to 2 */
10768 thr_setconcurrency(2);
10772 #if HAVE_PTHREADS_D4
10773 pthread_create(&t, pthread_attr_default, task, NULL);
10775 pthread_create(&t, NULL, task, NULL);
10778 #if HAVE_SCHED_YIELD
10779 sched_yield(); /* make sure task runs first */
10781 #ifdef HAVE_PTHREAD_YIELD
10782 pthread_yield(); /* make sure task runs first */
10789 if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10791 ol_cv_pthread_select_yields=no
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10796 ol_cv_pthread_select_yields=yes
10803 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10805 if test $ol_cv_pthread_select_yields = cross ; then
10806 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10809 if test $ol_cv_pthread_select_yields = yes ; then
10810 ol_with_yielding_select=yes
10814 CPPFLAGS="$save_CPPFLAGS"
10817 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10821 if test $ol_with_threads = posix ; then
10822 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10826 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10827 -o $ol_with_threads = mach ; then
10829 for ac_hdr in mach/cthreads.h
10831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10833 echo "configure:10834: checking for $ac_hdr" >&5
10834 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure"
10839 #include "confdefs.h"
10842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10843 { (eval echo configure:10844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10845 if test -z "$ac_err"; then
10847 eval "ac_cv_header_$ac_safe=yes"
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10853 eval "ac_cv_header_$ac_safe=no"
10857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10860 cat >> confdefs.h <<EOF
10861 #define $ac_tr_hdr 1
10865 echo "$ac_t""no" 1>&6
10869 if test $ac_cv_header_mach_cthreads_h = yes ; then
10870 ol_with_threads=found
10872 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10873 echo "configure:10874: checking for cthread_fork" >&5
10874 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 /* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char cthread_fork(); below. */
10882 #include <assert.h>
10883 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char cthread_fork();
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10904 eval "ac_cv_func_cthread_fork=yes"
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10909 eval "ac_cv_func_cthread_fork=no"
10914 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10916 ol_link_threads=yes
10918 echo "$ac_t""no" 1>&6
10922 if test $ol_link_threads = no ; then
10923 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10924 echo "configure:10925: checking for cthread_fork with -all_load" >&5
10925 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10930 LIBS="-all_load $LIBS"
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 #include <mach/cthreads.h>
10937 cthread_fork((void *)0, (void *)0);
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10943 ol_cv_cthread_all_load=yes
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10948 ol_cv_cthread_all_load=no
10955 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10957 if test $ol_cv_cthread_all_load = yes ; then
10958 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10959 ol_link_threads=mach
10963 if test $ol_link_threads != no ; then
10964 : check for cthread specific functionality here
10965 cat >> confdefs.h <<\EOF
10966 #define HAVE_MACH_CTHREADS 1
10970 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10974 if test $ol_with_threads = mach ; then
10975 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10979 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10980 -o $ol_with_threads = pth ; then
10982 for ac_hdr in pth.h
10984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10986 echo "configure:10987: checking for $ac_hdr" >&5
10987 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10996 { (eval echo configure:10997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10998 if test -z "$ac_err"; then
11000 eval "ac_cv_header_$ac_safe=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_header_$ac_safe=no"
11010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11013 cat >> confdefs.h <<EOF
11014 #define $ac_tr_hdr 1
11018 echo "$ac_t""no" 1>&6
11023 if test $ac_cv_header_pth_h = yes ; then
11024 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11025 echo "configure:11026: checking for pth_version in -lpth" >&5
11026 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11027 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11030 ac_save_LIBS="$LIBS"
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 /* We use char because int might match the return type of a gcc2
11037 builtin and then its argument prototype would still apply. */
11038 char pth_version();
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11046 eval "ac_cv_lib_$ac_lib_var=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_lib_$ac_lib_var=no"
11054 LIBS="$ac_save_LIBS"
11057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11058 echo "$ac_t""yes" 1>&6
11061 echo "$ac_t""no" 1>&6
11066 if test $have_pth = yes ; then
11067 cat >> confdefs.h <<\EOF
11068 #define HAVE_GNU_PTH 1
11071 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11072 ol_link_threads=pth
11074 if test $ol_with_yielding_select = auto ; then
11075 ol_with_yielding_select=yes
11081 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11082 -o $ol_with_threads = lwp ; then
11084 for ac_hdr in thread.h synch.h
11086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11088 echo "configure:11089: checking for $ac_hdr" >&5
11089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11098 { (eval echo configure:11099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11100 if test -z "$ac_err"; then
11102 eval "ac_cv_header_$ac_safe=yes"
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11108 eval "ac_cv_header_$ac_safe=no"
11112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11113 echo "$ac_t""yes" 1>&6
11114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11115 cat >> confdefs.h <<EOF
11116 #define $ac_tr_hdr 1
11120 echo "$ac_t""no" 1>&6
11124 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11125 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11126 echo "configure:11127: checking for thr_create in -lthread" >&5
11127 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11131 ac_save_LIBS="$LIBS"
11132 LIBS="-lthread $LIBS"
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11147 eval "ac_cv_lib_$ac_lib_var=yes"
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11152 eval "ac_cv_lib_$ac_lib_var=no"
11155 LIBS="$ac_save_LIBS"
11158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11159 echo "$ac_t""yes" 1>&6
11162 echo "$ac_t""no" 1>&6
11167 if test $have_thr = yes ; then
11168 cat >> confdefs.h <<\EOF
11172 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11173 ol_link_threads=thr
11175 if test $ol_with_yielding_select = auto ; then
11176 ol_with_yielding_select=yes
11180 thr_setconcurrency \
11181 thr_getconcurrency \
11184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11185 echo "configure:11186: checking for $ac_func" >&5
11186 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 /* System header to define __stub macros and hopefully few prototypes,
11193 which can conflict with char $ac_func(); below. */
11194 #include <assert.h>
11195 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11216 eval "ac_cv_func_$ac_func=yes"
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11221 eval "ac_cv_func_$ac_func=no"
11226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11227 echo "$ac_t""yes" 1>&6
11228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11229 cat >> confdefs.h <<EOF
11230 #define $ac_tr_func 1
11234 echo "$ac_t""no" 1>&6
11241 for ac_hdr in lwp/lwp.h
11243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11245 echo "configure:11246: checking for $ac_hdr" >&5
11246 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11255 { (eval echo configure:11256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11257 if test -z "$ac_err"; then
11259 eval "ac_cv_header_$ac_safe=yes"
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 eval "ac_cv_header_$ac_safe=no"
11269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
11271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11272 cat >> confdefs.h <<EOF
11273 #define $ac_tr_hdr 1
11277 echo "$ac_t""no" 1>&6
11281 if test $ac_cv_header_lwp_lwp_h = yes ; then
11282 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11283 echo "configure:11284: checking for lwp_create in -llwp" >&5
11284 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11285 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11286 echo $ac_n "(cached) $ac_c" 1>&6
11288 ac_save_LIBS="$LIBS"
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */
11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11304 eval "ac_cv_lib_$ac_lib_var=yes"
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 eval "ac_cv_lib_$ac_lib_var=no"
11312 LIBS="$ac_save_LIBS"
11315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11319 echo "$ac_t""no" 1>&6
11324 if test $have_lwp = yes ; then
11325 cat >> confdefs.h <<\EOF
11329 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11330 ol_link_threads=lwp
11332 if test $ol_with_yielding_select = auto ; then
11333 ol_with_yielding_select=no
11339 if test $ol_with_yielding_select = yes ; then
11340 cat >> confdefs.h <<\EOF
11341 #define HAVE_YIELDING_SELECT 1
11346 if test $ol_with_threads = manual ; then
11347 ol_link_threads=yes
11349 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11351 for ac_hdr in pthread.h sched.h
11353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11355 echo "configure:11356: checking for $ac_hdr" >&5
11356 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11359 cat > conftest.$ac_ext <<EOF
11360 #line 11361 "configure"
11361 #include "confdefs.h"
11364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11365 { (eval echo configure:11366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11367 if test -z "$ac_err"; then
11369 eval "ac_cv_header_$ac_safe=yes"
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11375 eval "ac_cv_header_$ac_safe=no"
11379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11382 cat >> confdefs.h <<EOF
11383 #define $ac_tr_hdr 1
11387 echo "$ac_t""no" 1>&6
11391 for ac_func in sched_yield pthread_yield
11393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11394 echo "configure:11395: checking for $ac_func" >&5
11395 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 /* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char $ac_func(); below. */
11403 #include <assert.h>
11404 /* Override any gcc2 internal prototype to avoid an error. */
11405 /* We use char because int might match the return type of a gcc2
11406 builtin and then its argument prototype would still apply. */
11412 /* The GNU C library defines this for functions which it implements
11413 to always fail with ENOSYS. Some functions are actually named
11414 something starting with __ and the normal name is an alias. */
11415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11425 eval "ac_cv_func_$ac_func=yes"
11427 echo "configure: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11430 eval "ac_cv_func_$ac_func=no"
11435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11436 echo "$ac_t""yes" 1>&6
11437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11438 cat >> confdefs.h <<EOF
11439 #define $ac_tr_func 1
11443 echo "$ac_t""no" 1>&6
11448 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11449 echo "configure:11450: checking for LinuxThreads pthread.h" >&5
11450 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include <pthread.h>
11458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11459 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11461 ol_cv_header_linux_threads=yes
11464 ol_cv_header_linux_threads=no
11471 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11472 if test $ol_cv_header_linux_threads = yes; then
11473 cat >> confdefs.h <<\EOF
11474 #define HAVE_LINUX_THREADS 1
11480 for ac_hdr in mach/cthreads.h
11482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11484 echo "configure:11485: checking for $ac_hdr" >&5
11485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11486 echo $ac_n "(cached) $ac_c" 1>&6
11488 cat > conftest.$ac_ext <<EOF
11489 #line 11490 "configure"
11490 #include "confdefs.h"
11493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11494 { (eval echo configure:11495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11496 if test -z "$ac_err"; then
11498 eval "ac_cv_header_$ac_safe=yes"
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11504 eval "ac_cv_header_$ac_safe=no"
11508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11509 echo "$ac_t""yes" 1>&6
11510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11511 cat >> confdefs.h <<EOF
11512 #define $ac_tr_hdr 1
11516 echo "$ac_t""no" 1>&6
11520 for ac_hdr in lwp/lwp.h
11522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11524 echo "configure:11525: checking for $ac_hdr" >&5
11525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11526 echo $ac_n "(cached) $ac_c" 1>&6
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11534 { (eval echo configure:11535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11536 if test -z "$ac_err"; then
11538 eval "ac_cv_header_$ac_safe=yes"
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11544 eval "ac_cv_header_$ac_safe=no"
11548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11549 echo "$ac_t""yes" 1>&6
11550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11551 cat >> confdefs.h <<EOF
11552 #define $ac_tr_hdr 1
11556 echo "$ac_t""no" 1>&6
11560 for ac_hdr in thread.h synch.h
11562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11564 echo "configure:11565: checking for $ac_hdr" >&5
11565 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11568 cat > conftest.$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11574 { (eval echo configure:11575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11576 if test -z "$ac_err"; then
11578 eval "ac_cv_header_$ac_safe=yes"
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11584 eval "ac_cv_header_$ac_safe=no"
11588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11589 echo "$ac_t""yes" 1>&6
11590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11591 cat >> confdefs.h <<EOF
11592 #define $ac_tr_hdr 1
11596 echo "$ac_t""no" 1>&6
11602 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11603 cat >> confdefs.h <<\EOF
11604 #define REENTRANT 1
11607 cat >> confdefs.h <<\EOF
11608 #define _REENTRANT 1
11611 cat >> confdefs.h <<\EOF
11612 #define THREAD_SAFE 1
11615 cat >> confdefs.h <<\EOF
11616 #define _THREAD_SAFE 1
11619 cat >> confdefs.h <<\EOF
11620 #define THREADSAFE 1
11623 cat >> confdefs.h <<\EOF
11624 #define _THREADSAFE 1
11627 cat >> confdefs.h <<\EOF
11628 #define _SGI_MP_SOURCE 1
11632 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11633 echo "configure:11634: checking for thread specific errno" >&5
11634 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11646 if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11648 ol_cv_errno_thread_specific=yes
11650 echo "configure: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11653 ol_cv_errno_thread_specific=no
11659 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11661 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11662 echo "configure:11663: checking for thread specific h_errno" >&5
11663 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11664 echo $ac_n "(cached) $ac_c" 1>&6
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11677 ol_cv_h_errno_thread_specific=yes
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11682 ol_cv_h_errno_thread_specific=no
11688 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11690 if test $ol_cv_errno_thread_specific != yes \
11691 -o $ol_cv_h_errno_thread_specific != yes ; then
11692 LIBS="$LTHREAD_LIBS $LIBS"
11698 if test $ol_link_threads = no ; then
11699 if test $ol_with_threads = yes ; then
11700 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11703 if test $ol_with_threads = auto ; then
11704 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11708 cat >> confdefs.h <<\EOF
11709 #define NO_THREADS 1
11715 if test $ol_link_threads != no ; then
11716 cat >> confdefs.h <<\EOF
11717 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11724 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11725 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11726 echo "configure:11727: checking for DB2 library" >&5
11727 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11728 echo $ac_n "(cached) $ac_c" 1>&6
11731 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11732 echo "configure:11733: checking for db_appexit in -ldb" >&5
11733 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11734 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11737 ac_save_LIBS="$LIBS"
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11742 /* Override any gcc2 internal prototype to avoid an error. */
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11753 eval "ac_cv_lib_$ac_lib_var=yes"
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11758 eval "ac_cv_lib_$ac_lib_var=no"
11761 LIBS="$ac_save_LIBS"
11764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11765 echo "$ac_t""yes" 1>&6
11768 echo "$ac_t""no" 1>&6
11776 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11782 echo "configure:11783: checking for $ac_hdr" >&5
11783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
11786 cat > conftest.$ac_ext <<EOF
11787 #line 11788 "configure"
11788 #include "confdefs.h"
11791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11792 { (eval echo configure:11793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11794 if test -z "$ac_err"; then
11796 eval "ac_cv_header_$ac_safe=yes"
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11802 eval "ac_cv_header_$ac_safe=no"
11806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11807 echo "$ac_t""yes" 1>&6
11808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11809 cat >> confdefs.h <<EOF
11810 #define $ac_tr_hdr 1
11814 echo "$ac_t""no" 1>&6
11818 if test $ac_cv_header_db_h = yes ; then
11819 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11820 echo "configure:11821: checking if db.h is DB2" >&5
11821 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11822 echo $ac_n "(cached) $ac_c" 1>&6
11825 cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11830 /* this check could be improved */
11831 # ifdef DB_VERSION_MAJOR
11832 # if DB_VERSION_MAJOR == 2
11838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11839 egrep "__db_version_2" >/dev/null 2>&1; then
11841 ol_cv_header_db2=yes
11844 ol_cv_header_db2=no
11850 echo "$ac_t""$ol_cv_header_db2" 1>&6
11852 ol_cv_header_db2=no
11857 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11858 echo "configure:11859: checking for Berkeley DB2" >&5
11859 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11860 echo $ac_n "(cached) $ac_c" 1>&6
11863 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11864 ol_cv_berkeley_db2=no
11866 ol_cv_berkeley_db2=yes
11871 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11872 if test $ol_cv_berkeley_db2 = yes ; then
11873 cat >> confdefs.h <<\EOF
11874 #define HAVE_BERKELEY_DB2 1
11880 if test $ol_cv_berkeley_db2 = yes ; then
11882 ol_with_ldbm_api=db2
11884 if test $ol_with_ldbm_type = hash ; then
11885 cat >> confdefs.h <<\EOF
11886 #define LDBM_USE_DBHASH 1
11890 cat >> confdefs.h <<\EOF
11891 #define LDBM_USE_DBBTREE 1
11896 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11897 echo "configure:11898: checking for DB_THREAD support" >&5
11898 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11899 echo $ac_n "(cached) $ac_c" 1>&6
11903 if test $ol_cv_lib_db2 != yes ; then
11904 LIBS="$ol_cv_lib_db2"
11907 if test "$cross_compiling" = yes; then
11908 ol_cv_berkeley_db2_db_thread=cross
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11916 #define NULL ((void *)0)
11922 u_int32_t flags = DB_CREATE | DB_THREAD;
11924 memset( &env, '\0', sizeof(env) );
11926 rc = db_appinit( NULL, NULL, &env, flags );
11929 db_appexit( &env );
11935 if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11937 ol_cv_berkeley_db2_db_thread=yes
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11942 ol_cv_berkeley_db2_db_thread=no
11950 if test $ol_cv_berkeley_db2_db_thread != no ; then
11951 cat >> confdefs.h <<\EOF
11952 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11959 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11961 if test $ol_cv_lib_db2 != yes ; then
11962 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11968 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11969 if test $ol_cv_berkeley_db2_db_thread != no ; then
11972 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11976 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11977 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11978 echo "configure:11979: checking for Berkeley DB library" >&5
11979 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11980 echo $ac_n "(cached) $ac_c" 1>&6
11983 for ac_hdr in db1/db.h
11985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11987 echo "configure:11988: checking for $ac_hdr" >&5
11988 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11989 echo $ac_n "(cached) $ac_c" 1>&6
11991 cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11997 { (eval echo configure:11998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11999 if test -z "$ac_err"; then
12001 eval "ac_cv_header_$ac_safe=yes"
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12007 eval "ac_cv_header_$ac_safe=no"
12011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12012 echo "$ac_t""yes" 1>&6
12013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12014 cat >> confdefs.h <<EOF
12015 #define $ac_tr_hdr 1
12019 echo "$ac_t""no" 1>&6
12024 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
12025 echo "configure:12026: checking for dbopen" >&5
12026 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
12027 echo $ac_n "(cached) $ac_c" 1>&6
12029 cat > conftest.$ac_ext <<EOF
12030 #line 12031 "configure"
12031 #include "confdefs.h"
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char dbopen(); below. */
12034 #include <assert.h>
12035 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12043 /* The GNU C library defines this for functions which it implements
12044 to always fail with ENOSYS. Some functions are actually named
12045 something starting with __ and the normal name is an alias. */
12046 #if defined (__stub_dbopen) || defined (__stub___dbopen)
12054 if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12056 eval "ac_cv_func_dbopen=yes"
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12061 eval "ac_cv_func_dbopen=no"
12066 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
12067 echo "$ac_t""yes" 1>&6
12070 echo "$ac_t""no" 1>&6
12072 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
12073 echo "configure:12074: checking for dbopen in -ldb1" >&5
12074 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
12075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12078 ac_save_LIBS="$LIBS"
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12094 eval "ac_cv_lib_$ac_lib_var=yes"
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12099 eval "ac_cv_lib_$ac_lib_var=no"
12102 LIBS="$ac_save_LIBS"
12105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12109 echo "$ac_t""no" 1>&6
12111 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
12112 echo "configure:12113: checking for dbopen in -ldb" >&5
12113 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
12114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12115 echo $ac_n "(cached) $ac_c" 1>&6
12117 ac_save_LIBS="$LIBS"
12119 cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure"
12121 #include "confdefs.h"
12122 /* Override any gcc2 internal prototype to avoid an error. */
12123 /* We use char because int might match the return type of a gcc2
12124 builtin and then its argument prototype would still apply. */
12131 if { (eval echo configure:12132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12133 eval "ac_cv_lib_$ac_lib_var=yes"
12135 echo "configure: failed program was:" >&5
12136 cat conftest.$ac_ext >&5
12138 eval "ac_cv_lib_$ac_lib_var=no"
12141 LIBS="$ac_save_LIBS"
12144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12145 echo "$ac_t""yes" 1>&6
12148 echo "$ac_t""no" 1>&6
12162 echo "$ac_t""$ol_cv_lib_db" 1>&6
12165 for ac_hdr in db_185.h
12167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12169 echo "configure:12170: checking for $ac_hdr" >&5
12170 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12173 cat > conftest.$ac_ext <<EOF
12174 #line 12175 "configure"
12175 #include "confdefs.h"
12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12181 if test -z "$ac_err"; then
12183 eval "ac_cv_header_$ac_safe=yes"
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12189 eval "ac_cv_header_$ac_safe=no"
12193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12194 echo "$ac_t""yes" 1>&6
12195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12196 cat >> confdefs.h <<EOF
12197 #define $ac_tr_hdr 1
12201 echo "$ac_t""no" 1>&6
12205 if test "$ol_cv_header_db2" = yes ; then
12207 ol_cv_header_db=$ac_cv_header_db_185_h
12209 ol_cv_header_db=$ac_cv_header_db_h
12214 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
12215 echo "configure:12216: checking for Berkeley DB" >&5
12216 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12220 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
12221 ol_cv_berkeley_db=no
12223 ol_cv_berkeley_db=yes
12228 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
12229 if test $ol_cv_berkeley_db = yes ; then
12230 cat >> confdefs.h <<\EOF
12231 #define HAVE_BERKELEY_DB 1
12237 if test $ol_cv_berkeley_db = yes ; then
12239 ol_with_ldbm_api=db
12241 if test $ol_with_ldbm_type = hash ; then
12242 cat >> confdefs.h <<\EOF
12243 #define LDBM_USE_DBHASH 1
12247 cat >> confdefs.h <<\EOF
12248 #define LDBM_USE_DBBTREE 1
12253 if test $ol_cv_lib_db != yes ; then
12254 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12259 if test $ol_with_ldbm_api = manual ; then
12262 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
12264 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
12266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12268 echo "configure:12269: checking for $ac_hdr" >&5
12269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12278 { (eval echo configure:12279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12280 if test -z "$ac_err"; then
12282 eval "ac_cv_header_$ac_safe=yes"
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12288 eval "ac_cv_header_$ac_safe=no"
12292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12293 echo "$ac_t""yes" 1>&6
12294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12295 cat >> confdefs.h <<EOF
12296 #define $ac_tr_hdr 1
12300 echo "$ac_t""no" 1>&6
12306 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12307 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12308 ol_with_ldbm_api=none
12311 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12312 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12313 echo "configure:12314: checking for MDBM library" >&5
12314 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12315 echo $ac_n "(cached) $ac_c" 1>&6
12318 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12319 echo "configure:12320: checking for mdbm_set_chain" >&5
12320 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12321 echo $ac_n "(cached) $ac_c" 1>&6
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12326 /* System header to define __stub macros and hopefully few prototypes,
12327 which can conflict with char mdbm_set_chain(); below. */
12328 #include <assert.h>
12329 /* Override any gcc2 internal prototype to avoid an error. */
12330 /* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12332 char mdbm_set_chain();
12337 /* The GNU C library defines this for functions which it implements
12338 to always fail with ENOSYS. Some functions are actually named
12339 something starting with __ and the normal name is an alias. */
12340 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12343 f = mdbm_set_chain;
12348 if { (eval echo configure:12349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12350 eval "ac_cv_func_mdbm_set_chain=yes"
12352 echo "configure: failed program was:" >&5
12353 cat conftest.$ac_ext >&5
12355 eval "ac_cv_func_mdbm_set_chain=no"
12360 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12361 echo "$ac_t""yes" 1>&6
12364 echo "$ac_t""no" 1>&6
12366 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12367 echo "configure:12368: checking for mdbm_set_chain in -lmdbm" >&5
12368 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12370 echo $ac_n "(cached) $ac_c" 1>&6
12372 ac_save_LIBS="$LIBS"
12373 LIBS="-lmdbm $LIBS"
12374 cat > conftest.$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12377 /* Override any gcc2 internal prototype to avoid an error. */
12378 /* We use char because int might match the return type of a gcc2
12379 builtin and then its argument prototype would still apply. */
12380 char mdbm_set_chain();
12386 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12388 eval "ac_cv_lib_$ac_lib_var=yes"
12390 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5
12393 eval "ac_cv_lib_$ac_lib_var=no"
12396 LIBS="$ac_save_LIBS"
12399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12400 echo "$ac_t""yes" 1>&6
12401 ol_cv_lib_mdbm=-lmdbm
12403 echo "$ac_t""no" 1>&6
12414 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12417 for ac_hdr in mdbm.h
12419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12421 echo "configure:12422: checking for $ac_hdr" >&5
12422 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12431 { (eval echo configure:12432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12433 if test -z "$ac_err"; then
12435 eval "ac_cv_header_$ac_safe=yes"
12438 echo "configure: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12441 eval "ac_cv_header_$ac_safe=no"
12445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12446 echo "$ac_t""yes" 1>&6
12447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12448 cat >> confdefs.h <<EOF
12449 #define $ac_tr_hdr 1
12453 echo "$ac_t""no" 1>&6
12457 echo $ac_n "checking for db""... $ac_c" 1>&6
12458 echo "configure:12459: checking for db" >&5
12459 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12460 echo $ac_n "(cached) $ac_c" 1>&6
12463 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12471 echo "$ac_t""$ol_cv_mdbm" 1>&6
12472 if test $ol_cv_mdbm = yes ; then
12473 cat >> confdefs.h <<\EOF
12474 #define HAVE_MDBM 1
12480 if test $ol_cv_mdbm = yes ; then
12482 ol_with_ldbm_api=mdbm
12483 if test $ol_cv_lib_mdbm != yes ; then
12484 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12489 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12490 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12491 echo "configure:12492: checking for GDBM library" >&5
12492 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12496 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12497 echo "configure:12498: checking for gdbm_open" >&5
12498 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* System header to define __stub macros and hopefully few prototypes,
12505 which can conflict with char gdbm_open(); below. */
12506 #include <assert.h>
12507 /* Override any gcc2 internal prototype to avoid an error. */
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12515 /* The GNU C library defines this for functions which it implements
12516 to always fail with ENOSYS. Some functions are actually named
12517 something starting with __ and the normal name is an alias. */
12518 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12526 if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528 eval "ac_cv_func_gdbm_open=yes"
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12533 eval "ac_cv_func_gdbm_open=no"
12538 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12539 echo "$ac_t""yes" 1>&6
12542 echo "$ac_t""no" 1>&6
12544 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12545 echo "configure:12546: checking for gdbm_open in -lgdbm" >&5
12546 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12547 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12548 echo $ac_n "(cached) $ac_c" 1>&6
12550 ac_save_LIBS="$LIBS"
12551 LIBS="-lgdbm $LIBS"
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 /* Override any gcc2 internal prototype to avoid an error. */
12556 /* We use char because int might match the return type of a gcc2
12557 builtin and then its argument prototype would still apply. */
12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566 eval "ac_cv_lib_$ac_lib_var=yes"
12568 echo "configure: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12571 eval "ac_cv_lib_$ac_lib_var=no"
12574 LIBS="$ac_save_LIBS"
12577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12578 echo "$ac_t""yes" 1>&6
12579 ol_cv_lib_gdbm=-lgdbm
12581 echo "$ac_t""no" 1>&6
12592 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12595 for ac_hdr in gdbm.h
12597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12599 echo "configure:12600: checking for $ac_hdr" >&5
12600 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12603 cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12609 { (eval echo configure:12610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12611 if test -z "$ac_err"; then
12613 eval "ac_cv_header_$ac_safe=yes"
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12619 eval "ac_cv_header_$ac_safe=no"
12623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12624 echo "$ac_t""yes" 1>&6
12625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12626 cat >> confdefs.h <<EOF
12627 #define $ac_tr_hdr 1
12631 echo "$ac_t""no" 1>&6
12635 echo $ac_n "checking for db""... $ac_c" 1>&6
12636 echo "configure:12637: checking for db" >&5
12637 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12638 echo $ac_n "(cached) $ac_c" 1>&6
12641 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12649 echo "$ac_t""$ol_cv_gdbm" 1>&6
12650 if test $ol_cv_gdbm = yes ; then
12651 cat >> confdefs.h <<\EOF
12652 #define HAVE_GDBM 1
12658 if test $ol_cv_gdbm = yes ; then
12660 ol_with_ldbm_api=gdbm
12662 if test $ol_cv_lib_gdbm != yes ; then
12663 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12668 if test $ol_with_ldbm_api = ndbm ; then
12669 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12670 echo "configure:12671: checking for NDBM library" >&5
12671 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12672 echo $ac_n "(cached) $ac_c" 1>&6
12675 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12676 echo "configure:12677: checking for dbm_open" >&5
12677 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12680 cat > conftest.$ac_ext <<EOF
12681 #line 12682 "configure"
12682 #include "confdefs.h"
12683 /* System header to define __stub macros and hopefully few prototypes,
12684 which can conflict with char dbm_open(); below. */
12685 #include <assert.h>
12686 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12694 /* The GNU C library defines this for functions which it implements
12695 to always fail with ENOSYS. Some functions are actually named
12696 something starting with __ and the normal name is an alias. */
12697 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12705 if { (eval echo configure:12706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12707 eval "ac_cv_func_dbm_open=yes"
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 eval "ac_cv_func_dbm_open=no"
12717 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12718 echo "$ac_t""yes" 1>&6
12721 echo "$ac_t""no" 1>&6
12723 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12724 echo "configure:12725: checking for dbm_open in -lndbm" >&5
12725 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12726 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12727 echo $ac_n "(cached) $ac_c" 1>&6
12729 ac_save_LIBS="$LIBS"
12730 LIBS="-lndbm $LIBS"
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 /* Override any gcc2 internal prototype to avoid an error. */
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12743 if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12745 eval "ac_cv_lib_$ac_lib_var=yes"
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12750 eval "ac_cv_lib_$ac_lib_var=no"
12753 LIBS="$ac_save_LIBS"
12756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12757 echo "$ac_t""yes" 1>&6
12758 ol_cv_lib_ndbm=-lndbm
12760 echo "$ac_t""no" 1>&6
12762 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12763 echo "configure:12764: checking for dbm_open in -ldbm" >&5
12764 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12765 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12768 ac_save_LIBS="$LIBS"
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773 /* Override any gcc2 internal prototype to avoid an error. */
12774 /* We use char because int might match the return type of a gcc2
12775 builtin and then its argument prototype would still apply. */
12782 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12784 eval "ac_cv_lib_$ac_lib_var=yes"
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12789 eval "ac_cv_lib_$ac_lib_var=no"
12792 LIBS="$ac_save_LIBS"
12795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12796 echo "$ac_t""yes" 1>&6
12797 ol_cv_lib_ndbm=-ldbm
12799 echo "$ac_t""no" 1>&6
12812 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12815 for ac_hdr in ndbm.h
12817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12819 echo "configure:12820: checking for $ac_hdr" >&5
12820 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12821 echo $ac_n "(cached) $ac_c" 1>&6
12823 cat > conftest.$ac_ext <<EOF
12824 #line 12825 "configure"
12825 #include "confdefs.h"
12828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12829 { (eval echo configure:12830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12831 if test -z "$ac_err"; then
12833 eval "ac_cv_header_$ac_safe=yes"
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12839 eval "ac_cv_header_$ac_safe=no"
12843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12844 echo "$ac_t""yes" 1>&6
12845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12846 cat >> confdefs.h <<EOF
12847 #define $ac_tr_hdr 1
12851 echo "$ac_t""no" 1>&6
12855 echo $ac_n "checking for db""... $ac_c" 1>&6
12856 echo "configure:12857: checking for db" >&5
12857 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12858 echo $ac_n "(cached) $ac_c" 1>&6
12861 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12869 echo "$ac_t""$ol_cv_ndbm" 1>&6
12870 if test $ol_cv_ndbm = yes ; then
12871 cat >> confdefs.h <<\EOF
12872 #define HAVE_NDBM 1
12878 if test $ol_cv_ndbm = yes ; then
12880 ol_with_ldbm_api=ndbm
12882 if test $ol_cv_lib_ndbm != yes ; then
12883 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12888 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12889 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12890 if test $ol_enable_ldbm = yes ; then
12891 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12894 echo "configure: warning: disabling LDBM" 1>&2
12898 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12899 LINK_BINS_DYNAMIC="yes"
12901 LINK_BINS_DYNAMIC="no"
12904 if test $ol_enable_wrappers != no ; then
12905 for ac_hdr in tcpd.h
12907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12909 echo "configure:12910: checking for $ac_hdr" >&5
12910 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12911 echo $ac_n "(cached) $ac_c" 1>&6
12913 cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure"
12915 #include "confdefs.h"
12918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12919 { (eval echo configure:12920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12921 if test -z "$ac_err"; then
12923 eval "ac_cv_header_$ac_safe=yes"
12926 echo "configure: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12929 eval "ac_cv_header_$ac_safe=no"
12933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12934 echo "$ac_t""yes" 1>&6
12935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12936 cat >> confdefs.h <<EOF
12937 #define $ac_tr_hdr 1
12941 echo "$ac_t""no" 1>&6
12946 if test $ac_cv_header_tcpd_h != yes ; then
12949 cat > conftest.$ac_ext <<EOF
12950 #line 12951 "configure"
12951 #include "confdefs.h"
12953 int allow_severity = 0;
12954 int deny_severity = 0;
12960 if { (eval echo configure:12961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12964 echo "configure: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12972 if test $have_wrappers = yes ; then
12973 cat >> confdefs.h <<\EOF
12974 #define HAVE_TCPD 1
12979 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12980 echo "configure:12981: checking for main in -lnsl" >&5
12981 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12982 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12983 echo $ac_n "(cached) $ac_c" 1>&6
12985 ac_save_LIBS="$LIBS"
12987 cat > conftest.$ac_ext <<EOF
12988 #line 12989 "configure"
12989 #include "confdefs.h"
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12997 eval "ac_cv_lib_$ac_lib_var=yes"
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13002 eval "ac_cv_lib_$ac_lib_var=no"
13005 LIBS="$ac_save_LIBS"
13008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13009 echo "$ac_t""yes" 1>&6
13010 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13012 cat >> confdefs.h <<EOF
13013 #define $ac_tr_lib 1
13019 echo "$ac_t""no" 1>&6
13023 echo "configure: warning: could not find -lwrap" 1>&2
13024 if test $ol_enable_wrappers = yes ; then
13025 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13028 echo "configure: warning: disabling wrappers support" 1>&2
13029 ol_enable_wrappers=no
13034 if test $ol_enable_syslog != no ; then
13035 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13036 echo "configure:13037: checking for openlog" >&5
13037 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13038 echo $ac_n "(cached) $ac_c" 1>&6
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char openlog(); below. */
13045 #include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13054 /* The GNU C library defines this for functions which it implements
13055 to always fail with ENOSYS. Some functions are actually named
13056 something starting with __ and the normal name is an alias. */
13057 #if defined (__stub_openlog) || defined (__stub___openlog)
13065 if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13067 eval "ac_cv_func_openlog=yes"
13069 echo "configure: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13072 eval "ac_cv_func_openlog=no"
13077 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13078 echo "$ac_t""yes" 1>&6
13081 echo "$ac_t""no" 1>&6
13084 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13085 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13087 ol_enable_syslog=$ac_cv_func_openlog
13090 if test $ol_enable_dmalloc != no ; then
13091 for ac_hdr in dmalloc.h
13093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13095 echo "configure:13096: checking for $ac_hdr" >&5
13096 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13099 cat > conftest.$ac_ext <<EOF
13100 #line 13101 "configure"
13101 #include "confdefs.h"
13104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13105 { (eval echo configure:13106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13107 if test -z "$ac_err"; then
13109 eval "ac_cv_header_$ac_safe=yes"
13112 echo "configure: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13115 eval "ac_cv_header_$ac_safe=no"
13119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13120 echo "$ac_t""yes" 1>&6
13121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13122 cat >> confdefs.h <<EOF
13123 #define $ac_tr_hdr 1
13127 echo "$ac_t""no" 1>&6
13131 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
13132 echo "configure:13133: checking for dmalloc_shutdown in -ldmalloc" >&5
13133 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
13134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
13137 ac_save_LIBS="$LIBS"
13138 LIBS="-ldmalloc $LIBS"
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 /* Override any gcc2 internal prototype to avoid an error. */
13143 /* We use char because int might match the return type of a gcc2
13144 builtin and then its argument prototype would still apply. */
13145 char dmalloc_shutdown();
13151 if { (eval echo configure:13152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13153 eval "ac_cv_lib_$ac_lib_var=yes"
13155 echo "configure: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13158 eval "ac_cv_lib_$ac_lib_var=no"
13161 LIBS="$ac_save_LIBS"
13164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13165 echo "$ac_t""yes" 1>&6
13166 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13168 cat >> confdefs.h <<EOF
13169 #define $ac_tr_lib 1
13172 LIBS="-ldmalloc $LIBS"
13175 echo "$ac_t""no" 1>&6
13180 if test $ol_enable_tcl != no ; then
13181 for ac_hdr in tcl.h
13183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13185 echo "configure:13186: checking for $ac_hdr" >&5
13186 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13187 echo $ac_n "(cached) $ac_c" 1>&6
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13195 { (eval echo configure:13196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13197 if test -z "$ac_err"; then
13199 eval "ac_cv_header_$ac_safe=yes"
13202 echo "configure: failed program was:" >&5
13203 cat conftest.$ac_ext >&5
13205 eval "ac_cv_header_$ac_safe=no"
13209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13210 echo "$ac_t""yes" 1>&6
13211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13212 cat >> confdefs.h <<EOF
13213 #define $ac_tr_hdr 1
13217 echo "$ac_t""no" 1>&6
13222 if test $ac_cv_header_tcl_h != yes ; then
13225 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13226 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13227 echo "configure:13228: checking for main in -l$lib" >&5
13228 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13230 echo $ac_n "(cached) $ac_c" 1>&6
13232 ac_save_LIBS="$LIBS"
13233 LIBS="-l$lib $LIBS"
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13242 if { (eval echo configure:13243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13244 eval "ac_cv_lib_$ac_lib_var=yes"
13246 echo "configure: failed program was:" >&5
13247 cat conftest.$ac_ext >&5
13249 eval "ac_cv_lib_$ac_lib_var=no"
13252 LIBS="$ac_save_LIBS"
13255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13256 echo "$ac_t""yes" 1>&6
13258 if test x"$ol_with_tcl_module" = "xstatic" ; then
13259 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13261 MOD_TCL_LIB="-l${lib}"
13264 echo "$ac_t""no" 1>&6
13271 if test $have_tcl != yes ; then
13272 echo "configure: warning: could not find -ltcl" 1>&2
13273 if test $ol_enable_tcl = yes ; then
13274 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13282 for ac_hdr in termcap.h ncurses.h
13284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13286 echo "configure:13287: checking for $ac_hdr" >&5
13287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13288 echo $ac_n "(cached) $ac_c" 1>&6
13290 cat > conftest.$ac_ext <<EOF
13291 #line 13292 "configure"
13292 #include "confdefs.h"
13295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13296 { (eval echo configure:13297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13298 if test -z "$ac_err"; then
13300 eval "ac_cv_header_$ac_safe=yes"
13303 echo "configure: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13306 eval "ac_cv_header_$ac_safe=no"
13310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13311 echo "$ac_t""yes" 1>&6
13312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13313 cat >> confdefs.h <<EOF
13314 #define $ac_tr_hdr 1
13318 echo "$ac_t""no" 1>&6
13323 if test $ol_link_termcap = no ; then
13324 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13325 echo "configure:13326: checking for tputs in -ltermcap" >&5
13326 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13327 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13328 echo $ac_n "(cached) $ac_c" 1>&6
13330 ac_save_LIBS="$LIBS"
13331 LIBS="-ltermcap $LIBS"
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 /* Override any gcc2 internal prototype to avoid an error. */
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13344 if { (eval echo configure:13345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13346 eval "ac_cv_lib_$ac_lib_var=yes"
13348 echo "configure: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13351 eval "ac_cv_lib_$ac_lib_var=no"
13354 LIBS="$ac_save_LIBS"
13357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13358 echo "$ac_t""yes" 1>&6
13361 echo "$ac_t""no" 1>&6
13365 if test $have_termcap = yes ; then
13366 cat >> confdefs.h <<\EOF
13367 #define HAVE_TERMCAP 1
13370 ol_link_termcap=yes
13371 TERMCAP_LIBS=-ltermcap
13375 if test $ol_link_termcap = no ; then
13376 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13377 echo "configure:13378: checking for initscr in -lncurses" >&5
13378 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13379 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13382 ac_save_LIBS="$LIBS"
13383 LIBS="-lncurses $LIBS"
13384 cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13387 /* Override any gcc2 internal prototype to avoid an error. */
13388 /* We use char because int might match the return type of a gcc2
13389 builtin and then its argument prototype would still apply. */
13396 if { (eval echo configure:13397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13398 eval "ac_cv_lib_$ac_lib_var=yes"
13400 echo "configure: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13403 eval "ac_cv_lib_$ac_lib_var=no"
13406 LIBS="$ac_save_LIBS"
13409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
13413 echo "$ac_t""no" 1>&6
13417 if test $have_ncurses = yes ; then
13418 cat >> confdefs.h <<\EOF
13419 #define HAVE_NCURSES 1
13422 ol_link_termcap=yes
13423 TERMCAP_LIBS=-lncurses
13427 if test $ol_link_termcap = no ; then
13428 cat >> confdefs.h <<\EOF
13429 #define NO_TERMCAP 1
13437 if test $ol_with_cyrus_sasl != no ; then
13438 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13439 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13440 echo "configure:13441: checking for sasl.h" >&5
13441 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13442 echo $ac_n "(cached) $ac_c" 1>&6
13444 cat > conftest.$ac_ext <<EOF
13445 #line 13446 "configure"
13446 #include "confdefs.h"
13449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13450 { (eval echo configure:13451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13452 if test -z "$ac_err"; then
13454 eval "ac_cv_header_$ac_safe=yes"
13457 echo "configure: failed program was:" >&5
13458 cat conftest.$ac_ext >&5
13460 eval "ac_cv_header_$ac_safe=no"
13464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13465 echo "$ac_t""yes" 1>&6
13468 echo "$ac_t""no" 1>&6
13472 if test $ac_cv_header_sasl_h = yes ; then
13473 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13474 echo "configure:13475: checking for sasl_client_init in -lsasl" >&5
13475 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13476 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13479 ac_save_LIBS="$LIBS"
13480 LIBS="-lsasl $LIBS"
13481 cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487 char sasl_client_init();
13493 if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495 eval "ac_cv_lib_$ac_lib_var=yes"
13497 echo "configure: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13500 eval "ac_cv_lib_$ac_lib_var=no"
13503 LIBS="$ac_save_LIBS"
13506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13507 echo "$ac_t""yes" 1>&6
13508 have_cyrus_sasl=yes
13510 echo "$ac_t""no" 1>&6
13515 if test $have_cyrus_sasl != no ; then
13517 cat >> confdefs.h <<\EOF
13518 #define HAVE_CYRUS_SASL 1
13525 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13526 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13530 if test $cross_compiling != yes ; then
13532 if test -r /dev/urandom ; then
13533 dev="/dev/urandom";
13534 elif test -r /idev/urandom ; then
13535 dev="/idev/urandom";
13536 elif test -r /dev/srandom ; then
13537 dev="/dev/srandom";
13538 elif test -r /dev/random ; then
13540 elif test -r /idev/random ; then
13541 dev="/idev/random";
13544 if test $dev != no ; then
13545 cat >> confdefs.h <<EOF
13546 #define URANDOM_DEVICE "$dev"
13553 if test $ol_with_fetch != no ; then
13555 LIBS="-lfetch -lcom_err $LIBS"
13556 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13557 echo "configure:13558: checking fetch(3) library" >&5
13558 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13559 echo $ac_n "(cached) $ac_c" 1>&6
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13566 #include <sys/param.h>
13570 struct url *u = fetchParseURL("file:///");
13573 if { (eval echo configure:13574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13575 ol_cv_lib_fetch=yes
13577 echo "configure: failed program was:" >&5
13578 cat conftest.$ac_ext >&5
13585 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13587 if test $ol_cv_lib_fetch != no ; then
13588 ol_link_fetch="-lfetch -lcom_err"
13589 cat >> confdefs.h <<\EOF
13590 #define HAVE_FETCH 1
13596 if test $ol_cv_lib_fetch != no ; then
13597 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13598 ol_link_fetch=freebsd
13600 elif test $ol_with_fetch != auto ; then
13601 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13605 ol_link_readline=no
13606 if test $ol_with_readline != no ; then
13607 for ac_hdr in readline/readline.h readline/history.h
13609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13611 echo "configure:13612: checking for $ac_hdr" >&5
13612 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13615 cat > conftest.$ac_ext <<EOF
13616 #line 13617 "configure"
13617 #include "confdefs.h"
13620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13621 { (eval echo configure:13622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13623 if test -z "$ac_err"; then
13625 eval "ac_cv_header_$ac_safe=yes"
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13631 eval "ac_cv_header_$ac_safe=no"
13635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13636 echo "$ac_t""yes" 1>&6
13637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13638 cat >> confdefs.h <<EOF
13639 #define $ac_tr_hdr 1
13643 echo "$ac_t""no" 1>&6
13648 if test $ac_cv_header_readline_readline_h = yes ; then
13650 LIBS="$TERMCAP_LIBS $LIBS"
13651 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13652 echo "configure:13653: checking for readline in -lreadline" >&5
13653 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13654 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
13657 ac_save_LIBS="$LIBS"
13658 LIBS="-lreadline $LIBS"
13659 cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 /* Override any gcc2 internal prototype to avoid an error. */
13663 /* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13671 if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13673 eval "ac_cv_lib_$ac_lib_var=yes"
13675 echo "configure: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13678 eval "ac_cv_lib_$ac_lib_var=no"
13681 LIBS="$ac_save_LIBS"
13684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13685 echo "$ac_t""yes" 1>&6
13688 echo "$ac_t""no" 1>&6
13694 if test $have_readline = yes ; then
13695 ol_with_readline=found
13696 ol_link_readline=yes
13698 READLINE_LIBS="-lreadline"
13703 if test $ol_link_readline = yes ; then
13704 cat >> confdefs.h <<\EOF
13705 #define HAVE_READLINE 1
13711 if test $ol_enable_crypt != no ; then
13712 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13713 echo "configure:13714: checking for crypt" >&5
13714 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13715 echo $ac_n "(cached) $ac_c" 1>&6
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720 /* System header to define __stub macros and hopefully few prototypes,
13721 which can conflict with char crypt(); below. */
13722 #include <assert.h>
13723 /* Override any gcc2 internal prototype to avoid an error. */
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13731 /* The GNU C library defines this for functions which it implements
13732 to always fail with ENOSYS. Some functions are actually named
13733 something starting with __ and the normal name is an alias. */
13734 #if defined (__stub_crypt) || defined (__stub___crypt)
13742 if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 eval "ac_cv_func_crypt=yes"
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13749 eval "ac_cv_func_crypt=no"
13754 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13755 echo "$ac_t""yes" 1>&6
13758 echo "$ac_t""no" 1>&6
13760 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13761 echo "configure:13762: checking for crypt in -lcrypt" >&5
13762 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13764 echo $ac_n "(cached) $ac_c" 1>&6
13766 ac_save_LIBS="$LIBS"
13767 LIBS="-lcrypt $LIBS"
13768 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 /* Override any gcc2 internal prototype to avoid an error. */
13772 /* We use char because int might match the return type of a gcc2
13773 builtin and then its argument prototype would still apply. */
13780 if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782 eval "ac_cv_lib_$ac_lib_var=yes"
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13787 eval "ac_cv_lib_$ac_lib_var=no"
13790 LIBS="$ac_save_LIBS"
13793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13794 echo "$ac_t""yes" 1>&6
13795 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13798 echo "$ac_t""no" 1>&6
13805 if test $have_crypt = yes ; then
13806 cat >> confdefs.h <<\EOF
13807 #define HAVE_CRYPT 1
13811 echo "configure: warning: could not find crypt" 1>&2
13812 if test $ol_enable_crypt = yes ; then
13813 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13816 echo "configure: warning: disabling crypt support" 1>&2
13821 if test $ol_enable_proctitle != no ; then
13822 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13823 echo "configure:13824: checking for setproctitle" >&5
13824 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13825 echo $ac_n "(cached) $ac_c" 1>&6
13827 cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char setproctitle(); below. */
13832 #include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error. */
13834 /* We use char because int might match the return type of a gcc2
13835 builtin and then its argument prototype would still apply. */
13836 char setproctitle();
13841 /* The GNU C library defines this for functions which it implements
13842 to always fail with ENOSYS. Some functions are actually named
13843 something starting with __ and the normal name is an alias. */
13844 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13852 if { (eval echo configure:13853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13854 eval "ac_cv_func_setproctitle=yes"
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13859 eval "ac_cv_func_setproctitle=no"
13864 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 have_setproctitle=yes
13868 echo "$ac_t""no" 1>&6
13870 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13871 echo "configure:13872: checking for setproctitle in -lutil" >&5
13872 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13874 echo $ac_n "(cached) $ac_c" 1>&6
13876 ac_save_LIBS="$LIBS"
13877 LIBS="-lutil $LIBS"
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 /* We use char because int might match the return type of a gcc2
13883 builtin and then its argument prototype would still apply. */
13884 char setproctitle();
13890 if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13892 eval "ac_cv_lib_$ac_lib_var=yes"
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13897 eval "ac_cv_lib_$ac_lib_var=no"
13900 LIBS="$ac_save_LIBS"
13903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13904 echo "$ac_t""yes" 1>&6
13905 have_setproctitle=yes
13906 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13908 echo "$ac_t""no" 1>&6
13909 have_setproctitle=no
13910 LIBOBJS="$LIBOBJS setproctitle.o"
13911 LIBSRCS="$LIBSRCS setproctitle.c"
13917 if test $have_setproctitle = yes ; then
13918 cat >> confdefs.h <<\EOF
13919 #define HAVE_SETPROCTITLE 1
13925 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13926 echo "configure:13927: checking for ANSI C header files" >&5
13927 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13928 echo $ac_n "(cached) $ac_c" 1>&6
13930 cat > conftest.$ac_ext <<EOF
13931 #line 13932 "configure"
13932 #include "confdefs.h"
13933 #include <stdlib.h>
13934 #include <stdarg.h>
13935 #include <string.h>
13938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13939 { (eval echo configure:13940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13941 if test -z "$ac_err"; then
13943 ac_cv_header_stdc=yes
13946 echo "configure: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13949 ac_cv_header_stdc=no
13953 if test $ac_cv_header_stdc = yes; then
13954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13955 cat > conftest.$ac_ext <<EOF
13956 #line 13957 "configure"
13957 #include "confdefs.h"
13958 #include <string.h>
13960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13961 egrep "memchr" >/dev/null 2>&1; then
13965 ac_cv_header_stdc=no
13971 if test $ac_cv_header_stdc = yes; then
13972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13973 cat > conftest.$ac_ext <<EOF
13974 #line 13975 "configure"
13975 #include "confdefs.h"
13976 #include <stdlib.h>
13978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13979 egrep "free" >/dev/null 2>&1; then
13983 ac_cv_header_stdc=no
13989 if test $ac_cv_header_stdc = yes; then
13990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13991 if test "$cross_compiling" = yes; then
13994 cat > conftest.$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13998 #if ((' ' & 0x0FF) == 0x020)
13999 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14000 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14002 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14003 || ('j' <= (c) && (c) <= 'r') \
14004 || ('s' <= (c) && (c) <= 'z'))
14005 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14008 int main () { int i; for (i = 0; i < 256; i++)
14009 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14017 echo "configure: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14020 ac_cv_header_stdc=no
14028 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14029 if test $ac_cv_header_stdc = yes; then
14030 cat >> confdefs.h <<\EOF
14031 #define STDC_HEADERS 1
14036 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14037 echo "configure:14038: checking for mode_t" >&5
14038 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14039 echo $ac_n "(cached) $ac_c" 1>&6
14041 cat > conftest.$ac_ext <<EOF
14042 #line 14043 "configure"
14043 #include "confdefs.h"
14044 #include <sys/types.h>
14046 #include <stdlib.h>
14047 #include <stddef.h>
14051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14052 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14054 eval "ac_cv_type_mode_t=yes"
14057 eval "ac_cv_type_mode_t=no"
14062 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14063 echo "$ac_t""yes" 1>&6
14065 echo "$ac_t""no" 1>&6
14066 cat >> confdefs.h <<EOF
14072 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14073 echo "configure:14074: checking for off_t" >&5
14074 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14077 cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 #include <sys/types.h>
14082 #include <stdlib.h>
14083 #include <stddef.h>
14087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14088 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14090 eval "ac_cv_type_off_t=yes"
14093 eval "ac_cv_type_off_t=no"
14098 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14099 echo "$ac_t""yes" 1>&6
14101 echo "$ac_t""no" 1>&6
14102 cat >> confdefs.h <<EOF
14108 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14109 echo "configure:14110: checking for pid_t" >&5
14110 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14111 echo $ac_n "(cached) $ac_c" 1>&6
14113 cat > conftest.$ac_ext <<EOF
14114 #line 14115 "configure"
14115 #include "confdefs.h"
14116 #include <sys/types.h>
14118 #include <stdlib.h>
14119 #include <stddef.h>
14123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14124 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14126 eval "ac_cv_type_pid_t=yes"
14129 eval "ac_cv_type_pid_t=no"
14134 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14137 echo "$ac_t""no" 1>&6
14138 cat >> confdefs.h <<EOF
14144 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14145 echo "configure:14146: checking for ptrdiff_t" >&5
14146 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14147 echo $ac_n "(cached) $ac_c" 1>&6
14149 cat > conftest.$ac_ext <<EOF
14150 #line 14151 "configure"
14151 #include "confdefs.h"
14152 #include <stddef.h>
14157 if { (eval echo configure:14158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14159 am_cv_type_ptrdiff_t=yes
14161 echo "configure: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14164 am_cv_type_ptrdiff_t=no
14169 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14170 if test $am_cv_type_ptrdiff_t = yes; then
14171 cat >> confdefs.h <<\EOF
14172 #define HAVE_PTRDIFF_T 1
14177 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14178 echo "configure:14179: checking return type of signal handlers" >&5
14179 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14180 echo $ac_n "(cached) $ac_c" 1>&6
14182 cat > conftest.$ac_ext <<EOF
14183 #line 14184 "configure"
14184 #include "confdefs.h"
14185 #include <sys/types.h>
14186 #include <signal.h>
14191 extern "C" void (*signal (int, void (*)(int)))(int);
14193 void (*signal ()) ();
14200 if { (eval echo configure:14201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14202 ac_cv_type_signal=void
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14207 ac_cv_type_signal=int
14212 echo "$ac_t""$ac_cv_type_signal" 1>&6
14213 cat >> confdefs.h <<EOF
14214 #define RETSIGTYPE $ac_cv_type_signal
14218 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14219 echo "configure:14220: checking for size_t" >&5
14220 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14221 echo $ac_n "(cached) $ac_c" 1>&6
14223 cat > conftest.$ac_ext <<EOF
14224 #line 14225 "configure"
14225 #include "confdefs.h"
14226 #include <sys/types.h>
14228 #include <stdlib.h>
14229 #include <stddef.h>
14233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14234 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14236 eval "ac_cv_type_size_t=yes"
14239 eval "ac_cv_type_size_t=no"
14244 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14245 echo "$ac_t""yes" 1>&6
14247 echo "$ac_t""no" 1>&6
14248 cat >> confdefs.h <<EOF
14249 #define size_t unsigned
14255 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14256 echo "configure:14257: checking for ssize_t" >&5
14257 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14258 echo $ac_n "(cached) $ac_c" 1>&6
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14263 #include <sys/types.h>
14265 #include <stdlib.h>
14266 #include <stddef.h>
14270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14271 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14273 eval "ac_cv_type_ssize_t=yes"
14276 eval "ac_cv_type_ssize_t=no"
14281 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14282 echo "$ac_t""yes" 1>&6
14284 echo "$ac_t""no" 1>&6
14285 cat >> confdefs.h <<EOF
14286 #define ssize_t signed int
14291 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14292 echo "configure:14293: checking for caddr_t" >&5
14293 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14294 echo $ac_n "(cached) $ac_c" 1>&6
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 #include <sys/types.h>
14301 #include <stdlib.h>
14302 #include <stddef.h>
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14309 eval "ac_cv_type_caddr_t=yes"
14312 eval "ac_cv_type_caddr_t=no"
14317 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14318 echo "$ac_t""yes" 1>&6
14320 echo "$ac_t""no" 1>&6
14321 cat >> confdefs.h <<EOF
14322 #define caddr_t char *
14328 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14329 echo "configure:14330: checking for socklen_t" >&5
14330 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14331 echo $ac_n "(cached) $ac_c" 1>&6
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14337 #ifdef HAVE_SYS_TYPES_H
14338 #include <sys/types.h>
14340 #ifdef HAVE_SYS_SOCKET_H
14341 #include <sys/socket.h>
14348 if { (eval echo configure:14349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14350 ol_cv_type_socklen_t=yes
14352 echo "configure: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14355 ol_cv_type_socklen_t=no
14360 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14361 if test $ol_cv_type_socklen_t = no; then
14362 cat >> confdefs.h <<\EOF
14363 #define socklen_t int
14368 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14369 echo "configure:14370: checking for member st_blksize in aggregate type struct stat" >&5
14370 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14373 cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 #include <sys/types.h>
14377 #include <sys/stat.h>
14379 struct stat foo; foo.st_blksize;
14382 if { (eval echo configure:14383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14384 ac_cv_c_struct_member_st_blksize=yes
14386 echo "configure: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14389 ac_cv_c_struct_member_st_blksize=no
14394 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14395 st_blksize="$ac_cv_c_struct_member_st_blksize"
14396 if test $ac_cv_c_struct_member_st_blksize = yes; then
14397 cat >> confdefs.h <<\EOF
14398 #define HAVE_ST_BLKSIZE 1
14403 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14404 echo "configure:14405: checking whether time.h and sys/time.h may both be included" >&5
14405 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14406 echo $ac_n "(cached) $ac_c" 1>&6
14408 cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 #include <sys/types.h>
14412 #include <sys/time.h>
14418 if { (eval echo configure:14419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14420 ac_cv_header_time=yes
14422 echo "configure: failed program was:" >&5
14423 cat conftest.$ac_ext >&5
14425 ac_cv_header_time=no
14430 echo "$ac_t""$ac_cv_header_time" 1>&6
14431 if test $ac_cv_header_time = yes; then
14432 cat >> confdefs.h <<\EOF
14433 #define TIME_WITH_SYS_TIME 1
14438 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14439 echo "configure:14440: checking whether struct tm is in sys/time.h or time.h" >&5
14440 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14441 echo $ac_n "(cached) $ac_c" 1>&6
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 #include <sys/types.h>
14449 struct tm *tp; tp->tm_sec;
14452 if { (eval echo configure:14453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14454 ac_cv_struct_tm=time.h
14456 echo "configure: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14459 ac_cv_struct_tm=sys/time.h
14464 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14465 if test $ac_cv_struct_tm = sys/time.h; then
14466 cat >> confdefs.h <<\EOF
14467 #define TM_IN_SYS_TIME 1
14472 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14473 echo "configure:14474: checking for uid_t in sys/types.h" >&5
14474 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
14477 cat > conftest.$ac_ext <<EOF
14478 #line 14479 "configure"
14479 #include "confdefs.h"
14480 #include <sys/types.h>
14482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14483 egrep "uid_t" >/dev/null 2>&1; then
14485 ac_cv_type_uid_t=yes
14488 ac_cv_type_uid_t=no
14494 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14495 if test $ac_cv_type_uid_t = no; then
14496 cat >> confdefs.h <<\EOF
14500 cat >> confdefs.h <<\EOF
14506 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14507 echo "configure:14508: checking for sig_atomic_t" >&5
14508 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
14511 cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14514 #include <signal.h>
14516 sig_atomic_t atomic;
14519 if { (eval echo configure:14520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14521 ol_cv_type_sig_atomic_t=yes
14523 echo "configure: failed program was:" >&5
14524 cat conftest.$ac_ext >&5
14526 ol_cv_type_sig_atomic_t=no
14531 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14532 if test $ol_cv_type_sig_atomic_t = no; then
14533 cat >> confdefs.h <<\EOF
14534 #define sig_atomic_t int
14541 # test for pw_gecos in struct passwd
14542 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14543 echo "configure:14544: checking struct passwd for pw_gecos" >&5
14544 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14545 echo $ac_n "(cached) $ac_c" 1>&6
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14555 pwd.pw_gecos = pwd.pw_name;
14559 if { (eval echo configure:14560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14561 ol_cv_struct_passwd_pw_gecos=yes
14563 echo "configure: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14566 ol_cv_struct_passwd_pw_gecos=no
14571 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14572 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14573 cat >> confdefs.h <<\EOF
14574 #define HAVE_PW_GECOS 1
14579 # test for pw_passwd in struct passwd
14580 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14581 echo "configure:14582: checking struct passwd for pw_passwd" >&5
14582 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14583 echo $ac_n "(cached) $ac_c" 1>&6
14586 cat > conftest.$ac_ext <<EOF
14587 #line 14588 "configure"
14588 #include "confdefs.h"
14593 pwd.pw_passwd = pwd.pw_name;
14597 if { (eval echo configure:14598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14599 ol_cv_struct_passwd_pw_passwd=yes
14601 echo "configure: failed program was:" >&5
14602 cat conftest.$ac_ext >&5
14604 ol_cv_struct_passwd_pw_passwd=no
14609 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14610 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14611 cat >> confdefs.h <<\EOF
14612 #define HAVE_PW_PASSWD 1
14618 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14619 echo "configure:14620: checking if toupper() requires islower()" >&5
14620 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14621 echo $ac_n "(cached) $ac_c" 1>&6
14624 if test "$cross_compiling" = yes; then
14625 ol_cv_c_upper_lower=safe
14627 cat > conftest.$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14634 if ('C' == toupper('C'))
14640 if { (eval echo configure:14641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14642 ol_cv_c_upper_lower=no
14644 echo "configure: failed program was:" >&5
14645 cat conftest.$ac_ext >&5
14647 ol_cv_c_upper_lower=yes
14654 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14655 if test $ol_cv_c_upper_lower != no ; then
14656 cat >> confdefs.h <<\EOF
14657 #define C_UPPER_LOWER 1
14662 echo $ac_n "checking for working const""... $ac_c" 1>&6
14663 echo "configure:14664: checking for working const" >&5
14664 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
14667 cat > conftest.$ac_ext <<EOF
14668 #line 14669 "configure"
14669 #include "confdefs.h"
14673 /* Ultrix mips cc rejects this. */
14674 typedef int charset[2]; const charset x;
14675 /* SunOS 4.1.1 cc rejects this. */
14676 char const *const *ccp;
14678 /* NEC SVR4.0.2 mips cc rejects this. */
14679 struct point {int x, y;};
14680 static struct point const zero = {0,0};
14681 /* AIX XL C 1.02.0.0 rejects this.
14682 It does not let you subtract one const X* pointer from another in an arm
14683 of an if-expression whose if-part is not a constant expression */
14684 const char *g = "string";
14685 ccp = &g + (g ? g-g : 0);
14686 /* HPUX 7.0 cc rejects these. */
14689 ccp = (char const *const *) p;
14690 { /* SCO 3.2v4 cc rejects this. */
14692 char const *s = 0 ? (char *) 0 : (char const *) 0;
14696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14697 int x[] = {25, 17};
14698 const int *foo = &x[0];
14701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14702 typedef const int *iptr;
14706 { /* AIX XL C 1.02.0.0 rejects this saying
14707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14708 struct s { int j; const int *ap[3]; };
14709 struct s *b; b->j = 5;
14711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14712 const int foo = 10;
14717 if { (eval echo configure:14718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14721 echo "configure: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14729 echo "$ac_t""$ac_cv_c_const" 1>&6
14730 if test $ac_cv_c_const = no; then
14731 cat >> confdefs.h <<\EOF
14737 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14738 echo "configure:14739: checking if compiler understands volatile" >&5
14739 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14747 volatile int a; int * volatile b = x ? &y : &z;
14748 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14752 if { (eval echo configure:14753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14754 ol_cv_c_volatile=yes
14756 echo "configure: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14759 ol_cv_c_volatile=no
14764 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14765 if test $ol_cv_c_volatile = yes; then
14768 cat >> confdefs.h <<\EOF
14775 if test $cross_compiling = yes ; then
14776 cat >> confdefs.h <<\EOF
14777 #define CROSS_COMPILING 1
14781 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14782 echo "configure:14783: checking whether byte ordering is bigendian" >&5
14783 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14784 echo $ac_n "(cached) $ac_c" 1>&6
14786 ac_cv_c_bigendian=unknown
14787 # See if sys/param.h defines the BYTE_ORDER macro.
14788 cat > conftest.$ac_ext <<EOF
14789 #line 14790 "configure"
14790 #include "confdefs.h"
14791 #include <sys/types.h>
14792 #include <sys/param.h>
14795 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14796 bogus endian macros
14800 if { (eval echo configure:14801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14802 # It does; now see whether it defined to BIG_ENDIAN or not.
14803 cat > conftest.$ac_ext <<EOF
14804 #line 14805 "configure"
14805 #include "confdefs.h"
14806 #include <sys/types.h>
14807 #include <sys/param.h>
14810 #if BYTE_ORDER != BIG_ENDIAN
14815 if { (eval echo configure:14816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14817 ac_cv_c_bigendian=yes
14819 echo "configure: failed program was:" >&5
14820 cat conftest.$ac_ext >&5
14822 ac_cv_c_bigendian=no
14826 echo "configure: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14830 if test $ac_cv_c_bigendian = unknown; then
14831 if test "$cross_compiling" = yes; then
14832 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14834 cat > conftest.$ac_ext <<EOF
14835 #line 14836 "configure"
14836 #include "confdefs.h"
14838 /* Are we little or big endian? From Harbison&Steele. */
14842 char c[sizeof (long)];
14845 exit (u.c[sizeof (long) - 1] == 1);
14848 if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14850 ac_cv_c_bigendian=no
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14855 ac_cv_c_bigendian=yes
14863 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14864 if test $ac_cv_c_bigendian = yes; then
14865 cat >> confdefs.h <<\EOF
14866 #define WORDS_BIGENDIAN 1
14873 echo $ac_n "checking size of short""... $ac_c" 1>&6
14874 echo "configure:14875: checking size of short" >&5
14875 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14878 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14882 #include "confdefs.h"
14883 #include <sys/types.h>
14887 switch (0) case 0: case (sizeof (short) == $ac_size):;
14890 if { (eval echo configure:14891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14892 ac_cv_sizeof_short=$ac_size
14894 echo "configure: failed program was:" >&5
14895 cat conftest.$ac_ext >&5
14898 if test x$ac_cv_sizeof_short != x ; then break; fi
14903 if test x$ac_cv_sizeof_short = x ; then
14904 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14906 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14907 cat >> confdefs.h <<EOF
14908 #define SIZEOF_SHORT $ac_cv_sizeof_short
14912 echo $ac_n "checking size of int""... $ac_c" 1>&6
14913 echo "configure:14914: checking size of int" >&5
14914 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14915 echo $ac_n "(cached) $ac_c" 1>&6
14917 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14918 cat > conftest.$ac_ext <<EOF
14919 #line 14920 "configure"
14920 #include "confdefs.h"
14921 #include "confdefs.h"
14922 #include <sys/types.h>
14926 switch (0) case 0: case (sizeof (int) == $ac_size):;
14929 if { (eval echo configure:14930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14931 ac_cv_sizeof_int=$ac_size
14933 echo "configure: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14937 if test x$ac_cv_sizeof_int != x ; then break; fi
14942 if test x$ac_cv_sizeof_int = x ; then
14943 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14945 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14946 cat >> confdefs.h <<EOF
14947 #define SIZEOF_INT $ac_cv_sizeof_int
14951 echo $ac_n "checking size of long""... $ac_c" 1>&6
14952 echo "configure:14953: checking size of long" >&5
14953 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
14956 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 #include "confdefs.h"
14961 #include <sys/types.h>
14965 switch (0) case 0: case (sizeof (long) == $ac_size):;
14968 if { (eval echo configure:14969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14970 ac_cv_sizeof_long=$ac_size
14972 echo "configure: failed program was:" >&5
14973 cat conftest.$ac_ext >&5
14976 if test x$ac_cv_sizeof_long != x ; then break; fi
14981 if test x$ac_cv_sizeof_long = x ; then
14982 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14984 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14985 cat >> confdefs.h <<EOF
14986 #define SIZEOF_LONG $ac_cv_sizeof_long
14991 if test "$ac_cv_sizeof_int" -lt 4 ; then
14992 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14994 cat >> confdefs.h <<\EOF
14995 #define LBER_INT_T long
14999 cat >> confdefs.h <<\EOF
15000 #define LBER_INT_T int
15005 cat >> confdefs.h <<\EOF
15006 #define LBER_LEN_T long
15009 cat >> confdefs.h <<\EOF
15010 #define LBER_SOCKET_T int
15013 cat >> confdefs.h <<\EOF
15014 #define LBER_TAG_T long
15018 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15019 echo "configure:15020: checking for 8-bit clean memcmp" >&5
15020 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15021 echo $ac_n "(cached) $ac_c" 1>&6
15023 if test "$cross_compiling" = yes; then
15024 ac_cv_func_memcmp_clean=no
15026 cat > conftest.$ac_ext <<EOF
15027 #line 15028 "configure"
15028 #include "confdefs.h"
15032 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15033 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15037 if { (eval echo configure:15038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15039 ac_cv_func_memcmp_clean=yes
15041 echo "configure: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15044 ac_cv_func_memcmp_clean=no
15051 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15052 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15054 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15055 echo "configure:15056: checking for strftime" >&5
15056 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15057 echo $ac_n "(cached) $ac_c" 1>&6
15059 cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure"
15061 #include "confdefs.h"
15062 /* System header to define __stub macros and hopefully few prototypes,
15063 which can conflict with char strftime(); below. */
15064 #include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error. */
15066 /* We use char because int might match the return type of a gcc2
15067 builtin and then its argument prototype would still apply. */
15073 /* The GNU C library defines this for functions which it implements
15074 to always fail with ENOSYS. Some functions are actually named
15075 something starting with __ and the normal name is an alias. */
15076 #if defined (__stub_strftime) || defined (__stub___strftime)
15084 if { (eval echo configure:15085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15086 eval "ac_cv_func_strftime=yes"
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15091 eval "ac_cv_func_strftime=no"
15096 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15097 echo "$ac_t""yes" 1>&6
15098 cat >> confdefs.h <<\EOF
15099 #define HAVE_STRFTIME 1
15103 echo "$ac_t""no" 1>&6
15104 # strftime is in -lintl on SCO UNIX.
15105 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15106 echo "configure:15107: checking for strftime in -lintl" >&5
15107 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15108 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15109 echo $ac_n "(cached) $ac_c" 1>&6
15111 ac_save_LIBS="$LIBS"
15112 LIBS="-lintl $LIBS"
15113 cat > conftest.$ac_ext <<EOF
15114 #line 15115 "configure"
15115 #include "confdefs.h"
15116 /* Override any gcc2 internal prototype to avoid an error. */
15117 /* We use char because int might match the return type of a gcc2
15118 builtin and then its argument prototype would still apply. */
15125 if { (eval echo configure:15126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15127 eval "ac_cv_lib_$ac_lib_var=yes"
15129 echo "configure: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15132 eval "ac_cv_lib_$ac_lib_var=no"
15135 LIBS="$ac_save_LIBS"
15138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15139 echo "$ac_t""yes" 1>&6
15140 cat >> confdefs.h <<\EOF
15141 #define HAVE_STRFTIME 1
15144 LIBS="-lintl $LIBS"
15146 echo "$ac_t""no" 1>&6
15152 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15153 echo "configure:15154: checking for inet_aton()" >&5
15154 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15155 echo $ac_n "(cached) $ac_c" 1>&6
15157 cat > conftest.$ac_ext <<EOF
15158 #line 15159 "configure"
15159 #include "confdefs.h"
15161 #ifdef HAVE_SYS_TYPES_H
15162 # include <sys/types.h>
15164 #ifdef HAVE_SYS_SOCKET_H
15165 # include <sys/socket.h>
15166 # ifdef HAVE_SYS_SELECT_H
15167 # include <sys/select.h>
15169 # include <netinet/in.h>
15170 # ifdef HAVE_ARPA_INET_H
15171 # include <arpa/inet.h>
15177 int rc = inet_aton( "255.255.255.255", &in );
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15182 ol_cv_func_inet_aton=yes
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15187 ol_cv_func_inet_aton=no
15192 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15193 if test $ol_cv_func_inet_aton != no; then
15194 cat >> confdefs.h <<\EOF
15195 #define HAVE_INET_ATON 1
15201 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15202 echo "configure:15203: checking for _spawnlp" >&5
15203 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15204 echo $ac_n "(cached) $ac_c" 1>&6
15206 cat > conftest.$ac_ext <<EOF
15207 #line 15208 "configure"
15208 #include "confdefs.h"
15209 /* System header to define __stub macros and hopefully few prototypes,
15210 which can conflict with char _spawnlp(); below. */
15211 #include <assert.h>
15212 /* Override any gcc2 internal prototype to avoid an error. */
15213 /* We use char because int might match the return type of a gcc2
15214 builtin and then its argument prototype would still apply. */
15220 /* The GNU C library defines this for functions which it implements
15221 to always fail with ENOSYS. Some functions are actually named
15222 something starting with __ and the normal name is an alias. */
15223 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15231 if { (eval echo configure:15232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15233 eval "ac_cv_func__spawnlp=yes"
15235 echo "configure: failed program was:" >&5
15236 cat conftest.$ac_ext >&5
15238 eval "ac_cv_func__spawnlp=no"
15243 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15244 echo "$ac_t""yes" 1>&6
15245 cat >> confdefs.h <<\EOF
15246 #define HAVE_SPAWNLP 1
15250 echo "$ac_t""no" 1>&6
15254 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15255 echo "configure:15256: checking for _snprintf" >&5
15256 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15257 echo $ac_n "(cached) $ac_c" 1>&6
15259 cat > conftest.$ac_ext <<EOF
15260 #line 15261 "configure"
15261 #include "confdefs.h"
15262 /* System header to define __stub macros and hopefully few prototypes,
15263 which can conflict with char _snprintf(); below. */
15264 #include <assert.h>
15265 /* Override any gcc2 internal prototype to avoid an error. */
15266 /* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15273 /* The GNU C library defines this for functions which it implements
15274 to always fail with ENOSYS. Some functions are actually named
15275 something starting with __ and the normal name is an alias. */
15276 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15284 if { (eval echo configure:15285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15286 eval "ac_cv_func__snprintf=yes"
15288 echo "configure: failed program was:" >&5
15289 cat conftest.$ac_ext >&5
15291 eval "ac_cv_func__snprintf=no"
15296 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15297 echo "$ac_t""yes" 1>&6
15298 ac_cv_func_snprintf=yes
15299 cat >> confdefs.h <<\EOF
15300 #define snprintf _snprintf
15305 echo "$ac_t""no" 1>&6
15309 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15310 echo "configure:15311: checking for _vsnprintf" >&5
15311 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15312 echo $ac_n "(cached) $ac_c" 1>&6
15314 cat > conftest.$ac_ext <<EOF
15315 #line 15316 "configure"
15316 #include "confdefs.h"
15317 /* System header to define __stub macros and hopefully few prototypes,
15318 which can conflict with char _vsnprintf(); below. */
15319 #include <assert.h>
15320 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15328 /* The GNU C library defines this for functions which it implements
15329 to always fail with ENOSYS. Some functions are actually named
15330 something starting with __ and the normal name is an alias. */
15331 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15339 if { (eval echo configure:15340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15341 eval "ac_cv_func__vsnprintf=yes"
15343 echo "configure: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15346 eval "ac_cv_func__vsnprintf=no"
15351 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15352 echo "$ac_t""yes" 1>&6
15353 ac_cv_func_vsnprintf=yes
15354 cat >> confdefs.h <<\EOF
15355 #define vsnprintf _vsnprintf
15360 echo "$ac_t""no" 1>&6
15364 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15365 echo "configure:15366: checking for vprintf" >&5
15366 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15367 echo $ac_n "(cached) $ac_c" 1>&6
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372 /* System header to define __stub macros and hopefully few prototypes,
15373 which can conflict with char vprintf(); below. */
15374 #include <assert.h>
15375 /* Override any gcc2 internal prototype to avoid an error. */
15376 /* We use char because int might match the return type of a gcc2
15377 builtin and then its argument prototype would still apply. */
15383 /* The GNU C library defines this for functions which it implements
15384 to always fail with ENOSYS. Some functions are actually named
15385 something starting with __ and the normal name is an alias. */
15386 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15394 if { (eval echo configure:15395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15396 eval "ac_cv_func_vprintf=yes"
15398 echo "configure: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15401 eval "ac_cv_func_vprintf=no"
15406 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15407 echo "$ac_t""yes" 1>&6
15408 cat >> confdefs.h <<\EOF
15409 #define HAVE_VPRINTF 1
15413 echo "$ac_t""no" 1>&6
15416 if test "$ac_cv_func_vprintf" != yes; then
15417 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15418 echo "configure:15419: checking for _doprnt" >&5
15419 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char _doprnt(); below. */
15427 #include <assert.h>
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15436 /* The GNU C library defines this for functions which it implements
15437 to always fail with ENOSYS. Some functions are actually named
15438 something starting with __ and the normal name is an alias. */
15439 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15447 if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15449 eval "ac_cv_func__doprnt=yes"
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15454 eval "ac_cv_func__doprnt=no"
15459 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15460 echo "$ac_t""yes" 1>&6
15461 cat >> confdefs.h <<\EOF
15462 #define HAVE_DOPRNT 1
15466 echo "$ac_t""no" 1>&6
15472 if test $ac_cv_func_vprintf = yes ; then
15473 for ac_func in vsnprintf vsprintf
15475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15476 echo "configure:15477: checking for $ac_func" >&5
15477 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15478 echo $ac_n "(cached) $ac_c" 1>&6
15480 cat > conftest.$ac_ext <<EOF
15481 #line 15482 "configure"
15482 #include "confdefs.h"
15483 /* System header to define __stub macros and hopefully few prototypes,
15484 which can conflict with char $ac_func(); below. */
15485 #include <assert.h>
15486 /* Override any gcc2 internal prototype to avoid an error. */
15487 /* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15494 /* The GNU C library defines this for functions which it implements
15495 to always fail with ENOSYS. Some functions are actually named
15496 something starting with __ and the normal name is an alias. */
15497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15505 if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15507 eval "ac_cv_func_$ac_func=yes"
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15512 eval "ac_cv_func_$ac_func=no"
15517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15518 echo "$ac_t""yes" 1>&6
15519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15520 cat >> confdefs.h <<EOF
15521 #define $ac_tr_func 1
15525 echo "$ac_t""no" 1>&6
15583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15584 echo "configure:15585: checking for $ac_func" >&5
15585 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15586 echo $ac_n "(cached) $ac_c" 1>&6
15588 cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15591 /* System header to define __stub macros and hopefully few prototypes,
15592 which can conflict with char $ac_func(); below. */
15593 #include <assert.h>
15594 /* Override any gcc2 internal prototype to avoid an error. */
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15602 /* The GNU C library defines this for functions which it implements
15603 to always fail with ENOSYS. Some functions are actually named
15604 something starting with __ and the normal name is an alias. */
15605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613 if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15615 eval "ac_cv_func_$ac_func=yes"
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15620 eval "ac_cv_func_$ac_func=no"
15625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15626 echo "$ac_t""yes" 1>&6
15627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15628 cat >> confdefs.h <<EOF
15629 #define $ac_tr_func 1
15633 echo "$ac_t""no" 1>&6
15638 for ac_func in getopt tempnam
15640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15641 echo "configure:15642: checking for $ac_func" >&5
15642 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
15645 cat > conftest.$ac_ext <<EOF
15646 #line 15647 "configure"
15647 #include "confdefs.h"
15648 /* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func(); below. */
15650 #include <assert.h>
15651 /* Override any gcc2 internal prototype to avoid an error. */
15652 /* We use char because int might match the return type of a gcc2
15653 builtin and then its argument prototype would still apply. */
15659 /* The GNU C library defines this for functions which it implements
15660 to always fail with ENOSYS. Some functions are actually named
15661 something starting with __ and the normal name is an alias. */
15662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15670 if { (eval echo configure:15671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15672 eval "ac_cv_func_$ac_func=yes"
15674 echo "configure: failed program was:" >&5
15675 cat conftest.$ac_ext >&5
15677 eval "ac_cv_func_$ac_func=no"
15682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15683 echo "$ac_t""yes" 1>&6
15684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15685 cat >> confdefs.h <<EOF
15686 #define $ac_tr_func 1
15690 echo "$ac_t""no" 1>&6
15691 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15697 if test "$ac_cv_func_getopt" != yes; then
15698 LIBSRCS="$LIBSRCS getopt.c"
15701 if test "$ac_cv_func_tempnam" != yes; then
15702 LIBSRCS="$LIBSRCS tempnam.c"
15705 # Check Configuration
15706 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15707 echo "configure:15708: checking declaration of sys_errlist" >&5
15708 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15709 echo $ac_n "(cached) $ac_c" 1>&6
15712 cat > conftest.$ac_ext <<EOF
15713 #line 15714 "configure"
15714 #include "confdefs.h"
15717 #include <sys/types.h>
15720 #include <stdlib.h>
15723 char *c = (char *) *sys_errlist
15726 if { (eval echo configure:15727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15728 ol_cv_dcl_sys_errlist=yes
15729 ol_cv_have_sys_errlist=yes
15731 echo "configure: failed program was:" >&5
15732 cat conftest.$ac_ext >&5
15734 ol_cv_dcl_sys_errlist=no
15739 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15741 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15742 if test $ol_cv_dcl_sys_errlist = no ; then
15743 cat >> confdefs.h <<\EOF
15744 #define DECL_SYS_ERRLIST 1
15748 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15749 echo "configure:15750: checking existence of sys_errlist" >&5
15750 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15751 echo $ac_n "(cached) $ac_c" 1>&6
15754 cat > conftest.$ac_ext <<EOF
15755 #line 15756 "configure"
15756 #include "confdefs.h"
15759 char *c = (char *) *sys_errlist
15762 if { (eval echo configure:15763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15764 ol_cv_have_sys_errlist=yes
15766 echo "configure: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15769 ol_cv_have_sys_errlist=no
15774 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15776 if test $ol_cv_have_sys_errlist = yes ; then
15777 cat >> confdefs.h <<\EOF
15778 #define HAVE_SYS_ERRLIST 1
15785 if test "$ol_enable_debug" != no ; then
15786 cat >> confdefs.h <<\EOF
15787 #define LDAP_DEBUG 1
15791 if test "$ol_enable_syslog" = yes ; then
15792 cat >> confdefs.h <<\EOF
15793 #define LDAP_SYSLOG 1
15797 if test "$ol_enable_libui" = yes ; then
15798 cat >> confdefs.h <<\EOF
15799 #define LDAP_LIBUI 1
15803 if test "$ol_enable_cache" = no ; then
15804 cat >> confdefs.h <<\EOF
15805 #define LDAP_NOCACHE 1
15809 if test "$ol_link_kbind" != no ; then
15810 cat >> confdefs.h <<\EOF
15811 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15815 if test "$ol_enable_dns" != no ; then
15816 cat >> confdefs.h <<\EOF
15817 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15821 if test "$ol_enable_proctitle" != no ; then
15822 cat >> confdefs.h <<\EOF
15823 #define LDAP_PROCTITLE 1
15827 if test "$ol_enable_referrals" != no ; then
15828 cat >> confdefs.h <<\EOF
15829 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15833 if test "$ol_enable_cldap" != no ; then
15834 cat >> confdefs.h <<\EOF
15835 #define LDAP_CONNECTIONLESS 1
15839 if test "$ol_enable_ldapi" != no; then
15840 cat >> confdefs.h <<\EOF
15841 #define USE_PF_LOCAL 1
15846 if test "$ol_enable_cleartext" != no ; then
15847 cat >> confdefs.h <<\EOF
15848 #define SLAPD_CLEARTEXT 1
15852 if test "$ol_enable_crypt" != no ; then
15853 cat >> confdefs.h <<\EOF
15854 #define SLAPD_CRYPT 1
15858 if test "$ol_link_kpasswd" != no ; then
15859 cat >> confdefs.h <<\EOF
15860 #define SLAPD_KPASSWD 1
15864 if test "$ol_link_spasswd" != no ; then
15865 cat >> confdefs.h <<\EOF
15866 #define SLAPD_SPASSWD 1
15870 if test "$ol_enable_multimaster" != no ; then
15871 cat >> confdefs.h <<\EOF
15872 #define SLAPD_MULTIMASTER 1
15876 if test "$ol_enable_phonetic" != no ; then
15877 cat >> confdefs.h <<\EOF
15878 #define SLAPD_PHONETIC 1
15882 if test "$ol_enable_rlookups" != no ; then
15883 cat >> confdefs.h <<\EOF
15884 #define SLAPD_RLOOKUPS 1
15888 if test "$ol_enable_aci" != no ; then
15889 cat >> confdefs.h <<\EOF
15890 #define SLAPD_ACI_ENABLED 1
15895 if test "$ol_link_modules" != no ; then
15896 cat >> confdefs.h <<\EOF
15897 #define SLAPD_MODULES 1
15901 SLAPD_MODULES_LDFLAGS="-dlopen self"
15904 if test "$ol_link_bdb2" != no ; then
15905 cat >> confdefs.h <<\EOF
15906 #define SLAPD_BDB2 1
15911 if test "$ol_with_bdb2_module" != static ; then
15912 cat >> confdefs.h <<\EOF
15913 #define SLAPD_BDB2_DYNAMIC 1
15917 BUILD_BDB2_DYNAMIC=shared
15918 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15922 if test "$ol_enable_dnssrv" != no ; then
15923 cat >> confdefs.h <<\EOF
15924 #define SLAPD_DNSSRV 1
15929 if test "$ol_with_dnssrv_module" != static ; then
15930 cat >> confdefs.h <<\EOF
15931 #define SLAPD_DNSSRV_DYNAMIC 1
15935 BUILD_DNSSRV_DYNAMIC=shared
15936 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15940 if test "$ol_enable_ldap" != no ; then
15941 cat >> confdefs.h <<\EOF
15942 #define SLAPD_LDAP 1
15947 if test "$ol_with_ldap_module" != static ; then
15948 cat >> confdefs.h <<\EOF
15949 #define SLAPD_LDAP_DYNAMIC 1
15953 BUILD_LDAP_DYNAMIC=shared
15954 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15958 if test "$ol_link_ldbm" != no ; then
15959 cat >> confdefs.h <<\EOF
15960 #define SLAPD_LDBM 1
15965 if test "$ol_with_ldbm_module" != static ; then
15966 cat >> confdefs.h <<\EOF
15967 #define SLAPD_LDBM_DYNAMIC 1
15971 BUILD_LDBM_DYNAMIC=shared
15972 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15976 if test "$ol_enable_passwd" != no ; then
15977 cat >> confdefs.h <<\EOF
15978 #define SLAPD_PASSWD 1
15983 if test "$ol_with_passwd_module" != static ; then
15984 cat >> confdefs.h <<\EOF
15985 #define SLAPD_PASSWD_DYNAMIC 1
15989 BUILD_PASSWD_DYNAMIC=shared
15990 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15994 if test "$ol_link_perl" != no ; then
15995 cat >> confdefs.h <<\EOF
15996 #define SLAPD_PERL 1
16001 if test "$ol_with_perl_module" != static ; then
16002 cat >> confdefs.h <<\EOF
16003 #define SLAPD_PERL_DYNAMIC 1
16007 BUILD_PERL_DYNAMIC=shared
16008 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16012 if test "$ol_enable_shell" != no ; then
16013 cat >> confdefs.h <<\EOF
16014 #define SLAPD_SHELL 1
16019 if test "$ol_with_shell_module" != static ; then
16020 cat >> confdefs.h <<\EOF
16021 #define SLAPD_SHELL_DYNAMIC 1
16025 BUILD_SHELL_DYNAMIC=shared
16026 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16030 if test "$ol_enable_tcl" != no ; then
16031 cat >> confdefs.h <<\EOF
16032 #define SLAPD_TCL 1
16037 if test "$ol_with_tcl_module" != static; then
16038 cat >> confdefs.h <<\EOF
16039 #define SLAPD_TCL_DYNAMIC 1
16043 BUILD_TCL_DYNAMIC=shared
16044 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16048 if test "$ol_enable_sql" != no ; then
16049 cat >> confdefs.h <<\EOF
16050 #define SLAPD_SQL 1
16055 SLAPD_SQL_LIBS=-liodbc
16056 if test "$ol_with_sql_module" != static; then
16057 cat >> confdefs.h <<\EOF
16058 #define SLAPD_SQL_DYNAMIC 1
16062 BUILD_SQL_DYNAMIC=shared
16063 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16067 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16068 $BUILD_SLAPD = yes ; then
16072 if test "$ol_link_isode" != no ; then
16077 if test "$LINK_BINS_DYNAMIC" = yes; then
16079 LT_LIB_LINKAGE=shared
16082 LT_LIB_LINKAGE=static
16085 if test "$ac_cv_mingw32" = yes ; then
16159 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16161 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16162 # Let make expand exec_prefix.
16163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16165 # Any assignment to VPATH causes Sun make to only execute
16166 # the first set of double-colon rules, so remove it if not needed.
16167 # If there is a colon in the path, we need to keep it.
16168 if test "x$srcdir" = x.; then
16169 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16172 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16174 DEFS=-DHAVE_CONFIG_H
16176 # Without the "./", some shells look in PATH for config.status.
16177 : ${CONFIG_STATUS=./config.status}
16179 echo creating $CONFIG_STATUS
16180 rm -f $CONFIG_STATUS
16181 cat > $CONFIG_STATUS <<EOF
16183 # Generated automatically by configure.
16184 # Run this file to recreate the current configuration.
16185 # This directory was configured as follows,
16186 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16188 # $0 $ac_configure_args
16190 # Compiler output produced by configure, useful for debugging
16191 # configure, is in ./config.log if it exists.
16193 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16196 case "\$ac_option" in
16197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16198 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16199 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16200 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16201 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16203 -help | --help | --hel | --he | --h)
16204 echo "\$ac_cs_usage"; exit 0 ;;
16205 *) echo "\$ac_cs_usage"; exit 1 ;;
16209 ac_given_srcdir=$srcdir
16210 ac_given_INSTALL="$INSTALL"
16212 trap 'rm -fr `echo "\
16213 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16214 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16215 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16216 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16217 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16218 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16219 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16220 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16221 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16222 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16223 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16224 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16225 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16226 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16227 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16228 include/Makefile:build/top.mk:include/Makefile.in \
16229 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16230 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16231 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16232 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16233 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16234 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16235 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16236 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16237 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16238 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16239 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16240 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16241 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16242 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16243 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16244 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16245 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16246 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16247 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16248 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16249 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16250 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16251 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16252 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16253 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16254 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16255 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16256 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16257 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16258 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16260 cat >> $CONFIG_STATUS <<EOF
16262 # Protect against being on the right side of a sed subst in config.status.
16263 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16264 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16268 s%@CFLAGS@%$CFLAGS%g
16269 s%@CPPFLAGS@%$CPPFLAGS%g
16270 s%@CXXFLAGS@%$CXXFLAGS%g
16271 s%@FFLAGS@%$FFLAGS%g
16273 s%@LDFLAGS@%$LDFLAGS%g
16275 s%@exec_prefix@%$exec_prefix%g
16276 s%@prefix@%$prefix%g
16277 s%@program_transform_name@%$program_transform_name%g
16278 s%@bindir@%$bindir%g
16279 s%@sbindir@%$sbindir%g
16280 s%@libexecdir@%$libexecdir%g
16281 s%@datadir@%$datadir%g
16282 s%@sysconfdir@%$sysconfdir%g
16283 s%@sharedstatedir@%$sharedstatedir%g
16284 s%@localstatedir@%$localstatedir%g
16285 s%@libdir@%$libdir%g
16286 s%@includedir@%$includedir%g
16287 s%@oldincludedir@%$oldincludedir%g
16288 s%@infodir@%$infodir%g
16289 s%@mandir@%$mandir%g
16291 s%@host_alias@%$host_alias%g
16292 s%@host_cpu@%$host_cpu%g
16293 s%@host_vendor@%$host_vendor%g
16294 s%@host_os@%$host_os%g
16295 s%@target@%$target%g
16296 s%@target_alias@%$target_alias%g
16297 s%@target_cpu@%$target_cpu%g
16298 s%@target_vendor@%$target_vendor%g
16299 s%@target_os@%$target_os%g
16301 s%@build_alias@%$build_alias%g
16302 s%@build_cpu@%$build_cpu%g
16303 s%@build_vendor@%$build_vendor%g
16304 s%@build_os@%$build_os%g
16305 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16306 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16307 s%@INSTALL_DATA@%$INSTALL_DATA%g
16308 s%@PACKAGE@%$PACKAGE%g
16309 s%@VERSION@%$VERSION%g
16310 s%@ACLOCAL@%$ACLOCAL%g
16311 s%@AUTOCONF@%$AUTOCONF%g
16312 s%@AUTOMAKE@%$AUTOMAKE%g
16313 s%@AUTOHEADER@%$AUTOHEADER%g
16314 s%@MAKEINFO@%$MAKEINFO%g
16315 s%@install_sh@%$install_sh%g
16318 s%@AMTARFLAGS@%$AMTARFLAGS%g
16319 s%@SET_MAKE@%$SET_MAKE%g
16320 s%@top_builddir@%$top_builddir%g
16321 s%@ldap_subdir@%$ldap_subdir%g
16323 s%@RANLIB@%$RANLIB%g
16325 s%@DLLTOOL@%$DLLTOOL%g
16327 s%@OBJDUMP@%$OBJDUMP%g
16328 s%@LIBTOOL@%$LIBTOOL%g
16330 s%@SENDMAIL@%$SENDMAIL%g
16331 s%@EDITOR@%$EDITOR%g
16332 s%@FINGER@%$FINGER%g
16333 s%@PERLBIN@%$PERLBIN%g
16335 s%@EXEEXT@%$EXEEXT%g
16336 s%@OBJEXT@%$OBJEXT%g
16337 s%@OL_MKDEP@%$OL_MKDEP%g
16338 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16340 s%@LIBOBJS@%$LIBOBJS%g
16341 s%@LIBSRCS@%$LIBSRCS%g
16343 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16344 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16345 s%@DYN_EXT@%$DYN_EXT%g
16346 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
16347 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16348 s%@BUILD_BDB2@%$BUILD_BDB2%g
16349 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16350 s%@BUILD_LDAP@%$BUILD_LDAP%g
16351 s%@BUILD_LDBM@%$BUILD_LDBM%g
16352 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16353 s%@BUILD_PERL@%$BUILD_PERL%g
16354 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16355 s%@BUILD_SHELL@%$BUILD_SHELL%g
16356 s%@BUILD_SQL@%$BUILD_SQL%g
16357 s%@BUILD_TCL@%$BUILD_TCL%g
16358 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16359 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16360 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16361 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16362 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16363 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16364 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16365 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16366 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16367 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16368 s%@LDAP_LIBS@%$LDAP_LIBS%g
16369 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
16370 s%@LDIF_LIBS@%$LDIF_LIBS%g
16371 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16372 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16373 s%@LDBM_LIBS@%$LDBM_LIBS%g
16374 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16375 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16376 s%@WRAP_LIBS@%$WRAP_LIBS%g
16377 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16378 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16379 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16380 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16381 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16382 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16383 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16384 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16385 s%@KRB4_LIBS@%$KRB4_LIBS%g
16386 s%@KRB5_LIBS@%$KRB5_LIBS%g
16387 s%@READLINE_LIBS@%$READLINE_LIBS%g
16388 s%@SASL_LIBS@%$SASL_LIBS%g
16389 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16390 s%@TLS_LIBS@%$TLS_LIBS%g
16391 s%@MODULES_LIBS@%$MODULES_LIBS%g
16392 s%@AUTH_LIBS@%$AUTH_LIBS%g
16393 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16394 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16395 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16400 cat >> $CONFIG_STATUS <<\EOF
16402 # Split the substitutions into bite-sized pieces for seds with
16403 # small command number limits, like on Digital OSF/1 and HP-UX.
16404 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16405 ac_file=1 # Number of current file.
16406 ac_beg=1 # First line for current file.
16407 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16410 while $ac_more_lines; do
16411 if test $ac_beg -gt 1; then
16412 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16414 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16416 if test ! -s conftest.s$ac_file; then
16417 ac_more_lines=false
16418 rm -f conftest.s$ac_file
16420 if test -z "$ac_sed_cmds"; then
16421 ac_sed_cmds="sed -f conftest.s$ac_file"
16423 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16425 ac_file=`expr $ac_file + 1`
16427 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16430 if test -z "$ac_sed_cmds"; then
16435 cat >> $CONFIG_STATUS <<EOF
16437 CONFIG_FILES=\${CONFIG_FILES-"\
16438 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16439 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16440 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16441 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16442 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16443 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16444 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16445 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16446 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16447 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16448 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16449 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16450 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16451 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16452 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16453 include/Makefile:build/top.mk:include/Makefile.in \
16454 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16455 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16456 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16457 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16458 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16459 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16460 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16461 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16462 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16463 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16464 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16465 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16466 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16467 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16468 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16469 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16470 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16471 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16472 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16473 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16474 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16475 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16476 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16477 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16478 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16479 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16480 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16481 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16482 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16485 cat >> $CONFIG_STATUS <<\EOF
16486 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16489 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16490 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16491 *) ac_file_in="${ac_file}.in" ;;
16494 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16496 # Remove last slash and all that follows it. Not all systems have dirname.
16497 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16498 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16499 # The file is in a subdirectory.
16500 test ! -d "$ac_dir" && mkdir "$ac_dir"
16501 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16502 # A "../" for each directory in $ac_dir_suffix.
16503 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16505 ac_dir_suffix= ac_dots=
16508 case "$ac_given_srcdir" in
16510 if test -z "$ac_dots"; then top_srcdir=.
16511 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16512 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16513 *) # Relative path.
16514 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16515 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16518 case "$ac_given_INSTALL" in
16519 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16520 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16523 echo creating "$ac_file"
16525 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16527 *[Mm]akefile*) ac_comsub="1i\\
16528 # $configure_input" ;;
16532 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16534 s%@configure_input@%$configure_input%g
16535 s%@srcdir@%$srcdir%g
16536 s%@top_srcdir@%$top_srcdir%g
16537 s%@INSTALL@%$INSTALL%g
16538 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16542 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16543 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16545 # ac_d sets the value in "#define NAME VALUE" lines.
16546 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16547 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16550 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16551 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16552 ac_uB='\([ ]\)%\1#\2define\3'
16555 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16556 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16557 ac_eB='$%\1#\2define\3'
16561 if test "${CONFIG_HEADERS+set}" != set; then
16563 cat >> $CONFIG_STATUS <<EOF
16564 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16566 cat >> $CONFIG_STATUS <<\EOF
16568 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16571 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16572 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16573 *) ac_file_in="${ac_file}.in" ;;
16576 echo creating $ac_file
16578 rm -f conftest.frag conftest.in conftest.out
16579 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16580 cat $ac_file_inputs > conftest.in
16584 # Transform confdefs.h into a sed script conftest.vals that substitutes
16585 # the proper values into config.h.in to produce config.h. And first:
16586 # Protect against being on the right side of a sed subst in config.status.
16587 # Protect against being in an unquoted here document in config.status.
16588 rm -f conftest.vals
16589 cat > conftest.hdr <<\EOF
16592 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16596 sed -n -f conftest.hdr confdefs.h > conftest.vals
16599 # This sed command replaces #undef with comments. This is necessary, for
16600 # example, in the case of _POSIX_SOURCE, which is predefined and required
16601 # on some systems where configure will not decide to define it.
16602 cat >> conftest.vals <<\EOF
16603 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16606 # Break up conftest.vals because some shells have a limit on
16607 # the size of here documents, and old seds have small limits too.
16609 rm -f conftest.tail
16612 ac_lines=`grep -c . conftest.vals`
16613 # grep -c gives empty output for an empty file on some AIX systems.
16614 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16615 # Write a limited-size here document to conftest.frag.
16616 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16617 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16619 sed -f conftest.frag conftest.in > conftest.out
16621 mv conftest.out conftest.in
16622 ' >> $CONFIG_STATUS
16623 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16624 rm -f conftest.vals
16625 mv conftest.tail conftest.vals
16627 rm -f conftest.vals
16629 cat >> $CONFIG_STATUS <<\EOF
16630 rm -f conftest.frag conftest.h
16631 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16632 cat conftest.in >> conftest.h
16634 if cmp -s $ac_file conftest.h 2>/dev/null; then
16635 echo "$ac_file is unchanged"
16638 # Remove last slash and all that follows it. Not all systems have dirname.
16639 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16640 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16641 # The file is in a subdirectory.
16642 test ! -d "$ac_dir" && mkdir "$ac_dir"
16645 mv conftest.h $ac_file
16650 cat >> $CONFIG_STATUS <<EOF
16653 cat >> $CONFIG_STATUS <<\EOF
16656 echo Please \"make depend\" to build dependencies
16660 chmod +x $CONFIG_STATUS
16661 rm -fr confdefs* $ac_clean_files
16662 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1