3 # from OpenLDAP: pkg/ldap/configure.in,v 1.261 1999/09/22 15:45:59 jsanchez Exp
5 # Copyright 1998,1999 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-1999 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
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-cldap enable connectionless ldap (no)"
44 --enable-x-compile enable cross compiling (no)"
46 --enable-dmalloc enable debug malloc support (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with Kerberos support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads use threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 LDAPD (X.500-to-LDAP Gateway) Options:"
64 --enable-ldapd enable building ldapd (no)"
66 SLAPD (Standalone LDAP Daemon) Options:"
68 --enable-slapd enable building slapd (yes)"
70 --enable-cleartext enable cleartext passwords (yes)"
72 --enable-crypt enable crypt(3) passwords (auto)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-quipu build quipu migration tools (no)"
82 --enable-rlookups enable reverse lookups (auto)"
84 --enable-aci enable per-object ACIs (no)"
86 --enable-discreteaci enable discrete rights in ACIs (no)"
88 --enable-wrappers enable tcp wrapper support (no)"
90 --enable-bdb2 enable bdb2 backend (no)"
92 --with-bdb2-module module type (static)"
94 --enable-ldap enable ldap backend (no)"
96 --with-ldap-module module type (static)"
98 --enable-ldbm enable ldbm backend (yes)"
100 --with-ldbm-api use LDBM API (auto)"
102 --with-ldbm-module module type (static)"
104 --with-ldbm-type use LDBM type (auto)"
106 --enable-passwd enable passwd backend (no)"
108 --with-passwd-module module type (static)"
110 --enable-perl enable perl backend (no)"
112 --with-perl-module module type (static)"
114 --enable-shell enable shell backend (no)"
116 --with-shell-module module type (static)"
118 --enable-tcl enable tcl backend (no)"
120 --with-tcl-module module type (static)"
122 SLURPD (Replication Daemon) Options:"
124 --enable-slurpd enable building slurpd (auto)"
126 Library Generation & Linking Options"
128 --enable-static[=PKGS] build static libraries [default=yes]"
130 --enable-shared[=PKGS] build shared libraries [default=yes]"
132 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
134 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
136 --disable-libtool-lock avoid locking (might break parallel builds)"
138 # Initialize some variables set by options.
139 # The variables have the same names as the options, with
140 # dashes changed to underlines.
142 cache_file=./config.cache
151 program_transform_name=s,x,x,
159 bindir='${exec_prefix}/bin'
160 sbindir='${exec_prefix}/sbin'
161 libexecdir='${exec_prefix}/libexec'
162 datadir='${prefix}/share'
163 sysconfdir='${prefix}/etc'
164 sharedstatedir='${prefix}/com'
165 localstatedir='${prefix}/var'
166 libdir='${exec_prefix}/lib'
167 includedir='${prefix}/include'
168 oldincludedir='/usr/include'
169 infodir='${prefix}/info'
170 mandir='${prefix}/man'
172 # Initialize some other variables.
175 SHELL=${CONFIG_SHELL-/bin/sh}
176 # Maximum number of lines to put in a shell here document.
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
191 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
195 # Accept the important Cygnus configure options, so we can diagnose typos.
199 -bindir | --bindir | --bindi | --bind | --bin | --bi)
201 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
202 bindir="$ac_optarg" ;;
204 -build | --build | --buil | --bui | --bu)
206 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
207 build="$ac_optarg" ;;
209 -cache-file | --cache-file | --cache-fil | --cache-fi \
210 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
211 ac_prev=cache_file ;;
212 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
213 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
214 cache_file="$ac_optarg" ;;
216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
220 datadir="$ac_optarg" ;;
222 -disable-* | --disable-*)
223 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
224 # Reject names that are not valid shell variable names.
225 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
226 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
228 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
229 eval "enable_${ac_feature}=no" ;;
231 -enable-* | --enable-*)
232 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
233 # Reject names that are not valid shell variable names.
234 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
235 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
237 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
242 eval "enable_${ac_feature}='$ac_optarg'" ;;
244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246 | --exec | --exe | --ex)
247 ac_prev=exec_prefix ;;
248 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250 | --exec=* | --exe=* | --ex=*)
251 exec_prefix="$ac_optarg" ;;
253 -gas | --gas | --ga | --g)
254 # Obsolete; use --with-gas.
257 -help | --help | --hel | --he)
258 # Omit some internal or obsolete options to make the list less imposing.
259 # This message is too long to be a string in the A/UX 3.1 sh.
261 Usage: configure [options] [host]
262 Options: [defaults in brackets after descriptions]
264 --cache-file=FILE cache test results in FILE
265 --help print this message
266 --no-create do not create output files
267 --quiet, --silent do not print \`checking...' messages
268 --version print the version of autoconf that created configure
269 Directory and file names:
270 --prefix=PREFIX install architecture-independent files in PREFIX
272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
274 --bindir=DIR user executables in DIR [EPREFIX/bin]
275 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
276 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
277 --datadir=DIR read-only architecture-independent data in DIR
279 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
280 --sharedstatedir=DIR modifiable architecture-independent data in DIR
282 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
283 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
284 --includedir=DIR C header files in DIR [PREFIX/include]
285 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
286 --infodir=DIR info documentation in DIR [PREFIX/info]
287 --mandir=DIR man documentation in DIR [PREFIX/man]
288 --srcdir=DIR find the sources in DIR [configure dir or ..]
289 --program-prefix=PREFIX prepend PREFIX to installed program names
290 --program-suffix=SUFFIX append SUFFIX to installed program names
291 --program-transform-name=PROGRAM
292 run sed PROGRAM on installed program names
296 --build=BUILD configure for building on BUILD [BUILD=HOST]
297 --host=HOST configure for HOST [guessed]
298 --target=TARGET configure for TARGET [TARGET=HOST]
299 Features and packages:
300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
302 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
303 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
304 --x-includes=DIR X include files are in DIR
305 --x-libraries=DIR X library files are in DIR
307 if test -n "$ac_help"; then
308 echo "--enable and --with options recognized:$ac_help"
312 -host | --host | --hos | --ho)
314 -host=* | --host=* | --hos=* | --ho=*)
317 -includedir | --includedir | --includedi | --included | --include \
318 | --includ | --inclu | --incl | --inc)
319 ac_prev=includedir ;;
320 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
321 | --includ=* | --inclu=* | --incl=* | --inc=*)
322 includedir="$ac_optarg" ;;
324 -infodir | --infodir | --infodi | --infod | --info | --inf)
326 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
327 infodir="$ac_optarg" ;;
329 -libdir | --libdir | --libdi | --libd)
331 -libdir=* | --libdir=* | --libdi=* | --libd=*)
332 libdir="$ac_optarg" ;;
334 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
335 | --libexe | --libex | --libe)
336 ac_prev=libexecdir ;;
337 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
338 | --libexe=* | --libex=* | --libe=*)
339 libexecdir="$ac_optarg" ;;
341 -localstatedir | --localstatedir | --localstatedi | --localstated \
342 | --localstate | --localstat | --localsta | --localst \
343 | --locals | --local | --loca | --loc | --lo)
344 ac_prev=localstatedir ;;
345 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
346 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
347 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
348 localstatedir="$ac_optarg" ;;
350 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
352 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
353 mandir="$ac_optarg" ;;
356 # Obsolete; use --without-fp.
359 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
363 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
364 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
367 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
368 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
369 | --oldin | --oldi | --old | --ol | --o)
370 ac_prev=oldincludedir ;;
371 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
372 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
373 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
374 oldincludedir="$ac_optarg" ;;
376 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
378 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
379 prefix="$ac_optarg" ;;
381 -program-prefix | --program-prefix | --program-prefi | --program-pref \
382 | --program-pre | --program-pr | --program-p)
383 ac_prev=program_prefix ;;
384 -program-prefix=* | --program-prefix=* | --program-prefi=* \
385 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
386 program_prefix="$ac_optarg" ;;
388 -program-suffix | --program-suffix | --program-suffi | --program-suff \
389 | --program-suf | --program-su | --program-s)
390 ac_prev=program_suffix ;;
391 -program-suffix=* | --program-suffix=* | --program-suffi=* \
392 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
393 program_suffix="$ac_optarg" ;;
395 -program-transform-name | --program-transform-name \
396 | --program-transform-nam | --program-transform-na \
397 | --program-transform-n | --program-transform- \
398 | --program-transform | --program-transfor \
399 | --program-transfo | --program-transf \
400 | --program-trans | --program-tran \
401 | --progr-tra | --program-tr | --program-t)
402 ac_prev=program_transform_name ;;
403 -program-transform-name=* | --program-transform-name=* \
404 | --program-transform-nam=* | --program-transform-na=* \
405 | --program-transform-n=* | --program-transform-=* \
406 | --program-transform=* | --program-transfor=* \
407 | --program-transfo=* | --program-transf=* \
408 | --program-trans=* | --program-tran=* \
409 | --progr-tra=* | --program-tr=* | --program-t=*)
410 program_transform_name="$ac_optarg" ;;
412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
413 | -silent | --silent | --silen | --sile | --sil)
416 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
418 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
420 sbindir="$ac_optarg" ;;
422 -sharedstatedir | --sharedstatedir | --sharedstatedi \
423 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
424 | --sharedst | --shareds | --shared | --share | --shar \
426 ac_prev=sharedstatedir ;;
427 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
428 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
429 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
431 sharedstatedir="$ac_optarg" ;;
433 -site | --site | --sit)
435 -site=* | --site=* | --sit=*)
438 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
440 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
441 srcdir="$ac_optarg" ;;
443 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
444 | --syscon | --sysco | --sysc | --sys | --sy)
445 ac_prev=sysconfdir ;;
446 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
447 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
448 sysconfdir="$ac_optarg" ;;
450 -target | --target | --targe | --targ | --tar | --ta | --t)
452 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
453 target="$ac_optarg" ;;
455 -v | -verbose | --verbose | --verbos | --verbo | --verb)
458 -version | --version | --versio | --versi | --vers)
459 echo "configure generated by autoconf version 2.13"
463 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
464 # Reject names that are not valid shell variable names.
465 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
466 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
468 ac_package=`echo $ac_package| sed 's/-/_/g'`
473 eval "with_${ac_package}='$ac_optarg'" ;;
475 -without-* | --without-*)
476 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
477 # Reject names that are not valid shell variable names.
478 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
479 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
481 ac_package=`echo $ac_package| sed 's/-/_/g'`
482 eval "with_${ac_package}=no" ;;
485 # Obsolete; use --with-x.
488 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
489 | --x-incl | --x-inc | --x-in | --x-i)
490 ac_prev=x_includes ;;
491 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
492 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
493 x_includes="$ac_optarg" ;;
495 -x-libraries | --x-libraries | --x-librarie | --x-librari \
496 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
497 ac_prev=x_libraries ;;
498 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
499 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
500 x_libraries="$ac_optarg" ;;
502 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
506 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
507 echo "configure: warning: $ac_option: invalid host type" 1>&2
509 if test "x$nonopt" != xNONE; then
510 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
518 if test -n "$ac_prev"; then
519 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
524 # File descriptor usage:
527 # 2 errors and warnings
528 # 3 some systems may open it to /dev/tty
529 # 4 used on the Kubota Titan
530 # 6 checking for... messages and results
531 # 5 compiler messages saved in config.log
532 if test "$silent" = yes; then
540 This file contains any messages produced by compilers while
541 running configure, to aid debugging if configure makes a mistake.
544 # Strip out --no-create and --no-recursion so they do not pile up.
545 # Also quote any args containing shell metacharacters.
550 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
551 | --no-cr | --no-c) ;;
552 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
553 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
554 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
555 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
556 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
561 # Only set these to C if already set. These must not be set unconditionally
562 # because not all systems understand e.g. LANG=C (notably SCO).
563 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
564 # Non-C LC_CTYPE values break the ctype check.
565 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
566 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
567 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
568 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
571 rm -rf conftest* confdefs.h
572 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
575 # A filename unique to this package, relative to the directory that
576 # configure is in, which we can look for to find out if srcdir is correct.
577 ac_unique_file=build/version
579 # Find the source files, if location was not specified.
580 if test -z "$srcdir"; then
581 ac_srcdir_defaulted=yes
582 # Try the directory containing this script, then its parent.
584 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
585 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
587 if test ! -r $srcdir/$ac_unique_file; then
591 ac_srcdir_defaulted=no
593 if test ! -r $srcdir/$ac_unique_file; then
594 if test "$ac_srcdir_defaulted" = yes; then
595 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
597 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
600 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
602 # Prefer explicitly selected file to automatically selected ones.
603 if test -z "$CONFIG_SITE"; then
604 if test "x$prefix" != xNONE; then
605 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
607 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
610 for ac_site_file in $CONFIG_SITE; do
611 if test -r "$ac_site_file"; then
612 echo "loading site script $ac_site_file"
619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
620 ac_cpp='$CPP $CPPFLAGS'
621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
623 cross_compiling=$ac_cv_prog_cc_cross
627 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
628 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
629 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
636 ac_n= ac_c='\c' ac_t=
640 for ac_dir in build $srcdir/build; do
641 if test -f $ac_dir/install-sh; then
643 ac_install_sh="$ac_aux_dir/install-sh -c"
645 elif test -f $ac_dir/install.sh; then
647 ac_install_sh="$ac_aux_dir/install.sh -c"
651 if test -z "$ac_aux_dir"; then
652 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
654 ac_config_guess=$ac_aux_dir/config.guess
655 ac_config_sub=$ac_aux_dir/config.sub
656 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
658 OL_VERSION=`cat $ac_aux_dir/version`
659 if test -z "$OL_VERSION"; then
660 { echo "configure: error: could not determine version" 1>&2; exit 1; }
663 echo "Configuring OpenLDAP $OL_VERSION ..."
666 # Do some error checking and defaulting for the host and target type.
668 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
671 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 # 2. Host defaults to nonopt.
674 # 3. If nonopt is not specified, then host defaults to the current host,
675 # as determined by config.guess.
676 # 4. Target and build default to nonopt.
677 # 5. If nonopt is not specified, then target and build default to host.
679 # The aliases save the names the user supplied, while $host etc.
680 # will get canonicalized.
681 case $host---$target---$nonopt in
682 NONE---*---* | *---NONE---* | *---*---NONE) ;;
683 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
687 # Make sure we can run config.sub.
688 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
689 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
692 echo $ac_n "checking host system type""... $ac_c" 1>&6
693 echo "configure:694: checking host system type" >&5
696 case "$host_alias" in
700 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 *) host_alias=$nonopt ;;
707 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
708 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
711 echo "$ac_t""$host" 1>&6
713 echo $ac_n "checking target system type""... $ac_c" 1>&6
714 echo "configure:715: checking target system type" >&5
717 case "$target_alias" in
720 NONE) target_alias=$host_alias ;;
721 *) target_alias=$nonopt ;;
725 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
726 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$target" 1>&6
731 echo $ac_n "checking build system type""... $ac_c" 1>&6
732 echo "configure:733: checking build system type" >&5
735 case "$build_alias" in
738 NONE) build_alias=$host_alias ;;
739 *) build_alias=$nonopt ;;
743 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
744 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
747 echo "$ac_t""$build" 1>&6
749 test "$host_alias" != "$target_alias" &&
750 test "$program_prefix$program_suffix$program_transform_name" = \
752 program_prefix=${target_alias}-
755 # Find a good install program. We prefer a C program (faster),
756 # so one script is as good as another. But avoid the broken or
757 # incompatible versions:
758 # SysV /etc/install, /usr/sbin/install
759 # SunOS /usr/etc/install
762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
765 # ./install, which can be erroneously created by make from ./install.sh.
766 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
767 echo "configure:768: checking for a BSD compatible install" >&5
768 if test -z "$INSTALL"; then
769 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
773 for ac_dir in $PATH; do
774 # Account for people who put trailing slashes in PATH elements.
776 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
778 # OSF1 and SCO ODT 3.0 have their own names for install.
779 # Don't use installbsd from OSF since it installs stuff as root
781 for ac_prog in ginstall scoinst install; do
782 if test -f $ac_dir/$ac_prog; then
783 if test $ac_prog = install &&
784 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
785 # AIX install. It has an incompatible calling convention.
788 ac_cv_path_install="$ac_dir/$ac_prog -c"
799 if test "${ac_cv_path_install+set}" = set; then
800 INSTALL="$ac_cv_path_install"
802 # As a last resort, use the slow shell script. We don't cache a
803 # path for INSTALL within a source directory, because that will
804 # break other packages using the cache if that directory is
805 # removed, or if the path is relative.
806 INSTALL="$ac_install_sh"
809 echo "$ac_t""$INSTALL" 1>&6
811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
812 # It thinks the first close brace ends the variable substitution.
813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
819 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
820 echo "configure:821: checking whether build environment is sane" >&5
823 echo timestamp > conftestfile
824 # Do `set' in a subshell so we don't clobber the current shell's
825 # arguments. Must try -L first in case configure is actually a
826 # symlink; some systems play weird games with the mod time of symlinks
827 # (eg FreeBSD returns the mod time of the symlink's containing
830 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
831 if test "$*" = "X"; then
833 set X `ls -t $srcdir/configure conftestfile`
835 if test "$*" != "X $srcdir/configure conftestfile" \
836 && test "$*" != "X conftestfile $srcdir/configure"; then
838 # If neither matched, then we have a broken ls. This can happen
839 # if, for instance, CONFIG_SHELL is bash and it inherits a
840 # broken ls alias from the environment. This has actually
841 # happened. Such a system could not be considered "sane".
842 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
843 alias in your environment" 1>&2; exit 1; }
846 test "$2" = conftestfile
852 { echo "configure: error: newly created file is older than distributed files!
853 Check your system clock" 1>&2; exit 1; }
856 echo "$ac_t""yes" 1>&6
857 if test "$program_transform_name" = s,x,x,; then
858 program_transform_name=
860 # Double any \ or $. echo might interpret backslashes.
861 cat <<\EOF_SED > conftestsed
862 s,\\,\\\\,g; s,\$,$$,g
864 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
867 test "$program_prefix" != NONE &&
868 program_transform_name="s,^,${program_prefix},; $program_transform_name"
869 # Use a double $ so make ignores it.
870 test "$program_suffix" != NONE &&
871 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
873 # sed with no file args requires a program.
874 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
876 for ac_prog in mawk gawk nawk awk
878 # Extract the first word of "$ac_prog", so it can be a program name with args.
879 set dummy $ac_prog; ac_word=$2
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881 echo "configure:882: checking for $ac_word" >&5
882 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 if test -n "$AWK"; then
886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
890 for ac_dir in $ac_dummy; do
891 test -z "$ac_dir" && ac_dir=.
892 if test -f $ac_dir/$ac_word; then
893 ac_cv_prog_AWK="$ac_prog"
900 AWK="$ac_cv_prog_AWK"
901 if test -n "$AWK"; then
902 echo "$ac_t""$AWK" 1>&6
904 echo "$ac_t""no" 1>&6
907 test -n "$AWK" && break
910 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
911 echo "configure:912: checking whether ${MAKE-make} sets \${MAKE}" >&5
912 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
913 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 cat > conftestmake <<\EOF
918 @echo 'ac_maketemp="${MAKE}"'
920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
921 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
922 if test -n "$ac_maketemp"; then
923 eval ac_cv_prog_make_${ac_make}_set=yes
925 eval ac_cv_prog_make_${ac_make}_set=no
929 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
930 echo "$ac_t""yes" 1>&6
933 echo "$ac_t""no" 1>&6
934 SET_MAKE="MAKE=${MAKE-make}"
943 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
944 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
949 missing_dir=`cd $ac_aux_dir && pwd`
950 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
951 echo "configure:952: checking for working aclocal" >&5
952 # Run test in a subshell; some versions of sh will print an error if
953 # an executable is not found, even if stderr is redirected.
954 # Redirect stdin to placate older versions of autoconf. Sigh.
955 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
957 echo "$ac_t""found" 1>&6
959 ACLOCAL="$missing_dir/missing aclocal"
960 echo "$ac_t""missing" 1>&6
963 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
964 echo "configure:965: checking for working autoconf" >&5
965 # Run test in a subshell; some versions of sh will print an error if
966 # an executable is not found, even if stderr is redirected.
967 # Redirect stdin to placate older versions of autoconf. Sigh.
968 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
970 echo "$ac_t""found" 1>&6
972 AUTOCONF="$missing_dir/missing autoconf"
973 echo "$ac_t""missing" 1>&6
976 echo $ac_n "checking for working automake""... $ac_c" 1>&6
977 echo "configure:978: checking for working automake" >&5
978 # Run test in a subshell; some versions of sh will print an error if
979 # an executable is not found, even if stderr is redirected.
980 # Redirect stdin to placate older versions of autoconf. Sigh.
981 if (automake --version) < /dev/null > /dev/null 2>&1; then
983 echo "$ac_t""found" 1>&6
985 AUTOMAKE="$missing_dir/missing automake"
986 echo "$ac_t""missing" 1>&6
989 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
990 echo "configure:991: checking for working autoheader" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
995 AUTOHEADER=autoheader
996 echo "$ac_t""found" 1>&6
998 AUTOHEADER="$missing_dir/missing autoheader"
999 echo "$ac_t""missing" 1>&6
1002 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working makeinfo" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf. Sigh.
1007 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1009 echo "$ac_t""found" 1>&6
1011 MAKEINFO="$missing_dir/missing makeinfo"
1012 echo "$ac_t""missing" 1>&6
1015 install_sh="$missing_dir/install-sh"
1016 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1018 for ac_prog in gnutar gtar tar
1020 # Extract the first word of "$ac_prog", so it can be a program name with args.
1021 set dummy $ac_prog; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_AMTAR'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$AMTAR"; then
1028 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 for ac_dir in $ac_dummy; do
1033 test -z "$ac_dir" && ac_dir=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_prog_AMTAR="$ac_prog"
1042 AMTAR="$ac_cv_prog_AMTAR"
1043 if test -n "$AMTAR"; then
1044 echo "$ac_t""$AMTAR" 1>&6
1046 echo "$ac_t""no" 1>&6
1049 test -n "$AMTAR" && break
1054 if test -n "$AMTAR"; then
1055 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1062 cat >> confdefs.h <<EOF
1063 #define OPENLDAP_PACKAGE "$PACKAGE"
1066 cat >> confdefs.h <<EOF
1067 #define OPENLDAP_VERSION "$VERSION"
1073 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1074 echo "configure:1075: checking configure arguments" >&5
1079 ldap_subdir="/openldap"
1081 # Check whether --with-subdir or --without-subdir was given.
1082 if test "${with_subdir+set}" = set; then
1083 withval="$with_subdir"
1090 ldap_subdir="$withval"
1093 ldap_subdir="/$withval"
1100 # OpenLDAP --enable-debug
1101 # Check whether --enable-debug or --disable-debug was given.
1102 if test "${enable_debug+set}" = set; then
1103 enableval="$enable_debug"
1106 for ol_val in auto yes no ; do
1107 if test "$enableval" = "$ol_val" ; then
1111 if test "$ol_arg" = "invalid" ; then
1112 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1114 ol_enable_debug="$ol_arg"
1117 ol_enable_debug="yes"
1119 # end --enable-debug
1120 # OpenLDAP --enable-syslog
1121 # Check whether --enable-syslog or --disable-syslog was given.
1122 if test "${enable_syslog+set}" = set; then
1123 enableval="$enable_syslog"
1126 for ol_val in auto yes no ; do
1127 if test "$enableval" = "$ol_val" ; then
1131 if test "$ol_arg" = "invalid" ; then
1132 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1134 ol_enable_syslog="$ol_arg"
1137 ol_enable_syslog="auto"
1139 # end --enable-syslog
1140 # OpenLDAP --enable-proctitle
1141 # Check whether --enable-proctitle or --disable-proctitle was given.
1142 if test "${enable_proctitle+set}" = set; then
1143 enableval="$enable_proctitle"
1146 for ol_val in auto yes no ; do
1147 if test "$enableval" = "$ol_val" ; then
1151 if test "$ol_arg" = "invalid" ; then
1152 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1154 ol_enable_proctitle="$ol_arg"
1157 ol_enable_proctitle="yes"
1159 # end --enable-proctitle
1160 # OpenLDAP --enable-cache
1161 # Check whether --enable-cache or --disable-cache was given.
1162 if test "${enable_cache+set}" = set; then
1163 enableval="$enable_cache"
1166 for ol_val in auto yes no ; do
1167 if test "$enableval" = "$ol_val" ; then
1171 if test "$ol_arg" = "invalid" ; then
1172 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1174 ol_enable_cache="$ol_arg"
1177 ol_enable_cache="yes"
1179 # end --enable-cache
1180 # OpenLDAP --enable-dns
1181 # Check whether --enable-dns or --disable-dns was given.
1182 if test "${enable_dns+set}" = set; then
1183 enableval="$enable_dns"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1194 ol_enable_dns="$ol_arg"
1200 # OpenLDAP --enable-referrals
1201 # Check whether --enable-referrals or --disable-referrals was given.
1202 if test "${enable_referrals+set}" = set; then
1203 enableval="$enable_referrals"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1214 ol_enable_referrals="$ol_arg"
1217 ol_enable_referrals="yes"
1219 # end --enable-referrals
1220 # OpenLDAP --enable-cldap
1221 # Check whether --enable-cldap or --disable-cldap was given.
1222 if test "${enable_cldap+set}" = set; then
1223 enableval="$enable_cldap"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1234 ol_enable_cldap="$ol_arg"
1237 ol_enable_cldap="no"
1239 # end --enable-cldap
1240 # OpenLDAP --enable-x_compile
1241 # Check whether --enable-x_compile or --disable-x_compile was given.
1242 if test "${enable_x_compile+set}" = set; then
1243 enableval="$enable_x_compile"
1246 for ol_val in yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1254 ol_enable_x_compile="$ol_arg"
1257 ol_enable_x_compile="no"
1259 # end --enable-x_compile
1261 # OpenLDAP --enable-dmalloc
1262 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1263 if test "${enable_dmalloc+set}" = set; then
1264 enableval="$enable_dmalloc"
1267 for ol_val in auto yes no ; do
1268 if test "$enableval" = "$ol_val" ; then
1272 if test "$ol_arg" = "invalid" ; then
1273 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1275 ol_enable_dmalloc="$ol_arg"
1278 ol_enable_dmalloc="no"
1280 # end --enable-dmalloc
1282 # OpenLDAP --with-cyrus_sasl
1283 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1284 if test "${with_cyrus_sasl+set}" = set; then
1285 withval="$with_cyrus_sasl"
1288 for ol_val in auto yes no ; do
1289 if test "$withval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1296 ol_with_cyrus_sasl="$ol_arg"
1299 ol_with_cyrus_sasl="auto"
1301 # end --with-cyrus_sasl
1303 # OpenLDAP --with-fetch
1304 # Check whether --with-fetch or --without-fetch was given.
1305 if test "${with_fetch+set}" = set; then
1306 withval="$with_fetch"
1309 for ol_val in auto yes no ; do
1310 if test "$withval" = "$ol_val" ; then
1314 if test "$ol_arg" = "invalid" ; then
1315 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1317 ol_with_fetch="$ol_arg"
1320 ol_with_fetch="auto"
1324 # OpenLDAP --with-kerberos
1325 # Check whether --with-kerberos or --without-kerberos was given.
1326 if test "${with_kerberos+set}" = set; then
1327 withval="$with_kerberos"
1330 for ol_val in auto k5 k4 afs yes no ; do
1331 if test "$withval" = "$ol_val" ; then
1335 if test "$ol_arg" = "invalid" ; then
1336 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1338 ol_with_kerberos="$ol_arg"
1341 ol_with_kerberos="auto"
1343 # end --with-kerberos
1345 # OpenLDAP --with-readline
1346 # Check whether --with-readline or --without-readline was given.
1347 if test "${with_readline+set}" = set; then
1348 withval="$with_readline"
1351 for ol_val in auto yes no ; do
1352 if test "$withval" = "$ol_val" ; then
1356 if test "$ol_arg" = "invalid" ; then
1357 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1359 ol_with_readline="$ol_arg"
1362 ol_with_readline="auto"
1364 # end --with-readline
1366 # OpenLDAP --with-threads
1367 # Check whether --with-threads or --without-threads was given.
1368 if test "${with_threads+set}" = set; then
1369 withval="$with_threads"
1372 for ol_val in auto posix mach pth lwp yes no manual ; do
1373 if test "$withval" = "$ol_val" ; then
1377 if test "$ol_arg" = "invalid" ; then
1378 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1380 ol_with_threads="$ol_arg"
1383 ol_with_threads="auto"
1385 # end --with-threads
1387 # OpenLDAP --with-tls
1388 # Check whether --with-tls or --without-tls was given.
1389 if test "${with_tls+set}" = set; then
1393 for ol_val in auto ssleay openssl yes no ; do
1394 if test "$withval" = "$ol_val" ; then
1398 if test "$ol_arg" = "invalid" ; then
1399 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1401 ol_with_tls="$ol_arg"
1408 # OpenLDAP --with-yielding_select
1409 # Check whether --with-yielding_select or --without-yielding_select was given.
1410 if test "${with_yielding_select+set}" = set; then
1411 withval="$with_yielding_select"
1414 for ol_val in auto yes no manual ; do
1415 if test "$withval" = "$ol_val" ; then
1419 if test "$ol_arg" = "invalid" ; then
1420 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1422 ol_with_yielding_select="$ol_arg"
1425 ol_with_yielding_select="auto"
1427 # end --with-yielding_select
1430 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1431 if test "${with_xxldapdoptions+set}" = set; then
1432 withval="$with_xxldapdoptions"
1436 # OpenLDAP --enable-ldapd
1437 # Check whether --enable-ldapd or --disable-ldapd was given.
1438 if test "${enable_ldapd+set}" = set; then
1439 enableval="$enable_ldapd"
1442 for ol_val in auto yes no ; do
1443 if test "$enableval" = "$ol_val" ; then
1447 if test "$ol_arg" = "invalid" ; then
1448 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1450 ol_enable_ldapd="$ol_arg"
1453 ol_enable_ldapd="no"
1455 # end --enable-ldapd
1457 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1458 if test "${with_xxslapdoptions+set}" = set; then
1459 withval="$with_xxslapdoptions"
1463 # OpenLDAP --enable-slapd
1464 # Check whether --enable-slapd or --disable-slapd was given.
1465 if test "${enable_slapd+set}" = set; then
1466 enableval="$enable_slapd"
1469 for ol_val in auto yes no ; do
1470 if test "$enableval" = "$ol_val" ; then
1474 if test "$ol_arg" = "invalid" ; then
1475 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1477 ol_enable_slapd="$ol_arg"
1480 ol_enable_slapd="yes"
1482 # end --enable-slapd
1483 # OpenLDAP --enable-cleartext
1484 # Check whether --enable-cleartext or --disable-cleartext was given.
1485 if test "${enable_cleartext+set}" = set; then
1486 enableval="$enable_cleartext"
1489 for ol_val in auto yes no ; do
1490 if test "$enableval" = "$ol_val" ; then
1494 if test "$ol_arg" = "invalid" ; then
1495 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1497 ol_enable_cleartext="$ol_arg"
1500 ol_enable_cleartext="yes"
1502 # end --enable-cleartext
1503 # OpenLDAP --enable-crypt
1504 # Check whether --enable-crypt or --disable-crypt was given.
1505 if test "${enable_crypt+set}" = set; then
1506 enableval="$enable_crypt"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1517 ol_enable_crypt="$ol_arg"
1520 ol_enable_crypt="auto"
1522 # end --enable-crypt
1523 # OpenLDAP --enable-modules
1524 # Check whether --enable-modules or --disable-modules was given.
1525 if test "${enable_modules+set}" = set; then
1526 enableval="$enable_modules"
1529 for ol_val in auto yes no ; do
1530 if test "$enableval" = "$ol_val" ; then
1534 if test "$ol_arg" = "invalid" ; then
1535 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1537 ol_enable_modules="$ol_arg"
1540 ol_enable_modules="no"
1542 # end --enable-modules
1543 # OpenLDAP --enable-multimaster
1544 # Check whether --enable-multimaster or --disable-multimaster was given.
1545 if test "${enable_multimaster+set}" = set; then
1546 enableval="$enable_multimaster"
1549 for ol_val in auto yes no ; do
1550 if test "$enableval" = "$ol_val" ; then
1554 if test "$ol_arg" = "invalid" ; then
1555 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1557 ol_enable_multimaster="$ol_arg"
1560 ol_enable_multimaster="no"
1562 # end --enable-multimaster
1563 # OpenLDAP --enable-phonetic
1564 # Check whether --enable-phonetic or --disable-phonetic was given.
1565 if test "${enable_phonetic+set}" = set; then
1566 enableval="$enable_phonetic"
1569 for ol_val in auto yes no ; do
1570 if test "$enableval" = "$ol_val" ; then
1574 if test "$ol_arg" = "invalid" ; then
1575 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1577 ol_enable_phonetic="$ol_arg"
1580 ol_enable_phonetic="no"
1582 # end --enable-phonetic
1583 # OpenLDAP --enable-quipu
1584 # Check whether --enable-quipu or --disable-quipu was given.
1585 if test "${enable_quipu+set}" = set; then
1586 enableval="$enable_quipu"
1589 for ol_val in auto yes no ; do
1590 if test "$enableval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1597 ol_enable_quipu="$ol_arg"
1600 ol_enable_quipu="no"
1602 # end --enable-quipu
1603 # OpenLDAP --enable-rlookups
1604 # Check whether --enable-rlookups or --disable-rlookups was given.
1605 if test "${enable_rlookups+set}" = set; then
1606 enableval="$enable_rlookups"
1609 for ol_val in auto yes no ; do
1610 if test "$enableval" = "$ol_val" ; then
1614 if test "$ol_arg" = "invalid" ; then
1615 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1617 ol_enable_rlookups="$ol_arg"
1620 ol_enable_rlookups="auto"
1622 # end --enable-rlookups
1623 # OpenLDAP --enable-aci
1624 # Check whether --enable-aci or --disable-aci was given.
1625 if test "${enable_aci+set}" = set; then
1626 enableval="$enable_aci"
1629 for ol_val in auto yes no ; do
1630 if test "$enableval" = "$ol_val" ; then
1634 if test "$ol_arg" = "invalid" ; then
1635 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1637 ol_enable_aci="$ol_arg"
1643 # OpenLDAP --enable-discreteaci
1644 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1645 if test "${enable_discreteaci+set}" = set; then
1646 enableval="$enable_discreteaci"
1649 for ol_val in auto yes no ; do
1650 if test "$enableval" = "$ol_val" ; then
1654 if test "$ol_arg" = "invalid" ; then
1655 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1657 ol_enable_discreteaci="$ol_arg"
1660 ol_enable_discreteaci="no"
1662 # end --enable-discreteaci
1663 # OpenLDAP --enable-wrappers
1664 # Check whether --enable-wrappers or --disable-wrappers was given.
1665 if test "${enable_wrappers+set}" = set; then
1666 enableval="$enable_wrappers"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1677 ol_enable_wrappers="$ol_arg"
1680 ol_enable_wrappers="no"
1682 # end --enable-wrappers
1684 # OpenLDAP --enable-bdb2
1685 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1686 if test "${enable_bdb2+set}" = set; then
1687 enableval="$enable_bdb2"
1690 for ol_val in auto yes no ; do
1691 if test "$enableval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1698 ol_enable_bdb2="$ol_arg"
1704 # OpenLDAP --with-bdb2_module
1705 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1706 if test "${with_bdb2_module+set}" = set; then
1707 withval="$with_bdb2_module"
1710 for ol_val in static dynamic ; do
1711 if test "$withval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1718 ol_with_bdb2_module="$ol_arg"
1721 ol_with_bdb2_module="static"
1723 # end --with-bdb2_module
1725 # OpenLDAP --enable-ldap
1726 # Check whether --enable-ldap or --disable-ldap was given.
1727 if test "${enable_ldap+set}" = set; then
1728 enableval="$enable_ldap"
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-ldap" 1>&2; exit 1; }
1739 ol_enable_ldap="$ol_arg"
1745 # OpenLDAP --with-ldap_module
1746 # Check whether --with-ldap_module or --without-ldap_module was given.
1747 if test "${with_ldap_module+set}" = set; then
1748 withval="$with_ldap_module"
1751 for ol_val in static dynamic ; do
1752 if test "$withval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1759 ol_with_ldap_module="$ol_arg"
1762 ol_with_ldap_module="static"
1764 # end --with-ldap_module
1766 # OpenLDAP --enable-ldbm
1767 # Check whether --enable-ldbm or --disable-ldbm was given.
1768 if test "${enable_ldbm+set}" = set; then
1769 enableval="$enable_ldbm"
1772 for ol_val in auto yes no ; do
1773 if test "$enableval" = "$ol_val" ; then
1777 if test "$ol_arg" = "invalid" ; then
1778 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1780 ol_enable_ldbm="$ol_arg"
1783 ol_enable_ldbm="yes"
1786 # OpenLDAP --with-ldbm_api
1787 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1788 if test "${with_ldbm_api+set}" = set; then
1789 withval="$with_ldbm_api"
1792 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1793 if test "$withval" = "$ol_val" ; then
1797 if test "$ol_arg" = "invalid" ; then
1798 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1800 ol_with_ldbm_api="$ol_arg"
1803 ol_with_ldbm_api="auto"
1805 # end --with-ldbm_api
1807 # OpenLDAP --with-ldbm_module
1808 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1809 if test "${with_ldbm_module+set}" = set; then
1810 withval="$with_ldbm_module"
1813 for ol_val in static dynamic ; do
1814 if test "$withval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1821 ol_with_ldbm_module="$ol_arg"
1824 ol_with_ldbm_module="static"
1826 # end --with-ldbm_module
1828 # OpenLDAP --with-ldbm_type
1829 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1830 if test "${with_ldbm_type+set}" = set; then
1831 withval="$with_ldbm_type"
1834 for ol_val in auto btree hash ; do
1835 if test "$withval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1842 ol_with_ldbm_type="$ol_arg"
1845 ol_with_ldbm_type="auto"
1847 # end --with-ldbm_type
1850 # OpenLDAP --enable-passwd
1851 # Check whether --enable-passwd or --disable-passwd was given.
1852 if test "${enable_passwd+set}" = set; then
1853 enableval="$enable_passwd"
1856 for ol_val in auto yes no ; do
1857 if test "$enableval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1864 ol_enable_passwd="$ol_arg"
1867 ol_enable_passwd="no"
1869 # end --enable-passwd
1870 # OpenLDAP --with-passwd_module
1871 # Check whether --with-passwd_module or --without-passwd_module was given.
1872 if test "${with_passwd_module+set}" = set; then
1873 withval="$with_passwd_module"
1876 for ol_val in static dynamic ; do
1877 if test "$withval" = "$ol_val" ; then
1881 if test "$ol_arg" = "invalid" ; then
1882 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1884 ol_with_passwd_module="$ol_arg"
1887 ol_with_passwd_module="static"
1889 # end --with-passwd_module
1891 # OpenLDAP --enable-perl
1892 # Check whether --enable-perl or --disable-perl was given.
1893 if test "${enable_perl+set}" = set; then
1894 enableval="$enable_perl"
1897 for ol_val in auto yes no ; do
1898 if test "$enableval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1905 ol_enable_perl="$ol_arg"
1911 # OpenLDAP --with-perl_module
1912 # Check whether --with-perl_module or --without-perl_module was given.
1913 if test "${with_perl_module+set}" = set; then
1914 withval="$with_perl_module"
1917 for ol_val in static dynamic ; do
1918 if test "$withval" = "$ol_val" ; then
1922 if test "$ol_arg" = "invalid" ; then
1923 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1925 ol_with_perl_module="$ol_arg"
1928 ol_with_perl_module="static"
1930 # end --with-perl_module
1932 # OpenLDAP --enable-shell
1933 # Check whether --enable-shell or --disable-shell was given.
1934 if test "${enable_shell+set}" = set; then
1935 enableval="$enable_shell"
1938 for ol_val in auto yes no ; do
1939 if test "$enableval" = "$ol_val" ; then
1943 if test "$ol_arg" = "invalid" ; then
1944 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1946 ol_enable_shell="$ol_arg"
1949 ol_enable_shell="no"
1951 # end --enable-shell
1952 # OpenLDAP --with-shell_module
1953 # Check whether --with-shell_module or --without-shell_module was given.
1954 if test "${with_shell_module+set}" = set; then
1955 withval="$with_shell_module"
1958 for ol_val in static dynamic ; do
1959 if test "$withval" = "$ol_val" ; then
1963 if test "$ol_arg" = "invalid" ; then
1964 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1966 ol_with_shell_module="$ol_arg"
1969 ol_with_shell_module="static"
1971 # end --with-shell_module
1973 # OpenLDAP --enable-tcl
1974 # Check whether --enable-tcl or --disable-tcl was given.
1975 if test "${enable_tcl+set}" = set; then
1976 enableval="$enable_tcl"
1979 for ol_val in auto yes no ; do
1980 if test "$enableval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1987 ol_enable_tcl="$ol_arg"
1993 # OpenLDAP --with-tcl_module
1994 # Check whether --with-tcl_module or --without-tcl_module was given.
1995 if test "${with_tcl_module+set}" = set; then
1996 withval="$with_tcl_module"
1999 for ol_val in static dynamic ; do
2000 if test "$withval" = "$ol_val" ; then
2004 if test "$ol_arg" = "invalid" ; then
2005 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2007 ol_with_tcl_module="$ol_arg"
2010 ol_with_tcl_module="static"
2012 # end --with-tcl_module
2015 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2016 if test "${with_xxslurpdoptions+set}" = set; then
2017 withval="$with_xxslurpdoptions"
2021 # OpenLDAP --enable-slurpd
2022 # Check whether --enable-slurpd or --disable-slurpd was given.
2023 if test "${enable_slurpd+set}" = set; then
2024 enableval="$enable_slurpd"
2027 for ol_val in auto yes no ; do
2028 if test "$enableval" = "$ol_val" ; then
2032 if test "$ol_arg" = "invalid" ; then
2033 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2035 ol_enable_slurpd="$ol_arg"
2038 ol_enable_slurpd="auto"
2040 # end --enable-slurpd
2042 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2043 if test "${with_xxliboptions+set}" = set; then
2044 withval="$with_xxliboptions"
2048 # Check whether --enable-static or --disable-static was given.
2049 if test "${enable_static+set}" = set; then
2050 enableval="$enable_static"
2051 p=${PACKAGE-default}
2052 case "$enableval" in
2053 yes) enable_static=yes ;;
2054 no) enable_static=no ;;
2057 # Look at the argument we got. We use all the common list separators.
2058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2059 for pkg in $enableval; do
2060 if test "X$pkg" = "X$p"; then
2071 # Check whether --enable-shared or --disable-shared was given.
2072 if test "${enable_shared+set}" = set; then
2073 enableval="$enable_shared"
2074 p=${PACKAGE-default}
2075 case "$enableval" in
2076 yes) enable_shared=yes ;;
2077 no) enable_shared=no ;;
2080 # Look at the argument we got. We use all the common list separators.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2082 for pkg in $enableval; do
2083 if test "X$pkg" = "X$p"; then
2097 if test $ol_enable_dns = yes ; then
2098 if test $ol_enable_referrals = no ; then
2099 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2101 if test $ol_enable_referrals = auto ; then
2102 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2103 ol_enable_referrals=yes
2107 if test $ol_enable_slapd = no ; then
2108 if test $ol_enable_bdb2 = yes ; then
2109 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2111 if test $ol_enable_ldap = yes ; then
2112 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2114 if test $ol_enable_ldbm = yes ; then
2115 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2117 if test $ol_enable_passwd = yes ; then
2118 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2120 if test $ol_enable_perl = yes ; then
2121 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2123 if test $ol_enable_shell = yes ; then
2124 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2126 if test $ol_enable_tcl = yes ; then
2127 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2129 if test $ol_enable_modules = yes ; then
2130 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2132 if test $ol_enable_multimaster = yes ; then
2133 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2135 if test $ol_enable_wrappers = yes ; then
2136 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2138 if test $ol_enable_phonetic = yes ; then
2139 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2141 if test $ol_enable_quipu = yes ; then
2142 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2144 if test $ol_enable_rlookups = yes ; then
2145 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2147 if test $ol_enable_aci = yes ; then
2148 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2150 if test $ol_enable_discreteaci = yes ; then
2151 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2153 if test $ol_with_ldbm_api != auto ; then
2154 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2156 if test $ol_with_ldbm_type != auto ; then
2157 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2159 if test $ol_with_bdb2_module != static ; then
2160 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2162 if test $ol_with_ldap_module != static ; then
2163 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2165 if test $ol_with_ldbm_module != static ; then
2166 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2168 if test $ol_with_passwd_module != static ; then
2169 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2171 if test $ol_with_perl_module != static ; then
2172 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2174 if test $ol_with_shell_module != static ; then
2175 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2177 if test $ol_with_tcl_module != static ; then
2178 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2180 if test $ol_enable_slurpd = yes ; then
2181 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2184 # force settings to no
2193 ol_enable_modules=no
2194 ol_enable_multimaster=no
2195 ol_enable_phonetic=no
2197 ol_enable_rlookups=no
2199 ol_enable_discreteaci=no
2200 ol_enable_wrappers=no
2203 ol_with_ldbm_type=no
2205 ol_with_bdb2_module=static
2206 ol_with_ldap_module=static
2207 ol_with_ldbm_module=static
2208 ol_with_passwd_module=static
2209 ol_with_perl_module=static
2210 ol_with_shell_module=static
2211 ol_with_tcl_module=static
2215 elif test $ol_enable_ldbm = no ; then
2217 if test $ol_with_ldbm_api != auto ; then
2218 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2221 if test $ol_with_ldbm_type != auto ; then
2222 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2225 if test $ol_with_ldbm_module != static ; then
2226 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2229 if test $ol_enable_bdb2 = yes ; then
2230 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2233 if test $ol_enable_modules != yes -a \
2234 $ol_enable_ldap = no -a \
2235 $ol_enable_passwd = no -a \
2236 $ol_enable_perl = no -a \
2237 $ol_enable_shell = no -a \
2238 $ol_enable_tcl = no ; then
2239 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2243 ol_with_ldbm_type=no
2244 ol_with_ldbm_module=static
2246 elif test $ol_enable_bdb2 = yes ; then
2248 if test $ol_with_ldbm_api != auto -a \
2249 $ol_with_ldbm_api != db2 ; then
2250 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2253 ol_with_ldbm_api=db2
2257 if test $ol_enable_bdb2 != no ; then
2258 if test $ol_with_ldbm_api != auto -a \
2259 $ol_with_ldbm_api != db2 ; then
2260 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2265 if test $ol_with_ldbm_api = gdbm -a \
2266 $ol_with_ldbm_type = btree ; then
2267 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2269 if test $ol_with_ldbm_api = mdbm -a \
2270 $ol_with_ldbm_type = btree ; then
2271 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2273 if test $ol_with_ldbm_api = ndbm -a \
2274 $ol_with_ldbm_type = btree ; then
2275 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2279 if test $ol_enable_slurpd = yes ; then
2280 if test $ol_with_threads = no ; then
2281 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2285 echo "$ac_t""done" 1>&6
2311 BUILD_BDB2_DYNAMIC=static
2312 BUILD_LDAP_DYNAMIC=static
2313 BUILD_LDBM_DYNAMIC=static
2314 BUILD_PASSWD_DYNAMIC=static
2315 BUILD_PERL_DYNAMIC=static
2316 BUILD_SHELL_DYNAMIC=static
2317 BUILD_TCL_DYNAMIC=static
2319 SLAPD_MODULES_LDFLAGS=
2320 SLAPD_MODULES_CPPFLAGS=
2324 SLAPD_PERL_CPPFLAGS=
2335 cat >> confdefs.h <<\EOF
2336 #define HAVE_MKVERSION 1
2344 *-*-aix*) if test -z "$CC" ; then
2345 case "$ol_with_threads" in
2346 auto | yes | posix) ol_aix_threads=yes ;;
2352 if test $ol_aix_threads = yes ; then
2353 if test -z "${CC}" ; then
2354 for ac_prog in cc_r xlc_r cc
2356 # Extract the first word of "$ac_prog", so it can be a program name with args.
2357 set dummy $ac_prog; ac_word=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_prog_CC="$ac_prog"
2379 if test -n "$CC"; then
2380 echo "$ac_t""$CC" 1>&6
2382 echo "$ac_t""no" 1>&6
2385 test -n "$CC" && break
2389 if test "$CC" = cc ; then
2390 if test $ol_with_threads != auto ; then
2391 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2393 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2399 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2400 ol_with_threads=posix
2401 ol_cv_pthread_create=yes
2405 if test -z "${CC}"; then
2408 # Extract the first word of "$ac_prog", so it can be a program name with args.
2409 set dummy $ac_prog; ac_word=$2
2410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_word" >&5
2412 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2420 for ac_dir in $ac_dummy; do
2421 test -z "$ac_dir" && ac_dir=.
2422 if test -f $ac_dir/$ac_word; then
2423 ac_cv_prog_CC="$ac_prog"
2431 if test -n "$CC"; then
2432 echo "$ac_t""$CC" 1>&6
2434 echo "$ac_t""no" 1>&6
2437 test -n "$CC" && break
2444 # Check whether --enable-fast-install or --disable-fast-install was given.
2445 if test "${enable_fast_install+set}" = set; then
2446 enableval="$enable_fast_install"
2447 p=${PACKAGE-default}
2448 case "$enableval" in
2449 yes) enable_fast_install=yes ;;
2450 no) enable_fast_install=no ;;
2452 enable_fast_install=no
2453 # Look at the argument we got. We use all the common list separators.
2454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2455 for pkg in $enableval; do
2456 if test "X$pkg" = "X$p"; then
2457 enable_fast_install=yes
2464 enable_fast_install=yes
2467 # Extract the first word of "ranlib", so it can be a program name with args.
2468 set dummy ranlib; ac_word=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 if test -n "$RANLIB"; then
2475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2479 for ac_dir in $ac_dummy; do
2480 test -z "$ac_dir" && ac_dir=.
2481 if test -f $ac_dir/$ac_word; then
2482 ac_cv_prog_RANLIB="ranlib"
2487 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2490 RANLIB="$ac_cv_prog_RANLIB"
2491 if test -n "$RANLIB"; then
2492 echo "$ac_t""$RANLIB" 1>&6
2494 echo "$ac_t""no" 1>&6
2497 # Extract the first word of "gcc", so it can be a program name with args.
2498 set dummy gcc; ac_word=$2
2499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_word" >&5
2501 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2509 for ac_dir in $ac_dummy; do
2510 test -z "$ac_dir" && ac_dir=.
2511 if test -f $ac_dir/$ac_word; then
2520 if test -n "$CC"; then
2521 echo "$ac_t""$CC" 1>&6
2523 echo "$ac_t""no" 1>&6
2526 if test -z "$CC"; then
2527 # Extract the first word of "cc", so it can be a program name with args.
2528 set dummy cc; ac_word=$2
2529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_word" >&5
2531 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2540 for ac_dir in $ac_dummy; do
2541 test -z "$ac_dir" && ac_dir=.
2542 if test -f $ac_dir/$ac_word; then
2543 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2544 ac_prog_rejected=yes
2552 if test $ac_prog_rejected = yes; then
2553 # We found a bogon in the path, so make sure we never use it.
2554 set dummy $ac_cv_prog_CC
2556 if test $# -gt 0; then
2557 # We chose a different compiler from the bogus one.
2558 # However, it has the same basename, so the bogon will be chosen
2559 # first if we set CC to just the basename; use the full file name.
2561 set dummy "$ac_dir/$ac_word" "$@"
2569 if test -n "$CC"; then
2570 echo "$ac_t""$CC" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 if test -z "$CC"; then
2576 case "`uname -s`" in
2578 # Extract the first word of "cl", so it can be a program name with args.
2579 set dummy cl; ac_word=$2
2580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_word" >&5
2582 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2601 if test -n "$CC"; then
2602 echo "$ac_t""$CC" 1>&6
2604 echo "$ac_t""no" 1>&6
2609 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2612 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2613 echo "configure:2614: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2620 cross_compiling=$ac_cv_prog_cc_cross
2622 cat > conftest.$ac_ext << EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2630 ac_cv_prog_cc_works=yes
2631 # If we can't run a trivial program, we are probably using a cross compiler.
2632 if (./conftest; exit) 2>/dev/null; then
2633 ac_cv_prog_cc_cross=no
2635 ac_cv_prog_cc_cross=yes
2638 echo "configure: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 ac_cv_prog_cc_works=no
2644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2648 cross_compiling=$ac_cv_prog_cc_cross
2650 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2651 if test $ac_cv_prog_cc_works = no; then
2652 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2654 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2655 echo "configure:2656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2656 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2657 cross_compiling=$ac_cv_prog_cc_cross
2659 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2660 echo "configure:2661: checking whether we are using GNU C" >&5
2661 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.c <<EOF
2669 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2676 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2678 if test $ac_cv_prog_gcc = yes; then
2684 ac_test_CFLAGS="${CFLAGS+set}"
2685 ac_save_CFLAGS="$CFLAGS"
2687 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2688 echo "configure:2689: checking whether ${CC-cc} accepts -g" >&5
2689 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 echo 'void f(){}' > conftest.c
2693 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2702 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2703 if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS="$ac_save_CFLAGS"
2705 elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2712 if test "$GCC" = yes; then
2719 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2720 if test "${with_gnu_ld+set}" = set; then
2721 withval="$with_gnu_ld"
2722 test "$withval" = no || with_gnu_ld=yes
2728 if test "$ac_cv_prog_gcc" = yes; then
2729 # Check if gcc -print-prog-name=ld gives a path.
2730 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2731 echo "configure:2732: checking for ld used by GCC" >&5
2732 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2734 # Accept absolute paths.
2735 [\\/]* | [A-Za-z]:[\\/]*)
2736 re_direlt='/[^/][^/]*/\.\./'
2737 # Canonicalize the path of ld
2738 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2739 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2740 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2742 test -z "$LD" && LD="$ac_prog"
2745 # If it fails, then pretend we aren't using GCC.
2749 # If it is relative, then search for the first ld in PATH.
2753 elif test "$with_gnu_ld" = yes; then
2754 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2755 echo "configure:2756: checking for GNU ld" >&5
2757 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2758 echo "configure:2759: checking for non-GNU ld" >&5
2760 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 if test -z "$LD"; then
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2765 for ac_dir in $PATH; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2768 ac_cv_path_LD="$ac_dir/$ac_prog"
2769 # Check to see if the program is GNU ld. I'd rather use --version,
2770 # but apparently some GNU ld's only accept -v.
2771 # Break only if it was the GNU/non-GNU ld that we prefer.
2772 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2773 test "$with_gnu_ld" != no && break
2775 test "$with_gnu_ld" != yes && break
2781 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2786 if test -n "$LD"; then
2787 echo "$ac_t""$LD" 1>&6
2789 echo "$ac_t""no" 1>&6
2791 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2793 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2794 echo "configure:2795: checking if the linker ($LD) is GNU ld" >&5
2795 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2799 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2800 ac_cv_prog_gnu_ld=yes
2802 ac_cv_prog_gnu_ld=no
2806 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2809 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2810 echo "configure:2811: checking for BSD-compatible nm" >&5
2811 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 if test -n "$NM"; then
2815 # Let the user override the test.
2818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2819 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2820 test -z "$ac_dir" && ac_dir=.
2821 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2822 # Check to see if the nm accepts a BSD-compat flag.
2823 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2824 # nm: unknown option "B" ignored
2825 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2826 ac_cv_path_NM="$ac_dir/nm -B"
2828 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2829 ac_cv_path_NM="$ac_dir/nm -p"
2832 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2833 continue # so that we can try to find one that supports BSD flags
2838 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2843 echo "$ac_t""$NM" 1>&6
2846 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2847 echo "configure:2848: checking whether ln -s works" >&5
2848 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2852 if ln -s X conftestdata 2>/dev/null
2855 ac_cv_prog_LN_S="ln -s"
2860 LN_S="$ac_cv_prog_LN_S"
2861 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2862 echo "$ac_t""yes" 1>&6
2864 echo "$ac_t""no" 1>&6
2868 # Check for any special flags to pass to ltconfig.
2869 libtool_flags="--cache-file=$cache_file"
2870 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2871 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2872 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2873 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2874 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2875 libtool_flags="$libtool_flags --enable-dlopen"
2877 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2878 if test "${enable_libtool_lock+set}" = set; then
2879 enableval="$enable_libtool_lock"
2883 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2884 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2886 # Some flags need to be propagated to the compiler or linker for good
2890 # Find out which ABI we are using.
2891 echo '#line 2892 "configure"' > conftest.$ac_ext
2892 if { (eval echo configure:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2893 case "`/usr/bin/file conftest.o`" in
2909 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2910 SAVE_CFLAGS="$CFLAGS"
2911 CFLAGS="$CFLAGS -belf"
2912 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2913 echo "configure:2914: checking whether the C compiler needs -belf" >&5
2914 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 lt_cv_cc_needs_belf=yes
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 lt_cv_cc_needs_belf=no
2937 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2940 CFLAGS="$SAVE_CFLAGS"
2948 # Save cache, so that ltconfig can load it
2951 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2952 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2953 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2954 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2955 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2956 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2957 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2958 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2960 # Reload cache, that may have been modified by ltconfig
2963 # This can be used to rebuild libtool when needed
2964 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2966 # Always use our own libtool.
2967 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2969 # Redirect the config.log output again, so that the ltconfig log is not
2970 # clobbered by the next message.
2971 exec 5>>./config.log
2974 for ac_prog in mawk gawk nawk awk
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$AWK"; then
2984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2988 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_prog_AWK="$ac_prog"
2998 AWK="$ac_cv_prog_AWK"
2999 if test -n "$AWK"; then
3000 echo "$ac_t""$AWK" 1>&6
3002 echo "$ac_t""no" 1>&6
3005 test -n "$AWK" && break
3008 # test for ln hardlink support
3009 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3010 echo "configure:3011: checking whether ln works" >&5
3011 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 rm -f conftest.src conftest.dst
3015 echo "conftest" > conftest.src
3016 if ln conftest.src conftest.dst 2>/dev/null
3018 ol_cv_prog_LN_H="ln"
3020 ol_cv_prog_LN_H="cp"
3022 rm -f conftest.src conftest.dst
3025 LN_H="$ol_cv_prog_LN_H"
3026 if test "$ol_cv_prog_LN_H" = "ln"; then
3027 echo "$ac_t""yes" 1>&6
3029 echo "$ac_t""no" 1>&6
3032 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3033 echo "configure:3034: checking whether ln -s works" >&5
3034 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3038 if ln -s X conftestdata 2>/dev/null
3041 ac_cv_prog_LN_S="ln -s"
3046 LN_S="$ac_cv_prog_LN_S"
3047 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3048 echo "$ac_t""yes" 1>&6
3050 echo "$ac_t""no" 1>&6
3054 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3058 # Extract the first word of "sendmail", so it can be a program name with args.
3059 set dummy sendmail; ac_word=$2
3060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3061 echo "configure:3062: checking for $ac_word" >&5
3062 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3067 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3070 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3074 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3075 for ac_dir in $ac_dummy; do
3076 test -z "$ac_dir" && ac_dir=.
3077 if test -f $ac_dir/$ac_word; then
3078 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3083 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3087 SENDMAIL="$ac_cv_path_SENDMAIL"
3088 if test -n "$SENDMAIL"; then
3089 echo "$ac_t""$SENDMAIL" 1>&6
3091 echo "$ac_t""no" 1>&6
3094 # Extract the first word of "vi", so it can be a program name with args.
3095 set dummy vi; ac_word=$2
3096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_word" >&5
3098 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3103 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3106 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3110 ac_dummy="$PATH:/usr/ucb"
3111 for ac_dir in $ac_dummy; do
3112 test -z "$ac_dir" && ac_dir=.
3113 if test -f $ac_dir/$ac_word; then
3114 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3119 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3123 EDITOR="$ac_cv_path_EDITOR"
3124 if test -n "$EDITOR"; then
3125 echo "$ac_t""$EDITOR" 1>&6
3127 echo "$ac_t""no" 1>&6
3130 # Extract the first word of "finger", so it can be a program name with args.
3131 set dummy finger; ac_word=$2
3132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_word" >&5
3134 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3139 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3142 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3146 ac_dummy="$PATH:/usr/ucb"
3147 for ac_dir in $ac_dummy; do
3148 test -z "$ac_dir" && ac_dir=.
3149 if test -f $ac_dir/$ac_word; then
3150 ac_cv_path_FINGER="$ac_dir/$ac_word"
3155 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3159 FINGER="$ac_cv_path_FINGER"
3160 if test -n "$FINGER"; then
3161 echo "$ac_t""$FINGER" 1>&6
3163 echo "$ac_t""no" 1>&6
3168 if test $ol_enable_perl != no ; then
3169 # Extract the first word of "perl", so it can be a program name with args.
3170 set dummy perl; ac_word=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5
3173 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3178 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3181 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3186 for ac_dir in $ac_dummy; do
3187 test -z "$ac_dir" && ac_dir=.
3188 if test -f $ac_dir/$ac_word; then
3189 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3194 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3198 PERLBIN="$ac_cv_path_PERLBIN"
3199 if test -n "$PERLBIN"; then
3200 echo "$ac_t""$PERLBIN" 1>&6
3202 echo "$ac_t""no" 1>&6
3206 if test "no$PERLBIN" = "no" ; then
3207 if test $ol_enable_perl = yes ; then
3208 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3212 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3213 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3219 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3220 echo "configure:3221: checking how to run the C preprocessor" >&5
3221 # On Suns, sometimes $CPP names a directory.
3222 if test -n "$CPP" && test -d "$CPP"; then
3225 if test -z "$CPP"; then
3226 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 # This must be in double quotes, not single quotes, because CPP may get
3230 # substituted into the Makefile and "${CC-cc}" will confuse make.
3232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp.
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 CPP="${CC-cc} -E -traditional-cpp"
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3258 { (eval echo configure:3259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3260 if test -z "$ac_err"; then
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 CPP="${CC-cc} -nologo -E"
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3275 { (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3277 if test -z "$ac_err"; then
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3291 ac_cv_prog_CPP="$CPP"
3293 CPP="$ac_cv_prog_CPP"
3295 ac_cv_prog_CPP="$CPP"
3297 echo "$ac_t""$CPP" 1>&6
3300 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3301 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3303 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3304 echo "configure: warning: programs compiled here do run here..." 1>&2
3305 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3307 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3308 echo "configure: warning: programs compiled here do not run here..." 1>&2
3309 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3312 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3313 echo "configure:3314: checking for AIX" >&5
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "yes" >/dev/null 2>&1; then
3325 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3326 #define _ALL_SOURCE 1
3331 echo "$ac_t""no" 1>&6
3336 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3337 echo "configure:3338: checking for POSIXized ISC" >&5
3338 if test -d /etc/conf/kconfig.d &&
3339 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3341 echo "$ac_t""yes" 1>&6
3342 ISC=yes # If later tests want to check for ISC.
3343 cat >> confdefs.h <<\EOF
3344 #define _POSIX_SOURCE 1
3347 if test "$GCC" = yes; then
3353 echo "$ac_t""no" 1>&6
3357 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3358 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3359 echo "configure:3360: checking for minix/config.h" >&5
3360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <minix/config.h>
3368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3369 { (eval echo configure:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3371 if test -z "$ac_err"; then
3373 eval "ac_cv_header_$ac_safe=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_header_$ac_safe=no"
3383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3387 echo "$ac_t""no" 1>&6
3391 if test "$MINIX" = yes; then
3392 cat >> confdefs.h <<\EOF
3393 #define _POSIX_SOURCE 1
3396 cat >> confdefs.h <<\EOF
3397 #define _POSIX_1_SOURCE 2
3400 cat >> confdefs.h <<\EOF
3407 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3408 echo "configure:3409: checking for Cygwin environment" >&5
3409 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3419 #define __CYGWIN__ __CYGWIN32__
3424 if { (eval echo configure:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3437 echo "$ac_t""$ac_cv_cygwin" 1>&6
3439 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3440 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3441 echo "configure:3442: checking for mingw32 environment" >&5
3442 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3453 if { (eval echo configure:3454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3466 echo "$ac_t""$ac_cv_mingw32" 1>&6
3468 test "$ac_cv_mingw32" = yes && MINGW32=yes
3471 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3472 echo "configure:3473: checking for executable suffix" >&5
3473 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3480 echo 'int main () { return 0; }' > conftest.$ac_ext
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3483 for file in conftest.*; do
3485 *.c | *.o | *.obj) ;;
3486 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3490 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3493 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3498 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3499 echo "$ac_t""${ac_cv_exeext}" 1>&6
3502 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3503 echo "configure:3504: checking for object suffix" >&5
3504 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3508 echo 'int i = 1;' > conftest.$ac_ext
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510 for ac_file in conftest.*; do
3513 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3517 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3522 echo "$ac_t""$ac_cv_objext" 1>&6
3523 OBJEXT=$ac_cv_objext
3524 ac_objext=$ac_cv_objext
3527 cat >> confdefs.h <<EOF
3528 #define EXEEXT "${EXEEXT}"
3532 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3533 echo "configure:3534: checking for be_app in -lbe" >&5
3534 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_save_LIBS="$LIBS"
3539 LIBS="-lbe -lroot -lnet $LIBS"
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3552 if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3554 eval "ac_cv_lib_$ac_lib_var=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 eval "ac_cv_lib_$ac_lib_var=no"
3562 LIBS="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 LIBS="$LIBS -lbe -lroot -lnet"
3569 echo "$ac_t""no" 1>&6
3577 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3578 echo "configure:3579: checking for ${CC-cc} option to accept ANSI C" >&5
3579 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 am_cv_prog_cc_stdc=no
3584 # Don't try gcc -ansi; that turns off useful extensions and
3585 # breaks some systems' header files.
3586 # AIX -qlanglvl=ansi
3587 # Ultrix and OSF/1 -std1
3588 # HP-UX 10.20 and later -Ae
3589 # HP-UX older versions -Aa -D_HPUX_SOURCE
3590 # SVR4 -Xc -D__EXTENSIONS__
3591 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3593 CC="$ac_save_CC $ac_arg"
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3599 #include <sys/types.h>
3600 #include <sys/stat.h>
3601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3602 struct buf { int x; };
3603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3604 static char *e (p, i)
3610 static char *f (char * (*g) (char **, int), char **p, ...)
3615 s = g (p, va_arg (v,int));
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 if { (eval echo configure:3633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3634 am_cv_prog_cc_stdc="$ac_arg"; break
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3645 if test -z "$am_cv_prog_cc_stdc"; then
3646 echo "$ac_t""none needed" 1>&6
3648 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3650 case "x$am_cv_prog_cc_stdc" in
3652 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3655 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3656 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3659 # test for make depend flag
3662 if test -z "${MKDEP}"; then
3664 if test -z "${MKDEP_FLAGS}"; then
3665 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3666 echo "configure:3667: checking for ${OL_MKDEP} depend flag" >&5
3667 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3672 for flag in "-M" "-xM"; do
3673 cat > conftest.c <<EOF
3676 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3677 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3679 if test ! -f conftest."${ac_object}" ; then
3681 OL_MKDEP_FLAGS="$flag"
3690 echo "$ac_t""$ol_cv_mkdep" 1>&6
3693 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3698 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3703 if test "${ol_cv_mkdep}" = no ; then
3704 # this will soon become an error
3705 echo "configure: warning: do not know how to generate dependencies" 1>&2
3709 if test $ol_enable_modules != no ; then
3710 for ac_hdr in ltdl.h
3712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3714 echo "configure:3715: checking for $ac_hdr" >&5
3715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3724 { (eval echo configure:3725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3726 if test -z "$ac_err"; then
3728 eval "ac_cv_header_$ac_safe=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 eval "ac_cv_header_$ac_safe=no"
3738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3741 cat >> confdefs.h <<EOF
3742 #define $ac_tr_hdr 1
3746 echo "$ac_t""no" 1>&6
3751 if test $ac_cv_header_ltdl_h = no ; then
3752 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3755 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3756 echo "configure:3757: checking for lt_dlinit in -lltdl" >&5
3757 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-%__p_%'`
3758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 ac_save_LIBS="$LIBS"
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777 eval "ac_cv_lib_$ac_lib_var=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 eval "ac_cv_lib_$ac_lib_var=no"
3785 LIBS="$ac_save_LIBS"
3788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3792 cat >> confdefs.h <<EOF
3793 #define $ac_tr_lib 1
3799 echo "$ac_t""no" 1>&6
3802 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3803 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3808 ol_with_bdb2_module=static
3809 ol_with_ldap_module=static
3810 ol_with_ldbm_module=static
3811 ol_with_passwd_module=static
3812 ol_with_perl_module=static
3813 ol_with_shell_module=static
3814 ol_with_tcl_module=static
3818 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3819 echo "configure:3820: checking for EBCDIC" >&5
3820 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3829 #include <__ASCII__/generate_error.h>
3833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3834 { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836 if test -z "$ac_err"; then
3838 ol_cv_cpp_ebcdic=yes
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3849 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3850 if test $ol_cv_cpp_ebcdic = yes ; then
3851 cat >> confdefs.h <<\EOF
3852 #define HAVE_EBCDIC 1
3857 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3858 echo "configure:3859: checking for ANSI C header files" >&5
3859 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3871 { (eval echo configure:3872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3873 if test -z "$ac_err"; then
3875 ol_cv_header_stdc=yes
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 ol_cv_header_stdc=no
3885 if test $ol_cv_header_stdc = yes; then
3886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 egrep "memchr" >/dev/null 2>&1; then
3897 ol_cv_header_stdc=no
3903 if test $ol_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 egrep "free" >/dev/null 2>&1; then
3915 ol_cv_header_stdc=no
3921 if test $ol_cv_header_stdc = yes; then
3922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3923 if test "$cross_compiling" = yes; then
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3935 || ('j' <= (c) && (c) <= 'r') \
3936 || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3940 int main () { int i; for (i = 0; i < 256; i++)
3941 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3945 if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3952 ol_cv_header_stdc=no
3960 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3961 if test $ol_cv_header_stdc = yes; then
3962 cat >> confdefs.h <<\EOF
3963 #define STDC_HEADERS 1
3967 ac_cv_header_stdc=disable
3970 if test $ol_cv_header_stdc != yes; then
3971 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3978 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_hdr that defines DIR" >&5
3980 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 #include <sys/types.h>
3992 if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3994 eval "ac_cv_header_dirent_$ac_safe=yes"
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3999 eval "ac_cv_header_dirent_$ac_safe=no"
4003 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4006 cat >> confdefs.h <<EOF
4007 #define $ac_tr_hdr 1
4009 ac_header_dirent=$ac_hdr; break
4011 echo "$ac_t""no" 1>&6
4014 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4015 if test $ac_header_dirent = dirent.h; then
4016 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4017 echo "configure:4018: checking for opendir in -ldir" >&5
4018 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 ac_save_LIBS="$LIBS"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* Override any gcc2 internal prototype to avoid an error. */
4028 /* We use char because int might match the return type of a gcc2
4029 builtin and then its argument prototype would still apply. */
4036 if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 eval "ac_cv_lib_$ac_lib_var=yes"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4043 eval "ac_cv_lib_$ac_lib_var=no"
4046 LIBS="$ac_save_LIBS"
4049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4050 echo "$ac_t""yes" 1>&6
4053 echo "$ac_t""no" 1>&6
4057 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4058 echo "configure:4059: checking for opendir in -lx" >&5
4059 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 ac_save_LIBS="$LIBS"
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 eval "ac_cv_lib_$ac_lib_var=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 eval "ac_cv_lib_$ac_lib_var=no"
4087 LIBS="$ac_save_LIBS"
4090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4091 echo "$ac_t""yes" 1>&6
4094 echo "$ac_t""no" 1>&6
4099 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4100 echo "configure:4101: checking for sys/wait.h that is POSIX.1 compatible" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <sys/types.h>
4108 #include <sys/wait.h>
4110 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4113 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 ac_cv_header_sys_wait_h=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 ac_cv_header_sys_wait_h=no
4133 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4134 if test $ac_cv_header_sys_wait_h = yes; then
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_SYS_WAIT_H 1
4141 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4142 echo "configure:4143: checking POSIX termios" >&5
4143 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/types.h>
4151 #include <termios.h>
4153 /* SunOS 4.0.3 has termios.h but not the library calls. */
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 am_cv_sys_posix_termios=yes
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 am_cv_sys_posix_termios=no
4169 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4172 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4173 echo "configure:4174: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4174 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4179 gwinsz_in_termios_h=no
4180 if test $am_cv_sys_posix_termios = yes; then
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <sys/types.h>
4185 # include <termios.h>
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 egrep "yes" >/dev/null 2>&1; then
4194 gwinsz_in_termios_h=yes
4200 if test $gwinsz_in_termios_h = no; then
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 #include <sys/types.h>
4205 # include <sys/ioctl.h>
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 egrep "yes" >/dev/null 2>&1; then
4214 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4222 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4223 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4224 cat >> confdefs.h <<\EOF
4225 #define GWINSZ_IN_SYS_IOCTL 1
4230 if test $am_cv_sys_posix_termios = yes ; then
4231 cat >> confdefs.h <<\EOF
4232 #define HAVE_POSIX_TERMIOS 1
4278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4280 echo "configure:4281: checking for $ac_hdr" >&5
4281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4290 { (eval echo configure:4291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4292 if test -z "$ac_err"; then
4294 eval "ac_cv_header_$ac_safe=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_header_$ac_safe=no"
4304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4307 cat >> confdefs.h <<EOF
4308 #define $ac_tr_hdr 1
4312 echo "$ac_t""no" 1>&6
4318 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4319 echo "configure:4320: checking for sigset in -lV3" >&5
4320 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
4321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 ac_save_LIBS="$LIBS"
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4340 eval "ac_cv_lib_$ac_lib_var=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 eval "ac_cv_lib_$ac_lib_var=no"
4348 LIBS="$ac_save_LIBS"
4351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4353 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4354 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4355 cat >> confdefs.h <<EOF
4356 #define $ac_tr_lib 1
4362 echo "$ac_t""no" 1>&6
4367 echo $ac_n "checking for socket""... $ac_c" 1>&6
4368 echo "configure:4369: checking for socket" >&5
4369 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 /* System header to define __stub macros and hopefully few prototypes,
4376 which can conflict with char socket(); below. */
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4385 /* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388 #if defined (__stub_socket) || defined (__stub___socket)
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398 eval "ac_cv_func_socket=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 eval "ac_cv_func_socket=no"
4408 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4412 echo "$ac_t""no" 1>&6
4414 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4415 echo "configure:4416: checking for main in -lsocket" >&5
4416 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS="$LIBS"
4421 LIBS="-lsocket $LIBS"
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432 eval "ac_cv_lib_$ac_lib_var=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 eval "ac_cv_lib_$ac_lib_var=no"
4440 LIBS="$ac_save_LIBS"
4443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4446 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4447 cat >> confdefs.h <<EOF
4448 #define $ac_tr_lib 1
4451 LIBS="-lsocket $LIBS"
4454 echo "$ac_t""no" 1>&6
4457 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4458 echo "configure:4459: checking for main in -lnet" >&5
4459 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 ac_save_LIBS="$LIBS"
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 eval "ac_cv_lib_$ac_lib_var=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_lib_$ac_lib_var=no"
4483 LIBS="$ac_save_LIBS"
4486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4490 cat >> confdefs.h <<EOF
4491 #define $ac_tr_lib 1
4497 echo "$ac_t""no" 1>&6
4500 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4501 echo "configure:4502: checking for socket in -lnet" >&5
4502 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
4503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 ac_save_LIBS="$LIBS"
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4522 eval "ac_cv_lib_$ac_lib_var=yes"
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4527 eval "ac_cv_lib_$ac_lib_var=no"
4530 LIBS="$ac_save_LIBS"
4533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4537 cat >> confdefs.h <<EOF
4538 #define $ac_tr_lib 1
4544 echo "$ac_t""no" 1>&6
4547 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4548 echo "configure:4549: checking for main in -lnsl_s" >&5
4549 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
4550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 ac_save_LIBS="$LIBS"
4554 LIBS="-lnsl_s $LIBS"
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565 eval "ac_cv_lib_$ac_lib_var=yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 eval "ac_cv_lib_$ac_lib_var=no"
4573 LIBS="$ac_save_LIBS"
4576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4577 echo "$ac_t""yes" 1>&6
4578 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4579 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4580 cat >> confdefs.h <<EOF
4581 #define $ac_tr_lib 1
4584 LIBS="-lnsl_s $LIBS"
4587 echo "$ac_t""no" 1>&6
4590 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4591 echo "configure:4592: checking for main in -lnsl" >&5
4592 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 ac_save_LIBS="$LIBS"
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 eval "ac_cv_lib_$ac_lib_var=yes"
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 eval "ac_cv_lib_$ac_lib_var=no"
4616 LIBS="$ac_save_LIBS"
4619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4622 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4623 cat >> confdefs.h <<EOF
4624 #define $ac_tr_lib 1
4630 echo "$ac_t""no" 1>&6
4633 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4634 echo "configure:4635: checking for socket in -linet" >&5
4635 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
4636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 ac_save_LIBS="$LIBS"
4641 cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4644 /* Override any gcc2 internal prototype to avoid an error. */
4645 /* We use char because int might match the return type of a gcc2
4646 builtin and then its argument prototype would still apply. */
4653 if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4655 eval "ac_cv_lib_$ac_lib_var=yes"
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 eval "ac_cv_lib_$ac_lib_var=no"
4663 LIBS="$ac_save_LIBS"
4666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4669 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4670 cat >> confdefs.h <<EOF
4671 #define $ac_tr_lib 1
4677 echo "$ac_t""no" 1>&6
4680 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4681 echo "configure:4682: checking for main in -lgen" >&5
4682 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
4683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 ac_save_LIBS="$LIBS"
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_lib_$ac_lib_var=no"
4706 LIBS="$ac_save_LIBS"
4709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4713 cat >> confdefs.h <<EOF
4714 #define $ac_tr_lib 1
4720 echo "$ac_t""no" 1>&6
4727 echo $ac_n "checking for select""... $ac_c" 1>&6
4728 echo "configure:4729: checking for select" >&5
4729 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4735 /* System header to define __stub macros and hopefully few prototypes,
4736 which can conflict with char select(); below. */
4738 /* Override any gcc2 internal prototype to avoid an error. */
4739 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */
4745 /* The GNU C library defines this for functions which it implements
4746 to always fail with ENOSYS. Some functions are actually named
4747 something starting with __ and the normal name is an alias. */
4748 #if defined (__stub_select) || defined (__stub___select)
4756 if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4758 eval "ac_cv_func_select=yes"
4760 echo "configure: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4763 eval "ac_cv_func_select=no"
4768 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4769 echo "$ac_t""yes" 1>&6
4772 echo "$ac_t""no" 1>&6
4773 { echo "configure: error: select() required." 1>&2; exit 1; }
4777 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4778 echo "configure:4779: checking types of arguments for select()" >&5
4779 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4789 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4790 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 #ifdef HAVE_SYS_TYPES_H
4795 #include <sys/types.h>
4797 #ifdef HAVE_SYS_TIME_H
4798 #include <sys/time.h>
4800 #ifdef HAVE_SYS_SELECT_H
4801 #include <sys/select.h>
4803 #ifdef HAVE_SYS_SOCKET_H
4804 #include <sys/socket.h>
4806 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);
4811 if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4813 ac_not_found=no ; break 3
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4830 if test "$ac_not_found" = yes; then
4831 ac_cv_func_select_arg1=int
4832 ac_cv_func_select_arg234='int *'
4833 ac_cv_func_select_arg5='struct timeval *'
4835 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4836 cat >> confdefs.h <<EOF
4837 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4840 cat >> confdefs.h <<EOF
4841 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4844 cat >> confdefs.h <<EOF
4845 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4851 for ac_hdr in regex.h
4853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4855 echo "configure:4856: checking for $ac_hdr" >&5
4856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4865 { (eval echo configure:4866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4867 if test -z "$ac_err"; then
4869 eval "ac_cv_header_$ac_safe=yes"
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4875 eval "ac_cv_header_$ac_safe=no"
4879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_hdr 1
4887 echo "$ac_t""no" 1>&6
4891 if test "$ac_cv_header_regex_h" != yes ; then
4892 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4894 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4895 echo "configure:4896: checking for regfree" >&5
4896 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 /* System header to define __stub macros and hopefully few prototypes,
4903 which can conflict with char regfree(); below. */
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4912 /* The GNU C library defines this for functions which it implements
4913 to always fail with ENOSYS. Some functions are actually named
4914 something starting with __ and the normal name is an alias. */
4915 #if defined (__stub_regfree) || defined (__stub___regfree)
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 eval "ac_cv_func_regfree=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 eval "ac_cv_func_regfree=no"
4935 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4939 echo "$ac_t""no" 1>&6
4940 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4945 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4946 echo "configure:4947: checking for compatible POSIX regex" >&5
4947 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4951 if test "$cross_compiling" = yes; then
4952 ol_cv_c_posix_regex=cross
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4958 #include <sys/types.h>
4960 static char *pattern, *string;
4968 if(regcomp(&re, pattern, 0)) {
4972 string = "ALL MATCH";
4974 rc = regexec(&re, string, 0, (void*)0, 0);
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4983 ol_cv_c_posix_regex=yes
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4988 ol_cv_c_posix_regex=no
4995 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4997 if test "$ol_cv_c_posix_regex" = no ; then
4998 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5001 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5002 echo "configure:5003: checking for res_search" >&5
5003 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* System header to define __stub macros and hopefully few prototypes,
5010 which can conflict with char res_search(); below. */
5012 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5019 /* The GNU C library defines this for functions which it implements
5020 to always fail with ENOSYS. Some functions are actually named
5021 something starting with __ and the normal name is an alias. */
5022 #if defined (__stub_res_search) || defined (__stub___res_search)
5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5032 eval "ac_cv_func_res_search=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5037 eval "ac_cv_func_res_search=no"
5042 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5046 echo "$ac_t""no" 1>&6
5049 if test $ac_cv_func_res_search = no ; then
5050 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5051 echo "configure:5052: checking for res_search in -lbind" >&5
5052 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
5053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 ac_save_LIBS="$LIBS"
5058 cat > conftest.$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5070 if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072 eval "ac_cv_lib_$ac_lib_var=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 eval "ac_cv_lib_$ac_lib_var=no"
5080 LIBS="$ac_save_LIBS"
5083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5085 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_lib 1
5094 echo "$ac_t""no" 1>&6
5097 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5100 if test $ac_cv_func_res_search = no ; then
5101 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5102 echo "configure:5103: checking for __res_search in -lbind" >&5
5103 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-%__p_%'`
5104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5107 ac_save_LIBS="$LIBS"
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5112 /* Override any gcc2 internal prototype to avoid an error. */
5113 /* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5115 char __res_search();
5121 if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5123 eval "ac_cv_lib_$ac_lib_var=yes"
5125 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5128 eval "ac_cv_lib_$ac_lib_var=no"
5131 LIBS="$ac_save_LIBS"
5134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5135 echo "$ac_t""yes" 1>&6
5136 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5138 cat >> confdefs.h <<EOF
5139 #define $ac_tr_lib 1
5145 echo "$ac_t""no" 1>&6
5148 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5151 if test $ac_cv_func_res_search = no ; then
5152 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5153 echo "configure:5154: checking for res_search in -lresolv" >&5
5154 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
5155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 ac_save_LIBS="$LIBS"
5159 LIBS="-lresolv $LIBS"
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5172 if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5174 eval "ac_cv_lib_$ac_lib_var=yes"
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5179 eval "ac_cv_lib_$ac_lib_var=no"
5182 LIBS="$ac_save_LIBS"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5188 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5189 cat >> confdefs.h <<EOF
5190 #define $ac_tr_lib 1
5193 LIBS="-lresolv $LIBS"
5196 echo "$ac_t""no" 1>&6
5199 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5202 if test "$ac_cv_func_res_search" = yes ; then
5203 cat >> confdefs.h <<\EOF
5204 #define HAVE_RES_SEARCH 1
5207 elif test $ol_enable_dns = yes ; then
5208 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5209 elif test $ol_enable_dns != no ; then
5210 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5215 if test $ol_enable_ldapd != no ; then
5216 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5218 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5219 echo "configure:5220: checking for main in -lxtpp" >&5
5220 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
5221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 ac_save_LIBS="$LIBS"
5225 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5236 eval "ac_cv_lib_$ac_lib_var=yes"
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 eval "ac_cv_lib_$ac_lib_var=no"
5244 LIBS="$ac_save_LIBS"
5247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5251 cat >> confdefs.h <<\EOF
5255 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5258 echo "$ac_t""no" 1>&6
5262 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5263 echo "configure:5264: checking for main in -ldsap" >&5
5264 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
5265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5268 ac_save_LIBS="$LIBS"
5269 LIBS="-ldsap -lisode $LIBS"
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5280 eval "ac_cv_lib_$ac_lib_var=yes"
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 eval "ac_cv_lib_$ac_lib_var=no"
5288 LIBS="$ac_save_LIBS"
5291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5292 echo "$ac_t""yes" 1>&6
5295 cat >> confdefs.h <<\EOF
5299 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5302 echo "$ac_t""no" 1>&6
5306 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5307 echo "configure:5308: checking for main in -lisode" >&5
5308 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
5309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 ac_save_LIBS="$LIBS"
5313 LIBS="-lisode $LIBS"
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324 eval "ac_cv_lib_$ac_lib_var=yes"
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 eval "ac_cv_lib_$ac_lib_var=no"
5332 LIBS="$ac_save_LIBS"
5335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5339 cat >> confdefs.h <<\EOF
5340 #define HAVE_ISODE 1
5343 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5346 echo "$ac_t""no" 1>&6
5352 if test $ol_link_isode != no; then
5353 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5354 echo "configure:5355: checking for main in -lpp" >&5
5355 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
5356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 ac_save_LIBS="$LIBS"
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371 eval "ac_cv_lib_$ac_lib_var=yes"
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 eval "ac_cv_lib_$ac_lib_var=no"
5379 LIBS="$ac_save_LIBS"
5382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5385 cat >> confdefs.h <<\EOF
5389 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5392 echo "$ac_t""no" 1>&6
5397 # Extract the first word of "pepsy", so it can be a program name with args.
5398 set dummy pepsy; ac_word=$2
5399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5400 echo "configure:5401: checking for $ac_word" >&5
5401 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5406 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5409 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5414 for ac_dir in $ac_dummy; do
5415 test -z "$ac_dir" && ac_dir=.
5416 if test -f $ac_dir/$ac_word; then
5417 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5425 PEPSY="$ac_cv_path_PEPSY"
5426 if test -n "$PEPSY"; then
5427 echo "$ac_t""$PEPSY" 1>&6
5429 echo "$ac_t""no" 1>&6
5434 if test $ol_enable_quipu != no ; then
5435 for ac_hdr in quipu/commonarg.h
5437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5439 echo "configure:5440: checking for $ac_hdr" >&5
5440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5449 { (eval echo configure:5450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5451 if test -z "$ac_err"; then
5453 eval "ac_cv_header_$ac_safe=yes"
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5459 eval "ac_cv_header_$ac_safe=no"
5463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5466 cat >> confdefs.h <<EOF
5467 #define $ac_tr_hdr 1
5471 echo "$ac_t""no" 1>&6
5476 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5478 elif test $ol_enable_quipu = auto ; then
5479 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5481 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5487 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5488 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5492 echo "configure:5493: checking for $ac_hdr" >&5
5493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5498 "configure"
5498 #include "confdefs.h"
5501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5502 { (eval echo configure:5503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5504 if test -z "$ac_err"; then
5506 eval "ac_cv_header_$ac_safe=yes"
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5512 eval "ac_cv_header_$ac_safe=no"
5516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5517 echo "$ac_t""yes" 1>&6
5518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5519 cat >> confdefs.h <<EOF
5520 #define $ac_tr_hdr 1
5524 echo "$ac_t""no" 1>&6
5529 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5530 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5531 echo "configure:5532: checking for main in -lkrb4" >&5
5532 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
5533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 ac_save_LIBS="$LIBS"
5537 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5548 eval "ac_cv_lib_$ac_lib_var=yes"
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 eval "ac_cv_lib_$ac_lib_var=no"
5556 LIBS="$ac_save_LIBS"
5559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5563 echo "$ac_t""no" 1>&6
5568 if test $have_k5 = yes ; then
5569 ol_with_kerberos=found
5570 ol_link_kerberos=yes
5572 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5574 LIBS="$KRB_LIBS $LIBS"
5576 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5577 echo "configure:5578: checking for des_debug in Kerberos libraries" >&5
5578 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5583 LIBS="$KRB_LIBS $LIBS"
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5588 #include <kerberosIV/krb.h>
5589 #include <kerberosIV/des.h>
5590 extern int des_debug;
5598 if { (eval echo configure:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5600 ol_cv_var_des_debug=yes
5602 echo "configure: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5605 ol_cv_var_des_debug=no
5612 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5614 if test $ol_cv_var_des_debug = yes ; then
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_DES_DEBUG 1
5626 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5627 for ac_hdr in krb.h des.h
5629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5631 echo "configure:5632: checking for $ac_hdr" >&5
5632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5641 { (eval echo configure:5642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5643 if test -z "$ac_err"; then
5645 eval "ac_cv_header_$ac_safe=yes"
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 eval "ac_cv_header_$ac_safe=no"
5655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5656 echo "$ac_t""yes" 1>&6
5657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5658 cat >> confdefs.h <<EOF
5659 #define $ac_tr_hdr 1
5663 echo "$ac_t""no" 1>&6
5668 if test $ac_cv_header_krb_h = yes ; then
5669 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5670 echo "configure:5671: checking for main in -lkrb" >&5
5671 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
5672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 ac_save_LIBS="$LIBS"
5676 LIBS="-lkrb -ldes $LIBS"
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5687 eval "ac_cv_lib_$ac_lib_var=yes"
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5692 eval "ac_cv_lib_$ac_lib_var=no"
5695 LIBS="$ac_save_LIBS"
5698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5702 echo "$ac_t""no" 1>&6
5707 if test $have_k4 = yes ; then
5708 ol_with_kerberos=found
5709 ol_link_kerberos=yes
5711 KRB_LIBS="-lkrb -ldes"
5716 if test $ol_link_kerberos = yes ; then
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_KERBEROS 1
5724 if test $ol_with_tls != no ; then
5726 for ac_hdr in openssl/ssl.h ssl.h
5728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5730 echo "configure:5731: checking for $ac_hdr" >&5
5731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5740 { (eval echo configure:5741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5742 if test -z "$ac_err"; then
5744 eval "ac_cv_header_$ac_safe=yes"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5750 eval "ac_cv_header_$ac_safe=no"
5754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5757 cat >> confdefs.h <<EOF
5758 #define $ac_tr_hdr 1
5762 echo "$ac_t""no" 1>&6
5767 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5768 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5769 echo "configure:5770: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5770 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
5771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 ac_save_LIBS="$LIBS"
5775 LIBS="-lssl -lcrypto $LIBS"
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char SSLeay_add_ssl_algorithms();
5785 SSLeay_add_ssl_algorithms()
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 eval "ac_cv_lib_$ac_lib_var=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 eval "ac_cv_lib_$ac_lib_var=no"
5798 LIBS="$ac_save_LIBS"
5801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5806 echo "$ac_t""no" 1>&6
5811 if test $have_ssleay = no ; then
5812 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5813 echo "configure:5814: checking for SSL_library_init in -lssl" >&5
5814 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
5815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 ac_save_LIBS="$LIBS"
5819 LIBS="-lssl -lcrypto $LIBS"
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char SSL_library_init();
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 eval "ac_cv_lib_$ac_lib_var=yes"
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 eval "ac_cv_lib_$ac_lib_var=no"
5842 LIBS="$ac_save_LIBS"
5845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5850 echo "$ac_t""no" 1>&6
5856 if test $have_ssleay = no ; then
5857 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5858 echo "configure:5859: checking for ssl3_accept in -lssl" >&5
5859 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
5860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5861 echo $ac_n "(cached) $ac_c" 1>&6
5863 ac_save_LIBS="$LIBS"
5864 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5877 if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5879 eval "ac_cv_lib_$ac_lib_var=yes"
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5884 eval "ac_cv_lib_$ac_lib_var=no"
5887 LIBS="$ac_save_LIBS"
5890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5895 echo "$ac_t""no" 1>&6
5901 if test $have_ssleay = yes ; then
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_SSLEAY 1
5910 if test $need_rsaref = yes; then
5911 cat >> confdefs.h <<\EOF
5912 #define HAVE_RSAREF 1
5916 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5918 TLS_LIBS="-lssl -lcrypto"
5924 if test $ol_link_tls = yes ; then
5925 cat >> confdefs.h <<\EOF
5933 gethostbyname_r gethostbyaddr_r \
5936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_func" >&5
5938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func(); below. */
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 eval "ac_cv_func_$ac_func=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_func_$ac_func=no"
5977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5978 echo "$ac_t""yes" 1>&6
5979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5980 cat >> confdefs.h <<EOF
5981 #define $ac_tr_func 1
5985 echo "$ac_t""no" 1>&6
5990 if test "$ac_cv_func_ctime_r" = no ; then
5991 ol_cv_func_ctime_r_nargs=0
5993 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5994 echo "configure:5995: checking number of arguments of ctime_r" >&5
5995 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6003 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6006 if { (eval echo configure:6007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6008 ol_cv_func_ctime_r_nargs=3
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6018 time_t ti; char *buffer; ctime_r(&ti,buffer);
6021 if { (eval echo configure:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6023 ol_cv_func_ctime_r_nargs=2
6025 echo "configure: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6028 ol_cv_func_ctime_r_nargs=0
6035 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6036 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6037 cat >> confdefs.h <<EOF
6038 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6045 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6046 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6047 echo "configure:6048: checking number of arguments of gethostbyname_r" >&5
6048 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 #include <sys/types.h>
6055 #include <sys/socket.h>
6056 #include <netinet/in.h>
6058 #define BUFSIZE (sizeof(struct hostent)+10)
6060 struct hostent hent; char buffer[BUFSIZE];
6061 int bufsize=BUFSIZE;int h_errno;
6062 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6063 buffer, bufsize, &h_errno);
6066 if { (eval echo configure:6067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6068 ol_cv_func_gethostbyname_r_nargs=5
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <sys/types.h>
6077 #include <sys/socket.h>
6078 #include <netinet/in.h>
6080 #define BUFSIZE (sizeof(struct hostent)+10)
6082 struct hostent hent;struct hostent *rhent;
6083 char buffer[BUFSIZE];
6084 int bufsize=BUFSIZE;int h_errno;
6085 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6089 if { (eval echo configure:6090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6091 ol_cv_func_gethostbyname_r_nargs=6
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 ol_cv_func_gethostbyname_r_nargs=0
6103 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6104 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6105 cat >> confdefs.h <<EOF
6106 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6112 ol_cv_func_gethostbyname_r_nargs=0
6115 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6116 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6117 echo "configure:6118: checking number of arguments of gethostbyaddr_r" >&5
6118 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6121 cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 #include <sys/types.h>
6125 #include <sys/socket.h>
6126 #include <netinet/in.h>
6128 #define BUFSIZE (sizeof(struct hostent)+10)
6130 struct hostent hent; char buffer[BUFSIZE];
6132 size_t alen=sizeof(struct in_addr);
6133 int bufsize=BUFSIZE;int h_errno;
6134 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6135 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6138 if { (eval echo configure:6139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6140 ol_cv_func_gethostbyaddr_r_nargs=7
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 #include <sys/types.h>
6149 #include <sys/socket.h>
6150 #include <netinet/in.h>
6152 #define BUFSIZE (sizeof(struct hostent)+10)
6154 struct hostent hent;
6155 struct hostent *rhent; char buffer[BUFSIZE];
6157 size_t alen=sizeof(struct in_addr);
6158 int bufsize=BUFSIZE;int h_errno;
6159 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6160 alen, AF_INET, &hent, buffer, bufsize,
6164 if { (eval echo configure:6165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6166 ol_cv_func_gethostbyaddr_r_nargs=8
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 ol_cv_func_gethostbyaddr_r_nargs=0
6178 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6179 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6180 cat >> confdefs.h <<EOF
6181 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6187 ol_cv_func_gethostbyaddr_r_nargs=0
6190 if test "$ac_cv_func_ctime_r" = yes \
6191 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6192 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6193 -a "$ac_cv_func_gethostbyname_r" = yes \
6194 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6195 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6196 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6197 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6198 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6201 cat >> confdefs.h <<\EOF
6202 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6208 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6209 -o $ol_with_threads = posix ; then
6211 for ac_hdr in pthread.h
6213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_hdr" >&5
6216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6225 { (eval echo configure:6226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6227 if test -z "$ac_err"; then
6229 eval "ac_cv_header_$ac_safe=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 eval "ac_cv_header_$ac_safe=no"
6239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6242 cat >> confdefs.h <<EOF
6243 #define $ac_tr_hdr 1
6247 echo "$ac_t""no" 1>&6
6252 if test $ac_cv_header_pthread_h = yes ; then
6253 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6254 echo "configure:6255: checking POSIX thread version" >&5
6255 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6263 # include <pthread.h>
6264 /* this check could be improved */
6265 # ifdef PTHREAD_ONCE_INIT
6266 pthread_version_final;
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 egrep "pthread_version_final" >/dev/null 2>&1; then
6273 ol_pthread_final=yes
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6285 # include <pthread.h>
6286 /* this check could be improved */
6287 # ifdef pthread_once_init
6288 pthread_version_draft4;
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6295 ol_pthread_draft4=yes
6298 ol_pthread_draft4=no
6303 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6304 ol_cv_pthread_version=final
6305 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6306 ol_cv_pthread_version=draft4
6308 ol_cv_pthread_version=unknown
6313 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6316 if test $ol_cv_pthread_version = final ; then
6317 cat >> confdefs.h <<\EOF
6318 #define HAVE_PTHREADS_FINAL 1
6321 elif test $ol_cv_pthread_version = draft4 ; then
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_PTHREADS_D4 1
6327 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6330 # consider threads found
6331 ol_with_threads=found
6334 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6335 echo "configure:6336: checking for LinuxThreads pthread.h" >&5
6336 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6339 cat > conftest.$ac_ext <<EOF
6340 #line 6341 "configure"
6341 #include "confdefs.h"
6342 #include <pthread.h>
6344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6345 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6347 ol_cv_header_linux_threads=yes
6350 ol_cv_header_linux_threads=no
6357 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6358 if test $ol_cv_header_linux_threads = yes; then
6359 cat >> confdefs.h <<\EOF
6360 #define HAVE_LINUX_THREADS 1
6366 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6367 echo "configure:6368: checking for GNU Pth pthread.h" >&5
6368 if eval "test \"`echo '$''{'ol_cv_header_gnu_pth_pthread_h'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <pthread.h>
6375 #ifdef _POSIX_THREAD_IS_GNU_PTH
6380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6381 egrep "__gnu_pth__" >/dev/null 2>&1; then
6383 ol_cv_header_gnu_pth_pthread_h=yes
6386 ol_cv_header_gnu_pth_pthread_h=no
6393 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6396 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6397 for ac_hdr in sched.h
6399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_hdr" >&5
6402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6411 { (eval echo configure:6412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6413 if test -z "$ac_err"; then
6415 eval "ac_cv_header_$ac_safe=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6421 eval "ac_cv_header_$ac_safe=no"
6425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6428 cat >> confdefs.h <<EOF
6429 #define $ac_tr_hdr 1
6433 echo "$ac_t""no" 1>&6
6440 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6441 echo "configure:6442: checking for pthread_create in default libraries" >&5
6442 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6446 if test "$cross_compiling" = yes; then
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* pthread test headers */
6451 #include <pthread.h>
6453 #define NULL (void*)0
6456 static void *task(p)
6459 return (void *) (p == NULL);
6464 /* pthread test function */
6468 /* make sure pthread_create() isn't just a stub */
6469 #if HAVE_PTHREADS_D4
6470 status = pthread_create(&t, pthread_attr_default, task, NULL);
6472 status = pthread_create(&t, NULL, task, NULL);
6475 if( status ) exit( status );
6477 /* make sure pthread_detach() isn't just a stub */
6478 #if HAVE_PTHREADS_D4
6479 status = pthread_detach( &t );
6481 status = pthread_detach( t );
6484 #ifdef HAVE_LINUX_THREADS
6485 pthread_kill_other_threads_np();
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494 ol_cv_pthread_create=yes
6496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 ol_cv_pthread_create=no
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6506 /* pthread test headers */
6507 #include <pthread.h>
6509 #define NULL (void*)0
6512 static void *task(p)
6515 return (void *) (p == NULL);
6519 int main(argc, argv)
6524 /* pthread test function */
6528 /* make sure pthread_create() isn't just a stub */
6529 #if HAVE_PTHREADS_D4
6530 status = pthread_create(&t, pthread_attr_default, task, NULL);
6532 status = pthread_create(&t, NULL, task, NULL);
6535 if( status ) exit( status );
6537 /* make sure pthread_detach() isn't just a stub */
6538 #if HAVE_PTHREADS_D4
6539 status = pthread_detach( &t );
6541 status = pthread_detach( t );
6544 #ifdef HAVE_LINUX_THREADS
6545 pthread_kill_other_threads_np();
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6555 ol_cv_pthread_create=yes
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6560 ol_cv_pthread_create=no
6567 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6569 if test $ol_cv_pthread_create != no ; then
6570 ol_link_threads=posix
6574 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6575 if test "$ol_link_threads" = no ; then
6577 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6578 echo "configure:6579: checking for pthread link with -kthread" >&5
6579 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6585 LIBS="-kthread $LIBS"
6587 if test "$cross_compiling" = yes; then
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* pthread test headers */
6592 #include <pthread.h>
6594 #define NULL (void*)0
6597 static void *task(p)
6600 return (void *) (p == NULL);
6605 /* pthread test function */
6609 /* make sure pthread_create() isn't just a stub */
6610 #if HAVE_PTHREADS_D4
6611 status = pthread_create(&t, pthread_attr_default, task, NULL);
6613 status = pthread_create(&t, NULL, task, NULL);
6616 if( status ) exit( status );
6618 /* make sure pthread_detach() isn't just a stub */
6619 #if HAVE_PTHREADS_D4
6620 status = pthread_detach( &t );
6622 status = pthread_detach( t );
6625 #ifdef HAVE_LINUX_THREADS
6626 pthread_kill_other_threads_np();
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 ol_cv_pthread_kthread=yes
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 ol_cv_pthread_kthread=no
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* pthread test headers */
6648 #include <pthread.h>
6650 #define NULL (void*)0
6653 static void *task(p)
6656 return (void *) (p == NULL);
6660 int main(argc, argv)
6665 /* pthread test function */
6669 /* make sure pthread_create() isn't just a stub */
6670 #if HAVE_PTHREADS_D4
6671 status = pthread_create(&t, pthread_attr_default, task, NULL);
6673 status = pthread_create(&t, NULL, task, NULL);
6676 if( status ) exit( status );
6678 /* make sure pthread_detach() isn't just a stub */
6679 #if HAVE_PTHREADS_D4
6680 status = pthread_detach( &t );
6682 status = pthread_detach( t );
6685 #ifdef HAVE_LINUX_THREADS
6686 pthread_kill_other_threads_np();
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6696 ol_cv_pthread_kthread=yes
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 ol_cv_pthread_kthread=no
6712 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6714 if test $ol_cv_pthread_kthread = yes ; then
6715 ol_link_pthreads="-kthread"
6716 ol_link_threads=posix
6720 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6721 if test "$ol_link_threads" = no ; then
6723 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6724 echo "configure:6725: checking for pthread link with -pthread" >&5
6725 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6731 LIBS="-pthread $LIBS"
6733 if test "$cross_compiling" = yes; then
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* pthread test headers */
6738 #include <pthread.h>
6740 #define NULL (void*)0
6743 static void *task(p)
6746 return (void *) (p == NULL);
6751 /* pthread test function */
6755 /* make sure pthread_create() isn't just a stub */
6756 #if HAVE_PTHREADS_D4
6757 status = pthread_create(&t, pthread_attr_default, task, NULL);
6759 status = pthread_create(&t, NULL, task, NULL);
6762 if( status ) exit( status );
6764 /* make sure pthread_detach() isn't just a stub */
6765 #if HAVE_PTHREADS_D4
6766 status = pthread_detach( &t );
6768 status = pthread_detach( t );
6771 #ifdef HAVE_LINUX_THREADS
6772 pthread_kill_other_threads_np();
6779 if { (eval echo configure:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 ol_cv_pthread_pthread=yes
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6786 ol_cv_pthread_pthread=no
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* pthread test headers */
6794 #include <pthread.h>
6796 #define NULL (void*)0
6799 static void *task(p)
6802 return (void *) (p == NULL);
6806 int main(argc, argv)
6811 /* pthread test function */
6815 /* make sure pthread_create() isn't just a stub */
6816 #if HAVE_PTHREADS_D4
6817 status = pthread_create(&t, pthread_attr_default, task, NULL);
6819 status = pthread_create(&t, NULL, task, NULL);
6822 if( status ) exit( status );
6824 /* make sure pthread_detach() isn't just a stub */
6825 #if HAVE_PTHREADS_D4
6826 status = pthread_detach( &t );
6828 status = pthread_detach( t );
6831 #ifdef HAVE_LINUX_THREADS
6832 pthread_kill_other_threads_np();
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6842 ol_cv_pthread_pthread=yes
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 ol_cv_pthread_pthread=no
6858 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6860 if test $ol_cv_pthread_pthread = yes ; then
6861 ol_link_pthreads="-pthread"
6862 ol_link_threads=posix
6866 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6867 if test "$ol_link_threads" = no ; then
6869 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6870 echo "configure:6871: checking for pthread link with -pthreads" >&5
6871 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
6872 echo $ac_n "(cached) $ac_c" 1>&6
6877 LIBS="-pthreads $LIBS"
6879 if test "$cross_compiling" = yes; then
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* pthread test headers */
6884 #include <pthread.h>
6886 #define NULL (void*)0
6889 static void *task(p)
6892 return (void *) (p == NULL);
6897 /* pthread test function */
6901 /* make sure pthread_create() isn't just a stub */
6902 #if HAVE_PTHREADS_D4
6903 status = pthread_create(&t, pthread_attr_default, task, NULL);
6905 status = pthread_create(&t, NULL, task, NULL);
6908 if( status ) exit( status );
6910 /* make sure pthread_detach() isn't just a stub */
6911 #if HAVE_PTHREADS_D4
6912 status = pthread_detach( &t );
6914 status = pthread_detach( t );
6917 #ifdef HAVE_LINUX_THREADS
6918 pthread_kill_other_threads_np();
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927 ol_cv_pthread_pthreads=yes
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 ol_cv_pthread_pthreads=no
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* pthread test headers */
6940 #include <pthread.h>
6942 #define NULL (void*)0
6945 static void *task(p)
6948 return (void *) (p == NULL);
6952 int main(argc, argv)
6957 /* pthread test function */
6961 /* make sure pthread_create() isn't just a stub */
6962 #if HAVE_PTHREADS_D4
6963 status = pthread_create(&t, pthread_attr_default, task, NULL);
6965 status = pthread_create(&t, NULL, task, NULL);
6968 if( status ) exit( status );
6970 /* make sure pthread_detach() isn't just a stub */
6971 #if HAVE_PTHREADS_D4
6972 status = pthread_detach( &t );
6974 status = pthread_detach( t );
6977 #ifdef HAVE_LINUX_THREADS
6978 pthread_kill_other_threads_np();
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6988 ol_cv_pthread_pthreads=yes
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 ol_cv_pthread_pthreads=no
7004 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7006 if test $ol_cv_pthread_pthreads = yes ; then
7007 ol_link_pthreads="-pthreads"
7008 ol_link_threads=posix
7012 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7013 if test "$ol_link_threads" = no ; then
7015 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7016 echo "configure:7017: checking for pthread link with -mthreads" >&5
7017 if eval "test \"`echo '$''{'ol_cv_pthread_mthreads'+set}'`\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7023 LIBS="-mthreads $LIBS"
7025 if test "$cross_compiling" = yes; then
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* pthread test headers */
7030 #include <pthread.h>
7032 #define NULL (void*)0
7035 static void *task(p)
7038 return (void *) (p == NULL);
7043 /* pthread test function */
7047 /* make sure pthread_create() isn't just a stub */
7048 #if HAVE_PTHREADS_D4
7049 status = pthread_create(&t, pthread_attr_default, task, NULL);
7051 status = pthread_create(&t, NULL, task, NULL);
7054 if( status ) exit( status );
7056 /* make sure pthread_detach() isn't just a stub */
7057 #if HAVE_PTHREADS_D4
7058 status = pthread_detach( &t );
7060 status = pthread_detach( t );
7063 #ifdef HAVE_LINUX_THREADS
7064 pthread_kill_other_threads_np();
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7073 ol_cv_pthread_mthreads=yes
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 ol_cv_pthread_mthreads=no
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 /* pthread test headers */
7086 #include <pthread.h>
7088 #define NULL (void*)0
7091 static void *task(p)
7094 return (void *) (p == NULL);
7098 int main(argc, argv)
7103 /* pthread test function */
7107 /* make sure pthread_create() isn't just a stub */
7108 #if HAVE_PTHREADS_D4
7109 status = pthread_create(&t, pthread_attr_default, task, NULL);
7111 status = pthread_create(&t, NULL, task, NULL);
7114 if( status ) exit( status );
7116 /* make sure pthread_detach() isn't just a stub */
7117 #if HAVE_PTHREADS_D4
7118 status = pthread_detach( &t );
7120 status = pthread_detach( t );
7123 #ifdef HAVE_LINUX_THREADS
7124 pthread_kill_other_threads_np();
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7134 ol_cv_pthread_mthreads=yes
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 ol_cv_pthread_mthreads=no
7150 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7152 if test $ol_cv_pthread_mthreads = yes ; then
7153 ol_link_pthreads="-mthreads"
7154 ol_link_threads=posix
7158 # Pthread try link: -thread (ol_cv_pthread_thread)
7159 if test "$ol_link_threads" = no ; then
7161 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7162 echo "configure:7163: checking for pthread link with -thread" >&5
7163 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7169 LIBS="-thread $LIBS"
7171 if test "$cross_compiling" = yes; then
7172 cat > conftest.$ac_ext <<EOF
7173 #line 7174 "configure"
7174 #include "confdefs.h"
7175 /* pthread test headers */
7176 #include <pthread.h>
7178 #define NULL (void*)0
7181 static void *task(p)
7184 return (void *) (p == NULL);
7189 /* pthread test function */
7193 /* make sure pthread_create() isn't just a stub */
7194 #if HAVE_PTHREADS_D4
7195 status = pthread_create(&t, pthread_attr_default, task, NULL);
7197 status = pthread_create(&t, NULL, task, NULL);
7200 if( status ) exit( status );
7202 /* make sure pthread_detach() isn't just a stub */
7203 #if HAVE_PTHREADS_D4
7204 status = pthread_detach( &t );
7206 status = pthread_detach( t );
7209 #ifdef HAVE_LINUX_THREADS
7210 pthread_kill_other_threads_np();
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7219 ol_cv_pthread_thread=yes
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 ol_cv_pthread_thread=no
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 /* pthread test headers */
7232 #include <pthread.h>
7234 #define NULL (void*)0
7237 static void *task(p)
7240 return (void *) (p == NULL);
7244 int main(argc, argv)
7249 /* pthread test function */
7253 /* make sure pthread_create() isn't just a stub */
7254 #if HAVE_PTHREADS_D4
7255 status = pthread_create(&t, pthread_attr_default, task, NULL);
7257 status = pthread_create(&t, NULL, task, NULL);
7260 if( status ) exit( status );
7262 /* make sure pthread_detach() isn't just a stub */
7263 #if HAVE_PTHREADS_D4
7264 status = pthread_detach( &t );
7266 status = pthread_detach( t );
7269 #ifdef HAVE_LINUX_THREADS
7270 pthread_kill_other_threads_np();
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7280 ol_cv_pthread_thread=yes
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 ol_cv_pthread_thread=no
7296 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7298 if test $ol_cv_pthread_thread = yes ; then
7299 ol_link_pthreads="-thread"
7300 ol_link_threads=posix
7305 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7306 if test "$ol_link_threads" = no ; then
7307 # try -lpthread -lmach -lexc -lc_r
7308 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7309 echo "configure:7310: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7310 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
7311 echo $ac_n "(cached) $ac_c" 1>&6
7316 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7318 if test "$cross_compiling" = yes; then
7319 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7322 /* pthread test headers */
7323 #include <pthread.h>
7325 #define NULL (void*)0
7328 static void *task(p)
7331 return (void *) (p == NULL);
7336 /* pthread test function */
7340 /* make sure pthread_create() isn't just a stub */
7341 #if HAVE_PTHREADS_D4
7342 status = pthread_create(&t, pthread_attr_default, task, NULL);
7344 status = pthread_create(&t, NULL, task, NULL);
7347 if( status ) exit( status );
7349 /* make sure pthread_detach() isn't just a stub */
7350 #if HAVE_PTHREADS_D4
7351 status = pthread_detach( &t );
7353 status = pthread_detach( t );
7356 #ifdef HAVE_LINUX_THREADS
7357 pthread_kill_other_threads_np();
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7371 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 /* pthread test headers */
7379 #include <pthread.h>
7381 #define NULL (void*)0
7384 static void *task(p)
7387 return (void *) (p == NULL);
7391 int main(argc, argv)
7396 /* pthread test function */
7400 /* make sure pthread_create() isn't just a stub */
7401 #if HAVE_PTHREADS_D4
7402 status = pthread_create(&t, pthread_attr_default, task, NULL);
7404 status = pthread_create(&t, NULL, task, NULL);
7407 if( status ) exit( status );
7409 /* make sure pthread_detach() isn't just a stub */
7410 #if HAVE_PTHREADS_D4
7411 status = pthread_detach( &t );
7413 status = pthread_detach( t );
7416 #ifdef HAVE_LINUX_THREADS
7417 pthread_kill_other_threads_np();
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7427 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7432 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7443 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7445 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7446 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7447 ol_link_threads=posix
7451 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7452 if test "$ol_link_threads" = no ; then
7453 # try -lpthread -lmach -lexc
7454 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7455 echo "configure:7456: checking for pthread link with -lpthread -lmach -lexc" >&5
7456 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7462 LIBS="-lpthread -lmach -lexc $LIBS"
7464 if test "$cross_compiling" = yes; then
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7468 /* pthread test headers */
7469 #include <pthread.h>
7471 #define NULL (void*)0
7474 static void *task(p)
7477 return (void *) (p == NULL);
7482 /* pthread test function */
7486 /* make sure pthread_create() isn't just a stub */
7487 #if HAVE_PTHREADS_D4
7488 status = pthread_create(&t, pthread_attr_default, task, NULL);
7490 status = pthread_create(&t, NULL, task, NULL);
7493 if( status ) exit( status );
7495 /* make sure pthread_detach() isn't just a stub */
7496 #if HAVE_PTHREADS_D4
7497 status = pthread_detach( &t );
7499 status = pthread_detach( t );
7502 #ifdef HAVE_LINUX_THREADS
7503 pthread_kill_other_threads_np();
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7512 ol_cv_pthread_lpthread_lmach_lexc=yes
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 ol_cv_pthread_lpthread_lmach_lexc=no
7521 cat > conftest.$ac_ext <<EOF
7522 #line 7523 "configure"
7523 #include "confdefs.h"
7524 /* pthread test headers */
7525 #include <pthread.h>
7527 #define NULL (void*)0
7530 static void *task(p)
7533 return (void *) (p == NULL);
7537 int main(argc, argv)
7542 /* pthread test function */
7546 /* make sure pthread_create() isn't just a stub */
7547 #if HAVE_PTHREADS_D4
7548 status = pthread_create(&t, pthread_attr_default, task, NULL);
7550 status = pthread_create(&t, NULL, task, NULL);
7553 if( status ) exit( status );
7555 /* make sure pthread_detach() isn't just a stub */
7556 #if HAVE_PTHREADS_D4
7557 status = pthread_detach( &t );
7559 status = pthread_detach( t );
7562 #ifdef HAVE_LINUX_THREADS
7563 pthread_kill_other_threads_np();
7571 if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7573 ol_cv_pthread_lpthread_lmach_lexc=yes
7575 echo "configure: failed program was:" >&5
7576 cat conftest.$ac_ext >&5
7578 ol_cv_pthread_lpthread_lmach_lexc=no
7589 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7591 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7592 ol_link_pthreads="-lpthread -lmach -lexc"
7593 ol_link_threads=posix
7598 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7599 if test "$ol_link_threads" = no ; then
7600 # try -lpthread -Wl,-woff,85
7601 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7602 echo "configure:7603: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7603 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7609 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7611 if test "$cross_compiling" = yes; then
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 /* pthread test headers */
7616 #include <pthread.h>
7618 #define NULL (void*)0
7621 static void *task(p)
7624 return (void *) (p == NULL);
7629 /* pthread test function */
7633 /* make sure pthread_create() isn't just a stub */
7634 #if HAVE_PTHREADS_D4
7635 status = pthread_create(&t, pthread_attr_default, task, NULL);
7637 status = pthread_create(&t, NULL, task, NULL);
7640 if( status ) exit( status );
7642 /* make sure pthread_detach() isn't just a stub */
7643 #if HAVE_PTHREADS_D4
7644 status = pthread_detach( &t );
7646 status = pthread_detach( t );
7649 #ifdef HAVE_LINUX_THREADS
7650 pthread_kill_other_threads_np();
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659 ol_cv_pthread_lib_lpthread_woff=yes
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 ol_cv_pthread_lib_lpthread_woff=no
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 /* pthread test headers */
7672 #include <pthread.h>
7674 #define NULL (void*)0
7677 static void *task(p)
7680 return (void *) (p == NULL);
7684 int main(argc, argv)
7689 /* pthread test function */
7693 /* make sure pthread_create() isn't just a stub */
7694 #if HAVE_PTHREADS_D4
7695 status = pthread_create(&t, pthread_attr_default, task, NULL);
7697 status = pthread_create(&t, NULL, task, NULL);
7700 if( status ) exit( status );
7702 /* make sure pthread_detach() isn't just a stub */
7703 #if HAVE_PTHREADS_D4
7704 status = pthread_detach( &t );
7706 status = pthread_detach( t );
7709 #ifdef HAVE_LINUX_THREADS
7710 pthread_kill_other_threads_np();
7718 if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7720 ol_cv_pthread_lib_lpthread_woff=yes
7722 echo "configure: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7725 ol_cv_pthread_lib_lpthread_woff=no
7736 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7738 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7739 ol_link_pthreads="-lpthread -Wl,-woff,85"
7740 ol_link_threads=posix
7745 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7746 if test "$ol_link_threads" = no ; then
7748 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7749 echo "configure:7750: checking for pthread link with -lpthread" >&5
7750 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7756 LIBS="-lpthread $LIBS"
7758 if test "$cross_compiling" = yes; then
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 /* pthread test headers */
7763 #include <pthread.h>
7765 #define NULL (void*)0
7768 static void *task(p)
7771 return (void *) (p == NULL);
7776 /* pthread test function */
7780 /* make sure pthread_create() isn't just a stub */
7781 #if HAVE_PTHREADS_D4
7782 status = pthread_create(&t, pthread_attr_default, task, NULL);
7784 status = pthread_create(&t, NULL, task, NULL);
7787 if( status ) exit( status );
7789 /* make sure pthread_detach() isn't just a stub */
7790 #if HAVE_PTHREADS_D4
7791 status = pthread_detach( &t );
7793 status = pthread_detach( t );
7796 #ifdef HAVE_LINUX_THREADS
7797 pthread_kill_other_threads_np();
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 ol_cv_pthread_lpthread=yes
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 ol_cv_pthread_lpthread=no
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* pthread test headers */
7819 #include <pthread.h>
7821 #define NULL (void*)0
7824 static void *task(p)
7827 return (void *) (p == NULL);
7831 int main(argc, argv)
7836 /* pthread test function */
7840 /* make sure pthread_create() isn't just a stub */
7841 #if HAVE_PTHREADS_D4
7842 status = pthread_create(&t, pthread_attr_default, task, NULL);
7844 status = pthread_create(&t, NULL, task, NULL);
7847 if( status ) exit( status );
7849 /* make sure pthread_detach() isn't just a stub */
7850 #if HAVE_PTHREADS_D4
7851 status = pthread_detach( &t );
7853 status = pthread_detach( t );
7856 #ifdef HAVE_LINUX_THREADS
7857 pthread_kill_other_threads_np();
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7867 ol_cv_pthread_lpthread=yes
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 ol_cv_pthread_lpthread=no
7883 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7885 if test $ol_cv_pthread_lpthread = yes ; then
7886 ol_link_pthreads="-lpthread"
7887 ol_link_threads=posix
7891 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7892 if test "$ol_link_threads" = no ; then
7894 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7895 echo "configure:7896: checking for pthread link with -lc_r" >&5
7896 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7904 if test "$cross_compiling" = yes; then
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 /* pthread test headers */
7909 #include <pthread.h>
7911 #define NULL (void*)0
7914 static void *task(p)
7917 return (void *) (p == NULL);
7922 /* pthread test function */
7926 /* make sure pthread_create() isn't just a stub */
7927 #if HAVE_PTHREADS_D4
7928 status = pthread_create(&t, pthread_attr_default, task, NULL);
7930 status = pthread_create(&t, NULL, task, NULL);
7933 if( status ) exit( status );
7935 /* make sure pthread_detach() isn't just a stub */
7936 #if HAVE_PTHREADS_D4
7937 status = pthread_detach( &t );
7939 status = pthread_detach( t );
7942 #ifdef HAVE_LINUX_THREADS
7943 pthread_kill_other_threads_np();
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7952 ol_cv_pthread_lc_r=yes
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7957 ol_cv_pthread_lc_r=no
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 /* pthread test headers */
7965 #include <pthread.h>
7967 #define NULL (void*)0
7970 static void *task(p)
7973 return (void *) (p == NULL);
7977 int main(argc, argv)
7982 /* pthread test function */
7986 /* make sure pthread_create() isn't just a stub */
7987 #if HAVE_PTHREADS_D4
7988 status = pthread_create(&t, pthread_attr_default, task, NULL);
7990 status = pthread_create(&t, NULL, task, NULL);
7993 if( status ) exit( status );
7995 /* make sure pthread_detach() isn't just a stub */
7996 #if HAVE_PTHREADS_D4
7997 status = pthread_detach( &t );
7999 status = pthread_detach( t );
8002 #ifdef HAVE_LINUX_THREADS
8003 pthread_kill_other_threads_np();
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8013 ol_cv_pthread_lc_r=yes
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 ol_cv_pthread_lc_r=no
8029 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8031 if test $ol_cv_pthread_lc_r = yes ; then
8032 ol_link_pthreads="-lc_r"
8033 ol_link_threads=posix
8038 # Pthread try link: -threads (ol_cv_pthread_threads)
8039 if test "$ol_link_threads" = no ; then
8041 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8042 echo "configure:8043: checking for pthread link with -threads" >&5
8043 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8049 LIBS="-threads $LIBS"
8051 if test "$cross_compiling" = yes; then
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 /* pthread test headers */
8056 #include <pthread.h>
8058 #define NULL (void*)0
8061 static void *task(p)
8064 return (void *) (p == NULL);
8069 /* pthread test function */
8073 /* make sure pthread_create() isn't just a stub */
8074 #if HAVE_PTHREADS_D4
8075 status = pthread_create(&t, pthread_attr_default, task, NULL);
8077 status = pthread_create(&t, NULL, task, NULL);
8080 if( status ) exit( status );
8082 /* make sure pthread_detach() isn't just a stub */
8083 #if HAVE_PTHREADS_D4
8084 status = pthread_detach( &t );
8086 status = pthread_detach( t );
8089 #ifdef HAVE_LINUX_THREADS
8090 pthread_kill_other_threads_np();
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8099 ol_cv_pthread_threads=yes
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 ol_cv_pthread_threads=no
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 /* pthread test headers */
8112 #include <pthread.h>
8114 #define NULL (void*)0
8117 static void *task(p)
8120 return (void *) (p == NULL);
8124 int main(argc, argv)
8129 /* pthread test function */
8133 /* make sure pthread_create() isn't just a stub */
8134 #if HAVE_PTHREADS_D4
8135 status = pthread_create(&t, pthread_attr_default, task, NULL);
8137 status = pthread_create(&t, NULL, task, NULL);
8140 if( status ) exit( status );
8142 /* make sure pthread_detach() isn't just a stub */
8143 #if HAVE_PTHREADS_D4
8144 status = pthread_detach( &t );
8146 status = pthread_detach( t );
8149 #ifdef HAVE_LINUX_THREADS
8150 pthread_kill_other_threads_np();
8158 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8160 ol_cv_pthread_threads=yes
8162 echo "configure: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8165 ol_cv_pthread_threads=no
8176 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8178 if test $ol_cv_pthread_threads = yes ; then
8179 ol_link_pthreads="-threads"
8180 ol_link_threads=posix
8185 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8186 if test "$ol_link_threads" = no ; then
8187 # try -lpthreads -lmach -lexc -lc_r
8188 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8189 echo "configure:8190: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8190 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8196 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8198 if test "$cross_compiling" = yes; then
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 /* pthread test headers */
8203 #include <pthread.h>
8205 #define NULL (void*)0
8208 static void *task(p)
8211 return (void *) (p == NULL);
8216 /* pthread test function */
8220 /* make sure pthread_create() isn't just a stub */
8221 #if HAVE_PTHREADS_D4
8222 status = pthread_create(&t, pthread_attr_default, task, NULL);
8224 status = pthread_create(&t, NULL, task, NULL);
8227 if( status ) exit( status );
8229 /* make sure pthread_detach() isn't just a stub */
8230 #if HAVE_PTHREADS_D4
8231 status = pthread_detach( &t );
8233 status = pthread_detach( t );
8236 #ifdef HAVE_LINUX_THREADS
8237 pthread_kill_other_threads_np();
8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8246 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8248 echo "configure: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8251 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* pthread test headers */
8259 #include <pthread.h>
8261 #define NULL (void*)0
8264 static void *task(p)
8267 return (void *) (p == NULL);
8271 int main(argc, argv)
8276 /* pthread test function */
8280 /* make sure pthread_create() isn't just a stub */
8281 #if HAVE_PTHREADS_D4
8282 status = pthread_create(&t, pthread_attr_default, task, NULL);
8284 status = pthread_create(&t, NULL, task, NULL);
8287 if( status ) exit( status );
8289 /* make sure pthread_detach() isn't just a stub */
8290 #if HAVE_PTHREADS_D4
8291 status = pthread_detach( &t );
8293 status = pthread_detach( t );
8296 #ifdef HAVE_LINUX_THREADS
8297 pthread_kill_other_threads_np();
8305 if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8307 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8312 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8323 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8325 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8326 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8327 ol_link_threads=posix
8331 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8332 if test "$ol_link_threads" = no ; then
8333 # try -lpthreads -lmach -lexc
8334 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8335 echo "configure:8336: checking for pthread link with -lpthreads -lmach -lexc" >&5
8336 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8342 LIBS="-lpthreads -lmach -lexc $LIBS"
8344 if test "$cross_compiling" = yes; then
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8348 /* pthread test headers */
8349 #include <pthread.h>
8351 #define NULL (void*)0
8354 static void *task(p)
8357 return (void *) (p == NULL);
8362 /* pthread test function */
8366 /* make sure pthread_create() isn't just a stub */
8367 #if HAVE_PTHREADS_D4
8368 status = pthread_create(&t, pthread_attr_default, task, NULL);
8370 status = pthread_create(&t, NULL, task, NULL);
8373 if( status ) exit( status );
8375 /* make sure pthread_detach() isn't just a stub */
8376 #if HAVE_PTHREADS_D4
8377 status = pthread_detach( &t );
8379 status = pthread_detach( t );
8382 #ifdef HAVE_LINUX_THREADS
8383 pthread_kill_other_threads_np();
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 ol_cv_pthread_lpthreads_lmach_lexc=yes
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 ol_cv_pthread_lpthreads_lmach_lexc=no
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 /* pthread test headers */
8405 #include <pthread.h>
8407 #define NULL (void*)0
8410 static void *task(p)
8413 return (void *) (p == NULL);
8417 int main(argc, argv)
8422 /* pthread test function */
8426 /* make sure pthread_create() isn't just a stub */
8427 #if HAVE_PTHREADS_D4
8428 status = pthread_create(&t, pthread_attr_default, task, NULL);
8430 status = pthread_create(&t, NULL, task, NULL);
8433 if( status ) exit( status );
8435 /* make sure pthread_detach() isn't just a stub */
8436 #if HAVE_PTHREADS_D4
8437 status = pthread_detach( &t );
8439 status = pthread_detach( t );
8442 #ifdef HAVE_LINUX_THREADS
8443 pthread_kill_other_threads_np();
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8453 ol_cv_pthread_lpthreads_lmach_lexc=yes
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8458 ol_cv_pthread_lpthreads_lmach_lexc=no
8469 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8471 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8472 ol_link_pthreads="-lpthreads -lmach -lexc"
8473 ol_link_threads=posix
8477 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8478 if test "$ol_link_threads" = no ; then
8479 # try -lpthreads -lexc
8480 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8481 echo "configure:8482: checking for pthread link with -lpthreads -lexc" >&5
8482 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
8483 echo $ac_n "(cached) $ac_c" 1>&6
8488 LIBS="-lpthreads -lexc $LIBS"
8490 if test "$cross_compiling" = yes; then
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8494 /* pthread test headers */
8495 #include <pthread.h>
8497 #define NULL (void*)0
8500 static void *task(p)
8503 return (void *) (p == NULL);
8508 /* pthread test function */
8512 /* make sure pthread_create() isn't just a stub */
8513 #if HAVE_PTHREADS_D4
8514 status = pthread_create(&t, pthread_attr_default, task, NULL);
8516 status = pthread_create(&t, NULL, task, NULL);
8519 if( status ) exit( status );
8521 /* make sure pthread_detach() isn't just a stub */
8522 #if HAVE_PTHREADS_D4
8523 status = pthread_detach( &t );
8525 status = pthread_detach( t );
8528 #ifdef HAVE_LINUX_THREADS
8529 pthread_kill_other_threads_np();
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8538 ol_cv_pthread_lpthreads_lexc=yes
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 ol_cv_pthread_lpthreads_lexc=no
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 /* pthread test headers */
8551 #include <pthread.h>
8553 #define NULL (void*)0
8556 static void *task(p)
8559 return (void *) (p == NULL);
8563 int main(argc, argv)
8568 /* pthread test function */
8572 /* make sure pthread_create() isn't just a stub */
8573 #if HAVE_PTHREADS_D4
8574 status = pthread_create(&t, pthread_attr_default, task, NULL);
8576 status = pthread_create(&t, NULL, task, NULL);
8579 if( status ) exit( status );
8581 /* make sure pthread_detach() isn't just a stub */
8582 #if HAVE_PTHREADS_D4
8583 status = pthread_detach( &t );
8585 status = pthread_detach( t );
8588 #ifdef HAVE_LINUX_THREADS
8589 pthread_kill_other_threads_np();
8597 if { (eval echo configure:8598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8599 ol_cv_pthread_lpthreads_lexc=yes
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8604 ol_cv_pthread_lpthreads_lexc=no
8615 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8617 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8618 ol_link_pthreads="-lpthreads -lexc"
8619 ol_link_threads=posix
8624 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8625 if test "$ol_link_threads" = no ; then
8627 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8628 echo "configure:8629: checking for pthread link with -lpthreads" >&5
8629 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8635 LIBS="-lpthreads $LIBS"
8637 if test "$cross_compiling" = yes; then
8638 cat > conftest.$ac_ext <<EOF
8639 #line 8640 "configure"
8640 #include "confdefs.h"
8641 /* pthread test headers */
8642 #include <pthread.h>
8644 #define NULL (void*)0
8647 static void *task(p)
8650 return (void *) (p == NULL);
8655 /* pthread test function */
8659 /* make sure pthread_create() isn't just a stub */
8660 #if HAVE_PTHREADS_D4
8661 status = pthread_create(&t, pthread_attr_default, task, NULL);
8663 status = pthread_create(&t, NULL, task, NULL);
8666 if( status ) exit( status );
8668 /* make sure pthread_detach() isn't just a stub */
8669 #if HAVE_PTHREADS_D4
8670 status = pthread_detach( &t );
8672 status = pthread_detach( t );
8675 #ifdef HAVE_LINUX_THREADS
8676 pthread_kill_other_threads_np();
8683 if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8685 ol_cv_pthread_lib_lpthreads=yes
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 ol_cv_pthread_lib_lpthreads=no
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8696 "configure"
8696 #include "confdefs.h"
8697 /* pthread test headers */
8698 #include <pthread.h>
8700 #define NULL (void*)0
8703 static void *task(p)
8706 return (void *) (p == NULL);
8710 int main(argc, argv)
8715 /* pthread test function */
8719 /* make sure pthread_create() isn't just a stub */
8720 #if HAVE_PTHREADS_D4
8721 status = pthread_create(&t, pthread_attr_default, task, NULL);
8723 status = pthread_create(&t, NULL, task, NULL);
8726 if( status ) exit( status );
8728 /* make sure pthread_detach() isn't just a stub */
8729 #if HAVE_PTHREADS_D4
8730 status = pthread_detach( &t );
8732 status = pthread_detach( t );
8735 #ifdef HAVE_LINUX_THREADS
8736 pthread_kill_other_threads_np();
8744 if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8746 ol_cv_pthread_lib_lpthreads=yes
8748 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8751 ol_cv_pthread_lib_lpthreads=no
8762 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8764 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8765 ol_link_pthreads="-lpthreads"
8766 ol_link_threads=posix
8771 if test $ol_link_threads != no ; then
8772 cat >> confdefs.h <<\EOF
8773 #define HAVE_PTHREADS 1
8777 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8779 save_CPPFLAGS="$CPPFLAGS"
8781 LIBS="$LTHREAD_LIBS $LIBS"
8783 for ac_func in sched_yield pthread_yield
8785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8786 echo "configure:8787: checking for $ac_func" >&5
8787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8790 cat > conftest.$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8793 /* System header to define __stub macros and hopefully few prototypes,
8794 which can conflict with char $ac_func(); below. */
8796 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8803 /* The GNU C library defines this for functions which it implements
8804 to always fail with ENOSYS. Some functions are actually named
8805 something starting with __ and the normal name is an alias. */
8806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8814 if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8816 eval "ac_cv_func_$ac_func=yes"
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8821 eval "ac_cv_func_$ac_func=no"
8826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8827 echo "$ac_t""yes" 1>&6
8828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8829 cat >> confdefs.h <<EOF
8830 #define $ac_tr_func 1
8834 echo "$ac_t""no" 1>&6
8839 if test $ac_cv_func_sched_yield = no -a \
8840 $ac_cv_func_pthread_yield = no ; then
8841 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8842 echo "configure:8843: checking for sched_yield in -lrt" >&5
8843 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
8844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8847 ac_save_LIBS="$LIBS"
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 /* We use char because int might match the return type of a gcc2
8854 builtin and then its argument prototype would still apply. */
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8863 eval "ac_cv_lib_$ac_lib_var=yes"
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8868 eval "ac_cv_lib_$ac_lib_var=no"
8871 LIBS="$ac_save_LIBS"
8874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8875 echo "$ac_t""yes" 1>&6
8876 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8877 cat >> confdefs.h <<\EOF
8878 #define HAVE_SCHED_YIELD 1
8881 ac_cv_func_sched_yield=yes
8883 echo "$ac_t""no" 1>&6
8884 ac_cv_func_sched_yield=no
8888 if test $ac_cv_func_sched_yield = no -a \
8889 $ac_cv_func_pthread_yield = no ; then
8890 for ac_func in thr_yield
8892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8893 echo "configure:8894: checking for $ac_func" >&5
8894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8895 echo $ac_n "(cached) $ac_c" 1>&6
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 /* System header to define __stub macros and hopefully few prototypes,
8901 which can conflict with char $ac_func(); below. */
8903 /* Override any gcc2 internal prototype to avoid an error. */
8904 /* We use char because int might match the return type of a gcc2
8905 builtin and then its argument prototype would still apply. */
8910 /* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8921 if { (eval echo configure:8922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923 eval "ac_cv_func_$ac_func=yes"
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 eval "ac_cv_func_$ac_func=no"
8933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8934 echo "$ac_t""yes" 1>&6
8935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8936 cat >> confdefs.h <<EOF
8937 #define $ac_tr_func 1
8941 echo "$ac_t""no" 1>&6
8946 if test $ac_cv_func_sched_yield = no -a \
8947 $ac_cv_func_pthread_yield = no -a \
8948 "$ac_cv_func_thr_yield" = no ; then
8949 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
8952 for ac_func in pthread_kill
8954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8955 echo "configure:8956: checking for $ac_func" >&5
8956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8959 cat > conftest.$ac_ext <<EOF
8960 #line 8961 "configure"
8961 #include "confdefs.h"
8962 /* System header to define __stub macros and hopefully few prototypes,
8963 which can conflict with char $ac_func(); below. */
8965 /* Override any gcc2 internal prototype to avoid an error. */
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8985 eval "ac_cv_func_$ac_func=yes"
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8990 eval "ac_cv_func_$ac_func=no"
8995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8996 echo "$ac_t""yes" 1>&6
8997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8998 cat >> confdefs.h <<EOF
8999 #define $ac_tr_func 1
9003 echo "$ac_t""no" 1>&6
9008 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9009 echo "configure:9010: checking for pthread_detach with <pthread.h>" >&5
9010 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9018 #include <pthread.h>
9020 #define NULL (void*)0
9024 pthread_detach(NULL);
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 ol_cv_func_pthread_detach=yes
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 ol_cv_func_pthread_detach=no
9040 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9042 if test $ol_cv_func_pthread_detach = no ; then
9043 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9046 cat >> confdefs.h <<\EOF
9047 #define HAVE_PTHREAD_DETACH 1
9052 pthread_setconcurrency \
9053 pthread_getconcurrency \
9054 thr_setconcurrency \
9055 thr_getconcurrency \
9058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9059 echo "configure:9060: checking for $ac_func" >&5
9060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9061 echo $ac_n "(cached) $ac_c" 1>&6
9063 cat > conftest.$ac_ext <<EOF
9064 #line 9065 "configure"
9065 #include "confdefs.h"
9066 /* System header to define __stub macros and hopefully few prototypes,
9067 which can conflict with char $ac_func(); below. */
9069 /* Override any gcc2 internal prototype to avoid an error. */
9070 /* We use char because int might match the return type of a gcc2
9071 builtin and then its argument prototype would still apply. */
9076 /* The GNU C library defines this for functions which it implements
9077 to always fail with ENOSYS. Some functions are actually named
9078 something starting with __ and the normal name is an alias. */
9079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9087 if { (eval echo configure:9088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9089 eval "ac_cv_func_$ac_func=yes"
9091 echo "configure: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9094 eval "ac_cv_func_$ac_func=no"
9099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9100 echo "$ac_t""yes" 1>&6
9101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9102 cat >> confdefs.h <<EOF
9103 #define $ac_tr_func 1
9107 echo "$ac_t""no" 1>&6
9113 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9114 echo "configure:9115: checking for pthread_kill_other_threads_np" >&5
9115 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9118 cat > conftest.$ac_ext <<EOF
9119 #line 9120 "configure"
9120 #include "confdefs.h"
9121 /* System header to define __stub macros and hopefully few prototypes,
9122 which can conflict with char pthread_kill_other_threads_np(); below. */
9124 /* Override any gcc2 internal prototype to avoid an error. */
9125 /* We use char because int might match the return type of a gcc2
9126 builtin and then its argument prototype would still apply. */
9127 char pthread_kill_other_threads_np();
9131 /* The GNU C library defines this for functions which it implements
9132 to always fail with ENOSYS. Some functions are actually named
9133 something starting with __ and the normal name is an alias. */
9134 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9137 pthread_kill_other_threads_np();
9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9144 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9154 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9155 echo "$ac_t""yes" 1>&6
9158 echo "$ac_t""no" 1>&6
9161 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9162 echo "configure:9163: checking for LinuxThreads implementation" >&5
9163 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9166 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9169 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9174 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9175 echo "configure:9176: checking for LinuxThreads consistency" >&5
9176 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9180 if test $ol_cv_header_linux_threads = yes -a \
9181 $ol_cv_sys_linux_threads = yes; then
9182 ol_cv_linux_threads=yes
9183 elif test $ol_cv_header_linux_threads = no -a \
9184 $ol_cv_sys_linux_threads = no; then
9185 ol_cv_linux_threads=no
9187 ol_cv_linux_threads=error
9192 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9195 if test $ol_cv_linux_threads = error; then
9196 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9199 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9200 echo "configure:9201: checking if pthread_create() works" >&5
9201 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9205 if test "$cross_compiling" = yes; then
9206 ol_cv_pthread_create_works=yes
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9211 /* pthread test headers */
9212 #include <pthread.h>
9214 #define NULL (void*)0
9217 static void *task(p)
9220 return (void *) (p == NULL);
9224 int main(argc, argv)
9229 /* pthread test function */
9233 /* make sure pthread_create() isn't just a stub */
9234 #if HAVE_PTHREADS_D4
9235 status = pthread_create(&t, pthread_attr_default, task, NULL);
9237 status = pthread_create(&t, NULL, task, NULL);
9240 if( status ) exit( status );
9242 /* make sure pthread_detach() isn't just a stub */
9243 #if HAVE_PTHREADS_D4
9244 status = pthread_detach( &t );
9246 status = pthread_detach( t );
9249 #ifdef HAVE_LINUX_THREADS
9250 pthread_kill_other_threads_np();
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9260 ol_cv_pthread_create_works=yes
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 ol_cv_pthread_create_works=no
9272 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9274 if test $ol_cv_pthread_create_works = no ; then
9275 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9278 if test $ol_with_yielding_select = auto ; then
9279 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9280 echo "configure:9281: checking if select yields when using pthreads" >&5
9281 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9285 if test "$cross_compiling" = yes; then
9286 ol_cv_pthread_select_yields=cross
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9292 #include <sys/types.h>
9293 #include <sys/time.h>
9295 #include <pthread.h>
9297 #define NULL (void*) 0
9300 static int fildes[2];
9302 static void *task(p)
9314 FD_SET(fildes[0], &rfds);
9316 /* we're not interested in any fds */
9317 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9324 exit(0); /* if we exit here, the select blocked the whole process */
9327 int main(argc, argv)
9333 /* create a pipe to select */
9334 if(pipe(&fildes[0])) {
9339 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9340 (void) pthread_setconcurrency(2);
9342 #ifdef HAVE_THR_SETCONCURRENCY
9343 /* Set Solaris LWP concurrency to 2 */
9344 thr_setconcurrency(2);
9348 #if HAVE_PTHREADS_D4
9349 pthread_create(&t, pthread_attr_default, task, NULL);
9351 pthread_create(&t, NULL, task, NULL);
9354 #if HAVE_SCHED_YIELD
9355 sched_yield(); /* make sure task runs first */
9357 #ifdef HAVE_PTHREAD_YIELD
9358 pthread_yield(); /* make sure task runs first */
9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9367 ol_cv_pthread_select_yields=no
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9372 ol_cv_pthread_select_yields=yes
9379 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9381 if test $ol_cv_pthread_select_yields = cross ; then
9382 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9385 if test $ol_cv_pthread_select_yields = yes ; then
9386 ol_with_yielding_select=yes
9390 CPPFLAGS="$save_CPPFLAGS"
9393 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9397 if test $ol_with_threads = posix ; then
9398 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9402 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9403 -o $ol_with_threads = mach ; then
9405 for ac_hdr in mach/cthreads.h
9407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9409 echo "configure:9410: checking for $ac_hdr" >&5
9410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9419 { (eval echo configure:9420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9421 if test -z "$ac_err"; then
9423 eval "ac_cv_header_$ac_safe=yes"
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 eval "ac_cv_header_$ac_safe=no"
9433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9434 echo "$ac_t""yes" 1>&6
9435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9436 cat >> confdefs.h <<EOF
9437 #define $ac_tr_hdr 1
9441 echo "$ac_t""no" 1>&6
9445 if test $ac_cv_header_mach_cthreads_h = yes ; then
9446 ol_with_threads=found
9448 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9449 echo "configure:9450: checking for cthread_fork" >&5
9450 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9453 cat > conftest.$ac_ext <<EOF
9454 #line 9455 "configure"
9455 #include "confdefs.h"
9456 /* System header to define __stub macros and hopefully few prototypes,
9457 which can conflict with char cthread_fork(); below. */
9459 /* Override any gcc2 internal prototype to avoid an error. */
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9462 char cthread_fork();
9466 /* The GNU C library defines this for functions which it implements
9467 to always fail with ENOSYS. Some functions are actually named
9468 something starting with __ and the normal name is an alias. */
9469 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9479 eval "ac_cv_func_cthread_fork=yes"
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9484 eval "ac_cv_func_cthread_fork=no"
9489 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9490 echo "$ac_t""yes" 1>&6
9493 echo "$ac_t""no" 1>&6
9497 if test $ol_link_threads = no ; then
9498 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9499 echo "configure:9500: checking for cthread_fork with -all_load" >&5
9500 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9505 LIBS="-all_load $LIBS"
9506 cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <mach/cthreads.h>
9512 cthread_fork((void *)0, (void *)0);
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 ol_cv_cthread_all_load=yes
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 ol_cv_cthread_all_load=no
9530 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9532 if test $ol_cv_cthread_all_load = yes ; then
9533 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9534 ol_link_threads=mach
9538 if test $ol_link_threads != no ; then
9539 : check for cthread specific functionality here
9540 cat >> confdefs.h <<\EOF
9541 #define HAVE_MACH_CTHREADS 1
9545 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9549 if test $ol_with_threads = mach ; then
9550 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9554 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9555 -o $ol_with_threads = pth ; then
9559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9561 echo "configure:9562: checking for $ac_hdr" >&5
9562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9571 { (eval echo configure:9572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9573 if test -z "$ac_err"; then
9575 eval "ac_cv_header_$ac_safe=yes"
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9581 eval "ac_cv_header_$ac_safe=no"
9585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9586 echo "$ac_t""yes" 1>&6
9587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9588 cat >> confdefs.h <<EOF
9589 #define $ac_tr_hdr 1
9593 echo "$ac_t""no" 1>&6
9598 if test $ac_cv_header_pth_h = yes ; then
9599 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
9600 echo "configure:9601: checking for pth_version in -lpth" >&5
9601 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-%__p_%'`
9602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9605 ac_save_LIBS="$LIBS"
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 /* Override any gcc2 internal prototype to avoid an error. */
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9619 if { (eval echo configure:9620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9621 eval "ac_cv_lib_$ac_lib_var=yes"
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9626 eval "ac_cv_lib_$ac_lib_var=no"
9629 LIBS="$ac_save_LIBS"
9632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9633 echo "$ac_t""yes" 1>&6
9636 echo "$ac_t""no" 1>&6
9641 if test $have_pth = yes ; then
9642 cat >> confdefs.h <<\EOF
9643 #define HAVE_GNU_PTH 1
9646 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
9649 if test $ol_with_yielding_select = auto ; then
9650 ol_with_yielding_select=yes
9656 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9657 -o $ol_with_threads = lwp ; then
9659 for ac_hdr in thread.h synch.h
9661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_hdr" >&5
9664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9673 { (eval echo configure:9674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9675 if test -z "$ac_err"; then
9677 eval "ac_cv_header_$ac_safe=yes"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 eval "ac_cv_header_$ac_safe=no"
9687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9690 cat >> confdefs.h <<EOF
9691 #define $ac_tr_hdr 1
9695 echo "$ac_t""no" 1>&6
9699 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9700 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9701 echo "configure:9702: checking for thr_create in -lthread" >&5
9702 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
9703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9706 ac_save_LIBS="$LIBS"
9707 LIBS="-lthread $LIBS"
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722 eval "ac_cv_lib_$ac_lib_var=yes"
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 eval "ac_cv_lib_$ac_lib_var=no"
9730 LIBS="$ac_save_LIBS"
9733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9734 echo "$ac_t""yes" 1>&6
9737 echo "$ac_t""no" 1>&6
9742 if test $have_thr = yes ; then
9743 cat >> confdefs.h <<\EOF
9747 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9750 if test $ol_with_yielding_select = auto ; then
9751 ol_with_yielding_select=yes
9755 thr_setconcurrency \
9756 thr_getconcurrency \
9759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9760 echo "configure:9761: checking for $ac_func" >&5
9761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 /* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char $ac_func(); below. */
9770 /* Override any gcc2 internal prototype to avoid an error. */
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9790 eval "ac_cv_func_$ac_func=yes"
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9795 eval "ac_cv_func_$ac_func=no"
9800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9801 echo "$ac_t""yes" 1>&6
9802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9803 cat >> confdefs.h <<EOF
9804 #define $ac_tr_func 1
9808 echo "$ac_t""no" 1>&6
9815 for ac_hdr in lwp/lwp.h
9817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9819 echo "configure:9820: checking for $ac_hdr" >&5
9820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9829 { (eval echo configure:9830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9831 if test -z "$ac_err"; then
9833 eval "ac_cv_header_$ac_safe=yes"
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9839 eval "ac_cv_header_$ac_safe=no"
9843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9844 echo "$ac_t""yes" 1>&6
9845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9846 cat >> confdefs.h <<EOF
9847 #define $ac_tr_hdr 1
9851 echo "$ac_t""no" 1>&6
9855 if test $ac_cv_header_lwp_lwp_h = yes ; then
9856 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9857 echo "configure:9858: checking for lwp_create in -llwp" >&5
9858 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
9859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9862 ac_save_LIBS="$LIBS"
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* Override any gcc2 internal prototype to avoid an error. */
9868 /* We use char because int might match the return type of a gcc2
9869 builtin and then its argument prototype would still apply. */
9876 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9878 eval "ac_cv_lib_$ac_lib_var=yes"
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9883 eval "ac_cv_lib_$ac_lib_var=no"
9886 LIBS="$ac_save_LIBS"
9889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9890 echo "$ac_t""yes" 1>&6
9893 echo "$ac_t""no" 1>&6
9898 if test $have_lwp = yes ; then
9899 cat >> confdefs.h <<\EOF
9903 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9906 if test $ol_with_yielding_select = auto ; then
9907 ol_with_yielding_select=no
9913 if test $ol_with_yielding_select = yes ; then
9914 cat >> confdefs.h <<\EOF
9915 #define HAVE_YIELDING_SELECT 1
9920 if test $ol_with_threads = manual ; then
9923 echo "configure: warning: thread defines and link options must be set manually" 1>&2
9925 for ac_hdr in pthread.h sched.h
9927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9929 echo "configure:9930: checking for $ac_hdr" >&5
9930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9933 cat > conftest.$ac_ext <<EOF
9934 #line 9935 "configure"
9935 #include "confdefs.h"
9938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9939 { (eval echo configure:9940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9941 if test -z "$ac_err"; then
9943 eval "ac_cv_header_$ac_safe=yes"
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 eval "ac_cv_header_$ac_safe=no"
9953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_hdr 1
9961 echo "$ac_t""no" 1>&6
9965 for ac_func in sched_yield pthread_yield
9967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9968 echo "configure:9969: checking for $ac_func" >&5
9969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9972 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9975 /* System header to define __stub macros and hopefully few prototypes,
9976 which can conflict with char $ac_func(); below. */
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9985 /* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9998 eval "ac_cv_func_$ac_func=yes"
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10003 eval "ac_cv_func_$ac_func=no"
10008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10009 echo "$ac_t""yes" 1>&6
10010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10011 cat >> confdefs.h <<EOF
10012 #define $ac_tr_func 1
10016 echo "$ac_t""no" 1>&6
10021 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10022 echo "configure:10023: checking for LinuxThreads pthread.h" >&5
10023 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <pthread.h>
10031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10032 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10034 ol_cv_header_linux_threads=yes
10037 ol_cv_header_linux_threads=no
10044 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10045 if test $ol_cv_header_linux_threads = yes; then
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_LINUX_THREADS 1
10053 for ac_hdr in mach/cthreads.h
10055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10057 echo "configure:10058: checking for $ac_hdr" >&5
10058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10067 { (eval echo configure:10068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10069 if test -z "$ac_err"; then
10071 eval "ac_cv_header_$ac_safe=yes"
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10077 eval "ac_cv_header_$ac_safe=no"
10081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10082 echo "$ac_t""yes" 1>&6
10083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10084 cat >> confdefs.h <<EOF
10085 #define $ac_tr_hdr 1
10089 echo "$ac_t""no" 1>&6
10093 for ac_hdr in lwp/lwp.h
10095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10097 echo "configure:10098: checking for $ac_hdr" >&5
10098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10101 cat > conftest.$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10107 { (eval echo configure:10108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10109 if test -z "$ac_err"; then
10111 eval "ac_cv_header_$ac_safe=yes"
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10117 eval "ac_cv_header_$ac_safe=no"
10121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10124 cat >> confdefs.h <<EOF
10125 #define $ac_tr_hdr 1
10129 echo "$ac_t""no" 1>&6
10133 for ac_hdr in thread.h synch.h
10135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10137 echo "configure:10138: checking for $ac_hdr" >&5
10138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10147 { (eval echo configure:10148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10149 if test -z "$ac_err"; then
10151 eval "ac_cv_header_$ac_safe=yes"
10154 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10157 eval "ac_cv_header_$ac_safe=no"
10161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10162 echo "$ac_t""yes" 1>&6
10163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10164 cat >> confdefs.h <<EOF
10165 #define $ac_tr_hdr 1
10169 echo "$ac_t""no" 1>&6
10175 if test $ol_link_threads != no ; then
10176 cat >> confdefs.h <<\EOF
10177 #define REENTRANT 1
10180 cat >> confdefs.h <<\EOF
10181 #define _REENTRANT 1
10184 cat >> confdefs.h <<\EOF
10185 #define THREAD_SAFE 1
10188 cat >> confdefs.h <<\EOF
10189 #define _THREAD_SAFE 1
10192 cat >> confdefs.h <<\EOF
10193 #define THREADSAFE 1
10196 cat >> confdefs.h <<\EOF
10197 #define _THREADSAFE 1
10200 cat >> confdefs.h <<\EOF
10201 #define _SGI_MP_SOURCE 1
10205 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10206 echo "configure:10207: checking for thread specific errno" >&5
10207 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10219 if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 ol_cv_errno_thread_specific=yes
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 ol_cv_errno_thread_specific=no
10232 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10234 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10235 echo "configure:10236: checking for thread specific h_errno" >&5
10236 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10248 if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10250 ol_cv_h_errno_thread_specific=yes
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10255 ol_cv_h_errno_thread_specific=no
10261 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10263 if test $ol_cv_errno_thread_specific != yes \
10264 -o $ol_cv_h_errno_thread_specific != yes ; then
10265 LIBS="$LTHREAD_LIBS $LIBS"
10271 if test $ol_link_threads = no ; then
10272 if test $ol_with_threads = yes ; then
10273 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10276 if test $ol_with_threads = auto ; then
10277 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10281 cat >> confdefs.h <<\EOF
10282 #define NO_THREADS 1
10288 if test $ol_link_threads != no ; then
10289 cat >> confdefs.h <<\EOF
10290 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10297 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10298 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10299 echo "configure:10300: checking for DB2 library" >&5
10300 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10304 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
10305 echo "configure:10306: checking for db_appexit in -ldb" >&5
10306 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-%__p_%'`
10307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10310 ac_save_LIBS="$LIBS"
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 /* Override any gcc2 internal prototype to avoid an error. */
10316 /* We use char because int might match the return type of a gcc2
10317 builtin and then its argument prototype would still apply. */
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 eval "ac_cv_lib_$ac_lib_var=yes"
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 eval "ac_cv_lib_$ac_lib_var=no"
10334 LIBS="$ac_save_LIBS"
10337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10338 echo "$ac_t""yes" 1>&6
10341 echo "$ac_t""no" 1>&6
10349 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10355 echo "configure:10356: checking for $ac_hdr" >&5
10356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10365 { (eval echo configure:10366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10367 if test -z "$ac_err"; then
10369 eval "ac_cv_header_$ac_safe=yes"
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10375 eval "ac_cv_header_$ac_safe=no"
10379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10380 echo "$ac_t""yes" 1>&6
10381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10382 cat >> confdefs.h <<EOF
10383 #define $ac_tr_hdr 1
10387 echo "$ac_t""no" 1>&6
10391 if test $ac_cv_header_db_h = yes ; then
10392 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10393 echo "configure:10394: checking if db.h is DB2" >&5
10394 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10398 cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10403 /* this check could be improved */
10404 # ifdef DB_VERSION_MAJOR
10405 # if DB_VERSION_MAJOR == 2
10411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10412 egrep "__db_version_2" >/dev/null 2>&1; then
10414 ol_cv_header_db2=yes
10417 ol_cv_header_db2=no
10423 echo "$ac_t""$ol_cv_header_db2" 1>&6
10425 ol_cv_header_db2=no
10430 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10431 echo "configure:10432: checking for Berkeley DB2" >&5
10432 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10436 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10437 ol_cv_berkeley_db2=no
10439 ol_cv_berkeley_db2=yes
10444 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10445 if test $ol_cv_berkeley_db2 = yes ; then
10446 cat >> confdefs.h <<\EOF
10447 #define HAVE_BERKELEY_DB2 1
10453 if test $ol_cv_berkeley_db2 = yes ; then
10455 ol_with_ldbm_api=db2
10457 if test $ol_with_ldbm_type = hash ; then
10458 cat >> confdefs.h <<\EOF
10459 #define LDBM_USE_DBHASH 1
10463 cat >> confdefs.h <<\EOF
10464 #define LDBM_USE_DBBTREE 1
10469 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
10470 echo "configure:10471: checking for DB_THREAD support" >&5
10471 if eval "test \"`echo '$''{'ol_cv_berkeley_db2_db_thread'+set}'`\" = set"; then
10472 echo $ac_n "(cached) $ac_c" 1>&6
10476 if test $ol_cv_lib_db2 != yes ; then
10477 LIBS="$ol_cv_lib_db2"
10480 if test "$cross_compiling" = yes; then
10481 ol_cv_berkeley_db2_db_thread=cross
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10489 #define NULL ((void *)0)
10495 u_int32_t flags = DB_CREATE | DB_THREAD;
10497 memset( &env, '\0', sizeof(env) );
10499 rc = db_appinit( NULL, NULL, &env, flags );
10502 db_appexit( &env );
10508 if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10510 ol_cv_berkeley_db2_db_thread=yes
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10515 ol_cv_berkeley_db2_db_thread=no
10523 if test $ol_cv_berkeley_db2_db_thread != no ; then
10524 cat >> confdefs.h <<\EOF
10525 #define HAVE_BERKELEY_DB2_DB_THREAD 1
10532 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
10534 if test $ol_cv_lib_db2 != yes ; then
10535 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10541 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10542 if test $ol_cv_berkeley_db2_db_thread != no ; then
10545 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
10549 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10550 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10551 echo "configure:10552: checking for Berkeley DB library" >&5
10552 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
10553 echo $ac_n "(cached) $ac_c" 1>&6
10556 for ac_hdr in db1/db.h
10558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10560 echo "configure:10561: checking for $ac_hdr" >&5
10561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10562 echo $ac_n "(cached) $ac_c" 1>&6
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10570 { (eval echo configure:10571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10572 if test -z "$ac_err"; then
10574 eval "ac_cv_header_$ac_safe=yes"
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10580 eval "ac_cv_header_$ac_safe=no"
10584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10585 echo "$ac_t""yes" 1>&6
10586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10587 cat >> confdefs.h <<EOF
10588 #define $ac_tr_hdr 1
10592 echo "$ac_t""no" 1>&6
10597 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10598 echo "configure:10599: checking for dbopen" >&5
10599 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10605 /* System header to define __stub macros and hopefully few prototypes,
10606 which can conflict with char dbopen(); below. */
10607 #include <assert.h>
10608 /* Override any gcc2 internal prototype to avoid an error. */
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10615 /* The GNU C library defines this for functions which it implements
10616 to always fail with ENOSYS. Some functions are actually named
10617 something starting with __ and the normal name is an alias. */
10618 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10628 eval "ac_cv_func_dbopen=yes"
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 eval "ac_cv_func_dbopen=no"
10638 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10639 echo "$ac_t""yes" 1>&6
10642 echo "$ac_t""no" 1>&6
10644 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10645 echo "configure:10646: checking for dbopen in -ldb1" >&5
10646 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
10647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10648 echo $ac_n "(cached) $ac_c" 1>&6
10650 ac_save_LIBS="$LIBS"
10652 cat > conftest.$ac_ext <<EOF
10653 #line 10654 "configure"
10654 #include "confdefs.h"
10655 /* Override any gcc2 internal prototype to avoid an error. */
10656 /* We use char because int might match the return type of a gcc2
10657 builtin and then its argument prototype would still apply. */
10664 if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10666 eval "ac_cv_lib_$ac_lib_var=yes"
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10671 eval "ac_cv_lib_$ac_lib_var=no"
10674 LIBS="$ac_save_LIBS"
10677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10678 echo "$ac_t""yes" 1>&6
10681 echo "$ac_t""no" 1>&6
10683 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10684 echo "configure:10685: checking for dbopen in -ldb" >&5
10685 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
10686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10689 ac_save_LIBS="$LIBS"
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 /* Override any gcc2 internal prototype to avoid an error. */
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10703 if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10705 eval "ac_cv_lib_$ac_lib_var=yes"
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10710 eval "ac_cv_lib_$ac_lib_var=no"
10713 LIBS="$ac_save_LIBS"
10716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10717 echo "$ac_t""yes" 1>&6
10720 echo "$ac_t""no" 1>&6
10734 echo "$ac_t""$ol_cv_lib_db" 1>&6
10737 for ac_hdr in db_185.h
10739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10741 echo "configure:10742: checking for $ac_hdr" >&5
10742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10751 { (eval echo configure:10752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10753 if test -z "$ac_err"; then
10755 eval "ac_cv_header_$ac_safe=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_header_$ac_safe=no"
10765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10768 cat >> confdefs.h <<EOF
10769 #define $ac_tr_hdr 1
10773 echo "$ac_t""no" 1>&6
10777 if test "$ol_cv_header_db2" = yes ; then
10779 ol_cv_header_db=$ac_cv_header_db_185_h
10781 ol_cv_header_db=$ac_cv_header_db_h
10786 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10787 echo "configure:10788: checking for Berkeley DB" >&5
10788 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10792 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10793 ol_cv_berkeley_db=no
10795 ol_cv_berkeley_db=yes
10800 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10801 if test $ol_cv_berkeley_db = yes ; then
10802 cat >> confdefs.h <<\EOF
10803 #define HAVE_BERKELEY_DB 1
10809 if test $ol_cv_berkeley_db = yes ; then
10811 ol_with_ldbm_api=db
10813 if test $ol_with_ldbm_type = hash ; then
10814 cat >> confdefs.h <<\EOF
10815 #define LDBM_USE_DBHASH 1
10819 cat >> confdefs.h <<\EOF
10820 #define LDBM_USE_DBBTREE 1
10825 if test $ol_cv_lib_db != yes ; then
10826 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10831 if test $ol_with_ldbm_api = manual ; then
10834 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10836 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10840 echo "configure:10841: checking for $ac_hdr" >&5
10841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10850 { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10852 if test -z "$ac_err"; then
10854 eval "ac_cv_header_$ac_safe=yes"
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10860 eval "ac_cv_header_$ac_safe=no"
10864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10867 cat >> confdefs.h <<EOF
10868 #define $ac_tr_hdr 1
10872 echo "$ac_t""no" 1>&6
10878 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10879 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10880 ol_with_ldbm_api=none
10883 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10884 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10885 echo "configure:10886: checking for MDBM library" >&5
10886 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10890 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10891 echo "configure:10892: checking for mdbm_set_chain" >&5
10892 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
10893 echo $ac_n "(cached) $ac_c" 1>&6
10895 cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 /* System header to define __stub macros and hopefully few prototypes,
10899 which can conflict with char mdbm_set_chain(); below. */
10900 #include <assert.h>
10901 /* Override any gcc2 internal prototype to avoid an error. */
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10904 char mdbm_set_chain();
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 eval "ac_cv_func_mdbm_set_chain=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_func_mdbm_set_chain=no"
10931 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10932 echo "$ac_t""yes" 1>&6
10935 echo "$ac_t""no" 1>&6
10937 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10938 echo "configure:10939: checking for mdbm_set_chain in -lmdbm" >&5
10939 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
10940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
10943 ac_save_LIBS="$LIBS"
10944 LIBS="-lmdbm $LIBS"
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 /* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10951 char mdbm_set_chain();
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10959 eval "ac_cv_lib_$ac_lib_var=yes"
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10964 eval "ac_cv_lib_$ac_lib_var=no"
10967 LIBS="$ac_save_LIBS"
10970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10972 ol_cv_lib_mdbm=-lmdbm
10974 echo "$ac_t""no" 1>&6
10985 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
10988 for ac_hdr in mdbm.h
10990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10992 echo "configure:10993: checking for $ac_hdr" >&5
10993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
11001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11002 { (eval echo configure:11003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11004 if test -z "$ac_err"; then
11006 eval "ac_cv_header_$ac_safe=yes"
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11012 eval "ac_cv_header_$ac_safe=no"
11016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11017 echo "$ac_t""yes" 1>&6
11018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11019 cat >> confdefs.h <<EOF
11020 #define $ac_tr_hdr 1
11024 echo "$ac_t""no" 1>&6
11028 echo $ac_n "checking for db""... $ac_c" 1>&6
11029 echo "configure:11030: checking for db" >&5
11030 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
11031 echo $ac_n "(cached) $ac_c" 1>&6
11034 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11042 echo "$ac_t""$ol_cv_mdbm" 1>&6
11043 if test $ol_cv_mdbm = yes ; then
11044 cat >> confdefs.h <<\EOF
11045 #define HAVE_MDBM 1
11051 if test $ol_cv_mdbm = yes ; then
11053 ol_with_ldbm_api=mdbm
11054 if test $ol_cv_lib_mdbm != yes ; then
11055 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11060 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11061 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11062 echo "configure:11063: checking for GDBM library" >&5
11063 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
11064 echo $ac_n "(cached) $ac_c" 1>&6
11067 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11068 echo "configure:11069: checking for gdbm_open" >&5
11069 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11075 /* System header to define __stub macros and hopefully few prototypes,
11076 which can conflict with char gdbm_open(); below. */
11077 #include <assert.h>
11078 /* Override any gcc2 internal prototype to avoid an error. */
11079 /* We use char because int might match the return type of a gcc2
11080 builtin and then its argument prototype would still apply. */
11085 /* The GNU C library defines this for functions which it implements
11086 to always fail with ENOSYS. Some functions are actually named
11087 something starting with __ and the normal name is an alias. */
11088 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11096 if { (eval echo configure:11097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11098 eval "ac_cv_func_gdbm_open=yes"
11100 echo "configure: failed program was:" >&5
11101 cat conftest.$ac_ext >&5
11103 eval "ac_cv_func_gdbm_open=no"
11108 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11109 echo "$ac_t""yes" 1>&6
11112 echo "$ac_t""no" 1>&6
11114 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11115 echo "configure:11116: checking for gdbm_open in -lgdbm" >&5
11116 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
11117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11120 ac_save_LIBS="$LIBS"
11121 LIBS="-lgdbm $LIBS"
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11134 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11136 eval "ac_cv_lib_$ac_lib_var=yes"
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11141 eval "ac_cv_lib_$ac_lib_var=no"
11144 LIBS="$ac_save_LIBS"
11147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11148 echo "$ac_t""yes" 1>&6
11149 ol_cv_lib_gdbm=-lgdbm
11151 echo "$ac_t""no" 1>&6
11162 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11165 for ac_hdr in gdbm.h
11167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11169 echo "configure:11170: checking for $ac_hdr" >&5
11170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11171 echo $ac_n "(cached) $ac_c" 1>&6
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11179 { (eval echo configure:11180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11181 if test -z "$ac_err"; then
11183 eval "ac_cv_header_$ac_safe=yes"
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11189 eval "ac_cv_header_$ac_safe=no"
11193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11194 echo "$ac_t""yes" 1>&6
11195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11196 cat >> confdefs.h <<EOF
11197 #define $ac_tr_hdr 1
11201 echo "$ac_t""no" 1>&6
11205 echo $ac_n "checking for db""... $ac_c" 1>&6
11206 echo "configure:11207: checking for db" >&5
11207 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11211 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11219 echo "$ac_t""$ol_cv_gdbm" 1>&6
11220 if test $ol_cv_gdbm = yes ; then
11221 cat >> confdefs.h <<\EOF
11222 #define HAVE_GDBM 1
11228 if test $ol_cv_gdbm = yes ; then
11230 ol_with_ldbm_api=gdbm
11232 if test $ol_cv_lib_gdbm != yes ; then
11233 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11238 if test $ol_with_ldbm_api = auto ; then
11239 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11240 elif test $ol_with_ldbm_api = ndbm ; then
11241 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11242 echo "configure:11243: checking for NDBM library" >&5
11243 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11247 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11248 echo "configure:11249: checking for dbm_open" >&5
11249 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
11250 echo $ac_n "(cached) $ac_c" 1>&6
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11255 /* System header to define __stub macros and hopefully few prototypes,
11256 which can conflict with char dbm_open(); below. */
11257 #include <assert.h>
11258 /* Override any gcc2 internal prototype to avoid an error. */
11259 /* We use char because int might match the return type of a gcc2
11260 builtin and then its argument prototype would still apply. */
11265 /* The GNU C library defines this for functions which it implements
11266 to always fail with ENOSYS. Some functions are actually named
11267 something starting with __ and the normal name is an alias. */
11268 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11276 if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11278 eval "ac_cv_func_dbm_open=yes"
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11283 eval "ac_cv_func_dbm_open=no"
11288 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11289 echo "$ac_t""yes" 1>&6
11292 echo "$ac_t""no" 1>&6
11294 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11295 echo "configure:11296: checking for dbm_open in -lndbm" >&5
11296 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
11297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11300 ac_save_LIBS="$LIBS"
11301 LIBS="-lndbm $LIBS"
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11316 eval "ac_cv_lib_$ac_lib_var=yes"
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11321 eval "ac_cv_lib_$ac_lib_var=no"
11324 LIBS="$ac_save_LIBS"
11327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11329 ol_cv_lib_ndbm=-lndbm
11331 echo "$ac_t""no" 1>&6
11333 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11334 echo "configure:11335: checking for dbm_open in -ldbm" >&5
11335 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11337 echo $ac_n "(cached) $ac_c" 1>&6
11339 ac_save_LIBS="$LIBS"
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 /* Override any gcc2 internal prototype to avoid an error. */
11345 /* We use char because int might match the return type of a gcc2
11346 builtin and then its argument prototype would still apply. */
11353 if { (eval echo configure:11354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11355 eval "ac_cv_lib_$ac_lib_var=yes"
11357 echo "configure: failed program was:" >&5
11358 cat conftest.$ac_ext >&5
11360 eval "ac_cv_lib_$ac_lib_var=no"
11363 LIBS="$ac_save_LIBS"
11366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11367 echo "$ac_t""yes" 1>&6
11368 ol_cv_lib_ndbm=-ldbm
11370 echo "$ac_t""no" 1>&6
11383 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11386 for ac_hdr in ndbm.h
11388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11390 echo "configure:11391: checking for $ac_hdr" >&5
11391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11392 echo $ac_n "(cached) $ac_c" 1>&6
11394 cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11400 { (eval echo configure:11401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11402 if test -z "$ac_err"; then
11404 eval "ac_cv_header_$ac_safe=yes"
11407 echo "configure: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11410 eval "ac_cv_header_$ac_safe=no"
11414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11415 echo "$ac_t""yes" 1>&6
11416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11417 cat >> confdefs.h <<EOF
11418 #define $ac_tr_hdr 1
11422 echo "$ac_t""no" 1>&6
11426 echo $ac_n "checking for db""... $ac_c" 1>&6
11427 echo "configure:11428: checking for db" >&5
11428 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11432 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11440 echo "$ac_t""$ol_cv_ndbm" 1>&6
11441 if test $ol_cv_ndbm = yes ; then
11442 cat >> confdefs.h <<\EOF
11443 #define HAVE_NDBM 1
11449 if test $ol_cv_ndbm = yes ; then
11451 ol_with_ldbm_api=ndbm
11453 if test $ol_cv_lib_ndbm != yes ; then
11454 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11459 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11460 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11461 if test $ol_enable_ldbm = yes ; then
11462 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11465 echo "configure: warning: disabling LDBM" 1>&2
11469 if test $ol_enable_wrappers != no ; then
11470 for ac_hdr in tcpd.h
11472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11474 echo "configure:11475: checking for $ac_hdr" >&5
11475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11478 cat > conftest.$ac_ext <<EOF
11479 #line 11480 "configure"
11480 #include "confdefs.h"
11483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11484 { (eval echo configure:11485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11486 if test -z "$ac_err"; then
11488 eval "ac_cv_header_$ac_safe=yes"
11491 echo "configure: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11494 eval "ac_cv_header_$ac_safe=no"
11498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11499 echo "$ac_t""yes" 1>&6
11500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11501 cat >> confdefs.h <<EOF
11502 #define $ac_tr_hdr 1
11506 echo "$ac_t""no" 1>&6
11511 if test $ac_cv_header_tcpd_h != yes ; then
11514 cat > conftest.$ac_ext <<EOF
11515 #line 11516 "configure"
11516 #include "confdefs.h"
11518 int allow_severity = 0;
11519 int deny_severity = 0;
11525 if { (eval echo configure:11526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11537 if test $have_wrappers = yes ; then
11538 cat >> confdefs.h <<\EOF
11539 #define HAVE_TCPD 1
11544 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11545 echo "configure:11546: checking for main in -lnsl" >&5
11546 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
11547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11550 ac_save_LIBS="$LIBS"
11552 cat > conftest.$ac_ext <<EOF
11553 #line 11554 "configure"
11554 #include "confdefs.h"
11560 if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11562 eval "ac_cv_lib_$ac_lib_var=yes"
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 eval "ac_cv_lib_$ac_lib_var=no"
11570 LIBS="$ac_save_LIBS"
11573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11574 echo "$ac_t""yes" 1>&6
11575 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11577 cat >> confdefs.h <<EOF
11578 #define $ac_tr_lib 1
11584 echo "$ac_t""no" 1>&6
11588 echo "configure: warning: could not find -lwrap" 1>&2
11589 if test $ol_enable_wrappers = yes ; then
11590 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11593 echo "configure: warning: disabling wrappers support" 1>&2
11594 ol_enable_wrappers=no
11599 if test $ol_enable_syslog != no ; then
11600 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11601 echo "configure:11602: checking for openlog" >&5
11602 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
11603 echo $ac_n "(cached) $ac_c" 1>&6
11605 cat > conftest.$ac_ext <<EOF
11606 #line 11607 "configure"
11607 #include "confdefs.h"
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char openlog(); below. */
11610 #include <assert.h>
11611 /* Override any gcc2 internal prototype to avoid an error. */
11612 /* We use char because int might match the return type of a gcc2
11613 builtin and then its argument prototype would still apply. */
11618 /* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621 #if defined (__stub_openlog) || defined (__stub___openlog)
11629 if { (eval echo configure:11630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11631 eval "ac_cv_func_openlog=yes"
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11636 eval "ac_cv_func_openlog=no"
11641 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11642 echo "$ac_t""yes" 1>&6
11645 echo "$ac_t""no" 1>&6
11648 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11649 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11651 ol_enable_syslog=$ac_cv_func_openlog
11654 if test $ol_enable_dmalloc != no ; then
11655 for ac_hdr in dmalloc.h
11657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11659 echo "configure:11660: checking for $ac_hdr" >&5
11660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
11663 cat > conftest.$ac_ext <<EOF
11664 #line 11665 "configure"
11665 #include "confdefs.h"
11668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11669 { (eval echo configure:11670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11671 if test -z "$ac_err"; then
11673 eval "ac_cv_header_$ac_safe=yes"
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11679 eval "ac_cv_header_$ac_safe=no"
11683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11684 echo "$ac_t""yes" 1>&6
11685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11686 cat >> confdefs.h <<EOF
11687 #define $ac_tr_hdr 1
11691 echo "$ac_t""no" 1>&6
11695 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11696 echo "configure:11697: checking for dmalloc_shutdown in -ldmalloc" >&5
11697 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
11698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11701 ac_save_LIBS="$LIBS"
11702 LIBS="-ldmalloc $LIBS"
11703 cat > conftest.$ac_ext <<EOF
11704 #line 11705 "configure"
11705 #include "confdefs.h"
11706 /* Override any gcc2 internal prototype to avoid an error. */
11707 /* We use char because int might match the return type of a gcc2
11708 builtin and then its argument prototype would still apply. */
11709 char dmalloc_shutdown();
11715 if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11717 eval "ac_cv_lib_$ac_lib_var=yes"
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11722 eval "ac_cv_lib_$ac_lib_var=no"
11725 LIBS="$ac_save_LIBS"
11728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11729 echo "$ac_t""yes" 1>&6
11730 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11731 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11732 cat >> confdefs.h <<EOF
11733 #define $ac_tr_lib 1
11736 LIBS="-ldmalloc $LIBS"
11739 echo "$ac_t""no" 1>&6
11744 if test $ol_enable_tcl != no ; then
11745 for ac_hdr in tcl.h
11747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11749 echo "configure:11750: checking for $ac_hdr" >&5
11750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11753 cat > conftest.$ac_ext <<EOF
11754 #line 11755 "configure"
11755 #include "confdefs.h"
11758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11759 { (eval echo configure:11760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11761 if test -z "$ac_err"; then
11763 eval "ac_cv_header_$ac_safe=yes"
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11769 eval "ac_cv_header_$ac_safe=no"
11773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11774 echo "$ac_t""yes" 1>&6
11775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11776 cat >> confdefs.h <<EOF
11777 #define $ac_tr_hdr 1
11781 echo "$ac_t""no" 1>&6
11786 if test $ac_cv_header_tcl_h != yes ; then
11789 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11790 echo "configure:11791: checking for main in -ltcl" >&5
11791 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
11792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11795 ac_save_LIBS="$LIBS"
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11807 eval "ac_cv_lib_$ac_lib_var=yes"
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11812 eval "ac_cv_lib_$ac_lib_var=no"
11815 LIBS="$ac_save_LIBS"
11818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11819 echo "$ac_t""yes" 1>&6
11820 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11822 echo "$ac_t""no" 1>&6
11827 if test $have_tcl != yes; then
11828 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11829 echo "configure:11830: checking for main in -ltcl7.6" >&5
11830 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
11831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11834 ac_save_LIBS="$LIBS"
11835 LIBS="-ltcl7.6 $LIBS"
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 eval "ac_cv_lib_$ac_lib_var=yes"
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11851 eval "ac_cv_lib_$ac_lib_var=no"
11854 LIBS="$ac_save_LIBS"
11857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11858 echo "$ac_t""yes" 1>&6
11859 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11861 echo "$ac_t""no" 1>&6
11867 if test $have_tcl != yes; then
11868 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11869 echo "configure:11870: checking for main in -ltcl8.0" >&5
11870 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
11871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11872 echo $ac_n "(cached) $ac_c" 1>&6
11874 ac_save_LIBS="$LIBS"
11875 LIBS="-ltcl8.0 $LIBS"
11876 cat > conftest.$ac_ext <<EOF
11877 #line 11878 "configure"
11878 #include "confdefs.h"
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11886 eval "ac_cv_lib_$ac_lib_var=yes"
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11891 eval "ac_cv_lib_$ac_lib_var=no"
11894 LIBS="$ac_save_LIBS"
11897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11898 echo "$ac_t""yes" 1>&6
11899 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11901 echo "$ac_t""no" 1>&6
11908 if test $have_tcl != yes ; then
11909 echo "configure: warning: could not find -ltcl" 1>&2
11910 if test $ol_enable_tcl = yes ; then
11911 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11919 for ac_hdr in termcap.h ncurses.h
11921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11923 echo "configure:11924: checking for $ac_hdr" >&5
11924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11925 echo $ac_n "(cached) $ac_c" 1>&6
11927 cat > conftest.$ac_ext <<EOF
11928 #line 11929 "configure"
11929 #include "confdefs.h"
11932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11933 { (eval echo configure:11934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11935 if test -z "$ac_err"; then
11937 eval "ac_cv_header_$ac_safe=yes"
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11943 eval "ac_cv_header_$ac_safe=no"
11947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11948 echo "$ac_t""yes" 1>&6
11949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11950 cat >> confdefs.h <<EOF
11951 #define $ac_tr_hdr 1
11955 echo "$ac_t""no" 1>&6
11960 if test $ol_link_termcap = no ; then
11961 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
11962 echo "configure:11963: checking for tputs in -ltermcap" >&5
11963 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
11964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11967 ac_save_LIBS="$LIBS"
11968 LIBS="-ltermcap $LIBS"
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 /* Override any gcc2 internal prototype to avoid an error. */
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11983 eval "ac_cv_lib_$ac_lib_var=yes"
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11988 eval "ac_cv_lib_$ac_lib_var=no"
11991 LIBS="$ac_save_LIBS"
11994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11995 echo "$ac_t""yes" 1>&6
11998 echo "$ac_t""no" 1>&6
12002 if test $have_termcap = yes ; then
12003 cat >> confdefs.h <<\EOF
12004 #define HAVE_TERMCAP 1
12007 ol_link_termcap=yes
12008 TERMCAP_LIBS=-ltermcap
12012 if test $ol_link_termcap = no ; then
12013 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12014 echo "configure:12015: checking for initscr in -lncurses" >&5
12015 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
12016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12019 ac_save_LIBS="$LIBS"
12020 LIBS="-lncurses $LIBS"
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12024 /* Override any gcc2 internal prototype to avoid an error. */
12025 /* We use char because int might match the return type of a gcc2
12026 builtin and then its argument prototype would still apply. */
12033 if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12035 eval "ac_cv_lib_$ac_lib_var=yes"
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12040 eval "ac_cv_lib_$ac_lib_var=no"
12043 LIBS="$ac_save_LIBS"
12046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12047 echo "$ac_t""yes" 1>&6
12050 echo "$ac_t""no" 1>&6
12054 if test $have_ncurses = yes ; then
12055 cat >> confdefs.h <<\EOF
12056 #define HAVE_NCURSES 1
12059 ol_link_termcap=yes
12060 TERMCAP_LIBS=-lncurses
12064 if test $ol_link_termcap = no ; then
12065 cat >> confdefs.h <<\EOF
12066 #define NO_TERMCAP 1
12073 if test $ol_with_cyrus_sasl != no ; then
12074 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12075 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12076 echo "configure:12077: checking for sasl.h" >&5
12077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12086 { (eval echo configure:12087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12088 if test -z "$ac_err"; then
12090 eval "ac_cv_header_$ac_safe=yes"
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12096 eval "ac_cv_header_$ac_safe=no"
12100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12101 echo "$ac_t""yes" 1>&6
12104 echo "$ac_t""no" 1>&6
12108 if test $ac_cv_header_sasl_h = yes ; then
12109 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12110 echo "configure:12111: checking for sasl_client_init in -lsasl" >&5
12111 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
12112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12113 echo $ac_n "(cached) $ac_c" 1>&6
12115 ac_save_LIBS="$LIBS"
12116 LIBS="-lsasl $LIBS"
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12120 /* Override any gcc2 internal prototype to avoid an error. */
12121 /* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12123 char sasl_client_init();
12129 if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12131 eval "ac_cv_lib_$ac_lib_var=yes"
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12136 eval "ac_cv_lib_$ac_lib_var=no"
12139 LIBS="$ac_save_LIBS"
12142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12144 have_cyrus_sasl=yes
12146 echo "$ac_t""no" 1>&6
12151 if test $have_cyrus_sasl != no ; then
12153 cat >> confdefs.h <<\EOF
12154 #define HAVE_CYRUS_SASL 1
12161 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12162 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12167 if test $ol_with_fetch != no ; then
12169 LIBS="-lfetch -lcom_err $LIBS"
12170 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12171 echo "configure:12172: checking fetch(3) library" >&5
12172 if eval "test \"`echo '$''{'ol_cv_lib_fetch'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12176 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12180 #include <sys/param.h>
12184 struct url *u = fetchParseURL("file:///");
12187 if { (eval echo configure:12188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12189 ol_cv_lib_fetch=yes
12191 echo "configure: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12199 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12201 if test $ol_cv_lib_fetch != no ; then
12202 ol_link_fetch="-lfetch -lcom_err"
12203 cat >> confdefs.h <<\EOF
12204 #define HAVE_FETCH 1
12210 if test $ol_cv_lib_fetch != no ; then
12211 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12212 ol_link_fetch=freebsd
12214 elif test $ol_with_fetch != auto ; then
12215 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12219 ol_link_readline=no
12220 if test $ol_with_readline != no ; then
12221 for ac_hdr in readline/readline.h readline/history.h
12223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12225 echo "configure:12226: checking for $ac_hdr" >&5
12226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12227 echo $ac_n "(cached) $ac_c" 1>&6
12229 cat > conftest.$ac_ext <<EOF
12230 #line 12231 "configure"
12231 #include "confdefs.h"
12234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12235 { (eval echo configure:12236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12237 if test -z "$ac_err"; then
12239 eval "ac_cv_header_$ac_safe=yes"
12242 echo "configure: failed program was:" >&5
12243 cat conftest.$ac_ext >&5
12245 eval "ac_cv_header_$ac_safe=no"
12249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12250 echo "$ac_t""yes" 1>&6
12251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12252 cat >> confdefs.h <<EOF
12253 #define $ac_tr_hdr 1
12257 echo "$ac_t""no" 1>&6
12262 if test $ac_cv_header_readline_readline_h = yes ; then
12264 LIBS="$TERMCAP_LIBS $LIBS"
12265 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12266 echo "configure:12267: checking for readline in -lreadline" >&5
12267 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
12268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12271 ac_save_LIBS="$LIBS"
12272 LIBS="-lreadline $LIBS"
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276 /* Override any gcc2 internal prototype to avoid an error. */
12277 /* We use char because int might match the return type of a gcc2
12278 builtin and then its argument prototype would still apply. */
12285 if { (eval echo configure:12286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12287 eval "ac_cv_lib_$ac_lib_var=yes"
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12292 eval "ac_cv_lib_$ac_lib_var=no"
12295 LIBS="$ac_save_LIBS"
12298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12299 echo "$ac_t""yes" 1>&6
12302 echo "$ac_t""no" 1>&6
12308 if test $have_readline = yes ; then
12309 ol_with_readline=found
12310 ol_link_readline=yes
12312 READLINE_LIBS="-lreadline"
12317 if test $ol_link_readline = yes ; then
12318 cat >> confdefs.h <<\EOF
12319 #define HAVE_READLINE 1
12325 if test $ol_enable_crypt != no ; then
12326 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12327 echo "configure:12328: checking for crypt" >&5
12328 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
12329 echo $ac_n "(cached) $ac_c" 1>&6
12331 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12334 /* System header to define __stub macros and hopefully few prototypes,
12335 which can conflict with char crypt(); below. */
12336 #include <assert.h>
12337 /* Override any gcc2 internal prototype to avoid an error. */
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12344 /* The GNU C library defines this for functions which it implements
12345 to always fail with ENOSYS. Some functions are actually named
12346 something starting with __ and the normal name is an alias. */
12347 #if defined (__stub_crypt) || defined (__stub___crypt)
12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12357 eval "ac_cv_func_crypt=yes"
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12362 eval "ac_cv_func_crypt=no"
12367 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12368 echo "$ac_t""yes" 1>&6
12371 echo "$ac_t""no" 1>&6
12373 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12374 echo "configure:12375: checking for crypt in -lcrypt" >&5
12375 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12377 echo $ac_n "(cached) $ac_c" 1>&6
12379 ac_save_LIBS="$LIBS"
12380 LIBS="-lcrypt $LIBS"
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12395 eval "ac_cv_lib_$ac_lib_var=yes"
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12400 eval "ac_cv_lib_$ac_lib_var=no"
12403 LIBS="$ac_save_LIBS"
12406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12407 echo "$ac_t""yes" 1>&6
12408 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12411 echo "$ac_t""no" 1>&6
12418 if test $have_crypt = yes ; then
12419 cat >> confdefs.h <<\EOF
12420 #define HAVE_CRYPT 1
12424 echo "configure: warning: could not find crypt" 1>&2
12425 if test $ol_enable_crypt = yes ; then
12426 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12429 echo "configure: warning: disabling crypt support" 1>&2
12434 if test $ol_enable_proctitle != no ; then
12435 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12436 echo "configure:12437: checking for setproctitle" >&5
12437 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12440 cat > conftest.$ac_ext <<EOF
12441 #line 12442 "configure"
12442 #include "confdefs.h"
12443 /* System header to define __stub macros and hopefully few prototypes,
12444 which can conflict with char setproctitle(); below. */
12445 #include <assert.h>
12446 /* Override any gcc2 internal prototype to avoid an error. */
12447 /* We use char because int might match the return type of a gcc2
12448 builtin and then its argument prototype would still apply. */
12449 char setproctitle();
12453 /* The GNU C library defines this for functions which it implements
12454 to always fail with ENOSYS. Some functions are actually named
12455 something starting with __ and the normal name is an alias. */
12456 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12464 if { (eval echo configure:12465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12466 eval "ac_cv_func_setproctitle=yes"
12468 echo "configure: failed program was:" >&5
12469 cat conftest.$ac_ext >&5
12471 eval "ac_cv_func_setproctitle=no"
12476 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12477 echo "$ac_t""yes" 1>&6
12478 have_setproctitle=yes
12480 echo "$ac_t""no" 1>&6
12482 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12483 echo "configure:12484: checking for setproctitle in -lutil" >&5
12484 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
12485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12486 echo $ac_n "(cached) $ac_c" 1>&6
12488 ac_save_LIBS="$LIBS"
12489 LIBS="-lutil $LIBS"
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 /* Override any gcc2 internal prototype to avoid an error. */
12494 /* We use char because int might match the return type of a gcc2
12495 builtin and then its argument prototype would still apply. */
12496 char setproctitle();
12502 if { (eval echo configure:12503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12504 eval "ac_cv_lib_$ac_lib_var=yes"
12506 echo "configure: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12509 eval "ac_cv_lib_$ac_lib_var=no"
12512 LIBS="$ac_save_LIBS"
12515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12516 echo "$ac_t""yes" 1>&6
12517 have_setproctitle=yes
12518 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12520 echo "$ac_t""no" 1>&6
12521 have_setproctitle=no
12522 LIBOBJS="$LIBOBJS setproctitle.o"
12528 if test $have_setproctitle = yes ; then
12529 cat >> confdefs.h <<\EOF
12530 #define HAVE_SETPROCTITLE 1
12536 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12537 echo "configure:12538: checking for uid_t in sys/types.h" >&5
12538 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12541 cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 #include <sys/types.h>
12546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12547 egrep "uid_t" >/dev/null 2>&1; then
12549 ac_cv_type_uid_t=yes
12552 ac_cv_type_uid_t=no
12558 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12559 if test $ac_cv_type_uid_t = no; then
12560 cat >> confdefs.h <<\EOF
12564 cat >> confdefs.h <<\EOF
12570 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12571 echo "configure:12572: checking type of array argument to getgroups" >&5
12572 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
12573 echo $ac_n "(cached) $ac_c" 1>&6
12575 if test "$cross_compiling" = yes; then
12576 ac_cv_type_getgroups=cross
12578 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure"
12580 #include "confdefs.h"
12582 /* Thanks to Mike Rendell for this test. */
12583 #include <sys/types.h>
12586 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12589 gid_t gidset[NGID];
12591 union { gid_t gval; long lval; } val;
12594 for (i = 0; i < NGID; i++)
12595 gidset[i] = val.gval;
12596 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12598 /* Exit non-zero if getgroups seems to require an array of ints. This
12599 happens when gid_t is short but getgroups modifies an array of ints. */
12600 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12604 if { (eval echo configure:12605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12606 ac_cv_type_getgroups=gid_t
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 ac_cv_type_getgroups=int
12616 if test $ac_cv_type_getgroups = cross; then
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 #include <unistd.h>
12622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12623 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12625 ac_cv_type_getgroups=gid_t
12628 ac_cv_type_getgroups=int
12635 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12636 cat >> confdefs.h <<EOF
12637 #define GETGROUPS_T $ac_cv_type_getgroups
12640 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12641 echo "configure:12642: checking for ANSI C header files" >&5
12642 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12643 echo $ac_n "(cached) $ac_c" 1>&6
12645 cat > conftest.$ac_ext <<EOF
12646 #line 12647 "configure"
12647 #include "confdefs.h"
12648 #include <stdlib.h>
12649 #include <stdarg.h>
12650 #include <string.h>
12653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12654 { (eval echo configure:12655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12656 if test -z "$ac_err"; then
12658 ac_cv_header_stdc=yes
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12664 ac_cv_header_stdc=no
12668 if test $ac_cv_header_stdc = yes; then
12669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12670 cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure"
12672 #include "confdefs.h"
12673 #include <string.h>
12675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12676 egrep "memchr" >/dev/null 2>&1; then
12680 ac_cv_header_stdc=no
12686 if test $ac_cv_header_stdc = yes; then
12687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12688 cat > conftest.$ac_ext <<EOF
12689 #line 12690 "configure"
12690 #include "confdefs.h"
12691 #include <stdlib.h>
12693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12694 egrep "free" >/dev/null 2>&1; then
12698 ac_cv_header_stdc=no
12704 if test $ac_cv_header_stdc = yes; then
12705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12706 if test "$cross_compiling" = yes; then
12709 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12713 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12714 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12716 int main () { int i; for (i = 0; i < 256; i++)
12717 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12721 if { (eval echo configure:12722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12725 echo "configure: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12728 ac_cv_header_stdc=no
12736 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12737 if test $ac_cv_header_stdc = yes; then
12738 cat >> confdefs.h <<\EOF
12739 #define STDC_HEADERS 1
12744 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12745 echo "configure:12746: checking for mode_t" >&5
12746 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12747 echo $ac_n "(cached) $ac_c" 1>&6
12749 cat > conftest.$ac_ext <<EOF
12750 #line 12751 "configure"
12751 #include "confdefs.h"
12752 #include <sys/types.h>
12754 #include <stdlib.h>
12755 #include <stddef.h>
12758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12759 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12761 ac_cv_type_mode_t=yes
12764 ac_cv_type_mode_t=no
12769 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12770 if test $ac_cv_type_mode_t = no; then
12771 cat >> confdefs.h <<\EOF
12777 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12778 echo "configure:12779: checking for off_t" >&5
12779 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12780 echo $ac_n "(cached) $ac_c" 1>&6
12782 cat > conftest.$ac_ext <<EOF
12783 #line 12784 "configure"
12784 #include "confdefs.h"
12785 #include <sys/types.h>
12787 #include <stdlib.h>
12788 #include <stddef.h>
12791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12792 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12794 ac_cv_type_off_t=yes
12797 ac_cv_type_off_t=no
12802 echo "$ac_t""$ac_cv_type_off_t" 1>&6
12803 if test $ac_cv_type_off_t = no; then
12804 cat >> confdefs.h <<\EOF
12810 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12811 echo "configure:12812: checking for pid_t" >&5
12812 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <sys/types.h>
12820 #include <stdlib.h>
12821 #include <stddef.h>
12824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12825 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12827 ac_cv_type_pid_t=yes
12830 ac_cv_type_pid_t=no
12835 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12836 if test $ac_cv_type_pid_t = no; then
12837 cat >> confdefs.h <<\EOF
12843 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12844 echo "configure:12845: checking for ptrdiff_t" >&5
12845 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
12846 echo $ac_n "(cached) $ac_c" 1>&6
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <stddef.h>
12856 if { (eval echo configure:12857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12858 am_cv_type_ptrdiff_t=yes
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12863 am_cv_type_ptrdiff_t=no
12868 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12869 if test $am_cv_type_ptrdiff_t = yes; then
12870 cat >> confdefs.h <<\EOF
12871 #define HAVE_PTRDIFF_T 1
12876 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12877 echo "configure:12878: checking return type of signal handlers" >&5
12878 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12881 cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 #include <sys/types.h>
12885 #include <signal.h>
12890 extern "C" void (*signal (int, void (*)(int)))(int);
12892 void (*signal ()) ();
12899 if { (eval echo configure:12900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12901 ac_cv_type_signal=void
12903 echo "configure: failed program was:" >&5
12904 cat conftest.$ac_ext >&5
12906 ac_cv_type_signal=int
12911 echo "$ac_t""$ac_cv_type_signal" 1>&6
12912 cat >> confdefs.h <<EOF
12913 #define RETSIGTYPE $ac_cv_type_signal
12917 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12918 echo "configure:12919: checking for sig_atomic_t" >&5
12919 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
12920 echo $ac_n "(cached) $ac_c" 1>&6
12922 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12925 #include <signal.h>
12927 sig_atomic_t atomic;
12930 if { (eval echo configure:12931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12932 ol_cv_type_sig_atomic_t=yes
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12937 ol_cv_type_sig_atomic_t=no
12942 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12943 if test $ol_cv_type_sig_atomic_t = no; then
12944 cat >> confdefs.h <<\EOF
12945 #define sig_atomic_t int
12950 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12951 echo "configure:12952: checking for size_t" >&5
12952 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12958 #include <sys/types.h>
12960 #include <stdlib.h>
12961 #include <stddef.h>
12964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12965 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12967 ac_cv_type_size_t=yes
12970 ac_cv_type_size_t=no
12975 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12976 if test $ac_cv_type_size_t = no; then
12977 cat >> confdefs.h <<\EOF
12978 #define size_t unsigned
12983 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
12984 echo "configure:12985: checking for socklen_t" >&5
12985 if eval "test \"`echo '$''{'ol_cv_type_socklen_t'+set}'`\" = set"; then
12986 echo $ac_n "(cached) $ac_c" 1>&6
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12992 #ifdef HAVE_SYS_TYPES_H
12993 #include <sys/types.h>
12995 #ifdef HAVE_SYS_SOCKET_H
12996 #include <sys/socket.h>
13003 if { (eval echo configure:13004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13005 ol_cv_type_socklen_t=yes
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13010 ol_cv_type_socklen_t=no
13015 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13016 if test $ol_cv_type_socklen_t = no; then
13017 cat >> confdefs.h <<\EOF
13018 #define socklen_t int
13023 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
13024 echo "configure:13025: checking for st_blksize in struct stat" >&5
13025 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13031 #include <sys/types.h>
13032 #include <sys/stat.h>
13034 struct stat s; s.st_blksize;
13037 if { (eval echo configure:13038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13039 ac_cv_struct_st_blksize=yes
13041 echo "configure: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13044 ac_cv_struct_st_blksize=no
13049 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
13050 if test $ac_cv_struct_st_blksize = yes; then
13051 cat >> confdefs.h <<\EOF
13052 #define HAVE_ST_BLKSIZE 1
13057 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13058 echo "configure:13059: checking whether time.h and sys/time.h may both be included" >&5
13059 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
13060 echo $ac_n "(cached) $ac_c" 1>&6
13062 cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 #include <sys/types.h>
13066 #include <sys/time.h>
13072 if { (eval echo configure:13073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13074 ac_cv_header_time=yes
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13079 ac_cv_header_time=no
13084 echo "$ac_t""$ac_cv_header_time" 1>&6
13085 if test $ac_cv_header_time = yes; then
13086 cat >> confdefs.h <<\EOF
13087 #define TIME_WITH_SYS_TIME 1
13092 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13093 echo "configure:13094: checking whether struct tm is in sys/time.h or time.h" >&5
13094 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13097 cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure"
13099 #include "confdefs.h"
13100 #include <sys/types.h>
13103 struct tm *tp; tp->tm_sec;
13106 if { (eval echo configure:13107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13108 ac_cv_struct_tm=time.h
13110 echo "configure: failed program was:" >&5
13111 cat conftest.$ac_ext >&5
13113 ac_cv_struct_tm=sys/time.h
13118 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13119 if test $ac_cv_struct_tm = sys/time.h; then
13120 cat >> confdefs.h <<\EOF
13121 #define TM_IN_SYS_TIME 1
13126 # test for pw_gecos in struct passwd
13127 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13128 echo "configure:13129: checking struct passwd for pw_gecos" >&5
13129 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
13130 echo $ac_n "(cached) $ac_c" 1>&6
13133 cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13140 pwd.pw_gecos = pwd.pw_name;
13144 if { (eval echo configure:13145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13146 ol_cv_struct_passwd_pw_gecos=yes
13148 echo "configure: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13151 ol_cv_struct_passwd_pw_gecos=no
13156 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13157 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13158 cat >> confdefs.h <<\EOF
13159 #define HAVE_PW_GECOS 1
13164 # test for pw_passwd in struct passwd
13165 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13166 echo "configure:13167: checking struct passwd for pw_passwd" >&5
13167 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_passwd'+set}'`\" = set"; then
13168 echo $ac_n "(cached) $ac_c" 1>&6
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13178 pwd.pw_passwd = pwd.pw_name;
13182 if { (eval echo configure:13183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13184 ol_cv_struct_passwd_pw_passwd=yes
13186 echo "configure: failed program was:" >&5
13187 cat conftest.$ac_ext >&5
13189 ol_cv_struct_passwd_pw_passwd=no
13194 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13195 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13196 cat >> confdefs.h <<\EOF
13197 #define HAVE_PW_PASSWD 1
13203 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13204 echo "configure:13205: checking if toupper() requires islower()" >&5
13205 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13209 if test "$cross_compiling" = yes; then
13210 ol_cv_c_upper_lower=safe
13212 cat > conftest.$ac_ext <<EOF
13213 #line 13214 "configure"
13214 #include "confdefs.h"
13219 if ('C' == toupper('C'))
13225 if { (eval echo configure:13226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13227 ol_cv_c_upper_lower=no
13229 echo "configure: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13232 ol_cv_c_upper_lower=yes
13239 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13240 if test $ol_cv_c_upper_lower != no ; then
13241 cat >> confdefs.h <<\EOF
13242 #define C_UPPER_LOWER 1
13247 echo $ac_n "checking for working const""... $ac_c" 1>&6
13248 echo "configure:13249: checking for working const" >&5
13249 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13250 echo $ac_n "(cached) $ac_c" 1>&6
13252 cat > conftest.$ac_ext <<EOF
13253 #line 13254 "configure"
13254 #include "confdefs.h"
13258 /* Ultrix mips cc rejects this. */
13259 typedef int charset[2]; const charset x;
13260 /* SunOS 4.1.1 cc rejects this. */
13261 char const *const *ccp;
13263 /* NEC SVR4.0.2 mips cc rejects this. */
13264 struct point {int x, y;};
13265 static struct point const zero = {0,0};
13266 /* AIX XL C 1.02.0.0 rejects this.
13267 It does not let you subtract one const X* pointer from another in an arm
13268 of an if-expression whose if-part is not a constant expression */
13269 const char *g = "string";
13270 ccp = &g + (g ? g-g : 0);
13271 /* HPUX 7.0 cc rejects these. */
13274 ccp = (char const *const *) p;
13275 { /* SCO 3.2v4 cc rejects this. */
13277 char const *s = 0 ? (char *) 0 : (char const *) 0;
13281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13282 int x[] = {25, 17};
13283 const int *foo = &x[0];
13286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13287 typedef const int *iptr;
13291 { /* AIX XL C 1.02.0.0 rejects this saying
13292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13293 struct s { int j; const int *ap[3]; };
13294 struct s *b; b->j = 5;
13296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13297 const int foo = 10;
13302 if { (eval echo configure:13303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13314 echo "$ac_t""$ac_cv_c_const" 1>&6
13315 if test $ac_cv_c_const = no; then
13316 cat >> confdefs.h <<\EOF
13322 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13323 echo "configure:13324: checking if compiler understands volatile" >&5
13324 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
13325 echo $ac_n "(cached) $ac_c" 1>&6
13327 cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13332 volatile int a; int * volatile b = x ? &y : &z;
13333 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13337 if { (eval echo configure:13338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13339 ol_cv_c_volatile=yes
13341 echo "configure: failed program was:" >&5
13342 cat conftest.$ac_ext >&5
13344 ol_cv_c_volatile=no
13349 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13350 if test $ol_cv_c_volatile = yes; then
13353 cat >> confdefs.h <<\EOF
13360 if test $cross_compiling = yes ; then
13361 cat >> confdefs.h <<\EOF
13362 #define CROSS_COMPILING 1
13366 cat >> confdefs.h <<\EOF
13367 #define LBER_INT_T long
13370 cat >> confdefs.h <<\EOF
13371 #define LBER_TAG_T long
13374 cat >> confdefs.h <<\EOF
13375 #define LBER_SOCKET_T int
13380 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13381 echo "configure:13382: checking whether byte ordering is bigendian" >&5
13382 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13383 echo $ac_n "(cached) $ac_c" 1>&6
13385 ac_cv_c_bigendian=unknown
13386 # See if sys/param.h defines the BYTE_ORDER macro.
13387 cat > conftest.$ac_ext <<EOF
13388 #line 13389 "configure"
13389 #include "confdefs.h"
13390 #include <sys/types.h>
13391 #include <sys/param.h>
13394 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13395 bogus endian macros
13399 if { (eval echo configure:13400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13401 # It does; now see whether it defined to BIG_ENDIAN or not.
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 #include <sys/types.h>
13406 #include <sys/param.h>
13409 #if BYTE_ORDER != BIG_ENDIAN
13414 if { (eval echo configure:13415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13416 ac_cv_c_bigendian=yes
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13421 ac_cv_c_bigendian=no
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13429 if test $ac_cv_c_bigendian = unknown; then
13430 if test "$cross_compiling" = yes; then
13431 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13433 cat > conftest.$ac_ext <<EOF
13434 #line 13435 "configure"
13435 #include "confdefs.h"
13437 /* Are we little or big endian? From Harbison&Steele. */
13441 char c[sizeof (long)];
13444 exit (u.c[sizeof (long) - 1] == 1);
13447 if { (eval echo configure:13448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13449 ac_cv_c_bigendian=no
13451 echo "configure: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13454 ac_cv_c_bigendian=yes
13462 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13463 if test $ac_cv_c_bigendian = yes; then
13464 cat >> confdefs.h <<\EOF
13465 #define WORDS_BIGENDIAN 1
13470 echo $ac_n "checking size of short""... $ac_c" 1>&6
13471 echo "configure:13472: checking size of short" >&5
13472 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13473 echo $ac_n "(cached) $ac_c" 1>&6
13475 if test "$cross_compiling" = yes; then
13476 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13478 cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13484 FILE *f=fopen("conftestval", "w");
13486 fprintf(f, "%d\n", sizeof(short));
13490 if { (eval echo configure:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13492 ac_cv_sizeof_short=`cat conftestval`
13494 echo "configure: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
13497 ac_cv_sizeof_short=0
13503 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13504 cat >> confdefs.h <<EOF
13505 #define SIZEOF_SHORT $ac_cv_sizeof_short
13509 echo $ac_n "checking size of int""... $ac_c" 1>&6
13510 echo "configure:13511: checking size of int" >&5
13511 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13512 echo $ac_n "(cached) $ac_c" 1>&6
13514 if test "$cross_compiling" = yes; then
13515 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13517 cat > conftest.$ac_ext <<EOF
13518 #line 13519 "configure"
13519 #include "confdefs.h"
13523 FILE *f=fopen("conftestval", "w");
13525 fprintf(f, "%d\n", sizeof(int));
13529 if { (eval echo configure:13530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13531 ac_cv_sizeof_int=`cat conftestval`
13533 echo "configure: failed program was:" >&5
13534 cat conftest.$ac_ext >&5
13542 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13543 cat >> confdefs.h <<EOF
13544 #define SIZEOF_INT $ac_cv_sizeof_int
13548 echo $ac_n "checking size of long""... $ac_c" 1>&6
13549 echo "configure:13550: checking size of long" >&5
13550 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13551 echo $ac_n "(cached) $ac_c" 1>&6
13553 if test "$cross_compiling" = yes; then
13554 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13556 cat > conftest.$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13562 FILE *f=fopen("conftestval", "w");
13564 fprintf(f, "%d\n", sizeof(long));
13568 if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13570 ac_cv_sizeof_long=`cat conftestval`
13572 echo "configure: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13575 ac_cv_sizeof_long=0
13581 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13582 cat >> confdefs.h <<EOF
13583 #define SIZEOF_LONG $ac_cv_sizeof_long
13588 if test "$ac_cv_sizeof_int" -lt 4 ; then
13589 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13591 cat >> confdefs.h <<\EOF
13592 #define LBER_INT_T long
13595 cat >> confdefs.h <<\EOF
13596 #define LBER_TAG_T long
13599 cat >> confdefs.h <<\EOF
13600 #define LBER_SOCKET_T int
13604 cat >> confdefs.h <<\EOF
13605 #define LBER_INT_T int
13608 cat >> confdefs.h <<\EOF
13609 #define LBER_TAG_T long
13612 cat >> confdefs.h <<\EOF
13613 #define LBER_SOCKET_T int
13619 cat >> confdefs.h <<\EOF
13620 #define LBER_LEN_T long
13624 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13625 echo "configure:13626: checking for 8-bit clean memcmp" >&5
13626 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
13627 echo $ac_n "(cached) $ac_c" 1>&6
13629 if test "$cross_compiling" = yes; then
13630 ac_cv_func_memcmp_clean=no
13632 cat > conftest.$ac_ext <<EOF
13633 #line 13634 "configure"
13634 #include "confdefs.h"
13638 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13639 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13643 if { (eval echo configure:13644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13645 ac_cv_func_memcmp_clean=yes
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13650 ac_cv_func_memcmp_clean=no
13657 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13658 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13660 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13661 echo "configure:13662: checking for strftime" >&5
13662 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
13663 echo $ac_n "(cached) $ac_c" 1>&6
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 /* System header to define __stub macros and hopefully few prototypes,
13669 which can conflict with char strftime(); below. */
13670 #include <assert.h>
13671 /* Override any gcc2 internal prototype to avoid an error. */
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13678 /* The GNU C library defines this for functions which it implements
13679 to always fail with ENOSYS. Some functions are actually named
13680 something starting with __ and the normal name is an alias. */
13681 #if defined (__stub_strftime) || defined (__stub___strftime)
13689 if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13691 eval "ac_cv_func_strftime=yes"
13693 echo "configure: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13696 eval "ac_cv_func_strftime=no"
13701 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13702 echo "$ac_t""yes" 1>&6
13703 cat >> confdefs.h <<\EOF
13704 #define HAVE_STRFTIME 1
13708 echo "$ac_t""no" 1>&6
13709 # strftime is in -lintl on SCO UNIX.
13710 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13711 echo "configure:13712: checking for strftime in -lintl" >&5
13712 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
13713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13716 ac_save_LIBS="$LIBS"
13717 LIBS="-lintl $LIBS"
13718 cat > conftest.$ac_ext <<EOF
13719 #line 13720 "configure"
13720 #include "confdefs.h"
13721 /* Override any gcc2 internal prototype to avoid an error. */
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13730 if { (eval echo configure:13731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13732 eval "ac_cv_lib_$ac_lib_var=yes"
13734 echo "configure: failed program was:" >&5
13735 cat conftest.$ac_ext >&5
13737 eval "ac_cv_lib_$ac_lib_var=no"
13740 LIBS="$ac_save_LIBS"
13743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13744 echo "$ac_t""yes" 1>&6
13745 cat >> confdefs.h <<\EOF
13746 #define HAVE_STRFTIME 1
13749 LIBS="-lintl $LIBS"
13751 echo "$ac_t""no" 1>&6
13757 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13758 echo "configure:13759: checking for inet_aton()" >&5
13759 if eval "test \"`echo '$''{'ol_cv_func_inet_aton'+set}'`\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
13762 cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13766 #ifdef HAVE_SYS_TYPES_H
13767 # include <sys/types.h>
13769 #ifdef HAVE_SYS_SOCKET_H
13770 # include <sys/socket.h>
13771 # ifdef HAVE_SYS_SELECT_H
13772 # include <sys/select.h>
13774 # include <netinet/in.h>
13775 # ifdef HAVE_ARPA_INET_H
13776 # include <arpa/inet.h>
13782 int rc = inet_aton( "255.255.255.255", &in );
13785 if { (eval echo configure:13786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13787 ol_cv_func_inet_aton=yes
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13792 ol_cv_func_inet_aton=no
13797 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13798 if test $ol_cv_func_inet_aton != no; then
13799 cat >> confdefs.h <<\EOF
13800 #define HAVE_INET_ATON 1
13806 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13807 echo "configure:13808: checking for vprintf" >&5
13808 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13811 cat > conftest.$ac_ext <<EOF
13812 #line 13813 "configure"
13813 #include "confdefs.h"
13814 /* System header to define __stub macros and hopefully few prototypes,
13815 which can conflict with char vprintf(); below. */
13816 #include <assert.h>
13817 /* Override any gcc2 internal prototype to avoid an error. */
13818 /* We use char because int might match the return type of a gcc2
13819 builtin and then its argument prototype would still apply. */
13824 /* The GNU C library defines this for functions which it implements
13825 to always fail with ENOSYS. Some functions are actually named
13826 something starting with __ and the normal name is an alias. */
13827 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13837 eval "ac_cv_func_vprintf=yes"
13839 echo "configure: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13842 eval "ac_cv_func_vprintf=no"
13847 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13848 echo "$ac_t""yes" 1>&6
13849 cat >> confdefs.h <<\EOF
13850 #define HAVE_VPRINTF 1
13854 echo "$ac_t""no" 1>&6
13857 if test "$ac_cv_func_vprintf" != yes; then
13858 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13859 echo "configure:13860: checking for _doprnt" >&5
13860 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13863 cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13866 /* System header to define __stub macros and hopefully few prototypes,
13867 which can conflict with char _doprnt(); below. */
13868 #include <assert.h>
13869 /* Override any gcc2 internal prototype to avoid an error. */
13870 /* We use char because int might match the return type of a gcc2
13871 builtin and then its argument prototype would still apply. */
13876 /* The GNU C library defines this for functions which it implements
13877 to always fail with ENOSYS. Some functions are actually named
13878 something starting with __ and the normal name is an alias. */
13879 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13887 if { (eval echo configure:13888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13889 eval "ac_cv_func__doprnt=yes"
13891 echo "configure: failed program was:" >&5
13892 cat conftest.$ac_ext >&5
13894 eval "ac_cv_func__doprnt=no"
13899 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13901 cat >> confdefs.h <<\EOF
13902 #define HAVE_DOPRNT 1
13906 echo "$ac_t""no" 1>&6
13912 if test $ac_cv_func_vprintf = yes ; then
13913 for ac_func in vsnprintf vsprintf
13915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13916 echo "configure:13917: checking for $ac_func" >&5
13917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13918 echo $ac_n "(cached) $ac_c" 1>&6
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13923 /* System header to define __stub macros and hopefully few prototypes,
13924 which can conflict with char $ac_func(); below. */
13925 #include <assert.h>
13926 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13933 /* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13946 eval "ac_cv_func_$ac_func=yes"
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13951 eval "ac_cv_func_$ac_func=no"
13956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13957 echo "$ac_t""yes" 1>&6
13958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13959 cat >> confdefs.h <<EOF
13960 #define $ac_tr_func 1
13964 echo "$ac_t""no" 1>&6
14020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14021 echo "configure:14022: checking for $ac_func" >&5
14022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14023 echo $ac_n "(cached) $ac_c" 1>&6
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 /* System header to define __stub macros and hopefully few prototypes,
14029 which can conflict with char $ac_func(); below. */
14030 #include <assert.h>
14031 /* Override any gcc2 internal prototype to avoid an error. */
14032 /* We use char because int might match the return type of a gcc2
14033 builtin and then its argument prototype would still apply. */
14038 /* The GNU C library defines this for functions which it implements
14039 to always fail with ENOSYS. Some functions are actually named
14040 something starting with __ and the normal name is an alias. */
14041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14049 if { (eval echo configure:14050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14051 eval "ac_cv_func_$ac_func=yes"
14053 echo "configure: failed program was:" >&5
14054 cat conftest.$ac_ext >&5
14056 eval "ac_cv_func_$ac_func=no"
14061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14062 echo "$ac_t""yes" 1>&6
14063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14064 cat >> confdefs.h <<EOF
14065 #define $ac_tr_func 1
14069 echo "$ac_t""no" 1>&6
14074 for ac_func in getopt tempnam
14076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14077 echo "configure:14078: checking for $ac_func" >&5
14078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14081 cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14084 /* System header to define __stub macros and hopefully few prototypes,
14085 which can conflict with char $ac_func(); below. */
14086 #include <assert.h>
14087 /* Override any gcc2 internal prototype to avoid an error. */
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14094 /* The GNU C library defines this for functions which it implements
14095 to always fail with ENOSYS. Some functions are actually named
14096 something starting with __ and the normal name is an alias. */
14097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14105 if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14107 eval "ac_cv_func_$ac_func=yes"
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14112 eval "ac_cv_func_$ac_func=no"
14117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14120 cat >> confdefs.h <<EOF
14121 #define $ac_tr_func 1
14125 echo "$ac_t""no" 1>&6
14126 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14132 # Check Configuration
14133 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14134 echo "configure:14135: checking declaration of sys_errlist" >&5
14135 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14139 cat > conftest.$ac_ext <<EOF
14140 #line 14141 "configure"
14141 #include "confdefs.h"
14144 #include <sys/types.h>
14147 char *c = (char *) *sys_errlist
14150 if { (eval echo configure:14151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14152 ol_cv_dcl_sys_errlist=yes
14153 ol_cv_have_sys_errlist=yes
14155 echo "configure: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14158 ol_cv_dcl_sys_errlist=no
14163 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14165 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14166 if test $ol_cv_dcl_sys_errlist = no ; then
14167 cat >> confdefs.h <<\EOF
14168 #define DECL_SYS_ERRLIST 1
14172 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14173 echo "configure:14174: checking existence of sys_errlist" >&5
14174 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14183 char *c = (char *) *sys_errlist
14186 if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14188 ol_cv_have_sys_errlist=yes
14190 echo "configure: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14193 ol_cv_have_sys_errlist=no
14198 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14200 if test $ol_cv_have_sys_errlist = yes ; then
14201 cat >> confdefs.h <<\EOF
14202 #define HAVE_SYS_ERRLIST 1
14209 if test "$ol_enable_debug" != no ; then
14210 cat >> confdefs.h <<\EOF
14211 #define LDAP_DEBUG 1
14215 if test "$ol_enable_syslog" = yes ; then
14216 cat >> confdefs.h <<\EOF
14217 #define LDAP_SYSLOG 1
14221 if test "$ol_enable_libui" = yes ; then
14222 cat >> confdefs.h <<\EOF
14223 #define LDAP_LIBUI 1
14227 if test "$ol_enable_cache" = no ; then
14228 cat >> confdefs.h <<\EOF
14229 #define LDAP_NOCACHE 1
14233 if test "$ol_enable_dns" != no ; then
14234 cat >> confdefs.h <<\EOF
14235 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14239 if test "$ol_enable_proctitle" != no ; then
14240 cat >> confdefs.h <<\EOF
14241 #define LDAP_PROCTITLE 1
14245 if test "$ol_enable_referrals" != no ; then
14246 cat >> confdefs.h <<\EOF
14247 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14251 if test "$ol_enable_cldap" != no ; then
14252 cat >> confdefs.h <<\EOF
14253 #define LDAP_CONNECTIONLESS 1
14258 if test "$ol_enable_crypt" != no ; then
14259 cat >> confdefs.h <<\EOF
14260 #define SLAPD_CRYPT 1
14264 if test "$ol_enable_cleartext" != no ; then
14265 cat >> confdefs.h <<\EOF
14266 #define SLAPD_CLEARTEXT 1
14270 if test "$ol_enable_multimaster" != no ; then
14271 cat >> confdefs.h <<\EOF
14272 #define SLAPD_MULTIMASTER 1
14276 if test "$ol_enable_phonetic" != no ; then
14277 cat >> confdefs.h <<\EOF
14278 #define SLAPD_PHONETIC 1
14282 if test "$ol_enable_rlookups" != no ; then
14283 cat >> confdefs.h <<\EOF
14284 #define SLAPD_RLOOKUPS 1
14288 if test "$ol_enable_aci" != no ; then
14289 cat >> confdefs.h <<\EOF
14290 #define SLAPD_ACI_ENABLED 1
14294 if test "$ol_enable_discreteaci" != no ; then
14295 cat >> confdefs.h <<\EOF
14296 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14301 if test "$ol_link_modules" != no ; then
14302 cat >> confdefs.h <<\EOF
14303 #define SLAPD_MODULES 1
14307 MODULES_LIBS=-lltdl
14308 SLAPD_MODULES_LDFLAGS="-dlopen self"
14311 if test "$ol_link_bdb2" != no ; then
14312 cat >> confdefs.h <<\EOF
14313 #define SLAPD_BDB2 1
14318 if test "$ol_with_bdb2_module" != static ; then
14319 cat >> confdefs.h <<\EOF
14320 #define SLAPD_BDB2_DYNAMIC 1
14324 BUILD_BDB2_DYNAMIC=shared
14325 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14329 if test "$ol_enable_ldap" != no ; then
14330 cat >> confdefs.h <<\EOF
14331 #define SLAPD_LDAP 1
14336 if test "$ol_with_ldap_module" != static ; then
14337 cat >> confdefs.h <<\EOF
14338 #define SLAPD_LDAP_DYNAMIC 1
14342 BUILD_LDAP_DYNAMIC=shared
14343 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14347 if test "$ol_link_ldbm" != no ; then
14348 cat >> confdefs.h <<\EOF
14349 #define SLAPD_LDBM 1
14354 if test "$ol_with_ldbm_module" != static ; then
14355 cat >> confdefs.h <<\EOF
14356 #define SLAPD_LDBM_DYNAMIC 1
14360 BUILD_LDBM_DYNAMIC=shared
14361 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14365 if test "$ol_enable_passwd" != no ; then
14366 cat >> confdefs.h <<\EOF
14367 #define SLAPD_PASSWD 1
14372 if test "$ol_with_passwd_module" != static ; then
14373 cat >> confdefs.h <<\EOF
14374 #define SLAPD_PASSWD_DYNAMIC 1
14378 BUILD_PASSWD_DYNAMIC=shared
14379 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14383 if test "$ol_link_perl" != no ; then
14384 cat >> confdefs.h <<\EOF
14385 #define SLAPD_PERL 1
14390 if test "$ol_with_perl_module" != static ; then
14391 cat >> confdefs.h <<\EOF
14392 #define SLAPD_PERL_DYNAMIC 1
14396 BUILD_PERL_DYNAMIC=shared
14397 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14401 if test "$ol_enable_shell" != no ; then
14402 cat >> confdefs.h <<\EOF
14403 #define SLAPD_SHELL 1
14408 if test "$ol_with_shell_module" != static ; then
14409 cat >> confdefs.h <<\EOF
14410 #define SLAPD_SHELL_DYNAMIC 1
14414 BUILD_SHELL_DYNAMIC=shared
14415 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14419 if test "$ol_enable_tcl" != no ; then
14420 cat >> confdefs.h <<\EOF
14421 #define SLAPD_TCL 1
14426 if test "$ol_with_tcl_module" != static; then
14427 cat >> confdefs.h <<\EOF
14428 #define SLAPD_TCL_DYNAMIC 1
14432 BUILD_TCL_DYNAMIC=shared
14433 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14437 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14438 $BUILD_SLAPD = yes ; then
14442 if test "$ol_link_isode" != no ; then
14493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14496 # Let make expand exec_prefix.
14497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14499 # Any assignment to VPATH causes Sun make to only execute
14500 # the first set of double-colon rules, so remove it if not needed.
14501 # If there is a colon in the path, we need to keep it.
14502 if test "x$srcdir" = x.; then
14503 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14506 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14508 DEFS=-DHAVE_CONFIG_H
14510 # Without the "./", some shells look in PATH for config.status.
14511 : ${CONFIG_STATUS=./config.status}
14513 echo creating $CONFIG_STATUS
14514 rm -f $CONFIG_STATUS
14515 cat > $CONFIG_STATUS <<EOF
14517 # Generated automatically by configure.
14518 # Run this file to recreate the current configuration.
14519 # This directory was configured as follows,
14520 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14522 # $0 $ac_configure_args
14524 # Compiler output produced by configure, useful for debugging
14525 # configure, is in ./config.log if it exists.
14527 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14530 case "\$ac_option" in
14531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14532 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14533 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14534 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14535 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14537 -help | --help | --hel | --he | --h)
14538 echo "\$ac_cs_usage"; exit 0 ;;
14539 *) echo "\$ac_cs_usage"; exit 1 ;;
14543 ac_given_srcdir=$srcdir
14544 ac_given_INSTALL="$INSTALL"
14546 trap 'rm -fr `echo "\
14547 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14548 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14549 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14550 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14551 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14552 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14553 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14554 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14555 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14556 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14557 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14558 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14559 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14560 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14561 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14562 include/Makefile:build/top.mk:include/Makefile.in \
14563 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14564 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14565 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14566 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14567 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14568 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14569 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14570 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14571 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14572 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14573 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14574 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14575 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14576 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14577 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14578 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14579 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14580 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14581 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14582 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14583 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14584 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14585 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14586 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14587 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14588 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14589 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14591 cat >> $CONFIG_STATUS <<EOF
14593 # Protect against being on the right side of a sed subst in config.status.
14594 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14595 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14599 s%@CFLAGS@%$CFLAGS%g
14600 s%@CPPFLAGS@%$CPPFLAGS%g
14601 s%@CXXFLAGS@%$CXXFLAGS%g
14602 s%@FFLAGS@%$FFLAGS%g
14604 s%@LDFLAGS@%$LDFLAGS%g
14606 s%@exec_prefix@%$exec_prefix%g
14607 s%@prefix@%$prefix%g
14608 s%@program_transform_name@%$program_transform_name%g
14609 s%@bindir@%$bindir%g
14610 s%@sbindir@%$sbindir%g
14611 s%@libexecdir@%$libexecdir%g
14612 s%@datadir@%$datadir%g
14613 s%@sysconfdir@%$sysconfdir%g
14614 s%@sharedstatedir@%$sharedstatedir%g
14615 s%@localstatedir@%$localstatedir%g
14616 s%@libdir@%$libdir%g
14617 s%@includedir@%$includedir%g
14618 s%@oldincludedir@%$oldincludedir%g
14619 s%@infodir@%$infodir%g
14620 s%@mandir@%$mandir%g
14622 s%@host_alias@%$host_alias%g
14623 s%@host_cpu@%$host_cpu%g
14624 s%@host_vendor@%$host_vendor%g
14625 s%@host_os@%$host_os%g
14626 s%@target@%$target%g
14627 s%@target_alias@%$target_alias%g
14628 s%@target_cpu@%$target_cpu%g
14629 s%@target_vendor@%$target_vendor%g
14630 s%@target_os@%$target_os%g
14632 s%@build_alias@%$build_alias%g
14633 s%@build_cpu@%$build_cpu%g
14634 s%@build_vendor@%$build_vendor%g
14635 s%@build_os@%$build_os%g
14636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14637 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14638 s%@INSTALL_DATA@%$INSTALL_DATA%g
14639 s%@PACKAGE@%$PACKAGE%g
14640 s%@VERSION@%$VERSION%g
14641 s%@ACLOCAL@%$ACLOCAL%g
14642 s%@AUTOCONF@%$AUTOCONF%g
14643 s%@AUTOMAKE@%$AUTOMAKE%g
14644 s%@AUTOHEADER@%$AUTOHEADER%g
14645 s%@MAKEINFO@%$MAKEINFO%g
14646 s%@install_sh@%$install_sh%g
14649 s%@AMTARFLAGS@%$AMTARFLAGS%g
14650 s%@SET_MAKE@%$SET_MAKE%g
14651 s%@top_builddir@%$top_builddir%g
14652 s%@ldap_subdir@%$ldap_subdir%g
14654 s%@RANLIB@%$RANLIB%g
14658 s%@LIBTOOL@%$LIBTOOL%g
14660 s%@SENDMAIL@%$SENDMAIL%g
14661 s%@EDITOR@%$EDITOR%g
14662 s%@FINGER@%$FINGER%g
14663 s%@PERLBIN@%$PERLBIN%g
14665 s%@EXEEXT@%$EXEEXT%g
14666 s%@OBJEXT@%$OBJEXT%g
14667 s%@OL_MKDEP@%$OL_MKDEP%g
14668 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14670 s%@LIBOBJS@%$LIBOBJS%g
14671 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
14672 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14673 s%@BUILD_BDB2@%$BUILD_BDB2%g
14674 s%@BUILD_LDAP@%$BUILD_LDAP%g
14675 s%@BUILD_LDBM@%$BUILD_LDBM%g
14676 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14677 s%@BUILD_PERL@%$BUILD_PERL%g
14678 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14679 s%@BUILD_SHELL@%$BUILD_SHELL%g
14680 s%@BUILD_TCL@%$BUILD_TCL%g
14681 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14682 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14683 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14684 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14685 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14686 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14687 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14688 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14689 s%@LDAP_LIBS@%$LDAP_LIBS%g
14690 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
14691 s%@LDIF_LIBS@%$LDIF_LIBS%g
14692 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14693 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14694 s%@LDBM_LIBS@%$LDBM_LIBS%g
14695 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14696 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14697 s%@WRAP_LIBS@%$WRAP_LIBS%g
14698 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14699 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14700 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14701 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14702 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14703 s%@KRB_LIBS@%$KRB_LIBS%g
14704 s%@READLINE_LIBS@%$READLINE_LIBS%g
14705 s%@SASL_LIBS@%$SASL_LIBS%g
14706 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14707 s%@TLS_LIBS@%$TLS_LIBS%g
14708 s%@MODULES_LIBS@%$MODULES_LIBS%g
14713 cat >> $CONFIG_STATUS <<\EOF
14715 # Split the substitutions into bite-sized pieces for seds with
14716 # small command number limits, like on Digital OSF/1 and HP-UX.
14717 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14718 ac_file=1 # Number of current file.
14719 ac_beg=1 # First line for current file.
14720 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14723 while $ac_more_lines; do
14724 if test $ac_beg -gt 1; then
14725 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14727 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14729 if test ! -s conftest.s$ac_file; then
14730 ac_more_lines=false
14731 rm -f conftest.s$ac_file
14733 if test -z "$ac_sed_cmds"; then
14734 ac_sed_cmds="sed -f conftest.s$ac_file"
14736 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14738 ac_file=`expr $ac_file + 1`
14740 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14743 if test -z "$ac_sed_cmds"; then
14748 cat >> $CONFIG_STATUS <<EOF
14750 CONFIG_FILES=\${CONFIG_FILES-"\
14751 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14752 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14753 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14754 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14755 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14756 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14757 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14758 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14759 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14760 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14761 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14762 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14763 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14764 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14765 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14766 include/Makefile:build/top.mk:include/Makefile.in \
14767 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14768 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14769 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14770 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14771 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14772 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14773 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14774 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14775 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14776 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14777 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14778 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14779 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14780 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14781 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14782 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14783 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14784 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14785 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14786 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14787 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14788 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14789 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14790 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14791 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14792 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14795 cat >> $CONFIG_STATUS <<\EOF
14796 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14801 *) ac_file_in="${ac_file}.in" ;;
14804 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14806 # Remove last slash and all that follows it. Not all systems have dirname.
14807 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14808 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14809 # The file is in a subdirectory.
14810 test ! -d "$ac_dir" && mkdir "$ac_dir"
14811 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14812 # A "../" for each directory in $ac_dir_suffix.
14813 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14815 ac_dir_suffix= ac_dots=
14818 case "$ac_given_srcdir" in
14820 if test -z "$ac_dots"; then top_srcdir=.
14821 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14822 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14823 *) # Relative path.
14824 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14825 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14828 case "$ac_given_INSTALL" in
14829 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14830 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14833 echo creating "$ac_file"
14835 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14837 *Makefile*) ac_comsub="1i\\
14838 # $configure_input" ;;
14842 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14844 s%@configure_input@%$configure_input%g
14845 s%@srcdir@%$srcdir%g
14846 s%@top_srcdir@%$top_srcdir%g
14847 s%@INSTALL@%$INSTALL%g
14848 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14852 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14853 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14855 # ac_d sets the value in "#define NAME VALUE" lines.
14856 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14857 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14860 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14861 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14862 ac_uB='\([ ]\)%\1#\2define\3'
14865 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14866 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14867 ac_eB='$%\1#\2define\3'
14871 if test "${CONFIG_HEADERS+set}" != set; then
14873 cat >> $CONFIG_STATUS <<EOF
14874 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14876 cat >> $CONFIG_STATUS <<\EOF
14878 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14881 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14882 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14883 *) ac_file_in="${ac_file}.in" ;;
14886 echo creating $ac_file
14888 rm -f conftest.frag conftest.in conftest.out
14889 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14890 cat $ac_file_inputs > conftest.in
14894 # Transform confdefs.h into a sed script conftest.vals that substitutes
14895 # the proper values into config.h.in to produce config.h. And first:
14896 # Protect against being on the right side of a sed subst in config.status.
14897 # Protect against being in an unquoted here document in config.status.
14898 rm -f conftest.vals
14899 cat > conftest.hdr <<\EOF
14902 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14906 sed -n -f conftest.hdr confdefs.h > conftest.vals
14909 # This sed command replaces #undef with comments. This is necessary, for
14910 # example, in the case of _POSIX_SOURCE, which is predefined and required
14911 # on some systems where configure will not decide to define it.
14912 cat >> conftest.vals <<\EOF
14913 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14916 # Break up conftest.vals because some shells have a limit on
14917 # the size of here documents, and old seds have small limits too.
14919 rm -f conftest.tail
14922 ac_lines=`grep -c . conftest.vals`
14923 # grep -c gives empty output for an empty file on some AIX systems.
14924 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14925 # Write a limited-size here document to conftest.frag.
14926 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14927 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14929 sed -f conftest.frag conftest.in > conftest.out
14931 mv conftest.out conftest.in
14932 ' >> $CONFIG_STATUS
14933 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14934 rm -f conftest.vals
14935 mv conftest.tail conftest.vals
14937 rm -f conftest.vals
14939 cat >> $CONFIG_STATUS <<\EOF
14940 rm -f conftest.frag conftest.h
14941 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14942 cat conftest.in >> conftest.h
14944 if cmp -s $ac_file conftest.h 2>/dev/null; then
14945 echo "$ac_file is unchanged"
14948 # Remove last slash and all that follows it. Not all systems have dirname.
14949 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14950 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14951 # The file is in a subdirectory.
14952 test ! -d "$ac_dir" && mkdir "$ac_dir"
14955 mv conftest.h $ac_file
14960 cat >> $CONFIG_STATUS <<EOF
14963 cat >> $CONFIG_STATUS <<\EOF
14966 echo Please \"make depend\" to build dependencies
14970 chmod +x $CONFIG_STATUS
14971 rm -fr confdefs* $ac_clean_files
14972 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1