3 # from OpenLDAP: pkg/ldap/configure.in,v 1.344 2001/01/03 19:47:08 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (no)"
42 --enable-ipv6 enable IPv6 support (auto)"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads with threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable Kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-phonetic enable phonetic/soundex (no)"
78 --enable-rlookups enable reverse lookups (no)"
80 --enable-aci enable per-object ACIs (no)"
82 --enable-wrappers enable tcp wrapper support (no)"
84 --enable-dynamic enable linking built binaries with dynamic libs (no)"
86 --enable-bdb enable Berkeley DB backend (no)"
88 --with-bdb-module module type (static)"
90 --enable-dnssrv enable dnssrv backend (no)"
92 --with-dnssrv-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 with 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-sql enable sql backend (no)"
120 --with-sql-module module type (static)"
122 --enable-tcl enable tcl backend (no)"
124 --with-tcl-module module type (static)"
126 SLURPD (Replication Daemon) Options:"
128 --enable-slurpd enable building slurpd (auto)"
130 Library Generation & Linking Options"
132 --enable-static[=PKGS] build static libraries [default=yes]"
134 --enable-shared[=PKGS] build shared libraries [default=yes]"
136 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
138 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
140 --disable-libtool-lock avoid locking (might break parallel builds)"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13.1"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=build/version.sh
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
624 ac_cpp='$CPP $CPPFLAGS'
625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
627 cross_compiling=$ac_cv_prog_cc_cross
631 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
632 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
633 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
640 ac_n= ac_c='\c' ac_t=
644 # set unset (borrowed from autoconf 2.49c)
645 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
651 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
654 for ac_dir in build $srcdir/build; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
663 elif test -f $ac_dir/shtool; then
665 ac_install_sh="$ac_aux_dir/shtool install -c"
669 if test -z "$ac_aux_dir"; then
670 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
674 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
676 eval `$ac_aux_dir/version.sh`
677 if test -z "$OL_STRING"; then
678 { echo "configure: error: could not determine version" 1>&2; exit 1; }
681 echo "Configuring $OL_STRING ..."
684 echo $ac_n "checking host system type""... $ac_c" 1>&6
685 echo "configure:686: checking host system type" >&5
686 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
688 # Make sure we can run config.sub.
689 if $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 ac_cv_host_alias=$host
694 case "$ac_cv_host_alias" in
698 if ac_cv_host_alias=`$ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
701 *) ac_cv_host_alias=$nonopt ;;
705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
706 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_host" 1>&6
716 host_alias=$ac_cv_host_alias
717 host_cpu=$ac_cv_host_cpu
718 host_vendor=$ac_cv_host_vendor
719 host_os=$ac_cv_host_os
725 echo $ac_n "checking target system type""... $ac_c" 1>&6
726 echo "configure:727: checking target system type" >&5
727 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_target_alias=$target
735 case "$ac_cv_target_alias" in
739 ac_cv_target_alias=$host_alias ;;
741 *) ac_cv_target_alias=$nonopt ;;
745 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
746 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_target" 1>&6
756 target_alias=$ac_cv_target_alias
757 target_cpu=$ac_cv_target_cpu
758 target_vendor=$ac_cv_target_vendor
759 target_os=$ac_cv_target_os
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
767 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
769 # Make sure we can run config.sub.
770 if $ac_config_sub sun4 >/dev/null 2>&1; then :
771 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
774 ac_cv_build_alias=$build
775 case "$ac_cv_build_alias" in
779 ac_cv_build_alias=$host_alias ;;
781 *) ac_cv_build_alias=$nonopt ;;
785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
786 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo $ac_n "(cached) $ac_c" 1>&6
793 echo "$ac_t""$ac_cv_build" 1>&6
796 build_alias=$ac_cv_build_alias
797 build_cpu=$ac_cv_build_cpu
798 build_vendor=$ac_cv_build_vendor
799 build_os=$ac_cv_build_os
805 # Do some error checking and defaulting for the host and target type.
807 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
810 # 1. You are not allowed to specify --host, --target, and nonopt at the
812 # 2. Host defaults to nonopt.
813 # 3. If nonopt is not specified, then host defaults to the current host,
814 # as determined by config.guess.
815 # 4. Target and build default to nonopt.
816 # 5. If nonopt is not specified, then target and build default to host.
818 # The aliases save the names the user supplied, while $host etc.
819 # will get canonicalized.
820 case $host---$target---$nonopt in
821 NONE---*---* | *---NONE---* | *---*---NONE) ;;
822 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
825 test "$host_alias" != "$target_alias" &&
826 test "$program_prefix$program_suffix$program_transform_name" = \
828 program_prefix=${target_alias}-
831 # Find a good install program. We prefer a C program (faster),
832 # so one script is as good as another. But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
841 # ./install, which can be erroneously created by make from ./install.sh.
842 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
843 echo "configure:844: checking for a BSD compatible install" >&5
844 if test -z "$INSTALL"; then
845 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
849 for ac_dir in $PATH; do
850 # Account for people who put trailing slashes in PATH elements.
852 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
854 # OSF1 and SCO ODT 3.0 have their own names for install.
855 # Don't use installbsd from OSF since it installs stuff as root
857 for ac_prog in ginstall scoinst install; do
858 if test -f $ac_dir/$ac_prog; then
859 if test $ac_prog = install &&
860 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
861 # AIX install. It has an incompatible calling convention.
863 elif test $ac_prog = install &&
864 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # program-specific install script used by HP pwplus--don't use.
868 ac_cv_path_install="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
900 echo "configure:901: checking whether build environment is sane" >&5
903 echo timestamp > conftestfile
904 # Do `set' in a subshell so we don't clobber the current shell's
905 # arguments. Must try -L first in case configure is actually a
906 # symlink; some systems play weird games with the mod time of symlinks
907 # (eg FreeBSD returns the mod time of the symlink's containing
910 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
911 if test "$*" = "X"; then
913 set X `ls -t $srcdir/configure conftestfile`
915 if test "$*" != "X $srcdir/configure conftestfile" \
916 && test "$*" != "X conftestfile $srcdir/configure"; then
918 # If neither matched, then we have a broken ls. This can happen
919 # if, for instance, CONFIG_SHELL is bash and it inherits a
920 # broken ls alias from the environment. This has actually
921 # happened. Such a system could not be considered "sane".
922 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
923 alias in your environment" 1>&2; exit 1; }
926 test "$2" = conftestfile
932 { echo "configure: error: newly created file is older than distributed files!
933 Check your system clock" 1>&2; exit 1; }
936 echo "$ac_t""yes" 1>&6
937 if test "$program_transform_name" = s,x,x,; then
938 program_transform_name=
940 # Double any \ or $. echo might interpret backslashes.
941 cat <<\EOF_SED > conftestsed
942 s,\\,\\\\,g; s,\$,$$,g
944 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
947 test "$program_prefix" != NONE &&
948 program_transform_name="s,^,${program_prefix},;$program_transform_name"
949 # Use a double $ so make ignores it.
950 test "$program_suffix" != NONE &&
951 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
953 # sed with no file args requires a program.
954 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
956 for ac_prog in mawk gawk nawk awk
958 # Extract the first word of "$ac_prog", so it can be a program name with args.
959 set dummy $ac_prog; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$AWK"; then
966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_AWK="$ac_prog"
980 AWK="$ac_cv_prog_AWK"
981 if test -n "$AWK"; then
982 echo "$ac_t""$AWK" 1>&6
984 echo "$ac_t""no" 1>&6
987 test -n "$AWK" && break
990 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${MAKE-make} sets \${MAKE}" >&5
992 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
993 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 cat > conftestmake <<\EOF
998 @echo 'ac_maketemp="${MAKE}"'
1000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1001 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1002 if test -n "$ac_maketemp"; then
1003 eval ac_cv_prog_make_${ac_make}_set=yes
1005 eval ac_cv_prog_make_${ac_make}_set=no
1009 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1010 echo "$ac_t""yes" 1>&6
1013 echo "$ac_t""no" 1>&6
1014 SET_MAKE="MAKE=${MAKE-make}"
1023 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1024 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1029 missing_dir=`cd $ac_aux_dir && pwd`
1030 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working aclocal" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1037 echo "$ac_t""found" 1>&6
1039 ACLOCAL="$missing_dir/missing aclocal"
1040 echo "$ac_t""missing" 1>&6
1043 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1044 echo "configure:1045: checking for working autoconf" >&5
1045 # Run test in a subshell; some versions of sh will print an error if
1046 # an executable is not found, even if stderr is redirected.
1047 # Redirect stdin to placate older versions of autoconf. Sigh.
1048 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1050 echo "$ac_t""found" 1>&6
1052 AUTOCONF="$missing_dir/missing autoconf"
1053 echo "$ac_t""missing" 1>&6
1056 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1057 echo "configure:1058: checking for working automake" >&5
1058 # Run test in a subshell; some versions of sh will print an error if
1059 # an executable is not found, even if stderr is redirected.
1060 # Redirect stdin to placate older versions of autoconf. Sigh.
1061 if (automake --version) < /dev/null > /dev/null 2>&1; then
1063 echo "$ac_t""found" 1>&6
1065 AUTOMAKE="$missing_dir/missing automake"
1066 echo "$ac_t""missing" 1>&6
1069 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working autoheader" >&5
1071 # Run test in a subshell; some versions of sh will print an error if
1072 # an executable is not found, even if stderr is redirected.
1073 # Redirect stdin to placate older versions of autoconf. Sigh.
1074 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1075 AUTOHEADER=autoheader
1076 echo "$ac_t""found" 1>&6
1078 AUTOHEADER="$missing_dir/missing autoheader"
1079 echo "$ac_t""missing" 1>&6
1082 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working makeinfo" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 MAKEINFO="$missing_dir/missing makeinfo"
1092 echo "$ac_t""missing" 1>&6
1095 install_sh="$missing_dir/install-sh"
1096 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1098 for ac_prog in gnutar gtar tar
1100 # Extract the first word of "$ac_prog", so it can be a program name with args.
1101 set dummy $ac_prog; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$AMTAR"; then
1108 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_AMTAR="$ac_prog"
1122 AMTAR="$ac_cv_prog_AMTAR"
1123 if test -n "$AMTAR"; then
1124 echo "$ac_t""$AMTAR" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 test -n "$AMTAR" && break
1134 if test -n "$AMTAR"; then
1135 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1140 cat >> confdefs.h <<EOF
1141 #define OPENLDAP_PACKAGE "$PACKAGE"
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_VERSION "$VERSION"
1149 cat >> confdefs.h <<EOF
1150 #define LDAP_VENDOR_VERSION $OL_API_INC
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1166 OPENLDAP_LIBVERSION=$OL_API_LIB
1170 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1171 echo "configure:1172: checking configure arguments" >&5
1176 ldap_subdir="/openldap"
1178 # Check whether --with-subdir or --without-subdir was given.
1179 if test "${with_subdir+set}" = set; then
1180 withval="$with_subdir"
1187 ldap_subdir="$withval"
1190 ldap_subdir="/$withval"
1197 # OpenLDAP --enable-debug
1198 # Check whether --enable-debug or --disable-debug was given.
1199 if test "${enable_debug+set}" = set; then
1200 enableval="$enable_debug"
1203 for ol_val in auto yes no ; do
1204 if test "$enableval" = "$ol_val" ; then
1208 if test "$ol_arg" = "invalid" ; then
1209 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1211 ol_enable_debug="$ol_arg"
1214 ol_enable_debug="yes"
1216 # end --enable-debug
1217 # OpenLDAP --enable-syslog
1218 # Check whether --enable-syslog or --disable-syslog was given.
1219 if test "${enable_syslog+set}" = set; then
1220 enableval="$enable_syslog"
1223 for ol_val in auto yes no ; do
1224 if test "$enableval" = "$ol_val" ; then
1228 if test "$ol_arg" = "invalid" ; then
1229 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1231 ol_enable_syslog="$ol_arg"
1234 ol_enable_syslog="auto"
1236 # end --enable-syslog
1237 # OpenLDAP --enable-proctitle
1238 # Check whether --enable-proctitle or --disable-proctitle was given.
1239 if test "${enable_proctitle+set}" = set; then
1240 enableval="$enable_proctitle"
1243 for ol_val in auto yes no ; do
1244 if test "$enableval" = "$ol_val" ; then
1248 if test "$ol_arg" = "invalid" ; then
1249 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1251 ol_enable_proctitle="$ol_arg"
1254 ol_enable_proctitle="yes"
1256 # end --enable-proctitle
1257 # OpenLDAP --enable-cache
1258 # Check whether --enable-cache or --disable-cache was given.
1259 if test "${enable_cache+set}" = set; then
1260 enableval="$enable_cache"
1263 for ol_val in auto yes no ; do
1264 if test "$enableval" = "$ol_val" ; then
1268 if test "$ol_arg" = "invalid" ; then
1269 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1271 ol_enable_cache="$ol_arg"
1274 ol_enable_cache="yes"
1276 # end --enable-cache
1277 # OpenLDAP --enable-referrals
1278 # Check whether --enable-referrals or --disable-referrals was given.
1279 if test "${enable_referrals+set}" = set; then
1280 enableval="$enable_referrals"
1283 for ol_val in auto yes no ; do
1284 if test "$enableval" = "$ol_val" ; then
1288 if test "$ol_arg" = "invalid" ; then
1289 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1291 ol_enable_referrals="$ol_arg"
1294 ol_enable_referrals="yes"
1296 # end --enable-referrals
1297 # OpenLDAP --enable-kbind
1298 # Check whether --enable-kbind or --disable-kbind was given.
1299 if test "${enable_kbind+set}" = set; then
1300 enableval="$enable_kbind"
1303 for ol_val in auto yes no ; do
1304 if test "$enableval" = "$ol_val" ; then
1308 if test "$ol_arg" = "invalid" ; then
1309 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1311 ol_enable_kbind="$ol_arg"
1314 ol_enable_kbind="no"
1316 # end --enable-kbind
1317 # OpenLDAP --enable-ipv6
1318 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1319 if test "${enable_ipv6+set}" = set; then
1320 enableval="$enable_ipv6"
1323 for ol_val in auto yes no ; do
1324 if test "$enableval" = "$ol_val" ; then
1328 if test "$ol_arg" = "invalid" ; then
1329 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1331 ol_enable_ipv6="$ol_arg"
1334 ol_enable_ipv6="auto"
1337 # OpenLDAP --enable-local
1338 # Check whether --enable-local or --disable-local was given.
1339 if test "${enable_local+set}" = set; then
1340 enableval="$enable_local"
1343 for ol_val in auto yes no ; do
1344 if test "$enableval" = "$ol_val" ; then
1348 if test "$ol_arg" = "invalid" ; then
1349 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1351 ol_enable_local="$ol_arg"
1354 ol_enable_local="auto"
1356 # end --enable-local
1357 # OpenLDAP --enable-x_compile
1358 # Check whether --enable-x_compile or --disable-x_compile was given.
1359 if test "${enable_x_compile+set}" = set; then
1360 enableval="$enable_x_compile"
1363 for ol_val in yes no ; do
1364 if test "$enableval" = "$ol_val" ; then
1368 if test "$ol_arg" = "invalid" ; then
1369 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1371 ol_enable_x_compile="$ol_arg"
1374 ol_enable_x_compile="no"
1376 # end --enable-x_compile
1379 # OpenLDAP --with-cyrus_sasl
1380 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1381 if test "${with_cyrus_sasl+set}" = set; then
1382 withval="$with_cyrus_sasl"
1385 for ol_val in auto yes no ; do
1386 if test "$withval" = "$ol_val" ; then
1390 if test "$ol_arg" = "invalid" ; then
1391 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1393 ol_with_cyrus_sasl="$ol_arg"
1396 ol_with_cyrus_sasl="auto"
1398 # end --with-cyrus_sasl
1400 # OpenLDAP --with-fetch
1401 # Check whether --with-fetch or --without-fetch was given.
1402 if test "${with_fetch+set}" = set; then
1403 withval="$with_fetch"
1406 for ol_val in auto yes no ; do
1407 if test "$withval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1414 ol_with_fetch="$ol_arg"
1417 ol_with_fetch="auto"
1421 # OpenLDAP --with-kerberos
1422 # Check whether --with-kerberos or --without-kerberos was given.
1423 if test "${with_kerberos+set}" = set; then
1424 withval="$with_kerberos"
1427 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1428 if test "$withval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1435 ol_with_kerberos="$ol_arg"
1438 ol_with_kerberos="auto"
1440 # end --with-kerberos
1442 # OpenLDAP --with-readline
1443 # Check whether --with-readline or --without-readline was given.
1444 if test "${with_readline+set}" = set; then
1445 withval="$with_readline"
1448 for ol_val in auto yes no ; do
1449 if test "$withval" = "$ol_val" ; then
1453 if test "$ol_arg" = "invalid" ; then
1454 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1456 ol_with_readline="$ol_arg"
1459 ol_with_readline="auto"
1461 # end --with-readline
1463 # OpenLDAP --with-threads
1464 # Check whether --with-threads or --without-threads was given.
1465 if test "${with_threads+set}" = set; then
1466 withval="$with_threads"
1469 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1470 if test "$withval" = "$ol_val" ; then
1474 if test "$ol_arg" = "invalid" ; then
1475 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1477 ol_with_threads="$ol_arg"
1480 ol_with_threads="auto"
1482 # end --with-threads
1484 # OpenLDAP --with-tls
1485 # Check whether --with-tls or --without-tls was given.
1486 if test "${with_tls+set}" = set; then
1490 for ol_val in auto ssleay openssl yes no ; do
1491 if test "$withval" = "$ol_val" ; then
1495 if test "$ol_arg" = "invalid" ; then
1496 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1498 ol_with_tls="$ol_arg"
1505 # OpenLDAP --with-yielding_select
1506 # Check whether --with-yielding_select or --without-yielding_select was given.
1507 if test "${with_yielding_select+set}" = set; then
1508 withval="$with_yielding_select"
1511 for ol_val in auto yes no manual ; do
1512 if test "$withval" = "$ol_val" ; then
1516 if test "$ol_arg" = "invalid" ; then
1517 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1519 ol_with_yielding_select="$ol_arg"
1522 ol_with_yielding_select="auto"
1524 # end --with-yielding_select
1528 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1529 if test "${with_xxslapdoptions+set}" = set; then
1530 withval="$with_xxslapdoptions"
1534 # OpenLDAP --enable-slapd
1535 # Check whether --enable-slapd or --disable-slapd was given.
1536 if test "${enable_slapd+set}" = set; then
1537 enableval="$enable_slapd"
1540 for ol_val in auto yes no ; do
1541 if test "$enableval" = "$ol_val" ; then
1545 if test "$ol_arg" = "invalid" ; then
1546 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1548 ol_enable_slapd="$ol_arg"
1551 ol_enable_slapd="yes"
1553 # end --enable-slapd
1554 # OpenLDAP --enable-cleartext
1555 # Check whether --enable-cleartext or --disable-cleartext was given.
1556 if test "${enable_cleartext+set}" = set; then
1557 enableval="$enable_cleartext"
1560 for ol_val in auto yes no ; do
1561 if test "$enableval" = "$ol_val" ; then
1565 if test "$ol_arg" = "invalid" ; then
1566 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1568 ol_enable_cleartext="$ol_arg"
1571 ol_enable_cleartext="yes"
1573 # end --enable-cleartext
1574 # OpenLDAP --enable-crypt
1575 # Check whether --enable-crypt or --disable-crypt was given.
1576 if test "${enable_crypt+set}" = set; then
1577 enableval="$enable_crypt"
1580 for ol_val in auto yes no ; do
1581 if test "$enableval" = "$ol_val" ; then
1585 if test "$ol_arg" = "invalid" ; then
1586 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1588 ol_enable_crypt="$ol_arg"
1591 ol_enable_crypt="auto"
1593 # end --enable-crypt
1594 # OpenLDAP --enable-kpasswd
1595 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1596 if test "${enable_kpasswd+set}" = set; then
1597 enableval="$enable_kpasswd"
1600 for ol_val in auto yes no ; do
1601 if test "$enableval" = "$ol_val" ; then
1605 if test "$ol_arg" = "invalid" ; then
1606 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1608 ol_enable_kpasswd="$ol_arg"
1611 ol_enable_kpasswd="no"
1613 # end --enable-kpasswd
1614 # OpenLDAP --enable-spasswd
1615 # Check whether --enable-spasswd or --disable-spasswd was given.
1616 if test "${enable_spasswd+set}" = set; then
1617 enableval="$enable_spasswd"
1620 for ol_val in auto yes no ; do
1621 if test "$enableval" = "$ol_val" ; then
1625 if test "$ol_arg" = "invalid" ; then
1626 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1628 ol_enable_spasswd="$ol_arg"
1631 ol_enable_spasswd="no"
1633 # end --enable-spasswd
1634 # OpenLDAP --enable-modules
1635 # Check whether --enable-modules or --disable-modules was given.
1636 if test "${enable_modules+set}" = set; then
1637 enableval="$enable_modules"
1640 for ol_val in auto yes no ; do
1641 if test "$enableval" = "$ol_val" ; then
1645 if test "$ol_arg" = "invalid" ; then
1646 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1648 ol_enable_modules="$ol_arg"
1651 ol_enable_modules="no"
1653 # end --enable-modules
1654 # OpenLDAP --enable-phonetic
1655 # Check whether --enable-phonetic or --disable-phonetic was given.
1656 if test "${enable_phonetic+set}" = set; then
1657 enableval="$enable_phonetic"
1660 for ol_val in auto yes no ; do
1661 if test "$enableval" = "$ol_val" ; then
1665 if test "$ol_arg" = "invalid" ; then
1666 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1668 ol_enable_phonetic="$ol_arg"
1671 ol_enable_phonetic="no"
1673 # end --enable-phonetic
1674 # OpenLDAP --enable-rlookups
1675 # Check whether --enable-rlookups or --disable-rlookups was given.
1676 if test "${enable_rlookups+set}" = set; then
1677 enableval="$enable_rlookups"
1680 for ol_val in auto yes no ; do
1681 if test "$enableval" = "$ol_val" ; then
1685 if test "$ol_arg" = "invalid" ; then
1686 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1688 ol_enable_rlookups="$ol_arg"
1691 ol_enable_rlookups="no"
1693 # end --enable-rlookups
1694 # OpenLDAP --enable-aci
1695 # Check whether --enable-aci or --disable-aci was given.
1696 if test "${enable_aci+set}" = set; then
1697 enableval="$enable_aci"
1700 for ol_val in auto yes no ; do
1701 if test "$enableval" = "$ol_val" ; then
1705 if test "$ol_arg" = "invalid" ; then
1706 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1708 ol_enable_aci="$ol_arg"
1714 # OpenLDAP --enable-wrappers
1715 # Check whether --enable-wrappers or --disable-wrappers was given.
1716 if test "${enable_wrappers+set}" = set; then
1717 enableval="$enable_wrappers"
1720 for ol_val in auto yes no ; do
1721 if test "$enableval" = "$ol_val" ; then
1725 if test "$ol_arg" = "invalid" ; then
1726 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1728 ol_enable_wrappers="$ol_arg"
1731 ol_enable_wrappers="no"
1733 # end --enable-wrappers
1734 # OpenLDAP --enable-dynamic
1735 # Check whether --enable-dynamic or --disable-dynamic was given.
1736 if test "${enable_dynamic+set}" = set; then
1737 enableval="$enable_dynamic"
1740 for ol_val in auto yes no ; do
1741 if test "$enableval" = "$ol_val" ; then
1745 if test "$ol_arg" = "invalid" ; then
1746 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1748 ol_enable_dynamic="$ol_arg"
1751 ol_enable_dynamic="no"
1753 # end --enable-dynamic
1755 # OpenLDAP --enable-bdb
1756 # Check whether --enable-bdb or --disable-bdb was given.
1757 if test "${enable_bdb+set}" = set; then
1758 enableval="$enable_bdb"
1761 for ol_val in auto yes no ; do
1762 if test "$enableval" = "$ol_val" ; then
1766 if test "$ol_arg" = "invalid" ; then
1767 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1769 ol_enable_bdb="$ol_arg"
1775 # OpenLDAP --with-bdb_module
1776 # Check whether --with-bdb_module or --without-bdb_module was given.
1777 if test "${with_bdb_module+set}" = set; then
1778 withval="$with_bdb_module"
1781 for ol_val in static dynamic ; do
1782 if test "$withval" = "$ol_val" ; then
1786 if test "$ol_arg" = "invalid" ; then
1787 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1789 ol_with_bdb_module="$ol_arg"
1792 ol_with_bdb_module="static"
1794 # end --with-bdb_module
1796 # OpenLDAP --enable-dnssrv
1797 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1798 if test "${enable_dnssrv+set}" = set; then
1799 enableval="$enable_dnssrv"
1802 for ol_val in auto yes no ; do
1803 if test "$enableval" = "$ol_val" ; then
1807 if test "$ol_arg" = "invalid" ; then
1808 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1810 ol_enable_dnssrv="$ol_arg"
1813 ol_enable_dnssrv="no"
1815 # end --enable-dnssrv
1816 # OpenLDAP --with-dnssrv_module
1817 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1818 if test "${with_dnssrv_module+set}" = set; then
1819 withval="$with_dnssrv_module"
1822 for ol_val in static dynamic ; do
1823 if test "$withval" = "$ol_val" ; then
1827 if test "$ol_arg" = "invalid" ; then
1828 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1830 ol_with_dnssrv_module="$ol_arg"
1833 ol_with_dnssrv_module="static"
1835 # end --with-dnssrv_module
1837 # OpenLDAP --enable-ldap
1838 # Check whether --enable-ldap or --disable-ldap was given.
1839 if test "${enable_ldap+set}" = set; then
1840 enableval="$enable_ldap"
1843 for ol_val in auto yes no ; do
1844 if test "$enableval" = "$ol_val" ; then
1848 if test "$ol_arg" = "invalid" ; then
1849 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1851 ol_enable_ldap="$ol_arg"
1857 # OpenLDAP --with-ldap_module
1858 # Check whether --with-ldap_module or --without-ldap_module was given.
1859 if test "${with_ldap_module+set}" = set; then
1860 withval="$with_ldap_module"
1863 for ol_val in static dynamic ; do
1864 if test "$withval" = "$ol_val" ; then
1868 if test "$ol_arg" = "invalid" ; then
1869 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1871 ol_with_ldap_module="$ol_arg"
1874 ol_with_ldap_module="static"
1876 # end --with-ldap_module
1878 # OpenLDAP --enable-ldbm
1879 # Check whether --enable-ldbm or --disable-ldbm was given.
1880 if test "${enable_ldbm+set}" = set; then
1881 enableval="$enable_ldbm"
1884 for ol_val in auto yes no ; do
1885 if test "$enableval" = "$ol_val" ; then
1889 if test "$ol_arg" = "invalid" ; then
1890 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1892 ol_enable_ldbm="$ol_arg"
1895 ol_enable_ldbm="yes"
1898 # OpenLDAP --with-ldbm_api
1899 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1900 if test "${with_ldbm_api+set}" = set; then
1901 withval="$with_ldbm_api"
1904 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1905 if test "$withval" = "$ol_val" ; then
1909 if test "$ol_arg" = "invalid" ; then
1910 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1912 ol_with_ldbm_api="$ol_arg"
1915 ol_with_ldbm_api="auto"
1917 # end --with-ldbm_api
1919 # OpenLDAP --with-ldbm_module
1920 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1921 if test "${with_ldbm_module+set}" = set; then
1922 withval="$with_ldbm_module"
1925 for ol_val in static dynamic ; do
1926 if test "$withval" = "$ol_val" ; then
1930 if test "$ol_arg" = "invalid" ; then
1931 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1933 ol_with_ldbm_module="$ol_arg"
1936 ol_with_ldbm_module="static"
1938 # end --with-ldbm_module
1940 # OpenLDAP --with-ldbm_type
1941 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1942 if test "${with_ldbm_type+set}" = set; then
1943 withval="$with_ldbm_type"
1946 for ol_val in auto btree hash ; do
1947 if test "$withval" = "$ol_val" ; then
1951 if test "$ol_arg" = "invalid" ; then
1952 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1954 ol_with_ldbm_type="$ol_arg"
1957 ol_with_ldbm_type="auto"
1959 # end --with-ldbm_type
1961 # OpenLDAP --enable-passwd
1962 # Check whether --enable-passwd or --disable-passwd was given.
1963 if test "${enable_passwd+set}" = set; then
1964 enableval="$enable_passwd"
1967 for ol_val in auto yes no ; do
1968 if test "$enableval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1975 ol_enable_passwd="$ol_arg"
1978 ol_enable_passwd="no"
1980 # end --enable-passwd
1981 # OpenLDAP --with-passwd_module
1982 # Check whether --with-passwd_module or --without-passwd_module was given.
1983 if test "${with_passwd_module+set}" = set; then
1984 withval="$with_passwd_module"
1987 for ol_val in static dynamic ; do
1988 if test "$withval" = "$ol_val" ; then
1992 if test "$ol_arg" = "invalid" ; then
1993 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1995 ol_with_passwd_module="$ol_arg"
1998 ol_with_passwd_module="static"
2000 # end --with-passwd_module
2002 # OpenLDAP --enable-perl
2003 # Check whether --enable-perl or --disable-perl was given.
2004 if test "${enable_perl+set}" = set; then
2005 enableval="$enable_perl"
2008 for ol_val in auto yes no ; do
2009 if test "$enableval" = "$ol_val" ; then
2013 if test "$ol_arg" = "invalid" ; then
2014 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2016 ol_enable_perl="$ol_arg"
2022 # OpenLDAP --with-perl_module
2023 # Check whether --with-perl_module or --without-perl_module was given.
2024 if test "${with_perl_module+set}" = set; then
2025 withval="$with_perl_module"
2028 for ol_val in static dynamic ; do
2029 if test "$withval" = "$ol_val" ; then
2033 if test "$ol_arg" = "invalid" ; then
2034 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2036 ol_with_perl_module="$ol_arg"
2039 ol_with_perl_module="static"
2041 # end --with-perl_module
2043 # OpenLDAP --enable-shell
2044 # Check whether --enable-shell or --disable-shell was given.
2045 if test "${enable_shell+set}" = set; then
2046 enableval="$enable_shell"
2049 for ol_val in auto yes no ; do
2050 if test "$enableval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2057 ol_enable_shell="$ol_arg"
2060 ol_enable_shell="no"
2062 # end --enable-shell
2063 # OpenLDAP --with-shell_module
2064 # Check whether --with-shell_module or --without-shell_module was given.
2065 if test "${with_shell_module+set}" = set; then
2066 withval="$with_shell_module"
2069 for ol_val in static dynamic ; do
2070 if test "$withval" = "$ol_val" ; then
2074 if test "$ol_arg" = "invalid" ; then
2075 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2077 ol_with_shell_module="$ol_arg"
2080 ol_with_shell_module="static"
2082 # end --with-shell_module
2084 # OpenLDAP --enable-sql
2085 # Check whether --enable-sql or --disable-sql was given.
2086 if test "${enable_sql+set}" = set; then
2087 enableval="$enable_sql"
2090 for ol_val in auto yes no ; do
2091 if test "$enableval" = "$ol_val" ; then
2095 if test "$ol_arg" = "invalid" ; then
2096 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2098 ol_enable_sql="$ol_arg"
2104 # OpenLDAP --with-sql_module
2105 # Check whether --with-sql_module or --without-sql_module was given.
2106 if test "${with_sql_module+set}" = set; then
2107 withval="$with_sql_module"
2110 for ol_val in static dynamic ; do
2111 if test "$withval" = "$ol_val" ; then
2115 if test "$ol_arg" = "invalid" ; then
2116 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2118 ol_with_sql_module="$ol_arg"
2121 ol_with_sql_module="static"
2123 # end --with-sql_module
2125 # OpenLDAP --enable-tcl
2126 # Check whether --enable-tcl or --disable-tcl was given.
2127 if test "${enable_tcl+set}" = set; then
2128 enableval="$enable_tcl"
2131 for ol_val in auto yes no ; do
2132 if test "$enableval" = "$ol_val" ; then
2136 if test "$ol_arg" = "invalid" ; then
2137 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2139 ol_enable_tcl="$ol_arg"
2145 # OpenLDAP --with-tcl_module
2146 # Check whether --with-tcl_module or --without-tcl_module was given.
2147 if test "${with_tcl_module+set}" = set; then
2148 withval="$with_tcl_module"
2151 for ol_val in static dynamic ; do
2152 if test "$withval" = "$ol_val" ; then
2156 if test "$ol_arg" = "invalid" ; then
2157 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2159 ol_with_tcl_module="$ol_arg"
2162 ol_with_tcl_module="static"
2164 # end --with-tcl_module
2167 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2168 if test "${with_xxslurpdoptions+set}" = set; then
2169 withval="$with_xxslurpdoptions"
2173 # OpenLDAP --enable-slurpd
2174 # Check whether --enable-slurpd or --disable-slurpd was given.
2175 if test "${enable_slurpd+set}" = set; then
2176 enableval="$enable_slurpd"
2179 for ol_val in auto yes no ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2187 ol_enable_slurpd="$ol_arg"
2190 ol_enable_slurpd="auto"
2192 # end --enable-slurpd
2194 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2195 if test "${with_xxliboptions+set}" = set; then
2196 withval="$with_xxliboptions"
2200 # Check whether --enable-static or --disable-static was given.
2201 if test "${enable_static+set}" = set; then
2202 enableval="$enable_static"
2203 p=${PACKAGE-default}
2204 case "$enableval" in
2205 yes) enable_static=yes ;;
2206 no) enable_static=no ;;
2209 # Look at the argument we got. We use all the common list separators.
2210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2211 for pkg in $enableval; do
2212 if test "X$pkg" = "X$p"; then
2223 # Check whether --enable-shared or --disable-shared was given.
2224 if test "${enable_shared+set}" = set; then
2225 enableval="$enable_shared"
2226 p=${PACKAGE-default}
2227 case "$enableval" in
2228 yes) enable_shared=yes ;;
2229 no) enable_shared=no ;;
2232 # Look at the argument we got. We use all the common list separators.
2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2234 for pkg in $enableval; do
2235 if test "X$pkg" = "X$p"; then
2249 if test $ol_enable_slapd = no ; then
2250 if test $ol_enable_bdb = yes ; then
2251 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2253 if test $ol_enable_dnssrv = yes ; then
2254 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2256 if test $ol_enable_ldap = yes ; then
2257 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2259 if test $ol_enable_ldbm = yes ; then
2260 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2262 if test $ol_enable_passwd = yes ; then
2263 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2265 if test $ol_enable_perl = yes ; then
2266 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2268 if test $ol_enable_shell = yes ; then
2269 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2271 if test $ol_enable_tcl = yes ; then
2272 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2274 if test $ol_enable_sql = yes ; then
2275 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2277 if test $ol_enable_modules = yes ; then
2278 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2280 if test $ol_enable_wrappers = yes ; then
2281 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2283 if test $ol_enable_phonetic = yes ; then
2284 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2286 if test $ol_enable_rlookups = yes ; then
2287 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2289 if test $ol_enable_aci = yes ; then
2290 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2292 if test $ol_with_ldbm_api != auto ; then
2293 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2295 if test $ol_with_ldbm_type != auto ; then
2296 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2298 if test $ol_with_bdb_module != static ; then
2299 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2301 if test $ol_with_dnssrv_module != static ; then
2302 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2304 if test $ol_with_ldap_module != static ; then
2305 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2307 if test $ol_with_ldbm_module != static ; then
2308 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2310 if test $ol_with_passwd_module != static ; then
2311 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2313 if test $ol_with_perl_module != static ; then
2314 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2316 if test $ol_with_shell_module != static ; then
2317 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2319 if test $ol_with_tcl_module != static ; then
2320 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2322 if test $ol_with_sql_module != static ; then
2323 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2325 if test $ol_enable_slurpd = yes ; then
2326 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2329 # force settings to no
2340 ol_enable_modules=no
2341 ol_enable_phonetic=no
2342 ol_enable_rlookups=no
2344 ol_enable_wrappers=no
2345 ol_enable_dynamic=no
2348 ol_with_ldbm_type=no
2350 ol_with_bdb_module=static
2351 ol_with_dnssrv_module=static
2352 ol_with_ldap_module=static
2353 ol_with_ldbm_module=static
2354 ol_with_passwd_module=static
2355 ol_with_perl_module=static
2356 ol_with_shell_module=static
2357 ol_with_tcl_module=static
2358 ol_with_sql_module=static
2362 elif test $ol_enable_ldbm = no ; then
2364 if test $ol_with_ldbm_api != auto ; then
2365 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2368 if test $ol_with_ldbm_type != auto ; then
2369 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2372 if test $ol_with_ldbm_module != static ; then
2373 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2376 if test $ol_enable_modules != yes -a \
2377 $ol_enable_bdb = no -a \
2378 $ol_enable_dnssrv = no -a \
2379 $ol_enable_ldap = no -a \
2380 $ol_enable_passwd = no -a \
2381 $ol_enable_perl = no -a \
2382 $ol_enable_shell = no -a \
2383 $ol_enable_sql = no -a \
2384 $ol_enable_tcl = no ; then
2385 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2389 ol_with_ldbm_type=no
2390 ol_with_ldbm_module=static
2393 if test $ol_with_ldbm_api = gdbm -a \
2394 $ol_with_ldbm_type = btree ; then
2395 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2397 if test $ol_with_ldbm_api = mdbm -a \
2398 $ol_with_ldbm_type = btree ; then
2399 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2401 if test $ol_with_ldbm_api = ndbm -a \
2402 $ol_with_ldbm_type = btree ; then
2403 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2407 if test $ol_enable_slurpd = yes ; then
2408 if test $ol_with_threads = no ; then
2409 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2413 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2414 if test $ol_with_kerberos = no ; then
2415 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2417 ol_with_kerberos=yes
2418 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2419 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2420 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2425 if test $ol_enable_spasswd = yes ; then
2426 if test $ol_with_cyrus_sasl = no ; then
2427 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2429 ol_with_cyrus_sasl=yes
2432 echo "$ac_t""done" 1>&6
2458 BUILD_BDB_DYNAMIC=static
2459 BUILD_DNSSRV_DYNAMIC=static
2460 BUILD_LDAP_DYNAMIC=static
2461 BUILD_LDBM_DYNAMIC=static
2462 BUILD_PASSWD_DYNAMIC=static
2463 BUILD_PERL_DYNAMIC=static
2464 BUILD_SHELL_DYNAMIC=static
2465 BUILD_TCL_DYNAMIC=static
2466 BUILD_SQL_DYNAMIC=static
2468 SLAPD_MODULES_LDFLAGS=
2469 SLAPD_MODULES_CPPFLAGS=
2492 cat >> confdefs.h <<\EOF
2493 #define HAVE_MKVERSION 1
2501 *-*-aix*) if test -z "$CC" ; then
2502 case "$ol_with_threads" in
2503 auto | yes | posix) ol_aix_threads=yes ;;
2509 if test $ol_aix_threads = yes ; then
2510 if test -z "${CC}" ; then
2511 for ac_prog in cc_r xlc_r cc
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_word" >&5
2517 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2525 for ac_dir in $ac_dummy; do
2526 test -z "$ac_dir" && ac_dir=.
2527 if test -f $ac_dir/$ac_word; then
2528 ac_cv_prog_CC="$ac_prog"
2536 if test -n "$CC"; then
2537 echo "$ac_t""$CC" 1>&6
2539 echo "$ac_t""no" 1>&6
2542 test -n "$CC" && break
2546 if test "$CC" = cc ; then
2547 if test $ol_with_threads != auto ; then
2548 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2550 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2556 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2557 ol_with_threads=posix
2558 ol_cv_pthread_create=yes
2562 if test -z "${CC}"; then
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_word" >&5
2569 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2577 for ac_dir in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir=.
2579 if test -f $ac_dir/$ac_word; then
2580 ac_cv_prog_CC="$ac_prog"
2588 if test -n "$CC"; then
2589 echo "$ac_t""$CC" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 test -n "$CC" && break
2602 # Check whether --enable-fast-install or --disable-fast-install was given.
2603 if test "${enable_fast_install+set}" = set; then
2604 enableval="$enable_fast_install"
2605 p=${PACKAGE-default}
2606 case "$enableval" in
2607 yes) enable_fast_install=yes ;;
2608 no) enable_fast_install=no ;;
2610 enable_fast_install=no
2611 # Look at the argument we got. We use all the common list separators.
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2613 for pkg in $enableval; do
2614 if test "X$pkg" = "X$p"; then
2615 enable_fast_install=yes
2622 enable_fast_install=yes
2625 # Extract the first word of "ranlib", so it can be a program name with args.
2626 set dummy ranlib; ac_word=$2
2627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_word" >&5
2629 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 if test -n "$RANLIB"; then
2633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2637 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if test -f $ac_dir/$ac_word; then
2640 ac_cv_prog_RANLIB="ranlib"
2645 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2648 RANLIB="$ac_cv_prog_RANLIB"
2649 if test -n "$RANLIB"; then
2650 echo "$ac_t""$RANLIB" 1>&6
2652 echo "$ac_t""no" 1>&6
2655 # Extract the first word of "gcc", so it can be a program name with args.
2656 set dummy gcc; ac_word=$2
2657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_word" >&5
2659 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2667 for ac_dir in $ac_dummy; do
2668 test -z "$ac_dir" && ac_dir=.
2669 if test -f $ac_dir/$ac_word; then
2678 if test -n "$CC"; then
2679 echo "$ac_t""$CC" 1>&6
2681 echo "$ac_t""no" 1>&6
2684 if test -z "$CC"; then
2685 # Extract the first word of "cc", so it can be a program name with args.
2686 set dummy cc; ac_word=$2
2687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_word" >&5
2689 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2698 for ac_dir in $ac_dummy; do
2699 test -z "$ac_dir" && ac_dir=.
2700 if test -f $ac_dir/$ac_word; then
2701 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2702 ac_prog_rejected=yes
2710 if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2714 if test $# -gt 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2719 set dummy "$ac_dir/$ac_word" "$@"
2727 if test -n "$CC"; then
2728 echo "$ac_t""$CC" 1>&6
2730 echo "$ac_t""no" 1>&6
2733 if test -z "$CC"; then
2734 case "`uname -s`" in
2735 *win32* | *WIN32* | *CYGWIN*)
2736 # Extract the first word of "cl", so it can be a program name with args.
2737 set dummy cl; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2748 for ac_dir in $ac_dummy; do
2749 test -z "$ac_dir" && ac_dir=.
2750 if test -f $ac_dir/$ac_word; then
2759 if test -n "$CC"; then
2760 echo "$ac_t""$CC" 1>&6
2762 echo "$ac_t""no" 1>&6
2767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2771 echo "configure:2772: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2778 cross_compiling=$ac_cv_prog_cc_cross
2780 cat > conftest.$ac_ext << EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2788 ac_cv_prog_cc_works=yes
2789 # If we can't run a trivial program, we are probably using a cross compiler.
2790 if (./conftest; exit) 2>/dev/null; then
2791 ac_cv_prog_cc_cross=no
2793 ac_cv_prog_cc_cross=yes
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2798 ac_cv_prog_cc_works=no
2802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2806 cross_compiling=$ac_cv_prog_cc_cross
2808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2809 if test $ac_cv_prog_cc_works = no; then
2810 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2813 echo "configure:2814: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2815 cross_compiling=$ac_cv_prog_cc_cross
2817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2818 echo "configure:2819: checking whether we are using GNU C" >&5
2819 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.c <<EOF
2827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2836 if test $ac_cv_prog_gcc = yes; then
2842 ac_test_CFLAGS="${CFLAGS+set}"
2843 ac_save_CFLAGS="$CFLAGS"
2845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2846 echo "configure:2847: checking whether ${CC-cc} accepts -g" >&5
2847 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 echo 'void f(){}' > conftest.c
2851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2861 if test "$ac_test_CFLAGS" = set; then
2862 CFLAGS="$ac_save_CFLAGS"
2863 elif test $ac_cv_prog_cc_g = yes; then
2864 if test "$GCC" = yes; then
2870 if test "$GCC" = yes; then
2877 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2878 if test "${with_gnu_ld+set}" = set; then
2879 withval="$with_gnu_ld"
2880 test "$withval" = no || with_gnu_ld=yes
2886 if test "$ac_cv_prog_gcc" = yes; then
2887 # Check if gcc -print-prog-name=ld gives a path.
2888 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2889 echo "configure:2890: checking for ld used by GCC" >&5
2890 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2892 # Accept absolute paths.
2893 [\\/]* | [A-Za-z]:[\\/]*)
2894 re_direlt='/[^/][^/]*/\.\./'
2895 # Canonicalize the path of ld
2896 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2898 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2900 test -z "$LD" && LD="$ac_prog"
2903 # If it fails, then pretend we aren't using GCC.
2907 # If it is relative, then search for the first ld in PATH.
2911 elif test "$with_gnu_ld" = yes; then
2912 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2913 echo "configure:2914: checking for GNU ld" >&5
2915 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2916 echo "configure:2917: checking for non-GNU ld" >&5
2918 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 if test -z "$LD"; then
2922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2923 for ac_dir in $PATH; do
2924 test -z "$ac_dir" && ac_dir=.
2925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2926 ac_cv_path_LD="$ac_dir/$ac_prog"
2927 # Check to see if the program is GNU ld. I'd rather use --version,
2928 # but apparently some GNU ld's only accept -v.
2929 # Break only if it was the GNU/non-GNU ld that we prefer.
2930 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2931 test "$with_gnu_ld" != no && break
2933 test "$with_gnu_ld" != yes && break
2939 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2944 if test -n "$LD"; then
2945 echo "$ac_t""$LD" 1>&6
2947 echo "$ac_t""no" 1>&6
2949 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2950 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2951 echo "configure:2952: checking if the linker ($LD) is GNU ld" >&5
2952 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2956 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2957 ac_cv_prog_gnu_ld=yes
2959 ac_cv_prog_gnu_ld=no
2963 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2966 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2967 echo "configure:2968: checking for BSD-compatible nm" >&5
2968 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 if test -n "$NM"; then
2972 # Let the user override the test.
2975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2976 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2977 test -z "$ac_dir" && ac_dir=.
2978 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2979 # Check to see if the nm accepts a BSD-compat flag.
2980 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2981 # nm: unknown option "B" ignored
2982 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2983 ac_cv_path_NM="$ac_dir/nm -B"
2985 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2986 ac_cv_path_NM="$ac_dir/nm -p"
2989 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2990 continue # so that we can try to find one that supports BSD flags
2995 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3000 echo "$ac_t""$NM" 1>&6
3002 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3003 echo "configure:3004: checking whether ln -s works" >&5
3004 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3008 if ln -s X conftestdata 2>/dev/null
3011 ac_cv_prog_LN_S="ln -s"
3016 LN_S="$ac_cv_prog_LN_S"
3017 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3018 echo "$ac_t""yes" 1>&6
3020 echo "$ac_t""no" 1>&6
3023 if test $host != $build; then
3024 ac_tool_prefix=${host_alias}-
3031 NONE) lt_target="$host" ;;
3032 *) lt_target="$target" ;;
3035 # Check for any special flags to pass to ltconfig.
3036 libtool_flags="--cache-file=$cache_file"
3037 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3038 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3039 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3040 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3041 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3042 libtool_flags="$libtool_flags --enable-dlopen"
3043 libtool_flags="$libtool_flags --enable-win32-dll"
3044 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3045 if test "${enable_libtool_lock+set}" = set; then
3046 enableval="$enable_libtool_lock"
3050 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3051 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3053 # Some flags need to be propagated to the compiler or linker for good
3055 case "$lt_target" in
3057 # Find out which ABI we are using.
3058 echo '#line 3059 "configure"' > conftest.$ac_ext
3059 if { (eval echo configure:3060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3060 case "`/usr/bin/file conftest.o`" in
3076 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3077 SAVE_CFLAGS="$CFLAGS"
3078 CFLAGS="$CFLAGS -belf"
3079 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether the C compiler needs -belf" >&5
3081 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 lt_cv_cc_needs_belf=yes
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 lt_cv_cc_needs_belf=no
3104 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3107 CFLAGS="$SAVE_CFLAGS"
3111 *-*-cygwin* | *-*-mingw*)
3112 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_word" >&5
3116 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 if test -n "$DLLTOOL"; then
3120 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3124 for ac_dir in $ac_dummy; do
3125 test -z "$ac_dir" && ac_dir=.
3126 if test -f $ac_dir/$ac_word; then
3127 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3134 DLLTOOL="$ac_cv_prog_DLLTOOL"
3135 if test -n "$DLLTOOL"; then
3136 echo "$ac_t""$DLLTOOL" 1>&6
3138 echo "$ac_t""no" 1>&6
3142 if test -z "$ac_cv_prog_DLLTOOL"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "dlltool", so it can be a program name with args.
3145 set dummy dlltool; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 if test -n "$DLLTOOL"; then
3152 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3156 for ac_dir in $ac_dummy; do
3157 test -z "$ac_dir" && ac_dir=.
3158 if test -f $ac_dir/$ac_word; then
3159 ac_cv_prog_DLLTOOL="dlltool"
3164 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3167 DLLTOOL="$ac_cv_prog_DLLTOOL"
3168 if test -n "$DLLTOOL"; then
3169 echo "$ac_t""$DLLTOOL" 1>&6
3171 echo "$ac_t""no" 1>&6
3179 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}as; ac_word=$2
3181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_word" >&5
3183 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 if test -n "$AS"; then
3187 ac_cv_prog_AS="$AS" # Let the user override the test.
3189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3191 for ac_dir in $ac_dummy; do
3192 test -z "$ac_dir" && ac_dir=.
3193 if test -f $ac_dir/$ac_word; then
3194 ac_cv_prog_AS="${ac_tool_prefix}as"
3202 if test -n "$AS"; then
3203 echo "$ac_t""$AS" 1>&6
3205 echo "$ac_t""no" 1>&6
3209 if test -z "$ac_cv_prog_AS"; then
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "as", so it can be a program name with args.
3212 set dummy as; ac_word=$2
3213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3214 echo "configure:3215: checking for $ac_word" >&5
3215 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 if test -n "$AS"; then
3219 ac_cv_prog_AS="$AS" # Let the user override the test.
3221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3223 for ac_dir in $ac_dummy; do
3224 test -z "$ac_dir" && ac_dir=.
3225 if test -f $ac_dir/$ac_word; then
3231 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3235 if test -n "$AS"; then
3236 echo "$ac_t""$AS" 1>&6
3238 echo "$ac_t""no" 1>&6
3246 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3249 echo "configure:3250: checking for $ac_word" >&5
3250 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 if test -n "$OBJDUMP"; then
3254 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3258 for ac_dir in $ac_dummy; do
3259 test -z "$ac_dir" && ac_dir=.
3260 if test -f $ac_dir/$ac_word; then
3261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3268 OBJDUMP="$ac_cv_prog_OBJDUMP"
3269 if test -n "$OBJDUMP"; then
3270 echo "$ac_t""$OBJDUMP" 1>&6
3272 echo "$ac_t""no" 1>&6
3276 if test -z "$ac_cv_prog_OBJDUMP"; then
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "objdump", so it can be a program name with args.
3279 set dummy objdump; ac_word=$2
3280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_word" >&5
3282 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 if test -n "$OBJDUMP"; then
3286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3290 for ac_dir in $ac_dummy; do
3291 test -z "$ac_dir" && ac_dir=.
3292 if test -f $ac_dir/$ac_word; then
3293 ac_cv_prog_OBJDUMP="objdump"
3298 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3301 OBJDUMP="$ac_cv_prog_OBJDUMP"
3302 if test -n "$OBJDUMP"; then
3303 echo "$ac_t""$OBJDUMP" 1>&6
3305 echo "$ac_t""no" 1>&6
3318 # Save cache, so that ltconfig can load it
3321 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3322 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3323 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3324 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3325 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3326 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3327 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3328 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3330 # Reload cache, that may have been modified by ltconfig
3333 # This can be used to rebuild libtool when needed
3334 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3336 # Always use our own libtool.
3337 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3339 # Redirect the config.log output again, so that the ltconfig log is not
3340 # clobbered by the next message.
3341 exec 5>>./config.log
3344 for ac_prog in mawk gawk nawk awk
3346 # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_word" >&5
3350 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 if test -n "$AWK"; then
3354 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 for ac_dir in $ac_dummy; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f $ac_dir/$ac_word; then
3361 ac_cv_prog_AWK="$ac_prog"
3368 AWK="$ac_cv_prog_AWK"
3369 if test -n "$AWK"; then
3370 echo "$ac_t""$AWK" 1>&6
3372 echo "$ac_t""no" 1>&6
3375 test -n "$AWK" && break
3378 # test for ln hardlink support
3379 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3380 echo "configure:3381: checking whether ln works" >&5
3381 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 rm -f conftest.src conftest.dst
3385 echo "conftest" > conftest.src
3386 if ln conftest.src conftest.dst 2>/dev/null
3388 ol_cv_prog_LN_H="ln"
3390 ol_cv_prog_LN_H="cp"
3392 rm -f conftest.src conftest.dst
3395 LN_H="$ol_cv_prog_LN_H"
3396 if test "$ol_cv_prog_LN_H" = "ln"; then
3397 echo "$ac_t""yes" 1>&6
3399 echo "$ac_t""no" 1>&6
3402 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3403 echo "configure:3404: checking whether ln -s works" >&5
3404 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3408 if ln -s X conftestdata 2>/dev/null
3411 ac_cv_prog_LN_S="ln -s"
3416 LN_S="$ac_cv_prog_LN_S"
3417 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3418 echo "$ac_t""yes" 1>&6
3420 echo "$ac_t""no" 1>&6
3424 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3428 # Extract the first word of "sendmail", so it can be a program name with args.
3429 set dummy sendmail; ac_word=$2
3430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_word" >&5
3432 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3437 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3440 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3444 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3445 for ac_dir in $ac_dummy; do
3446 test -z "$ac_dir" && ac_dir=.
3447 if test -f $ac_dir/$ac_word; then
3448 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3453 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3457 SENDMAIL="$ac_cv_path_SENDMAIL"
3458 if test -n "$SENDMAIL"; then
3459 echo "$ac_t""$SENDMAIL" 1>&6
3461 echo "$ac_t""no" 1>&6
3464 # Extract the first word of "vi", so it can be a program name with args.
3465 set dummy vi; ac_word=$2
3466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3467 echo "configure:3468: checking for $ac_word" >&5
3468 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3476 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 ac_dummy="$PATH:/usr/ucb"
3481 for ac_dir in $ac_dummy; do
3482 test -z "$ac_dir" && ac_dir=.
3483 if test -f $ac_dir/$ac_word; then
3484 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3489 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3493 EDITOR="$ac_cv_path_EDITOR"
3494 if test -n "$EDITOR"; then
3495 echo "$ac_t""$EDITOR" 1>&6
3497 echo "$ac_t""no" 1>&6
3500 # Extract the first word of "finger", so it can be a program name with args.
3501 set dummy finger; ac_word=$2
3502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3503 echo "configure:3504: checking for $ac_word" >&5
3504 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3509 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3512 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3516 ac_dummy="$PATH:/usr/ucb"
3517 for ac_dir in $ac_dummy; do
3518 test -z "$ac_dir" && ac_dir=.
3519 if test -f $ac_dir/$ac_word; then
3520 ac_cv_path_FINGER="$ac_dir/$ac_word"
3525 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3529 FINGER="$ac_cv_path_FINGER"
3530 if test -n "$FINGER"; then
3531 echo "$ac_t""$FINGER" 1>&6
3533 echo "$ac_t""no" 1>&6
3538 if test $ol_enable_perl != no ; then
3539 # Extract the first word of "perl", so it can be a program name with args.
3540 set dummy perl; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3548 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3551 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/$ac_word; then
3559 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3564 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3568 PERLBIN="$ac_cv_path_PERLBIN"
3569 if test -n "$PERLBIN"; then
3570 echo "$ac_t""$PERLBIN" 1>&6
3572 echo "$ac_t""no" 1>&6
3576 if test "no$PERLBIN" = "no" ; then
3577 if test $ol_enable_perl = yes ; then
3578 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3582 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3583 if test x"$ol_with_perl_module" = "xstatic" ; then
3584 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3586 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3592 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3593 echo "configure:3594: checking how to run the C preprocessor" >&5
3594 # On Suns, sometimes $CPP names a directory.
3595 if test -n "$CPP" && test -d "$CPP"; then
3598 if test -z "$CPP"; then
3599 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 # This must be in double quotes, not single quotes, because CPP may get
3603 # substituted into the Makefile and "${CC-cc}" will confuse make.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp.
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3614 { (eval echo configure:3615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3616 if test -z "$ac_err"; then
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 CPP="${CC-cc} -E -traditional-cpp"
3624 cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633 if test -z "$ac_err"; then
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 CPP="${CC-cc} -nologo -E"
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3648 { (eval echo configure:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3650 if test -z "$ac_err"; then
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3664 ac_cv_prog_CPP="$CPP"
3666 CPP="$ac_cv_prog_CPP"
3668 ac_cv_prog_CPP="$CPP"
3670 echo "$ac_t""$CPP" 1>&6
3673 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3674 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3676 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3677 echo "configure: warning: programs compiled here do run here..." 1>&2
3678 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3680 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3681 echo "configure: warning: programs compiled here do not run here..." 1>&2
3682 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3685 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3686 echo "configure:3687: checking for AIX" >&5
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 egrep "yes" >/dev/null 2>&1; then
3698 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3699 #define _ALL_SOURCE 1
3704 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3710 echo "configure:3711: checking for POSIXized ISC" >&5
3711 if test -d /etc/conf/kconfig.d &&
3712 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3714 echo "$ac_t""yes" 1>&6
3715 ISC=yes # If later tests want to check for ISC.
3716 cat >> confdefs.h <<\EOF
3717 #define _POSIX_SOURCE 1
3720 if test "$GCC" = yes; then
3726 echo "$ac_t""no" 1>&6
3730 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3731 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3732 echo "configure:3733: checking for minix/config.h" >&5
3733 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <minix/config.h>
3741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3742 { (eval echo configure:3743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3744 if test -z "$ac_err"; then
3746 eval "ac_cv_header_$ac_safe=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_header_$ac_safe=no"
3756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3760 echo "$ac_t""no" 1>&6
3764 if test "$MINIX" = yes; then
3765 cat >> confdefs.h <<\EOF
3766 #define _POSIX_SOURCE 1
3769 cat >> confdefs.h <<\EOF
3770 #define _POSIX_1_SOURCE 2
3773 cat >> confdefs.h <<\EOF
3780 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3781 echo "configure:3782: checking for Cygwin environment" >&5
3782 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3792 #define __CYGWIN__ __CYGWIN32__
3797 if { (eval echo configure:3798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3809 echo "$ac_t""$ac_cv_cygwin" 1>&6
3811 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3812 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3813 echo "configure:3814: checking for mingw32 environment" >&5
3814 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3837 echo "$ac_t""$ac_cv_mingw32" 1>&6
3839 test "$ac_cv_mingw32" = yes && MINGW32=yes
3840 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3841 echo "configure:3842: checking for EMX OS/2 environment" >&5
3842 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3853 if { (eval echo configure:3854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3865 echo "$ac_t""$ac_cv_emxos2" 1>&6
3867 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3871 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3872 echo "configure:3873: checking for executable suffix" >&5
3873 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3880 echo 'int main () { return 0; }' > conftest.$ac_ext
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3883 for file in conftest.*; do
3885 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3886 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3890 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3893 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3898 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3899 echo "$ac_t""${ac_cv_exeext}" 1>&6
3902 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3903 echo "configure:3904: checking for object suffix" >&5
3904 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3908 echo 'int i = 1;' > conftest.$ac_ext
3909 if { (eval echo configure:3910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 for ac_file in conftest.*; do
3913 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3917 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3922 echo "$ac_t""$ac_cv_objext" 1>&6
3923 OBJEXT=$ac_cv_objext
3924 ac_objext=$ac_cv_objext
3927 cat >> confdefs.h <<EOF
3928 #define EXEEXT "${EXEEXT}"
3932 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3933 echo "configure:3934: checking for be_app in -lbe" >&5
3934 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 ac_save_LIBS="$LIBS"
3939 LIBS="-lbe -lroot -lnet $LIBS"
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3954 eval "ac_cv_lib_$ac_lib_var=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_lib_$ac_lib_var=no"
3962 LIBS="$ac_save_LIBS"
3965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3967 LIBS="$LIBS -lbe -lroot -lnet"
3969 echo "$ac_t""no" 1>&6
3977 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3978 echo "configure:3979: checking for ${CC-cc} option to accept ANSI C" >&5
3979 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 am_cv_prog_cc_stdc=no
3984 # Don't try gcc -ansi; that turns off useful extensions and
3985 # breaks some systems' header files.
3986 # AIX -qlanglvl=ansi
3987 # Ultrix and OSF/1 -std1
3988 # HP-UX 10.20 and later -Ae
3989 # HP-UX older versions -Aa -D_HPUX_SOURCE
3990 # SVR4 -Xc -D__EXTENSIONS__
3991 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3993 CC="$ac_save_CC $ac_arg"
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3999 #include <sys/types.h>
4000 #include <sys/stat.h>
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4015 s = g (p, va_arg (v,int));
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 am_cv_prog_cc_stdc="$ac_arg"; break
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4045 if test -z "$am_cv_prog_cc_stdc"; then
4046 echo "$ac_t""none needed" 1>&6
4048 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4050 case "x$am_cv_prog_cc_stdc" in
4052 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4055 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4056 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4059 # test for make depend flag
4062 if test -z "${MKDEP}"; then
4064 if test -z "${MKDEP_FLAGS}"; then
4065 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4066 echo "configure:4067: checking for ${OL_MKDEP} depend flag" >&5
4067 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4072 for flag in "-M" "-xM"; do
4073 cat > conftest.c <<EOF
4076 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4077 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4079 if test ! -f conftest."${ac_object}" ; then
4081 OL_MKDEP_FLAGS="$flag"
4090 echo "$ac_t""$ol_cv_mkdep" 1>&6
4093 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4098 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4103 if test "${ol_cv_mkdep}" = no ; then
4104 # this will soon become an error
4105 echo "configure: warning: do not know how to generate dependencies" 1>&2
4108 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4109 echo "configure:4110: checking for afopen in -ls" >&5
4110 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 ac_save_LIBS="$LIBS"
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 /* Override any gcc2 internal prototype to avoid an error. */
4120 /* We use char because int might match the return type of a gcc2
4121 builtin and then its argument prototype would still apply. */
4128 if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 eval "ac_cv_lib_$ac_lib_var=yes"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 eval "ac_cv_lib_$ac_lib_var=no"
4138 LIBS="$ac_save_LIBS"
4141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_AIX_SECURITY 1
4151 echo "$ac_t""no" 1>&6
4157 if test $ol_enable_modules != no ; then
4158 for ac_hdr in ltdl.h
4160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4162 echo "configure:4163: checking for $ac_hdr" >&5
4163 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4172 { (eval echo configure:4173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4174 if test -z "$ac_err"; then
4176 eval "ac_cv_header_$ac_safe=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 eval "ac_cv_header_$ac_safe=no"
4186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4189 cat >> confdefs.h <<EOF
4190 #define $ac_tr_hdr 1
4194 echo "$ac_t""no" 1>&6
4199 if test $ac_cv_header_ltdl_h = no ; then
4200 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4203 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4204 echo "configure:4205: checking for lt_dlinit in -lltdl" >&5
4205 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 ac_save_LIBS="$LIBS"
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 eval "ac_cv_lib_$ac_lib_var=yes"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4230 eval "ac_cv_lib_$ac_lib_var=no"
4233 LIBS="$ac_save_LIBS"
4236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4240 cat >> confdefs.h <<\EOF
4241 #define HAVE_LIBLTDL 1
4246 echo "$ac_t""no" 1>&6
4250 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4251 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4255 ol_with_bdb_module=static
4256 ol_with_dnssrv_module=static
4257 ol_with_ldap_module=static
4258 ol_with_ldbm_module=static
4259 ol_with_passwd_module=static
4260 ol_with_perl_module=static
4261 ol_with_shell_module=static
4262 ol_with_tcl_module=static
4263 ol_with_sql_module=static
4267 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4268 echo "configure:4269: checking for EBCDIC" >&5
4269 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4278 #include <__ASCII__/generate_error.h>
4282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4283 { (eval echo configure:4284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4285 if test -z "$ac_err"; then
4287 ol_cv_cpp_ebcdic=yes
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4298 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4299 if test $ol_cv_cpp_ebcdic = yes ; then
4300 cat >> confdefs.h <<\EOF
4301 #define HAVE_EBCDIC 1
4306 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4307 echo "configure:4308: checking for ANSI C header files" >&5
4308 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4320 { (eval echo configure:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4322 if test -z "$ac_err"; then
4324 ol_cv_header_stdc=yes
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 ol_cv_header_stdc=no
4334 if test $ol_cv_header_stdc = yes; then
4335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 egrep "memchr" >/dev/null 2>&1; then
4346 ol_cv_header_stdc=no
4352 if test $ol_cv_header_stdc = yes; then
4353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360 egrep "free" >/dev/null 2>&1; then
4364 ol_cv_header_stdc=no
4370 if test $ol_cv_header_stdc = yes; then
4371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4372 if test "$cross_compiling" = yes; then
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4383 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4384 || ('j' <= (c) && (c) <= 'r') \
4385 || ('s' <= (c) && (c) <= 'z'))
4386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4389 int main () { int i; for (i = 0; i < 256; i++)
4390 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4401 ol_cv_header_stdc=no
4409 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4410 if test $ol_cv_header_stdc = yes; then
4411 cat >> confdefs.h <<\EOF
4412 #define STDC_HEADERS 1
4416 ac_cv_header_stdc=disable
4419 if test $ol_cv_header_stdc != yes; then
4420 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4424 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4427 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_hdr that defines DIR" >&5
4429 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 #include <sys/types.h>
4441 if { (eval echo configure:4442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4443 eval "ac_cv_header_dirent_$ac_safe=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 eval "ac_cv_header_dirent_$ac_safe=no"
4452 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_hdr 1
4458 ac_header_dirent=$ac_hdr; break
4460 echo "$ac_t""no" 1>&6
4463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4464 if test $ac_header_dirent = dirent.h; then
4465 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4466 echo "configure:4467: checking for opendir in -ldir" >&5
4467 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4468 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4471 ac_save_LIBS="$LIBS"
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4485 if { (eval echo configure:4486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4487 eval "ac_cv_lib_$ac_lib_var=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4492 eval "ac_cv_lib_$ac_lib_var=no"
4495 LIBS="$ac_save_LIBS"
4498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4502 echo "$ac_t""no" 1>&6
4506 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4507 echo "configure:4508: checking for opendir in -lx" >&5
4508 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 ac_save_LIBS="$LIBS"
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 eval "ac_cv_lib_$ac_lib_var=no"
4536 LIBS="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4543 echo "$ac_t""no" 1>&6
4548 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4549 echo "configure:4550: checking for sys/wait.h that is POSIX.1 compatible" >&5
4550 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 #include <sys/types.h>
4557 #include <sys/wait.h>
4559 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4562 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4567 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4570 if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4572 ac_cv_header_sys_wait_h=yes
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 ac_cv_header_sys_wait_h=no
4582 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4583 if test $ac_cv_header_sys_wait_h = yes; then
4584 cat >> confdefs.h <<\EOF
4585 #define HAVE_SYS_WAIT_H 1
4590 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4591 echo "configure:4592: checking POSIX termios" >&5
4592 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 #include <sys/types.h>
4600 #include <termios.h>
4602 /* SunOS 4.0.3 has termios.h but not the library calls. */
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 am_cv_sys_posix_termios=yes
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 am_cv_sys_posix_termios=no
4618 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4621 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4622 echo "configure:4623: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4623 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4628 gwinsz_in_termios_h=no
4629 if test $am_cv_sys_posix_termios = yes; then
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <sys/types.h>
4634 # include <termios.h>
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 egrep "yes" >/dev/null 2>&1; then
4643 gwinsz_in_termios_h=yes
4649 if test $gwinsz_in_termios_h = no; then
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <sys/types.h>
4654 # include <sys/ioctl.h>
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 egrep "yes" >/dev/null 2>&1; then
4663 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4671 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4672 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4673 cat >> confdefs.h <<\EOF
4674 #define GWINSZ_IN_SYS_IOCTL 1
4679 if test $am_cv_sys_posix_termios = yes ; then
4680 cat >> confdefs.h <<\EOF
4681 #define HAVE_POSIX_TERMIOS 1
4732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4748 eval "ac_cv_header_$ac_safe=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_header_$ac_safe=no"
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h <<EOF
4762 #define $ac_tr_hdr 1
4766 echo "$ac_t""no" 1>&6
4773 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4774 echo "configure:4775: checking for sigset in -lV3" >&5
4775 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4776 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4779 ac_save_LIBS="$LIBS"
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4784 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4795 eval "ac_cv_lib_$ac_lib_var=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4800 eval "ac_cv_lib_$ac_lib_var=no"
4803 LIBS="$ac_save_LIBS"
4806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4807 echo "$ac_t""yes" 1>&6
4808 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4810 cat >> confdefs.h <<EOF
4811 #define $ac_tr_lib 1
4817 echo "$ac_t""no" 1>&6
4821 if test $ac_cv_header_winsock_h = yes; then
4822 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4823 echo "configure:4824: checking for winsock" >&5
4824 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <winsock.h>
4834 select(0,NULL,NULL,NULL,NULL);
4836 gethostname(NULL,0);
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4852 echo "$ac_t""$ol_cv_winsock" 1>&6
4854 if test $ol_cv_winsock = yes ; then
4855 cat >> confdefs.h <<\EOF
4856 #define HAVE_WINSOCK 1
4859 ac_cv_func_socket=yes
4860 ac_cv_func_select=yes
4861 ac_cv_func_closesocket=yes
4862 ac_cv_func_gethostname=yes
4867 echo $ac_n "checking for socket""... $ac_c" 1>&6
4868 echo "configure:4869: checking for socket" >&5
4869 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 /* System header to define __stub macros and hopefully few prototypes,
4876 which can conflict with char socket(); below. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4886 /* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889 #if defined (__stub_socket) || defined (__stub___socket)
4897 if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4899 eval "ac_cv_func_socket=yes"
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 eval "ac_cv_func_socket=no"
4909 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4913 echo "$ac_t""no" 1>&6
4915 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4916 echo "configure:4917: checking for main in -lsocket" >&5
4917 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4921 ac_save_LIBS="$LIBS"
4922 LIBS="-lsocket $LIBS"
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4933 eval "ac_cv_lib_$ac_lib_var=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 eval "ac_cv_lib_$ac_lib_var=no"
4941 LIBS="$ac_save_LIBS"
4944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4945 echo "$ac_t""yes" 1>&6
4946 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4947 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4948 cat >> confdefs.h <<EOF
4949 #define $ac_tr_lib 1
4952 LIBS="-lsocket $LIBS"
4955 echo "$ac_t""no" 1>&6
4958 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4959 echo "configure:4960: checking for main in -lnet" >&5
4960 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4961 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 ac_save_LIBS="$LIBS"
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 eval "ac_cv_lib_$ac_lib_var=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 eval "ac_cv_lib_$ac_lib_var=no"
4984 LIBS="$ac_save_LIBS"
4987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4988 echo "$ac_t""yes" 1>&6
4989 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4990 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4991 cat >> confdefs.h <<EOF
4992 #define $ac_tr_lib 1
4998 echo "$ac_t""no" 1>&6
5001 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5002 echo "configure:5003: checking for main in -lnsl_s" >&5
5003 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5004 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 ac_save_LIBS="$LIBS"
5008 LIBS="-lnsl_s $LIBS"
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5017 if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 eval "ac_cv_lib_$ac_lib_var=yes"
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5024 eval "ac_cv_lib_$ac_lib_var=no"
5027 LIBS="$ac_save_LIBS"
5030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5031 echo "$ac_t""yes" 1>&6
5032 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5033 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5034 cat >> confdefs.h <<EOF
5035 #define $ac_tr_lib 1
5038 LIBS="-lnsl_s $LIBS"
5041 echo "$ac_t""no" 1>&6
5044 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5045 echo "configure:5046: checking for main in -lnsl" >&5
5046 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5047 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 ac_save_LIBS="$LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_lib 1
5084 echo "$ac_t""no" 1>&6
5087 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5088 echo "configure:5089: checking for socket in -linet" >&5
5089 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 ac_save_LIBS="$LIBS"
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */
5107 if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5109 eval "ac_cv_lib_$ac_lib_var=yes"
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5114 eval "ac_cv_lib_$ac_lib_var=no"
5117 LIBS="$ac_save_LIBS"
5120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5124 cat >> confdefs.h <<EOF
5125 #define $ac_tr_lib 1
5131 echo "$ac_t""no" 1>&6
5134 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5135 echo "configure:5136: checking for main in -lgen" >&5
5136 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 eval "ac_cv_lib_$ac_lib_var=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_lib_$ac_lib_var=no"
5160 LIBS="$ac_save_LIBS"
5163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5165 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_lib 1
5174 echo "$ac_t""no" 1>&6
5181 echo $ac_n "checking for select""... $ac_c" 1>&6
5182 echo "configure:5183: checking for select" >&5
5183 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5189 /* System header to define __stub macros and hopefully few prototypes,
5190 which can conflict with char select(); below. */
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5200 /* The GNU C library defines this for functions which it implements
5201 to always fail with ENOSYS. Some functions are actually named
5202 something starting with __ and the normal name is an alias. */
5203 #if defined (__stub_select) || defined (__stub___select)
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 eval "ac_cv_func_select=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 eval "ac_cv_func_select=no"
5223 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5227 echo "$ac_t""no" 1>&6
5228 { echo "configure: error: select() required." 1>&2; exit 1; }
5232 if test "${ac_cv_header_winsock_h}" != yes; then
5233 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5234 echo "configure:5235: checking types of arguments for select()" >&5
5235 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5241 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5245 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5246 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 #ifdef HAVE_SYS_TYPES_H
5251 #include <sys/types.h>
5253 #ifdef HAVE_SYS_TIME_H
5254 #include <sys/time.h>
5256 #ifdef HAVE_SYS_SELECT_H
5257 #include <sys/select.h>
5259 #ifdef HAVE_SYS_SOCKET_H
5260 #include <sys/socket.h>
5262 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);
5267 if { (eval echo configure:5268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5269 ac_not_found=no ; break 3
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5286 if test "$ac_not_found" = yes; then
5287 ac_cv_func_select_arg1=int
5288 ac_cv_func_select_arg234='int *'
5289 ac_cv_func_select_arg5='struct timeval *'
5291 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5292 cat >> confdefs.h <<EOF
5293 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5296 cat >> confdefs.h <<EOF
5297 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5300 cat >> confdefs.h <<EOF
5301 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5308 for ac_hdr in regex.h
5310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5312 echo "configure:5313: checking for $ac_hdr" >&5
5313 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5322 { (eval echo configure:5323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5324 if test -z "$ac_err"; then
5326 eval "ac_cv_header_$ac_safe=yes"
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5332 eval "ac_cv_header_$ac_safe=no"
5336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5337 echo "$ac_t""yes" 1>&6
5338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5339 cat >> confdefs.h <<EOF
5340 #define $ac_tr_hdr 1
5344 echo "$ac_t""no" 1>&6
5348 if test "$ac_cv_header_regex_h" != yes ; then
5349 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5351 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5352 echo "configure:5353: checking for regfree" >&5
5353 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 cat > conftest.$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5359 /* System header to define __stub macros and hopefully few prototypes,
5360 which can conflict with char regfree(); below. */
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5370 /* The GNU C library defines this for functions which it implements
5371 to always fail with ENOSYS. Some functions are actually named
5372 something starting with __ and the normal name is an alias. */
5373 #if defined (__stub_regfree) || defined (__stub___regfree)
5381 if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 eval "ac_cv_func_regfree=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 eval "ac_cv_func_regfree=no"
5393 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5397 echo "$ac_t""no" 1>&6
5398 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5403 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5404 echo "configure:5405: checking for compatible POSIX regex" >&5
5405 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5409 if test "$cross_compiling" = yes; then
5410 ol_cv_c_posix_regex=cross
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5416 #include <sys/types.h>
5418 static char *pattern, *string;
5426 if(regcomp(&re, pattern, 0)) {
5430 string = "ALL MATCH";
5432 rc = regexec(&re, string, 0, (void*)0, 0);
5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5441 ol_cv_c_posix_regex=yes
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 ol_cv_c_posix_regex=no
5453 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5455 if test "$ol_cv_c_posix_regex" = no ; then
5456 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5460 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5461 echo "configure:5462: checking for res_query" >&5
5462 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 /* System header to define __stub macros and hopefully few prototypes,
5469 which can conflict with char res_query(); below. */
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5479 /* The GNU C library defines this for functions which it implements
5480 to always fail with ENOSYS. Some functions are actually named
5481 something starting with __ and the normal name is an alias. */
5482 #if defined (__stub_res_query) || defined (__stub___res_query)
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5492 eval "ac_cv_func_res_query=yes"
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5497 eval "ac_cv_func_res_query=no"
5502 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5506 echo "$ac_t""no" 1>&6
5509 if test $ac_cv_func_res_query = no ; then
5510 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5511 echo "configure:5512: checking for res_query in -lbind" >&5
5512 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5513 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 ac_save_LIBS="$LIBS"
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 /* Override any gcc2 internal prototype to avoid an error. */
5522 /* We use char because int might match the return type of a gcc2
5523 builtin and then its argument prototype would still apply. */
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 eval "ac_cv_lib_$ac_lib_var=yes"
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5537 eval "ac_cv_lib_$ac_lib_var=no"
5540 LIBS="$ac_save_LIBS"
5543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5546 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5547 cat >> confdefs.h <<EOF
5548 #define $ac_tr_lib 1
5554 echo "$ac_t""no" 1>&6
5557 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5560 if test $ac_cv_func_res_query = no ; then
5561 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5562 echo "configure:5563: checking for __res_query in -lbind" >&5
5563 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5564 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5567 ac_save_LIBS="$LIBS"
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5572 /* Override any gcc2 internal prototype to avoid an error. */
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 eval "ac_cv_lib_$ac_lib_var=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5588 eval "ac_cv_lib_$ac_lib_var=no"
5591 LIBS="$ac_save_LIBS"
5594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5595 echo "$ac_t""yes" 1>&6
5596 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5598 cat >> confdefs.h <<EOF
5599 #define $ac_tr_lib 1
5605 echo "$ac_t""no" 1>&6
5608 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5611 if test $ac_cv_func_res_query = no ; then
5612 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5613 echo "configure:5614: checking for res_query in -lresolv" >&5
5614 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5615 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 ac_save_LIBS="$LIBS"
5619 LIBS="-lresolv $LIBS"
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 eval "ac_cv_lib_$ac_lib_var=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 eval "ac_cv_lib_$ac_lib_var=no"
5642 LIBS="$ac_save_LIBS"
5645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5649 cat >> confdefs.h <<EOF
5650 #define $ac_tr_lib 1
5653 LIBS="-lresolv $LIBS"
5656 echo "$ac_t""no" 1>&6
5659 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5662 if test "$ac_cv_func_res_query" = yes ; then
5663 cat >> confdefs.h <<\EOF
5664 #define HAVE_RES_QUERY 1
5668 if test $ol_enable_dnssrv != no ; then
5673 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5674 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5677 for ac_func in getaddrinfo
5679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_func" >&5
5681 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* System header to define __stub macros and hopefully few prototypes,
5688 which can conflict with char $ac_func(); below. */
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5698 /* The GNU C library defines this for functions which it implements
5699 to always fail with ENOSYS. Some functions are actually named
5700 something starting with __ and the normal name is an alias. */
5701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711 eval "ac_cv_func_$ac_func=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 eval "ac_cv_func_$ac_func=no"
5721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5722 echo "$ac_t""yes" 1>&6
5723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5724 cat >> confdefs.h <<EOF
5725 #define $ac_tr_func 1
5729 echo "$ac_t""no" 1>&6
5735 if test $ac_cv_func_getaddrinfo = no ; then
5736 if test $ol_enable_ipv6 = yes ; then
5737 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
5740 for ac_func in gai_strerror
5742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5743 echo "configure:5744: checking for $ac_func" >&5
5744 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 /* System header to define __stub macros and hopefully few prototypes,
5751 which can conflict with char $ac_func(); below. */
5753 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5761 /* The GNU C library defines this for functions which it implements
5762 to always fail with ENOSYS. Some functions are actually named
5763 something starting with __ and the normal name is an alias. */
5764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5774 eval "ac_cv_func_$ac_func=yes"
5776 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5779 eval "ac_cv_func_$ac_func=no"
5784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5785 echo "$ac_t""yes" 1>&6
5786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5787 cat >> confdefs.h <<EOF
5788 #define $ac_tr_func 1
5792 echo "$ac_t""no" 1>&6
5797 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5798 echo "configure:5799: checking INET6_ADDRSTRLEN" >&5
5799 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5800 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5807 # include <netinet/in.h>
5808 # ifdef INET6_ADDRSTRLEN
5809 __has_inet6_addrstrlen__;
5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5814 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5816 ol_cv_inet6_addrstrlen=yes
5819 ol_cv_inet6_addrstrlen=no
5825 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5827 if test $ol_cv_inet6_addrstrlen = yes ; then
5829 elif test $ol_enable_ipv6 = yes ; then
5830 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5834 if test $ol_enable_local != no ; then
5835 for ac_hdr in sys/un.h
5837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5839 echo "configure:5840: checking for $ac_hdr" >&5
5840 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5849 { (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5851 if test -z "$ac_err"; then
5853 eval "ac_cv_header_$ac_safe=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 eval "ac_cv_header_$ac_safe=no"
5863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5866 cat >> confdefs.h <<EOF
5867 #define $ac_tr_hdr 1
5871 echo "$ac_t""no" 1>&6
5876 if test $ol_enable_local = auto ; then
5877 ol_enable_local=$ac_cv_header_sys_un_h
5878 elif test $ac_cv_header_sys_un_h = no ; then
5879 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5888 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5889 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5890 -o $ol_with_kerberos = k425 ; then
5892 for ac_hdr in krb5.h
5894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5896 echo "configure:5897: checking for $ac_hdr" >&5
5897 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5898 echo $ac_n "(cached) $ac_c" 1>&6
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5906 { (eval echo configure:5907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5908 if test -z "$ac_err"; then
5910 eval "ac_cv_header_$ac_safe=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_header_$ac_safe=no"
5920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5923 cat >> confdefs.h <<EOF
5924 #define $ac_tr_hdr 1
5928 echo "$ac_t""no" 1>&6
5933 if test $ac_cv_header_krb5_h = yes ; then
5934 for ac_hdr in heim_err.h
5936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5938 echo "configure:5939: checking for $ac_hdr" >&5
5939 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5940 echo $ac_n "(cached) $ac_c" 1>&6
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5948 { (eval echo configure:5949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5950 if test -z "$ac_err"; then
5952 eval "ac_cv_header_$ac_safe=yes"
5955 echo "configure: failed program was:" >&5
5956 cat conftest.$ac_ext >&5
5958 eval "ac_cv_header_$ac_safe=no"
5962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5965 cat >> confdefs.h <<EOF
5966 #define $ac_tr_hdr 1
5970 echo "$ac_t""no" 1>&6
5974 if test $ac_cv_header_heim_err_h = yes ; then
5980 if test $krb5_impl = mit; then
5981 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5982 echo "configure:5983: checking for main in -lkrb5" >&5
5983 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5987 ac_save_LIBS="$LIBS"
5988 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5997 if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5999 eval "ac_cv_lib_$ac_lib_var=yes"
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6004 eval "ac_cv_lib_$ac_lib_var=no"
6007 LIBS="$ac_save_LIBS"
6010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6011 echo "$ac_t""yes" 1>&6
6013 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6015 echo "$ac_t""no" 1>&6
6020 elif test $krb5_impl = heimdal; then
6021 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6022 echo "configure:6023: checking for main in -lkrb5" >&5
6023 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 ac_save_LIBS="$LIBS"
6028 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 eval "ac_cv_lib_$ac_lib_var=yes"
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_lib_$ac_lib_var=no"
6047 LIBS="$ac_save_LIBS"
6050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6053 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6055 echo "$ac_t""no" 1>&6
6060 cat >> confdefs.h <<\EOF
6061 #define HAVE_HEIMDAL_KERBEROS 1
6066 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6069 if test $have_krb5 = yes ; then
6072 cat >> confdefs.h <<\EOF
6077 if test $ol_enable_kpasswd != no ; then
6078 ol_link_kpasswd=yes;
6081 if test $ol_with_kerberos = k5only ; then
6082 ol_with_kerberos=found
6085 elif test $ol_with_kerberos != auto ; then
6086 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6092 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6093 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6095 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6099 echo "configure:6100: checking for $ac_hdr" >&5
6100 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6111 if test -z "$ac_err"; then
6113 eval "ac_cv_header_$ac_safe=yes"
6116 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
6119 eval "ac_cv_header_$ac_safe=no"
6123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_hdr 1
6131 echo "$ac_t""no" 1>&6
6136 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6137 if test $krb5_impl = mit; then
6138 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6139 echo "configure:6140: checking for main in -lkrb4" >&5
6140 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6144 ac_save_LIBS="$LIBS"
6145 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 eval "ac_cv_lib_$ac_lib_var=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_lib_$ac_lib_var=no"
6164 LIBS="$ac_save_LIBS"
6167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6170 KRB4_LIBS="-lkrb4 -ldes425"
6172 echo "$ac_t""no" 1>&6
6177 elif test $krb5_impl = heimdal; then
6178 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6179 echo "configure:6180: checking for main in -lkrb4" >&5
6180 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6184 ac_save_LIBS="$LIBS"
6185 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6186 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 eval "ac_cv_lib_$ac_lib_var=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_lib_$ac_lib_var=no"
6204 LIBS="$ac_save_LIBS"
6207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6208 echo "$ac_t""yes" 1>&6
6212 echo "$ac_t""no" 1>&6
6219 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6222 if test $have_k425 = yes ; then
6223 ol_with_kerberos=found
6226 cat >> confdefs.h <<\EOF
6227 #define HAVE_KRB425 1
6230 cat >> confdefs.h <<\EOF
6235 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6236 echo "configure:6237: checking for des_debug in Kerberos libraries" >&5
6237 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6242 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6247 #include <kerberosIV/krb.h>
6248 #include <kerberosIV/des.h>
6249 extern int des_debug;
6257 if { (eval echo configure:6258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259 ol_cv_var_des_debug=yes
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6264 ol_cv_var_des_debug=no
6271 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6273 if test $ol_cv_var_des_debug = yes ; then
6274 cat >> confdefs.h <<\EOF
6275 #define HAVE_DES_DEBUG 1
6285 if test $ol_link_krb5 = yes ; then
6286 ol_with_kerberos=found
6289 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6290 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6292 for ac_hdr in krb.h des.h krb-archaeology.h
6294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6296 echo "configure:6297: checking for $ac_hdr" >&5
6297 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 cat > conftest.$ac_ext <<EOF
6301 #line 6302 "configure"
6302 #include "confdefs.h"
6305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6306 { (eval echo configure:6307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6308 if test -z "$ac_err"; then
6310 eval "ac_cv_header_$ac_safe=yes"
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 eval "ac_cv_header_$ac_safe=no"
6320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6321 echo "$ac_t""yes" 1>&6
6322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6323 cat >> confdefs.h <<EOF
6324 #define $ac_tr_hdr 1
6328 echo "$ac_t""no" 1>&6
6333 if test $ac_cv_header_krb_h = yes ; then
6334 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6335 echo "configure:6336: checking for main in -lkrb" >&5
6336 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6337 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 ac_save_LIBS="$LIBS"
6341 LIBS="-lkrb -ldes $LIBS"
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6350 if { (eval echo configure:6351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6352 eval "ac_cv_lib_$ac_lib_var=yes"
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6357 eval "ac_cv_lib_$ac_lib_var=no"
6360 LIBS="$ac_save_LIBS"
6363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6364 echo "$ac_t""yes" 1>&6
6367 echo "$ac_t""no" 1>&6
6372 if test $have_k4 = yes ; then
6373 ol_with_kerberos=found
6376 cat >> confdefs.h <<\EOF
6381 KRB4_LIBS="-lkrb -ldes"
6383 if test $ac_cv_header_krb_archaeology_h = yes ; then
6384 cat >> confdefs.h <<\EOF
6385 #define HAVE_KTH_KERBEROS 1
6393 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6397 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6400 elif test $ol_enable_kbind = yes ; then
6401 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6404 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6405 cat >> confdefs.h <<\EOF
6406 #define HAVE_KERBEROS 1
6410 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6411 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6415 if test $ol_with_tls != no ; then
6416 for ac_hdr in openssl/ssl.h ssl.h
6418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6420 echo "configure:6421: checking for $ac_hdr" >&5
6421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6430 { (eval echo configure:6431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6432 if test -z "$ac_err"; then
6434 eval "ac_cv_header_$ac_safe=yes"
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 eval "ac_cv_header_$ac_safe=no"
6444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6445 echo "$ac_t""yes" 1>&6
6446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6447 cat >> confdefs.h <<EOF
6448 #define $ac_tr_hdr 1
6452 echo "$ac_t""no" 1>&6
6457 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6458 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6459 echo "configure:6460: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6460 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6461 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6464 ac_save_LIBS="$LIBS"
6465 LIBS="-lssl -lcrypto $LIBS"
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6472 char SSLeay_add_ssl_algorithms();
6475 SSLeay_add_ssl_algorithms()
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6480 eval "ac_cv_lib_$ac_lib_var=yes"
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6485 eval "ac_cv_lib_$ac_lib_var=no"
6488 LIBS="$ac_save_LIBS"
6491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6496 echo "$ac_t""no" 1>&6
6501 if test $have_ssleay = no ; then
6502 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6503 echo "configure:6504: checking for SSL_library_init in -lssl" >&5
6504 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6505 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6508 ac_save_LIBS="$LIBS"
6509 LIBS="-lssl -lcrypto $LIBS"
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6516 char SSL_library_init();
6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 eval "ac_cv_lib_$ac_lib_var=yes"
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 eval "ac_cv_lib_$ac_lib_var=no"
6532 LIBS="$ac_save_LIBS"
6535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6540 echo "$ac_t""no" 1>&6
6546 if test $have_ssleay = no ; then
6547 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6548 echo "configure:6549: checking for ssl3_accept in -lssl" >&5
6549 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 ac_save_LIBS="$LIBS"
6554 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 /* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6567 if { (eval echo configure:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6569 eval "ac_cv_lib_$ac_lib_var=yes"
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6574 eval "ac_cv_lib_$ac_lib_var=no"
6577 LIBS="$ac_save_LIBS"
6580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6585 echo "$ac_t""no" 1>&6
6591 if test $have_ssleay = yes ; then
6595 cat >> confdefs.h <<\EOF
6596 #define HAVE_SSLEAY 1
6600 if test $need_rsaref = yes; then
6601 cat >> confdefs.h <<\EOF
6602 #define HAVE_RSAREF 1
6606 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6608 TLS_LIBS="-lssl -lcrypto"
6614 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6617 if test $ol_link_tls = yes ; then
6618 cat >> confdefs.h <<\EOF
6623 elif test $ol_with_tls = auto ; then
6624 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6625 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6627 elif test $ol_with_tls != no ; then
6628 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6633 gethostbyname_r gethostbyaddr_r \
6636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_func" >&5
6638 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_func_$ac_func=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_func_$ac_func=no"
6678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6681 cat >> confdefs.h <<EOF
6682 #define $ac_tr_func 1
6686 echo "$ac_t""no" 1>&6
6691 if test "$ac_cv_func_ctime_r" = no ; then
6692 ol_cv_func_ctime_r_nargs=0
6694 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6695 echo "configure:6696: checking number of arguments of ctime_r" >&5
6696 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6704 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6707 if { (eval echo configure:6708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6709 ol_cv_func_ctime_r_nargs3=yes
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 ol_cv_func_ctime_r_nargs3=no
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6723 time_t ti; char *buffer; ctime_r(&ti,buffer);
6726 if { (eval echo configure:6727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6728 ol_cv_func_ctime_r_nargs2=yes
6730 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 ol_cv_func_ctime_r_nargs2=no
6737 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6738 $ol_cv_func_ctime_r_nargs2 = no ; then
6740 ol_cv_func_ctime_r_nargs=3
6742 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6743 $ol_cv_func_ctime_r_nargs2 = yes ; then
6745 ol_cv_func_ctime_r_nargs=2
6748 ol_cv_func_ctime_r_nargs=0
6753 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6755 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6756 cat >> confdefs.h <<EOF
6757 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6764 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6765 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6766 echo "configure:6767: checking number of arguments of gethostbyname_r" >&5
6767 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 #include <sys/types.h>
6774 #include <sys/socket.h>
6775 #include <netinet/in.h>
6777 #define BUFSIZE (sizeof(struct hostent)+10)
6779 struct hostent hent; char buffer[BUFSIZE];
6780 int bufsize=BUFSIZE;int h_errno;
6781 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6782 buffer, bufsize, &h_errno);
6785 if { (eval echo configure:6786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6787 ol_cv_func_gethostbyname_r_nargs5=yes
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6792 ol_cv_func_gethostbyname_r_nargs5=no
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include <sys/types.h>
6800 #include <sys/socket.h>
6801 #include <netinet/in.h>
6803 #define BUFSIZE (sizeof(struct hostent)+10)
6805 struct hostent hent;struct hostent *rhent;
6806 char buffer[BUFSIZE];
6807 int bufsize=BUFSIZE;int h_errno;
6808 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6812 if { (eval echo configure:6813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6814 ol_cv_func_gethostbyname_r_nargs6=yes
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 ol_cv_func_gethostbyname_r_nargs6=no
6823 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6824 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6826 ol_cv_func_gethostbyname_r_nargs=5
6828 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6829 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6831 ol_cv_func_gethostbyname_r_nargs=6
6834 ol_cv_func_gethostbyname_r_nargs=0
6839 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6840 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6841 cat >> confdefs.h <<EOF
6842 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6848 ol_cv_func_gethostbyname_r_nargs=0
6851 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6852 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6853 echo "configure:6854: checking number of arguments of gethostbyaddr_r" >&5
6854 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 #include <sys/types.h>
6861 #include <sys/socket.h>
6862 #include <netinet/in.h>
6864 #define BUFSIZE (sizeof(struct hostent)+10)
6866 struct hostent hent; char buffer[BUFSIZE];
6868 size_t alen=sizeof(struct in_addr);
6869 int bufsize=BUFSIZE;int h_errno;
6870 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6871 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6874 if { (eval echo configure:6875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6876 ol_cv_func_gethostbyaddr_r_nargs7=yes
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 ol_cv_func_gethostbyaddr_r_nargs7=no
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 #include <sys/types.h>
6889 #include <sys/socket.h>
6890 #include <netinet/in.h>
6892 #define BUFSIZE (sizeof(struct hostent)+10)
6894 struct hostent hent;
6895 struct hostent *rhent; char buffer[BUFSIZE];
6897 size_t alen=sizeof(struct in_addr);
6898 int bufsize=BUFSIZE;int h_errno;
6899 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6900 alen, AF_INET, &hent, buffer, bufsize,
6904 if { (eval echo configure:6905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6906 ol_cv_func_gethostbyaddr_r_nargs8=yes
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 ol_cv_func_gethostbyaddr_r_nargs8=no
6915 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6916 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6918 ol_cv_func_gethostbyaddr_r_nargs=7
6920 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6921 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6923 ol_cv_func_gethostbyaddr_r_nargs=8
6926 ol_cv_func_gethostbyaddr_r_nargs=0
6931 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6932 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6933 cat >> confdefs.h <<EOF
6934 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6940 ol_cv_func_gethostbyaddr_r_nargs=0
6943 if test "$ac_cv_func_ctime_r" = yes \
6944 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6945 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6946 -a "$ac_cv_func_gethostbyname_r" = yes \
6947 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6948 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6949 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6950 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6951 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6954 cat >> confdefs.h <<\EOF
6955 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6962 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6963 -o $ol_with_threads = nt ; then
6966 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6967 echo "configure:6968: checking for NT Threads" >&5
6968 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6972 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6973 echo "configure:6974: checking for _beginthread" >&5
6974 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6977 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6980 /* System header to define __stub macros and hopefully few prototypes,
6981 which can conflict with char _beginthread(); below. */
6983 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char _beginthread();
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7002 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7004 eval "ac_cv_func__beginthread=yes"
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7009 eval "ac_cv_func__beginthread=no"
7014 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7015 echo "$ac_t""yes" 1>&6
7016 ol_cv_nt_threads=yes
7018 echo "$ac_t""no" 1>&6
7025 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7027 if test $ol_cv_nt_threads = yes ; then
7028 cat >> confdefs.h <<\EOF
7029 #define HAVE_NT_THREADS 1
7035 if test "$ol_cv_nt_threads" = yes ; then
7037 ol_with_threads=found
7038 ol_with_yielding_select=yes
7040 cat >> confdefs.h <<\EOF
7041 #define HAVE_NT_SERVICE_MANAGER 1
7044 cat >> confdefs.h <<\EOF
7045 #define HAVE_NT_EVENT_LOG 1
7050 if test $ol_with_threads = nt ; then
7051 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7055 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7056 -o $ol_with_threads = posix ; then
7058 for ac_hdr in pthread.h
7060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_hdr" >&5
7063 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7072 { (eval echo configure:7073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7074 if test -z "$ac_err"; then
7076 eval "ac_cv_header_$ac_safe=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 eval "ac_cv_header_$ac_safe=no"
7086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7087 echo "$ac_t""yes" 1>&6
7088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7089 cat >> confdefs.h <<EOF
7090 #define $ac_tr_hdr 1
7094 echo "$ac_t""no" 1>&6
7099 if test $ac_cv_header_pthread_h = yes ; then
7100 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7101 echo "configure:7102: checking POSIX thread version" >&5
7102 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7110 # include <pthread.h>
7111 /* this check could be improved */
7112 # ifdef PTHREAD_ONCE_INIT
7113 pthread_version_final;
7117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7118 egrep "pthread_version_final" >/dev/null 2>&1; then
7120 ol_pthread_final=yes
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7132 # include <pthread.h>
7133 /* this check could be improved */
7134 # ifdef pthread_once_init
7135 pthread_version_draft4;
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7142 ol_pthread_draft4=yes
7145 ol_pthread_draft4=no
7150 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7151 ol_cv_pthread_version=final
7152 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7153 ol_cv_pthread_version=draft4
7155 ol_cv_pthread_version=unknown
7160 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7163 if test $ol_cv_pthread_version = final ; then
7164 cat >> confdefs.h <<\EOF
7165 #define HAVE_PTHREADS_FINAL 1
7168 elif test $ol_cv_pthread_version = draft4 ; then
7169 cat >> confdefs.h <<\EOF
7170 #define HAVE_PTHREADS_D4 1
7174 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7177 # consider threads found
7178 ol_with_threads=found
7181 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7182 echo "configure:7183: checking for LinuxThreads pthread.h" >&5
7183 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 #include <pthread.h>
7191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7194 ol_cv_header_linux_threads=yes
7197 ol_cv_header_linux_threads=no
7204 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7205 if test $ol_cv_header_linux_threads = yes; then
7206 cat >> confdefs.h <<\EOF
7207 #define HAVE_LINUX_THREADS 1
7213 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7214 echo "configure:7215: checking for GNU Pth pthread.h" >&5
7215 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7216 echo $ac_n "(cached) $ac_c" 1>&6
7218 cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure"
7220 #include "confdefs.h"
7221 #include <pthread.h>
7222 #ifdef _POSIX_THREAD_IS_GNU_PTH
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228 egrep "__gnu_pth__" >/dev/null 2>&1; then
7230 ol_cv_header_gnu_pth_pthread_h=yes
7233 ol_cv_header_gnu_pth_pthread_h=no
7240 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7243 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7244 for ac_hdr in sched.h
7246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7248 echo "configure:7249: checking for $ac_hdr" >&5
7249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7258 { (eval echo configure:7259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7260 if test -z "$ac_err"; then
7262 eval "ac_cv_header_$ac_safe=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_header_$ac_safe=no"
7272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_hdr 1
7280 echo "$ac_t""no" 1>&6
7287 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7288 echo "configure:7289: checking for pthread_create in default libraries" >&5
7289 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7293 if test "$cross_compiling" = yes; then
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 /* pthread test headers */
7298 #include <pthread.h>
7300 #define NULL (void*)0
7303 static void *task(p)
7306 return (void *) (p == NULL);
7311 /* pthread test function */
7314 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7315 /* This system (e.g. AIX) defaults detached; must override */
7316 pthread_attr_t attr;
7318 status = pthread_attr_init(&attr);
7319 if( status ) exit( status );
7321 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7322 if( status ) exit( status );
7326 #if HAVE_PTHREADS_D4
7327 #define ATTR pthread_attr_default
7332 /* make sure pthread_create() isn't just a stub */
7333 status = pthread_create(&t, ATTR, task, NULL);
7334 if( status ) exit( status );
7336 /* make sure pthread_detach() isn't just a stub */
7337 #if HAVE_PTHREADS_D4
7338 status = pthread_detach( &t );
7340 status = pthread_detach( t );
7343 #ifdef HAVE_LINUX_THREADS
7344 pthread_kill_other_threads_np();
7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353 ol_cv_pthread_create=yes
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 ol_cv_pthread_create=no
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 /* pthread test headers */
7366 #include <pthread.h>
7368 #define NULL (void*)0
7371 static void *task(p)
7374 return (void *) (p == NULL);
7378 int main(argc, argv)
7383 /* pthread test function */
7386 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7387 /* This system (e.g. AIX) defaults detached; must override */
7388 pthread_attr_t attr;
7390 status = pthread_attr_init(&attr);
7391 if( status ) exit( status );
7393 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7394 if( status ) exit( status );
7398 #if HAVE_PTHREADS_D4
7399 #define ATTR pthread_attr_default
7404 /* make sure pthread_create() isn't just a stub */
7405 status = pthread_create(&t, ATTR, task, NULL);
7406 if( status ) exit( status );
7408 /* make sure pthread_detach() isn't just a stub */
7409 #if HAVE_PTHREADS_D4
7410 status = pthread_detach( &t );
7412 status = pthread_detach( t );
7415 #ifdef HAVE_LINUX_THREADS
7416 pthread_kill_other_threads_np();
7424 if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7426 ol_cv_pthread_create=yes
7428 echo "configure: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7431 ol_cv_pthread_create=no
7438 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7440 if test $ol_cv_pthread_create != no ; then
7441 ol_link_threads=posix
7445 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7446 if test "$ol_link_threads" = no ; then
7448 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7449 echo "configure:7450: checking for pthread link with -kthread" >&5
7450 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7456 LIBS="-kthread $LIBS"
7458 if test "$cross_compiling" = yes; then
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* pthread test headers */
7463 #include <pthread.h>
7465 #define NULL (void*)0
7468 static void *task(p)
7471 return (void *) (p == NULL);
7476 /* pthread test function */
7479 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7480 /* This system (e.g. AIX) defaults detached; must override */
7481 pthread_attr_t attr;
7483 status = pthread_attr_init(&attr);
7484 if( status ) exit( status );
7486 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7487 if( status ) exit( status );
7491 #if HAVE_PTHREADS_D4
7492 #define ATTR pthread_attr_default
7497 /* make sure pthread_create() isn't just a stub */
7498 status = pthread_create(&t, ATTR, task, NULL);
7499 if( status ) exit( status );
7501 /* make sure pthread_detach() isn't just a stub */
7502 #if HAVE_PTHREADS_D4
7503 status = pthread_detach( &t );
7505 status = pthread_detach( t );
7508 #ifdef HAVE_LINUX_THREADS
7509 pthread_kill_other_threads_np();
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7518 ol_cv_pthread_kthread=yes
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7523 ol_cv_pthread_kthread=no
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* pthread test headers */
7531 #include <pthread.h>
7533 #define NULL (void*)0
7536 static void *task(p)
7539 return (void *) (p == NULL);
7543 int main(argc, argv)
7548 /* pthread test function */
7551 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7552 /* This system (e.g. AIX) defaults detached; must override */
7553 pthread_attr_t attr;
7555 status = pthread_attr_init(&attr);
7556 if( status ) exit( status );
7558 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7559 if( status ) exit( status );
7563 #if HAVE_PTHREADS_D4
7564 #define ATTR pthread_attr_default
7569 /* make sure pthread_create() isn't just a stub */
7570 status = pthread_create(&t, ATTR, task, NULL);
7571 if( status ) exit( status );
7573 /* make sure pthread_detach() isn't just a stub */
7574 #if HAVE_PTHREADS_D4
7575 status = pthread_detach( &t );
7577 status = pthread_detach( t );
7580 #ifdef HAVE_LINUX_THREADS
7581 pthread_kill_other_threads_np();
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7591 ol_cv_pthread_kthread=yes
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 ol_cv_pthread_kthread=no
7607 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7609 if test $ol_cv_pthread_kthread = yes ; then
7610 ol_link_pthreads="-kthread"
7611 ol_link_threads=posix
7615 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7616 if test "$ol_link_threads" = no ; then
7618 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7619 echo "configure:7620: checking for pthread link with -pthread" >&5
7620 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7626 LIBS="-pthread $LIBS"
7628 if test "$cross_compiling" = yes; then
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* pthread test headers */
7633 #include <pthread.h>
7635 #define NULL (void*)0
7638 static void *task(p)
7641 return (void *) (p == NULL);
7646 /* pthread test function */
7649 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7650 /* This system (e.g. AIX) defaults detached; must override */
7651 pthread_attr_t attr;
7653 status = pthread_attr_init(&attr);
7654 if( status ) exit( status );
7656 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7657 if( status ) exit( status );
7661 #if HAVE_PTHREADS_D4
7662 #define ATTR pthread_attr_default
7667 /* make sure pthread_create() isn't just a stub */
7668 status = pthread_create(&t, ATTR, task, NULL);
7669 if( status ) exit( status );
7671 /* make sure pthread_detach() isn't just a stub */
7672 #if HAVE_PTHREADS_D4
7673 status = pthread_detach( &t );
7675 status = pthread_detach( t );
7678 #ifdef HAVE_LINUX_THREADS
7679 pthread_kill_other_threads_np();
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 ol_cv_pthread_pthread=yes
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 ol_cv_pthread_pthread=no
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7700 /* pthread test headers */
7701 #include <pthread.h>
7703 #define NULL (void*)0
7706 static void *task(p)
7709 return (void *) (p == NULL);
7713 int main(argc, argv)
7718 /* pthread test function */
7721 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7722 /* This system (e.g. AIX) defaults detached; must override */
7723 pthread_attr_t attr;
7725 status = pthread_attr_init(&attr);
7726 if( status ) exit( status );
7728 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7729 if( status ) exit( status );
7733 #if HAVE_PTHREADS_D4
7734 #define ATTR pthread_attr_default
7739 /* make sure pthread_create() isn't just a stub */
7740 status = pthread_create(&t, ATTR, task, NULL);
7741 if( status ) exit( status );
7743 /* make sure pthread_detach() isn't just a stub */
7744 #if HAVE_PTHREADS_D4
7745 status = pthread_detach( &t );
7747 status = pthread_detach( t );
7750 #ifdef HAVE_LINUX_THREADS
7751 pthread_kill_other_threads_np();
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7761 ol_cv_pthread_pthread=yes
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 ol_cv_pthread_pthread=no
7777 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7779 if test $ol_cv_pthread_pthread = yes ; then
7780 ol_link_pthreads="-pthread"
7781 ol_link_threads=posix
7785 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7786 if test "$ol_link_threads" = no ; then
7788 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7789 echo "configure:7790: checking for pthread link with -pthreads" >&5
7790 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7796 LIBS="-pthreads $LIBS"
7798 if test "$cross_compiling" = yes; then
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802 /* pthread test headers */
7803 #include <pthread.h>
7805 #define NULL (void*)0
7808 static void *task(p)
7811 return (void *) (p == NULL);
7816 /* pthread test function */
7819 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7820 /* This system (e.g. AIX) defaults detached; must override */
7821 pthread_attr_t attr;
7823 status = pthread_attr_init(&attr);
7824 if( status ) exit( status );
7826 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7827 if( status ) exit( status );
7831 #if HAVE_PTHREADS_D4
7832 #define ATTR pthread_attr_default
7837 /* make sure pthread_create() isn't just a stub */
7838 status = pthread_create(&t, ATTR, task, NULL);
7839 if( status ) exit( status );
7841 /* make sure pthread_detach() isn't just a stub */
7842 #if HAVE_PTHREADS_D4
7843 status = pthread_detach( &t );
7845 status = pthread_detach( t );
7848 #ifdef HAVE_LINUX_THREADS
7849 pthread_kill_other_threads_np();
7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7858 ol_cv_pthread_pthreads=yes
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7863 ol_cv_pthread_pthreads=no
7867 cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7870 /* pthread test headers */
7871 #include <pthread.h>
7873 #define NULL (void*)0
7876 static void *task(p)
7879 return (void *) (p == NULL);
7883 int main(argc, argv)
7888 /* pthread test function */
7891 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7892 /* This system (e.g. AIX) defaults detached; must override */
7893 pthread_attr_t attr;
7895 status = pthread_attr_init(&attr);
7896 if( status ) exit( status );
7898 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7899 if( status ) exit( status );
7903 #if HAVE_PTHREADS_D4
7904 #define ATTR pthread_attr_default
7909 /* make sure pthread_create() isn't just a stub */
7910 status = pthread_create(&t, ATTR, task, NULL);
7911 if( status ) exit( status );
7913 /* make sure pthread_detach() isn't just a stub */
7914 #if HAVE_PTHREADS_D4
7915 status = pthread_detach( &t );
7917 status = pthread_detach( t );
7920 #ifdef HAVE_LINUX_THREADS
7921 pthread_kill_other_threads_np();
7929 if { (eval echo configure:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7931 ol_cv_pthread_pthreads=yes
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7936 ol_cv_pthread_pthreads=no
7947 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7949 if test $ol_cv_pthread_pthreads = yes ; then
7950 ol_link_pthreads="-pthreads"
7951 ol_link_threads=posix
7955 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7956 if test "$ol_link_threads" = no ; then
7958 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7959 echo "configure:7960: checking for pthread link with -mthreads" >&5
7960 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7966 LIBS="-mthreads $LIBS"
7968 if test "$cross_compiling" = yes; then
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7972 /* pthread test headers */
7973 #include <pthread.h>
7975 #define NULL (void*)0
7978 static void *task(p)
7981 return (void *) (p == NULL);
7986 /* pthread test function */
7989 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7990 /* This system (e.g. AIX) defaults detached; must override */
7991 pthread_attr_t attr;
7993 status = pthread_attr_init(&attr);
7994 if( status ) exit( status );
7996 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7997 if( status ) exit( status );
8001 #if HAVE_PTHREADS_D4
8002 #define ATTR pthread_attr_default
8007 /* make sure pthread_create() isn't just a stub */
8008 status = pthread_create(&t, ATTR, task, NULL);
8009 if( status ) exit( status );
8011 /* make sure pthread_detach() isn't just a stub */
8012 #if HAVE_PTHREADS_D4
8013 status = pthread_detach( &t );
8015 status = pthread_detach( t );
8018 #ifdef HAVE_LINUX_THREADS
8019 pthread_kill_other_threads_np();
8026 if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8028 ol_cv_pthread_mthreads=yes
8030 echo "configure: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8033 ol_cv_pthread_mthreads=no
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 /* pthread test headers */
8041 #include <pthread.h>
8043 #define NULL (void*)0
8046 static void *task(p)
8049 return (void *) (p == NULL);
8053 int main(argc, argv)
8058 /* pthread test function */
8061 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8062 /* This system (e.g. AIX) defaults detached; must override */
8063 pthread_attr_t attr;
8065 status = pthread_attr_init(&attr);
8066 if( status ) exit( status );
8068 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8069 if( status ) exit( status );
8073 #if HAVE_PTHREADS_D4
8074 #define ATTR pthread_attr_default
8079 /* make sure pthread_create() isn't just a stub */
8080 status = pthread_create(&t, ATTR, task, NULL);
8081 if( status ) exit( status );
8083 /* make sure pthread_detach() isn't just a stub */
8084 #if HAVE_PTHREADS_D4
8085 status = pthread_detach( &t );
8087 status = pthread_detach( t );
8090 #ifdef HAVE_LINUX_THREADS
8091 pthread_kill_other_threads_np();
8099 if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8101 ol_cv_pthread_mthreads=yes
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8106 ol_cv_pthread_mthreads=no
8117 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8119 if test $ol_cv_pthread_mthreads = yes ; then
8120 ol_link_pthreads="-mthreads"
8121 ol_link_threads=posix
8125 # Pthread try link: -thread (ol_cv_pthread_thread)
8126 if test "$ol_link_threads" = no ; then
8128 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8129 echo "configure:8130: checking for pthread link with -thread" >&5
8130 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8131 echo $ac_n "(cached) $ac_c" 1>&6
8136 LIBS="-thread $LIBS"
8138 if test "$cross_compiling" = yes; then
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* pthread test headers */
8143 #include <pthread.h>
8145 #define NULL (void*)0
8148 static void *task(p)
8151 return (void *) (p == NULL);
8156 /* pthread test function */
8159 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8160 /* This system (e.g. AIX) defaults detached; must override */
8161 pthread_attr_t attr;
8163 status = pthread_attr_init(&attr);
8164 if( status ) exit( status );
8166 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8167 if( status ) exit( status );
8171 #if HAVE_PTHREADS_D4
8172 #define ATTR pthread_attr_default
8177 /* make sure pthread_create() isn't just a stub */
8178 status = pthread_create(&t, ATTR, task, NULL);
8179 if( status ) exit( status );
8181 /* make sure pthread_detach() isn't just a stub */
8182 #if HAVE_PTHREADS_D4
8183 status = pthread_detach( &t );
8185 status = pthread_detach( t );
8188 #ifdef HAVE_LINUX_THREADS
8189 pthread_kill_other_threads_np();
8196 if { (eval echo configure:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8198 ol_cv_pthread_thread=yes
8200 echo "configure: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8203 ol_cv_pthread_thread=no
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* pthread test headers */
8211 #include <pthread.h>
8213 #define NULL (void*)0
8216 static void *task(p)
8219 return (void *) (p == NULL);
8223 int main(argc, argv)
8228 /* pthread test function */
8231 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8232 /* This system (e.g. AIX) defaults detached; must override */
8233 pthread_attr_t attr;
8235 status = pthread_attr_init(&attr);
8236 if( status ) exit( status );
8238 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8239 if( status ) exit( status );
8243 #if HAVE_PTHREADS_D4
8244 #define ATTR pthread_attr_default
8249 /* make sure pthread_create() isn't just a stub */
8250 status = pthread_create(&t, ATTR, task, NULL);
8251 if( status ) exit( status );
8253 /* make sure pthread_detach() isn't just a stub */
8254 #if HAVE_PTHREADS_D4
8255 status = pthread_detach( &t );
8257 status = pthread_detach( t );
8260 #ifdef HAVE_LINUX_THREADS
8261 pthread_kill_other_threads_np();
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8271 ol_cv_pthread_thread=yes
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 ol_cv_pthread_thread=no
8287 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8289 if test $ol_cv_pthread_thread = yes ; then
8290 ol_link_pthreads="-thread"
8291 ol_link_threads=posix
8296 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8297 if test "$ol_link_threads" = no ; then
8298 # try -lpthread -lmach -lexc -lc_r
8299 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8300 echo "configure:8301: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8301 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8307 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8309 if test "$cross_compiling" = yes; then
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 /* pthread test headers */
8314 #include <pthread.h>
8316 #define NULL (void*)0
8319 static void *task(p)
8322 return (void *) (p == NULL);
8327 /* pthread test function */
8330 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8331 /* This system (e.g. AIX) defaults detached; must override */
8332 pthread_attr_t attr;
8334 status = pthread_attr_init(&attr);
8335 if( status ) exit( status );
8337 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8338 if( status ) exit( status );
8342 #if HAVE_PTHREADS_D4
8343 #define ATTR pthread_attr_default
8348 /* make sure pthread_create() isn't just a stub */
8349 status = pthread_create(&t, ATTR, task, NULL);
8350 if( status ) exit( status );
8352 /* make sure pthread_detach() isn't just a stub */
8353 #if HAVE_PTHREADS_D4
8354 status = pthread_detach( &t );
8356 status = pthread_detach( t );
8359 #ifdef HAVE_LINUX_THREADS
8360 pthread_kill_other_threads_np();
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8369 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8374 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 /* pthread test headers */
8382 #include <pthread.h>
8384 #define NULL (void*)0
8387 static void *task(p)
8390 return (void *) (p == NULL);
8394 int main(argc, argv)
8399 /* pthread test function */
8402 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8403 /* This system (e.g. AIX) defaults detached; must override */
8404 pthread_attr_t attr;
8406 status = pthread_attr_init(&attr);
8407 if( status ) exit( status );
8409 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8410 if( status ) exit( status );
8414 #if HAVE_PTHREADS_D4
8415 #define ATTR pthread_attr_default
8420 /* make sure pthread_create() isn't just a stub */
8421 status = pthread_create(&t, ATTR, task, NULL);
8422 if( status ) exit( status );
8424 /* make sure pthread_detach() isn't just a stub */
8425 #if HAVE_PTHREADS_D4
8426 status = pthread_detach( &t );
8428 status = pthread_detach( t );
8431 #ifdef HAVE_LINUX_THREADS
8432 pthread_kill_other_threads_np();
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8442 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8447 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8458 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8460 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8461 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8462 ol_link_threads=posix
8466 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8467 if test "$ol_link_threads" = no ; then
8468 # try -lpthread -lmach -lexc
8469 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8470 echo "configure:8471: checking for pthread link with -lpthread -lmach -lexc" >&5
8471 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8477 LIBS="-lpthread -lmach -lexc $LIBS"
8479 if test "$cross_compiling" = yes; then
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 /* pthread test headers */
8484 #include <pthread.h>
8486 #define NULL (void*)0
8489 static void *task(p)
8492 return (void *) (p == NULL);
8497 /* pthread test function */
8500 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8501 /* This system (e.g. AIX) defaults detached; must override */
8502 pthread_attr_t attr;
8504 status = pthread_attr_init(&attr);
8505 if( status ) exit( status );
8507 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8508 if( status ) exit( status );
8512 #if HAVE_PTHREADS_D4
8513 #define ATTR pthread_attr_default
8518 /* make sure pthread_create() isn't just a stub */
8519 status = pthread_create(&t, ATTR, task, NULL);
8520 if( status ) exit( status );
8522 /* make sure pthread_detach() isn't just a stub */
8523 #if HAVE_PTHREADS_D4
8524 status = pthread_detach( &t );
8526 status = pthread_detach( t );
8529 #ifdef HAVE_LINUX_THREADS
8530 pthread_kill_other_threads_np();
8537 if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8539 ol_cv_pthread_lpthread_lmach_lexc=yes
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8544 ol_cv_pthread_lpthread_lmach_lexc=no
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 /* pthread test headers */
8552 #include <pthread.h>
8554 #define NULL (void*)0
8557 static void *task(p)
8560 return (void *) (p == NULL);
8564 int main(argc, argv)
8569 /* pthread test function */
8572 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8573 /* This system (e.g. AIX) defaults detached; must override */
8574 pthread_attr_t attr;
8576 status = pthread_attr_init(&attr);
8577 if( status ) exit( status );
8579 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8580 if( status ) exit( status );
8584 #if HAVE_PTHREADS_D4
8585 #define ATTR pthread_attr_default
8590 /* make sure pthread_create() isn't just a stub */
8591 status = pthread_create(&t, ATTR, task, NULL);
8592 if( status ) exit( status );
8594 /* make sure pthread_detach() isn't just a stub */
8595 #if HAVE_PTHREADS_D4
8596 status = pthread_detach( &t );
8598 status = pthread_detach( t );
8601 #ifdef HAVE_LINUX_THREADS
8602 pthread_kill_other_threads_np();
8610 if { (eval echo configure:8611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8612 ol_cv_pthread_lpthread_lmach_lexc=yes
8614 echo "configure: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8617 ol_cv_pthread_lpthread_lmach_lexc=no
8628 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8630 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8631 ol_link_pthreads="-lpthread -lmach -lexc"
8632 ol_link_threads=posix
8637 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8638 if test "$ol_link_threads" = no ; then
8639 # try -lpthread -Wl,-woff,85
8640 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8641 echo "configure:8642: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8642 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8648 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8650 if test "$cross_compiling" = yes; then
8651 cat > conftest.$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8654 /* pthread test headers */
8655 #include <pthread.h>
8657 #define NULL (void*)0
8660 static void *task(p)
8663 return (void *) (p == NULL);
8668 /* pthread test function */
8671 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8672 /* This system (e.g. AIX) defaults detached; must override */
8673 pthread_attr_t attr;
8675 status = pthread_attr_init(&attr);
8676 if( status ) exit( status );
8678 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8679 if( status ) exit( status );
8683 #if HAVE_PTHREADS_D4
8684 #define ATTR pthread_attr_default
8689 /* make sure pthread_create() isn't just a stub */
8690 status = pthread_create(&t, ATTR, task, NULL);
8691 if( status ) exit( status );
8693 /* make sure pthread_detach() isn't just a stub */
8694 #if HAVE_PTHREADS_D4
8695 status = pthread_detach( &t );
8697 status = pthread_detach( t );
8700 #ifdef HAVE_LINUX_THREADS
8701 pthread_kill_other_threads_np();
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710 ol_cv_pthread_lib_lpthread_woff=yes
8712 echo "configure: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8715 ol_cv_pthread_lib_lpthread_woff=no
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 /* pthread test headers */
8723 #include <pthread.h>
8725 #define NULL (void*)0
8728 static void *task(p)
8731 return (void *) (p == NULL);
8735 int main(argc, argv)
8740 /* pthread test function */
8743 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8744 /* This system (e.g. AIX) defaults detached; must override */
8745 pthread_attr_t attr;
8747 status = pthread_attr_init(&attr);
8748 if( status ) exit( status );
8750 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8751 if( status ) exit( status );
8755 #if HAVE_PTHREADS_D4
8756 #define ATTR pthread_attr_default
8761 /* make sure pthread_create() isn't just a stub */
8762 status = pthread_create(&t, ATTR, task, NULL);
8763 if( status ) exit( status );
8765 /* make sure pthread_detach() isn't just a stub */
8766 #if HAVE_PTHREADS_D4
8767 status = pthread_detach( &t );
8769 status = pthread_detach( t );
8772 #ifdef HAVE_LINUX_THREADS
8773 pthread_kill_other_threads_np();
8781 if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8783 ol_cv_pthread_lib_lpthread_woff=yes
8785 echo "configure: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8788 ol_cv_pthread_lib_lpthread_woff=no
8799 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8801 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8802 ol_link_pthreads="-lpthread -Wl,-woff,85"
8803 ol_link_threads=posix
8808 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8809 if test "$ol_link_threads" = no ; then
8811 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8812 echo "configure:8813: checking for pthread link with -lpthread" >&5
8813 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8819 LIBS="-lpthread $LIBS"
8821 if test "$cross_compiling" = yes; then
8822 cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8825 /* pthread test headers */
8826 #include <pthread.h>
8828 #define NULL (void*)0
8831 static void *task(p)
8834 return (void *) (p == NULL);
8839 /* pthread test function */
8842 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8843 /* This system (e.g. AIX) defaults detached; must override */
8844 pthread_attr_t attr;
8846 status = pthread_attr_init(&attr);
8847 if( status ) exit( status );
8849 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8850 if( status ) exit( status );
8854 #if HAVE_PTHREADS_D4
8855 #define ATTR pthread_attr_default
8860 /* make sure pthread_create() isn't just a stub */
8861 status = pthread_create(&t, ATTR, task, NULL);
8862 if( status ) exit( status );
8864 /* make sure pthread_detach() isn't just a stub */
8865 #if HAVE_PTHREADS_D4
8866 status = pthread_detach( &t );
8868 status = pthread_detach( t );
8871 #ifdef HAVE_LINUX_THREADS
8872 pthread_kill_other_threads_np();
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 ol_cv_pthread_lpthread=yes
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8886 ol_cv_pthread_lpthread=no
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* pthread test headers */
8894 #include <pthread.h>
8896 #define NULL (void*)0
8899 static void *task(p)
8902 return (void *) (p == NULL);
8906 int main(argc, argv)
8911 /* pthread test function */
8914 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8915 /* This system (e.g. AIX) defaults detached; must override */
8916 pthread_attr_t attr;
8918 status = pthread_attr_init(&attr);
8919 if( status ) exit( status );
8921 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8922 if( status ) exit( status );
8926 #if HAVE_PTHREADS_D4
8927 #define ATTR pthread_attr_default
8932 /* make sure pthread_create() isn't just a stub */
8933 status = pthread_create(&t, ATTR, task, NULL);
8934 if( status ) exit( status );
8936 /* make sure pthread_detach() isn't just a stub */
8937 #if HAVE_PTHREADS_D4
8938 status = pthread_detach( &t );
8940 status = pthread_detach( t );
8943 #ifdef HAVE_LINUX_THREADS
8944 pthread_kill_other_threads_np();
8952 if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8954 ol_cv_pthread_lpthread=yes
8956 echo "configure: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8959 ol_cv_pthread_lpthread=no
8970 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8972 if test $ol_cv_pthread_lpthread = yes ; then
8973 ol_link_pthreads="-lpthread"
8974 ol_link_threads=posix
8978 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8979 if test "$ol_link_threads" = no ; then
8981 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8982 echo "configure:8983: checking for pthread link with -lc_r" >&5
8983 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
8991 if test "$cross_compiling" = yes; then
8992 cat > conftest.$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995 /* pthread test headers */
8996 #include <pthread.h>
8998 #define NULL (void*)0
9001 static void *task(p)
9004 return (void *) (p == NULL);
9009 /* pthread test function */
9012 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9013 /* This system (e.g. AIX) defaults detached; must override */
9014 pthread_attr_t attr;
9016 status = pthread_attr_init(&attr);
9017 if( status ) exit( status );
9019 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9020 if( status ) exit( status );
9024 #if HAVE_PTHREADS_D4
9025 #define ATTR pthread_attr_default
9030 /* make sure pthread_create() isn't just a stub */
9031 status = pthread_create(&t, ATTR, task, NULL);
9032 if( status ) exit( status );
9034 /* make sure pthread_detach() isn't just a stub */
9035 #if HAVE_PTHREADS_D4
9036 status = pthread_detach( &t );
9038 status = pthread_detach( t );
9041 #ifdef HAVE_LINUX_THREADS
9042 pthread_kill_other_threads_np();
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9051 ol_cv_pthread_lc_r=yes
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 ol_cv_pthread_lc_r=no
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 /* pthread test headers */
9064 #include <pthread.h>
9066 #define NULL (void*)0
9069 static void *task(p)
9072 return (void *) (p == NULL);
9076 int main(argc, argv)
9081 /* pthread test function */
9084 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9085 /* This system (e.g. AIX) defaults detached; must override */
9086 pthread_attr_t attr;
9088 status = pthread_attr_init(&attr);
9089 if( status ) exit( status );
9091 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9092 if( status ) exit( status );
9096 #if HAVE_PTHREADS_D4
9097 #define ATTR pthread_attr_default
9102 /* make sure pthread_create() isn't just a stub */
9103 status = pthread_create(&t, ATTR, task, NULL);
9104 if( status ) exit( status );
9106 /* make sure pthread_detach() isn't just a stub */
9107 #if HAVE_PTHREADS_D4
9108 status = pthread_detach( &t );
9110 status = pthread_detach( t );
9113 #ifdef HAVE_LINUX_THREADS
9114 pthread_kill_other_threads_np();
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9124 ol_cv_pthread_lc_r=yes
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9129 ol_cv_pthread_lc_r=no
9140 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9142 if test $ol_cv_pthread_lc_r = yes ; then
9143 ol_link_pthreads="-lc_r"
9144 ol_link_threads=posix
9149 # Pthread try link: -threads (ol_cv_pthread_threads)
9150 if test "$ol_link_threads" = no ; then
9152 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9153 echo "configure:9154: checking for pthread link with -threads" >&5
9154 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9160 LIBS="-threads $LIBS"
9162 if test "$cross_compiling" = yes; then
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9166 /* pthread test headers */
9167 #include <pthread.h>
9169 #define NULL (void*)0
9172 static void *task(p)
9175 return (void *) (p == NULL);
9180 /* pthread test function */
9183 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9184 /* This system (e.g. AIX) defaults detached; must override */
9185 pthread_attr_t attr;
9187 status = pthread_attr_init(&attr);
9188 if( status ) exit( status );
9190 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9191 if( status ) exit( status );
9195 #if HAVE_PTHREADS_D4
9196 #define ATTR pthread_attr_default
9201 /* make sure pthread_create() isn't just a stub */
9202 status = pthread_create(&t, ATTR, task, NULL);
9203 if( status ) exit( status );
9205 /* make sure pthread_detach() isn't just a stub */
9206 #if HAVE_PTHREADS_D4
9207 status = pthread_detach( &t );
9209 status = pthread_detach( t );
9212 #ifdef HAVE_LINUX_THREADS
9213 pthread_kill_other_threads_np();
9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9222 ol_cv_pthread_threads=yes
9224 echo "configure: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9227 ol_cv_pthread_threads=no
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 /* pthread test headers */
9235 #include <pthread.h>
9237 #define NULL (void*)0
9240 static void *task(p)
9243 return (void *) (p == NULL);
9247 int main(argc, argv)
9252 /* pthread test function */
9255 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9256 /* This system (e.g. AIX) defaults detached; must override */
9257 pthread_attr_t attr;
9259 status = pthread_attr_init(&attr);
9260 if( status ) exit( status );
9262 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9263 if( status ) exit( status );
9267 #if HAVE_PTHREADS_D4
9268 #define ATTR pthread_attr_default
9273 /* make sure pthread_create() isn't just a stub */
9274 status = pthread_create(&t, ATTR, task, NULL);
9275 if( status ) exit( status );
9277 /* make sure pthread_detach() isn't just a stub */
9278 #if HAVE_PTHREADS_D4
9279 status = pthread_detach( &t );
9281 status = pthread_detach( t );
9284 #ifdef HAVE_LINUX_THREADS
9285 pthread_kill_other_threads_np();
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9295 ol_cv_pthread_threads=yes
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9300 ol_cv_pthread_threads=no
9311 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9313 if test $ol_cv_pthread_threads = yes ; then
9314 ol_link_pthreads="-threads"
9315 ol_link_threads=posix
9320 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9321 if test "$ol_link_threads" = no ; then
9322 # try -lpthreads -lmach -lexc -lc_r
9323 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9324 echo "configure:9325: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9325 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9326 echo $ac_n "(cached) $ac_c" 1>&6
9331 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9333 if test "$cross_compiling" = yes; then
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9337 /* pthread test headers */
9338 #include <pthread.h>
9340 #define NULL (void*)0
9343 static void *task(p)
9346 return (void *) (p == NULL);
9351 /* pthread test function */
9354 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9355 /* This system (e.g. AIX) defaults detached; must override */
9356 pthread_attr_t attr;
9358 status = pthread_attr_init(&attr);
9359 if( status ) exit( status );
9361 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9362 if( status ) exit( status );
9366 #if HAVE_PTHREADS_D4
9367 #define ATTR pthread_attr_default
9372 /* make sure pthread_create() isn't just a stub */
9373 status = pthread_create(&t, ATTR, task, NULL);
9374 if( status ) exit( status );
9376 /* make sure pthread_detach() isn't just a stub */
9377 #if HAVE_PTHREADS_D4
9378 status = pthread_detach( &t );
9380 status = pthread_detach( t );
9383 #ifdef HAVE_LINUX_THREADS
9384 pthread_kill_other_threads_np();
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9393 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9402 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 /* pthread test headers */
9406 #include <pthread.h>
9408 #define NULL (void*)0
9411 static void *task(p)
9414 return (void *) (p == NULL);
9418 int main(argc, argv)
9423 /* pthread test function */
9426 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9427 /* This system (e.g. AIX) defaults detached; must override */
9428 pthread_attr_t attr;
9430 status = pthread_attr_init(&attr);
9431 if( status ) exit( status );
9433 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9434 if( status ) exit( status );
9438 #if HAVE_PTHREADS_D4
9439 #define ATTR pthread_attr_default
9444 /* make sure pthread_create() isn't just a stub */
9445 status = pthread_create(&t, ATTR, task, NULL);
9446 if( status ) exit( status );
9448 /* make sure pthread_detach() isn't just a stub */
9449 #if HAVE_PTHREADS_D4
9450 status = pthread_detach( &t );
9452 status = pthread_detach( t );
9455 #ifdef HAVE_LINUX_THREADS
9456 pthread_kill_other_threads_np();
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9466 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9471 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9482 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9484 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9485 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9486 ol_link_threads=posix
9490 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9491 if test "$ol_link_threads" = no ; then
9492 # try -lpthreads -lmach -lexc
9493 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9494 echo "configure:9495: checking for pthread link with -lpthreads -lmach -lexc" >&5
9495 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9496 echo $ac_n "(cached) $ac_c" 1>&6
9501 LIBS="-lpthreads -lmach -lexc $LIBS"
9503 if test "$cross_compiling" = yes; then
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 /* pthread test headers */
9508 #include <pthread.h>
9510 #define NULL (void*)0
9513 static void *task(p)
9516 return (void *) (p == NULL);
9521 /* pthread test function */
9524 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9525 /* This system (e.g. AIX) defaults detached; must override */
9526 pthread_attr_t attr;
9528 status = pthread_attr_init(&attr);
9529 if( status ) exit( status );
9531 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9532 if( status ) exit( status );
9536 #if HAVE_PTHREADS_D4
9537 #define ATTR pthread_attr_default
9542 /* make sure pthread_create() isn't just a stub */
9543 status = pthread_create(&t, ATTR, task, NULL);
9544 if( status ) exit( status );
9546 /* make sure pthread_detach() isn't just a stub */
9547 #if HAVE_PTHREADS_D4
9548 status = pthread_detach( &t );
9550 status = pthread_detach( t );
9553 #ifdef HAVE_LINUX_THREADS
9554 pthread_kill_other_threads_np();
9561 if { (eval echo configure:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9563 ol_cv_pthread_lpthreads_lmach_lexc=yes
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9568 ol_cv_pthread_lpthreads_lmach_lexc=no
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 /* pthread test headers */
9576 #include <pthread.h>
9578 #define NULL (void*)0
9581 static void *task(p)
9584 return (void *) (p == NULL);
9588 int main(argc, argv)
9593 /* pthread test function */
9596 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9597 /* This system (e.g. AIX) defaults detached; must override */
9598 pthread_attr_t attr;
9600 status = pthread_attr_init(&attr);
9601 if( status ) exit( status );
9603 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9604 if( status ) exit( status );
9608 #if HAVE_PTHREADS_D4
9609 #define ATTR pthread_attr_default
9614 /* make sure pthread_create() isn't just a stub */
9615 status = pthread_create(&t, ATTR, task, NULL);
9616 if( status ) exit( status );
9618 /* make sure pthread_detach() isn't just a stub */
9619 #if HAVE_PTHREADS_D4
9620 status = pthread_detach( &t );
9622 status = pthread_detach( t );
9625 #ifdef HAVE_LINUX_THREADS
9626 pthread_kill_other_threads_np();
9634 if { (eval echo configure:9635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9636 ol_cv_pthread_lpthreads_lmach_lexc=yes
9638 echo "configure: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9641 ol_cv_pthread_lpthreads_lmach_lexc=no
9652 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9654 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9655 ol_link_pthreads="-lpthreads -lmach -lexc"
9656 ol_link_threads=posix
9660 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9661 if test "$ol_link_threads" = no ; then
9662 # try -lpthreads -lexc
9663 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9664 echo "configure:9665: checking for pthread link with -lpthreads -lexc" >&5
9665 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9671 LIBS="-lpthreads -lexc $LIBS"
9673 if test "$cross_compiling" = yes; then
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 /* pthread test headers */
9678 #include <pthread.h>
9680 #define NULL (void*)0
9683 static void *task(p)
9686 return (void *) (p == NULL);
9691 /* pthread test function */
9694 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9695 /* This system (e.g. AIX) defaults detached; must override */
9696 pthread_attr_t attr;
9698 status = pthread_attr_init(&attr);
9699 if( status ) exit( status );
9701 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9702 if( status ) exit( status );
9706 #if HAVE_PTHREADS_D4
9707 #define ATTR pthread_attr_default
9712 /* make sure pthread_create() isn't just a stub */
9713 status = pthread_create(&t, ATTR, task, NULL);
9714 if( status ) exit( status );
9716 /* make sure pthread_detach() isn't just a stub */
9717 #if HAVE_PTHREADS_D4
9718 status = pthread_detach( &t );
9720 status = pthread_detach( t );
9723 #ifdef HAVE_LINUX_THREADS
9724 pthread_kill_other_threads_np();
9731 if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733 ol_cv_pthread_lpthreads_lexc=yes
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9738 ol_cv_pthread_lpthreads_lexc=no
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* pthread test headers */
9746 #include <pthread.h>
9748 #define NULL (void*)0
9751 static void *task(p)
9754 return (void *) (p == NULL);
9758 int main(argc, argv)
9763 /* pthread test function */
9766 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9767 /* This system (e.g. AIX) defaults detached; must override */
9768 pthread_attr_t attr;
9770 status = pthread_attr_init(&attr);
9771 if( status ) exit( status );
9773 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9774 if( status ) exit( status );
9778 #if HAVE_PTHREADS_D4
9779 #define ATTR pthread_attr_default
9784 /* make sure pthread_create() isn't just a stub */
9785 status = pthread_create(&t, ATTR, task, NULL);
9786 if( status ) exit( status );
9788 /* make sure pthread_detach() isn't just a stub */
9789 #if HAVE_PTHREADS_D4
9790 status = pthread_detach( &t );
9792 status = pthread_detach( t );
9795 #ifdef HAVE_LINUX_THREADS
9796 pthread_kill_other_threads_np();
9804 if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9806 ol_cv_pthread_lpthreads_lexc=yes
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9811 ol_cv_pthread_lpthreads_lexc=no
9822 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9824 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9825 ol_link_pthreads="-lpthreads -lexc"
9826 ol_link_threads=posix
9831 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9832 if test "$ol_link_threads" = no ; then
9834 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9835 echo "configure:9836: checking for pthread link with -lpthreads" >&5
9836 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9842 LIBS="-lpthreads $LIBS"
9844 if test "$cross_compiling" = yes; then
9845 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9848 /* pthread test headers */
9849 #include <pthread.h>
9851 #define NULL (void*)0
9854 static void *task(p)
9857 return (void *) (p == NULL);
9862 /* pthread test function */
9865 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9866 /* This system (e.g. AIX) defaults detached; must override */
9867 pthread_attr_t attr;
9869 status = pthread_attr_init(&attr);
9870 if( status ) exit( status );
9872 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9873 if( status ) exit( status );
9877 #if HAVE_PTHREADS_D4
9878 #define ATTR pthread_attr_default
9883 /* make sure pthread_create() isn't just a stub */
9884 status = pthread_create(&t, ATTR, task, NULL);
9885 if( status ) exit( status );
9887 /* make sure pthread_detach() isn't just a stub */
9888 #if HAVE_PTHREADS_D4
9889 status = pthread_detach( &t );
9891 status = pthread_detach( t );
9894 #ifdef HAVE_LINUX_THREADS
9895 pthread_kill_other_threads_np();
9902 if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9904 ol_cv_pthread_lib_lpthreads=yes
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9909 ol_cv_pthread_lib_lpthreads=no
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 /* pthread test headers */
9917 #include <pthread.h>
9919 #define NULL (void*)0
9922 static void *task(p)
9925 return (void *) (p == NULL);
9929 int main(argc, argv)
9934 /* pthread test function */
9937 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9938 /* This system (e.g. AIX) defaults detached; must override */
9939 pthread_attr_t attr;
9941 status = pthread_attr_init(&attr);
9942 if( status ) exit( status );
9944 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9945 if( status ) exit( status );
9949 #if HAVE_PTHREADS_D4
9950 #define ATTR pthread_attr_default
9955 /* make sure pthread_create() isn't just a stub */
9956 status = pthread_create(&t, ATTR, task, NULL);
9957 if( status ) exit( status );
9959 /* make sure pthread_detach() isn't just a stub */
9960 #if HAVE_PTHREADS_D4
9961 status = pthread_detach( &t );
9963 status = pthread_detach( t );
9966 #ifdef HAVE_LINUX_THREADS
9967 pthread_kill_other_threads_np();
9975 if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9977 ol_cv_pthread_lib_lpthreads=yes
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9982 ol_cv_pthread_lib_lpthreads=no
9993 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9995 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9996 ol_link_pthreads="-lpthreads"
9997 ol_link_threads=posix
10002 if test $ol_link_threads != no ; then
10003 cat >> confdefs.h <<\EOF
10004 #define HAVE_PTHREADS 1
10008 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10010 save_CPPFLAGS="$CPPFLAGS"
10012 LIBS="$LTHREAD_LIBS $LIBS"
10014 for ac_func in sched_yield pthread_yield
10016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10017 echo "configure:10018: checking for $ac_func" >&5
10018 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 /* System header to define __stub macros and hopefully few prototypes,
10025 which can conflict with char $ac_func(); below. */
10026 #include <assert.h>
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 eval "ac_cv_func_$ac_func=yes"
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10053 eval "ac_cv_func_$ac_func=no"
10058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10059 echo "$ac_t""yes" 1>&6
10060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10061 cat >> confdefs.h <<EOF
10062 #define $ac_tr_func 1
10066 echo "$ac_t""no" 1>&6
10071 if test $ac_cv_func_sched_yield = no -a \
10072 $ac_cv_func_pthread_yield = no ; then
10073 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10074 echo "configure:10075: checking for sched_yield in -lrt" >&5
10075 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10079 ac_save_LIBS="$LIBS"
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10084 /* Override any gcc2 internal prototype to avoid an error. */
10085 /* We use char because int might match the return type of a gcc2
10086 builtin and then its argument prototype would still apply. */
10087 char sched_yield();
10093 if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10095 eval "ac_cv_lib_$ac_lib_var=yes"
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 eval "ac_cv_lib_$ac_lib_var=no"
10103 LIBS="$ac_save_LIBS"
10106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10109 cat >> confdefs.h <<\EOF
10110 #define HAVE_SCHED_YIELD 1
10113 ac_cv_func_sched_yield=yes
10115 echo "$ac_t""no" 1>&6
10116 ac_cv_func_sched_yield=no
10120 if test $ac_cv_func_sched_yield = no -a \
10121 $ac_cv_func_pthread_yield = no ; then
10122 for ac_func in thr_yield
10124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10125 echo "configure:10126: checking for $ac_func" >&5
10126 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 /* System header to define __stub macros and hopefully few prototypes,
10133 which can conflict with char $ac_func(); below. */
10134 #include <assert.h>
10135 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10143 /* The GNU C library defines this for functions which it implements
10144 to always fail with ENOSYS. Some functions are actually named
10145 something starting with __ and the normal name is an alias. */
10146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10154 if { (eval echo configure:10155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10156 eval "ac_cv_func_$ac_func=yes"
10158 echo "configure: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10161 eval "ac_cv_func_$ac_func=no"
10166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10167 echo "$ac_t""yes" 1>&6
10168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10169 cat >> confdefs.h <<EOF
10170 #define $ac_tr_func 1
10174 echo "$ac_t""no" 1>&6
10179 if test $ac_cv_func_sched_yield = no -a \
10180 $ac_cv_func_pthread_yield = no -a \
10181 "$ac_cv_func_thr_yield" = no ; then
10182 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10185 for ac_func in pthread_kill pthread_rwlock_destroy
10187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10188 echo "configure:10189: checking for $ac_func" >&5
10189 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10192 cat > conftest.$ac_ext <<EOF
10193 #line 10194 "configure"
10194 #include "confdefs.h"
10195 /* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char $ac_func(); below. */
10197 #include <assert.h>
10198 /* Override any gcc2 internal prototype to avoid an error. */
10199 /* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10206 /* The GNU C library defines this for functions which it implements
10207 to always fail with ENOSYS. Some functions are actually named
10208 something starting with __ and the normal name is an alias. */
10209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10217 if { (eval echo configure:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10219 eval "ac_cv_func_$ac_func=yes"
10221 echo "configure: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10224 eval "ac_cv_func_$ac_func=no"
10229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10230 echo "$ac_t""yes" 1>&6
10231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10232 cat >> confdefs.h <<EOF
10233 #define $ac_tr_func 1
10237 echo "$ac_t""no" 1>&6
10242 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10243 echo "configure:10244: checking for pthread_detach with <pthread.h>" >&5
10244 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10252 #include <pthread.h>
10254 #define NULL (void*)0
10258 pthread_detach(NULL);
10261 if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10263 ol_cv_func_pthread_detach=yes
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10268 ol_cv_func_pthread_detach=no
10274 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10276 if test $ol_cv_func_pthread_detach = no ; then
10277 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_PTHREAD_DETACH 1
10286 pthread_setconcurrency \
10287 pthread_getconcurrency \
10288 thr_setconcurrency \
10289 thr_getconcurrency \
10292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10293 echo "configure:10294: checking for $ac_func" >&5
10294 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10295 echo $ac_n "(cached) $ac_c" 1>&6
10297 cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure"
10299 #include "confdefs.h"
10300 /* System header to define __stub macros and hopefully few prototypes,
10301 which can conflict with char $ac_func(); below. */
10302 #include <assert.h>
10303 /* Override any gcc2 internal prototype to avoid an error. */
10304 /* We use char because int might match the return type of a gcc2
10305 builtin and then its argument prototype would still apply. */
10311 /* The GNU C library defines this for functions which it implements
10312 to always fail with ENOSYS. Some functions are actually named
10313 something starting with __ and the normal name is an alias. */
10314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10322 if { (eval echo configure:10323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10324 eval "ac_cv_func_$ac_func=yes"
10326 echo "configure: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10329 eval "ac_cv_func_$ac_func=no"
10334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10335 echo "$ac_t""yes" 1>&6
10336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10337 cat >> confdefs.h <<EOF
10338 #define $ac_tr_func 1
10342 echo "$ac_t""no" 1>&6
10348 for ac_func in pthread_kill_other_threads_np
10350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10351 echo "configure:10352: checking for $ac_func" >&5
10352 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10355 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10358 /* System header to define __stub macros and hopefully few prototypes,
10359 which can conflict with char $ac_func(); below. */
10360 #include <assert.h>
10361 /* Override any gcc2 internal prototype to avoid an error. */
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10369 /* The GNU C library defines this for functions which it implements
10370 to always fail with ENOSYS. Some functions are actually named
10371 something starting with __ and the normal name is an alias. */
10372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10380 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10382 eval "ac_cv_func_$ac_func=yes"
10384 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10387 eval "ac_cv_func_$ac_func=no"
10392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10393 echo "$ac_t""yes" 1>&6
10394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10395 cat >> confdefs.h <<EOF
10396 #define $ac_tr_func 1
10400 echo "$ac_t""no" 1>&6
10404 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10405 echo "configure:10406: checking for LinuxThreads implementation" >&5
10406 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10409 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10412 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10417 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10418 echo "configure:10419: checking for LinuxThreads consistency" >&5
10419 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10423 if test $ol_cv_header_linux_threads = yes -a \
10424 $ol_cv_sys_linux_threads = yes; then
10425 ol_cv_linux_threads=yes
10426 elif test $ol_cv_header_linux_threads = no -a \
10427 $ol_cv_sys_linux_threads = no; then
10428 ol_cv_linux_threads=no
10430 ol_cv_linux_threads=error
10435 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10438 if test $ol_cv_linux_threads = error; then
10439 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10442 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10443 echo "configure:10444: checking if pthread_create() works" >&5
10444 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10448 if test "$cross_compiling" = yes; then
10449 ol_cv_pthread_create_works=yes
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 /* pthread test headers */
10455 #include <pthread.h>
10457 #define NULL (void*)0
10460 static void *task(p)
10463 return (void *) (p == NULL);
10467 int main(argc, argv)
10472 /* pthread test function */
10475 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10476 /* This system (e.g. AIX) defaults detached; must override */
10477 pthread_attr_t attr;
10479 status = pthread_attr_init(&attr);
10480 if( status ) exit( status );
10482 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10483 if( status ) exit( status );
10487 #if HAVE_PTHREADS_D4
10488 #define ATTR pthread_attr_default
10493 /* make sure pthread_create() isn't just a stub */
10494 status = pthread_create(&t, ATTR, task, NULL);
10495 if( status ) exit( status );
10497 /* make sure pthread_detach() isn't just a stub */
10498 #if HAVE_PTHREADS_D4
10499 status = pthread_detach( &t );
10501 status = pthread_detach( t );
10504 #ifdef HAVE_LINUX_THREADS
10505 pthread_kill_other_threads_np();
10513 if { (eval echo configure:10514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10515 ol_cv_pthread_create_works=yes
10517 echo "configure: failed program was:" >&5
10518 cat conftest.$ac_ext >&5
10520 ol_cv_pthread_create_works=no
10527 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10529 if test $ol_cv_pthread_create_works = no ; then
10530 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10533 if test $ol_with_yielding_select = auto ; then
10534 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10535 echo "configure:10536: checking if select yields when using pthreads" >&5
10536 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10540 if test "$cross_compiling" = yes; then
10541 ol_cv_pthread_select_yields=cross
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10547 #include <sys/types.h>
10548 #include <sys/time.h>
10549 #include <unistd.h>
10550 #include <pthread.h>
10552 #define NULL (void*) 0
10555 static int fildes[2];
10557 static void *task(p)
10569 FD_SET(fildes[0], &rfds);
10571 /* we're not interested in any fds */
10572 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10579 exit(0); /* if we exit here, the select blocked the whole process */
10582 int main(argc, argv)
10588 /* create a pipe to select */
10589 if(pipe(&fildes[0])) {
10594 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10595 (void) pthread_setconcurrency(2);
10597 #ifdef HAVE_THR_SETCONCURRENCY
10598 /* Set Solaris LWP concurrency to 2 */
10599 thr_setconcurrency(2);
10603 #if HAVE_PTHREADS_D4
10604 pthread_create(&t, pthread_attr_default, task, NULL);
10606 pthread_create(&t, NULL, task, NULL);
10609 #if HAVE_SCHED_YIELD
10610 sched_yield(); /* make sure task runs first */
10612 #ifdef HAVE_PTHREAD_YIELD
10613 pthread_yield(); /* make sure task runs first */
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10622 ol_cv_pthread_select_yields=no
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 ol_cv_pthread_select_yields=yes
10634 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10636 if test $ol_cv_pthread_select_yields = cross ; then
10637 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10640 if test $ol_cv_pthread_select_yields = yes ; then
10641 ol_with_yielding_select=yes
10645 CPPFLAGS="$save_CPPFLAGS"
10648 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10652 if test $ol_with_threads = posix ; then
10653 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10657 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10658 -o $ol_with_threads = mach ; then
10660 for ac_hdr in mach/cthreads.h
10662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10664 echo "configure:10665: checking for $ac_hdr" >&5
10665 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10674 { (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10676 if test -z "$ac_err"; then
10678 eval "ac_cv_header_$ac_safe=yes"
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10684 eval "ac_cv_header_$ac_safe=no"
10688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10691 cat >> confdefs.h <<EOF
10692 #define $ac_tr_hdr 1
10696 echo "$ac_t""no" 1>&6
10700 if test $ac_cv_header_mach_cthreads_h = yes ; then
10701 ol_with_threads=found
10703 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10704 echo "configure:10705: checking for cthread_fork" >&5
10705 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 /* System header to define __stub macros and hopefully few prototypes,
10712 which can conflict with char cthread_fork(); below. */
10713 #include <assert.h>
10714 /* Override any gcc2 internal prototype to avoid an error. */
10715 /* We use char because int might match the return type of a gcc2
10716 builtin and then its argument prototype would still apply. */
10717 char cthread_fork();
10722 /* The GNU C library defines this for functions which it implements
10723 to always fail with ENOSYS. Some functions are actually named
10724 something starting with __ and the normal name is an alias. */
10725 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735 eval "ac_cv_func_cthread_fork=yes"
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10740 eval "ac_cv_func_cthread_fork=no"
10745 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10746 echo "$ac_t""yes" 1>&6
10747 ol_link_threads=yes
10749 echo "$ac_t""no" 1>&6
10753 if test $ol_link_threads = no ; then
10754 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10755 echo "configure:10756: checking for cthread_fork with -all_load" >&5
10756 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10761 LIBS="-all_load $LIBS"
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure"
10764 #include "confdefs.h"
10765 #include <mach/cthreads.h>
10768 cthread_fork((void *)0, (void *)0);
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10774 ol_cv_cthread_all_load=yes
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10779 ol_cv_cthread_all_load=no
10786 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10788 if test $ol_cv_cthread_all_load = yes ; then
10789 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10790 ol_link_threads=mach
10794 if test $ol_link_threads != no ; then
10795 : check for cthread specific functionality here
10796 cat >> confdefs.h <<\EOF
10797 #define HAVE_MACH_CTHREADS 1
10801 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10805 if test $ol_with_threads = mach ; then
10806 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10810 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10811 -o $ol_with_threads = pth ; then
10813 for ac_hdr in pth.h
10815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10817 echo "configure:10818: checking for $ac_hdr" >&5
10818 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10819 echo $ac_n "(cached) $ac_c" 1>&6
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10827 { (eval echo configure:10828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10829 if test -z "$ac_err"; then
10831 eval "ac_cv_header_$ac_safe=yes"
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10837 eval "ac_cv_header_$ac_safe=no"
10841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10842 echo "$ac_t""yes" 1>&6
10843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10844 cat >> confdefs.h <<EOF
10845 #define $ac_tr_hdr 1
10849 echo "$ac_t""no" 1>&6
10854 if test $ac_cv_header_pth_h = yes ; then
10855 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10856 echo "configure:10857: checking for pth_version in -lpth" >&5
10857 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10858 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10859 echo $ac_n "(cached) $ac_c" 1>&6
10861 ac_save_LIBS="$LIBS"
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10866 /* Override any gcc2 internal prototype to avoid an error. */
10867 /* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10869 char pth_version();
10875 if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10877 eval "ac_cv_lib_$ac_lib_var=yes"
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 eval "ac_cv_lib_$ac_lib_var=no"
10885 LIBS="$ac_save_LIBS"
10888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10889 echo "$ac_t""yes" 1>&6
10892 echo "$ac_t""no" 1>&6
10897 if test $have_pth = yes ; then
10898 cat >> confdefs.h <<\EOF
10899 #define HAVE_GNU_PTH 1
10902 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10903 ol_link_threads=pth
10905 if test $ol_with_yielding_select = auto ; then
10906 ol_with_yielding_select=yes
10912 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10913 -o $ol_with_threads = lwp ; then
10915 for ac_hdr in thread.h synch.h
10917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10919 echo "configure:10920: checking for $ac_hdr" >&5
10920 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10923 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10931 if test -z "$ac_err"; then
10933 eval "ac_cv_header_$ac_safe=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_header_$ac_safe=no"
10943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10946 cat >> confdefs.h <<EOF
10947 #define $ac_tr_hdr 1
10951 echo "$ac_t""no" 1>&6
10955 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10956 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10957 echo "configure:10958: checking for thr_create in -lthread" >&5
10958 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10962 ac_save_LIBS="$LIBS"
10963 LIBS="-lthread $LIBS"
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10976 if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978 eval "ac_cv_lib_$ac_lib_var=yes"
10980 echo "configure: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10983 eval "ac_cv_lib_$ac_lib_var=no"
10986 LIBS="$ac_save_LIBS"
10989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10993 echo "$ac_t""no" 1>&6
10998 if test $have_thr = yes ; then
10999 cat >> confdefs.h <<\EOF
11003 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11004 ol_link_threads=thr
11006 if test $ol_with_yielding_select = auto ; then
11007 ol_with_yielding_select=yes
11011 thr_setconcurrency \
11012 thr_getconcurrency \
11015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11016 echo "configure:11017: checking for $ac_func" >&5
11017 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 /* System header to define __stub macros and hopefully few prototypes,
11024 which can conflict with char $ac_func(); below. */
11025 #include <assert.h>
11026 /* Override any gcc2 internal prototype to avoid an error. */
11027 /* We use char because int might match the return type of a gcc2
11028 builtin and then its argument prototype would still apply. */
11034 /* The GNU C library defines this for functions which it implements
11035 to always fail with ENOSYS. Some functions are actually named
11036 something starting with __ and the normal name is an alias. */
11037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11045 if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 eval "ac_cv_func_$ac_func=yes"
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11052 eval "ac_cv_func_$ac_func=no"
11057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11058 echo "$ac_t""yes" 1>&6
11059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11060 cat >> confdefs.h <<EOF
11061 #define $ac_tr_func 1
11065 echo "$ac_t""no" 1>&6
11072 for ac_hdr in lwp/lwp.h
11074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11076 echo "configure:11077: checking for $ac_hdr" >&5
11077 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11086 { (eval echo configure:11087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11088 if test -z "$ac_err"; then
11090 eval "ac_cv_header_$ac_safe=yes"
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 eval "ac_cv_header_$ac_safe=no"
11100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11101 echo "$ac_t""yes" 1>&6
11102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11103 cat >> confdefs.h <<EOF
11104 #define $ac_tr_hdr 1
11108 echo "$ac_t""no" 1>&6
11112 if test $ac_cv_header_lwp_lwp_h = yes ; then
11113 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11114 echo "configure:11115: checking for lwp_create in -llwp" >&5
11115 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11116 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11119 ac_save_LIBS="$LIBS"
11121 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure"
11123 #include "confdefs.h"
11124 /* Override any gcc2 internal prototype to avoid an error. */
11125 /* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11133 if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11135 eval "ac_cv_lib_$ac_lib_var=yes"
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11140 eval "ac_cv_lib_$ac_lib_var=no"
11143 LIBS="$ac_save_LIBS"
11146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11150 echo "$ac_t""no" 1>&6
11155 if test $have_lwp = yes ; then
11156 cat >> confdefs.h <<\EOF
11160 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11161 ol_link_threads=lwp
11163 if test $ol_with_yielding_select = auto ; then
11164 ol_with_yielding_select=no
11170 if test $ol_with_yielding_select = yes ; then
11171 cat >> confdefs.h <<\EOF
11172 #define HAVE_YIELDING_SELECT 1
11177 if test $ol_with_threads = manual ; then
11178 ol_link_threads=yes
11180 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11182 for ac_hdr in pthread.h sched.h
11184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11186 echo "configure:11187: checking for $ac_hdr" >&5
11187 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11190 cat > conftest.$ac_ext <<EOF
11191 #line 11192 "configure"
11192 #include "confdefs.h"
11195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11196 { (eval echo configure:11197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11198 if test -z "$ac_err"; then
11200 eval "ac_cv_header_$ac_safe=yes"
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11206 eval "ac_cv_header_$ac_safe=no"
11210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11211 echo "$ac_t""yes" 1>&6
11212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11213 cat >> confdefs.h <<EOF
11214 #define $ac_tr_hdr 1
11218 echo "$ac_t""no" 1>&6
11222 for ac_func in sched_yield pthread_yield
11224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11225 echo "configure:11226: checking for $ac_func" >&5
11226 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11227 echo $ac_n "(cached) $ac_c" 1>&6
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 /* System header to define __stub macros and hopefully few prototypes,
11233 which can conflict with char $ac_func(); below. */
11234 #include <assert.h>
11235 /* Override any gcc2 internal prototype to avoid an error. */
11236 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11243 /* The GNU C library defines this for functions which it implements
11244 to always fail with ENOSYS. Some functions are actually named
11245 something starting with __ and the normal name is an alias. */
11246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11254 if { (eval echo configure:11255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11256 eval "ac_cv_func_$ac_func=yes"
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11261 eval "ac_cv_func_$ac_func=no"
11266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11267 echo "$ac_t""yes" 1>&6
11268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11269 cat >> confdefs.h <<EOF
11270 #define $ac_tr_func 1
11274 echo "$ac_t""no" 1>&6
11279 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11280 echo "configure:11281: checking for LinuxThreads pthread.h" >&5
11281 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287 #include <pthread.h>
11289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11290 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11292 ol_cv_header_linux_threads=yes
11295 ol_cv_header_linux_threads=no
11302 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11303 if test $ol_cv_header_linux_threads = yes; then
11304 cat >> confdefs.h <<\EOF
11305 #define HAVE_LINUX_THREADS 1
11311 for ac_hdr in mach/cthreads.h
11313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11315 echo "configure:11316: checking for $ac_hdr" >&5
11316 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11319 cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11325 { (eval echo configure:11326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11327 if test -z "$ac_err"; then
11329 eval "ac_cv_header_$ac_safe=yes"
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11335 eval "ac_cv_header_$ac_safe=no"
11339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11340 echo "$ac_t""yes" 1>&6
11341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11342 cat >> confdefs.h <<EOF
11343 #define $ac_tr_hdr 1
11347 echo "$ac_t""no" 1>&6
11351 for ac_hdr in lwp/lwp.h
11353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11355 echo "configure:11356: checking for $ac_hdr" >&5
11356 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11359 cat > conftest.$ac_ext <<EOF
11360 #line 11361 "configure"
11361 #include "confdefs.h"
11364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11365 { (eval echo configure:11366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11367 if test -z "$ac_err"; then
11369 eval "ac_cv_header_$ac_safe=yes"
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11375 eval "ac_cv_header_$ac_safe=no"
11379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11382 cat >> confdefs.h <<EOF
11383 #define $ac_tr_hdr 1
11387 echo "$ac_t""no" 1>&6
11391 for ac_hdr in thread.h synch.h
11393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11395 echo "configure:11396: checking for $ac_hdr" >&5
11396 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11397 echo $ac_n "(cached) $ac_c" 1>&6
11399 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11405 { (eval echo configure:11406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11407 if test -z "$ac_err"; then
11409 eval "ac_cv_header_$ac_safe=yes"
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11415 eval "ac_cv_header_$ac_safe=no"
11419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11420 echo "$ac_t""yes" 1>&6
11421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11422 cat >> confdefs.h <<EOF
11423 #define $ac_tr_hdr 1
11427 echo "$ac_t""no" 1>&6
11433 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11434 cat >> confdefs.h <<\EOF
11435 #define REENTRANT 1
11438 cat >> confdefs.h <<\EOF
11439 #define _REENTRANT 1
11442 cat >> confdefs.h <<\EOF
11443 #define THREAD_SAFE 1
11446 cat >> confdefs.h <<\EOF
11447 #define _THREAD_SAFE 1
11450 cat >> confdefs.h <<\EOF
11451 #define THREADSAFE 1
11454 cat >> confdefs.h <<\EOF
11455 #define _THREADSAFE 1
11458 cat >> confdefs.h <<\EOF
11459 #define _SGI_MP_SOURCE 1
11463 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11464 echo "configure:11465: checking for thread specific errno" >&5
11465 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11477 if { (eval echo configure:11478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479 ol_cv_errno_thread_specific=yes
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11484 ol_cv_errno_thread_specific=no
11490 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11492 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11493 echo "configure:11494: checking for thread specific h_errno" >&5
11494 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11506 if { (eval echo configure:11507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11508 ol_cv_h_errno_thread_specific=yes
11510 echo "configure: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11513 ol_cv_h_errno_thread_specific=no
11519 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11521 if test $ol_cv_errno_thread_specific != yes \
11522 -o $ol_cv_h_errno_thread_specific != yes ; then
11523 LIBS="$LTHREAD_LIBS $LIBS"
11529 if test $ol_link_threads = no ; then
11530 if test $ol_with_threads = yes ; then
11531 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11534 if test $ol_with_threads = auto ; then
11535 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11539 cat >> confdefs.h <<\EOF
11540 #define NO_THREADS 1
11546 if test $ol_link_threads != no ; then
11547 cat >> confdefs.h <<\EOF
11548 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11555 if test $ol_with_ldbm_api = auto \
11556 -o $ol_with_ldbm_api = berkeley \
11557 -o $ol_with_ldbm_api = bcompat ; then
11559 if test $ol_with_ldbm_api = bcompat; then \
11560 ol_cv_berkeley_db=no
11561 for ac_hdr in db_185.h db.h
11563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11565 echo "configure:11566: checking for $ac_hdr" >&5
11566 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11567 echo $ac_n "(cached) $ac_c" 1>&6
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11575 { (eval echo configure:11576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11577 if test -z "$ac_err"; then
11579 eval "ac_cv_header_$ac_safe=yes"
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11585 eval "ac_cv_header_$ac_safe=no"
11589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11590 echo "$ac_t""yes" 1>&6
11591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11592 cat >> confdefs.h <<EOF
11593 #define $ac_tr_hdr 1
11597 echo "$ac_t""no" 1>&6
11601 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11602 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11603 echo "configure:11604: checking if Berkeley DB header compatibility" >&5
11604 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11605 echo $ac_n "(cached) $ac_c" 1>&6
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11613 # include <db_185.h>
11618 /* this check could be improved */
11619 #ifndef DB_VERSION_MAJOR
11620 # define DB_VERSION_MAJOR 1
11623 #if DB_VERSION_MAJOR == 1
11628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11629 egrep "__db_version_1" >/dev/null 2>&1; then
11631 ol_cv_header_db1=yes
11634 ol_cv_header_db1=no
11640 echo "$ac_t""$ol_cv_header_db1" 1>&6
11642 if test ol_cv_header_db1=yes ; then
11644 if test $ol_cv_lib_db = no ; then
11645 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11646 echo "configure:11647: checking for Berkeley DB link (default)" >&5
11647 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11653 LIBS="$ol_DB_LIB $LIBS"
11655 cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11659 #ifdef HAVE_DB_185_H
11660 # include <db_185.h>
11665 #ifndef DB_VERSION_MAJOR
11666 # define DB_VERSION_MAJOR 1
11670 #define NULL ((void*)0)
11675 #if DB_VERSION_MAJOR > 2
11676 db_env_create( NULL, 0 );
11677 #elif DB_VERSION_MAJOR > 1
11678 db_appexit( NULL );
11680 (void) dbopen( NULL, 0, 0, 0, NULL);
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11700 echo "$ac_t""$ol_cv_db_none" 1>&6
11702 if test $ol_cv_db_none = yes ; then
11707 if test $ol_cv_lib_db = no ; then
11708 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11709 echo "configure:11710: checking for Berkeley DB link (-ldb)" >&5
11710 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11716 LIBS="$ol_DB_LIB $LIBS"
11718 cat > conftest.$ac_ext <<EOF
11719 #line 11720 "configure"
11720 #include "confdefs.h"
11722 #ifdef HAVE_DB_185_H
11723 # include <db_185.h>
11728 #ifndef DB_VERSION_MAJOR
11729 # define DB_VERSION_MAJOR 1
11733 #define NULL ((void*)0)
11738 #if DB_VERSION_MAJOR > 2
11739 db_env_create( NULL, 0 );
11740 #elif DB_VERSION_MAJOR > 1
11741 db_appexit( NULL );
11743 (void) dbopen( NULL, 0, 0, 0, NULL);
11748 if { (eval echo configure:11749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11763 echo "$ac_t""$ol_cv_db_db" 1>&6
11765 if test $ol_cv_db_db = yes ; then
11770 if test $ol_cv_lib_db = no ; then
11771 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11772 echo "configure:11773: checking for Berkeley DB link (-ldb3)" >&5
11773 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
11779 LIBS="$ol_DB_LIB $LIBS"
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11785 #ifdef HAVE_DB_185_H
11786 # include <db_185.h>
11791 #ifndef DB_VERSION_MAJOR
11792 # define DB_VERSION_MAJOR 1
11796 #define NULL ((void*)0)
11801 #if DB_VERSION_MAJOR > 2
11802 db_env_create( NULL, 0 );
11803 #elif DB_VERSION_MAJOR > 1
11804 db_appexit( NULL );
11806 (void) dbopen( NULL, 0, 0, 0, NULL);
11811 if { (eval echo configure:11812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11815 echo "configure: failed program was:" >&5
11816 cat conftest.$ac_ext >&5
11826 echo "$ac_t""$ol_cv_db_db3" 1>&6
11828 if test $ol_cv_db_db3 = yes ; then
11833 if test $ol_cv_lib_db = no ; then
11834 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11835 echo "configure:11836: checking for Berkeley DB link (-ldb2)" >&5
11836 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11837 echo $ac_n "(cached) $ac_c" 1>&6
11842 LIBS="$ol_DB_LIB $LIBS"
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11848 #ifdef HAVE_DB_185_H
11849 # include <db_185.h>
11854 #ifndef DB_VERSION_MAJOR
11855 # define DB_VERSION_MAJOR 1
11859 #define NULL ((void*)0)
11864 #if DB_VERSION_MAJOR > 2
11865 db_env_create( NULL, 0 );
11866 #elif DB_VERSION_MAJOR > 1
11867 db_appexit( NULL );
11869 (void) dbopen( NULL, 0, 0, 0, NULL);
11874 if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11878 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11889 echo "$ac_t""$ol_cv_db_db2" 1>&6
11891 if test $ol_cv_db_db2 = yes ; then
11896 if test $ol_cv_lib_db = no ; then
11897 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11898 echo "configure:11899: checking for Berkeley DB link (-ldb1)" >&5
11899 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11900 echo $ac_n "(cached) $ac_c" 1>&6
11905 LIBS="$ol_DB_LIB $LIBS"
11907 cat > conftest.$ac_ext <<EOF
11908 #line 11909 "configure"
11909 #include "confdefs.h"
11911 #ifdef HAVE_DB_185_H
11912 # include <db_185.h>
11917 #ifndef DB_VERSION_MAJOR
11918 # define DB_VERSION_MAJOR 1
11922 #define NULL ((void*)0)
11927 #if DB_VERSION_MAJOR > 2
11928 db_env_create( NULL, 0 );
11929 #elif DB_VERSION_MAJOR > 1
11930 db_appexit( NULL );
11932 (void) dbopen( NULL, 0, 0, 0, NULL);
11937 if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11952 echo "$ac_t""$ol_cv_db_db1" 1>&6
11954 if test $ol_cv_db_db1 = yes ; then
11960 if test "$ol_cv_lib_db" != no ; then
11961 ol_cv_berkeley_db=yes
11967 ol_cv_berkeley_db=no
11970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11972 echo "configure:11973: checking for $ac_hdr" >&5
11973 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11974 echo $ac_n "(cached) $ac_c" 1>&6
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11982 { (eval echo configure:11983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11984 if test -z "$ac_err"; then
11986 eval "ac_cv_header_$ac_safe=yes"
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11992 eval "ac_cv_header_$ac_safe=no"
11996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11997 echo "$ac_t""yes" 1>&6
11998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11999 cat >> confdefs.h <<EOF
12000 #define $ac_tr_hdr 1
12004 echo "$ac_t""no" 1>&6
12008 if test $ac_cv_header_db_h = yes; then
12010 if test $ol_cv_lib_db = no ; then
12011 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12012 echo "configure:12013: checking for Berkeley DB link (default)" >&5
12013 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12019 LIBS="$ol_DB_LIB $LIBS"
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12025 #ifdef HAVE_DB_185_H
12026 # include <db_185.h>
12031 #ifndef DB_VERSION_MAJOR
12032 # define DB_VERSION_MAJOR 1
12036 #define NULL ((void*)0)
12041 #if DB_VERSION_MAJOR > 2
12042 db_env_create( NULL, 0 );
12043 #elif DB_VERSION_MAJOR > 1
12044 db_appexit( NULL );
12046 (void) dbopen( NULL, 0, 0, 0, NULL);
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12066 echo "$ac_t""$ol_cv_db_none" 1>&6
12068 if test $ol_cv_db_none = yes ; then
12073 if test $ol_cv_lib_db = no ; then
12074 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12075 echo "configure:12076: checking for Berkeley DB link (-ldb)" >&5
12076 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12077 echo $ac_n "(cached) $ac_c" 1>&6
12082 LIBS="$ol_DB_LIB $LIBS"
12084 cat > conftest.$ac_ext <<EOF
12085 #line 12086 "configure"
12086 #include "confdefs.h"
12088 #ifdef HAVE_DB_185_H
12089 # include <db_185.h>
12094 #ifndef DB_VERSION_MAJOR
12095 # define DB_VERSION_MAJOR 1
12099 #define NULL ((void*)0)
12104 #if DB_VERSION_MAJOR > 2
12105 db_env_create( NULL, 0 );
12106 #elif DB_VERSION_MAJOR > 1
12107 db_appexit( NULL );
12109 (void) dbopen( NULL, 0, 0, 0, NULL);
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12129 echo "$ac_t""$ol_cv_db_db" 1>&6
12131 if test $ol_cv_db_db = yes ; then
12136 if test $ol_cv_lib_db = no ; then
12137 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12138 echo "configure:12139: checking for Berkeley DB link (-ldb3)" >&5
12139 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12140 echo $ac_n "(cached) $ac_c" 1>&6
12145 LIBS="$ol_DB_LIB $LIBS"
12147 cat > conftest.$ac_ext <<EOF
12148 #line 12149 "configure"
12149 #include "confdefs.h"
12151 #ifdef HAVE_DB_185_H
12152 # include <db_185.h>
12157 #ifndef DB_VERSION_MAJOR
12158 # define DB_VERSION_MAJOR 1
12162 #define NULL ((void*)0)
12167 #if DB_VERSION_MAJOR > 2
12168 db_env_create( NULL, 0 );
12169 #elif DB_VERSION_MAJOR > 1
12170 db_appexit( NULL );
12172 (void) dbopen( NULL, 0, 0, 0, NULL);
12177 if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12192 echo "$ac_t""$ol_cv_db_db3" 1>&6
12194 if test $ol_cv_db_db3 = yes ; then
12199 if test $ol_cv_lib_db = no ; then
12200 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12201 echo "configure:12202: checking for Berkeley DB link (-ldb2)" >&5
12202 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12208 LIBS="$ol_DB_LIB $LIBS"
12210 cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12214 #ifdef HAVE_DB_185_H
12215 # include <db_185.h>
12220 #ifndef DB_VERSION_MAJOR
12221 # define DB_VERSION_MAJOR 1
12225 #define NULL ((void*)0)
12230 #if DB_VERSION_MAJOR > 2
12231 db_env_create( NULL, 0 );
12232 #elif DB_VERSION_MAJOR > 1
12233 db_appexit( NULL );
12235 (void) dbopen( NULL, 0, 0, 0, NULL);
12240 if { (eval echo configure:12241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12255 echo "$ac_t""$ol_cv_db_db2" 1>&6
12257 if test $ol_cv_db_db2 = yes ; then
12262 if test $ol_cv_lib_db = no ; then
12263 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12264 echo "configure:12265: checking for Berkeley DB link (-ldb1)" >&5
12265 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12271 LIBS="$ol_DB_LIB $LIBS"
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12277 #ifdef HAVE_DB_185_H
12278 # include <db_185.h>
12283 #ifndef DB_VERSION_MAJOR
12284 # define DB_VERSION_MAJOR 1
12288 #define NULL ((void*)0)
12293 #if DB_VERSION_MAJOR > 2
12294 db_env_create( NULL, 0 );
12295 #elif DB_VERSION_MAJOR > 1
12296 db_appexit( NULL );
12298 (void) dbopen( NULL, 0, 0, 0, NULL);
12303 if { (eval echo configure:12304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12318 echo "$ac_t""$ol_cv_db_db1" 1>&6
12320 if test $ol_cv_db_db1 = yes ; then
12326 if test "$ol_cv_lib_db" != no ; then
12327 ol_cv_berkeley_db=yes
12328 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12329 echo "configure:12330: checking for Berkeley DB thread support" >&5
12330 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12331 echo $ac_n "(cached) $ac_c" 1>&6
12335 if test $ol_cv_lib_db != yes ; then
12336 LIBS="$ol_cv_lib_db"
12339 if test "$cross_compiling" = yes; then
12340 ol_cv_berkeley_db_thread=cross
12342 cat > conftest.$ac_ext <<EOF
12343 #line 12344 "configure"
12344 #include "confdefs.h"
12346 #ifdef HAVE_DB_185_H
12352 #define NULL ((void *)0)
12357 u_int32_t flags = DB_CREATE | DB_THREAD;
12359 #if DB_VERSION_MAJOR > 2
12360 DB_ENV *env = NULL;
12362 rc = db_env_create( &env, 0 );
12365 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12366 rc = env->open( env, NULL, flags, 0 );
12368 rc = env->open( env, NULL, NULL, flags, 0 );
12374 memset( &env, '\0', sizeof(env) );
12376 rc = db_appinit( NULL, NULL, &env, flags );
12379 db_appexit( &env );
12382 #if DB_VERSION_MAJOR > 2
12383 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12384 env->remove( env, NULL, DB_FORCE);
12386 env->remove( env, NULL, NULL, DB_FORCE);
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12395 ol_cv_berkeley_db_thread=yes
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12400 ol_cv_berkeley_db_thread=no
12408 if test $ol_cv_berkeley_db_thread != no ; then
12409 cat >> confdefs.h <<\EOF
12410 #define HAVE_BERKELEY_DB_THREAD 1
12417 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12423 if test $ol_cv_berkeley_db != no ; then
12424 cat >> confdefs.h <<\EOF
12425 #define HAVE_BERKELEY_DB 1
12429 ol_link_ldbm=berkeley
12430 ol_with_ldbm_api=db
12432 if test $ol_with_ldbm_type = hash ; then
12433 cat >> confdefs.h <<\EOF
12434 #define LDBM_USE_DBHASH 1
12438 cat >> confdefs.h <<\EOF
12439 #define LDBM_USE_DBBTREE 1
12444 if test $ol_cv_lib_db != yes ; then
12445 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12450 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12451 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12452 ol_with_ldbm_api=none
12455 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12456 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12457 echo "configure:12458: checking for MDBM library" >&5
12458 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12462 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12463 echo "configure:12464: checking for mdbm_set_chain" >&5
12464 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12465 echo $ac_n "(cached) $ac_c" 1>&6
12467 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure"
12469 #include "confdefs.h"
12470 /* System header to define __stub macros and hopefully few prototypes,
12471 which can conflict with char mdbm_set_chain(); below. */
12472 #include <assert.h>
12473 /* Override any gcc2 internal prototype to avoid an error. */
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12476 char mdbm_set_chain();
12481 /* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
12484 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12487 f = mdbm_set_chain;
12492 if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12494 eval "ac_cv_func_mdbm_set_chain=yes"
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12499 eval "ac_cv_func_mdbm_set_chain=no"
12504 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12505 echo "$ac_t""yes" 1>&6
12508 echo "$ac_t""no" 1>&6
12510 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12511 echo "configure:12512: checking for mdbm_set_chain in -lmdbm" >&5
12512 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12513 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12514 echo $ac_n "(cached) $ac_c" 1>&6
12516 ac_save_LIBS="$LIBS"
12517 LIBS="-lmdbm $LIBS"
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* Override any gcc2 internal prototype to avoid an error. */
12522 /* We use char because int might match the return type of a gcc2
12523 builtin and then its argument prototype would still apply. */
12524 char mdbm_set_chain();
12530 if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12532 eval "ac_cv_lib_$ac_lib_var=yes"
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12537 eval "ac_cv_lib_$ac_lib_var=no"
12540 LIBS="$ac_save_LIBS"
12543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 ol_cv_lib_mdbm=-lmdbm
12547 echo "$ac_t""no" 1>&6
12558 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12561 for ac_hdr in mdbm.h
12563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12565 echo "configure:12566: checking for $ac_hdr" >&5
12566 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12567 echo $ac_n "(cached) $ac_c" 1>&6
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12575 { (eval echo configure:12576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12577 if test -z "$ac_err"; then
12579 eval "ac_cv_header_$ac_safe=yes"
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12585 eval "ac_cv_header_$ac_safe=no"
12589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12592 cat >> confdefs.h <<EOF
12593 #define $ac_tr_hdr 1
12597 echo "$ac_t""no" 1>&6
12601 echo $ac_n "checking for db""... $ac_c" 1>&6
12602 echo "configure:12603: checking for db" >&5
12603 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12607 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12615 echo "$ac_t""$ol_cv_mdbm" 1>&6
12616 if test $ol_cv_mdbm = yes ; then
12617 cat >> confdefs.h <<\EOF
12618 #define HAVE_MDBM 1
12624 if test $ol_cv_mdbm = yes ; then
12626 ol_with_ldbm_api=mdbm
12627 if test $ol_cv_lib_mdbm != yes ; then
12628 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12633 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12634 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12635 echo "configure:12636: checking for GDBM library" >&5
12636 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12640 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12641 echo "configure:12642: checking for gdbm_open" >&5
12642 if eval "test \"\${ac_cv_func_gdbm_open+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 /* System header to define __stub macros and hopefully few prototypes,
12649 which can conflict with char gdbm_open(); below. */
12650 #include <assert.h>
12651 /* Override any gcc2 internal prototype to avoid an error. */
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12659 /* The GNU C library defines this for functions which it implements
12660 to always fail with ENOSYS. Some functions are actually named
12661 something starting with __ and the normal name is an alias. */
12662 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12670 if { (eval echo configure:12671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12672 eval "ac_cv_func_gdbm_open=yes"
12674 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12677 eval "ac_cv_func_gdbm_open=no"
12682 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12686 echo "$ac_t""no" 1>&6
12688 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12689 echo "configure:12690: checking for gdbm_open in -lgdbm" >&5
12690 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12692 echo $ac_n "(cached) $ac_c" 1>&6
12694 ac_save_LIBS="$LIBS"
12695 LIBS="-lgdbm $LIBS"
12696 cat > conftest.$ac_ext <<EOF
12697 #line 12698 "configure"
12698 #include "confdefs.h"
12699 /* Override any gcc2 internal prototype to avoid an error. */
12700 /* We use char because int might match the return type of a gcc2
12701 builtin and then its argument prototype would still apply. */
12708 if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12710 eval "ac_cv_lib_$ac_lib_var=yes"
12712 echo "configure: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12715 eval "ac_cv_lib_$ac_lib_var=no"
12718 LIBS="$ac_save_LIBS"
12721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12722 echo "$ac_t""yes" 1>&6
12723 ol_cv_lib_gdbm=-lgdbm
12725 echo "$ac_t""no" 1>&6
12736 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12739 for ac_hdr in gdbm.h
12741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12743 echo "configure:12744: checking for $ac_hdr" >&5
12744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12745 echo $ac_n "(cached) $ac_c" 1>&6
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12753 { (eval echo configure:12754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12755 if test -z "$ac_err"; then
12757 eval "ac_cv_header_$ac_safe=yes"
12760 echo "configure: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12763 eval "ac_cv_header_$ac_safe=no"
12767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12768 echo "$ac_t""yes" 1>&6
12769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12770 cat >> confdefs.h <<EOF
12771 #define $ac_tr_hdr 1
12775 echo "$ac_t""no" 1>&6
12779 echo $ac_n "checking for db""... $ac_c" 1>&6
12780 echo "configure:12781: checking for db" >&5
12781 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12785 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12793 echo "$ac_t""$ol_cv_gdbm" 1>&6
12794 if test $ol_cv_gdbm = yes ; then
12795 cat >> confdefs.h <<\EOF
12796 #define HAVE_GDBM 1
12802 if test $ol_cv_gdbm = yes ; then
12804 ol_with_ldbm_api=gdbm
12806 if test $ol_cv_lib_gdbm != yes ; then
12807 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12812 if test $ol_with_ldbm_api = ndbm ; then
12813 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12814 echo "configure:12815: checking for NDBM library" >&5
12815 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12819 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12820 echo "configure:12821: checking for dbm_open" >&5
12821 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12822 echo $ac_n "(cached) $ac_c" 1>&6
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 /* System header to define __stub macros and hopefully few prototypes,
12828 which can conflict with char dbm_open(); below. */
12829 #include <assert.h>
12830 /* Override any gcc2 internal prototype to avoid an error. */
12831 /* We use char because int might match the return type of a gcc2
12832 builtin and then its argument prototype would still apply. */
12838 /* The GNU C library defines this for functions which it implements
12839 to always fail with ENOSYS. Some functions are actually named
12840 something starting with __ and the normal name is an alias. */
12841 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12849 if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12851 eval "ac_cv_func_dbm_open=yes"
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12856 eval "ac_cv_func_dbm_open=no"
12861 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12862 echo "$ac_t""yes" 1>&6
12865 echo "$ac_t""no" 1>&6
12867 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12868 echo "configure:12869: checking for dbm_open in -lndbm" >&5
12869 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12870 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12873 ac_save_LIBS="$LIBS"
12874 LIBS="-lndbm $LIBS"
12875 cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12878 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12887 if { (eval echo configure:12888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12889 eval "ac_cv_lib_$ac_lib_var=yes"
12891 echo "configure: failed program was:" >&5
12892 cat conftest.$ac_ext >&5
12894 eval "ac_cv_lib_$ac_lib_var=no"
12897 LIBS="$ac_save_LIBS"
12900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12901 echo "$ac_t""yes" 1>&6
12902 ol_cv_lib_ndbm=-lndbm
12904 echo "$ac_t""no" 1>&6
12906 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12907 echo "configure:12908: checking for dbm_open in -ldbm" >&5
12908 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12909 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12912 ac_save_LIBS="$LIBS"
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 /* Override any gcc2 internal prototype to avoid an error. */
12918 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */
12926 if { (eval echo configure:12927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12928 eval "ac_cv_lib_$ac_lib_var=yes"
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12933 eval "ac_cv_lib_$ac_lib_var=no"
12936 LIBS="$ac_save_LIBS"
12939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12940 echo "$ac_t""yes" 1>&6
12941 ol_cv_lib_ndbm=-ldbm
12943 echo "$ac_t""no" 1>&6
12956 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12959 for ac_hdr in ndbm.h
12961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12963 echo "configure:12964: checking for $ac_hdr" >&5
12964 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12967 cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12973 { (eval echo configure:12974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12975 if test -z "$ac_err"; then
12977 eval "ac_cv_header_$ac_safe=yes"
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12983 eval "ac_cv_header_$ac_safe=no"
12987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12988 echo "$ac_t""yes" 1>&6
12989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12990 cat >> confdefs.h <<EOF
12991 #define $ac_tr_hdr 1
12995 echo "$ac_t""no" 1>&6
12999 echo $ac_n "checking for db""... $ac_c" 1>&6
13000 echo "configure:13001: checking for db" >&5
13001 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13002 echo $ac_n "(cached) $ac_c" 1>&6
13005 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13013 echo "$ac_t""$ol_cv_ndbm" 1>&6
13014 if test $ol_cv_ndbm = yes ; then
13015 cat >> confdefs.h <<\EOF
13016 #define HAVE_NDBM 1
13022 if test $ol_cv_ndbm = yes ; then
13024 ol_with_ldbm_api=ndbm
13026 if test $ol_cv_lib_ndbm != yes ; then
13027 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13032 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13033 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13034 if test $ol_enable_ldbm = yes ; then
13035 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13038 echo "configure: warning: disabling LDBM" 1>&2
13042 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13043 LINK_BINS_DYNAMIC="yes"
13045 LINK_BINS_DYNAMIC="no"
13048 if test $ol_enable_wrappers != no ; then
13049 for ac_hdr in tcpd.h
13051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13053 echo "configure:13054: checking for $ac_hdr" >&5
13054 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13055 echo $ac_n "(cached) $ac_c" 1>&6
13057 cat > conftest.$ac_ext <<EOF
13058 #line 13059 "configure"
13059 #include "confdefs.h"
13062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13063 { (eval echo configure:13064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13065 if test -z "$ac_err"; then
13067 eval "ac_cv_header_$ac_safe=yes"
13070 echo "configure: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13073 eval "ac_cv_header_$ac_safe=no"
13077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13078 echo "$ac_t""yes" 1>&6
13079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13080 cat >> confdefs.h <<EOF
13081 #define $ac_tr_hdr 1
13085 echo "$ac_t""no" 1>&6
13090 if test $ac_cv_header_tcpd_h != yes ; then
13093 cat > conftest.$ac_ext <<EOF
13094 #line 13095 "configure"
13095 #include "confdefs.h"
13097 int allow_severity = 0;
13098 int deny_severity = 0;
13104 if { (eval echo configure:13105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13116 if test $have_wrappers = yes ; then
13117 cat >> confdefs.h <<\EOF
13118 #define HAVE_TCPD 1
13123 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13124 echo "configure:13125: checking for main in -lnsl" >&5
13125 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13126 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13127 echo $ac_n "(cached) $ac_c" 1>&6
13129 ac_save_LIBS="$LIBS"
13131 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13139 if { (eval echo configure:13140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13141 eval "ac_cv_lib_$ac_lib_var=yes"
13143 echo "configure: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13146 eval "ac_cv_lib_$ac_lib_var=no"
13149 LIBS="$ac_save_LIBS"
13152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13153 echo "$ac_t""yes" 1>&6
13154 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13156 cat >> confdefs.h <<EOF
13157 #define $ac_tr_lib 1
13163 echo "$ac_t""no" 1>&6
13167 echo "configure: warning: could not find -lwrap" 1>&2
13168 if test $ol_enable_wrappers = yes ; then
13169 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13172 echo "configure: warning: disabling wrappers support" 1>&2
13173 ol_enable_wrappers=no
13178 if test $ol_enable_syslog != no ; then
13179 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13180 echo "configure:13181: checking for openlog" >&5
13181 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char openlog(); below. */
13189 #include <assert.h>
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13198 /* The GNU C library defines this for functions which it implements
13199 to always fail with ENOSYS. Some functions are actually named
13200 something starting with __ and the normal name is an alias. */
13201 #if defined (__stub_openlog) || defined (__stub___openlog)
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13211 eval "ac_cv_func_openlog=yes"
13213 echo "configure: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13216 eval "ac_cv_func_openlog=no"
13221 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13222 echo "$ac_t""yes" 1>&6
13225 echo "$ac_t""no" 1>&6
13228 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13229 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13231 ol_enable_syslog=$ac_cv_func_openlog
13236 if test $ol_enable_sql != no ; then
13237 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13238 echo "configure:13239: checking for SQLDriverConnect in -liodbc" >&5
13239 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13240 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13243 ac_save_LIBS="$LIBS"
13244 LIBS="-liodbc $LIBS"
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251 char SQLDriverConnect();
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13259 eval "ac_cv_lib_$ac_lib_var=yes"
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13264 eval "ac_cv_lib_$ac_lib_var=no"
13267 LIBS="$ac_save_LIBS"
13270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13271 echo "$ac_t""yes" 1>&6
13274 echo "$ac_t""no" 1>&6
13278 if test $have_iodbc = yes ; then
13279 ol_link_sql="-liodbc"
13281 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13282 echo "configure:13283: checking for SQLDriverConnect in -lodbc" >&5
13283 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13284 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13287 ac_save_LIBS="$LIBS"
13288 LIBS="-lodbc $LIBS"
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 /* Override any gcc2 internal prototype to avoid an error. */
13293 /* We use char because int might match the return type of a gcc2
13294 builtin and then its argument prototype would still apply. */
13295 char SQLDriverConnect();
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303 eval "ac_cv_lib_$ac_lib_var=yes"
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13308 eval "ac_cv_lib_$ac_lib_var=no"
13311 LIBS="$ac_save_LIBS"
13314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13315 echo "$ac_t""yes" 1>&6
13318 echo "$ac_t""no" 1>&6
13322 if test $have_odbc = yes ; then
13323 ol_link_sql="-lodbc"
13327 if test $ol_link_sql != no ; then
13328 SLAPD_SQL_LIBS="$ol_link_sql"
13330 elif test $ol_enable_sql != auto ; then
13331 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13335 if test $ol_enable_tcl != no ; then
13336 for ac_hdr in tcl.h
13338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13340 echo "configure:13341: checking for $ac_hdr" >&5
13341 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13342 echo $ac_n "(cached) $ac_c" 1>&6
13344 cat > conftest.$ac_ext <<EOF
13345 #line 13346 "configure"
13346 #include "confdefs.h"
13349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13350 { (eval echo configure:13351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13352 if test -z "$ac_err"; then
13354 eval "ac_cv_header_$ac_safe=yes"
13357 echo "configure: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13360 eval "ac_cv_header_$ac_safe=no"
13364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13365 echo "$ac_t""yes" 1>&6
13366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13367 cat >> confdefs.h <<EOF
13368 #define $ac_tr_hdr 1
13372 echo "$ac_t""no" 1>&6
13377 if test $ac_cv_header_tcl_h != yes ; then
13380 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13381 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13382 echo "configure:13383: checking for main in -l$lib" >&5
13383 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13384 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13385 echo $ac_n "(cached) $ac_c" 1>&6
13387 ac_save_LIBS="$LIBS"
13388 LIBS="-l$lib $LIBS"
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13397 if { (eval echo configure:13398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13399 eval "ac_cv_lib_$ac_lib_var=yes"
13401 echo "configure: failed program was:" >&5
13402 cat conftest.$ac_ext >&5
13404 eval "ac_cv_lib_$ac_lib_var=no"
13407 LIBS="$ac_save_LIBS"
13410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13411 echo "$ac_t""yes" 1>&6
13413 if test x"$ol_with_tcl_module" = "xstatic" ; then
13414 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13416 MOD_TCL_LIB="-l${lib}"
13419 echo "$ac_t""no" 1>&6
13426 if test $have_tcl != yes ; then
13427 echo "configure: warning: could not find -ltcl" 1>&2
13428 if test $ol_enable_tcl = yes ; then
13429 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13437 for ac_hdr in termcap.h ncurses.h
13439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13441 echo "configure:13442: checking for $ac_hdr" >&5
13442 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
13445 cat > conftest.$ac_ext <<EOF
13446 #line 13447 "configure"
13447 #include "confdefs.h"
13450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13451 { (eval echo configure:13452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13453 if test -z "$ac_err"; then
13455 eval "ac_cv_header_$ac_safe=yes"
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13461 eval "ac_cv_header_$ac_safe=no"
13465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13466 echo "$ac_t""yes" 1>&6
13467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13468 cat >> confdefs.h <<EOF
13469 #define $ac_tr_hdr 1
13473 echo "$ac_t""no" 1>&6
13478 if test $ol_link_termcap = no ; then
13479 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13480 echo "configure:13481: checking for tputs in -ltermcap" >&5
13481 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13483 echo $ac_n "(cached) $ac_c" 1>&6
13485 ac_save_LIBS="$LIBS"
13486 LIBS="-ltermcap $LIBS"
13487 cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13490 /* Override any gcc2 internal prototype to avoid an error. */
13491 /* We use char because int might match the return type of a gcc2
13492 builtin and then its argument prototype would still apply. */
13499 if { (eval echo configure:13500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13501 eval "ac_cv_lib_$ac_lib_var=yes"
13503 echo "configure: failed program was:" >&5
13504 cat conftest.$ac_ext >&5
13506 eval "ac_cv_lib_$ac_lib_var=no"
13509 LIBS="$ac_save_LIBS"
13512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13513 echo "$ac_t""yes" 1>&6
13516 echo "$ac_t""no" 1>&6
13520 if test $have_termcap = yes ; then
13521 cat >> confdefs.h <<\EOF
13522 #define HAVE_TERMCAP 1
13525 ol_link_termcap=yes
13526 TERMCAP_LIBS=-ltermcap
13530 if test $ol_link_termcap = no ; then
13531 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13532 echo "configure:13533: checking for initscr in -lncurses" >&5
13533 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13534 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13537 ac_save_LIBS="$LIBS"
13538 LIBS="-lncurses $LIBS"
13539 cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13542 /* Override any gcc2 internal prototype to avoid an error. */
13543 /* We use char because int might match the return type of a gcc2
13544 builtin and then its argument prototype would still apply. */
13551 if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13553 eval "ac_cv_lib_$ac_lib_var=yes"
13555 echo "configure: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
13558 eval "ac_cv_lib_$ac_lib_var=no"
13561 LIBS="$ac_save_LIBS"
13564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13565 echo "$ac_t""yes" 1>&6
13568 echo "$ac_t""no" 1>&6
13572 if test $have_ncurses = yes ; then
13573 cat >> confdefs.h <<\EOF
13574 #define HAVE_NCURSES 1
13577 ol_link_termcap=yes
13578 TERMCAP_LIBS=-lncurses
13582 if test $ol_link_termcap = no ; then
13583 cat >> confdefs.h <<\EOF
13584 #define NO_TERMCAP 1
13592 if test $ol_with_cyrus_sasl != no ; then
13593 for ac_hdr in sasl.h
13595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13597 echo "configure:13598: checking for $ac_hdr" >&5
13598 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13599 echo $ac_n "(cached) $ac_c" 1>&6
13601 cat > conftest.$ac_ext <<EOF
13602 #line 13603 "configure"
13603 #include "confdefs.h"
13606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13607 { (eval echo configure:13608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13609 if test -z "$ac_err"; then
13611 eval "ac_cv_header_$ac_safe=yes"
13614 echo "configure: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13617 eval "ac_cv_header_$ac_safe=no"
13621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13622 echo "$ac_t""yes" 1>&6
13623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13624 cat >> confdefs.h <<EOF
13625 #define $ac_tr_hdr 1
13629 echo "$ac_t""no" 1>&6
13634 if test $ac_cv_header_sasl_h = yes ; then
13635 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13636 echo "configure:13637: checking for sasl_client_init in -lsasl" >&5
13637 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13639 echo $ac_n "(cached) $ac_c" 1>&6
13641 ac_save_LIBS="$LIBS"
13642 LIBS="-lsasl $LIBS"
13643 cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 /* Override any gcc2 internal prototype to avoid an error. */
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13649 char sasl_client_init();
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13657 eval "ac_cv_lib_$ac_lib_var=yes"
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13662 eval "ac_cv_lib_$ac_lib_var=no"
13665 LIBS="$ac_save_LIBS"
13668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13669 echo "$ac_t""yes" 1>&6
13670 have_cyrus_sasl=yes
13672 echo "$ac_t""no" 1>&6
13677 if test $have_cyrus_sasl != no ; then
13679 cat >> confdefs.h <<\EOF
13680 #define HAVE_CYRUS_SASL 1
13687 if test $ol_link_sasl = no ; then
13688 if test $ol_with_cyrus_sasl != auto ; then
13689 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13691 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13692 echo "configure: warning: SASL authentication not supported!" 1>&2
13693 if test $ol_link_tls = no ; then
13694 echo "configure: warning: Strong authentication not supported!" 1>&2
13698 elif test $ol_enable_spasswd != no ; then
13699 ol_link_spasswd=yes
13703 echo "configure: warning: SASL authentication not supported!" 1>&2
13704 if test $ol_link_tls = no ; then
13705 echo "configure: warning: Strong authentication not supported!" 1>&2
13709 if test $cross_compiling != yes ; then
13711 if test -r /dev/urandom ; then
13712 dev="/dev/urandom";
13713 elif test -r /idev/urandom ; then
13714 dev="/idev/urandom";
13715 elif test -r /dev/srandom ; then
13716 dev="/dev/srandom";
13717 elif test -r /dev/random ; then
13719 elif test -r /idev/random ; then
13720 dev="/idev/random";
13723 if test $dev != no ; then
13724 cat >> confdefs.h <<EOF
13725 #define URANDOM_DEVICE "$dev"
13732 if test $ol_with_fetch != no ; then
13734 LIBS="-lfetch -lcom_err $LIBS"
13735 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13736 echo "configure:13737: checking fetch(3) library" >&5
13737 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13741 cat > conftest.$ac_ext <<EOF
13742 #line 13743 "configure"
13743 #include "confdefs.h"
13745 #include <sys/param.h>
13749 struct url *u = fetchParseURL("file:///");
13752 if { (eval echo configure:13753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13754 ol_cv_lib_fetch=yes
13756 echo "configure: failed program was:" >&5
13757 cat conftest.$ac_ext >&5
13764 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13766 if test $ol_cv_lib_fetch != no ; then
13767 ol_link_fetch="-lfetch -lcom_err"
13768 cat >> confdefs.h <<\EOF
13769 #define HAVE_FETCH 1
13775 if test $ol_cv_lib_fetch != no ; then
13776 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13777 ol_link_fetch=freebsd
13779 elif test $ol_with_fetch != auto ; then
13780 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13784 ol_link_readline=no
13785 if test $ol_with_readline != no ; then
13786 for ac_hdr in readline/readline.h readline/history.h
13788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13790 echo "configure:13791: checking for $ac_hdr" >&5
13791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
13794 cat > conftest.$ac_ext <<EOF
13795 #line 13796 "configure"
13796 #include "confdefs.h"
13799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13800 { (eval echo configure:13801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13802 if test -z "$ac_err"; then
13804 eval "ac_cv_header_$ac_safe=yes"
13807 echo "configure: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13810 eval "ac_cv_header_$ac_safe=no"
13814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13815 echo "$ac_t""yes" 1>&6
13816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13817 cat >> confdefs.h <<EOF
13818 #define $ac_tr_hdr 1
13822 echo "$ac_t""no" 1>&6
13827 if test $ac_cv_header_readline_readline_h = yes ; then
13829 LIBS="$TERMCAP_LIBS $LIBS"
13830 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13831 echo "configure:13832: checking for readline in -lreadline" >&5
13832 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13833 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13834 echo $ac_n "(cached) $ac_c" 1>&6
13836 ac_save_LIBS="$LIBS"
13837 LIBS="-lreadline $LIBS"
13838 cat > conftest.$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13841 /* Override any gcc2 internal prototype to avoid an error. */
13842 /* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13850 if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 eval "ac_cv_lib_$ac_lib_var=yes"
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13857 eval "ac_cv_lib_$ac_lib_var=no"
13860 LIBS="$ac_save_LIBS"
13863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13864 echo "$ac_t""yes" 1>&6
13867 echo "$ac_t""no" 1>&6
13873 if test $have_readline = yes ; then
13874 ol_with_readline=found
13875 ol_link_readline=yes
13877 READLINE_LIBS="-lreadline"
13882 if test $ol_link_readline = yes ; then
13883 cat >> confdefs.h <<\EOF
13884 #define HAVE_READLINE 1
13890 if test $ol_enable_crypt != no ; then
13891 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13892 echo "configure:13893: checking for crypt" >&5
13893 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13896 cat > conftest.$ac_ext <<EOF
13897 #line 13898 "configure"
13898 #include "confdefs.h"
13899 /* System header to define __stub macros and hopefully few prototypes,
13900 which can conflict with char crypt(); below. */
13901 #include <assert.h>
13902 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13910 /* The GNU C library defines this for functions which it implements
13911 to always fail with ENOSYS. Some functions are actually named
13912 something starting with __ and the normal name is an alias. */
13913 #if defined (__stub_crypt) || defined (__stub___crypt)
13921 if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13923 eval "ac_cv_func_crypt=yes"
13925 echo "configure: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13928 eval "ac_cv_func_crypt=no"
13933 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13934 echo "$ac_t""yes" 1>&6
13937 echo "$ac_t""no" 1>&6
13939 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13940 echo "configure:13941: checking for crypt in -lcrypt" >&5
13941 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13945 ac_save_LIBS="$LIBS"
13946 LIBS="-lcrypt $LIBS"
13947 cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 /* Override any gcc2 internal prototype to avoid an error. */
13951 /* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13959 if { (eval echo configure:13960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13961 eval "ac_cv_lib_$ac_lib_var=yes"
13963 echo "configure: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13966 eval "ac_cv_lib_$ac_lib_var=no"
13969 LIBS="$ac_save_LIBS"
13972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13973 echo "$ac_t""yes" 1>&6
13974 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13977 echo "$ac_t""no" 1>&6
13984 if test $have_crypt = yes ; then
13985 cat >> confdefs.h <<\EOF
13986 #define HAVE_CRYPT 1
13990 echo "configure: warning: could not find crypt" 1>&2
13991 if test $ol_enable_crypt = yes ; then
13992 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13995 echo "configure: warning: disabling crypt support" 1>&2
14000 if test $ol_enable_proctitle != no ; then
14001 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14002 echo "configure:14003: checking for setproctitle" >&5
14003 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14004 echo $ac_n "(cached) $ac_c" 1>&6
14006 cat > conftest.$ac_ext <<EOF
14007 #line 14008 "configure"
14008 #include "confdefs.h"
14009 /* System header to define __stub macros and hopefully few prototypes,
14010 which can conflict with char setproctitle(); below. */
14011 #include <assert.h>
14012 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14015 char setproctitle();
14020 /* The GNU C library defines this for functions which it implements
14021 to always fail with ENOSYS. Some functions are actually named
14022 something starting with __ and the normal name is an alias. */
14023 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14031 if { (eval echo configure:14032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14033 eval "ac_cv_func_setproctitle=yes"
14035 echo "configure: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14038 eval "ac_cv_func_setproctitle=no"
14043 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 have_setproctitle=yes
14047 echo "$ac_t""no" 1>&6
14049 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14050 echo "configure:14051: checking for setproctitle in -lutil" >&5
14051 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14053 echo $ac_n "(cached) $ac_c" 1>&6
14055 ac_save_LIBS="$LIBS"
14056 LIBS="-lutil $LIBS"
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 /* Override any gcc2 internal prototype to avoid an error. */
14061 /* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14063 char setproctitle();
14069 if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14071 eval "ac_cv_lib_$ac_lib_var=yes"
14073 echo "configure: failed program was:" >&5
14074 cat conftest.$ac_ext >&5
14076 eval "ac_cv_lib_$ac_lib_var=no"
14079 LIBS="$ac_save_LIBS"
14082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14083 echo "$ac_t""yes" 1>&6
14084 have_setproctitle=yes
14085 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14087 echo "$ac_t""no" 1>&6
14088 have_setproctitle=no
14089 LIBOBJS="$LIBOBJS setproctitle.o"
14090 LIBSRCS="$LIBSRCS setproctitle.c"
14096 if test $have_setproctitle = yes ; then
14097 cat >> confdefs.h <<\EOF
14098 #define HAVE_SETPROCTITLE 1
14104 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14105 echo "configure:14106: checking for ANSI C header files" >&5
14106 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14107 echo $ac_n "(cached) $ac_c" 1>&6
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 #include <stdlib.h>
14113 #include <stdarg.h>
14114 #include <string.h>
14117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14118 { (eval echo configure:14119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14120 if test -z "$ac_err"; then
14122 ac_cv_header_stdc=yes
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14128 ac_cv_header_stdc=no
14132 if test $ac_cv_header_stdc = yes; then
14133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14134 cat > conftest.$ac_ext <<EOF
14135 #line 14136 "configure"
14136 #include "confdefs.h"
14137 #include <string.h>
14139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14140 egrep "memchr" >/dev/null 2>&1; then
14144 ac_cv_header_stdc=no
14150 if test $ac_cv_header_stdc = yes; then
14151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14152 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure"
14154 #include "confdefs.h"
14155 #include <stdlib.h>
14157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14158 egrep "free" >/dev/null 2>&1; then
14162 ac_cv_header_stdc=no
14168 if test $ac_cv_header_stdc = yes; then
14169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14170 if test "$cross_compiling" = yes; then
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14177 #if ((' ' & 0x0FF) == 0x020)
14178 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14179 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14181 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14182 || ('j' <= (c) && (c) <= 'r') \
14183 || ('s' <= (c) && (c) <= 'z'))
14184 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14187 int main () { int i; for (i = 0; i < 256; i++)
14188 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14192 if { (eval echo configure:14193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14199 ac_cv_header_stdc=no
14207 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14208 if test $ac_cv_header_stdc = yes; then
14209 cat >> confdefs.h <<\EOF
14210 #define STDC_HEADERS 1
14215 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14216 echo "configure:14217: checking for mode_t" >&5
14217 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14218 echo $ac_n "(cached) $ac_c" 1>&6
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 #include <sys/types.h>
14225 #include <stdlib.h>
14226 #include <stddef.h>
14230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14231 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14233 eval "ac_cv_type_mode_t=yes"
14236 eval "ac_cv_type_mode_t=no"
14241 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14242 echo "$ac_t""yes" 1>&6
14244 echo "$ac_t""no" 1>&6
14245 cat >> confdefs.h <<EOF
14251 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14252 echo "configure:14253: checking for off_t" >&5
14253 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14254 echo $ac_n "(cached) $ac_c" 1>&6
14256 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14259 #include <sys/types.h>
14261 #include <stdlib.h>
14262 #include <stddef.h>
14266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14269 eval "ac_cv_type_off_t=yes"
14272 eval "ac_cv_type_off_t=no"
14277 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14278 echo "$ac_t""yes" 1>&6
14280 echo "$ac_t""no" 1>&6
14281 cat >> confdefs.h <<EOF
14287 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14288 echo "configure:14289: checking for pid_t" >&5
14289 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14290 echo $ac_n "(cached) $ac_c" 1>&6
14292 cat > conftest.$ac_ext <<EOF
14293 #line 14294 "configure"
14294 #include "confdefs.h"
14295 #include <sys/types.h>
14297 #include <stdlib.h>
14298 #include <stddef.h>
14302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14303 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14305 eval "ac_cv_type_pid_t=yes"
14308 eval "ac_cv_type_pid_t=no"
14313 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14314 echo "$ac_t""yes" 1>&6
14316 echo "$ac_t""no" 1>&6
14317 cat >> confdefs.h <<EOF
14323 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14324 echo "configure:14325: checking for ptrdiff_t" >&5
14325 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14326 echo $ac_n "(cached) $ac_c" 1>&6
14328 cat > conftest.$ac_ext <<EOF
14329 #line 14330 "configure"
14330 #include "confdefs.h"
14331 #include <stddef.h>
14336 if { (eval echo configure:14337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14338 am_cv_type_ptrdiff_t=yes
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14343 am_cv_type_ptrdiff_t=no
14348 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14349 if test $am_cv_type_ptrdiff_t = yes; then
14350 cat >> confdefs.h <<\EOF
14351 #define HAVE_PTRDIFF_T 1
14356 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14357 echo "configure:14358: checking return type of signal handlers" >&5
14358 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14359 echo $ac_n "(cached) $ac_c" 1>&6
14361 cat > conftest.$ac_ext <<EOF
14362 #line 14363 "configure"
14363 #include "confdefs.h"
14364 #include <sys/types.h>
14365 #include <signal.h>
14370 extern "C" void (*signal (int, void (*)(int)))(int);
14372 void (*signal ()) ();
14379 if { (eval echo configure:14380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14381 ac_cv_type_signal=void
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14386 ac_cv_type_signal=int
14391 echo "$ac_t""$ac_cv_type_signal" 1>&6
14392 cat >> confdefs.h <<EOF
14393 #define RETSIGTYPE $ac_cv_type_signal
14397 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14398 echo "configure:14399: checking for size_t" >&5
14399 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14400 echo $ac_n "(cached) $ac_c" 1>&6
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14404 "configure"
14404 #include "confdefs.h"
14405 #include <sys/types.h>
14407 #include <stdlib.h>
14408 #include <stddef.h>
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14415 eval "ac_cv_type_size_t=yes"
14418 eval "ac_cv_type_size_t=no"
14423 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14424 echo "$ac_t""yes" 1>&6
14426 echo "$ac_t""no" 1>&6
14427 cat >> confdefs.h <<EOF
14428 #define size_t unsigned
14434 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14435 echo "configure:14436: checking for ssize_t" >&5
14436 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14437 echo $ac_n "(cached) $ac_c" 1>&6
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442 #include <sys/types.h>
14444 #include <stdlib.h>
14445 #include <stddef.h>
14449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14450 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14452 eval "ac_cv_type_ssize_t=yes"
14455 eval "ac_cv_type_ssize_t=no"
14460 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14461 echo "$ac_t""yes" 1>&6
14463 echo "$ac_t""no" 1>&6
14464 cat >> confdefs.h <<EOF
14465 #define ssize_t signed int
14470 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14471 echo "configure:14472: checking for caddr_t" >&5
14472 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14473 echo $ac_n "(cached) $ac_c" 1>&6
14475 cat > conftest.$ac_ext <<EOF
14476 #line 14477 "configure"
14477 #include "confdefs.h"
14478 #include <sys/types.h>
14480 #include <stdlib.h>
14481 #include <stddef.h>
14485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14486 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14488 eval "ac_cv_type_caddr_t=yes"
14491 eval "ac_cv_type_caddr_t=no"
14496 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14499 echo "$ac_t""no" 1>&6
14500 cat >> confdefs.h <<EOF
14501 #define caddr_t char *
14507 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14508 echo "configure:14509: checking for socklen_t" >&5
14509 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14510 echo $ac_n "(cached) $ac_c" 1>&6
14512 cat > conftest.$ac_ext <<EOF
14513 #line 14514 "configure"
14514 #include "confdefs.h"
14516 #ifdef HAVE_SYS_TYPES_H
14517 #include <sys/types.h>
14519 #ifdef HAVE_SYS_SOCKET_H
14520 #include <sys/socket.h>
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14529 ol_cv_type_socklen_t=yes
14531 echo "configure: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14534 ol_cv_type_socklen_t=no
14539 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14540 if test $ol_cv_type_socklen_t = no; then
14541 cat >> confdefs.h <<\EOF
14542 #define socklen_t int
14547 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14548 echo "configure:14549: checking for member st_blksize in aggregate type struct stat" >&5
14549 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14550 echo $ac_n "(cached) $ac_c" 1>&6
14552 cat > conftest.$ac_ext <<EOF
14553 #line 14554 "configure"
14554 #include "confdefs.h"
14555 #include <sys/types.h>
14556 #include <sys/stat.h>
14558 struct stat foo; foo.st_blksize;
14561 if { (eval echo configure:14562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14563 ac_cv_c_struct_member_st_blksize=yes
14565 echo "configure: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14568 ac_cv_c_struct_member_st_blksize=no
14573 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14574 st_blksize="$ac_cv_c_struct_member_st_blksize"
14575 if test $ac_cv_c_struct_member_st_blksize = yes; then
14576 cat >> confdefs.h <<\EOF
14577 #define HAVE_ST_BLKSIZE 1
14582 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14583 echo "configure:14584: checking whether time.h and sys/time.h may both be included" >&5
14584 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14585 echo $ac_n "(cached) $ac_c" 1>&6
14587 cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure"
14589 #include "confdefs.h"
14590 #include <sys/types.h>
14591 #include <sys/time.h>
14597 if { (eval echo configure:14598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14599 ac_cv_header_time=yes
14601 echo "configure: failed program was:" >&5
14602 cat conftest.$ac_ext >&5
14604 ac_cv_header_time=no
14609 echo "$ac_t""$ac_cv_header_time" 1>&6
14610 if test $ac_cv_header_time = yes; then
14611 cat >> confdefs.h <<\EOF
14612 #define TIME_WITH_SYS_TIME 1
14617 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14618 echo "configure:14619: checking whether struct tm is in sys/time.h or time.h" >&5
14619 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14620 echo $ac_n "(cached) $ac_c" 1>&6
14622 cat > conftest.$ac_ext <<EOF
14623 #line 14624 "configure"
14624 #include "confdefs.h"
14625 #include <sys/types.h>
14628 struct tm *tp; tp->tm_sec;
14631 if { (eval echo configure:14632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14633 ac_cv_struct_tm=time.h
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14638 ac_cv_struct_tm=sys/time.h
14643 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14644 if test $ac_cv_struct_tm = sys/time.h; then
14645 cat >> confdefs.h <<\EOF
14646 #define TM_IN_SYS_TIME 1
14651 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14652 echo "configure:14653: checking for uid_t in sys/types.h" >&5
14653 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14654 echo $ac_n "(cached) $ac_c" 1>&6
14656 cat > conftest.$ac_ext <<EOF
14657 #line 14658 "configure"
14658 #include "confdefs.h"
14659 #include <sys/types.h>
14661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14662 egrep "uid_t" >/dev/null 2>&1; then
14664 ac_cv_type_uid_t=yes
14667 ac_cv_type_uid_t=no
14673 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14674 if test $ac_cv_type_uid_t = no; then
14675 cat >> confdefs.h <<\EOF
14679 cat >> confdefs.h <<\EOF
14685 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14686 echo "configure:14687: checking for sig_atomic_t" >&5
14687 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14688 echo $ac_n "(cached) $ac_c" 1>&6
14690 cat > conftest.$ac_ext <<EOF
14691 #line 14692 "configure"
14692 #include "confdefs.h"
14693 #include <signal.h>
14695 sig_atomic_t atomic;
14698 if { (eval echo configure:14699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14700 ol_cv_type_sig_atomic_t=yes
14702 echo "configure: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14705 ol_cv_type_sig_atomic_t=no
14710 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14711 if test $ol_cv_type_sig_atomic_t = no; then
14712 cat >> confdefs.h <<\EOF
14713 #define sig_atomic_t int
14720 # test for pw_gecos in struct passwd
14721 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14722 echo "configure:14723: checking struct passwd for pw_gecos" >&5
14723 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14724 echo $ac_n "(cached) $ac_c" 1>&6
14727 cat > conftest.$ac_ext <<EOF
14728 #line 14729 "configure"
14729 #include "confdefs.h"
14734 pwd.pw_gecos = pwd.pw_name;
14738 if { (eval echo configure:14739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14740 ol_cv_struct_passwd_pw_gecos=yes
14742 echo "configure: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14745 ol_cv_struct_passwd_pw_gecos=no
14750 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14751 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14752 cat >> confdefs.h <<\EOF
14753 #define HAVE_PW_GECOS 1
14758 # test for pw_passwd in struct passwd
14759 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14760 echo "configure:14761: checking struct passwd for pw_passwd" >&5
14761 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14762 echo $ac_n "(cached) $ac_c" 1>&6
14765 cat > conftest.$ac_ext <<EOF
14766 #line 14767 "configure"
14767 #include "confdefs.h"
14772 pwd.pw_passwd = pwd.pw_name;
14776 if { (eval echo configure:14777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14778 ol_cv_struct_passwd_pw_passwd=yes
14780 echo "configure: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14783 ol_cv_struct_passwd_pw_passwd=no
14788 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14789 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14790 cat >> confdefs.h <<\EOF
14791 #define HAVE_PW_PASSWD 1
14797 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14798 echo "configure:14799: checking if toupper() requires islower()" >&5
14799 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14800 echo $ac_n "(cached) $ac_c" 1>&6
14803 if test "$cross_compiling" = yes; then
14804 ol_cv_c_upper_lower=safe
14806 cat > conftest.$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14813 if ('C' == toupper('C'))
14819 if { (eval echo configure:14820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14821 ol_cv_c_upper_lower=no
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14826 ol_cv_c_upper_lower=yes
14833 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14834 if test $ol_cv_c_upper_lower != no ; then
14835 cat >> confdefs.h <<\EOF
14836 #define C_UPPER_LOWER 1
14841 echo $ac_n "checking for working const""... $ac_c" 1>&6
14842 echo "configure:14843: checking for working const" >&5
14843 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14844 echo $ac_n "(cached) $ac_c" 1>&6
14846 cat > conftest.$ac_ext <<EOF
14847 #line 14848 "configure"
14848 #include "confdefs.h"
14852 /* Ultrix mips cc rejects this. */
14853 typedef int charset[2]; const charset x;
14854 /* SunOS 4.1.1 cc rejects this. */
14855 char const *const *ccp;
14857 /* NEC SVR4.0.2 mips cc rejects this. */
14858 struct point {int x, y;};
14859 static struct point const zero = {0,0};
14860 /* AIX XL C 1.02.0.0 rejects this.
14861 It does not let you subtract one const X* pointer from another in an arm
14862 of an if-expression whose if-part is not a constant expression */
14863 const char *g = "string";
14864 ccp = &g + (g ? g-g : 0);
14865 /* HPUX 7.0 cc rejects these. */
14868 ccp = (char const *const *) p;
14869 { /* SCO 3.2v4 cc rejects this. */
14871 char const *s = 0 ? (char *) 0 : (char const *) 0;
14875 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14876 int x[] = {25, 17};
14877 const int *foo = &x[0];
14880 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14881 typedef const int *iptr;
14885 { /* AIX XL C 1.02.0.0 rejects this saying
14886 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14887 struct s { int j; const int *ap[3]; };
14888 struct s *b; b->j = 5;
14890 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14891 const int foo = 10;
14896 if { (eval echo configure:14897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14908 echo "$ac_t""$ac_cv_c_const" 1>&6
14909 if test $ac_cv_c_const = no; then
14910 cat >> confdefs.h <<\EOF
14916 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14917 echo "configure:14918: checking if compiler understands volatile" >&5
14918 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14919 echo $ac_n "(cached) $ac_c" 1>&6
14921 cat > conftest.$ac_ext <<EOF
14922 #line 14923 "configure"
14923 #include "confdefs.h"
14926 volatile int a; int * volatile b = x ? &y : &z;
14927 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14931 if { (eval echo configure:14932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14933 ol_cv_c_volatile=yes
14935 echo "configure: failed program was:" >&5
14936 cat conftest.$ac_ext >&5
14938 ol_cv_c_volatile=no
14943 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14944 if test $ol_cv_c_volatile = yes; then
14947 cat >> confdefs.h <<\EOF
14954 if test $cross_compiling = yes ; then
14955 cat >> confdefs.h <<\EOF
14956 #define CROSS_COMPILING 1
14960 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14961 echo "configure:14962: checking whether byte ordering is bigendian" >&5
14962 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14963 echo $ac_n "(cached) $ac_c" 1>&6
14965 ac_cv_c_bigendian=unknown
14966 # See if sys/param.h defines the BYTE_ORDER macro.
14967 cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14970 #include <sys/types.h>
14971 #include <sys/param.h>
14974 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14975 bogus endian macros
14979 if { (eval echo configure:14980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14981 # It does; now see whether it defined to BIG_ENDIAN or not.
14982 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure"
14984 #include "confdefs.h"
14985 #include <sys/types.h>
14986 #include <sys/param.h>
14989 #if BYTE_ORDER != BIG_ENDIAN
14994 if { (eval echo configure:14995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14996 ac_cv_c_bigendian=yes
14998 echo "configure: failed program was:" >&5
14999 cat conftest.$ac_ext >&5
15001 ac_cv_c_bigendian=no
15005 echo "configure: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15009 if test $ac_cv_c_bigendian = unknown; then
15010 if test "$cross_compiling" = yes; then
15011 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15013 cat > conftest.$ac_ext <<EOF
15014 #line 15015 "configure"
15015 #include "confdefs.h"
15017 /* Are we little or big endian? From Harbison&Steele. */
15021 char c[sizeof (long)];
15024 exit (u.c[sizeof (long) - 1] == 1);
15027 if { (eval echo configure:15028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15029 ac_cv_c_bigendian=no
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15034 ac_cv_c_bigendian=yes
15042 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15043 if test $ac_cv_c_bigendian = yes; then
15044 cat >> confdefs.h <<\EOF
15045 #define WORDS_BIGENDIAN 1
15052 echo $ac_n "checking size of short""... $ac_c" 1>&6
15053 echo "configure:15054: checking size of short" >&5
15054 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15057 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15058 cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 #include "confdefs.h"
15062 #include <sys/types.h>
15066 switch (0) case 0: case (sizeof (short) == $ac_size):;
15069 if { (eval echo configure:15070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15071 ac_cv_sizeof_short=$ac_size
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15077 if test x$ac_cv_sizeof_short != x ; then break; fi
15082 if test x$ac_cv_sizeof_short = x ; then
15083 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15085 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15086 cat >> confdefs.h <<EOF
15087 #define SIZEOF_SHORT $ac_cv_sizeof_short
15091 echo $ac_n "checking size of int""... $ac_c" 1>&6
15092 echo "configure:15093: checking size of int" >&5
15093 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15094 echo $ac_n "(cached) $ac_c" 1>&6
15096 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15097 cat > conftest.$ac_ext <<EOF
15098 #line 15099 "configure"
15099 #include "confdefs.h"
15100 #include "confdefs.h"
15101 #include <sys/types.h>
15105 switch (0) case 0: case (sizeof (int) == $ac_size):;
15108 if { (eval echo configure:15109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15110 ac_cv_sizeof_int=$ac_size
15112 echo "configure: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15116 if test x$ac_cv_sizeof_int != x ; then break; fi
15121 if test x$ac_cv_sizeof_int = x ; then
15122 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15124 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15125 cat >> confdefs.h <<EOF
15126 #define SIZEOF_INT $ac_cv_sizeof_int
15130 echo $ac_n "checking size of long""... $ac_c" 1>&6
15131 echo "configure:15132: checking size of long" >&5
15132 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
15135 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15136 cat > conftest.$ac_ext <<EOF
15137 #line 15138 "configure"
15138 #include "confdefs.h"
15139 #include "confdefs.h"
15140 #include <sys/types.h>
15144 switch (0) case 0: case (sizeof (long) == $ac_size):;
15147 if { (eval echo configure:15148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15149 ac_cv_sizeof_long=$ac_size
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15155 if test x$ac_cv_sizeof_long != x ; then break; fi
15160 if test x$ac_cv_sizeof_long = x ; then
15161 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15163 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15164 cat >> confdefs.h <<EOF
15165 #define SIZEOF_LONG $ac_cv_sizeof_long
15170 if test "$ac_cv_sizeof_int" -lt 4 ; then
15171 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15173 cat >> confdefs.h <<\EOF
15174 #define LBER_INT_T long
15178 cat >> confdefs.h <<\EOF
15179 #define LBER_INT_T int
15184 cat >> confdefs.h <<\EOF
15185 #define LBER_LEN_T long
15188 cat >> confdefs.h <<\EOF
15189 #define LBER_SOCKET_T int
15192 cat >> confdefs.h <<\EOF
15193 #define LBER_TAG_T long
15197 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15198 echo "configure:15199: checking for 8-bit clean memcmp" >&5
15199 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15202 if test "$cross_compiling" = yes; then
15203 ac_cv_func_memcmp_clean=no
15205 cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure"
15207 #include "confdefs.h"
15211 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15212 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15216 if { (eval echo configure:15217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15218 ac_cv_func_memcmp_clean=yes
15220 echo "configure: failed program was:" >&5
15221 cat conftest.$ac_ext >&5
15223 ac_cv_func_memcmp_clean=no
15230 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15231 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15233 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15234 echo "configure:15235: checking for strftime" >&5
15235 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
15238 cat > conftest.$ac_ext <<EOF
15239 #line 15240 "configure"
15240 #include "confdefs.h"
15241 /* System header to define __stub macros and hopefully few prototypes,
15242 which can conflict with char strftime(); below. */
15243 #include <assert.h>
15244 /* Override any gcc2 internal prototype to avoid an error. */
15245 /* We use char because int might match the return type of a gcc2
15246 builtin and then its argument prototype would still apply. */
15252 /* The GNU C library defines this for functions which it implements
15253 to always fail with ENOSYS. Some functions are actually named
15254 something starting with __ and the normal name is an alias. */
15255 #if defined (__stub_strftime) || defined (__stub___strftime)
15263 if { (eval echo configure:15264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15265 eval "ac_cv_func_strftime=yes"
15267 echo "configure: failed program was:" >&5
15268 cat conftest.$ac_ext >&5
15270 eval "ac_cv_func_strftime=no"
15275 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15276 echo "$ac_t""yes" 1>&6
15277 cat >> confdefs.h <<\EOF
15278 #define HAVE_STRFTIME 1
15282 echo "$ac_t""no" 1>&6
15283 # strftime is in -lintl on SCO UNIX.
15284 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15285 echo "configure:15286: checking for strftime in -lintl" >&5
15286 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15288 echo $ac_n "(cached) $ac_c" 1>&6
15290 ac_save_LIBS="$LIBS"
15291 LIBS="-lintl $LIBS"
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295 /* Override any gcc2 internal prototype to avoid an error. */
15296 /* We use char because int might match the return type of a gcc2
15297 builtin and then its argument prototype would still apply. */
15304 if { (eval echo configure:15305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15306 eval "ac_cv_lib_$ac_lib_var=yes"
15308 echo "configure: failed program was:" >&5
15309 cat conftest.$ac_ext >&5
15311 eval "ac_cv_lib_$ac_lib_var=no"
15314 LIBS="$ac_save_LIBS"
15317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 cat >> confdefs.h <<\EOF
15320 #define HAVE_STRFTIME 1
15323 LIBS="-lintl $LIBS"
15325 echo "$ac_t""no" 1>&6
15331 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15332 echo "configure:15333: checking for inet_aton()" >&5
15333 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
15336 cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15340 #ifdef HAVE_SYS_TYPES_H
15341 # include <sys/types.h>
15343 #ifdef HAVE_SYS_SOCKET_H
15344 # include <sys/socket.h>
15345 # ifdef HAVE_SYS_SELECT_H
15346 # include <sys/select.h>
15348 # include <netinet/in.h>
15349 # ifdef HAVE_ARPA_INET_H
15350 # include <arpa/inet.h>
15356 int rc = inet_aton( "255.255.255.255", &in );
15359 if { (eval echo configure:15360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15361 ol_cv_func_inet_aton=yes
15363 echo "configure: failed program was:" >&5
15364 cat conftest.$ac_ext >&5
15366 ol_cv_func_inet_aton=no
15371 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15372 if test $ol_cv_func_inet_aton != no; then
15373 cat >> confdefs.h <<\EOF
15374 #define HAVE_INET_ATON 1
15380 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15381 echo "configure:15382: checking for _spawnlp" >&5
15382 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15383 echo $ac_n "(cached) $ac_c" 1>&6
15385 cat > conftest.$ac_ext <<EOF
15386 #line 15387 "configure"
15387 #include "confdefs.h"
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char _spawnlp(); below. */
15390 #include <assert.h>
15391 /* Override any gcc2 internal prototype to avoid an error. */
15392 /* We use char because int might match the return type of a gcc2
15393 builtin and then its argument prototype would still apply. */
15399 /* The GNU C library defines this for functions which it implements
15400 to always fail with ENOSYS. Some functions are actually named
15401 something starting with __ and the normal name is an alias. */
15402 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15410 if { (eval echo configure:15411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15412 eval "ac_cv_func__spawnlp=yes"
15414 echo "configure: failed program was:" >&5
15415 cat conftest.$ac_ext >&5
15417 eval "ac_cv_func__spawnlp=no"
15422 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15423 echo "$ac_t""yes" 1>&6
15424 cat >> confdefs.h <<\EOF
15425 #define HAVE_SPAWNLP 1
15429 echo "$ac_t""no" 1>&6
15433 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15434 echo "configure:15435: checking for _snprintf" >&5
15435 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15436 echo $ac_n "(cached) $ac_c" 1>&6
15438 cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441 /* System header to define __stub macros and hopefully few prototypes,
15442 which can conflict with char _snprintf(); below. */
15443 #include <assert.h>
15444 /* Override any gcc2 internal prototype to avoid an error. */
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15452 /* The GNU C library defines this for functions which it implements
15453 to always fail with ENOSYS. Some functions are actually named
15454 something starting with __ and the normal name is an alias. */
15455 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15463 if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15465 eval "ac_cv_func__snprintf=yes"
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15470 eval "ac_cv_func__snprintf=no"
15475 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15476 echo "$ac_t""yes" 1>&6
15477 ac_cv_func_snprintf=yes
15478 cat >> confdefs.h <<\EOF
15479 #define snprintf _snprintf
15484 echo "$ac_t""no" 1>&6
15488 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15489 echo "configure:15490: checking for _vsnprintf" >&5
15490 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15491 echo $ac_n "(cached) $ac_c" 1>&6
15493 cat > conftest.$ac_ext <<EOF
15494 #line 15495 "configure"
15495 #include "confdefs.h"
15496 /* System header to define __stub macros and hopefully few prototypes,
15497 which can conflict with char _vsnprintf(); below. */
15498 #include <assert.h>
15499 /* Override any gcc2 internal prototype to avoid an error. */
15500 /* We use char because int might match the return type of a gcc2
15501 builtin and then its argument prototype would still apply. */
15507 /* The GNU C library defines this for functions which it implements
15508 to always fail with ENOSYS. Some functions are actually named
15509 something starting with __ and the normal name is an alias. */
15510 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15518 if { (eval echo configure:15519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15520 eval "ac_cv_func__vsnprintf=yes"
15522 echo "configure: failed program was:" >&5
15523 cat conftest.$ac_ext >&5
15525 eval "ac_cv_func__vsnprintf=no"
15530 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15531 echo "$ac_t""yes" 1>&6
15532 ac_cv_func_vsnprintf=yes
15533 cat >> confdefs.h <<\EOF
15534 #define vsnprintf _vsnprintf
15539 echo "$ac_t""no" 1>&6
15543 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15544 echo "configure:15545: checking for vprintf" >&5
15545 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15546 echo $ac_n "(cached) $ac_c" 1>&6
15548 cat > conftest.$ac_ext <<EOF
15549 #line 15550 "configure"
15550 #include "confdefs.h"
15551 /* System header to define __stub macros and hopefully few prototypes,
15552 which can conflict with char vprintf(); below. */
15553 #include <assert.h>
15554 /* Override any gcc2 internal prototype to avoid an error. */
15555 /* We use char because int might match the return type of a gcc2
15556 builtin and then its argument prototype would still apply. */
15562 /* The GNU C library defines this for functions which it implements
15563 to always fail with ENOSYS. Some functions are actually named
15564 something starting with __ and the normal name is an alias. */
15565 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15573 if { (eval echo configure:15574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15575 eval "ac_cv_func_vprintf=yes"
15577 echo "configure: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15580 eval "ac_cv_func_vprintf=no"
15585 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15586 echo "$ac_t""yes" 1>&6
15587 cat >> confdefs.h <<\EOF
15588 #define HAVE_VPRINTF 1
15592 echo "$ac_t""no" 1>&6
15595 if test "$ac_cv_func_vprintf" != yes; then
15596 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15597 echo "configure:15598: checking for _doprnt" >&5
15598 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15599 echo $ac_n "(cached) $ac_c" 1>&6
15601 cat > conftest.$ac_ext <<EOF
15602 #line 15603 "configure"
15603 #include "confdefs.h"
15604 /* System header to define __stub macros and hopefully few prototypes,
15605 which can conflict with char _doprnt(); below. */
15606 #include <assert.h>
15607 /* Override any gcc2 internal prototype to avoid an error. */
15608 /* We use char because int might match the return type of a gcc2
15609 builtin and then its argument prototype would still apply. */
15615 /* The GNU C library defines this for functions which it implements
15616 to always fail with ENOSYS. Some functions are actually named
15617 something starting with __ and the normal name is an alias. */
15618 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15626 if { (eval echo configure:15627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15628 eval "ac_cv_func__doprnt=yes"
15630 echo "configure: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15633 eval "ac_cv_func__doprnt=no"
15638 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15639 echo "$ac_t""yes" 1>&6
15640 cat >> confdefs.h <<\EOF
15641 #define HAVE_DOPRNT 1
15645 echo "$ac_t""no" 1>&6
15651 if test $ac_cv_func_vprintf = yes ; then
15652 for ac_func in vsnprintf vsprintf
15654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15655 echo "configure:15656: checking for $ac_func" >&5
15656 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15657 echo $ac_n "(cached) $ac_c" 1>&6
15659 cat > conftest.$ac_ext <<EOF
15660 #line 15661 "configure"
15661 #include "confdefs.h"
15662 /* System header to define __stub macros and hopefully few prototypes,
15663 which can conflict with char $ac_func(); below. */
15664 #include <assert.h>
15665 /* Override any gcc2 internal prototype to avoid an error. */
15666 /* We use char because int might match the return type of a gcc2
15667 builtin and then its argument prototype would still apply. */
15673 /* The GNU C library defines this for functions which it implements
15674 to always fail with ENOSYS. Some functions are actually named
15675 something starting with __ and the normal name is an alias. */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15684 if { (eval echo configure:15685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15686 eval "ac_cv_func_$ac_func=yes"
15688 echo "configure: failed program was:" >&5
15689 cat conftest.$ac_ext >&5
15691 eval "ac_cv_func_$ac_func=no"
15696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15697 echo "$ac_t""yes" 1>&6
15698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15699 cat >> confdefs.h <<EOF
15700 #define $ac_tr_func 1
15704 echo "$ac_t""no" 1>&6
15762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15763 echo "configure:15764: checking for $ac_func" >&5
15764 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15765 echo $ac_n "(cached) $ac_c" 1>&6
15767 cat > conftest.$ac_ext <<EOF
15768 #line 15769 "configure"
15769 #include "confdefs.h"
15770 /* System header to define __stub macros and hopefully few prototypes,
15771 which can conflict with char $ac_func(); below. */
15772 #include <assert.h>
15773 /* Override any gcc2 internal prototype to avoid an error. */
15774 /* We use char because int might match the return type of a gcc2
15775 builtin and then its argument prototype would still apply. */
15781 /* The GNU C library defines this for functions which it implements
15782 to always fail with ENOSYS. Some functions are actually named
15783 something starting with __ and the normal name is an alias. */
15784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15792 if { (eval echo configure:15793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15794 eval "ac_cv_func_$ac_func=yes"
15796 echo "configure: failed program was:" >&5
15797 cat conftest.$ac_ext >&5
15799 eval "ac_cv_func_$ac_func=no"
15804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15805 echo "$ac_t""yes" 1>&6
15806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15807 cat >> confdefs.h <<EOF
15808 #define $ac_tr_func 1
15812 echo "$ac_t""no" 1>&6
15817 for ac_func in getopt tempnam
15819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15820 echo "configure:15821: checking for $ac_func" >&5
15821 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15822 echo $ac_n "(cached) $ac_c" 1>&6
15824 cat > conftest.$ac_ext <<EOF
15825 #line 15826 "configure"
15826 #include "confdefs.h"
15827 /* System header to define __stub macros and hopefully few prototypes,
15828 which can conflict with char $ac_func(); below. */
15829 #include <assert.h>
15830 /* Override any gcc2 internal prototype to avoid an error. */
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15838 /* The GNU C library defines this for functions which it implements
15839 to always fail with ENOSYS. Some functions are actually named
15840 something starting with __ and the normal name is an alias. */
15841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15849 if { (eval echo configure:15850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15851 eval "ac_cv_func_$ac_func=yes"
15853 echo "configure: failed program was:" >&5
15854 cat conftest.$ac_ext >&5
15856 eval "ac_cv_func_$ac_func=no"
15861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15862 echo "$ac_t""yes" 1>&6
15863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15864 cat >> confdefs.h <<EOF
15865 #define $ac_tr_func 1
15869 echo "$ac_t""no" 1>&6
15870 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15876 if test "$ac_cv_func_getopt" != yes; then
15877 LIBSRCS="$LIBSRCS getopt.c"
15880 if test "$ac_cv_func_tempnam" != yes; then
15881 LIBSRCS="$LIBSRCS tempnam.c"
15884 # Check Configuration
15885 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15886 echo "configure:15887: checking declaration of sys_errlist" >&5
15887 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15888 echo $ac_n "(cached) $ac_c" 1>&6
15891 cat > conftest.$ac_ext <<EOF
15892 #line 15893 "configure"
15893 #include "confdefs.h"
15896 #include <sys/types.h>
15899 #include <stdlib.h>
15902 char *c = (char *) *sys_errlist
15905 if { (eval echo configure:15906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15907 ol_cv_dcl_sys_errlist=yes
15908 ol_cv_have_sys_errlist=yes
15910 echo "configure: failed program was:" >&5
15911 cat conftest.$ac_ext >&5
15913 ol_cv_dcl_sys_errlist=no
15918 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15920 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15921 if test $ol_cv_dcl_sys_errlist = no ; then
15922 cat >> confdefs.h <<\EOF
15923 #define DECL_SYS_ERRLIST 1
15927 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15928 echo "configure:15929: checking existence of sys_errlist" >&5
15929 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15930 echo $ac_n "(cached) $ac_c" 1>&6
15933 cat > conftest.$ac_ext <<EOF
15934 #line 15935 "configure"
15935 #include "confdefs.h"
15938 char *c = (char *) *sys_errlist
15941 if { (eval echo configure:15942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15943 ol_cv_have_sys_errlist=yes
15945 echo "configure: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15948 ol_cv_have_sys_errlist=no
15953 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15955 if test $ol_cv_have_sys_errlist = yes ; then
15956 cat >> confdefs.h <<\EOF
15957 #define HAVE_SYS_ERRLIST 1
15964 if test "$ol_enable_debug" != no ; then
15965 cat >> confdefs.h <<\EOF
15966 #define LDAP_DEBUG 1
15970 if test "$ol_enable_syslog" = yes ; then
15971 cat >> confdefs.h <<\EOF
15972 #define LDAP_SYSLOG 1
15976 if test "$ol_enable_cache" = no ; then
15977 cat >> confdefs.h <<\EOF
15978 #define LDAP_NOCACHE 1
15982 if test "$ol_link_kbind" != no ; then
15983 cat >> confdefs.h <<\EOF
15984 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15988 if test "$ol_enable_proctitle" != no ; then
15989 cat >> confdefs.h <<\EOF
15990 #define LDAP_PROCTITLE 1
15994 if test "$ol_enable_referrals" != no ; then
15995 cat >> confdefs.h <<\EOF
15996 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16000 if test "$ol_enable_local" != no; then
16001 cat >> confdefs.h <<\EOF
16002 #define LDAP_PF_LOCAL 1
16006 if test "$ol_link_ipv6" != no; then
16007 cat >> confdefs.h <<\EOF
16008 #define LDAP_PF_INET6 1
16012 if test "$ol_enable_cleartext" != no ; then
16013 cat >> confdefs.h <<\EOF
16014 #define SLAPD_CLEARTEXT 1
16018 if test "$ol_enable_crypt" != no ; then
16019 cat >> confdefs.h <<\EOF
16020 #define SLAPD_CRYPT 1
16024 if test "$ol_link_kpasswd" != no ; then
16025 cat >> confdefs.h <<\EOF
16026 #define SLAPD_KPASSWD 1
16030 if test "$ol_link_spasswd" != no ; then
16031 cat >> confdefs.h <<\EOF
16032 #define SLAPD_SPASSWD 1
16036 if test "$ol_enable_phonetic" != no ; then
16037 cat >> confdefs.h <<\EOF
16038 #define SLAPD_PHONETIC 1
16042 if test "$ol_enable_rlookups" != no ; then
16043 cat >> confdefs.h <<\EOF
16044 #define SLAPD_RLOOKUPS 1
16048 if test "$ol_enable_aci" != no ; then
16049 cat >> confdefs.h <<\EOF
16050 #define SLAPD_ACI_ENABLED 1
16055 if test "$ol_link_modules" != no ; then
16056 cat >> confdefs.h <<\EOF
16057 #define SLAPD_MODULES 1
16061 SLAPD_MODULES_LDFLAGS="-dlopen self"
16064 if test "$ol_enable_bdb" != no ; then
16065 cat >> confdefs.h <<\EOF
16066 #define SLAPD_BDB 1
16071 if test "$ol_with_bdb_module" != static ; then
16072 cat >> confdefs.h <<\EOF
16073 #define SLAPD_BDB_DYNAMIC 1
16077 BUILD_BDB_DYNAMIC=shared
16078 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16082 if test "$ol_link_dnssrv" != no ; then
16083 cat >> confdefs.h <<\EOF
16084 #define SLAPD_DNSSRV 1
16089 if test "$ol_with_dnssrv_module" != static ; then
16090 cat >> confdefs.h <<\EOF
16091 #define SLAPD_DNSSRV_DYNAMIC 1
16095 BUILD_DNSSRV_DYNAMIC=shared
16096 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16100 if test "$ol_enable_ldap" != no ; then
16101 cat >> confdefs.h <<\EOF
16102 #define SLAPD_LDAP 1
16107 if test "$ol_with_ldap_module" != static ; then
16108 cat >> confdefs.h <<\EOF
16109 #define SLAPD_LDAP_DYNAMIC 1
16113 BUILD_LDAP_DYNAMIC=shared
16114 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16118 if test "$ol_link_ldbm" != no ; then
16119 cat >> confdefs.h <<\EOF
16120 #define SLAPD_LDBM 1
16125 if test "$ol_with_ldbm_module" != static ; then
16126 cat >> confdefs.h <<\EOF
16127 #define SLAPD_LDBM_DYNAMIC 1
16131 BUILD_LDBM_DYNAMIC=shared
16132 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16136 if test "$ol_enable_passwd" != no ; then
16137 cat >> confdefs.h <<\EOF
16138 #define SLAPD_PASSWD 1
16143 if test "$ol_with_passwd_module" != static ; then
16144 cat >> confdefs.h <<\EOF
16145 #define SLAPD_PASSWD_DYNAMIC 1
16149 BUILD_PASSWD_DYNAMIC=shared
16150 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16154 if test "$ol_link_perl" != no ; then
16155 cat >> confdefs.h <<\EOF
16156 #define SLAPD_PERL 1
16161 if test "$ol_with_perl_module" != static ; then
16162 cat >> confdefs.h <<\EOF
16163 #define SLAPD_PERL_DYNAMIC 1
16167 BUILD_PERL_DYNAMIC=shared
16168 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16172 if test "$ol_enable_shell" != no ; then
16173 cat >> confdefs.h <<\EOF
16174 #define SLAPD_SHELL 1
16179 if test "$ol_with_shell_module" != static ; then
16180 cat >> confdefs.h <<\EOF
16181 #define SLAPD_SHELL_DYNAMIC 1
16185 BUILD_SHELL_DYNAMIC=shared
16186 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16190 if test "$ol_enable_tcl" != no ; then
16191 cat >> confdefs.h <<\EOF
16192 #define SLAPD_TCL 1
16197 if test "$ol_with_tcl_module" != static; then
16198 cat >> confdefs.h <<\EOF
16199 #define SLAPD_TCL_DYNAMIC 1
16203 BUILD_TCL_DYNAMIC=shared
16204 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16208 if test "$ol_link_sql" != no ; then
16209 cat >> confdefs.h <<\EOF
16210 #define SLAPD_SQL 1
16215 if test "$ol_with_sql_module" != static; then
16216 cat >> confdefs.h <<\EOF
16217 #define SLAPD_SQL_DYNAMIC 1
16221 BUILD_SQL_DYNAMIC=shared
16222 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16226 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16227 $BUILD_SLAPD = yes ; then
16232 if test "$LINK_BINS_DYNAMIC" = yes; then
16234 LT_LIB_LINKAGE=shared
16237 LT_LIB_LINKAGE=static
16240 if test "$ac_cv_mingw32" = yes ; then
16311 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16314 # Let make expand exec_prefix.
16315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16317 # Any assignment to VPATH causes Sun make to only execute
16318 # the first set of double-colon rules, so remove it if not needed.
16319 # If there is a colon in the path, we need to keep it.
16320 if test "x$srcdir" = x.; then
16321 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16324 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16326 DEFS=-DHAVE_CONFIG_H
16328 # Without the "./", some shells look in PATH for config.status.
16329 : ${CONFIG_STATUS=./config.status}
16331 echo creating $CONFIG_STATUS
16332 rm -f $CONFIG_STATUS
16333 cat > $CONFIG_STATUS <<EOF
16335 # Generated automatically by configure.
16336 # Run this file to recreate the current configuration.
16337 # This directory was configured as follows,
16338 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16340 # $0 $ac_configure_args
16342 # Compiler output produced by configure, useful for debugging
16343 # configure, is in ./config.log if it exists.
16345 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16348 case "\$ac_option" in
16349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16350 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16351 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16352 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16353 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16355 -help | --help | --hel | --he | --h)
16356 echo "\$ac_cs_usage"; exit 0 ;;
16357 *) echo "\$ac_cs_usage"; exit 1 ;;
16361 ac_given_srcdir=$srcdir
16362 ac_given_INSTALL="$INSTALL"
16364 trap 'rm -fr `echo "\
16365 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16366 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16367 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16368 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16369 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16370 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16371 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16372 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16373 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16374 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16375 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16376 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16377 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16378 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16379 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16380 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16381 include/Makefile:build/top.mk:include/Makefile.in \
16382 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16383 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16384 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16385 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16386 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16387 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16388 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16389 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16390 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16391 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16392 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16393 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16394 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16395 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16396 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16397 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16398 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16399 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16400 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16401 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16402 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16403 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16404 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16405 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16406 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16407 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16408 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16409 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16410 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16412 cat >> $CONFIG_STATUS <<EOF
16414 # Protect against being on the right side of a sed subst in config.status.
16415 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16416 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16420 s%@CFLAGS@%$CFLAGS%g
16421 s%@CPPFLAGS@%$CPPFLAGS%g
16422 s%@CXXFLAGS@%$CXXFLAGS%g
16423 s%@FFLAGS@%$FFLAGS%g
16425 s%@LDFLAGS@%$LDFLAGS%g
16427 s%@exec_prefix@%$exec_prefix%g
16428 s%@prefix@%$prefix%g
16429 s%@program_transform_name@%$program_transform_name%g
16430 s%@bindir@%$bindir%g
16431 s%@sbindir@%$sbindir%g
16432 s%@libexecdir@%$libexecdir%g
16433 s%@datadir@%$datadir%g
16434 s%@sysconfdir@%$sysconfdir%g
16435 s%@sharedstatedir@%$sharedstatedir%g
16436 s%@localstatedir@%$localstatedir%g
16437 s%@libdir@%$libdir%g
16438 s%@includedir@%$includedir%g
16439 s%@oldincludedir@%$oldincludedir%g
16440 s%@infodir@%$infodir%g
16441 s%@mandir@%$mandir%g
16443 s%@host_alias@%$host_alias%g
16444 s%@host_cpu@%$host_cpu%g
16445 s%@host_vendor@%$host_vendor%g
16446 s%@host_os@%$host_os%g
16447 s%@target@%$target%g
16448 s%@target_alias@%$target_alias%g
16449 s%@target_cpu@%$target_cpu%g
16450 s%@target_vendor@%$target_vendor%g
16451 s%@target_os@%$target_os%g
16453 s%@build_alias@%$build_alias%g
16454 s%@build_cpu@%$build_cpu%g
16455 s%@build_vendor@%$build_vendor%g
16456 s%@build_os@%$build_os%g
16457 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16458 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16459 s%@INSTALL_DATA@%$INSTALL_DATA%g
16460 s%@PACKAGE@%$PACKAGE%g
16461 s%@VERSION@%$VERSION%g
16462 s%@ACLOCAL@%$ACLOCAL%g
16463 s%@AUTOCONF@%$AUTOCONF%g
16464 s%@AUTOMAKE@%$AUTOMAKE%g
16465 s%@AUTOHEADER@%$AUTOHEADER%g
16466 s%@MAKEINFO@%$MAKEINFO%g
16467 s%@install_sh@%$install_sh%g
16470 s%@AMTARFLAGS@%$AMTARFLAGS%g
16471 s%@SET_MAKE@%$SET_MAKE%g
16472 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16473 s%@top_builddir@%$top_builddir%g
16474 s%@ldap_subdir@%$ldap_subdir%g
16476 s%@RANLIB@%$RANLIB%g
16478 s%@DLLTOOL@%$DLLTOOL%g
16480 s%@OBJDUMP@%$OBJDUMP%g
16481 s%@LIBTOOL@%$LIBTOOL%g
16483 s%@SENDMAIL@%$SENDMAIL%g
16484 s%@EDITOR@%$EDITOR%g
16485 s%@FINGER@%$FINGER%g
16486 s%@PERLBIN@%$PERLBIN%g
16488 s%@EXEEXT@%$EXEEXT%g
16489 s%@OBJEXT@%$OBJEXT%g
16490 s%@OL_MKDEP@%$OL_MKDEP%g
16491 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16492 s%@LIBOBJS@%$LIBOBJS%g
16493 s%@LIBSRCS@%$LIBSRCS%g
16495 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16496 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16497 s%@DYN_EXT@%$DYN_EXT%g
16498 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16499 s%@BUILD_BDB@%$BUILD_BDB%g
16500 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16501 s%@BUILD_LDAP@%$BUILD_LDAP%g
16502 s%@BUILD_LDBM@%$BUILD_LDBM%g
16503 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16504 s%@BUILD_PERL@%$BUILD_PERL%g
16505 s%@BUILD_SHELL@%$BUILD_SHELL%g
16506 s%@BUILD_SQL@%$BUILD_SQL%g
16507 s%@BUILD_TCL@%$BUILD_TCL%g
16508 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
16509 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16510 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16511 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16512 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16513 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16514 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16515 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16516 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16517 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16518 s%@LDAP_LIBS@%$LDAP_LIBS%g
16519 s%@LDIF_LIBS@%$LDIF_LIBS%g
16520 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16521 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16522 s%@LDBM_LIBS@%$LDBM_LIBS%g
16523 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16524 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16525 s%@WRAP_LIBS@%$WRAP_LIBS%g
16526 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16527 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16528 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16529 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16530 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16531 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16532 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16533 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16534 s%@KRB4_LIBS@%$KRB4_LIBS%g
16535 s%@KRB5_LIBS@%$KRB5_LIBS%g
16536 s%@READLINE_LIBS@%$READLINE_LIBS%g
16537 s%@SASL_LIBS@%$SASL_LIBS%g
16538 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16539 s%@TLS_LIBS@%$TLS_LIBS%g
16540 s%@MODULES_LIBS@%$MODULES_LIBS%g
16541 s%@AUTH_LIBS@%$AUTH_LIBS%g
16542 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16543 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16544 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16549 cat >> $CONFIG_STATUS <<\EOF
16551 # Split the substitutions into bite-sized pieces for seds with
16552 # small command number limits, like on Digital OSF/1 and HP-UX.
16553 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16554 ac_file=1 # Number of current file.
16555 ac_beg=1 # First line for current file.
16556 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16559 while $ac_more_lines; do
16560 if test $ac_beg -gt 1; then
16561 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16563 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16565 if test ! -s conftest.s$ac_file; then
16566 ac_more_lines=false
16567 rm -f conftest.s$ac_file
16569 if test -z "$ac_sed_cmds"; then
16570 ac_sed_cmds="sed -f conftest.s$ac_file"
16572 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16574 ac_file=`expr $ac_file + 1`
16576 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16579 if test -z "$ac_sed_cmds"; then
16584 cat >> $CONFIG_STATUS <<EOF
16586 CONFIG_FILES=\${CONFIG_FILES-"\
16587 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16588 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16589 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16590 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16591 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16592 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16593 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16594 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16595 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16596 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16597 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16598 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16599 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16600 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16601 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16602 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16603 include/Makefile:build/top.mk:include/Makefile.in \
16604 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16605 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16606 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16607 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16608 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16609 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16610 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16611 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16612 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16613 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16614 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16615 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16616 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16617 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16618 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16619 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16620 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16621 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16622 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16623 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16624 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16625 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16626 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16627 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16628 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16629 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16630 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16631 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16634 cat >> $CONFIG_STATUS <<\EOF
16635 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16638 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16639 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16640 *) ac_file_in="${ac_file}.in" ;;
16643 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16645 # Remove last slash and all that follows it. Not all systems have dirname.
16646 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16647 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16648 # The file is in a subdirectory.
16649 test ! -d "$ac_dir" && mkdir "$ac_dir"
16650 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16651 # A "../" for each directory in $ac_dir_suffix.
16652 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16654 ac_dir_suffix= ac_dots=
16657 case "$ac_given_srcdir" in
16659 if test -z "$ac_dots"; then top_srcdir=.
16660 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16661 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16662 *) # Relative path.
16663 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16664 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16667 case "$ac_given_INSTALL" in
16668 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16669 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16672 echo creating "$ac_file"
16674 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16676 *[Mm]akefile*) ac_comsub="1i\\
16677 # $configure_input" ;;
16681 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16683 s%@configure_input@%$configure_input%g
16684 s%@srcdir@%$srcdir%g
16685 s%@top_srcdir@%$top_srcdir%g
16686 s%@INSTALL@%$INSTALL%g
16687 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16691 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16692 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16694 # ac_d sets the value in "#define NAME VALUE" lines.
16695 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16696 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16699 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16700 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16701 ac_uB='\([ ]\)%\1#\2define\3'
16704 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16705 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16706 ac_eB='$%\1#\2define\3'
16710 if test "${CONFIG_HEADERS+set}" != set; then
16712 cat >> $CONFIG_STATUS <<EOF
16713 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16715 cat >> $CONFIG_STATUS <<\EOF
16717 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16720 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16721 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16722 *) ac_file_in="${ac_file}.in" ;;
16725 echo creating $ac_file
16727 rm -f conftest.frag conftest.in conftest.out
16728 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16729 cat $ac_file_inputs > conftest.in
16733 # Transform confdefs.h into a sed script conftest.vals that substitutes
16734 # the proper values into config.h.in to produce config.h. And first:
16735 # Protect against being on the right side of a sed subst in config.status.
16736 # Protect against being in an unquoted here document in config.status.
16737 rm -f conftest.vals
16738 cat > conftest.hdr <<\EOF
16741 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16745 sed -n -f conftest.hdr confdefs.h > conftest.vals
16748 # This sed command replaces #undef with comments. This is necessary, for
16749 # example, in the case of _POSIX_SOURCE, which is predefined and required
16750 # on some systems where configure will not decide to define it.
16751 cat >> conftest.vals <<\EOF
16752 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16755 # Break up conftest.vals because some shells have a limit on
16756 # the size of here documents, and old seds have small limits too.
16758 rm -f conftest.tail
16761 ac_lines=`grep -c . conftest.vals`
16762 # grep -c gives empty output for an empty file on some AIX systems.
16763 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16764 # Write a limited-size here document to conftest.frag.
16765 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16766 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16768 sed -f conftest.frag conftest.in > conftest.out
16770 mv conftest.out conftest.in
16771 ' >> $CONFIG_STATUS
16772 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16773 rm -f conftest.vals
16774 mv conftest.tail conftest.vals
16776 rm -f conftest.vals
16778 cat >> $CONFIG_STATUS <<\EOF
16779 rm -f conftest.frag conftest.h
16780 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16781 cat conftest.in >> conftest.h
16783 if cmp -s $ac_file conftest.h 2>/dev/null; then
16784 echo "$ac_file is unchanged"
16787 # Remove last slash and all that follows it. Not all systems have dirname.
16788 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16789 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16790 # The file is in a subdirectory.
16791 test ! -d "$ac_dir" && mkdir "$ac_dir"
16794 mv conftest.h $ac_file
16799 cat >> $CONFIG_STATUS <<EOF
16802 cat >> $CONFIG_STATUS <<\EOF
16805 echo Please \"make depend\" to build dependencies
16809 chmod +x $CONFIG_STATUS
16810 rm -fr confdefs* $ac_clean_files
16811 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1