3 # from OpenLDAP: pkg/ldap/configure.in,v 1.350 2001/01/22 05:49:14 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 (experimental) [no]"
38 --enable-referrals enable V2 Referrals (experimental) [no]"
40 --enable-kbind enable V2 Kerberos IV bind (deprecated) [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-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rlookups enable reverse lookups [no]"
86 --enable-slp enable SLPv2 support [no]"
88 --enable-wrappers enable tcp wrapper support [no]"
90 --enable-bdb enable Berkeley DB backend [no]"
92 --with-bdb-module module type [static]"
94 --enable-dnssrv enable dnssrv backend [no]"
96 --with-dnssrv-module module type [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type [static]"
102 --enable-ldbm enable ldbm backend [yes]"
104 --with-ldbm-api with LDBM API [auto]"
106 --with-ldbm-module module type [static]"
108 --with-ldbm-type use LDBM type [auto]"
110 --enable-passwd enable passwd backend [no]"
112 --with-passwd-module module type [static]"
114 --enable-perl enable perl backend [no]"
116 --with-perl-module module type [static]"
118 --enable-shell enable shell backend [no]"
120 --with-shell-module module type [static]"
122 --enable-sql enable sql backend [no]"
124 --with-sql-module module type [static]"
126 --enable-tcl enable tcl backend [no]"
128 --with-tcl-module module type [static]"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd [auto]"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13.1"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version.sh
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 # set unset (borrowed from autoconf 2.49c)
649 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
655 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
658 for ac_dir in build $srcdir/build; do
659 if test -f $ac_dir/install-sh; then
661 ac_install_sh="$ac_aux_dir/install-sh -c"
663 elif test -f $ac_dir/install.sh; then
665 ac_install_sh="$ac_aux_dir/install.sh -c"
667 elif test -f $ac_dir/shtool; then
669 ac_install_sh="$ac_aux_dir/shtool install -c"
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
676 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
677 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
678 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
680 eval `$ac_aux_dir/version.sh`
681 if test -z "$OL_STRING"; then
682 { echo "configure: error: could not determine version" 1>&2; exit 1; }
685 echo "Configuring $OL_STRING ..."
688 echo $ac_n "checking host system type""... $ac_c" 1>&6
689 echo "configure:690: checking host system type" >&5
690 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
692 # Make sure we can run config.sub.
693 if $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 ac_cv_host_alias=$host
698 case "$ac_cv_host_alias" in
702 if ac_cv_host_alias=`$ac_config_guess`; then :
703 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705 *) ac_cv_host_alias=$nonopt ;;
709 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
710 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo $ac_n "(cached) $ac_c" 1>&6
717 echo "$ac_t""$ac_cv_host" 1>&6
720 host_alias=$ac_cv_host_alias
721 host_cpu=$ac_cv_host_cpu
722 host_vendor=$ac_cv_host_vendor
723 host_os=$ac_cv_host_os
729 echo $ac_n "checking target system type""... $ac_c" 1>&6
730 echo "configure:731: checking target system type" >&5
731 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4 >/dev/null 2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 ac_cv_target_alias=$target
739 case "$ac_cv_target_alias" in
743 ac_cv_target_alias=$host_alias ;;
745 *) ac_cv_target_alias=$nonopt ;;
749 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
750 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo $ac_n "(cached) $ac_c" 1>&6
757 echo "$ac_t""$ac_cv_target" 1>&6
760 target_alias=$ac_cv_target_alias
761 target_cpu=$ac_cv_target_cpu
762 target_vendor=$ac_cv_target_vendor
763 target_os=$ac_cv_target_os
769 echo $ac_n "checking build system type""... $ac_c" 1>&6
770 echo "configure:771: checking build system type" >&5
771 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
773 # Make sure we can run config.sub.
774 if $ac_config_sub sun4 >/dev/null 2>&1; then :
775 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
778 ac_cv_build_alias=$build
779 case "$ac_cv_build_alias" in
783 ac_cv_build_alias=$host_alias ;;
785 *) ac_cv_build_alias=$nonopt ;;
789 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
790 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
791 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
792 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
794 echo $ac_n "(cached) $ac_c" 1>&6
797 echo "$ac_t""$ac_cv_build" 1>&6
800 build_alias=$ac_cv_build_alias
801 build_cpu=$ac_cv_build_cpu
802 build_vendor=$ac_cv_build_vendor
803 build_os=$ac_cv_build_os
809 # Do some error checking and defaulting for the host and target type.
811 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
814 # 1. You are not allowed to specify --host, --target, and nonopt at the
816 # 2. Host defaults to nonopt.
817 # 3. If nonopt is not specified, then host defaults to the current host,
818 # as determined by config.guess.
819 # 4. Target and build default to nonopt.
820 # 5. If nonopt is not specified, then target and build default to host.
822 # The aliases save the names the user supplied, while $host etc.
823 # will get canonicalized.
824 case $host---$target---$nonopt in
825 NONE---*---* | *---NONE---* | *---*---NONE) ;;
826 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
829 test "$host_alias" != "$target_alias" &&
830 test "$program_prefix$program_suffix$program_transform_name" = \
832 program_prefix=${target_alias}-
835 # Find a good install program. We prefer a C program (faster),
836 # so one script is as good as another. But avoid the broken or
837 # incompatible versions:
838 # SysV /etc/install, /usr/sbin/install
839 # SunOS /usr/etc/install
842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
845 # ./install, which can be erroneously created by make from ./install.sh.
846 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
847 echo "configure:848: checking for a BSD compatible install" >&5
848 if test -z "$INSTALL"; then
849 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
853 for ac_dir in $PATH; do
854 # Account for people who put trailing slashes in PATH elements.
856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858 # OSF1 and SCO ODT 3.0 have their own names for install.
859 # Don't use installbsd from OSF since it installs stuff as root
861 for ac_prog in ginstall scoinst install; do
862 if test -f $ac_dir/$ac_prog; then
863 if test $ac_prog = install &&
864 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # AIX install. It has an incompatible calling convention.
867 elif test $ac_prog = install &&
868 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
869 # program-specific install script used by HP pwplus--don't use.
872 ac_cv_path_install="$ac_dir/$ac_prog -c"
883 if test "${ac_cv_path_install+set}" = set; then
884 INSTALL="$ac_cv_path_install"
886 # As a last resort, use the slow shell script. We don't cache a
887 # path for INSTALL within a source directory, because that will
888 # break other packages using the cache if that directory is
889 # removed, or if the path is relative.
890 INSTALL="$ac_install_sh"
893 echo "$ac_t""$INSTALL" 1>&6
895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
896 # It thinks the first close brace ends the variable substitution.
897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
903 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
904 echo "configure:905: checking whether build environment is sane" >&5
907 echo timestamp > conftestfile
908 # Do `set' in a subshell so we don't clobber the current shell's
909 # arguments. Must try -L first in case configure is actually a
910 # symlink; some systems play weird games with the mod time of symlinks
911 # (eg FreeBSD returns the mod time of the symlink's containing
914 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
915 if test "$*" = "X"; then
917 set X `ls -t $srcdir/configure conftestfile`
919 if test "$*" != "X $srcdir/configure conftestfile" \
920 && test "$*" != "X conftestfile $srcdir/configure"; then
922 # If neither matched, then we have a broken ls. This can happen
923 # if, for instance, CONFIG_SHELL is bash and it inherits a
924 # broken ls alias from the environment. This has actually
925 # happened. Such a system could not be considered "sane".
926 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
927 alias in your environment" 1>&2; exit 1; }
930 test "$2" = conftestfile
936 { echo "configure: error: newly created file is older than distributed files!
937 Check your system clock" 1>&2; exit 1; }
940 echo "$ac_t""yes" 1>&6
941 if test "$program_transform_name" = s,x,x,; then
942 program_transform_name=
944 # Double any \ or $. echo might interpret backslashes.
945 cat <<\EOF_SED > conftestsed
946 s,\\,\\\\,g; s,\$,$$,g
948 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
951 test "$program_prefix" != NONE &&
952 program_transform_name="s,^,${program_prefix},;$program_transform_name"
953 # Use a double $ so make ignores it.
954 test "$program_suffix" != NONE &&
955 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
957 # sed with no file args requires a program.
958 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
960 for ac_prog in mawk gawk nawk awk
962 # Extract the first word of "$ac_prog", so it can be a program name with args.
963 set dummy $ac_prog; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$AWK"; then
970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_AWK="$ac_prog"
984 AWK="$ac_cv_prog_AWK"
985 if test -n "$AWK"; then
986 echo "$ac_t""$AWK" 1>&6
988 echo "$ac_t""no" 1>&6
991 test -n "$AWK" && break
994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${MAKE-make} sets \${MAKE}" >&5
996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftestmake <<\EOF
1002 @echo 'ac_maketemp="${MAKE}"'
1004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1005 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1006 if test -n "$ac_maketemp"; then
1007 eval ac_cv_prog_make_${ac_make}_set=yes
1009 eval ac_cv_prog_make_${ac_make}_set=no
1013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1014 echo "$ac_t""yes" 1>&6
1017 echo "$ac_t""no" 1>&6
1018 SET_MAKE="MAKE=${MAKE-make}"
1027 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1028 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1033 missing_dir=`cd $ac_aux_dir && pwd`
1034 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working aclocal" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1041 echo "$ac_t""found" 1>&6
1043 ACLOCAL="$missing_dir/missing aclocal"
1044 echo "$ac_t""missing" 1>&6
1047 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1048 echo "configure:1049: checking for working autoconf" >&5
1049 # Run test in a subshell; some versions of sh will print an error if
1050 # an executable is not found, even if stderr is redirected.
1051 # Redirect stdin to placate older versions of autoconf. Sigh.
1052 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1054 echo "$ac_t""found" 1>&6
1056 AUTOCONF="$missing_dir/missing autoconf"
1057 echo "$ac_t""missing" 1>&6
1060 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1061 echo "configure:1062: checking for working automake" >&5
1062 # Run test in a subshell; some versions of sh will print an error if
1063 # an executable is not found, even if stderr is redirected.
1064 # Redirect stdin to placate older versions of autoconf. Sigh.
1065 if (automake --version) < /dev/null > /dev/null 2>&1; then
1067 echo "$ac_t""found" 1>&6
1069 AUTOMAKE="$missing_dir/missing automake"
1070 echo "$ac_t""missing" 1>&6
1073 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1074 echo "configure:1075: checking for working autoheader" >&5
1075 # Run test in a subshell; some versions of sh will print an error if
1076 # an executable is not found, even if stderr is redirected.
1077 # Redirect stdin to placate older versions of autoconf. Sigh.
1078 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1079 AUTOHEADER=autoheader
1080 echo "$ac_t""found" 1>&6
1082 AUTOHEADER="$missing_dir/missing autoheader"
1083 echo "$ac_t""missing" 1>&6
1086 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1087 echo "configure:1088: checking for working makeinfo" >&5
1088 # Run test in a subshell; some versions of sh will print an error if
1089 # an executable is not found, even if stderr is redirected.
1090 # Redirect stdin to placate older versions of autoconf. Sigh.
1091 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1093 echo "$ac_t""found" 1>&6
1095 MAKEINFO="$missing_dir/missing makeinfo"
1096 echo "$ac_t""missing" 1>&6
1099 install_sh="$missing_dir/install-sh"
1100 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1102 for ac_prog in gnutar gtar tar
1104 # Extract the first word of "$ac_prog", so it can be a program name with args.
1105 set dummy $ac_prog; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$AMTAR"; then
1112 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 ac_cv_prog_AMTAR="$ac_prog"
1126 AMTAR="$ac_cv_prog_AMTAR"
1127 if test -n "$AMTAR"; then
1128 echo "$ac_t""$AMTAR" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 test -n "$AMTAR" && break
1138 if test -n "$AMTAR"; then
1139 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION $OL_API_INC
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1165 cat >> confdefs.h <<EOF
1166 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1170 OPENLDAP_LIBVERSION=$OL_API_LIB
1174 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1175 echo "configure:1176: checking configure arguments" >&5
1180 ldap_subdir="/openldap"
1182 # Check whether --with-subdir or --without-subdir was given.
1183 if test "${with_subdir+set}" = set; then
1184 withval="$with_subdir"
1191 ldap_subdir="$withval"
1194 ldap_subdir="/$withval"
1201 # OpenLDAP --enable-debug
1202 # Check whether --enable-debug or --disable-debug was given.
1203 if test "${enable_debug+set}" = set; then
1204 enableval="$enable_debug"
1207 for ol_val in auto yes no ; do
1208 if test "$enableval" = "$ol_val" ; then
1212 if test "$ol_arg" = "invalid" ; then
1213 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1215 ol_enable_debug="$ol_arg"
1218 ol_enable_debug="yes"
1220 # end --enable-debug
1221 # OpenLDAP --enable-syslog
1222 # Check whether --enable-syslog or --disable-syslog was given.
1223 if test "${enable_syslog+set}" = set; then
1224 enableval="$enable_syslog"
1227 for ol_val in auto yes no ; do
1228 if test "$enableval" = "$ol_val" ; then
1232 if test "$ol_arg" = "invalid" ; then
1233 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1235 ol_enable_syslog="$ol_arg"
1238 ol_enable_syslog="auto"
1240 # end --enable-syslog
1241 # OpenLDAP --enable-proctitle
1242 # Check whether --enable-proctitle or --disable-proctitle was given.
1243 if test "${enable_proctitle+set}" = set; then
1244 enableval="$enable_proctitle"
1247 for ol_val in auto yes no ; do
1248 if test "$enableval" = "$ol_val" ; then
1252 if test "$ol_arg" = "invalid" ; then
1253 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1255 ol_enable_proctitle="$ol_arg"
1258 ol_enable_proctitle="yes"
1260 # end --enable-proctitle
1261 # OpenLDAP --enable-cache
1262 # Check whether --enable-cache or --disable-cache was given.
1263 if test "${enable_cache+set}" = set; then
1264 enableval="$enable_cache"
1267 for ol_val in auto yes no ; do
1268 if test "$enableval" = "$ol_val" ; then
1272 if test "$ol_arg" = "invalid" ; then
1273 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1275 ol_enable_cache="$ol_arg"
1278 ol_enable_cache="no"
1280 # end --enable-cache
1281 # OpenLDAP --enable-referrals
1282 # Check whether --enable-referrals or --disable-referrals was given.
1283 if test "${enable_referrals+set}" = set; then
1284 enableval="$enable_referrals"
1287 for ol_val in auto yes no ; do
1288 if test "$enableval" = "$ol_val" ; then
1292 if test "$ol_arg" = "invalid" ; then
1293 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1295 ol_enable_referrals="$ol_arg"
1298 ol_enable_referrals="no"
1300 # end --enable-referrals
1301 # OpenLDAP --enable-kbind
1302 # Check whether --enable-kbind or --disable-kbind was given.
1303 if test "${enable_kbind+set}" = set; then
1304 enableval="$enable_kbind"
1307 for ol_val in auto yes no ; do
1308 if test "$enableval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1315 ol_enable_kbind="$ol_arg"
1318 ol_enable_kbind="no"
1320 # end --enable-kbind
1321 # OpenLDAP --enable-ipv6
1322 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1323 if test "${enable_ipv6+set}" = set; then
1324 enableval="$enable_ipv6"
1327 for ol_val in auto yes no ; do
1328 if test "$enableval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1335 ol_enable_ipv6="$ol_arg"
1338 ol_enable_ipv6="auto"
1341 # OpenLDAP --enable-local
1342 # Check whether --enable-local or --disable-local was given.
1343 if test "${enable_local+set}" = set; then
1344 enableval="$enable_local"
1347 for ol_val in auto yes no ; do
1348 if test "$enableval" = "$ol_val" ; then
1352 if test "$ol_arg" = "invalid" ; then
1353 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1355 ol_enable_local="$ol_arg"
1358 ol_enable_local="auto"
1360 # end --enable-local
1361 # OpenLDAP --enable-x_compile
1362 # Check whether --enable-x_compile or --disable-x_compile was given.
1363 if test "${enable_x_compile+set}" = set; then
1364 enableval="$enable_x_compile"
1367 for ol_val in yes no ; do
1368 if test "$enableval" = "$ol_val" ; then
1372 if test "$ol_arg" = "invalid" ; then
1373 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1375 ol_enable_x_compile="$ol_arg"
1378 ol_enable_x_compile="no"
1380 # end --enable-x_compile
1383 # OpenLDAP --with-cyrus_sasl
1384 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1385 if test "${with_cyrus_sasl+set}" = set; then
1386 withval="$with_cyrus_sasl"
1389 for ol_val in auto yes no ; do
1390 if test "$withval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1397 ol_with_cyrus_sasl="$ol_arg"
1400 ol_with_cyrus_sasl="auto"
1402 # end --with-cyrus_sasl
1404 # OpenLDAP --with-fetch
1405 # Check whether --with-fetch or --without-fetch was given.
1406 if test "${with_fetch+set}" = set; then
1407 withval="$with_fetch"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1418 ol_with_fetch="$ol_arg"
1421 ol_with_fetch="auto"
1425 # OpenLDAP --with-kerberos
1426 # Check whether --with-kerberos or --without-kerberos was given.
1427 if test "${with_kerberos+set}" = set; then
1428 withval="$with_kerberos"
1431 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1439 ol_with_kerberos="$ol_arg"
1442 ol_with_kerberos="auto"
1444 # end --with-kerberos
1446 # OpenLDAP --with-readline
1447 # Check whether --with-readline or --without-readline was given.
1448 if test "${with_readline+set}" = set; then
1449 withval="$with_readline"
1452 for ol_val in auto yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1460 ol_with_readline="$ol_arg"
1463 ol_with_readline="auto"
1465 # end --with-readline
1467 # OpenLDAP --with-threads
1468 # Check whether --with-threads or --without-threads was given.
1469 if test "${with_threads+set}" = set; then
1470 withval="$with_threads"
1473 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1481 ol_with_threads="$ol_arg"
1484 ol_with_threads="auto"
1486 # end --with-threads
1488 # OpenLDAP --with-tls
1489 # Check whether --with-tls or --without-tls was given.
1490 if test "${with_tls+set}" = set; then
1494 for ol_val in auto ssleay openssl yes no ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1502 ol_with_tls="$ol_arg"
1509 # OpenLDAP --with-yielding_select
1510 # Check whether --with-yielding_select or --without-yielding_select was given.
1511 if test "${with_yielding_select+set}" = set; then
1512 withval="$with_yielding_select"
1515 for ol_val in auto yes no manual ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1523 ol_with_yielding_select="$ol_arg"
1526 ol_with_yielding_select="auto"
1528 # end --with-yielding_select
1532 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1533 if test "${with_xxslapdoptions+set}" = set; then
1534 withval="$with_xxslapdoptions"
1538 # OpenLDAP --enable-slapd
1539 # Check whether --enable-slapd or --disable-slapd was given.
1540 if test "${enable_slapd+set}" = set; then
1541 enableval="$enable_slapd"
1544 for ol_val in auto yes no ; do
1545 if test "$enableval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1552 ol_enable_slapd="$ol_arg"
1555 ol_enable_slapd="yes"
1557 # end --enable-slapd
1558 # OpenLDAP --enable-aci
1559 # Check whether --enable-aci or --disable-aci was given.
1560 if test "${enable_aci+set}" = set; then
1561 enableval="$enable_aci"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1572 ol_enable_aci="$ol_arg"
1578 # OpenLDAP --enable-cleartext
1579 # Check whether --enable-cleartext or --disable-cleartext was given.
1580 if test "${enable_cleartext+set}" = set; then
1581 enableval="$enable_cleartext"
1584 for ol_val in auto yes no ; do
1585 if test "$enableval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1592 ol_enable_cleartext="$ol_arg"
1595 ol_enable_cleartext="yes"
1597 # end --enable-cleartext
1598 # OpenLDAP --enable-crypt
1599 # Check whether --enable-crypt or --disable-crypt was given.
1600 if test "${enable_crypt+set}" = set; then
1601 enableval="$enable_crypt"
1604 for ol_val in auto yes no ; do
1605 if test "$enableval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1612 ol_enable_crypt="$ol_arg"
1615 ol_enable_crypt="no"
1617 # end --enable-crypt
1618 # OpenLDAP --enable-dynamic
1619 # Check whether --enable-dynamic or --disable-dynamic was given.
1620 if test "${enable_dynamic+set}" = set; then
1621 enableval="$enable_dynamic"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1632 ol_enable_dynamic="$ol_arg"
1635 ol_enable_dynamic="no"
1637 # end --enable-dynamic
1638 # OpenLDAP --enable-kpasswd
1639 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1640 if test "${enable_kpasswd+set}" = set; then
1641 enableval="$enable_kpasswd"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1652 ol_enable_kpasswd="$ol_arg"
1655 ol_enable_kpasswd="no"
1657 # end --enable-kpasswd
1658 # OpenLDAP --enable-lmpasswd
1659 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1660 if test "${enable_lmpasswd+set}" = set; then
1661 enableval="$enable_lmpasswd"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1672 ol_enable_lmpasswd="$ol_arg"
1675 ol_enable_lmpasswd="no"
1677 # end --enable-lmpasswd
1678 # OpenLDAP --enable-spasswd
1679 # Check whether --enable-spasswd or --disable-spasswd was given.
1680 if test "${enable_spasswd+set}" = set; then
1681 enableval="$enable_spasswd"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1692 ol_enable_spasswd="$ol_arg"
1695 ol_enable_spasswd="no"
1697 # end --enable-spasswd
1698 # OpenLDAP --enable-modules
1699 # Check whether --enable-modules or --disable-modules was given.
1700 if test "${enable_modules+set}" = set; then
1701 enableval="$enable_modules"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1712 ol_enable_modules="$ol_arg"
1715 ol_enable_modules="no"
1717 # end --enable-modules
1718 # OpenLDAP --enable-phonetic
1719 # Check whether --enable-phonetic or --disable-phonetic was given.
1720 if test "${enable_phonetic+set}" = set; then
1721 enableval="$enable_phonetic"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1732 ol_enable_phonetic="$ol_arg"
1735 ol_enable_phonetic="no"
1737 # end --enable-phonetic
1738 # OpenLDAP --enable-rlookups
1739 # Check whether --enable-rlookups or --disable-rlookups was given.
1740 if test "${enable_rlookups+set}" = set; then
1741 enableval="$enable_rlookups"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1752 ol_enable_rlookups="$ol_arg"
1755 ol_enable_rlookups="no"
1757 # end --enable-rlookups
1758 # OpenLDAP --enable-slp
1759 # Check whether --enable-slp or --disable-slp was given.
1760 if test "${enable_slp+set}" = set; then
1761 enableval="$enable_slp"
1764 for ol_val in auto yes no ; do
1765 if test "$enableval" = "$ol_val" ; then
1769 if test "$ol_arg" = "invalid" ; then
1770 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1772 ol_enable_slp="$ol_arg"
1778 # OpenLDAP --enable-wrappers
1779 # Check whether --enable-wrappers or --disable-wrappers was given.
1780 if test "${enable_wrappers+set}" = set; then
1781 enableval="$enable_wrappers"
1784 for ol_val in auto yes no ; do
1785 if test "$enableval" = "$ol_val" ; then
1789 if test "$ol_arg" = "invalid" ; then
1790 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1792 ol_enable_wrappers="$ol_arg"
1795 ol_enable_wrappers="no"
1797 # end --enable-wrappers
1799 # OpenLDAP --enable-bdb
1800 # Check whether --enable-bdb or --disable-bdb was given.
1801 if test "${enable_bdb+set}" = set; then
1802 enableval="$enable_bdb"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1813 ol_enable_bdb="$ol_arg"
1819 # OpenLDAP --with-bdb_module
1820 # Check whether --with-bdb_module or --without-bdb_module was given.
1821 if test "${with_bdb_module+set}" = set; then
1822 withval="$with_bdb_module"
1825 for ol_val in static dynamic ; do
1826 if test "$withval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1833 ol_with_bdb_module="$ol_arg"
1836 ol_with_bdb_module="static"
1838 # end --with-bdb_module
1840 # OpenLDAP --enable-dnssrv
1841 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1842 if test "${enable_dnssrv+set}" = set; then
1843 enableval="$enable_dnssrv"
1846 for ol_val in auto yes no ; do
1847 if test "$enableval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1854 ol_enable_dnssrv="$ol_arg"
1857 ol_enable_dnssrv="no"
1859 # end --enable-dnssrv
1860 # OpenLDAP --with-dnssrv_module
1861 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1862 if test "${with_dnssrv_module+set}" = set; then
1863 withval="$with_dnssrv_module"
1866 for ol_val in static dynamic ; do
1867 if test "$withval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1874 ol_with_dnssrv_module="$ol_arg"
1877 ol_with_dnssrv_module="static"
1879 # end --with-dnssrv_module
1881 # OpenLDAP --enable-ldap
1882 # Check whether --enable-ldap or --disable-ldap was given.
1883 if test "${enable_ldap+set}" = set; then
1884 enableval="$enable_ldap"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1895 ol_enable_ldap="$ol_arg"
1901 # OpenLDAP --with-ldap_module
1902 # Check whether --with-ldap_module or --without-ldap_module was given.
1903 if test "${with_ldap_module+set}" = set; then
1904 withval="$with_ldap_module"
1907 for ol_val in static dynamic ; do
1908 if test "$withval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1915 ol_with_ldap_module="$ol_arg"
1918 ol_with_ldap_module="static"
1920 # end --with-ldap_module
1922 # OpenLDAP --enable-ldbm
1923 # Check whether --enable-ldbm or --disable-ldbm was given.
1924 if test "${enable_ldbm+set}" = set; then
1925 enableval="$enable_ldbm"
1928 for ol_val in auto yes no ; do
1929 if test "$enableval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1936 ol_enable_ldbm="$ol_arg"
1939 ol_enable_ldbm="yes"
1942 # OpenLDAP --with-ldbm_api
1943 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1944 if test "${with_ldbm_api+set}" = set; then
1945 withval="$with_ldbm_api"
1948 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1949 if test "$withval" = "$ol_val" ; then
1953 if test "$ol_arg" = "invalid" ; then
1954 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1956 ol_with_ldbm_api="$ol_arg"
1959 ol_with_ldbm_api="auto"
1961 # end --with-ldbm_api
1963 # OpenLDAP --with-ldbm_module
1964 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1965 if test "${with_ldbm_module+set}" = set; then
1966 withval="$with_ldbm_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1977 ol_with_ldbm_module="$ol_arg"
1980 ol_with_ldbm_module="static"
1982 # end --with-ldbm_module
1984 # OpenLDAP --with-ldbm_type
1985 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1986 if test "${with_ldbm_type+set}" = set; then
1987 withval="$with_ldbm_type"
1990 for ol_val in auto btree hash ; do
1991 if test "$withval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1998 ol_with_ldbm_type="$ol_arg"
2001 ol_with_ldbm_type="auto"
2003 # end --with-ldbm_type
2005 # OpenLDAP --enable-passwd
2006 # Check whether --enable-passwd or --disable-passwd was given.
2007 if test "${enable_passwd+set}" = set; then
2008 enableval="$enable_passwd"
2011 for ol_val in auto yes no ; do
2012 if test "$enableval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2019 ol_enable_passwd="$ol_arg"
2022 ol_enable_passwd="no"
2024 # end --enable-passwd
2025 # OpenLDAP --with-passwd_module
2026 # Check whether --with-passwd_module or --without-passwd_module was given.
2027 if test "${with_passwd_module+set}" = set; then
2028 withval="$with_passwd_module"
2031 for ol_val in static dynamic ; do
2032 if test "$withval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2039 ol_with_passwd_module="$ol_arg"
2042 ol_with_passwd_module="static"
2044 # end --with-passwd_module
2046 # OpenLDAP --enable-perl
2047 # Check whether --enable-perl or --disable-perl was given.
2048 if test "${enable_perl+set}" = set; then
2049 enableval="$enable_perl"
2052 for ol_val in auto yes no ; do
2053 if test "$enableval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2060 ol_enable_perl="$ol_arg"
2066 # OpenLDAP --with-perl_module
2067 # Check whether --with-perl_module or --without-perl_module was given.
2068 if test "${with_perl_module+set}" = set; then
2069 withval="$with_perl_module"
2072 for ol_val in static dynamic ; do
2073 if test "$withval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2080 ol_with_perl_module="$ol_arg"
2083 ol_with_perl_module="static"
2085 # end --with-perl_module
2087 # OpenLDAP --enable-shell
2088 # Check whether --enable-shell or --disable-shell was given.
2089 if test "${enable_shell+set}" = set; then
2090 enableval="$enable_shell"
2093 for ol_val in auto yes no ; do
2094 if test "$enableval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2101 ol_enable_shell="$ol_arg"
2104 ol_enable_shell="no"
2106 # end --enable-shell
2107 # OpenLDAP --with-shell_module
2108 # Check whether --with-shell_module or --without-shell_module was given.
2109 if test "${with_shell_module+set}" = set; then
2110 withval="$with_shell_module"
2113 for ol_val in static dynamic ; do
2114 if test "$withval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2121 ol_with_shell_module="$ol_arg"
2124 ol_with_shell_module="static"
2126 # end --with-shell_module
2128 # OpenLDAP --enable-sql
2129 # Check whether --enable-sql or --disable-sql was given.
2130 if test "${enable_sql+set}" = set; then
2131 enableval="$enable_sql"
2134 for ol_val in auto yes no ; do
2135 if test "$enableval" = "$ol_val" ; then
2139 if test "$ol_arg" = "invalid" ; then
2140 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2142 ol_enable_sql="$ol_arg"
2148 # OpenLDAP --with-sql_module
2149 # Check whether --with-sql_module or --without-sql_module was given.
2150 if test "${with_sql_module+set}" = set; then
2151 withval="$with_sql_module"
2154 for ol_val in static dynamic ; do
2155 if test "$withval" = "$ol_val" ; then
2159 if test "$ol_arg" = "invalid" ; then
2160 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2162 ol_with_sql_module="$ol_arg"
2165 ol_with_sql_module="static"
2167 # end --with-sql_module
2169 # OpenLDAP --enable-tcl
2170 # Check whether --enable-tcl or --disable-tcl was given.
2171 if test "${enable_tcl+set}" = set; then
2172 enableval="$enable_tcl"
2175 for ol_val in auto yes no ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2183 ol_enable_tcl="$ol_arg"
2189 # OpenLDAP --with-tcl_module
2190 # Check whether --with-tcl_module or --without-tcl_module was given.
2191 if test "${with_tcl_module+set}" = set; then
2192 withval="$with_tcl_module"
2195 for ol_val in static dynamic ; do
2196 if test "$withval" = "$ol_val" ; then
2200 if test "$ol_arg" = "invalid" ; then
2201 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2203 ol_with_tcl_module="$ol_arg"
2206 ol_with_tcl_module="static"
2208 # end --with-tcl_module
2211 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2212 if test "${with_xxslurpdoptions+set}" = set; then
2213 withval="$with_xxslurpdoptions"
2217 # OpenLDAP --enable-slurpd
2218 # Check whether --enable-slurpd or --disable-slurpd was given.
2219 if test "${enable_slurpd+set}" = set; then
2220 enableval="$enable_slurpd"
2223 for ol_val in auto yes no ; do
2224 if test "$enableval" = "$ol_val" ; then
2228 if test "$ol_arg" = "invalid" ; then
2229 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2231 ol_enable_slurpd="$ol_arg"
2234 ol_enable_slurpd="auto"
2236 # end --enable-slurpd
2238 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2239 if test "${with_xxliboptions+set}" = set; then
2240 withval="$with_xxliboptions"
2244 # Check whether --enable-static or --disable-static was given.
2245 if test "${enable_static+set}" = set; then
2246 enableval="$enable_static"
2247 p=${PACKAGE-default}
2248 case "$enableval" in
2249 yes) enable_static=yes ;;
2250 no) enable_static=no ;;
2253 # Look at the argument we got. We use all the common list separators.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2255 for pkg in $enableval; do
2256 if test "X$pkg" = "X$p"; then
2267 # Check whether --enable-shared or --disable-shared was given.
2268 if test "${enable_shared+set}" = set; then
2269 enableval="$enable_shared"
2270 p=${PACKAGE-default}
2271 case "$enableval" in
2272 yes) enable_shared=yes ;;
2273 no) enable_shared=no ;;
2276 # Look at the argument we got. We use all the common list separators.
2277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2278 for pkg in $enableval; do
2279 if test "X$pkg" = "X$p"; then
2293 if test $ol_enable_slapd = no ; then
2294 if test $ol_enable_bdb = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2297 if test $ol_enable_dnssrv = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2300 if test $ol_enable_ldap = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2303 if test $ol_enable_ldbm = yes ; then
2304 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2306 if test $ol_enable_passwd = yes ; then
2307 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2309 if test $ol_enable_perl = yes ; then
2310 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2312 if test $ol_enable_shell = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2315 if test $ol_enable_tcl = yes ; then
2316 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2318 if test $ol_enable_sql = yes ; then
2319 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2321 if test $ol_enable_modules = yes ; then
2322 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2324 if test $ol_enable_wrappers = yes ; then
2325 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2327 if test $ol_enable_phonetic = yes ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2330 if test $ol_enable_rlookups = yes ; then
2331 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2333 if test $ol_enable_aci = yes ; then
2334 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2336 if test $ol_with_ldbm_api != auto ; then
2337 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2339 if test $ol_with_ldbm_type != auto ; then
2340 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2342 if test $ol_with_bdb_module != static ; then
2343 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2345 if test $ol_with_dnssrv_module != static ; then
2346 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2348 if test $ol_with_ldap_module != static ; then
2349 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2351 if test $ol_with_ldbm_module != static ; then
2352 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2354 if test $ol_with_passwd_module != static ; then
2355 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2357 if test $ol_with_perl_module != static ; then
2358 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2360 if test $ol_with_shell_module != static ; then
2361 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2363 if test $ol_with_tcl_module != static ; then
2364 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2366 if test $ol_with_sql_module != static ; then
2367 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2369 if test $ol_enable_slurpd = yes ; then
2370 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2373 # force settings to no
2384 ol_enable_modules=no
2385 ol_enable_phonetic=no
2386 ol_enable_rlookups=no
2388 ol_enable_wrappers=no
2389 ol_enable_dynamic=no
2392 ol_with_ldbm_type=no
2394 ol_with_bdb_module=static
2395 ol_with_dnssrv_module=static
2396 ol_with_ldap_module=static
2397 ol_with_ldbm_module=static
2398 ol_with_passwd_module=static
2399 ol_with_perl_module=static
2400 ol_with_shell_module=static
2401 ol_with_tcl_module=static
2402 ol_with_sql_module=static
2406 elif test $ol_enable_ldbm = no ; then
2408 if test $ol_with_ldbm_api != auto ; then
2409 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2412 if test $ol_with_ldbm_type != auto ; then
2413 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2416 if test $ol_with_ldbm_module != static ; then
2417 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2420 if test $ol_enable_modules != yes -a \
2421 $ol_enable_bdb = no -a \
2422 $ol_enable_dnssrv = no -a \
2423 $ol_enable_ldap = no -a \
2424 $ol_enable_passwd = no -a \
2425 $ol_enable_perl = no -a \
2426 $ol_enable_shell = no -a \
2427 $ol_enable_sql = no -a \
2428 $ol_enable_tcl = no ; then
2429 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2433 ol_with_ldbm_type=no
2434 ol_with_ldbm_module=static
2437 if test $ol_with_ldbm_api = gdbm -a \
2438 $ol_with_ldbm_type = btree ; then
2439 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2441 if test $ol_with_ldbm_api = mdbm -a \
2442 $ol_with_ldbm_type = btree ; then
2443 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2445 if test $ol_with_ldbm_api = ndbm -a \
2446 $ol_with_ldbm_type = btree ; then
2447 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2451 if test $ol_enable_slurpd = yes ; then
2452 if test $ol_with_threads = no ; then
2453 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2457 if test $ol_enable_lmpasswd = yes ; then
2458 if test $ol_with_tls = no ; then
2459 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2463 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2464 if test $ol_with_kerberos = no ; then
2465 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2467 ol_with_kerberos=yes
2468 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2469 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2470 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2475 if test $ol_enable_spasswd = yes ; then
2476 if test $ol_with_cyrus_sasl = no ; then
2477 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2479 ol_with_cyrus_sasl=yes
2482 echo "$ac_t""done" 1>&6
2508 BUILD_BDB_DYNAMIC=static
2509 BUILD_DNSSRV_DYNAMIC=static
2510 BUILD_LDAP_DYNAMIC=static
2511 BUILD_LDBM_DYNAMIC=static
2512 BUILD_PASSWD_DYNAMIC=static
2513 BUILD_PERL_DYNAMIC=static
2514 BUILD_SHELL_DYNAMIC=static
2515 BUILD_TCL_DYNAMIC=static
2516 BUILD_SQL_DYNAMIC=static
2518 SLAPD_MODULES_LDFLAGS=
2519 SLAPD_MODULES_CPPFLAGS=
2544 cat >> confdefs.h <<\EOF
2545 #define HAVE_MKVERSION 1
2553 *-*-aix*) if test -z "$CC" ; then
2554 case "$ol_with_threads" in
2555 auto | yes | posix) ol_aix_threads=yes ;;
2561 if test $ol_aix_threads = yes ; then
2562 if test -z "${CC}" ; then
2563 for ac_prog in cc_r xlc_r cc
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
2598 if test "$CC" = cc ; then
2599 if test $ol_with_threads != auto ; then
2600 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2602 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2608 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2609 ol_with_threads=posix
2610 ol_cv_pthread_create=yes
2614 if test -z "${CC}"; then
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_word" >&5
2621 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2629 for ac_dir in $ac_dummy; do
2630 test -z "$ac_dir" && ac_dir=.
2631 if test -f $ac_dir/$ac_word; then
2632 ac_cv_prog_CC="$ac_prog"
2640 if test -n "$CC"; then
2641 echo "$ac_t""$CC" 1>&6
2643 echo "$ac_t""no" 1>&6
2646 test -n "$CC" && break
2654 # Check whether --enable-fast-install or --disable-fast-install was given.
2655 if test "${enable_fast_install+set}" = set; then
2656 enableval="$enable_fast_install"
2657 p=${PACKAGE-default}
2658 case "$enableval" in
2659 yes) enable_fast_install=yes ;;
2660 no) enable_fast_install=no ;;
2662 enable_fast_install=no
2663 # Look at the argument we got. We use all the common list separators.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2665 for pkg in $enableval; do
2666 if test "X$pkg" = "X$p"; then
2667 enable_fast_install=yes
2674 enable_fast_install=yes
2677 # Extract the first word of "ranlib", so it can be a program name with args.
2678 set dummy ranlib; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 if test -n "$RANLIB"; then
2685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_prog_RANLIB="ranlib"
2697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2700 RANLIB="$ac_cv_prog_RANLIB"
2701 if test -n "$RANLIB"; then
2702 echo "$ac_t""$RANLIB" 1>&6
2704 echo "$ac_t""no" 1>&6
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2719 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_word" >&5
2741 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2750 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 if test -f $ac_dir/$ac_word; then
2753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2754 ac_prog_rejected=yes
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy $ac_cv_prog_CC
2766 if test $# -gt 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2771 set dummy "$ac_dir/$ac_word" "$@"
2779 if test -n "$CC"; then
2780 echo "$ac_t""$CC" 1>&6
2782 echo "$ac_t""no" 1>&6
2785 if test -z "$CC"; then
2786 case "`uname -s`" in
2787 *win32* | *WIN32* | *CYGWIN*)
2788 # Extract the first word of "cl", so it can be a program name with args.
2789 set dummy cl; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2823 echo "configure:2824: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2830 cross_compiling=$ac_cv_prog_cc_cross
2832 cat > conftest.$ac_ext << EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 ac_cv_prog_cc_works=yes
2841 # If we can't run a trivial program, we are probably using a cross compiler.
2842 if (./conftest; exit) 2>/dev/null; then
2843 ac_cv_prog_cc_cross=no
2845 ac_cv_prog_cc_cross=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 ac_cv_prog_cc_works=no
2854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2858 cross_compiling=$ac_cv_prog_cc_cross
2860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2861 if test $ac_cv_prog_cc_works = no; then
2862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2865 echo "configure:2866: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2867 cross_compiling=$ac_cv_prog_cc_cross
2869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2870 echo "configure:2871: checking whether we are using GNU C" >&5
2871 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.c <<EOF
2879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2888 if test $ac_cv_prog_gcc = yes; then
2894 ac_test_CFLAGS="${CFLAGS+set}"
2895 ac_save_CFLAGS="$CFLAGS"
2897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2898 echo "configure:2899: checking whether ${CC-cc} accepts -g" >&5
2899 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 echo 'void f(){}' > conftest.c
2903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2913 if test "$ac_test_CFLAGS" = set; then
2914 CFLAGS="$ac_save_CFLAGS"
2915 elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2922 if test "$GCC" = yes; then
2929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2930 if test "${with_gnu_ld+set}" = set; then
2931 withval="$with_gnu_ld"
2932 test "$withval" = no || with_gnu_ld=yes
2938 if test "$ac_cv_prog_gcc" = yes; then
2939 # Check if gcc -print-prog-name=ld gives a path.
2940 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2941 echo "configure:2942: checking for ld used by GCC" >&5
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2944 # Accept absolute paths.
2945 [\\/]* | [A-Za-z]:[\\/]*)
2946 re_direlt='/[^/][^/]*/\.\./'
2947 # Canonicalize the path of ld
2948 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2950 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952 test -z "$LD" && LD="$ac_prog"
2955 # If it fails, then pretend we aren't using GCC.
2959 # If it is relative, then search for the first ld in PATH.
2963 elif test "$with_gnu_ld" = yes; then
2964 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2965 echo "configure:2966: checking for GNU ld" >&5
2967 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2968 echo "configure:2969: checking for non-GNU ld" >&5
2970 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test -z "$LD"; then
2974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2975 for ac_dir in $PATH; do
2976 test -z "$ac_dir" && ac_dir=.
2977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2978 ac_cv_path_LD="$ac_dir/$ac_prog"
2979 # Check to see if the program is GNU ld. I'd rather use --version,
2980 # but apparently some GNU ld's only accept -v.
2981 # Break only if it was the GNU/non-GNU ld that we prefer.
2982 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2983 test "$with_gnu_ld" != no && break
2985 test "$with_gnu_ld" != yes && break
2991 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2996 if test -n "$LD"; then
2997 echo "$ac_t""$LD" 1>&6
2999 echo "$ac_t""no" 1>&6
3001 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3002 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3003 echo "configure:3004: checking if the linker ($LD) is GNU ld" >&5
3004 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3008 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3009 ac_cv_prog_gnu_ld=yes
3011 ac_cv_prog_gnu_ld=no
3015 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3018 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3019 echo "configure:3020: checking for BSD-compatible nm" >&5
3020 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$NM"; then
3024 # Let the user override the test.
3027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3028 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3031 # Check to see if the nm accepts a BSD-compat flag.
3032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3033 # nm: unknown option "B" ignored
3034 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3035 ac_cv_path_NM="$ac_dir/nm -B"
3037 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3038 ac_cv_path_NM="$ac_dir/nm -p"
3041 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3042 continue # so that we can try to find one that supports BSD flags
3047 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3052 echo "$ac_t""$NM" 1>&6
3054 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether ln -s works" >&5
3056 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3060 if ln -s X conftestdata 2>/dev/null
3063 ac_cv_prog_LN_S="ln -s"
3068 LN_S="$ac_cv_prog_LN_S"
3069 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3070 echo "$ac_t""yes" 1>&6
3072 echo "$ac_t""no" 1>&6
3075 if test $host != $build; then
3076 ac_tool_prefix=${host_alias}-
3083 NONE) lt_target="$host" ;;
3084 *) lt_target="$target" ;;
3087 # Check for any special flags to pass to ltconfig.
3088 libtool_flags="--cache-file=$cache_file"
3089 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3090 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3091 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3092 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3093 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3094 libtool_flags="$libtool_flags --enable-dlopen"
3095 libtool_flags="$libtool_flags --enable-win32-dll"
3096 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3097 if test "${enable_libtool_lock+set}" = set; then
3098 enableval="$enable_libtool_lock"
3102 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3103 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3105 # Some flags need to be propagated to the compiler or linker for good
3107 case "$lt_target" in
3109 # Find out which ABI we are using.
3110 echo '#line 3111 "configure"' > conftest.$ac_ext
3111 if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 case "`/usr/bin/file conftest.o`" in
3128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3129 SAVE_CFLAGS="$CFLAGS"
3130 CFLAGS="$CFLAGS -belf"
3131 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3132 echo "configure:3133: checking whether the C compiler needs -belf" >&5
3133 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 lt_cv_cc_needs_belf=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 lt_cv_cc_needs_belf=no
3156 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3159 CFLAGS="$SAVE_CFLAGS"
3163 *-*-cygwin* | *-*-mingw*)
3164 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_word" >&5
3168 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$DLLTOOL"; then
3172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3176 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 if test -f $ac_dir/$ac_word; then
3179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3186 DLLTOOL="$ac_cv_prog_DLLTOOL"
3187 if test -n "$DLLTOOL"; then
3188 echo "$ac_t""$DLLTOOL" 1>&6
3190 echo "$ac_t""no" 1>&6
3194 if test -z "$ac_cv_prog_DLLTOOL"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "dlltool", so it can be a program name with args.
3197 set dummy dlltool; ac_word=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3208 for ac_dir in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_DLLTOOL="dlltool"
3216 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3219 DLLTOOL="$ac_cv_prog_DLLTOOL"
3220 if test -n "$DLLTOOL"; then
3221 echo "$ac_t""$DLLTOOL" 1>&6
3223 echo "$ac_t""no" 1>&6
3231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}as; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$AS"; then
3239 ac_cv_prog_AS="$AS" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_AS="${ac_tool_prefix}as"
3254 if test -n "$AS"; then
3255 echo "$ac_t""$AS" 1>&6
3257 echo "$ac_t""no" 1>&6
3261 if test -z "$ac_cv_prog_AS"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "as", so it can be a program name with args.
3264 set dummy as; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS="$AS" # Let the user override the test.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3275 for ac_dir in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir=.
3277 if test -f $ac_dir/$ac_word; then
3283 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3287 if test -n "$AS"; then
3288 echo "$ac_t""$AS" 1>&6
3290 echo "$ac_t""no" 1>&6
3298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_word" >&5
3302 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 if test -n "$OBJDUMP"; then
3306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f $ac_dir/$ac_word; then
3313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3320 OBJDUMP="$ac_cv_prog_OBJDUMP"
3321 if test -n "$OBJDUMP"; then
3322 echo "$ac_t""$OBJDUMP" 1>&6
3324 echo "$ac_t""no" 1>&6
3328 if test -z "$ac_cv_prog_OBJDUMP"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "objdump", so it can be a program name with args.
3331 set dummy objdump; ac_word=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3342 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_OBJDUMP="objdump"
3350 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3353 OBJDUMP="$ac_cv_prog_OBJDUMP"
3354 if test -n "$OBJDUMP"; then
3355 echo "$ac_t""$OBJDUMP" 1>&6
3357 echo "$ac_t""no" 1>&6
3370 # Save cache, so that ltconfig can load it
3373 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3374 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3375 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3376 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3377 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3378 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3379 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3380 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3382 # Reload cache, that may have been modified by ltconfig
3385 # This can be used to rebuild libtool when needed
3386 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3388 # Always use our own libtool.
3389 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3391 # Redirect the config.log output again, so that the ltconfig log is not
3392 # clobbered by the next message.
3393 exec 5>>./config.log
3396 for ac_prog in mawk gawk nawk awk
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_word" >&5
3402 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 if test -n "$AWK"; then
3406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3410 for ac_dir in $ac_dummy; do
3411 test -z "$ac_dir" && ac_dir=.
3412 if test -f $ac_dir/$ac_word; then
3413 ac_cv_prog_AWK="$ac_prog"
3420 AWK="$ac_cv_prog_AWK"
3421 if test -n "$AWK"; then
3422 echo "$ac_t""$AWK" 1>&6
3424 echo "$ac_t""no" 1>&6
3427 test -n "$AWK" && break
3430 # test for ln hardlink support
3431 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3432 echo "configure:3433: checking whether ln works" >&5
3433 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 rm -f conftest.src conftest.dst
3437 echo "conftest" > conftest.src
3438 if ln conftest.src conftest.dst 2>/dev/null
3440 ol_cv_prog_LN_H="ln"
3442 ol_cv_prog_LN_H="cp"
3444 rm -f conftest.src conftest.dst
3447 LN_H="$ol_cv_prog_LN_H"
3448 if test "$ol_cv_prog_LN_H" = "ln"; then
3449 echo "$ac_t""yes" 1>&6
3451 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3455 echo "configure:3456: checking whether ln -s works" >&5
3456 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3460 if ln -s X conftestdata 2>/dev/null
3463 ac_cv_prog_LN_S="ln -s"
3468 LN_S="$ac_cv_prog_LN_S"
3469 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3470 echo "$ac_t""yes" 1>&6
3472 echo "$ac_t""no" 1>&6
3476 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3480 # Extract the first word of "sendmail", so it can be a program name with args.
3481 set dummy sendmail; ac_word=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3484 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3492 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3496 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3505 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3509 SENDMAIL="$ac_cv_path_SENDMAIL"
3510 if test -n "$SENDMAIL"; then
3511 echo "$ac_t""$SENDMAIL" 1>&6
3513 echo "$ac_t""no" 1>&6
3516 # Extract the first word of "vi", so it can be a program name with args.
3517 set dummy vi; ac_word=$2
3518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_word" >&5
3520 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3528 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3532 ac_dummy="$PATH:/usr/ucb"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3541 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3545 EDITOR="$ac_cv_path_EDITOR"
3546 if test -n "$EDITOR"; then
3547 echo "$ac_t""$EDITOR" 1>&6
3549 echo "$ac_t""no" 1>&6
3552 # Extract the first word of "finger", so it can be a program name with args.
3553 set dummy finger; ac_word=$2
3554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_word" >&5
3556 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3564 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3568 ac_dummy="$PATH:/usr/ucb"
3569 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_path_FINGER="$ac_dir/$ac_word"
3577 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3581 FINGER="$ac_cv_path_FINGER"
3582 if test -n "$FINGER"; then
3583 echo "$ac_t""$FINGER" 1>&6
3585 echo "$ac_t""no" 1>&6
3590 if test $ol_enable_perl != no ; then
3591 # Extract the first word of "perl", so it can be a program name with args.
3592 set dummy perl; ac_word=$2
3593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_word" >&5
3595 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3603 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3616 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3620 PERLBIN="$ac_cv_path_PERLBIN"
3621 if test -n "$PERLBIN"; then
3622 echo "$ac_t""$PERLBIN" 1>&6
3624 echo "$ac_t""no" 1>&6
3628 if test "no$PERLBIN" = "no" ; then
3629 if test $ol_enable_perl = yes ; then
3630 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3634 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3635 if test x"$ol_with_perl_module" = "xstatic" ; then
3636 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3638 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3644 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3645 echo "configure:3646: checking how to run the C preprocessor" >&5
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3650 if test -z "$CPP"; then
3651 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 # This must be in double quotes, not single quotes, because CPP may get
3655 # substituted into the Makefile and "${CC-cc}" will confuse make.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp.
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3666 { (eval echo configure:3667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3668 if test -z "$ac_err"; then
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 CPP="${CC-cc} -E -traditional-cpp"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3683 { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3685 if test -z "$ac_err"; then
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 CPP="${CC-cc} -nologo -E"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3700 { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3702 if test -z "$ac_err"; then
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3716 ac_cv_prog_CPP="$CPP"
3718 CPP="$ac_cv_prog_CPP"
3720 ac_cv_prog_CPP="$CPP"
3722 echo "$ac_t""$CPP" 1>&6
3725 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3726 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3728 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3729 echo "configure: warning: programs compiled here do run here..." 1>&2
3730 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3732 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3733 echo "configure: warning: programs compiled here do not run here..." 1>&2
3734 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3737 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3738 echo "configure:3739: checking for AIX" >&5
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 egrep "yes" >/dev/null 2>&1; then
3750 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3751 #define _ALL_SOURCE 1
3756 echo "$ac_t""no" 1>&6
3761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3762 echo "configure:3763: checking for POSIXized ISC" >&5
3763 if test -d /etc/conf/kconfig.d &&
3764 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3766 echo "$ac_t""yes" 1>&6
3767 ISC=yes # If later tests want to check for ISC.
3768 cat >> confdefs.h <<\EOF
3769 #define _POSIX_SOURCE 1
3772 if test "$GCC" = yes; then
3778 echo "$ac_t""no" 1>&6
3782 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3783 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3784 echo "configure:3785: checking for minix/config.h" >&5
3785 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <minix/config.h>
3793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3794 { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3796 if test -z "$ac_err"; then
3798 eval "ac_cv_header_$ac_safe=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_header_$ac_safe=no"
3808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3812 echo "$ac_t""no" 1>&6
3816 if test "$MINIX" = yes; then
3817 cat >> confdefs.h <<\EOF
3818 #define _POSIX_SOURCE 1
3821 cat >> confdefs.h <<\EOF
3822 #define _POSIX_1_SOURCE 2
3825 cat >> confdefs.h <<\EOF
3832 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3833 echo "configure:3834: checking for Cygwin environment" >&5
3834 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3844 #define __CYGWIN__ __CYGWIN32__
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3861 echo "$ac_t""$ac_cv_cygwin" 1>&6
3863 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3864 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3865 echo "configure:3866: checking for mingw32 environment" >&5
3866 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3889 echo "$ac_t""$ac_cv_mingw32" 1>&6
3891 test "$ac_cv_mingw32" = yes && MINGW32=yes
3892 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3893 echo "configure:3894: checking for EMX OS/2 environment" >&5
3894 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3917 echo "$ac_t""$ac_cv_emxos2" 1>&6
3919 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3923 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3924 echo "configure:3925: checking for executable suffix" >&5
3925 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3932 echo 'int main () { return 0; }' > conftest.$ac_ext
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3935 for file in conftest.*; do
3937 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3938 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3942 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3945 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3950 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3951 echo "$ac_t""${ac_cv_exeext}" 1>&6
3954 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3955 echo "configure:3956: checking for object suffix" >&5
3956 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3960 echo 'int i = 1;' > conftest.$ac_ext
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 for ac_file in conftest.*; do
3965 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3969 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3974 echo "$ac_t""$ac_cv_objext" 1>&6
3975 OBJEXT=$ac_cv_objext
3976 ac_objext=$ac_cv_objext
3979 cat >> confdefs.h <<EOF
3980 #define EXEEXT "${EXEEXT}"
3984 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3985 echo "configure:3986: checking for be_app in -lbe" >&5
3986 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS="$LIBS"
3991 LIBS="-lbe -lroot -lnet $LIBS"
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 eval "ac_cv_lib_$ac_lib_var=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4011 eval "ac_cv_lib_$ac_lib_var=no"
4014 LIBS="$ac_save_LIBS"
4017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 LIBS="$LIBS -lbe -lroot -lnet"
4021 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4030 echo "configure:4031: checking for ${CC-cc} option to accept ANSI C" >&5
4031 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 am_cv_prog_cc_stdc=no
4036 # Don't try gcc -ansi; that turns off useful extensions and
4037 # breaks some systems' header files.
4038 # AIX -qlanglvl=ansi
4039 # Ultrix and OSF/1 -std1
4040 # HP-UX 10.20 and later -Ae
4041 # HP-UX older versions -Aa -D_HPUX_SOURCE
4042 # SVR4 -Xc -D__EXTENSIONS__
4043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4071 int test (int i, double x);
4072 struct s1 {int (*f) (int a);};
4073 struct s2 {int (*f) (double a);};
4074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 am_cv_prog_cc_stdc="$ac_arg"; break
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4097 if test -z "$am_cv_prog_cc_stdc"; then
4098 echo "$ac_t""none needed" 1>&6
4100 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4102 case "x$am_cv_prog_cc_stdc" in
4104 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4107 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4108 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4111 # test for make depend flag
4114 if test -z "${MKDEP}"; then
4116 if test -z "${MKDEP_FLAGS}"; then
4117 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4118 echo "configure:4119: checking for ${OL_MKDEP} depend flag" >&5
4119 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4124 for flag in "-M" "-xM"; do
4125 cat > conftest.c <<EOF
4128 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4129 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4131 if test ! -f conftest."${ac_object}" ; then
4133 OL_MKDEP_FLAGS="$flag"
4142 echo "$ac_t""$ol_cv_mkdep" 1>&6
4145 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4150 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4155 if test "${ol_cv_mkdep}" = no ; then
4156 # this will soon become an error
4157 echo "configure: warning: do not know how to generate dependencies" 1>&2
4160 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4161 echo "configure:4162: checking for afopen in -ls" >&5
4162 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 ac_save_LIBS="$LIBS"
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* Override any gcc2 internal prototype to avoid an error. */
4172 /* We use char because int might match the return type of a gcc2
4173 builtin and then its argument prototype would still apply. */
4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4182 eval "ac_cv_lib_$ac_lib_var=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 eval "ac_cv_lib_$ac_lib_var=no"
4190 LIBS="$ac_save_LIBS"
4193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_AIX_SECURITY 1
4203 echo "$ac_t""no" 1>&6
4209 if test $ol_enable_modules != no ; then
4210 for ac_hdr in ltdl.h
4212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h <<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4251 if test $ac_cv_header_ltdl_h = no ; then
4252 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4255 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4256 echo "configure:4257: checking for lt_dlinit in -lltdl" >&5
4257 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_LIBLTDL 1
4298 echo "$ac_t""no" 1>&6
4302 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4303 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4307 ol_with_bdb_module=static
4308 ol_with_dnssrv_module=static
4309 ol_with_ldap_module=static
4310 ol_with_ldbm_module=static
4311 ol_with_passwd_module=static
4312 ol_with_perl_module=static
4313 ol_with_shell_module=static
4314 ol_with_tcl_module=static
4315 ol_with_sql_module=static
4319 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4320 echo "configure:4321: checking for EBCDIC" >&5
4321 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 #include <__ASCII__/generate_error.h>
4334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 ol_cv_cpp_ebcdic=yes
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4350 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4351 if test $ol_cv_cpp_ebcdic = yes ; then
4352 cat >> confdefs.h <<\EOF
4353 #define HAVE_EBCDIC 1
4358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4359 echo "configure:4360: checking for ANSI C header files" >&5
4360 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372 { (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374 if test -z "$ac_err"; then
4376 ol_cv_header_stdc=yes
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 ol_cv_header_stdc=no
4386 if test $ol_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "memchr" >/dev/null 2>&1; then
4398 ol_cv_header_stdc=no
4404 if test $ol_cv_header_stdc = yes; then
4405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "free" >/dev/null 2>&1; then
4416 ol_cv_header_stdc=no
4422 if test $ol_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4424 if test "$cross_compiling" = yes; then
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
4438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 int main () { int i; for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 ol_cv_header_stdc=no
4461 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4462 if test $ol_cv_header_stdc = yes; then
4463 cat >> confdefs.h <<\EOF
4464 #define STDC_HEADERS 1
4468 ac_cv_header_stdc=disable
4471 if test $ol_cv_header_stdc != yes; then
4472 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4476 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4479 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_hdr that defines DIR" >&5
4481 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 #include <sys/types.h>
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 eval "ac_cv_header_dirent_$ac_safe=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_header_dirent_$ac_safe=no"
4504 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_hdr 1
4510 ac_header_dirent=$ac_hdr; break
4512 echo "$ac_t""no" 1>&6
4515 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4516 if test $ac_header_dirent = dirent.h; then
4517 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4518 echo "configure:4519: checking for opendir in -ldir" >&5
4519 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 ac_save_LIBS="$LIBS"
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4539 eval "ac_cv_lib_$ac_lib_var=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_lib_$ac_lib_var=no"
4547 LIBS="$ac_save_LIBS"
4550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4559 echo "configure:4560: checking for opendir in -lx" >&5
4560 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 ac_save_LIBS="$LIBS"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 eval "ac_cv_lib_$ac_lib_var=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_lib_$ac_lib_var=no"
4588 LIBS="$ac_save_LIBS"
4591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4595 echo "$ac_t""no" 1>&6
4600 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4601 echo "configure:4602: checking for sys/wait.h that is POSIX.1 compatible" >&5
4602 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <sys/types.h>
4609 #include <sys/wait.h>
4611 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4614 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4622 if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 ac_cv_header_sys_wait_h=yes
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 ac_cv_header_sys_wait_h=no
4634 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4635 if test $ac_cv_header_sys_wait_h = yes; then
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_SYS_WAIT_H 1
4642 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4643 echo "configure:4644: checking POSIX termios" >&5
4644 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 #include <sys/types.h>
4652 #include <termios.h>
4654 /* SunOS 4.0.3 has termios.h but not the library calls. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 am_cv_sys_posix_termios=yes
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 am_cv_sys_posix_termios=no
4670 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4673 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4675 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4680 gwinsz_in_termios_h=no
4681 if test $am_cv_sys_posix_termios = yes; then
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 # include <termios.h>
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 egrep "yes" >/dev/null 2>&1; then
4695 gwinsz_in_termios_h=yes
4701 if test $gwinsz_in_termios_h = no; then
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <sys/types.h>
4706 # include <sys/ioctl.h>
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 egrep "yes" >/dev/null 2>&1; then
4715 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4723 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4724 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4725 cat >> confdefs.h <<\EOF
4726 #define GWINSZ_IN_SYS_IOCTL 1
4731 if test $am_cv_sys_posix_termios = yes ; then
4732 cat >> confdefs.h <<\EOF
4733 #define HAVE_POSIX_TERMIOS 1
4784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_hdr" >&5
4787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4796 { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4798 if test -z "$ac_err"; then
4800 eval "ac_cv_header_$ac_safe=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 eval "ac_cv_header_$ac_safe=no"
4810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_hdr 1
4818 echo "$ac_t""no" 1>&6
4825 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4826 echo "configure:4827: checking for sigset in -lV3" >&5
4827 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4828 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 ac_save_LIBS="$LIBS"
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847 eval "ac_cv_lib_$ac_lib_var=yes"
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4852 eval "ac_cv_lib_$ac_lib_var=no"
4855 LIBS="$ac_save_LIBS"
4858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4861 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4862 cat >> confdefs.h <<EOF
4863 #define $ac_tr_lib 1
4869 echo "$ac_t""no" 1>&6
4873 if test $ac_cv_header_winsock_h = yes; then
4874 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4875 echo "configure:4876: checking for winsock" >&5
4876 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 #include <winsock.h>
4886 select(0,NULL,NULL,NULL,NULL);
4888 gethostname(NULL,0);
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4904 echo "$ac_t""$ol_cv_winsock" 1>&6
4906 if test $ol_cv_winsock = yes ; then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_WINSOCK 1
4911 ac_cv_func_socket=yes
4912 ac_cv_func_select=yes
4913 ac_cv_func_closesocket=yes
4914 ac_cv_func_gethostname=yes
4919 echo $ac_n "checking for socket""... $ac_c" 1>&6
4920 echo "configure:4921: checking for socket" >&5
4921 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char socket(); below. */
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_socket) || defined (__stub___socket)
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 eval "ac_cv_func_socket=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_func_socket=no"
4961 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4965 echo "$ac_t""no" 1>&6
4967 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4968 echo "configure:4969: checking for main in -lsocket" >&5
4969 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4973 ac_save_LIBS="$LIBS"
4974 LIBS="-lsocket $LIBS"
4975 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 eval "ac_cv_lib_$ac_lib_var=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 eval "ac_cv_lib_$ac_lib_var=no"
4993 LIBS="$ac_save_LIBS"
4996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
4998 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5000 cat >> confdefs.h <<EOF
5001 #define $ac_tr_lib 1
5004 LIBS="-lsocket $LIBS"
5007 echo "$ac_t""no" 1>&6
5010 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5011 echo "configure:5012: checking for main in -lnet" >&5
5012 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 ac_save_LIBS="$LIBS"
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 eval "ac_cv_lib_$ac_lib_var=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 eval "ac_cv_lib_$ac_lib_var=no"
5036 LIBS="$ac_save_LIBS"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5043 cat >> confdefs.h <<EOF
5044 #define $ac_tr_lib 1
5050 echo "$ac_t""no" 1>&6
5053 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5054 echo "configure:5055: checking for main in -lnsl_s" >&5
5055 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 ac_save_LIBS="$LIBS"
5060 LIBS="-lnsl_s $LIBS"
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5079 LIBS="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5086 cat >> confdefs.h <<EOF
5087 #define $ac_tr_lib 1
5090 LIBS="-lnsl_s $LIBS"
5093 echo "$ac_t""no" 1>&6
5096 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5097 echo "configure:5098: checking for main in -lnsl" >&5
5098 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5099 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 ac_save_LIBS="$LIBS"
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 eval "ac_cv_lib_$ac_lib_var=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 eval "ac_cv_lib_$ac_lib_var=no"
5122 LIBS="$ac_save_LIBS"
5125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5129 cat >> confdefs.h <<EOF
5130 #define $ac_tr_lib 1
5136 echo "$ac_t""no" 1>&6
5139 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5140 echo "configure:5141: checking for socket in -linet" >&5
5141 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 ac_save_LIBS="$LIBS"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 eval "ac_cv_lib_$ac_lib_var=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5166 eval "ac_cv_lib_$ac_lib_var=no"
5169 LIBS="$ac_save_LIBS"
5172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5176 cat >> confdefs.h <<EOF
5177 #define $ac_tr_lib 1
5183 echo "$ac_t""no" 1>&6
5186 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5187 echo "configure:5188: checking for main in -lgen" >&5
5188 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 ac_save_LIBS="$LIBS"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5204 eval "ac_cv_lib_$ac_lib_var=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 eval "ac_cv_lib_$ac_lib_var=no"
5212 LIBS="$ac_save_LIBS"
5215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5219 cat >> confdefs.h <<EOF
5220 #define $ac_tr_lib 1
5226 echo "$ac_t""no" 1>&6
5233 echo $ac_n "checking for select""... $ac_c" 1>&6
5234 echo "configure:5235: checking for select" >&5
5235 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 /* System header to define __stub macros and hopefully few prototypes,
5242 which can conflict with char select(); below. */
5244 /* Override any gcc2 internal prototype to avoid an error. */
5245 /* We use char because int might match the return type of a gcc2
5246 builtin and then its argument prototype would still apply. */
5252 /* The GNU C library defines this for functions which it implements
5253 to always fail with ENOSYS. Some functions are actually named
5254 something starting with __ and the normal name is an alias. */
5255 #if defined (__stub_select) || defined (__stub___select)
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265 eval "ac_cv_func_select=yes"
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 eval "ac_cv_func_select=no"
5275 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5276 echo "$ac_t""yes" 1>&6
5279 echo "$ac_t""no" 1>&6
5280 { echo "configure: error: select() required." 1>&2; exit 1; }
5284 if test "${ac_cv_header_winsock_h}" != yes; then
5285 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5286 echo "configure:5287: checking types of arguments for select()" >&5
5287 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5297 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5298 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 #ifdef HAVE_SYS_TYPES_H
5303 #include <sys/types.h>
5305 #ifdef HAVE_SYS_TIME_H
5306 #include <sys/time.h>
5308 #ifdef HAVE_SYS_SELECT_H
5309 #include <sys/select.h>
5311 #ifdef HAVE_SYS_SOCKET_H
5312 #include <sys/socket.h>
5314 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);
5319 if { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 ac_not_found=no ; break 3
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5338 if test "$ac_not_found" = yes; then
5339 ac_cv_func_select_arg1=int
5340 ac_cv_func_select_arg234='int *'
5341 ac_cv_func_select_arg5='struct timeval *'
5343 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5344 cat >> confdefs.h <<EOF
5345 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5348 cat >> confdefs.h <<EOF
5349 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5352 cat >> confdefs.h <<EOF
5353 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5360 for ac_hdr in regex.h
5362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5364 echo "configure:5365: checking for $ac_hdr" >&5
5365 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5374 { (eval echo configure:5375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5376 if test -z "$ac_err"; then
5378 eval "ac_cv_header_$ac_safe=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_header_$ac_safe=no"
5388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5391 cat >> confdefs.h <<EOF
5392 #define $ac_tr_hdr 1
5396 echo "$ac_t""no" 1>&6
5400 if test "$ac_cv_header_regex_h" != yes ; then
5401 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5403 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5404 echo "configure:5405: checking for regfree" >&5
5405 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412 which can conflict with char regfree(); below. */
5414 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5422 /* The GNU C library defines this for functions which it implements
5423 to always fail with ENOSYS. Some functions are actually named
5424 something starting with __ and the normal name is an alias. */
5425 #if defined (__stub_regfree) || defined (__stub___regfree)
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 eval "ac_cv_func_regfree=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 eval "ac_cv_func_regfree=no"
5445 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5446 echo "$ac_t""yes" 1>&6
5449 echo "$ac_t""no" 1>&6
5450 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5455 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5456 echo "configure:5457: checking for compatible POSIX regex" >&5
5457 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5461 if test "$cross_compiling" = yes; then
5462 ol_cv_c_posix_regex=cross
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5468 #include <sys/types.h>
5470 static char *pattern, *string;
5478 if(regcomp(&re, pattern, 0)) {
5482 string = "ALL MATCH";
5484 rc = regexec(&re, string, 0, (void*)0, 0);
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5493 ol_cv_c_posix_regex=yes
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 ol_cv_c_posix_regex=no
5505 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5507 if test "$ol_cv_c_posix_regex" = no ; then
5508 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5512 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5513 echo "configure:5514: checking for res_query" >&5
5514 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 /* System header to define __stub macros and hopefully few prototypes,
5521 which can conflict with char res_query(); below. */
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5531 /* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534 #if defined (__stub_res_query) || defined (__stub___res_query)
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 eval "ac_cv_func_res_query=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 eval "ac_cv_func_res_query=no"
5554 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5558 echo "$ac_t""no" 1>&6
5561 if test $ac_cv_func_res_query = no ; then
5562 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5563 echo "configure:5564: checking for res_query in -lbind" >&5
5564 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 ac_save_LIBS="$LIBS"
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5584 eval "ac_cv_lib_$ac_lib_var=yes"
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5589 eval "ac_cv_lib_$ac_lib_var=no"
5592 LIBS="$ac_save_LIBS"
5595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5597 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_lib 1
5606 echo "$ac_t""no" 1>&6
5609 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5612 if test $ac_cv_func_res_query = no ; then
5613 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5614 echo "configure:5615: checking for __res_query in -lbind" >&5
5615 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5619 ac_save_LIBS="$LIBS"
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5635 eval "ac_cv_lib_$ac_lib_var=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5640 eval "ac_cv_lib_$ac_lib_var=no"
5643 LIBS="$ac_save_LIBS"
5646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5647 echo "$ac_t""yes" 1>&6
5648 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5650 cat >> confdefs.h <<EOF
5651 #define $ac_tr_lib 1
5657 echo "$ac_t""no" 1>&6
5660 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5663 if test $ac_cv_func_res_query = no ; then
5664 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5665 echo "configure:5666: checking for res_query in -lresolv" >&5
5666 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 ac_save_LIBS="$LIBS"
5671 LIBS="-lresolv $LIBS"
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5686 eval "ac_cv_lib_$ac_lib_var=yes"
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 eval "ac_cv_lib_$ac_lib_var=no"
5694 LIBS="$ac_save_LIBS"
5697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5698 echo "$ac_t""yes" 1>&6
5699 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5701 cat >> confdefs.h <<EOF
5702 #define $ac_tr_lib 1
5705 LIBS="-lresolv $LIBS"
5708 echo "$ac_t""no" 1>&6
5711 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5714 if test "$ac_cv_func_res_query" = yes ; then
5715 cat >> confdefs.h <<\EOF
5716 #define HAVE_RES_QUERY 1
5720 if test $ol_enable_dnssrv != no ; then
5725 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5726 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5729 for ac_func in getaddrinfo
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func(); below. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5750 /* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_func_$ac_func=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_func_$ac_func=no"
5773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
5775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5776 cat >> confdefs.h <<EOF
5777 #define $ac_tr_func 1
5781 echo "$ac_t""no" 1>&6
5787 if test $ac_cv_func_getaddrinfo = no ; then
5788 if test $ol_enable_ipv6 = yes ; then
5789 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
5792 for ac_func in gai_strerror
5794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5795 echo "configure:5796: checking for $ac_func" >&5
5796 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5802 /* System header to define __stub macros and hopefully few prototypes,
5803 which can conflict with char $ac_func(); below. */
5805 /* Override any gcc2 internal prototype to avoid an error. */
5806 /* We use char because int might match the return type of a gcc2
5807 builtin and then its argument prototype would still apply. */
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 eval "ac_cv_func_$ac_func=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_func_$ac_func=no"
5836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5839 cat >> confdefs.h <<EOF
5840 #define $ac_tr_func 1
5844 echo "$ac_t""no" 1>&6
5849 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5850 echo "configure:5851: checking INET6_ADDRSTRLEN" >&5
5851 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5852 echo $ac_n "(cached) $ac_c" 1>&6
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5859 # include <netinet/in.h>
5860 # ifdef INET6_ADDRSTRLEN
5861 __has_inet6_addrstrlen__;
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5868 ol_cv_inet6_addrstrlen=yes
5871 ol_cv_inet6_addrstrlen=no
5877 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5879 if test $ol_cv_inet6_addrstrlen = yes ; then
5881 elif test $ol_enable_ipv6 = yes ; then
5882 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5886 if test $ol_enable_local != no ; then
5887 for ac_hdr in sys/un.h
5889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_hdr" >&5
5892 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 if test -z "$ac_err"; then
5905 eval "ac_cv_header_$ac_safe=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_header_$ac_safe=no"
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_hdr 1
5923 echo "$ac_t""no" 1>&6
5928 if test $ol_enable_local = auto ; then
5929 ol_enable_local=$ac_cv_header_sys_un_h
5930 elif test $ac_cv_header_sys_un_h = no ; then
5931 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5940 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5941 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5942 -o $ol_with_kerberos = k425 ; then
5944 for ac_hdr in krb5.h
5946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_hdr" >&5
5949 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5958 { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5960 if test -z "$ac_err"; then
5962 eval "ac_cv_header_$ac_safe=yes"
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 eval "ac_cv_header_$ac_safe=no"
5972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5973 echo "$ac_t""yes" 1>&6
5974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5975 cat >> confdefs.h <<EOF
5976 #define $ac_tr_hdr 1
5980 echo "$ac_t""no" 1>&6
5985 if test $ac_cv_header_krb5_h = yes ; then
5986 for ac_hdr in heim_err.h
5988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_hdr" >&5
5991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 eval "ac_cv_header_$ac_safe=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_header_$ac_safe=no"
6014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6017 cat >> confdefs.h <<EOF
6018 #define $ac_tr_hdr 1
6022 echo "$ac_t""no" 1>&6
6026 if test $ac_cv_header_heim_err_h = yes ; then
6032 if test $krb5_impl = mit; then
6033 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6034 echo "configure:6035: checking for main in -lkrb5" >&5
6035 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 ac_save_LIBS="$LIBS"
6040 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_lib_$ac_lib_var=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_lib_$ac_lib_var=no"
6059 LIBS="$ac_save_LIBS"
6062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6065 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6067 echo "$ac_t""no" 1>&6
6072 elif test $krb5_impl = heimdal; then
6073 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6074 echo "configure:6075: checking for main in -lkrb5" >&5
6075 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 ac_save_LIBS="$LIBS"
6080 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6091 eval "ac_cv_lib_$ac_lib_var=yes"
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 eval "ac_cv_lib_$ac_lib_var=no"
6099 LIBS="$ac_save_LIBS"
6102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6103 echo "$ac_t""yes" 1>&6
6105 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6107 echo "$ac_t""no" 1>&6
6112 cat >> confdefs.h <<\EOF
6113 #define HAVE_HEIMDAL_KERBEROS 1
6118 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6121 if test $have_krb5 = yes ; then
6124 cat >> confdefs.h <<\EOF
6129 if test $ol_enable_kpasswd != no ; then
6130 ol_link_kpasswd=yes;
6133 if test $ol_with_kerberos = k5only ; then
6134 ol_with_kerberos=found
6137 elif test $ol_with_kerberos != auto ; then
6138 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6144 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6145 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6147 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6151 echo "configure:6152: checking for $ac_hdr" >&5
6152 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6161 { (eval echo configure:6162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6163 if test -z "$ac_err"; then
6165 eval "ac_cv_header_$ac_safe=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_header_$ac_safe=no"
6175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6176 echo "$ac_t""yes" 1>&6
6177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6178 cat >> confdefs.h <<EOF
6179 #define $ac_tr_hdr 1
6183 echo "$ac_t""no" 1>&6
6188 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6189 if test $krb5_impl = mit; then
6190 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6191 echo "configure:6192: checking for main in -lkrb4" >&5
6192 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6196 ac_save_LIBS="$LIBS"
6197 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6208 eval "ac_cv_lib_$ac_lib_var=yes"
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6213 eval "ac_cv_lib_$ac_lib_var=no"
6216 LIBS="$ac_save_LIBS"
6219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6220 echo "$ac_t""yes" 1>&6
6222 KRB4_LIBS="-lkrb4 -ldes425"
6224 echo "$ac_t""no" 1>&6
6229 elif test $krb5_impl = heimdal; then
6230 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6231 echo "configure:6232: checking for main in -lkrb4" >&5
6232 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6233 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6236 ac_save_LIBS="$LIBS"
6237 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 eval "ac_cv_lib_$ac_lib_var=yes"
6250 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6253 eval "ac_cv_lib_$ac_lib_var=no"
6256 LIBS="$ac_save_LIBS"
6259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6264 echo "$ac_t""no" 1>&6
6271 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6274 if test $have_k425 = yes ; then
6275 ol_with_kerberos=found
6278 cat >> confdefs.h <<\EOF
6279 #define HAVE_KRB425 1
6282 cat >> confdefs.h <<\EOF
6287 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6288 echo "configure:6289: checking for des_debug in Kerberos libraries" >&5
6289 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6294 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6299 #include <kerberosIV/krb.h>
6300 #include <kerberosIV/des.h>
6301 extern int des_debug;
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6311 ol_cv_var_des_debug=yes
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 ol_cv_var_des_debug=no
6323 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6325 if test $ol_cv_var_des_debug = yes ; then
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE_DES_DEBUG 1
6337 if test $ol_link_krb5 = yes ; then
6338 ol_with_kerberos=found
6341 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6342 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6344 for ac_hdr in krb.h des.h krb-archaeology.h
6346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6348 echo "configure:6349: checking for $ac_hdr" >&5
6349 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6352 cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6358 { (eval echo configure:6359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6360 if test -z "$ac_err"; then
6362 eval "ac_cv_header_$ac_safe=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 eval "ac_cv_header_$ac_safe=no"
6372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6373 echo "$ac_t""yes" 1>&6
6374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6375 cat >> confdefs.h <<EOF
6376 #define $ac_tr_hdr 1
6380 echo "$ac_t""no" 1>&6
6385 if test $ac_cv_header_krb_h = yes ; then
6386 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6387 echo "configure:6388: checking for main in -lkrb" >&5
6388 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6389 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6392 ac_save_LIBS="$LIBS"
6393 LIBS="-lkrb -ldes $LIBS"
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 eval "ac_cv_lib_$ac_lib_var=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_lib_$ac_lib_var=no"
6412 LIBS="$ac_save_LIBS"
6415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6419 echo "$ac_t""no" 1>&6
6424 if test $have_k4 = yes ; then
6425 ol_with_kerberos=found
6428 cat >> confdefs.h <<\EOF
6433 KRB4_LIBS="-lkrb -ldes"
6435 if test $ac_cv_header_krb_archaeology_h = yes ; then
6436 cat >> confdefs.h <<\EOF
6437 #define HAVE_KTH_KERBEROS 1
6445 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6449 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6452 elif test $ol_enable_kbind = yes ; then
6453 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6456 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6457 cat >> confdefs.h <<\EOF
6458 #define HAVE_KERBEROS 1
6462 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6463 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6467 if test $ol_with_tls != no ; then
6468 for ac_hdr in openssl/ssl.h ssl.h
6470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_hdr" >&5
6473 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6482 { (eval echo configure:6483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6484 if test -z "$ac_err"; then
6486 eval "ac_cv_header_$ac_safe=yes"
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6492 eval "ac_cv_header_$ac_safe=no"
6496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6497 echo "$ac_t""yes" 1>&6
6498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6499 cat >> confdefs.h <<EOF
6500 #define $ac_tr_hdr 1
6504 echo "$ac_t""no" 1>&6
6509 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6510 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6511 echo "configure:6512: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6512 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6513 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 ac_save_LIBS="$LIBS"
6517 LIBS="-lssl -lcrypto $LIBS"
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524 char SSLeay_add_ssl_algorithms();
6527 SSLeay_add_ssl_algorithms()
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 eval "ac_cv_lib_$ac_lib_var=no"
6540 LIBS="$ac_save_LIBS"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6548 echo "$ac_t""no" 1>&6
6553 if test $have_ssleay = no ; then
6554 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6555 echo "configure:6556: checking for SSL_library_init in -lssl" >&5
6556 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 ac_save_LIBS="$LIBS"
6561 LIBS="-lssl -lcrypto $LIBS"
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* Override any gcc2 internal prototype to avoid an error. */
6566 /* We use char because int might match the return type of a gcc2
6567 builtin and then its argument prototype would still apply. */
6568 char SSL_library_init();
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 eval "ac_cv_lib_$ac_lib_var=yes"
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 eval "ac_cv_lib_$ac_lib_var=no"
6584 LIBS="$ac_save_LIBS"
6587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6592 echo "$ac_t""no" 1>&6
6598 if test $have_ssleay = no ; then
6599 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6600 echo "configure:6601: checking for ssl3_accept in -lssl" >&5
6601 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6602 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 ac_save_LIBS="$LIBS"
6606 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6621 eval "ac_cv_lib_$ac_lib_var=yes"
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 eval "ac_cv_lib_$ac_lib_var=no"
6629 LIBS="$ac_save_LIBS"
6632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6633 echo "$ac_t""yes" 1>&6
6637 echo "$ac_t""no" 1>&6
6643 if test $have_ssleay = yes ; then
6647 cat >> confdefs.h <<\EOF
6648 #define HAVE_SSLEAY 1
6652 if test $need_rsaref = yes; then
6653 cat >> confdefs.h <<\EOF
6654 #define HAVE_RSAREF 1
6658 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6660 TLS_LIBS="-lssl -lcrypto"
6666 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6669 if test $ol_link_tls = yes ; then
6670 cat >> confdefs.h <<\EOF
6675 elif test $ol_with_tls = auto ; then
6676 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6677 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6679 elif test $ol_with_tls != no ; then
6680 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6683 if test $ol_enable_lmpasswd != no; then
6684 if test $ol_link_tls != yes ; then
6685 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6688 cat >> confdefs.h <<\EOF
6689 #define SLAPD_LMHASH 1
6696 gethostbyname_r gethostbyaddr_r \
6699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6700 echo "configure:6701: checking for $ac_func" >&5
6701 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* System header to define __stub macros and hopefully few prototypes,
6708 which can conflict with char $ac_func(); below. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6718 /* The GNU C library defines this for functions which it implements
6719 to always fail with ENOSYS. Some functions are actually named
6720 something starting with __ and the normal name is an alias. */
6721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 eval "ac_cv_func_$ac_func=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_func_$ac_func=no"
6741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6744 cat >> confdefs.h <<EOF
6745 #define $ac_tr_func 1
6749 echo "$ac_t""no" 1>&6
6754 if test "$ac_cv_func_ctime_r" = no ; then
6755 ol_cv_func_ctime_r_nargs=0
6757 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6758 echo "configure:6759: checking number of arguments of ctime_r" >&5
6759 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6767 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6770 if { (eval echo configure:6771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6772 ol_cv_func_ctime_r_nargs3=yes
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 ol_cv_func_ctime_r_nargs3=no
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6786 time_t ti; char *buffer; ctime_r(&ti,buffer);
6789 if { (eval echo configure:6790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6791 ol_cv_func_ctime_r_nargs2=yes
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 ol_cv_func_ctime_r_nargs2=no
6800 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6801 $ol_cv_func_ctime_r_nargs2 = no ; then
6803 ol_cv_func_ctime_r_nargs=3
6805 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6806 $ol_cv_func_ctime_r_nargs2 = yes ; then
6808 ol_cv_func_ctime_r_nargs=2
6811 ol_cv_func_ctime_r_nargs=0
6816 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6818 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6819 cat >> confdefs.h <<EOF
6820 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6827 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6828 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6829 echo "configure:6830: checking number of arguments of gethostbyname_r" >&5
6830 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 #include <sys/types.h>
6837 #include <sys/socket.h>
6838 #include <netinet/in.h>
6840 #define BUFSIZE (sizeof(struct hostent)+10)
6842 struct hostent hent; char buffer[BUFSIZE];
6843 int bufsize=BUFSIZE;int h_errno;
6844 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6845 buffer, bufsize, &h_errno);
6848 if { (eval echo configure:6849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6850 ol_cv_func_gethostbyname_r_nargs5=yes
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6855 ol_cv_func_gethostbyname_r_nargs5=no
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 #include <sys/types.h>
6863 #include <sys/socket.h>
6864 #include <netinet/in.h>
6866 #define BUFSIZE (sizeof(struct hostent)+10)
6868 struct hostent hent;struct hostent *rhent;
6869 char buffer[BUFSIZE];
6870 int bufsize=BUFSIZE;int h_errno;
6871 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6875 if { (eval echo configure:6876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6877 ol_cv_func_gethostbyname_r_nargs6=yes
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 ol_cv_func_gethostbyname_r_nargs6=no
6886 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6887 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6889 ol_cv_func_gethostbyname_r_nargs=5
6891 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6892 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6894 ol_cv_func_gethostbyname_r_nargs=6
6897 ol_cv_func_gethostbyname_r_nargs=0
6902 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6903 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6904 cat >> confdefs.h <<EOF
6905 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6911 ol_cv_func_gethostbyname_r_nargs=0
6914 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6915 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6916 echo "configure:6917: checking number of arguments of gethostbyaddr_r" >&5
6917 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 #include <sys/types.h>
6924 #include <sys/socket.h>
6925 #include <netinet/in.h>
6927 #define BUFSIZE (sizeof(struct hostent)+10)
6929 struct hostent hent; char buffer[BUFSIZE];
6931 size_t alen=sizeof(struct in_addr);
6932 int bufsize=BUFSIZE;int h_errno;
6933 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6934 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6937 if { (eval echo configure:6938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6939 ol_cv_func_gethostbyaddr_r_nargs7=yes
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 ol_cv_func_gethostbyaddr_r_nargs7=no
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 #include <sys/types.h>
6952 #include <sys/socket.h>
6953 #include <netinet/in.h>
6955 #define BUFSIZE (sizeof(struct hostent)+10)
6957 struct hostent hent;
6958 struct hostent *rhent; char buffer[BUFSIZE];
6960 size_t alen=sizeof(struct in_addr);
6961 int bufsize=BUFSIZE;int h_errno;
6962 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6963 alen, AF_INET, &hent, buffer, bufsize,
6967 if { (eval echo configure:6968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6969 ol_cv_func_gethostbyaddr_r_nargs8=yes
6971 echo "configure: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 ol_cv_func_gethostbyaddr_r_nargs8=no
6978 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6979 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6981 ol_cv_func_gethostbyaddr_r_nargs=7
6983 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6984 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6986 ol_cv_func_gethostbyaddr_r_nargs=8
6989 ol_cv_func_gethostbyaddr_r_nargs=0
6994 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6995 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6996 cat >> confdefs.h <<EOF
6997 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7003 ol_cv_func_gethostbyaddr_r_nargs=0
7006 if test "$ac_cv_func_ctime_r" = yes \
7007 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7008 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7009 -a "$ac_cv_func_gethostbyname_r" = yes \
7010 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7011 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7012 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7013 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7014 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7017 cat >> confdefs.h <<\EOF
7018 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7025 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7026 -o $ol_with_threads = nt ; then
7029 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7030 echo "configure:7031: checking for NT Threads" >&5
7031 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7032 echo $ac_n "(cached) $ac_c" 1>&6
7035 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7036 echo "configure:7037: checking for _beginthread" >&5
7037 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 /* System header to define __stub macros and hopefully few prototypes,
7044 which can conflict with char _beginthread(); below. */
7046 /* Override any gcc2 internal prototype to avoid an error. */
7047 /* We use char because int might match the return type of a gcc2
7048 builtin and then its argument prototype would still apply. */
7049 char _beginthread();
7054 /* The GNU C library defines this for functions which it implements
7055 to always fail with ENOSYS. Some functions are actually named
7056 something starting with __ and the normal name is an alias. */
7057 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7067 eval "ac_cv_func__beginthread=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7072 eval "ac_cv_func__beginthread=no"
7077 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7079 ol_cv_nt_threads=yes
7081 echo "$ac_t""no" 1>&6
7088 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7090 if test $ol_cv_nt_threads = yes ; then
7091 cat >> confdefs.h <<\EOF
7092 #define HAVE_NT_THREADS 1
7098 if test "$ol_cv_nt_threads" = yes ; then
7100 ol_with_threads=found
7101 ol_with_yielding_select=yes
7103 cat >> confdefs.h <<\EOF
7104 #define HAVE_NT_SERVICE_MANAGER 1
7107 cat >> confdefs.h <<\EOF
7108 #define HAVE_NT_EVENT_LOG 1
7113 if test $ol_with_threads = nt ; then
7114 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7118 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7119 -o $ol_with_threads = posix ; then
7121 for ac_hdr in pthread.h
7123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_hdr" >&5
7126 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7135 { (eval echo configure:7136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7137 if test -z "$ac_err"; then
7139 eval "ac_cv_header_$ac_safe=yes"
7142 echo "configure: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7145 eval "ac_cv_header_$ac_safe=no"
7149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7150 echo "$ac_t""yes" 1>&6
7151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7152 cat >> confdefs.h <<EOF
7153 #define $ac_tr_hdr 1
7157 echo "$ac_t""no" 1>&6
7162 if test $ac_cv_header_pthread_h = yes ; then
7163 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7164 echo "configure:7165: checking POSIX thread version" >&5
7165 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7173 # include <pthread.h>
7174 /* this check could be improved */
7175 # ifdef PTHREAD_ONCE_INIT
7176 pthread_version_final;
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 egrep "pthread_version_final" >/dev/null 2>&1; then
7183 ol_pthread_final=yes
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7195 # include <pthread.h>
7196 /* this check could be improved */
7197 # ifdef pthread_once_init
7198 pthread_version_draft4;
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7205 ol_pthread_draft4=yes
7208 ol_pthread_draft4=no
7213 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7214 ol_cv_pthread_version=final
7215 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7216 ol_cv_pthread_version=draft4
7218 ol_cv_pthread_version=unknown
7223 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7226 if test $ol_cv_pthread_version = final ; then
7227 cat >> confdefs.h <<\EOF
7228 #define HAVE_PTHREADS_FINAL 1
7231 elif test $ol_cv_pthread_version = draft4 ; then
7232 cat >> confdefs.h <<\EOF
7233 #define HAVE_PTHREADS_D4 1
7237 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7240 # consider threads found
7241 ol_with_threads=found
7244 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7245 echo "configure:7246: checking for LinuxThreads pthread.h" >&5
7246 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 #include <pthread.h>
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7257 ol_cv_header_linux_threads=yes
7260 ol_cv_header_linux_threads=no
7267 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7268 if test $ol_cv_header_linux_threads = yes; then
7269 cat >> confdefs.h <<\EOF
7270 #define HAVE_LINUX_THREADS 1
7276 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7277 echo "configure:7278: checking for GNU Pth pthread.h" >&5
7278 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 #include <pthread.h>
7285 #ifdef _POSIX_THREAD_IS_GNU_PTH
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "__gnu_pth__" >/dev/null 2>&1; then
7293 ol_cv_header_gnu_pth_pthread_h=yes
7296 ol_cv_header_gnu_pth_pthread_h=no
7303 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7306 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7307 for ac_hdr in sched.h
7309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7311 echo "configure:7312: checking for $ac_hdr" >&5
7312 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7321 { (eval echo configure:7322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7323 if test -z "$ac_err"; then
7325 eval "ac_cv_header_$ac_safe=yes"
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 eval "ac_cv_header_$ac_safe=no"
7335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7338 cat >> confdefs.h <<EOF
7339 #define $ac_tr_hdr 1
7343 echo "$ac_t""no" 1>&6
7350 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7351 echo "configure:7352: checking for pthread_create in default libraries" >&5
7352 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7356 if test "$cross_compiling" = yes; then
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* pthread test headers */
7361 #include <pthread.h>
7363 #define NULL (void*)0
7366 static void *task(p)
7369 return (void *) (p == NULL);
7374 /* pthread test function */
7377 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7378 /* This system (e.g. AIX) defaults detached; must override */
7379 pthread_attr_t attr;
7381 status = pthread_attr_init(&attr);
7382 if( status ) exit( status );
7384 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7385 if( status ) exit( status );
7389 #if HAVE_PTHREADS_D4
7390 #define ATTR pthread_attr_default
7395 /* make sure pthread_create() isn't just a stub */
7396 status = pthread_create(&t, ATTR, task, NULL);
7397 if( status ) exit( status );
7399 /* make sure pthread_detach() isn't just a stub */
7400 #if HAVE_PTHREADS_D4
7401 status = pthread_detach( &t );
7403 status = pthread_detach( t );
7406 #ifdef HAVE_LINUX_THREADS
7407 pthread_kill_other_threads_np();
7414 if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7416 ol_cv_pthread_create=yes
7418 echo "configure: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7421 ol_cv_pthread_create=no
7425 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7428 /* pthread test headers */
7429 #include <pthread.h>
7431 #define NULL (void*)0
7434 static void *task(p)
7437 return (void *) (p == NULL);
7441 int main(argc, argv)
7446 /* pthread test function */
7449 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7450 /* This system (e.g. AIX) defaults detached; must override */
7451 pthread_attr_t attr;
7453 status = pthread_attr_init(&attr);
7454 if( status ) exit( status );
7456 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7457 if( status ) exit( status );
7461 #if HAVE_PTHREADS_D4
7462 #define ATTR pthread_attr_default
7467 /* make sure pthread_create() isn't just a stub */
7468 status = pthread_create(&t, ATTR, task, NULL);
7469 if( status ) exit( status );
7471 /* make sure pthread_detach() isn't just a stub */
7472 #if HAVE_PTHREADS_D4
7473 status = pthread_detach( &t );
7475 status = pthread_detach( t );
7478 #ifdef HAVE_LINUX_THREADS
7479 pthread_kill_other_threads_np();
7487 if { (eval echo configure:7488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7489 ol_cv_pthread_create=yes
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7494 ol_cv_pthread_create=no
7501 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7503 if test $ol_cv_pthread_create != no ; then
7504 ol_link_threads=posix
7508 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7509 if test "$ol_link_threads" = no ; then
7511 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7512 echo "configure:7513: checking for pthread link with -kthread" >&5
7513 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7514 echo $ac_n "(cached) $ac_c" 1>&6
7519 LIBS="-kthread $LIBS"
7521 if test "$cross_compiling" = yes; then
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 /* pthread test headers */
7526 #include <pthread.h>
7528 #define NULL (void*)0
7531 static void *task(p)
7534 return (void *) (p == NULL);
7539 /* pthread test function */
7542 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7543 /* This system (e.g. AIX) defaults detached; must override */
7544 pthread_attr_t attr;
7546 status = pthread_attr_init(&attr);
7547 if( status ) exit( status );
7549 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7550 if( status ) exit( status );
7554 #if HAVE_PTHREADS_D4
7555 #define ATTR pthread_attr_default
7560 /* make sure pthread_create() isn't just a stub */
7561 status = pthread_create(&t, ATTR, task, NULL);
7562 if( status ) exit( status );
7564 /* make sure pthread_detach() isn't just a stub */
7565 #if HAVE_PTHREADS_D4
7566 status = pthread_detach( &t );
7568 status = pthread_detach( t );
7571 #ifdef HAVE_LINUX_THREADS
7572 pthread_kill_other_threads_np();
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7581 ol_cv_pthread_kthread=yes
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 ol_cv_pthread_kthread=no
7590 cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7593 /* pthread test headers */
7594 #include <pthread.h>
7596 #define NULL (void*)0
7599 static void *task(p)
7602 return (void *) (p == NULL);
7606 int main(argc, argv)
7611 /* pthread test function */
7614 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7615 /* This system (e.g. AIX) defaults detached; must override */
7616 pthread_attr_t attr;
7618 status = pthread_attr_init(&attr);
7619 if( status ) exit( status );
7621 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7622 if( status ) exit( status );
7626 #if HAVE_PTHREADS_D4
7627 #define ATTR pthread_attr_default
7632 /* make sure pthread_create() isn't just a stub */
7633 status = pthread_create(&t, ATTR, task, NULL);
7634 if( status ) exit( status );
7636 /* make sure pthread_detach() isn't just a stub */
7637 #if HAVE_PTHREADS_D4
7638 status = pthread_detach( &t );
7640 status = pthread_detach( t );
7643 #ifdef HAVE_LINUX_THREADS
7644 pthread_kill_other_threads_np();
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7654 ol_cv_pthread_kthread=yes
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 ol_cv_pthread_kthread=no
7670 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7672 if test $ol_cv_pthread_kthread = yes ; then
7673 ol_link_pthreads="-kthread"
7674 ol_link_threads=posix
7678 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7679 if test "$ol_link_threads" = no ; then
7681 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7682 echo "configure:7683: checking for pthread link with -pthread" >&5
7683 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7689 LIBS="-pthread $LIBS"
7691 if test "$cross_compiling" = yes; then
7692 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7695 /* pthread test headers */
7696 #include <pthread.h>
7698 #define NULL (void*)0
7701 static void *task(p)
7704 return (void *) (p == NULL);
7709 /* pthread test function */
7712 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7713 /* This system (e.g. AIX) defaults detached; must override */
7714 pthread_attr_t attr;
7716 status = pthread_attr_init(&attr);
7717 if( status ) exit( status );
7719 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7720 if( status ) exit( status );
7724 #if HAVE_PTHREADS_D4
7725 #define ATTR pthread_attr_default
7730 /* make sure pthread_create() isn't just a stub */
7731 status = pthread_create(&t, ATTR, task, NULL);
7732 if( status ) exit( status );
7734 /* make sure pthread_detach() isn't just a stub */
7735 #if HAVE_PTHREADS_D4
7736 status = pthread_detach( &t );
7738 status = pthread_detach( t );
7741 #ifdef HAVE_LINUX_THREADS
7742 pthread_kill_other_threads_np();
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7751 ol_cv_pthread_pthread=yes
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 ol_cv_pthread_pthread=no
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7763 /* pthread test headers */
7764 #include <pthread.h>
7766 #define NULL (void*)0
7769 static void *task(p)
7772 return (void *) (p == NULL);
7776 int main(argc, argv)
7781 /* pthread test function */
7784 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7785 /* This system (e.g. AIX) defaults detached; must override */
7786 pthread_attr_t attr;
7788 status = pthread_attr_init(&attr);
7789 if( status ) exit( status );
7791 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7792 if( status ) exit( status );
7796 #if HAVE_PTHREADS_D4
7797 #define ATTR pthread_attr_default
7802 /* make sure pthread_create() isn't just a stub */
7803 status = pthread_create(&t, ATTR, task, NULL);
7804 if( status ) exit( status );
7806 /* make sure pthread_detach() isn't just a stub */
7807 #if HAVE_PTHREADS_D4
7808 status = pthread_detach( &t );
7810 status = pthread_detach( t );
7813 #ifdef HAVE_LINUX_THREADS
7814 pthread_kill_other_threads_np();
7822 if { (eval echo configure:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7824 ol_cv_pthread_pthread=yes
7826 echo "configure: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7829 ol_cv_pthread_pthread=no
7840 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7842 if test $ol_cv_pthread_pthread = yes ; then
7843 ol_link_pthreads="-pthread"
7844 ol_link_threads=posix
7848 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7849 if test "$ol_link_threads" = no ; then
7851 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7852 echo "configure:7853: checking for pthread link with -pthreads" >&5
7853 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7859 LIBS="-pthreads $LIBS"
7861 if test "$cross_compiling" = yes; then
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 /* pthread test headers */
7866 #include <pthread.h>
7868 #define NULL (void*)0
7871 static void *task(p)
7874 return (void *) (p == NULL);
7879 /* pthread test function */
7882 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7883 /* This system (e.g. AIX) defaults detached; must override */
7884 pthread_attr_t attr;
7886 status = pthread_attr_init(&attr);
7887 if( status ) exit( status );
7889 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7890 if( status ) exit( status );
7894 #if HAVE_PTHREADS_D4
7895 #define ATTR pthread_attr_default
7900 /* make sure pthread_create() isn't just a stub */
7901 status = pthread_create(&t, ATTR, task, NULL);
7902 if( status ) exit( status );
7904 /* make sure pthread_detach() isn't just a stub */
7905 #if HAVE_PTHREADS_D4
7906 status = pthread_detach( &t );
7908 status = pthread_detach( t );
7911 #ifdef HAVE_LINUX_THREADS
7912 pthread_kill_other_threads_np();
7919 if { (eval echo configure:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 ol_cv_pthread_pthreads=yes
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 ol_cv_pthread_pthreads=no
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* pthread test headers */
7934 #include <pthread.h>
7936 #define NULL (void*)0
7939 static void *task(p)
7942 return (void *) (p == NULL);
7946 int main(argc, argv)
7951 /* pthread test function */
7954 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7955 /* This system (e.g. AIX) defaults detached; must override */
7956 pthread_attr_t attr;
7958 status = pthread_attr_init(&attr);
7959 if( status ) exit( status );
7961 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7962 if( status ) exit( status );
7966 #if HAVE_PTHREADS_D4
7967 #define ATTR pthread_attr_default
7972 /* make sure pthread_create() isn't just a stub */
7973 status = pthread_create(&t, ATTR, task, NULL);
7974 if( status ) exit( status );
7976 /* make sure pthread_detach() isn't just a stub */
7977 #if HAVE_PTHREADS_D4
7978 status = pthread_detach( &t );
7980 status = pthread_detach( t );
7983 #ifdef HAVE_LINUX_THREADS
7984 pthread_kill_other_threads_np();
7992 if { (eval echo configure:7993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7994 ol_cv_pthread_pthreads=yes
7996 echo "configure: failed program was:" >&5
7997 cat conftest.$ac_ext >&5
7999 ol_cv_pthread_pthreads=no
8010 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8012 if test $ol_cv_pthread_pthreads = yes ; then
8013 ol_link_pthreads="-pthreads"
8014 ol_link_threads=posix
8018 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8019 if test "$ol_link_threads" = no ; then
8021 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8022 echo "configure:8023: checking for pthread link with -mthreads" >&5
8023 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8024 echo $ac_n "(cached) $ac_c" 1>&6
8029 LIBS="-mthreads $LIBS"
8031 if test "$cross_compiling" = yes; then
8032 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8035 /* pthread test headers */
8036 #include <pthread.h>
8038 #define NULL (void*)0
8041 static void *task(p)
8044 return (void *) (p == NULL);
8049 /* pthread test function */
8052 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8053 /* This system (e.g. AIX) defaults detached; must override */
8054 pthread_attr_t attr;
8056 status = pthread_attr_init(&attr);
8057 if( status ) exit( status );
8059 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8060 if( status ) exit( status );
8064 #if HAVE_PTHREADS_D4
8065 #define ATTR pthread_attr_default
8070 /* make sure pthread_create() isn't just a stub */
8071 status = pthread_create(&t, ATTR, task, NULL);
8072 if( status ) exit( status );
8074 /* make sure pthread_detach() isn't just a stub */
8075 #if HAVE_PTHREADS_D4
8076 status = pthread_detach( &t );
8078 status = pthread_detach( t );
8081 #ifdef HAVE_LINUX_THREADS
8082 pthread_kill_other_threads_np();
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 ol_cv_pthread_mthreads=yes
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 ol_cv_pthread_mthreads=no
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 /* pthread test headers */
8104 #include <pthread.h>
8106 #define NULL (void*)0
8109 static void *task(p)
8112 return (void *) (p == NULL);
8116 int main(argc, argv)
8121 /* pthread test function */
8124 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8125 /* This system (e.g. AIX) defaults detached; must override */
8126 pthread_attr_t attr;
8128 status = pthread_attr_init(&attr);
8129 if( status ) exit( status );
8131 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8132 if( status ) exit( status );
8136 #if HAVE_PTHREADS_D4
8137 #define ATTR pthread_attr_default
8142 /* make sure pthread_create() isn't just a stub */
8143 status = pthread_create(&t, ATTR, task, NULL);
8144 if( status ) exit( status );
8146 /* make sure pthread_detach() isn't just a stub */
8147 #if HAVE_PTHREADS_D4
8148 status = pthread_detach( &t );
8150 status = pthread_detach( t );
8153 #ifdef HAVE_LINUX_THREADS
8154 pthread_kill_other_threads_np();
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8164 ol_cv_pthread_mthreads=yes
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8169 ol_cv_pthread_mthreads=no
8180 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8182 if test $ol_cv_pthread_mthreads = yes ; then
8183 ol_link_pthreads="-mthreads"
8184 ol_link_threads=posix
8188 # Pthread try link: -thread (ol_cv_pthread_thread)
8189 if test "$ol_link_threads" = no ; then
8191 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8192 echo "configure:8193: checking for pthread link with -thread" >&5
8193 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8194 echo $ac_n "(cached) $ac_c" 1>&6
8199 LIBS="-thread $LIBS"
8201 if test "$cross_compiling" = yes; then
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* pthread test headers */
8206 #include <pthread.h>
8208 #define NULL (void*)0
8211 static void *task(p)
8214 return (void *) (p == NULL);
8219 /* pthread test function */
8222 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8223 /* This system (e.g. AIX) defaults detached; must override */
8224 pthread_attr_t attr;
8226 status = pthread_attr_init(&attr);
8227 if( status ) exit( status );
8229 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8230 if( status ) exit( status );
8234 #if HAVE_PTHREADS_D4
8235 #define ATTR pthread_attr_default
8240 /* make sure pthread_create() isn't just a stub */
8241 status = pthread_create(&t, ATTR, task, NULL);
8242 if( status ) exit( status );
8244 /* make sure pthread_detach() isn't just a stub */
8245 #if HAVE_PTHREADS_D4
8246 status = pthread_detach( &t );
8248 status = pthread_detach( t );
8251 #ifdef HAVE_LINUX_THREADS
8252 pthread_kill_other_threads_np();
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 ol_cv_pthread_thread=yes
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8266 ol_cv_pthread_thread=no
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 /* pthread test headers */
8274 #include <pthread.h>
8276 #define NULL (void*)0
8279 static void *task(p)
8282 return (void *) (p == NULL);
8286 int main(argc, argv)
8291 /* pthread test function */
8294 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8295 /* This system (e.g. AIX) defaults detached; must override */
8296 pthread_attr_t attr;
8298 status = pthread_attr_init(&attr);
8299 if( status ) exit( status );
8301 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8302 if( status ) exit( status );
8306 #if HAVE_PTHREADS_D4
8307 #define ATTR pthread_attr_default
8312 /* make sure pthread_create() isn't just a stub */
8313 status = pthread_create(&t, ATTR, task, NULL);
8314 if( status ) exit( status );
8316 /* make sure pthread_detach() isn't just a stub */
8317 #if HAVE_PTHREADS_D4
8318 status = pthread_detach( &t );
8320 status = pthread_detach( t );
8323 #ifdef HAVE_LINUX_THREADS
8324 pthread_kill_other_threads_np();
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8334 ol_cv_pthread_thread=yes
8336 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8339 ol_cv_pthread_thread=no
8350 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8352 if test $ol_cv_pthread_thread = yes ; then
8353 ol_link_pthreads="-thread"
8354 ol_link_threads=posix
8359 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8360 if test "$ol_link_threads" = no ; then
8361 # try -lpthread -lmach -lexc -lc_r
8362 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8363 echo "configure:8364: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8364 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8370 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8372 if test "$cross_compiling" = yes; then
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* pthread test headers */
8377 #include <pthread.h>
8379 #define NULL (void*)0
8382 static void *task(p)
8385 return (void *) (p == NULL);
8390 /* pthread test function */
8393 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8394 /* This system (e.g. AIX) defaults detached; must override */
8395 pthread_attr_t attr;
8397 status = pthread_attr_init(&attr);
8398 if( status ) exit( status );
8400 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8401 if( status ) exit( status );
8405 #if HAVE_PTHREADS_D4
8406 #define ATTR pthread_attr_default
8411 /* make sure pthread_create() isn't just a stub */
8412 status = pthread_create(&t, ATTR, task, NULL);
8413 if( status ) exit( status );
8415 /* make sure pthread_detach() isn't just a stub */
8416 #if HAVE_PTHREADS_D4
8417 status = pthread_detach( &t );
8419 status = pthread_detach( t );
8422 #ifdef HAVE_LINUX_THREADS
8423 pthread_kill_other_threads_np();
8430 if { (eval echo configure:8431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8432 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8434 echo "configure: failed program was:" >&5
8435 cat conftest.$ac_ext >&5
8437 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* pthread test headers */
8445 #include <pthread.h>
8447 #define NULL (void*)0
8450 static void *task(p)
8453 return (void *) (p == NULL);
8457 int main(argc, argv)
8462 /* pthread test function */
8465 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8466 /* This system (e.g. AIX) defaults detached; must override */
8467 pthread_attr_t attr;
8469 status = pthread_attr_init(&attr);
8470 if( status ) exit( status );
8472 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8473 if( status ) exit( status );
8477 #if HAVE_PTHREADS_D4
8478 #define ATTR pthread_attr_default
8483 /* make sure pthread_create() isn't just a stub */
8484 status = pthread_create(&t, ATTR, task, NULL);
8485 if( status ) exit( status );
8487 /* make sure pthread_detach() isn't just a stub */
8488 #if HAVE_PTHREADS_D4
8489 status = pthread_detach( &t );
8491 status = pthread_detach( t );
8494 #ifdef HAVE_LINUX_THREADS
8495 pthread_kill_other_threads_np();
8503 if { (eval echo configure:8504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8505 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8510 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8521 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8523 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8524 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8525 ol_link_threads=posix
8529 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8530 if test "$ol_link_threads" = no ; then
8531 # try -lpthread -lmach -lexc
8532 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8533 echo "configure:8534: checking for pthread link with -lpthread -lmach -lexc" >&5
8534 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8540 LIBS="-lpthread -lmach -lexc $LIBS"
8542 if test "$cross_compiling" = yes; then
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 /* pthread test headers */
8547 #include <pthread.h>
8549 #define NULL (void*)0
8552 static void *task(p)
8555 return (void *) (p == NULL);
8560 /* pthread test function */
8563 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8564 /* This system (e.g. AIX) defaults detached; must override */
8565 pthread_attr_t attr;
8567 status = pthread_attr_init(&attr);
8568 if( status ) exit( status );
8570 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8571 if( status ) exit( status );
8575 #if HAVE_PTHREADS_D4
8576 #define ATTR pthread_attr_default
8581 /* make sure pthread_create() isn't just a stub */
8582 status = pthread_create(&t, ATTR, task, NULL);
8583 if( status ) exit( status );
8585 /* make sure pthread_detach() isn't just a stub */
8586 #if HAVE_PTHREADS_D4
8587 status = pthread_detach( &t );
8589 status = pthread_detach( t );
8592 #ifdef HAVE_LINUX_THREADS
8593 pthread_kill_other_threads_np();
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 ol_cv_pthread_lpthread_lmach_lexc=yes
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8607 ol_cv_pthread_lpthread_lmach_lexc=no
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 /* pthread test headers */
8615 #include <pthread.h>
8617 #define NULL (void*)0
8620 static void *task(p)
8623 return (void *) (p == NULL);
8627 int main(argc, argv)
8632 /* pthread test function */
8635 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8636 /* This system (e.g. AIX) defaults detached; must override */
8637 pthread_attr_t attr;
8639 status = pthread_attr_init(&attr);
8640 if( status ) exit( status );
8642 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8643 if( status ) exit( status );
8647 #if HAVE_PTHREADS_D4
8648 #define ATTR pthread_attr_default
8653 /* make sure pthread_create() isn't just a stub */
8654 status = pthread_create(&t, ATTR, task, NULL);
8655 if( status ) exit( status );
8657 /* make sure pthread_detach() isn't just a stub */
8658 #if HAVE_PTHREADS_D4
8659 status = pthread_detach( &t );
8661 status = pthread_detach( t );
8664 #ifdef HAVE_LINUX_THREADS
8665 pthread_kill_other_threads_np();
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8675 ol_cv_pthread_lpthread_lmach_lexc=yes
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8680 ol_cv_pthread_lpthread_lmach_lexc=no
8691 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8693 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8694 ol_link_pthreads="-lpthread -lmach -lexc"
8695 ol_link_threads=posix
8700 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8701 if test "$ol_link_threads" = no ; then
8702 # try -lpthread -Wl,-woff,85
8703 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8704 echo "configure:8705: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8705 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8711 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8713 if test "$cross_compiling" = yes; then
8714 cat > conftest.$ac_ext <<EOF
8715 #line 8716 "configure"
8716 #include "confdefs.h"
8717 /* pthread test headers */
8718 #include <pthread.h>
8720 #define NULL (void*)0
8723 static void *task(p)
8726 return (void *) (p == NULL);
8731 /* pthread test function */
8734 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8735 /* This system (e.g. AIX) defaults detached; must override */
8736 pthread_attr_t attr;
8738 status = pthread_attr_init(&attr);
8739 if( status ) exit( status );
8741 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8742 if( status ) exit( status );
8746 #if HAVE_PTHREADS_D4
8747 #define ATTR pthread_attr_default
8752 /* make sure pthread_create() isn't just a stub */
8753 status = pthread_create(&t, ATTR, task, NULL);
8754 if( status ) exit( status );
8756 /* make sure pthread_detach() isn't just a stub */
8757 #if HAVE_PTHREADS_D4
8758 status = pthread_detach( &t );
8760 status = pthread_detach( t );
8763 #ifdef HAVE_LINUX_THREADS
8764 pthread_kill_other_threads_np();
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8773 ol_cv_pthread_lib_lpthread_woff=yes
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8778 ol_cv_pthread_lib_lpthread_woff=no
8782 cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure"
8784 #include "confdefs.h"
8785 /* pthread test headers */
8786 #include <pthread.h>
8788 #define NULL (void*)0
8791 static void *task(p)
8794 return (void *) (p == NULL);
8798 int main(argc, argv)
8803 /* pthread test function */
8806 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8807 /* This system (e.g. AIX) defaults detached; must override */
8808 pthread_attr_t attr;
8810 status = pthread_attr_init(&attr);
8811 if( status ) exit( status );
8813 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8814 if( status ) exit( status );
8818 #if HAVE_PTHREADS_D4
8819 #define ATTR pthread_attr_default
8824 /* make sure pthread_create() isn't just a stub */
8825 status = pthread_create(&t, ATTR, task, NULL);
8826 if( status ) exit( status );
8828 /* make sure pthread_detach() isn't just a stub */
8829 #if HAVE_PTHREADS_D4
8830 status = pthread_detach( &t );
8832 status = pthread_detach( t );
8835 #ifdef HAVE_LINUX_THREADS
8836 pthread_kill_other_threads_np();
8844 if { (eval echo configure:8845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8846 ol_cv_pthread_lib_lpthread_woff=yes
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8851 ol_cv_pthread_lib_lpthread_woff=no
8862 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8864 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8865 ol_link_pthreads="-lpthread -Wl,-woff,85"
8866 ol_link_threads=posix
8871 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8872 if test "$ol_link_threads" = no ; then
8874 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8875 echo "configure:8876: checking for pthread link with -lpthread" >&5
8876 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8882 LIBS="-lpthread $LIBS"
8884 if test "$cross_compiling" = yes; then
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 /* pthread test headers */
8889 #include <pthread.h>
8891 #define NULL (void*)0
8894 static void *task(p)
8897 return (void *) (p == NULL);
8902 /* pthread test function */
8905 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8906 /* This system (e.g. AIX) defaults detached; must override */
8907 pthread_attr_t attr;
8909 status = pthread_attr_init(&attr);
8910 if( status ) exit( status );
8912 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8913 if( status ) exit( status );
8917 #if HAVE_PTHREADS_D4
8918 #define ATTR pthread_attr_default
8923 /* make sure pthread_create() isn't just a stub */
8924 status = pthread_create(&t, ATTR, task, NULL);
8925 if( status ) exit( status );
8927 /* make sure pthread_detach() isn't just a stub */
8928 #if HAVE_PTHREADS_D4
8929 status = pthread_detach( &t );
8931 status = pthread_detach( t );
8934 #ifdef HAVE_LINUX_THREADS
8935 pthread_kill_other_threads_np();
8942 if { (eval echo configure:8943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8944 ol_cv_pthread_lpthread=yes
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8949 ol_cv_pthread_lpthread=no
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8956 /* pthread test headers */
8957 #include <pthread.h>
8959 #define NULL (void*)0
8962 static void *task(p)
8965 return (void *) (p == NULL);
8969 int main(argc, argv)
8974 /* pthread test function */
8977 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8978 /* This system (e.g. AIX) defaults detached; must override */
8979 pthread_attr_t attr;
8981 status = pthread_attr_init(&attr);
8982 if( status ) exit( status );
8984 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8985 if( status ) exit( status );
8989 #if HAVE_PTHREADS_D4
8990 #define ATTR pthread_attr_default
8995 /* make sure pthread_create() isn't just a stub */
8996 status = pthread_create(&t, ATTR, task, NULL);
8997 if( status ) exit( status );
8999 /* make sure pthread_detach() isn't just a stub */
9000 #if HAVE_PTHREADS_D4
9001 status = pthread_detach( &t );
9003 status = pthread_detach( t );
9006 #ifdef HAVE_LINUX_THREADS
9007 pthread_kill_other_threads_np();
9015 if { (eval echo configure:9016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9017 ol_cv_pthread_lpthread=yes
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9022 ol_cv_pthread_lpthread=no
9033 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9035 if test $ol_cv_pthread_lpthread = yes ; then
9036 ol_link_pthreads="-lpthread"
9037 ol_link_threads=posix
9041 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9042 if test "$ol_link_threads" = no ; then
9044 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9045 echo "configure:9046: checking for pthread link with -lc_r" >&5
9046 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9054 if test "$cross_compiling" = yes; then
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 /* pthread test headers */
9059 #include <pthread.h>
9061 #define NULL (void*)0
9064 static void *task(p)
9067 return (void *) (p == NULL);
9072 /* pthread test function */
9075 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9076 /* This system (e.g. AIX) defaults detached; must override */
9077 pthread_attr_t attr;
9079 status = pthread_attr_init(&attr);
9080 if( status ) exit( status );
9082 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9083 if( status ) exit( status );
9087 #if HAVE_PTHREADS_D4
9088 #define ATTR pthread_attr_default
9093 /* make sure pthread_create() isn't just a stub */
9094 status = pthread_create(&t, ATTR, task, NULL);
9095 if( status ) exit( status );
9097 /* make sure pthread_detach() isn't just a stub */
9098 #if HAVE_PTHREADS_D4
9099 status = pthread_detach( &t );
9101 status = pthread_detach( t );
9104 #ifdef HAVE_LINUX_THREADS
9105 pthread_kill_other_threads_np();
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9114 ol_cv_pthread_lc_r=yes
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 ol_cv_pthread_lc_r=no
9123 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9126 /* pthread test headers */
9127 #include <pthread.h>
9129 #define NULL (void*)0
9132 static void *task(p)
9135 return (void *) (p == NULL);
9139 int main(argc, argv)
9144 /* pthread test function */
9147 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9148 /* This system (e.g. AIX) defaults detached; must override */
9149 pthread_attr_t attr;
9151 status = pthread_attr_init(&attr);
9152 if( status ) exit( status );
9154 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9155 if( status ) exit( status );
9159 #if HAVE_PTHREADS_D4
9160 #define ATTR pthread_attr_default
9165 /* make sure pthread_create() isn't just a stub */
9166 status = pthread_create(&t, ATTR, task, NULL);
9167 if( status ) exit( status );
9169 /* make sure pthread_detach() isn't just a stub */
9170 #if HAVE_PTHREADS_D4
9171 status = pthread_detach( &t );
9173 status = pthread_detach( t );
9176 #ifdef HAVE_LINUX_THREADS
9177 pthread_kill_other_threads_np();
9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9187 ol_cv_pthread_lc_r=yes
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 ol_cv_pthread_lc_r=no
9203 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9205 if test $ol_cv_pthread_lc_r = yes ; then
9206 ol_link_pthreads="-lc_r"
9207 ol_link_threads=posix
9212 # Pthread try link: -threads (ol_cv_pthread_threads)
9213 if test "$ol_link_threads" = no ; then
9215 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9216 echo "configure:9217: checking for pthread link with -threads" >&5
9217 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9218 echo $ac_n "(cached) $ac_c" 1>&6
9223 LIBS="-threads $LIBS"
9225 if test "$cross_compiling" = yes; then
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 /* pthread test headers */
9230 #include <pthread.h>
9232 #define NULL (void*)0
9235 static void *task(p)
9238 return (void *) (p == NULL);
9243 /* pthread test function */
9246 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9247 /* This system (e.g. AIX) defaults detached; must override */
9248 pthread_attr_t attr;
9250 status = pthread_attr_init(&attr);
9251 if( status ) exit( status );
9253 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9254 if( status ) exit( status );
9258 #if HAVE_PTHREADS_D4
9259 #define ATTR pthread_attr_default
9264 /* make sure pthread_create() isn't just a stub */
9265 status = pthread_create(&t, ATTR, task, NULL);
9266 if( status ) exit( status );
9268 /* make sure pthread_detach() isn't just a stub */
9269 #if HAVE_PTHREADS_D4
9270 status = pthread_detach( &t );
9272 status = pthread_detach( t );
9275 #ifdef HAVE_LINUX_THREADS
9276 pthread_kill_other_threads_np();
9283 if { (eval echo configure:9284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9285 ol_cv_pthread_threads=yes
9287 echo "configure: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9290 ol_cv_pthread_threads=no
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9297 /* pthread test headers */
9298 #include <pthread.h>
9300 #define NULL (void*)0
9303 static void *task(p)
9306 return (void *) (p == NULL);
9310 int main(argc, argv)
9315 /* pthread test function */
9318 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9319 /* This system (e.g. AIX) defaults detached; must override */
9320 pthread_attr_t attr;
9322 status = pthread_attr_init(&attr);
9323 if( status ) exit( status );
9325 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9326 if( status ) exit( status );
9330 #if HAVE_PTHREADS_D4
9331 #define ATTR pthread_attr_default
9336 /* make sure pthread_create() isn't just a stub */
9337 status = pthread_create(&t, ATTR, task, NULL);
9338 if( status ) exit( status );
9340 /* make sure pthread_detach() isn't just a stub */
9341 #if HAVE_PTHREADS_D4
9342 status = pthread_detach( &t );
9344 status = pthread_detach( t );
9347 #ifdef HAVE_LINUX_THREADS
9348 pthread_kill_other_threads_np();
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9358 ol_cv_pthread_threads=yes
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9363 ol_cv_pthread_threads=no
9374 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9376 if test $ol_cv_pthread_threads = yes ; then
9377 ol_link_pthreads="-threads"
9378 ol_link_threads=posix
9383 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9384 if test "$ol_link_threads" = no ; then
9385 # try -lpthreads -lmach -lexc -lc_r
9386 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9387 echo "configure:9388: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9388 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9394 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9396 if test "$cross_compiling" = yes; then
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 /* pthread test headers */
9401 #include <pthread.h>
9403 #define NULL (void*)0
9406 static void *task(p)
9409 return (void *) (p == NULL);
9414 /* pthread test function */
9417 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9418 /* This system (e.g. AIX) defaults detached; must override */
9419 pthread_attr_t attr;
9421 status = pthread_attr_init(&attr);
9422 if( status ) exit( status );
9424 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9425 if( status ) exit( status );
9429 #if HAVE_PTHREADS_D4
9430 #define ATTR pthread_attr_default
9435 /* make sure pthread_create() isn't just a stub */
9436 status = pthread_create(&t, ATTR, task, NULL);
9437 if( status ) exit( status );
9439 /* make sure pthread_detach() isn't just a stub */
9440 #if HAVE_PTHREADS_D4
9441 status = pthread_detach( &t );
9443 status = pthread_detach( t );
9446 #ifdef HAVE_LINUX_THREADS
9447 pthread_kill_other_threads_np();
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9461 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9465 cat > conftest.$ac_ext <<EOF
9466 #line 9467 "configure"
9467 #include "confdefs.h"
9468 /* pthread test headers */
9469 #include <pthread.h>
9471 #define NULL (void*)0
9474 static void *task(p)
9477 return (void *) (p == NULL);
9481 int main(argc, argv)
9486 /* pthread test function */
9489 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9490 /* This system (e.g. AIX) defaults detached; must override */
9491 pthread_attr_t attr;
9493 status = pthread_attr_init(&attr);
9494 if( status ) exit( status );
9496 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9497 if( status ) exit( status );
9501 #if HAVE_PTHREADS_D4
9502 #define ATTR pthread_attr_default
9507 /* make sure pthread_create() isn't just a stub */
9508 status = pthread_create(&t, ATTR, task, NULL);
9509 if( status ) exit( status );
9511 /* make sure pthread_detach() isn't just a stub */
9512 #if HAVE_PTHREADS_D4
9513 status = pthread_detach( &t );
9515 status = pthread_detach( t );
9518 #ifdef HAVE_LINUX_THREADS
9519 pthread_kill_other_threads_np();
9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9529 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9531 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9534 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9545 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9547 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9548 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9549 ol_link_threads=posix
9553 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9554 if test "$ol_link_threads" = no ; then
9555 # try -lpthreads -lmach -lexc
9556 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9557 echo "configure:9558: checking for pthread link with -lpthreads -lmach -lexc" >&5
9558 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9559 echo $ac_n "(cached) $ac_c" 1>&6
9564 LIBS="-lpthreads -lmach -lexc $LIBS"
9566 if test "$cross_compiling" = yes; then
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9570 /* pthread test headers */
9571 #include <pthread.h>
9573 #define NULL (void*)0
9576 static void *task(p)
9579 return (void *) (p == NULL);
9584 /* pthread test function */
9587 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9588 /* This system (e.g. AIX) defaults detached; must override */
9589 pthread_attr_t attr;
9591 status = pthread_attr_init(&attr);
9592 if( status ) exit( status );
9594 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9595 if( status ) exit( status );
9599 #if HAVE_PTHREADS_D4
9600 #define ATTR pthread_attr_default
9605 /* make sure pthread_create() isn't just a stub */
9606 status = pthread_create(&t, ATTR, task, NULL);
9607 if( status ) exit( status );
9609 /* make sure pthread_detach() isn't just a stub */
9610 #if HAVE_PTHREADS_D4
9611 status = pthread_detach( &t );
9613 status = pthread_detach( t );
9616 #ifdef HAVE_LINUX_THREADS
9617 pthread_kill_other_threads_np();
9624 if { (eval echo configure:9625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9626 ol_cv_pthread_lpthreads_lmach_lexc=yes
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9631 ol_cv_pthread_lpthreads_lmach_lexc=no
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 /* pthread test headers */
9639 #include <pthread.h>
9641 #define NULL (void*)0
9644 static void *task(p)
9647 return (void *) (p == NULL);
9651 int main(argc, argv)
9656 /* pthread test function */
9659 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9660 /* This system (e.g. AIX) defaults detached; must override */
9661 pthread_attr_t attr;
9663 status = pthread_attr_init(&attr);
9664 if( status ) exit( status );
9666 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9667 if( status ) exit( status );
9671 #if HAVE_PTHREADS_D4
9672 #define ATTR pthread_attr_default
9677 /* make sure pthread_create() isn't just a stub */
9678 status = pthread_create(&t, ATTR, task, NULL);
9679 if( status ) exit( status );
9681 /* make sure pthread_detach() isn't just a stub */
9682 #if HAVE_PTHREADS_D4
9683 status = pthread_detach( &t );
9685 status = pthread_detach( t );
9688 #ifdef HAVE_LINUX_THREADS
9689 pthread_kill_other_threads_np();
9697 if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9699 ol_cv_pthread_lpthreads_lmach_lexc=yes
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9704 ol_cv_pthread_lpthreads_lmach_lexc=no
9715 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9717 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9718 ol_link_pthreads="-lpthreads -lmach -lexc"
9719 ol_link_threads=posix
9723 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9724 if test "$ol_link_threads" = no ; then
9725 # try -lpthreads -lexc
9726 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9727 echo "configure:9728: checking for pthread link with -lpthreads -lexc" >&5
9728 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9734 LIBS="-lpthreads -lexc $LIBS"
9736 if test "$cross_compiling" = yes; then
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 /* pthread test headers */
9741 #include <pthread.h>
9743 #define NULL (void*)0
9746 static void *task(p)
9749 return (void *) (p == NULL);
9754 /* pthread test function */
9757 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9758 /* This system (e.g. AIX) defaults detached; must override */
9759 pthread_attr_t attr;
9761 status = pthread_attr_init(&attr);
9762 if( status ) exit( status );
9764 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9765 if( status ) exit( status );
9769 #if HAVE_PTHREADS_D4
9770 #define ATTR pthread_attr_default
9775 /* make sure pthread_create() isn't just a stub */
9776 status = pthread_create(&t, ATTR, task, NULL);
9777 if( status ) exit( status );
9779 /* make sure pthread_detach() isn't just a stub */
9780 #if HAVE_PTHREADS_D4
9781 status = pthread_detach( &t );
9783 status = pthread_detach( t );
9786 #ifdef HAVE_LINUX_THREADS
9787 pthread_kill_other_threads_np();
9794 if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9796 ol_cv_pthread_lpthreads_lexc=yes
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9801 ol_cv_pthread_lpthreads_lexc=no
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* pthread test headers */
9809 #include <pthread.h>
9811 #define NULL (void*)0
9814 static void *task(p)
9817 return (void *) (p == NULL);
9821 int main(argc, argv)
9826 /* pthread test function */
9829 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9830 /* This system (e.g. AIX) defaults detached; must override */
9831 pthread_attr_t attr;
9833 status = pthread_attr_init(&attr);
9834 if( status ) exit( status );
9836 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9837 if( status ) exit( status );
9841 #if HAVE_PTHREADS_D4
9842 #define ATTR pthread_attr_default
9847 /* make sure pthread_create() isn't just a stub */
9848 status = pthread_create(&t, ATTR, task, NULL);
9849 if( status ) exit( status );
9851 /* make sure pthread_detach() isn't just a stub */
9852 #if HAVE_PTHREADS_D4
9853 status = pthread_detach( &t );
9855 status = pthread_detach( t );
9858 #ifdef HAVE_LINUX_THREADS
9859 pthread_kill_other_threads_np();
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9869 ol_cv_pthread_lpthreads_lexc=yes
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9874 ol_cv_pthread_lpthreads_lexc=no
9885 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9887 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9888 ol_link_pthreads="-lpthreads -lexc"
9889 ol_link_threads=posix
9894 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9895 if test "$ol_link_threads" = no ; then
9897 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9898 echo "configure:9899: checking for pthread link with -lpthreads" >&5
9899 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9900 echo $ac_n "(cached) $ac_c" 1>&6
9905 LIBS="-lpthreads $LIBS"
9907 if test "$cross_compiling" = yes; then
9908 cat > conftest.$ac_ext <<EOF
9909 #line 9910 "configure"
9910 #include "confdefs.h"
9911 /* pthread test headers */
9912 #include <pthread.h>
9914 #define NULL (void*)0
9917 static void *task(p)
9920 return (void *) (p == NULL);
9925 /* pthread test function */
9928 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9929 /* This system (e.g. AIX) defaults detached; must override */
9930 pthread_attr_t attr;
9932 status = pthread_attr_init(&attr);
9933 if( status ) exit( status );
9935 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9936 if( status ) exit( status );
9940 #if HAVE_PTHREADS_D4
9941 #define ATTR pthread_attr_default
9946 /* make sure pthread_create() isn't just a stub */
9947 status = pthread_create(&t, ATTR, task, NULL);
9948 if( status ) exit( status );
9950 /* make sure pthread_detach() isn't just a stub */
9951 #if HAVE_PTHREADS_D4
9952 status = pthread_detach( &t );
9954 status = pthread_detach( t );
9957 #ifdef HAVE_LINUX_THREADS
9958 pthread_kill_other_threads_np();
9965 if { (eval echo configure:9966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9967 ol_cv_pthread_lib_lpthreads=yes
9969 echo "configure: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9972 ol_cv_pthread_lib_lpthreads=no
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9979 /* pthread test headers */
9980 #include <pthread.h>
9982 #define NULL (void*)0
9985 static void *task(p)
9988 return (void *) (p == NULL);
9992 int main(argc, argv)
9997 /* pthread test function */
10000 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10001 /* This system (e.g. AIX) defaults detached; must override */
10002 pthread_attr_t attr;
10004 status = pthread_attr_init(&attr);
10005 if( status ) exit( status );
10007 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10008 if( status ) exit( status );
10012 #if HAVE_PTHREADS_D4
10013 #define ATTR pthread_attr_default
10018 /* make sure pthread_create() isn't just a stub */
10019 status = pthread_create(&t, ATTR, task, NULL);
10020 if( status ) exit( status );
10022 /* make sure pthread_detach() isn't just a stub */
10023 #if HAVE_PTHREADS_D4
10024 status = pthread_detach( &t );
10026 status = pthread_detach( t );
10029 #ifdef HAVE_LINUX_THREADS
10030 pthread_kill_other_threads_np();
10038 if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10040 ol_cv_pthread_lib_lpthreads=yes
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 ol_cv_pthread_lib_lpthreads=no
10056 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10058 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10059 ol_link_pthreads="-lpthreads"
10060 ol_link_threads=posix
10065 if test $ol_link_threads != no ; then
10066 cat >> confdefs.h <<\EOF
10067 #define HAVE_PTHREADS 1
10071 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10073 save_CPPFLAGS="$CPPFLAGS"
10075 LIBS="$LTHREAD_LIBS $LIBS"
10077 for ac_func in sched_yield pthread_yield
10079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10080 echo "configure:10081: checking for $ac_func" >&5
10081 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10082 echo $ac_n "(cached) $ac_c" 1>&6
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 /* System header to define __stub macros and hopefully few prototypes,
10088 which can conflict with char $ac_func(); below. */
10089 #include <assert.h>
10090 /* Override any gcc2 internal prototype to avoid an error. */
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10098 /* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10109 if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10111 eval "ac_cv_func_$ac_func=yes"
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10116 eval "ac_cv_func_$ac_func=no"
10121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10124 cat >> confdefs.h <<EOF
10125 #define $ac_tr_func 1
10129 echo "$ac_t""no" 1>&6
10134 if test $ac_cv_func_sched_yield = no -a \
10135 $ac_cv_func_pthread_yield = no ; then
10136 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10137 echo "configure:10138: checking for sched_yield in -lrt" >&5
10138 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10142 ac_save_LIBS="$LIBS"
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150 char sched_yield();
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10158 eval "ac_cv_lib_$ac_lib_var=yes"
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10163 eval "ac_cv_lib_$ac_lib_var=no"
10166 LIBS="$ac_save_LIBS"
10169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10170 echo "$ac_t""yes" 1>&6
10171 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_SCHED_YIELD 1
10176 ac_cv_func_sched_yield=yes
10178 echo "$ac_t""no" 1>&6
10179 ac_cv_func_sched_yield=no
10183 if test $ac_cv_func_sched_yield = no -a \
10184 $ac_cv_func_pthread_yield = no ; then
10185 for ac_func in thr_yield
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 if test $ac_cv_func_sched_yield = no -a \
10243 $ac_cv_func_pthread_yield = no -a \
10244 "$ac_cv_func_thr_yield" = no ; then
10245 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10248 for ac_func in pthread_kill pthread_rwlock_destroy
10250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10251 echo "configure:10252: checking for $ac_func" >&5
10252 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10255 cat > conftest.$ac_ext <<EOF
10256 #line 10257 "configure"
10257 #include "confdefs.h"
10258 /* System header to define __stub macros and hopefully few prototypes,
10259 which can conflict with char $ac_func(); below. */
10260 #include <assert.h>
10261 /* Override any gcc2 internal prototype to avoid an error. */
10262 /* We use char because int might match the return type of a gcc2
10263 builtin and then its argument prototype would still apply. */
10269 /* The GNU C library defines this for functions which it implements
10270 to always fail with ENOSYS. Some functions are actually named
10271 something starting with __ and the normal name is an alias. */
10272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10280 if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10282 eval "ac_cv_func_$ac_func=yes"
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10287 eval "ac_cv_func_$ac_func=no"
10292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10293 echo "$ac_t""yes" 1>&6
10294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10295 cat >> confdefs.h <<EOF
10296 #define $ac_tr_func 1
10300 echo "$ac_t""no" 1>&6
10305 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10306 echo "configure:10307: checking for pthread_detach with <pthread.h>" >&5
10307 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10315 #include <pthread.h>
10317 #define NULL (void*)0
10321 pthread_detach(NULL);
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 ol_cv_func_pthread_detach=yes
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 ol_cv_func_pthread_detach=no
10337 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10339 if test $ol_cv_func_pthread_detach = no ; then
10340 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10343 cat >> confdefs.h <<\EOF
10344 #define HAVE_PTHREAD_DETACH 1
10349 pthread_setconcurrency \
10350 pthread_getconcurrency \
10351 thr_setconcurrency \
10352 thr_getconcurrency \
10355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10356 echo "configure:10357: checking for $ac_func" >&5
10357 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10363 /* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char $ac_func(); below. */
10365 #include <assert.h>
10366 /* Override any gcc2 internal prototype to avoid an error. */
10367 /* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10374 /* The GNU C library defines this for functions which it implements
10375 to always fail with ENOSYS. Some functions are actually named
10376 something starting with __ and the normal name is an alias. */
10377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10385 if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10387 eval "ac_cv_func_$ac_func=yes"
10389 echo "configure: failed program was:" >&5
10390 cat conftest.$ac_ext >&5
10392 eval "ac_cv_func_$ac_func=no"
10397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10398 echo "$ac_t""yes" 1>&6
10399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10400 cat >> confdefs.h <<EOF
10401 #define $ac_tr_func 1
10405 echo "$ac_t""no" 1>&6
10411 for ac_func in pthread_kill_other_threads_np
10413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10414 echo "configure:10415: checking for $ac_func" >&5
10415 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10418 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char $ac_func(); below. */
10423 #include <assert.h>
10424 /* Override any gcc2 internal prototype to avoid an error. */
10425 /* We use char because int might match the return type of a gcc2
10426 builtin and then its argument prototype would still apply. */
10432 /* The GNU C library defines this for functions which it implements
10433 to always fail with ENOSYS. Some functions are actually named
10434 something starting with __ and the normal name is an alias. */
10435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10443 if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10445 eval "ac_cv_func_$ac_func=yes"
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10450 eval "ac_cv_func_$ac_func=no"
10455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10456 echo "$ac_t""yes" 1>&6
10457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10458 cat >> confdefs.h <<EOF
10459 #define $ac_tr_func 1
10463 echo "$ac_t""no" 1>&6
10467 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10468 echo "configure:10469: checking for LinuxThreads implementation" >&5
10469 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10472 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10475 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10480 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10481 echo "configure:10482: checking for LinuxThreads consistency" >&5
10482 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10486 if test $ol_cv_header_linux_threads = yes -a \
10487 $ol_cv_sys_linux_threads = yes; then
10488 ol_cv_linux_threads=yes
10489 elif test $ol_cv_header_linux_threads = no -a \
10490 $ol_cv_sys_linux_threads = no; then
10491 ol_cv_linux_threads=no
10493 ol_cv_linux_threads=error
10498 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10501 if test $ol_cv_linux_threads = error; then
10502 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10505 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10506 echo "configure:10507: checking if pthread_create() works" >&5
10507 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10511 if test "$cross_compiling" = yes; then
10512 ol_cv_pthread_create_works=yes
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 /* pthread test headers */
10518 #include <pthread.h>
10520 #define NULL (void*)0
10523 static void *task(p)
10526 return (void *) (p == NULL);
10530 int main(argc, argv)
10535 /* pthread test function */
10538 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10539 /* This system (e.g. AIX) defaults detached; must override */
10540 pthread_attr_t attr;
10542 status = pthread_attr_init(&attr);
10543 if( status ) exit( status );
10545 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10546 if( status ) exit( status );
10550 #if HAVE_PTHREADS_D4
10551 #define ATTR pthread_attr_default
10556 /* make sure pthread_create() isn't just a stub */
10557 status = pthread_create(&t, ATTR, task, NULL);
10558 if( status ) exit( status );
10560 /* make sure pthread_detach() isn't just a stub */
10561 #if HAVE_PTHREADS_D4
10562 status = pthread_detach( &t );
10564 status = pthread_detach( t );
10567 #ifdef HAVE_LINUX_THREADS
10568 pthread_kill_other_threads_np();
10576 if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10578 ol_cv_pthread_create_works=yes
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10583 ol_cv_pthread_create_works=no
10590 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10592 if test $ol_cv_pthread_create_works = no ; then
10593 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10596 if test $ol_with_yielding_select = auto ; then
10597 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10598 echo "configure:10599: checking if select yields when using pthreads" >&5
10599 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10603 if test "$cross_compiling" = yes; then
10604 ol_cv_pthread_select_yields=cross
10606 cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10610 #include <sys/types.h>
10611 #include <sys/time.h>
10612 #include <unistd.h>
10613 #include <pthread.h>
10615 #define NULL (void*) 0
10618 static int fildes[2];
10620 static void *task(p)
10632 FD_SET(fildes[0], &rfds);
10634 /* we're not interested in any fds */
10635 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10642 exit(0); /* if we exit here, the select blocked the whole process */
10645 int main(argc, argv)
10651 /* create a pipe to select */
10652 if(pipe(&fildes[0])) {
10657 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10658 (void) pthread_setconcurrency(2);
10660 #ifdef HAVE_THR_SETCONCURRENCY
10661 /* Set Solaris LWP concurrency to 2 */
10662 thr_setconcurrency(2);
10666 #if HAVE_PTHREADS_D4
10667 pthread_create(&t, pthread_attr_default, task, NULL);
10669 pthread_create(&t, NULL, task, NULL);
10672 #if HAVE_SCHED_YIELD
10673 sched_yield(); /* make sure task runs first */
10675 #ifdef HAVE_PTHREAD_YIELD
10676 pthread_yield(); /* make sure task runs first */
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10685 ol_cv_pthread_select_yields=no
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 ol_cv_pthread_select_yields=yes
10697 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10699 if test $ol_cv_pthread_select_yields = cross ; then
10700 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10703 if test $ol_cv_pthread_select_yields = yes ; then
10704 ol_with_yielding_select=yes
10708 CPPFLAGS="$save_CPPFLAGS"
10711 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10715 if test $ol_with_threads = posix ; then
10716 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10720 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10721 -o $ol_with_threads = mach ; then
10723 for ac_hdr in mach/cthreads.h
10725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10727 echo "configure:10728: checking for $ac_hdr" >&5
10728 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10729 echo $ac_n "(cached) $ac_c" 1>&6
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10737 { (eval echo configure:10738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10739 if test -z "$ac_err"; then
10741 eval "ac_cv_header_$ac_safe=yes"
10744 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10747 eval "ac_cv_header_$ac_safe=no"
10751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10752 echo "$ac_t""yes" 1>&6
10753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10754 cat >> confdefs.h <<EOF
10755 #define $ac_tr_hdr 1
10759 echo "$ac_t""no" 1>&6
10763 if test $ac_cv_header_mach_cthreads_h = yes ; then
10764 ol_with_threads=found
10766 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10767 echo "configure:10768: checking for cthread_fork" >&5
10768 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10769 echo $ac_n "(cached) $ac_c" 1>&6
10771 cat > conftest.$ac_ext <<EOF
10772 #line 10773 "configure"
10773 #include "confdefs.h"
10774 /* System header to define __stub macros and hopefully few prototypes,
10775 which can conflict with char cthread_fork(); below. */
10776 #include <assert.h>
10777 /* Override any gcc2 internal prototype to avoid an error. */
10778 /* We use char because int might match the return type of a gcc2
10779 builtin and then its argument prototype would still apply. */
10780 char cthread_fork();
10785 /* The GNU C library defines this for functions which it implements
10786 to always fail with ENOSYS. Some functions are actually named
10787 something starting with __ and the normal name is an alias. */
10788 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10796 if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10798 eval "ac_cv_func_cthread_fork=yes"
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10803 eval "ac_cv_func_cthread_fork=no"
10808 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10809 echo "$ac_t""yes" 1>&6
10810 ol_link_threads=yes
10812 echo "$ac_t""no" 1>&6
10816 if test $ol_link_threads = no ; then
10817 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10818 echo "configure:10819: checking for cthread_fork with -all_load" >&5
10819 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10824 LIBS="-all_load $LIBS"
10825 cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10828 #include <mach/cthreads.h>
10831 cthread_fork((void *)0, (void *)0);
10835 if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 ol_cv_cthread_all_load=yes
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 ol_cv_cthread_all_load=no
10849 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10851 if test $ol_cv_cthread_all_load = yes ; then
10852 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10853 ol_link_threads=mach
10857 if test $ol_link_threads != no ; then
10858 : check for cthread specific functionality here
10859 cat >> confdefs.h <<\EOF
10860 #define HAVE_MACH_CTHREADS 1
10864 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10868 if test $ol_with_threads = mach ; then
10869 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10873 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10874 -o $ol_with_threads = pth ; then
10876 for ac_hdr in pth.h
10878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10880 echo "configure:10881: checking for $ac_hdr" >&5
10881 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10890 { (eval echo configure:10891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10892 if test -z "$ac_err"; then
10894 eval "ac_cv_header_$ac_safe=yes"
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10900 eval "ac_cv_header_$ac_safe=no"
10904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10905 echo "$ac_t""yes" 1>&6
10906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10907 cat >> confdefs.h <<EOF
10908 #define $ac_tr_hdr 1
10912 echo "$ac_t""no" 1>&6
10917 if test $ac_cv_header_pth_h = yes ; then
10918 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10919 echo "configure:10920: checking for pth_version in -lpth" >&5
10920 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10921 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10924 ac_save_LIBS="$LIBS"
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 /* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10932 char pth_version();
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10940 eval "ac_cv_lib_$ac_lib_var=yes"
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 eval "ac_cv_lib_$ac_lib_var=no"
10948 LIBS="$ac_save_LIBS"
10951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10952 echo "$ac_t""yes" 1>&6
10955 echo "$ac_t""no" 1>&6
10960 if test $have_pth = yes ; then
10961 cat >> confdefs.h <<\EOF
10962 #define HAVE_GNU_PTH 1
10965 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10966 ol_link_threads=pth
10968 if test $ol_with_yielding_select = auto ; then
10969 ol_with_yielding_select=yes
10975 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10976 -o $ol_with_threads = lwp ; then
10978 for ac_hdr in thread.h synch.h
10980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10982 echo "configure:10983: checking for $ac_hdr" >&5
10983 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10984 echo $ac_n "(cached) $ac_c" 1>&6
10986 cat > conftest.$ac_ext <<EOF
10987 #line 10988 "configure"
10988 #include "confdefs.h"
10991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10992 { (eval echo configure:10993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10994 if test -z "$ac_err"; then
10996 eval "ac_cv_header_$ac_safe=yes"
10999 echo "configure: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11002 eval "ac_cv_header_$ac_safe=no"
11006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11007 echo "$ac_t""yes" 1>&6
11008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11009 cat >> confdefs.h <<EOF
11010 #define $ac_tr_hdr 1
11014 echo "$ac_t""no" 1>&6
11018 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11019 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11020 echo "configure:11021: checking for thr_create in -lthread" >&5
11021 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11022 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11025 ac_save_LIBS="$LIBS"
11026 LIBS="-lthread $LIBS"
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11030 /* Override any gcc2 internal prototype to avoid an error. */
11031 /* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11039 if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11041 eval "ac_cv_lib_$ac_lib_var=yes"
11043 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11046 eval "ac_cv_lib_$ac_lib_var=no"
11049 LIBS="$ac_save_LIBS"
11052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11056 echo "$ac_t""no" 1>&6
11061 if test $have_thr = yes ; then
11062 cat >> confdefs.h <<\EOF
11066 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11067 ol_link_threads=thr
11069 if test $ol_with_yielding_select = auto ; then
11070 ol_with_yielding_select=yes
11074 thr_setconcurrency \
11075 thr_getconcurrency \
11078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11079 echo "configure:11080: checking for $ac_func" >&5
11080 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11086 /* System header to define __stub macros and hopefully few prototypes,
11087 which can conflict with char $ac_func(); below. */
11088 #include <assert.h>
11089 /* Override any gcc2 internal prototype to avoid an error. */
11090 /* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11097 /* The GNU C library defines this for functions which it implements
11098 to always fail with ENOSYS. Some functions are actually named
11099 something starting with __ and the normal name is an alias. */
11100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11108 if { (eval echo configure:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11110 eval "ac_cv_func_$ac_func=yes"
11112 echo "configure: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11115 eval "ac_cv_func_$ac_func=no"
11120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11121 echo "$ac_t""yes" 1>&6
11122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11123 cat >> confdefs.h <<EOF
11124 #define $ac_tr_func 1
11128 echo "$ac_t""no" 1>&6
11135 for ac_hdr in lwp/lwp.h
11137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11139 echo "configure:11140: checking for $ac_hdr" >&5
11140 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11141 echo $ac_n "(cached) $ac_c" 1>&6
11143 cat > conftest.$ac_ext <<EOF
11144 #line 11145 "configure"
11145 #include "confdefs.h"
11148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11149 { (eval echo configure:11150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11151 if test -z "$ac_err"; then
11153 eval "ac_cv_header_$ac_safe=yes"
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11159 eval "ac_cv_header_$ac_safe=no"
11163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11164 echo "$ac_t""yes" 1>&6
11165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11166 cat >> confdefs.h <<EOF
11167 #define $ac_tr_hdr 1
11171 echo "$ac_t""no" 1>&6
11175 if test $ac_cv_header_lwp_lwp_h = yes ; then
11176 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11177 echo "configure:11178: checking for lwp_create in -llwp" >&5
11178 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11182 ac_save_LIBS="$LIBS"
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 /* Override any gcc2 internal prototype to avoid an error. */
11188 /* We use char because int might match the return type of a gcc2
11189 builtin and then its argument prototype would still apply. */
11196 if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11198 eval "ac_cv_lib_$ac_lib_var=yes"
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 eval "ac_cv_lib_$ac_lib_var=no"
11206 LIBS="$ac_save_LIBS"
11209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11210 echo "$ac_t""yes" 1>&6
11213 echo "$ac_t""no" 1>&6
11218 if test $have_lwp = yes ; then
11219 cat >> confdefs.h <<\EOF
11223 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11224 ol_link_threads=lwp
11226 if test $ol_with_yielding_select = auto ; then
11227 ol_with_yielding_select=no
11233 if test $ol_with_yielding_select = yes ; then
11234 cat >> confdefs.h <<\EOF
11235 #define HAVE_YIELDING_SELECT 1
11240 if test $ol_with_threads = manual ; then
11241 ol_link_threads=yes
11243 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11245 for ac_hdr in pthread.h sched.h
11247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11249 echo "configure:11250: checking for $ac_hdr" >&5
11250 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11259 { (eval echo configure:11260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11261 if test -z "$ac_err"; then
11263 eval "ac_cv_header_$ac_safe=yes"
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11269 eval "ac_cv_header_$ac_safe=no"
11273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11274 echo "$ac_t""yes" 1>&6
11275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11276 cat >> confdefs.h <<EOF
11277 #define $ac_tr_hdr 1
11281 echo "$ac_t""no" 1>&6
11285 for ac_func in sched_yield pthread_yield
11287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11288 echo "configure:11289: checking for $ac_func" >&5
11289 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11290 echo $ac_n "(cached) $ac_c" 1>&6
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func(); below. */
11297 #include <assert.h>
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 /* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11306 /* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11317 if { (eval echo configure:11318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11319 eval "ac_cv_func_$ac_func=yes"
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11324 eval "ac_cv_func_$ac_func=no"
11329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11330 echo "$ac_t""yes" 1>&6
11331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11332 cat >> confdefs.h <<EOF
11333 #define $ac_tr_func 1
11337 echo "$ac_t""no" 1>&6
11342 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11343 echo "configure:11344: checking for LinuxThreads pthread.h" >&5
11344 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 #include <pthread.h>
11352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11353 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11355 ol_cv_header_linux_threads=yes
11358 ol_cv_header_linux_threads=no
11365 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11366 if test $ol_cv_header_linux_threads = yes; then
11367 cat >> confdefs.h <<\EOF
11368 #define HAVE_LINUX_THREADS 1
11374 for ac_hdr in mach/cthreads.h
11376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11378 echo "configure:11379: checking for $ac_hdr" >&5
11379 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11388 { (eval echo configure:11389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11390 if test -z "$ac_err"; then
11392 eval "ac_cv_header_$ac_safe=yes"
11395 echo "configure: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11398 eval "ac_cv_header_$ac_safe=no"
11402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11403 echo "$ac_t""yes" 1>&6
11404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11405 cat >> confdefs.h <<EOF
11406 #define $ac_tr_hdr 1
11410 echo "$ac_t""no" 1>&6
11414 for ac_hdr in lwp/lwp.h
11416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11418 echo "configure:11419: checking for $ac_hdr" >&5
11419 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11422 cat > conftest.$ac_ext <<EOF
11423 #line 11424 "configure"
11424 #include "confdefs.h"
11427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11428 { (eval echo configure:11429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11430 if test -z "$ac_err"; then
11432 eval "ac_cv_header_$ac_safe=yes"
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11438 eval "ac_cv_header_$ac_safe=no"
11442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11443 echo "$ac_t""yes" 1>&6
11444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11445 cat >> confdefs.h <<EOF
11446 #define $ac_tr_hdr 1
11450 echo "$ac_t""no" 1>&6
11454 for ac_hdr in thread.h synch.h
11456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11458 echo "configure:11459: checking for $ac_hdr" >&5
11459 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11460 echo $ac_n "(cached) $ac_c" 1>&6
11462 cat > conftest.$ac_ext <<EOF
11463 #line 11464 "configure"
11464 #include "confdefs.h"
11467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11468 { (eval echo configure:11469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11470 if test -z "$ac_err"; then
11472 eval "ac_cv_header_$ac_safe=yes"
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11478 eval "ac_cv_header_$ac_safe=no"
11482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11485 cat >> confdefs.h <<EOF
11486 #define $ac_tr_hdr 1
11490 echo "$ac_t""no" 1>&6
11496 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11497 cat >> confdefs.h <<\EOF
11498 #define REENTRANT 1
11501 cat >> confdefs.h <<\EOF
11502 #define _REENTRANT 1
11505 cat >> confdefs.h <<\EOF
11506 #define THREAD_SAFE 1
11509 cat >> confdefs.h <<\EOF
11510 #define _THREAD_SAFE 1
11513 cat >> confdefs.h <<\EOF
11514 #define THREADSAFE 1
11517 cat >> confdefs.h <<\EOF
11518 #define _THREADSAFE 1
11521 cat >> confdefs.h <<\EOF
11522 #define _SGI_MP_SOURCE 1
11526 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11527 echo "configure:11528: checking for thread specific errno" >&5
11528 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11529 echo $ac_n "(cached) $ac_c" 1>&6
11532 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11542 ol_cv_errno_thread_specific=yes
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11547 ol_cv_errno_thread_specific=no
11553 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11555 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11556 echo "configure:11557: checking for thread specific h_errno" >&5
11557 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11569 if { (eval echo configure:11570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11571 ol_cv_h_errno_thread_specific=yes
11573 echo "configure: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11576 ol_cv_h_errno_thread_specific=no
11582 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11584 if test $ol_cv_errno_thread_specific != yes \
11585 -o $ol_cv_h_errno_thread_specific != yes ; then
11586 LIBS="$LTHREAD_LIBS $LIBS"
11592 if test $ol_link_threads = no ; then
11593 if test $ol_with_threads = yes ; then
11594 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11597 if test $ol_with_threads = auto ; then
11598 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11602 cat >> confdefs.h <<\EOF
11603 #define NO_THREADS 1
11609 if test $ol_link_threads != no ; then
11610 cat >> confdefs.h <<\EOF
11611 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11618 if test $ol_with_ldbm_api = auto \
11619 -o $ol_with_ldbm_api = berkeley \
11620 -o $ol_with_ldbm_api = bcompat ; then
11622 if test $ol_with_ldbm_api = bcompat; then \
11623 ol_cv_berkeley_db=no
11624 for ac_hdr in db_185.h db.h
11626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11628 echo "configure:11629: checking for $ac_hdr" >&5
11629 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11632 cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11638 { (eval echo configure:11639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11640 if test -z "$ac_err"; then
11642 eval "ac_cv_header_$ac_safe=yes"
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11648 eval "ac_cv_header_$ac_safe=no"
11652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11653 echo "$ac_t""yes" 1>&6
11654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11655 cat >> confdefs.h <<EOF
11656 #define $ac_tr_hdr 1
11660 echo "$ac_t""no" 1>&6
11664 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11665 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11666 echo "configure:11667: checking if Berkeley DB header compatibility" >&5
11667 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
11671 cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure"
11673 #include "confdefs.h"
11676 # include <db_185.h>
11681 /* this check could be improved */
11682 #ifndef DB_VERSION_MAJOR
11683 # define DB_VERSION_MAJOR 1
11686 #if DB_VERSION_MAJOR == 1
11691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11692 egrep "__db_version_1" >/dev/null 2>&1; then
11694 ol_cv_header_db1=yes
11697 ol_cv_header_db1=no
11703 echo "$ac_t""$ol_cv_header_db1" 1>&6
11705 if test ol_cv_header_db1=yes ; then
11707 if test $ol_cv_lib_db = no ; then
11708 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11709 echo "configure:11710: checking for Berkeley DB link (default)" >&5
11710 if eval "test \"\${ol_cv_db_none+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_none" 1>&6
11765 if test $ol_cv_db_none = yes ; then
11770 if test $ol_cv_lib_db = no ; then
11771 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11772 echo "configure:11773: checking for Berkeley DB link (-ldb)" >&5
11773 if eval "test \"\${ol_cv_db_db+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_db" 1>&6
11828 if test $ol_cv_db_db = yes ; then
11833 if test $ol_cv_lib_db = no ; then
11834 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11835 echo "configure:11836: checking for Berkeley DB link (-ldb3)" >&5
11836 if eval "test \"\${ol_cv_db_db3+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_db3" 1>&6
11891 if test $ol_cv_db_db3 = yes ; then
11896 if test $ol_cv_lib_db = no ; then
11897 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11898 echo "configure:11899: checking for Berkeley DB link (-ldb2)" >&5
11899 if eval "test \"\${ol_cv_db_db2+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_db2" 1>&6
11954 if test $ol_cv_db_db2 = yes ; then
11959 if test $ol_cv_lib_db = no ; then
11960 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11961 echo "configure:11962: checking for Berkeley DB link (-ldb1)" >&5
11962 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11968 LIBS="$ol_DB_LIB $LIBS"
11970 cat > conftest.$ac_ext <<EOF
11971 #line 11972 "configure"
11972 #include "confdefs.h"
11974 #ifdef HAVE_DB_185_H
11975 # include <db_185.h>
11980 #ifndef DB_VERSION_MAJOR
11981 # define DB_VERSION_MAJOR 1
11985 #define NULL ((void*)0)
11990 #if DB_VERSION_MAJOR > 2
11991 db_env_create( NULL, 0 );
11992 #elif DB_VERSION_MAJOR > 1
11993 db_appexit( NULL );
11995 (void) dbopen( NULL, 0, 0, 0, NULL);
12000 if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12015 echo "$ac_t""$ol_cv_db_db1" 1>&6
12017 if test $ol_cv_db_db1 = yes ; then
12023 if test "$ol_cv_lib_db" != no ; then
12024 ol_cv_berkeley_db=yes
12030 ol_cv_berkeley_db=no
12033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12035 echo "configure:12036: checking for $ac_hdr" >&5
12036 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12045 { (eval echo configure:12046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12047 if test -z "$ac_err"; then
12049 eval "ac_cv_header_$ac_safe=yes"
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12055 eval "ac_cv_header_$ac_safe=no"
12059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12060 echo "$ac_t""yes" 1>&6
12061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12062 cat >> confdefs.h <<EOF
12063 #define $ac_tr_hdr 1
12067 echo "$ac_t""no" 1>&6
12071 if test $ac_cv_header_db_h = yes; then
12073 if test $ol_cv_lib_db = no ; then
12074 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12075 echo "configure:12076: checking for Berkeley DB link (default)" >&5
12076 if eval "test \"\${ol_cv_db_none+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_none" 1>&6
12131 if test $ol_cv_db_none = yes ; then
12136 if test $ol_cv_lib_db = no ; then
12137 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12138 echo "configure:12139: checking for Berkeley DB link (-ldb)" >&5
12139 if eval "test \"\${ol_cv_db_db+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_db" 1>&6
12194 if test $ol_cv_db_db = yes ; then
12199 if test $ol_cv_lib_db = no ; then
12200 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12201 echo "configure:12202: checking for Berkeley DB link (-ldb3)" >&5
12202 if eval "test \"\${ol_cv_db_db3+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_db3" 1>&6
12257 if test $ol_cv_db_db3 = yes ; then
12262 if test $ol_cv_lib_db = no ; then
12263 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12264 echo "configure:12265: checking for Berkeley DB link (-ldb2)" >&5
12265 if eval "test \"\${ol_cv_db_db2+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_db2" 1>&6
12320 if test $ol_cv_db_db2 = yes ; then
12325 if test $ol_cv_lib_db = no ; then
12326 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12327 echo "configure:12328: checking for Berkeley DB link (-ldb1)" >&5
12328 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12329 echo $ac_n "(cached) $ac_c" 1>&6
12334 LIBS="$ol_DB_LIB $LIBS"
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12340 #ifdef HAVE_DB_185_H
12341 # include <db_185.h>
12346 #ifndef DB_VERSION_MAJOR
12347 # define DB_VERSION_MAJOR 1
12351 #define NULL ((void*)0)
12356 #if DB_VERSION_MAJOR > 2
12357 db_env_create( NULL, 0 );
12358 #elif DB_VERSION_MAJOR > 1
12359 db_appexit( NULL );
12361 (void) dbopen( NULL, 0, 0, 0, NULL);
12366 if { (eval echo configure:12367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12370 echo "configure: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12381 echo "$ac_t""$ol_cv_db_db1" 1>&6
12383 if test $ol_cv_db_db1 = yes ; then
12389 if test "$ol_cv_lib_db" != no ; then
12390 ol_cv_berkeley_db=yes
12391 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12392 echo "configure:12393: checking for Berkeley DB thread support" >&5
12393 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12394 echo $ac_n "(cached) $ac_c" 1>&6
12398 if test $ol_cv_lib_db != yes ; then
12399 LIBS="$ol_cv_lib_db"
12402 if test "$cross_compiling" = yes; then
12403 ol_cv_berkeley_db_thread=cross
12405 cat > conftest.$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12409 #ifdef HAVE_DB_185_H
12415 #define NULL ((void *)0)
12420 u_int32_t flags = DB_CREATE | DB_THREAD;
12422 #if DB_VERSION_MAJOR > 2
12423 DB_ENV *env = NULL;
12425 rc = db_env_create( &env, 0 );
12428 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12429 rc = env->open( env, NULL, flags, 0 );
12431 rc = env->open( env, NULL, NULL, flags, 0 );
12437 memset( &env, '\0', sizeof(env) );
12439 rc = db_appinit( NULL, NULL, &env, flags );
12442 db_appexit( &env );
12445 #if DB_VERSION_MAJOR > 2
12446 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12447 env->remove( env, NULL, DB_FORCE);
12449 env->remove( env, NULL, NULL, DB_FORCE);
12456 if { (eval echo configure:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12458 ol_cv_berkeley_db_thread=yes
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12463 ol_cv_berkeley_db_thread=no
12471 if test $ol_cv_berkeley_db_thread != no ; then
12472 cat >> confdefs.h <<\EOF
12473 #define HAVE_BERKELEY_DB_THREAD 1
12480 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12486 if test $ol_cv_berkeley_db != no ; then
12487 cat >> confdefs.h <<\EOF
12488 #define HAVE_BERKELEY_DB 1
12492 ol_link_ldbm=berkeley
12493 ol_with_ldbm_api=db
12495 if test $ol_with_ldbm_type = hash ; then
12496 cat >> confdefs.h <<\EOF
12497 #define LDBM_USE_DBHASH 1
12501 cat >> confdefs.h <<\EOF
12502 #define LDBM_USE_DBBTREE 1
12507 if test $ol_cv_lib_db != yes ; then
12508 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12513 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12514 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12515 ol_with_ldbm_api=none
12518 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12519 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12520 echo "configure:12521: checking for MDBM library" >&5
12521 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12525 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12526 echo "configure:12527: checking for mdbm_set_chain" >&5
12527 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char mdbm_set_chain(); below. */
12535 #include <assert.h>
12536 /* Override any gcc2 internal prototype to avoid an error. */
12537 /* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12539 char mdbm_set_chain();
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12550 f = mdbm_set_chain;
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12557 eval "ac_cv_func_mdbm_set_chain=yes"
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12562 eval "ac_cv_func_mdbm_set_chain=no"
12567 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12568 echo "$ac_t""yes" 1>&6
12571 echo "$ac_t""no" 1>&6
12573 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12574 echo "configure:12575: checking for mdbm_set_chain in -lmdbm" >&5
12575 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12576 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12579 ac_save_LIBS="$LIBS"
12580 LIBS="-lmdbm $LIBS"
12581 cat > conftest.$ac_ext <<EOF
12582 #line 12583 "configure"
12583 #include "confdefs.h"
12584 /* Override any gcc2 internal prototype to avoid an error. */
12585 /* We use char because int might match the return type of a gcc2
12586 builtin and then its argument prototype would still apply. */
12587 char mdbm_set_chain();
12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12595 eval "ac_cv_lib_$ac_lib_var=yes"
12597 echo "configure: failed program was:" >&5
12598 cat conftest.$ac_ext >&5
12600 eval "ac_cv_lib_$ac_lib_var=no"
12603 LIBS="$ac_save_LIBS"
12606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12607 echo "$ac_t""yes" 1>&6
12608 ol_cv_lib_mdbm=-lmdbm
12610 echo "$ac_t""no" 1>&6
12621 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12624 for ac_hdr in mdbm.h
12626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12628 echo "configure:12629: checking for $ac_hdr" >&5
12629 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12630 echo $ac_n "(cached) $ac_c" 1>&6
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12634 "configure"
12634 #include "confdefs.h"
12637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12638 { (eval echo configure:12639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12640 if test -z "$ac_err"; then
12642 eval "ac_cv_header_$ac_safe=yes"
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 eval "ac_cv_header_$ac_safe=no"
12652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12653 echo "$ac_t""yes" 1>&6
12654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12655 cat >> confdefs.h <<EOF
12656 #define $ac_tr_hdr 1
12660 echo "$ac_t""no" 1>&6
12664 echo $ac_n "checking for db""... $ac_c" 1>&6
12665 echo "configure:12666: checking for db" >&5
12666 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12667 echo $ac_n "(cached) $ac_c" 1>&6
12670 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12678 echo "$ac_t""$ol_cv_mdbm" 1>&6
12679 if test $ol_cv_mdbm = yes ; then
12680 cat >> confdefs.h <<\EOF
12681 #define HAVE_MDBM 1
12687 if test $ol_cv_mdbm = yes ; then
12689 ol_with_ldbm_api=mdbm
12690 if test $ol_cv_lib_mdbm != yes ; then
12691 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12696 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12697 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12698 echo "configure:12699: checking for GDBM library" >&5
12699 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12700 echo $ac_n "(cached) $ac_c" 1>&6
12703 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12704 echo "configure:12705: checking for gdbm_open" >&5
12705 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12706 echo $ac_n "(cached) $ac_c" 1>&6
12708 cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 /* System header to define __stub macros and hopefully few prototypes,
12712 which can conflict with char gdbm_open(); below. */
12713 #include <assert.h>
12714 /* Override any gcc2 internal prototype to avoid an error. */
12715 /* We use char because int might match the return type of a gcc2
12716 builtin and then its argument prototype would still apply. */
12722 /* The GNU C library defines this for functions which it implements
12723 to always fail with ENOSYS. Some functions are actually named
12724 something starting with __ and the normal name is an alias. */
12725 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12735 eval "ac_cv_func_gdbm_open=yes"
12737 echo "configure: failed program was:" >&5
12738 cat conftest.$ac_ext >&5
12740 eval "ac_cv_func_gdbm_open=no"
12745 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12746 echo "$ac_t""yes" 1>&6
12749 echo "$ac_t""no" 1>&6
12751 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12752 echo "configure:12753: checking for gdbm_open in -lgdbm" >&5
12753 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
12757 ac_save_LIBS="$LIBS"
12758 LIBS="-lgdbm $LIBS"
12759 cat > conftest.$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12762 /* Override any gcc2 internal prototype to avoid an error. */
12763 /* We use char because int might match the return type of a gcc2
12764 builtin and then its argument prototype would still apply. */
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12773 eval "ac_cv_lib_$ac_lib_var=yes"
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12778 eval "ac_cv_lib_$ac_lib_var=no"
12781 LIBS="$ac_save_LIBS"
12784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786 ol_cv_lib_gdbm=-lgdbm
12788 echo "$ac_t""no" 1>&6
12799 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12802 for ac_hdr in gdbm.h
12804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12806 echo "configure:12807: checking for $ac_hdr" >&5
12807 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12808 echo $ac_n "(cached) $ac_c" 1>&6
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12816 { (eval echo configure:12817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12818 if test -z "$ac_err"; then
12820 eval "ac_cv_header_$ac_safe=yes"
12823 echo "configure: failed program was:" >&5
12824 cat conftest.$ac_ext >&5
12826 eval "ac_cv_header_$ac_safe=no"
12830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12831 echo "$ac_t""yes" 1>&6
12832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12833 cat >> confdefs.h <<EOF
12834 #define $ac_tr_hdr 1
12838 echo "$ac_t""no" 1>&6
12842 echo $ac_n "checking for db""... $ac_c" 1>&6
12843 echo "configure:12844: checking for db" >&5
12844 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12848 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12856 echo "$ac_t""$ol_cv_gdbm" 1>&6
12857 if test $ol_cv_gdbm = yes ; then
12858 cat >> confdefs.h <<\EOF
12859 #define HAVE_GDBM 1
12865 if test $ol_cv_gdbm = yes ; then
12867 ol_with_ldbm_api=gdbm
12869 if test $ol_cv_lib_gdbm != yes ; then
12870 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12875 if test $ol_with_ldbm_api = ndbm ; then
12876 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12877 echo "configure:12878: checking for NDBM library" >&5
12878 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12882 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12883 echo "configure:12884: checking for dbm_open" >&5
12884 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12887 cat > conftest.$ac_ext <<EOF
12888 #line 12889 "configure"
12889 #include "confdefs.h"
12890 /* System header to define __stub macros and hopefully few prototypes,
12891 which can conflict with char dbm_open(); below. */
12892 #include <assert.h>
12893 /* Override any gcc2 internal prototype to avoid an error. */
12894 /* We use char because int might match the return type of a gcc2
12895 builtin and then its argument prototype would still apply. */
12901 /* The GNU C library defines this for functions which it implements
12902 to always fail with ENOSYS. Some functions are actually named
12903 something starting with __ and the normal name is an alias. */
12904 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12912 if { (eval echo configure:12913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12914 eval "ac_cv_func_dbm_open=yes"
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12919 eval "ac_cv_func_dbm_open=no"
12924 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12925 echo "$ac_t""yes" 1>&6
12928 echo "$ac_t""no" 1>&6
12930 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12931 echo "configure:12932: checking for dbm_open in -lndbm" >&5
12932 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12933 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12934 echo $ac_n "(cached) $ac_c" 1>&6
12936 ac_save_LIBS="$LIBS"
12937 LIBS="-lndbm $LIBS"
12938 cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12952 eval "ac_cv_lib_$ac_lib_var=yes"
12954 echo "configure: failed program was:" >&5
12955 cat conftest.$ac_ext >&5
12957 eval "ac_cv_lib_$ac_lib_var=no"
12960 LIBS="$ac_save_LIBS"
12963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12964 echo "$ac_t""yes" 1>&6
12965 ol_cv_lib_ndbm=-lndbm
12967 echo "$ac_t""no" 1>&6
12969 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12970 echo "configure:12971: checking for dbm_open in -ldbm" >&5
12971 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12972 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12975 ac_save_LIBS="$LIBS"
12977 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 /* Override any gcc2 internal prototype to avoid an error. */
12981 /* We use char because int might match the return type of a gcc2
12982 builtin and then its argument prototype would still apply. */
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12991 eval "ac_cv_lib_$ac_lib_var=yes"
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12996 eval "ac_cv_lib_$ac_lib_var=no"
12999 LIBS="$ac_save_LIBS"
13002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13003 echo "$ac_t""yes" 1>&6
13004 ol_cv_lib_ndbm=-ldbm
13006 echo "$ac_t""no" 1>&6
13019 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13022 for ac_hdr in ndbm.h
13024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13026 echo "configure:13027: checking for $ac_hdr" >&5
13027 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13028 echo $ac_n "(cached) $ac_c" 1>&6
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13036 { (eval echo configure:13037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13038 if test -z "$ac_err"; then
13040 eval "ac_cv_header_$ac_safe=yes"
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13046 eval "ac_cv_header_$ac_safe=no"
13050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13051 echo "$ac_t""yes" 1>&6
13052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13053 cat >> confdefs.h <<EOF
13054 #define $ac_tr_hdr 1
13058 echo "$ac_t""no" 1>&6
13062 echo $ac_n "checking for db""... $ac_c" 1>&6
13063 echo "configure:13064: checking for db" >&5
13064 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13065 echo $ac_n "(cached) $ac_c" 1>&6
13068 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13076 echo "$ac_t""$ol_cv_ndbm" 1>&6
13077 if test $ol_cv_ndbm = yes ; then
13078 cat >> confdefs.h <<\EOF
13079 #define HAVE_NDBM 1
13085 if test $ol_cv_ndbm = yes ; then
13087 ol_with_ldbm_api=ndbm
13089 if test $ol_cv_lib_ndbm != yes ; then
13090 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13095 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13096 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13097 if test $ol_enable_ldbm = yes ; then
13098 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13101 echo "configure: warning: disabling LDBM" 1>&2
13105 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13106 LINK_BINS_DYNAMIC="yes"
13108 LINK_BINS_DYNAMIC="no"
13111 if test $ol_enable_wrappers != no ; then
13112 for ac_hdr in tcpd.h
13114 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13116 echo "configure:13117: checking for $ac_hdr" >&5
13117 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13118 echo $ac_n "(cached) $ac_c" 1>&6
13120 cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13126 { (eval echo configure:13127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13128 if test -z "$ac_err"; then
13130 eval "ac_cv_header_$ac_safe=yes"
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13136 eval "ac_cv_header_$ac_safe=no"
13140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13141 echo "$ac_t""yes" 1>&6
13142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13143 cat >> confdefs.h <<EOF
13144 #define $ac_tr_hdr 1
13148 echo "$ac_t""no" 1>&6
13153 if test $ac_cv_header_tcpd_h != yes ; then
13156 cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure"
13158 #include "confdefs.h"
13160 int allow_severity = 0;
13161 int deny_severity = 0;
13167 if { (eval echo configure:13168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13171 echo "configure: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13179 if test $have_wrappers = yes ; then
13180 cat >> confdefs.h <<\EOF
13181 #define HAVE_TCPD 1
13186 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13187 echo "configure:13188: checking for main in -lnsl" >&5
13188 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13190 echo $ac_n "(cached) $ac_c" 1>&6
13192 ac_save_LIBS="$LIBS"
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13202 if { (eval echo configure:13203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13204 eval "ac_cv_lib_$ac_lib_var=yes"
13206 echo "configure: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13209 eval "ac_cv_lib_$ac_lib_var=no"
13212 LIBS="$ac_save_LIBS"
13215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13216 echo "$ac_t""yes" 1>&6
13217 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13219 cat >> confdefs.h <<EOF
13220 #define $ac_tr_lib 1
13226 echo "$ac_t""no" 1>&6
13230 echo "configure: warning: could not find -lwrap" 1>&2
13231 if test $ol_enable_wrappers = yes ; then
13232 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13235 echo "configure: warning: disabling wrappers support" 1>&2
13236 ol_enable_wrappers=no
13241 if test $ol_enable_syslog != no ; then
13242 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13243 echo "configure:13244: checking for openlog" >&5
13244 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13245 echo $ac_n "(cached) $ac_c" 1>&6
13247 cat > conftest.$ac_ext <<EOF
13248 #line 13249 "configure"
13249 #include "confdefs.h"
13250 /* System header to define __stub macros and hopefully few prototypes,
13251 which can conflict with char openlog(); below. */
13252 #include <assert.h>
13253 /* Override any gcc2 internal prototype to avoid an error. */
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13261 /* The GNU C library defines this for functions which it implements
13262 to always fail with ENOSYS. Some functions are actually named
13263 something starting with __ and the normal name is an alias. */
13264 #if defined (__stub_openlog) || defined (__stub___openlog)
13272 if { (eval echo configure:13273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13274 eval "ac_cv_func_openlog=yes"
13276 echo "configure: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13279 eval "ac_cv_func_openlog=no"
13284 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13285 echo "$ac_t""yes" 1>&6
13288 echo "$ac_t""no" 1>&6
13291 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13292 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13294 ol_enable_syslog=$ac_cv_func_openlog
13299 if test $ol_enable_sql != no ; then
13300 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13301 echo "configure:13302: checking for SQLDriverConnect in -liodbc" >&5
13302 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13303 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13306 ac_save_LIBS="$LIBS"
13307 LIBS="-liodbc $LIBS"
13308 cat > conftest.$ac_ext <<EOF
13309 #line 13310 "configure"
13310 #include "confdefs.h"
13311 /* Override any gcc2 internal prototype to avoid an error. */
13312 /* We use char because int might match the return type of a gcc2
13313 builtin and then its argument prototype would still apply. */
13314 char SQLDriverConnect();
13320 if { (eval echo configure:13321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13322 eval "ac_cv_lib_$ac_lib_var=yes"
13324 echo "configure: failed program was:" >&5
13325 cat conftest.$ac_ext >&5
13327 eval "ac_cv_lib_$ac_lib_var=no"
13330 LIBS="$ac_save_LIBS"
13333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13334 echo "$ac_t""yes" 1>&6
13337 echo "$ac_t""no" 1>&6
13341 if test $have_iodbc = yes ; then
13342 ol_link_sql="-liodbc"
13344 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13345 echo "configure:13346: checking for SQLDriverConnect in -lodbc" >&5
13346 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13347 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13350 ac_save_LIBS="$LIBS"
13351 LIBS="-lodbc $LIBS"
13352 cat > conftest.$ac_ext <<EOF
13353 #line 13354 "configure"
13354 #include "confdefs.h"
13355 /* Override any gcc2 internal prototype to avoid an error. */
13356 /* We use char because int might match the return type of a gcc2
13357 builtin and then its argument prototype would still apply. */
13358 char SQLDriverConnect();
13364 if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13366 eval "ac_cv_lib_$ac_lib_var=yes"
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13371 eval "ac_cv_lib_$ac_lib_var=no"
13374 LIBS="$ac_save_LIBS"
13377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13378 echo "$ac_t""yes" 1>&6
13381 echo "$ac_t""no" 1>&6
13385 if test $have_odbc = yes ; then
13386 ol_link_sql="-lodbc"
13390 if test $ol_link_sql != no ; then
13391 SLAPD_SQL_LIBS="$ol_link_sql"
13393 elif test $ol_enable_sql != auto ; then
13394 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13398 if test $ol_enable_tcl != no ; then
13399 for ac_hdr in tcl.h
13401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13403 echo "configure:13404: checking for $ac_hdr" >&5
13404 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13405 echo $ac_n "(cached) $ac_c" 1>&6
13407 cat > conftest.$ac_ext <<EOF
13408 #line 13409 "configure"
13409 #include "confdefs.h"
13412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13413 { (eval echo configure:13414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13415 if test -z "$ac_err"; then
13417 eval "ac_cv_header_$ac_safe=yes"
13420 echo "configure: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13423 eval "ac_cv_header_$ac_safe=no"
13427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13430 cat >> confdefs.h <<EOF
13431 #define $ac_tr_hdr 1
13435 echo "$ac_t""no" 1>&6
13440 if test $ac_cv_header_tcl_h != yes ; then
13443 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13444 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13445 echo "configure:13446: checking for main in -l$lib" >&5
13446 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13448 echo $ac_n "(cached) $ac_c" 1>&6
13450 ac_save_LIBS="$LIBS"
13451 LIBS="-l$lib $LIBS"
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13460 if { (eval echo configure:13461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13462 eval "ac_cv_lib_$ac_lib_var=yes"
13464 echo "configure: failed program was:" >&5
13465 cat conftest.$ac_ext >&5
13467 eval "ac_cv_lib_$ac_lib_var=no"
13470 LIBS="$ac_save_LIBS"
13473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13474 echo "$ac_t""yes" 1>&6
13476 if test x"$ol_with_tcl_module" = "xstatic" ; then
13477 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13479 MOD_TCL_LIB="-l${lib}"
13482 echo "$ac_t""no" 1>&6
13489 if test $have_tcl != yes ; then
13490 echo "configure: warning: could not find -ltcl" 1>&2
13491 if test $ol_enable_tcl = yes ; then
13492 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13500 for ac_hdr in termcap.h ncurses.h
13502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13504 echo "configure:13505: checking for $ac_hdr" >&5
13505 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13506 echo $ac_n "(cached) $ac_c" 1>&6
13508 cat > conftest.$ac_ext <<EOF
13509 #line 13510 "configure"
13510 #include "confdefs.h"
13513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13514 { (eval echo configure:13515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13516 if test -z "$ac_err"; then
13518 eval "ac_cv_header_$ac_safe=yes"
13521 echo "configure: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13524 eval "ac_cv_header_$ac_safe=no"
13528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13529 echo "$ac_t""yes" 1>&6
13530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13531 cat >> confdefs.h <<EOF
13532 #define $ac_tr_hdr 1
13536 echo "$ac_t""no" 1>&6
13541 if test $ol_link_termcap = no ; then
13542 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13543 echo "configure:13544: checking for tputs in -ltermcap" >&5
13544 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13548 ac_save_LIBS="$LIBS"
13549 LIBS="-ltermcap $LIBS"
13550 cat > conftest.$ac_ext <<EOF
13551 #line 13552 "configure"
13552 #include "confdefs.h"
13553 /* Override any gcc2 internal prototype to avoid an error. */
13554 /* We use char because int might match the return type of a gcc2
13555 builtin and then its argument prototype would still apply. */
13562 if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13564 eval "ac_cv_lib_$ac_lib_var=yes"
13566 echo "configure: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13569 eval "ac_cv_lib_$ac_lib_var=no"
13572 LIBS="$ac_save_LIBS"
13575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13576 echo "$ac_t""yes" 1>&6
13579 echo "$ac_t""no" 1>&6
13583 if test $have_termcap = yes ; then
13584 cat >> confdefs.h <<\EOF
13585 #define HAVE_TERMCAP 1
13588 ol_link_termcap=yes
13589 TERMCAP_LIBS=-ltermcap
13593 if test $ol_link_termcap = no ; then
13594 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13595 echo "configure:13596: checking for initscr in -lncurses" >&5
13596 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13597 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13598 echo $ac_n "(cached) $ac_c" 1>&6
13600 ac_save_LIBS="$LIBS"
13601 LIBS="-lncurses $LIBS"
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13605 /* Override any gcc2 internal prototype to avoid an error. */
13606 /* We use char because int might match the return type of a gcc2
13607 builtin and then its argument prototype would still apply. */
13614 if { (eval echo configure:13615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13616 eval "ac_cv_lib_$ac_lib_var=yes"
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13621 eval "ac_cv_lib_$ac_lib_var=no"
13624 LIBS="$ac_save_LIBS"
13627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13628 echo "$ac_t""yes" 1>&6
13631 echo "$ac_t""no" 1>&6
13635 if test $have_ncurses = yes ; then
13636 cat >> confdefs.h <<\EOF
13637 #define HAVE_NCURSES 1
13640 ol_link_termcap=yes
13641 TERMCAP_LIBS=-lncurses
13645 if test $ol_link_termcap = no ; then
13646 cat >> confdefs.h <<\EOF
13647 #define NO_TERMCAP 1
13655 if test $ol_with_cyrus_sasl != no ; then
13656 for ac_hdr in sasl.h
13658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13660 echo "configure:13661: checking for $ac_hdr" >&5
13661 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13662 echo $ac_n "(cached) $ac_c" 1>&6
13664 cat > conftest.$ac_ext <<EOF
13665 #line 13666 "configure"
13666 #include "confdefs.h"
13669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13670 { (eval echo configure:13671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13672 if test -z "$ac_err"; then
13674 eval "ac_cv_header_$ac_safe=yes"
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13680 eval "ac_cv_header_$ac_safe=no"
13684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13685 echo "$ac_t""yes" 1>&6
13686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13687 cat >> confdefs.h <<EOF
13688 #define $ac_tr_hdr 1
13692 echo "$ac_t""no" 1>&6
13697 if test $ac_cv_header_sasl_h = yes ; then
13698 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13699 echo "configure:13700: checking for sasl_client_init in -lsasl" >&5
13700 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13701 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13702 echo $ac_n "(cached) $ac_c" 1>&6
13704 ac_save_LIBS="$LIBS"
13705 LIBS="-lsasl $LIBS"
13706 cat > conftest.$ac_ext <<EOF
13707 #line 13708 "configure"
13708 #include "confdefs.h"
13709 /* Override any gcc2 internal prototype to avoid an error. */
13710 /* We use char because int might match the return type of a gcc2
13711 builtin and then its argument prototype would still apply. */
13712 char sasl_client_init();
13718 if { (eval echo configure:13719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13720 eval "ac_cv_lib_$ac_lib_var=yes"
13722 echo "configure: failed program was:" >&5
13723 cat conftest.$ac_ext >&5
13725 eval "ac_cv_lib_$ac_lib_var=no"
13728 LIBS="$ac_save_LIBS"
13731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13732 echo "$ac_t""yes" 1>&6
13733 have_cyrus_sasl=yes
13735 echo "$ac_t""no" 1>&6
13740 if test $have_cyrus_sasl != no ; then
13742 cat >> confdefs.h <<\EOF
13743 #define HAVE_CYRUS_SASL 1
13750 if test $ol_link_sasl = no ; then
13751 if test $ol_with_cyrus_sasl != auto ; then
13752 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13754 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13755 echo "configure: warning: SASL authentication not supported!" 1>&2
13756 if test $ol_link_tls = no ; then
13757 echo "configure: warning: Strong authentication not supported!" 1>&2
13761 elif test $ol_enable_spasswd != no ; then
13762 ol_link_spasswd=yes
13766 echo "configure: warning: SASL authentication not supported!" 1>&2
13767 if test $ol_link_tls = no ; then
13768 echo "configure: warning: Strong authentication not supported!" 1>&2
13772 if test $cross_compiling != yes ; then
13774 if test -r /dev/urandom ; then
13775 dev="/dev/urandom";
13776 elif test -r /idev/urandom ; then
13777 dev="/idev/urandom";
13778 elif test -r /dev/srandom ; then
13779 dev="/dev/srandom";
13780 elif test -r /dev/random ; then
13782 elif test -r /idev/random ; then
13783 dev="/idev/random";
13786 if test $dev != no ; then
13787 cat >> confdefs.h <<EOF
13788 #define URANDOM_DEVICE "$dev"
13795 if test $ol_with_fetch != no ; then
13797 LIBS="-lfetch -lcom_err $LIBS"
13798 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13799 echo "configure:13800: checking fetch(3) library" >&5
13800 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13801 echo $ac_n "(cached) $ac_c" 1>&6
13804 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure"
13806 #include "confdefs.h"
13808 #include <sys/param.h>
13812 struct url *u = fetchParseURL("file:///");
13815 if { (eval echo configure:13816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13817 ol_cv_lib_fetch=yes
13819 echo "configure: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13827 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13829 if test $ol_cv_lib_fetch != no ; then
13830 ol_link_fetch="-lfetch -lcom_err"
13831 cat >> confdefs.h <<\EOF
13832 #define HAVE_FETCH 1
13838 if test $ol_cv_lib_fetch != no ; then
13839 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13840 ol_link_fetch=freebsd
13842 elif test $ol_with_fetch != auto ; then
13843 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13847 ol_link_readline=no
13848 if test $ol_with_readline != no ; then
13849 for ac_hdr in readline/readline.h readline/history.h
13851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13853 echo "configure:13854: checking for $ac_hdr" >&5
13854 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13855 echo $ac_n "(cached) $ac_c" 1>&6
13857 cat > conftest.$ac_ext <<EOF
13858 #line 13859 "configure"
13859 #include "confdefs.h"
13862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13863 { (eval echo configure:13864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13865 if test -z "$ac_err"; then
13867 eval "ac_cv_header_$ac_safe=yes"
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13873 eval "ac_cv_header_$ac_safe=no"
13877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13880 cat >> confdefs.h <<EOF
13881 #define $ac_tr_hdr 1
13885 echo "$ac_t""no" 1>&6
13890 if test $ac_cv_header_readline_readline_h = yes ; then
13892 LIBS="$TERMCAP_LIBS $LIBS"
13893 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13894 echo "configure:13895: checking for readline in -lreadline" >&5
13895 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13899 ac_save_LIBS="$LIBS"
13900 LIBS="-lreadline $LIBS"
13901 cat > conftest.$ac_ext <<EOF
13902 #line 13903 "configure"
13903 #include "confdefs.h"
13904 /* Override any gcc2 internal prototype to avoid an error. */
13905 /* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13913 if { (eval echo configure:13914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13915 eval "ac_cv_lib_$ac_lib_var=yes"
13917 echo "configure: failed program was:" >&5
13918 cat conftest.$ac_ext >&5
13920 eval "ac_cv_lib_$ac_lib_var=no"
13923 LIBS="$ac_save_LIBS"
13926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13927 echo "$ac_t""yes" 1>&6
13930 echo "$ac_t""no" 1>&6
13936 if test $have_readline = yes ; then
13937 ol_with_readline=found
13938 ol_link_readline=yes
13940 READLINE_LIBS="-lreadline"
13945 if test $ol_link_readline = yes ; then
13946 cat >> confdefs.h <<\EOF
13947 #define HAVE_READLINE 1
13953 if test $ol_enable_crypt != no ; then
13954 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13955 echo "configure:13956: checking for crypt" >&5
13956 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 /* System header to define __stub macros and hopefully few prototypes,
13963 which can conflict with char crypt(); below. */
13964 #include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_crypt) || defined (__stub___crypt)
13984 if { (eval echo configure:13985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13986 eval "ac_cv_func_crypt=yes"
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13991 eval "ac_cv_func_crypt=no"
13996 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
14000 echo "$ac_t""no" 1>&6
14002 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14003 echo "configure:14004: checking for crypt in -lcrypt" >&5
14004 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14006 echo $ac_n "(cached) $ac_c" 1>&6
14008 ac_save_LIBS="$LIBS"
14009 LIBS="-lcrypt $LIBS"
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14022 if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024 eval "ac_cv_lib_$ac_lib_var=yes"
14026 echo "configure: failed program was:" >&5
14027 cat conftest.$ac_ext >&5
14029 eval "ac_cv_lib_$ac_lib_var=no"
14032 LIBS="$ac_save_LIBS"
14035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14036 echo "$ac_t""yes" 1>&6
14037 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14040 echo "$ac_t""no" 1>&6
14047 if test $have_crypt = yes ; then
14048 cat >> confdefs.h <<\EOF
14049 #define HAVE_CRYPT 1
14053 echo "configure: warning: could not find crypt" 1>&2
14054 if test $ol_enable_crypt = yes ; then
14055 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14058 echo "configure: warning: disabling crypt support" 1>&2
14063 if test $ol_enable_proctitle != no ; then
14064 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14065 echo "configure:14066: checking for setproctitle" >&5
14066 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
14069 cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 /* System header to define __stub macros and hopefully few prototypes,
14073 which can conflict with char setproctitle(); below. */
14074 #include <assert.h>
14075 /* Override any gcc2 internal prototype to avoid an error. */
14076 /* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */
14078 char setproctitle();
14083 /* The GNU C library defines this for functions which it implements
14084 to always fail with ENOSYS. Some functions are actually named
14085 something starting with __ and the normal name is an alias. */
14086 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14094 if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14096 eval "ac_cv_func_setproctitle=yes"
14098 echo "configure: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14101 eval "ac_cv_func_setproctitle=no"
14106 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14107 echo "$ac_t""yes" 1>&6
14108 have_setproctitle=yes
14110 echo "$ac_t""no" 1>&6
14112 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14113 echo "configure:14114: checking for setproctitle in -lutil" >&5
14114 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14115 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14116 echo $ac_n "(cached) $ac_c" 1>&6
14118 ac_save_LIBS="$LIBS"
14119 LIBS="-lutil $LIBS"
14120 cat > conftest.$ac_ext <<EOF
14121 #line 14122 "configure"
14122 #include "confdefs.h"
14123 /* Override any gcc2 internal prototype to avoid an error. */
14124 /* We use char because int might match the return type of a gcc2
14125 builtin and then its argument prototype would still apply. */
14126 char setproctitle();
14132 if { (eval echo configure:14133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14134 eval "ac_cv_lib_$ac_lib_var=yes"
14136 echo "configure: failed program was:" >&5
14137 cat conftest.$ac_ext >&5
14139 eval "ac_cv_lib_$ac_lib_var=no"
14142 LIBS="$ac_save_LIBS"
14145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14146 echo "$ac_t""yes" 1>&6
14147 have_setproctitle=yes
14148 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14150 echo "$ac_t""no" 1>&6
14151 have_setproctitle=no
14152 LIBOBJS="$LIBOBJS setproctitle.o"
14153 LIBSRCS="$LIBSRCS setproctitle.c"
14159 if test $have_setproctitle = yes ; then
14160 cat >> confdefs.h <<\EOF
14161 #define HAVE_SETPROCTITLE 1
14167 if test $ol_enable_slp != no ; then
14168 for ac_hdr in slp.h
14170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14172 echo "configure:14173: checking for $ac_hdr" >&5
14173 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14174 echo $ac_n "(cached) $ac_c" 1>&6
14176 cat > conftest.$ac_ext <<EOF
14177 #line 14178 "configure"
14178 #include "confdefs.h"
14181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14182 { (eval echo configure:14183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14184 if test -z "$ac_err"; then
14186 eval "ac_cv_header_$ac_safe=yes"
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14192 eval "ac_cv_header_$ac_safe=no"
14196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14197 echo "$ac_t""yes" 1>&6
14198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14199 cat >> confdefs.h <<EOF
14200 #define $ac_tr_hdr 1
14204 echo "$ac_t""no" 1>&6
14209 if test $ac_cv_header_slp_h = yes ; then
14210 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
14211 echo "configure:14212: checking for SLPOpen in -lslp" >&5
14212 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
14213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14214 echo $ac_n "(cached) $ac_c" 1>&6
14216 ac_save_LIBS="$LIBS"
14218 cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 /* Override any gcc2 internal prototype to avoid an error. */
14222 /* We use char because int might match the return type of a gcc2
14223 builtin and then its argument prototype would still apply. */
14230 if { (eval echo configure:14231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14232 eval "ac_cv_lib_$ac_lib_var=yes"
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14237 eval "ac_cv_lib_$ac_lib_var=no"
14240 LIBS="$ac_save_LIBS"
14243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14244 echo "$ac_t""yes" 1>&6
14247 echo "$ac_t""no" 1>&6
14251 if test $have_slp = yes ; then
14252 cat >> confdefs.h <<\EOF
14256 SLAPD_SLP_LIBS=-lslp
14259 elif test $ol_enable_slp = yes ; then
14260 { echo "configure: error: SLP not found" 1>&2; exit 1; }
14264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14265 echo "configure:14266: checking for ANSI C header files" >&5
14266 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14267 echo $ac_n "(cached) $ac_c" 1>&6
14269 cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 #include <stdlib.h>
14273 #include <stdarg.h>
14274 #include <string.h>
14277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14278 { (eval echo configure:14279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14280 if test -z "$ac_err"; then
14282 ac_cv_header_stdc=yes
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14288 ac_cv_header_stdc=no
14292 if test $ac_cv_header_stdc = yes; then
14293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 #include <string.h>
14299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14300 egrep "memchr" >/dev/null 2>&1; then
14304 ac_cv_header_stdc=no
14310 if test $ac_cv_header_stdc = yes; then
14311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 #include <stdlib.h>
14317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14318 egrep "free" >/dev/null 2>&1; then
14322 ac_cv_header_stdc=no
14328 if test $ac_cv_header_stdc = yes; then
14329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14330 if test "$cross_compiling" = yes; then
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14337 #if ((' ' & 0x0FF) == 0x020)
14338 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14339 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14341 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14342 || ('j' <= (c) && (c) <= 'r') \
14343 || ('s' <= (c) && (c) <= 'z'))
14344 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14347 int main () { int i; for (i = 0; i < 256; i++)
14348 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14352 if { (eval echo configure:14353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14359 ac_cv_header_stdc=no
14367 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14368 if test $ac_cv_header_stdc = yes; then
14369 cat >> confdefs.h <<\EOF
14370 #define STDC_HEADERS 1
14375 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14376 echo "configure:14377: checking for mode_t" >&5
14377 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14378 echo $ac_n "(cached) $ac_c" 1>&6
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 #include <sys/types.h>
14385 #include <stdlib.h>
14386 #include <stddef.h>
14390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14391 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14393 eval "ac_cv_type_mode_t=yes"
14396 eval "ac_cv_type_mode_t=no"
14401 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14402 echo "$ac_t""yes" 1>&6
14404 echo "$ac_t""no" 1>&6
14405 cat >> confdefs.h <<EOF
14411 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14412 echo "configure:14413: checking for off_t" >&5
14413 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14416 cat > conftest.$ac_ext <<EOF
14417 #line 14418 "configure"
14418 #include "confdefs.h"
14419 #include <sys/types.h>
14421 #include <stdlib.h>
14422 #include <stddef.h>
14426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14427 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14429 eval "ac_cv_type_off_t=yes"
14432 eval "ac_cv_type_off_t=no"
14437 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14438 echo "$ac_t""yes" 1>&6
14440 echo "$ac_t""no" 1>&6
14441 cat >> confdefs.h <<EOF
14447 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14448 echo "configure:14449: checking for pid_t" >&5
14449 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14450 echo $ac_n "(cached) $ac_c" 1>&6
14452 cat > conftest.$ac_ext <<EOF
14453 #line 14454 "configure"
14454 #include "confdefs.h"
14455 #include <sys/types.h>
14457 #include <stdlib.h>
14458 #include <stddef.h>
14462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14463 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14465 eval "ac_cv_type_pid_t=yes"
14468 eval "ac_cv_type_pid_t=no"
14473 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14474 echo "$ac_t""yes" 1>&6
14476 echo "$ac_t""no" 1>&6
14477 cat >> confdefs.h <<EOF
14483 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14484 echo "configure:14485: checking for ptrdiff_t" >&5
14485 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14486 echo $ac_n "(cached) $ac_c" 1>&6
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14491 #include <stddef.h>
14496 if { (eval echo configure:14497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14498 am_cv_type_ptrdiff_t=yes
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14503 am_cv_type_ptrdiff_t=no
14508 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14509 if test $am_cv_type_ptrdiff_t = yes; then
14510 cat >> confdefs.h <<\EOF
14511 #define HAVE_PTRDIFF_T 1
14516 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14517 echo "configure:14518: checking return type of signal handlers" >&5
14518 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14519 echo $ac_n "(cached) $ac_c" 1>&6
14521 cat > conftest.$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14524 #include <sys/types.h>
14525 #include <signal.h>
14530 extern "C" void (*signal (int, void (*)(int)))(int);
14532 void (*signal ()) ();
14539 if { (eval echo configure:14540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14541 ac_cv_type_signal=void
14543 echo "configure: failed program was:" >&5
14544 cat conftest.$ac_ext >&5
14546 ac_cv_type_signal=int
14551 echo "$ac_t""$ac_cv_type_signal" 1>&6
14552 cat >> confdefs.h <<EOF
14553 #define RETSIGTYPE $ac_cv_type_signal
14557 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14558 echo "configure:14559: checking for size_t" >&5
14559 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14560 echo $ac_n "(cached) $ac_c" 1>&6
14562 cat > conftest.$ac_ext <<EOF
14563 #line 14564 "configure"
14564 #include "confdefs.h"
14565 #include <sys/types.h>
14567 #include <stdlib.h>
14568 #include <stddef.h>
14572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14573 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14575 eval "ac_cv_type_size_t=yes"
14578 eval "ac_cv_type_size_t=no"
14583 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14584 echo "$ac_t""yes" 1>&6
14586 echo "$ac_t""no" 1>&6
14587 cat >> confdefs.h <<EOF
14588 #define size_t unsigned
14594 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14595 echo "configure:14596: checking for ssize_t" >&5
14596 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14597 echo $ac_n "(cached) $ac_c" 1>&6
14599 cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 #include <sys/types.h>
14604 #include <stdlib.h>
14605 #include <stddef.h>
14609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14610 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14612 eval "ac_cv_type_ssize_t=yes"
14615 eval "ac_cv_type_ssize_t=no"
14620 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14621 echo "$ac_t""yes" 1>&6
14623 echo "$ac_t""no" 1>&6
14624 cat >> confdefs.h <<EOF
14625 #define ssize_t signed int
14630 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14631 echo "configure:14632: checking for caddr_t" >&5
14632 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14633 echo $ac_n "(cached) $ac_c" 1>&6
14635 cat > conftest.$ac_ext <<EOF
14636 #line 14637 "configure"
14637 #include "confdefs.h"
14638 #include <sys/types.h>
14640 #include <stdlib.h>
14641 #include <stddef.h>
14645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14646 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14648 eval "ac_cv_type_caddr_t=yes"
14651 eval "ac_cv_type_caddr_t=no"
14656 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14657 echo "$ac_t""yes" 1>&6
14659 echo "$ac_t""no" 1>&6
14660 cat >> confdefs.h <<EOF
14661 #define caddr_t char *
14667 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14668 echo "configure:14669: checking for socklen_t" >&5
14669 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14670 echo $ac_n "(cached) $ac_c" 1>&6
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14676 #ifdef HAVE_SYS_TYPES_H
14677 #include <sys/types.h>
14679 #ifdef HAVE_SYS_SOCKET_H
14680 #include <sys/socket.h>
14687 if { (eval echo configure:14688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14689 ol_cv_type_socklen_t=yes
14691 echo "configure: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14694 ol_cv_type_socklen_t=no
14699 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14700 if test $ol_cv_type_socklen_t = no; then
14701 cat >> confdefs.h <<\EOF
14702 #define socklen_t int
14707 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14708 echo "configure:14709: checking for member st_blksize in aggregate type struct stat" >&5
14709 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14710 echo $ac_n "(cached) $ac_c" 1>&6
14712 cat > conftest.$ac_ext <<EOF
14713 #line 14714 "configure"
14714 #include "confdefs.h"
14715 #include <sys/types.h>
14716 #include <sys/stat.h>
14718 struct stat foo; foo.st_blksize;
14721 if { (eval echo configure:14722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14723 ac_cv_c_struct_member_st_blksize=yes
14725 echo "configure: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14728 ac_cv_c_struct_member_st_blksize=no
14733 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14734 st_blksize="$ac_cv_c_struct_member_st_blksize"
14735 if test $ac_cv_c_struct_member_st_blksize = yes; then
14736 cat >> confdefs.h <<\EOF
14737 #define HAVE_ST_BLKSIZE 1
14742 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14743 echo "configure:14744: checking whether time.h and sys/time.h may both be included" >&5
14744 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14745 echo $ac_n "(cached) $ac_c" 1>&6
14747 cat > conftest.$ac_ext <<EOF
14748 #line 14749 "configure"
14749 #include "confdefs.h"
14750 #include <sys/types.h>
14751 #include <sys/time.h>
14757 if { (eval echo configure:14758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14759 ac_cv_header_time=yes
14761 echo "configure: failed program was:" >&5
14762 cat conftest.$ac_ext >&5
14764 ac_cv_header_time=no
14769 echo "$ac_t""$ac_cv_header_time" 1>&6
14770 if test $ac_cv_header_time = yes; then
14771 cat >> confdefs.h <<\EOF
14772 #define TIME_WITH_SYS_TIME 1
14777 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14778 echo "configure:14779: checking whether struct tm is in sys/time.h or time.h" >&5
14779 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14780 echo $ac_n "(cached) $ac_c" 1>&6
14782 cat > conftest.$ac_ext <<EOF
14783 #line 14784 "configure"
14784 #include "confdefs.h"
14785 #include <sys/types.h>
14788 struct tm *tp; tp->tm_sec;
14791 if { (eval echo configure:14792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14793 ac_cv_struct_tm=time.h
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14798 ac_cv_struct_tm=sys/time.h
14803 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14804 if test $ac_cv_struct_tm = sys/time.h; then
14805 cat >> confdefs.h <<\EOF
14806 #define TM_IN_SYS_TIME 1
14811 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14812 echo "configure:14813: checking for uid_t in sys/types.h" >&5
14813 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14814 echo $ac_n "(cached) $ac_c" 1>&6
14816 cat > conftest.$ac_ext <<EOF
14817 #line 14818 "configure"
14818 #include "confdefs.h"
14819 #include <sys/types.h>
14821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14822 egrep "uid_t" >/dev/null 2>&1; then
14824 ac_cv_type_uid_t=yes
14827 ac_cv_type_uid_t=no
14833 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14834 if test $ac_cv_type_uid_t = no; then
14835 cat >> confdefs.h <<\EOF
14839 cat >> confdefs.h <<\EOF
14845 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14846 echo "configure:14847: checking for sig_atomic_t" >&5
14847 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14848 echo $ac_n "(cached) $ac_c" 1>&6
14850 cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure"
14852 #include "confdefs.h"
14853 #include <signal.h>
14855 sig_atomic_t atomic;
14858 if { (eval echo configure:14859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14860 ol_cv_type_sig_atomic_t=yes
14862 echo "configure: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14865 ol_cv_type_sig_atomic_t=no
14870 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14871 if test $ol_cv_type_sig_atomic_t = no; then
14872 cat >> confdefs.h <<\EOF
14873 #define sig_atomic_t int
14880 # test for pw_gecos in struct passwd
14881 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14882 echo "configure:14883: checking struct passwd for pw_gecos" >&5
14883 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14884 echo $ac_n "(cached) $ac_c" 1>&6
14887 cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14894 pwd.pw_gecos = pwd.pw_name;
14898 if { (eval echo configure:14899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14900 ol_cv_struct_passwd_pw_gecos=yes
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14905 ol_cv_struct_passwd_pw_gecos=no
14910 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14911 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14912 cat >> confdefs.h <<\EOF
14913 #define HAVE_PW_GECOS 1
14918 # test for pw_passwd in struct passwd
14919 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14920 echo "configure:14921: checking struct passwd for pw_passwd" >&5
14921 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14922 echo $ac_n "(cached) $ac_c" 1>&6
14925 cat > conftest.$ac_ext <<EOF
14926 #line 14927 "configure"
14927 #include "confdefs.h"
14932 pwd.pw_passwd = pwd.pw_name;
14936 if { (eval echo configure:14937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14938 ol_cv_struct_passwd_pw_passwd=yes
14940 echo "configure: failed program was:" >&5
14941 cat conftest.$ac_ext >&5
14943 ol_cv_struct_passwd_pw_passwd=no
14948 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14949 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14950 cat >> confdefs.h <<\EOF
14951 #define HAVE_PW_PASSWD 1
14957 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14958 echo "configure:14959: checking if toupper() requires islower()" >&5
14959 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14960 echo $ac_n "(cached) $ac_c" 1>&6
14963 if test "$cross_compiling" = yes; then
14964 ol_cv_c_upper_lower=safe
14966 cat > conftest.$ac_ext <<EOF
14967 #line 14968 "configure"
14968 #include "confdefs.h"
14973 if ('C' == toupper('C'))
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14981 ol_cv_c_upper_lower=no
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14986 ol_cv_c_upper_lower=yes
14993 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14994 if test $ol_cv_c_upper_lower != no ; then
14995 cat >> confdefs.h <<\EOF
14996 #define C_UPPER_LOWER 1
15001 echo $ac_n "checking for working const""... $ac_c" 1>&6
15002 echo "configure:15003: checking for working const" >&5
15003 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15004 echo $ac_n "(cached) $ac_c" 1>&6
15006 cat > conftest.$ac_ext <<EOF
15007 #line 15008 "configure"
15008 #include "confdefs.h"
15012 /* Ultrix mips cc rejects this. */
15013 typedef int charset[2]; const charset x;
15014 /* SunOS 4.1.1 cc rejects this. */
15015 char const *const *ccp;
15017 /* NEC SVR4.0.2 mips cc rejects this. */
15018 struct point {int x, y;};
15019 static struct point const zero = {0,0};
15020 /* AIX XL C 1.02.0.0 rejects this.
15021 It does not let you subtract one const X* pointer from another in an arm
15022 of an if-expression whose if-part is not a constant expression */
15023 const char *g = "string";
15024 ccp = &g + (g ? g-g : 0);
15025 /* HPUX 7.0 cc rejects these. */
15028 ccp = (char const *const *) p;
15029 { /* SCO 3.2v4 cc rejects this. */
15031 char const *s = 0 ? (char *) 0 : (char const *) 0;
15035 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15036 int x[] = {25, 17};
15037 const int *foo = &x[0];
15040 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15041 typedef const int *iptr;
15045 { /* AIX XL C 1.02.0.0 rejects this saying
15046 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15047 struct s { int j; const int *ap[3]; };
15048 struct s *b; b->j = 5;
15050 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15051 const int foo = 10;
15056 if { (eval echo configure:15057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15068 echo "$ac_t""$ac_cv_c_const" 1>&6
15069 if test $ac_cv_c_const = no; then
15070 cat >> confdefs.h <<\EOF
15076 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15077 echo "configure:15078: checking if compiler understands volatile" >&5
15078 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15081 cat > conftest.$ac_ext <<EOF
15082 #line 15083 "configure"
15083 #include "confdefs.h"
15086 volatile int a; int * volatile b = x ? &y : &z;
15087 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15091 if { (eval echo configure:15092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15093 ol_cv_c_volatile=yes
15095 echo "configure: failed program was:" >&5
15096 cat conftest.$ac_ext >&5
15098 ol_cv_c_volatile=no
15103 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15104 if test $ol_cv_c_volatile = yes; then
15107 cat >> confdefs.h <<\EOF
15114 if test $cross_compiling = yes ; then
15115 cat >> confdefs.h <<\EOF
15116 #define CROSS_COMPILING 1
15120 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15121 echo "configure:15122: checking whether byte ordering is bigendian" >&5
15122 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15123 echo $ac_n "(cached) $ac_c" 1>&6
15125 ac_cv_c_bigendian=unknown
15126 # See if sys/param.h defines the BYTE_ORDER macro.
15127 cat > conftest.$ac_ext <<EOF
15128 #line 15129 "configure"
15129 #include "confdefs.h"
15130 #include <sys/types.h>
15131 #include <sys/param.h>
15134 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15135 bogus endian macros
15139 if { (eval echo configure:15140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15141 # It does; now see whether it defined to BIG_ENDIAN or not.
15142 cat > conftest.$ac_ext <<EOF
15143 #line 15144 "configure"
15144 #include "confdefs.h"
15145 #include <sys/types.h>
15146 #include <sys/param.h>
15149 #if BYTE_ORDER != BIG_ENDIAN
15154 if { (eval echo configure:15155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15156 ac_cv_c_bigendian=yes
15158 echo "configure: failed program was:" >&5
15159 cat conftest.$ac_ext >&5
15161 ac_cv_c_bigendian=no
15165 echo "configure: failed program was:" >&5
15166 cat conftest.$ac_ext >&5
15169 if test $ac_cv_c_bigendian = unknown; then
15170 if test "$cross_compiling" = yes; then
15171 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15177 /* Are we little or big endian? From Harbison&Steele. */
15181 char c[sizeof (long)];
15184 exit (u.c[sizeof (long) - 1] == 1);
15187 if { (eval echo configure:15188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15189 ac_cv_c_bigendian=no
15191 echo "configure: failed program was:" >&5
15192 cat conftest.$ac_ext >&5
15194 ac_cv_c_bigendian=yes
15202 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15203 if test $ac_cv_c_bigendian = yes; then
15204 cat >> confdefs.h <<\EOF
15205 #define WORDS_BIGENDIAN 1
15212 echo $ac_n "checking size of short""... $ac_c" 1>&6
15213 echo "configure:15214: checking size of short" >&5
15214 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15215 echo $ac_n "(cached) $ac_c" 1>&6
15217 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15218 cat > conftest.$ac_ext <<EOF
15219 #line 15220 "configure"
15220 #include "confdefs.h"
15221 #include "confdefs.h"
15222 #include <sys/types.h>
15226 switch (0) case 0: case (sizeof (short) == $ac_size):;
15229 if { (eval echo configure:15230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15231 ac_cv_sizeof_short=$ac_size
15233 echo "configure: failed program was:" >&5
15234 cat conftest.$ac_ext >&5
15237 if test x$ac_cv_sizeof_short != x ; then break; fi
15242 if test x$ac_cv_sizeof_short = x ; then
15243 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15245 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15246 cat >> confdefs.h <<EOF
15247 #define SIZEOF_SHORT $ac_cv_sizeof_short
15251 echo $ac_n "checking size of int""... $ac_c" 1>&6
15252 echo "configure:15253: checking size of int" >&5
15253 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15256 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15257 cat > conftest.$ac_ext <<EOF
15258 #line 15259 "configure"
15259 #include "confdefs.h"
15260 #include "confdefs.h"
15261 #include <sys/types.h>
15265 switch (0) case 0: case (sizeof (int) == $ac_size):;
15268 if { (eval echo configure:15269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15270 ac_cv_sizeof_int=$ac_size
15272 echo "configure: failed program was:" >&5
15273 cat conftest.$ac_ext >&5
15276 if test x$ac_cv_sizeof_int != x ; then break; fi
15281 if test x$ac_cv_sizeof_int = x ; then
15282 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15284 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15285 cat >> confdefs.h <<EOF
15286 #define SIZEOF_INT $ac_cv_sizeof_int
15290 echo $ac_n "checking size of long""... $ac_c" 1>&6
15291 echo "configure:15292: checking size of long" >&5
15292 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15293 echo $ac_n "(cached) $ac_c" 1>&6
15295 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15296 cat > conftest.$ac_ext <<EOF
15297 #line 15298 "configure"
15298 #include "confdefs.h"
15299 #include "confdefs.h"
15300 #include <sys/types.h>
15304 switch (0) case 0: case (sizeof (long) == $ac_size):;
15307 if { (eval echo configure:15308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15309 ac_cv_sizeof_long=$ac_size
15311 echo "configure: failed program was:" >&5
15312 cat conftest.$ac_ext >&5
15315 if test x$ac_cv_sizeof_long != x ; then break; fi
15320 if test x$ac_cv_sizeof_long = x ; then
15321 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15323 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15324 cat >> confdefs.h <<EOF
15325 #define SIZEOF_LONG $ac_cv_sizeof_long
15330 if test "$ac_cv_sizeof_int" -lt 4 ; then
15331 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15333 cat >> confdefs.h <<\EOF
15334 #define LBER_INT_T long
15338 cat >> confdefs.h <<\EOF
15339 #define LBER_INT_T int
15344 cat >> confdefs.h <<\EOF
15345 #define LBER_LEN_T long
15348 cat >> confdefs.h <<\EOF
15349 #define LBER_SOCKET_T int
15352 cat >> confdefs.h <<\EOF
15353 #define LBER_TAG_T long
15357 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15358 echo "configure:15359: checking for 8-bit clean memcmp" >&5
15359 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15360 echo $ac_n "(cached) $ac_c" 1>&6
15362 if test "$cross_compiling" = yes; then
15363 ac_cv_func_memcmp_clean=no
15365 cat > conftest.$ac_ext <<EOF
15366 #line 15367 "configure"
15367 #include "confdefs.h"
15371 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15372 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15376 if { (eval echo configure:15377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15378 ac_cv_func_memcmp_clean=yes
15380 echo "configure: failed program was:" >&5
15381 cat conftest.$ac_ext >&5
15383 ac_cv_func_memcmp_clean=no
15390 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15391 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15393 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15394 echo "configure:15395: checking for strftime" >&5
15395 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15396 echo $ac_n "(cached) $ac_c" 1>&6
15398 cat > conftest.$ac_ext <<EOF
15399 #line 15400 "configure"
15400 #include "confdefs.h"
15401 /* System header to define __stub macros and hopefully few prototypes,
15402 which can conflict with char strftime(); below. */
15403 #include <assert.h>
15404 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined (__stub_strftime) || defined (__stub___strftime)
15423 if { (eval echo configure:15424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15425 eval "ac_cv_func_strftime=yes"
15427 echo "configure: failed program was:" >&5
15428 cat conftest.$ac_ext >&5
15430 eval "ac_cv_func_strftime=no"
15435 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15436 echo "$ac_t""yes" 1>&6
15437 cat >> confdefs.h <<\EOF
15438 #define HAVE_STRFTIME 1
15442 echo "$ac_t""no" 1>&6
15443 # strftime is in -lintl on SCO UNIX.
15444 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15445 echo "configure:15446: checking for strftime in -lintl" >&5
15446 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
15450 ac_save_LIBS="$LIBS"
15451 LIBS="-lintl $LIBS"
15452 cat > conftest.$ac_ext <<EOF
15453 #line 15454 "configure"
15454 #include "confdefs.h"
15455 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15464 if { (eval echo configure:15465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15466 eval "ac_cv_lib_$ac_lib_var=yes"
15468 echo "configure: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15471 eval "ac_cv_lib_$ac_lib_var=no"
15474 LIBS="$ac_save_LIBS"
15477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15478 echo "$ac_t""yes" 1>&6
15479 cat >> confdefs.h <<\EOF
15480 #define HAVE_STRFTIME 1
15483 LIBS="-lintl $LIBS"
15485 echo "$ac_t""no" 1>&6
15491 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15492 echo "configure:15493: checking for inet_aton()" >&5
15493 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15494 echo $ac_n "(cached) $ac_c" 1>&6
15496 cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15500 #ifdef HAVE_SYS_TYPES_H
15501 # include <sys/types.h>
15503 #ifdef HAVE_SYS_SOCKET_H
15504 # include <sys/socket.h>
15505 # ifdef HAVE_SYS_SELECT_H
15506 # include <sys/select.h>
15508 # include <netinet/in.h>
15509 # ifdef HAVE_ARPA_INET_H
15510 # include <arpa/inet.h>
15516 int rc = inet_aton( "255.255.255.255", &in );
15519 if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15521 ol_cv_func_inet_aton=yes
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15526 ol_cv_func_inet_aton=no
15531 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15532 if test $ol_cv_func_inet_aton != no; then
15533 cat >> confdefs.h <<\EOF
15534 #define HAVE_INET_ATON 1
15540 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15541 echo "configure:15542: checking for _spawnlp" >&5
15542 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
15545 cat > conftest.$ac_ext <<EOF
15546 #line 15547 "configure"
15547 #include "confdefs.h"
15548 /* System header to define __stub macros and hopefully few prototypes,
15549 which can conflict with char _spawnlp(); below. */
15550 #include <assert.h>
15551 /* Override any gcc2 internal prototype to avoid an error. */
15552 /* We use char because int might match the return type of a gcc2
15553 builtin and then its argument prototype would still apply. */
15559 /* The GNU C library defines this for functions which it implements
15560 to always fail with ENOSYS. Some functions are actually named
15561 something starting with __ and the normal name is an alias. */
15562 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15570 if { (eval echo configure:15571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15572 eval "ac_cv_func__spawnlp=yes"
15574 echo "configure: failed program was:" >&5
15575 cat conftest.$ac_ext >&5
15577 eval "ac_cv_func__spawnlp=no"
15582 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15583 echo "$ac_t""yes" 1>&6
15584 cat >> confdefs.h <<\EOF
15585 #define HAVE_SPAWNLP 1
15589 echo "$ac_t""no" 1>&6
15593 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15594 echo "configure:15595: checking for _snprintf" >&5
15595 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15596 echo $ac_n "(cached) $ac_c" 1>&6
15598 cat > conftest.$ac_ext <<EOF
15599 #line 15600 "configure"
15600 #include "confdefs.h"
15601 /* System header to define __stub macros and hopefully few prototypes,
15602 which can conflict with char _snprintf(); below. */
15603 #include <assert.h>
15604 /* Override any gcc2 internal prototype to avoid an error. */
15605 /* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15612 /* The GNU C library defines this for functions which it implements
15613 to always fail with ENOSYS. Some functions are actually named
15614 something starting with __ and the normal name is an alias. */
15615 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15623 if { (eval echo configure:15624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15625 eval "ac_cv_func__snprintf=yes"
15627 echo "configure: failed program was:" >&5
15628 cat conftest.$ac_ext >&5
15630 eval "ac_cv_func__snprintf=no"
15635 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15636 echo "$ac_t""yes" 1>&6
15637 ac_cv_func_snprintf=yes
15638 cat >> confdefs.h <<\EOF
15639 #define snprintf _snprintf
15644 echo "$ac_t""no" 1>&6
15648 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15649 echo "configure:15650: checking for _vsnprintf" >&5
15650 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15651 echo $ac_n "(cached) $ac_c" 1>&6
15653 cat > conftest.$ac_ext <<EOF
15654 #line 15655 "configure"
15655 #include "confdefs.h"
15656 /* System header to define __stub macros and hopefully few prototypes,
15657 which can conflict with char _vsnprintf(); below. */
15658 #include <assert.h>
15659 /* Override any gcc2 internal prototype to avoid an error. */
15660 /* We use char because int might match the return type of a gcc2
15661 builtin and then its argument prototype would still apply. */
15667 /* The GNU C library defines this for functions which it implements
15668 to always fail with ENOSYS. Some functions are actually named
15669 something starting with __ and the normal name is an alias. */
15670 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15678 if { (eval echo configure:15679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15680 eval "ac_cv_func__vsnprintf=yes"
15682 echo "configure: failed program was:" >&5
15683 cat conftest.$ac_ext >&5
15685 eval "ac_cv_func__vsnprintf=no"
15690 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15691 echo "$ac_t""yes" 1>&6
15692 ac_cv_func_vsnprintf=yes
15693 cat >> confdefs.h <<\EOF
15694 #define vsnprintf _vsnprintf
15699 echo "$ac_t""no" 1>&6
15703 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15704 echo "configure:15705: checking for vprintf" >&5
15705 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15706 echo $ac_n "(cached) $ac_c" 1>&6
15708 cat > conftest.$ac_ext <<EOF
15709 #line 15710 "configure"
15710 #include "confdefs.h"
15711 /* System header to define __stub macros and hopefully few prototypes,
15712 which can conflict with char vprintf(); below. */
15713 #include <assert.h>
15714 /* Override any gcc2 internal prototype to avoid an error. */
15715 /* We use char because int might match the return type of a gcc2
15716 builtin and then its argument prototype would still apply. */
15722 /* The GNU C library defines this for functions which it implements
15723 to always fail with ENOSYS. Some functions are actually named
15724 something starting with __ and the normal name is an alias. */
15725 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15733 if { (eval echo configure:15734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15735 eval "ac_cv_func_vprintf=yes"
15737 echo "configure: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15740 eval "ac_cv_func_vprintf=no"
15745 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15746 echo "$ac_t""yes" 1>&6
15747 cat >> confdefs.h <<\EOF
15748 #define HAVE_VPRINTF 1
15752 echo "$ac_t""no" 1>&6
15755 if test "$ac_cv_func_vprintf" != yes; then
15756 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15757 echo "configure:15758: checking for _doprnt" >&5
15758 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15759 echo $ac_n "(cached) $ac_c" 1>&6
15761 cat > conftest.$ac_ext <<EOF
15762 #line 15763 "configure"
15763 #include "confdefs.h"
15764 /* System header to define __stub macros and hopefully few prototypes,
15765 which can conflict with char _doprnt(); below. */
15766 #include <assert.h>
15767 /* Override any gcc2 internal prototype to avoid an error. */
15768 /* We use char because int might match the return type of a gcc2
15769 builtin and then its argument prototype would still apply. */
15775 /* The GNU C library defines this for functions which it implements
15776 to always fail with ENOSYS. Some functions are actually named
15777 something starting with __ and the normal name is an alias. */
15778 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15786 if { (eval echo configure:15787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15788 eval "ac_cv_func__doprnt=yes"
15790 echo "configure: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15793 eval "ac_cv_func__doprnt=no"
15798 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15799 echo "$ac_t""yes" 1>&6
15800 cat >> confdefs.h <<\EOF
15801 #define HAVE_DOPRNT 1
15805 echo "$ac_t""no" 1>&6
15811 if test $ac_cv_func_vprintf = yes ; then
15812 for ac_func in vsnprintf vsprintf
15814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15815 echo "configure:15816: checking for $ac_func" >&5
15816 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15817 echo $ac_n "(cached) $ac_c" 1>&6
15819 cat > conftest.$ac_ext <<EOF
15820 #line 15821 "configure"
15821 #include "confdefs.h"
15822 /* System header to define __stub macros and hopefully few prototypes,
15823 which can conflict with char $ac_func(); below. */
15824 #include <assert.h>
15825 /* Override any gcc2 internal prototype to avoid an error. */
15826 /* We use char because int might match the return type of a gcc2
15827 builtin and then its argument prototype would still apply. */
15833 /* The GNU C library defines this for functions which it implements
15834 to always fail with ENOSYS. Some functions are actually named
15835 something starting with __ and the normal name is an alias. */
15836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15844 if { (eval echo configure:15845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846 eval "ac_cv_func_$ac_func=yes"
15848 echo "configure: failed program was:" >&5
15849 cat conftest.$ac_ext >&5
15851 eval "ac_cv_func_$ac_func=no"
15856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15857 echo "$ac_t""yes" 1>&6
15858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15859 cat >> confdefs.h <<EOF
15860 #define $ac_tr_func 1
15864 echo "$ac_t""no" 1>&6
15922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15923 echo "configure:15924: checking for $ac_func" >&5
15924 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15925 echo $ac_n "(cached) $ac_c" 1>&6
15927 cat > conftest.$ac_ext <<EOF
15928 #line 15929 "configure"
15929 #include "confdefs.h"
15930 /* System header to define __stub macros and hopefully few prototypes,
15931 which can conflict with char $ac_func(); below. */
15932 #include <assert.h>
15933 /* Override any gcc2 internal prototype to avoid an error. */
15934 /* We use char because int might match the return type of a gcc2
15935 builtin and then its argument prototype would still apply. */
15941 /* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
15944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15952 if { (eval echo configure:15953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15954 eval "ac_cv_func_$ac_func=yes"
15956 echo "configure: failed program was:" >&5
15957 cat conftest.$ac_ext >&5
15959 eval "ac_cv_func_$ac_func=no"
15964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15965 echo "$ac_t""yes" 1>&6
15966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15967 cat >> confdefs.h <<EOF
15968 #define $ac_tr_func 1
15972 echo "$ac_t""no" 1>&6
15977 for ac_func in getopt tempnam
15979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15980 echo "configure:15981: checking for $ac_func" >&5
15981 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15982 echo $ac_n "(cached) $ac_c" 1>&6
15984 cat > conftest.$ac_ext <<EOF
15985 #line 15986 "configure"
15986 #include "confdefs.h"
15987 /* System header to define __stub macros and hopefully few prototypes,
15988 which can conflict with char $ac_func(); below. */
15989 #include <assert.h>
15990 /* Override any gcc2 internal prototype to avoid an error. */
15991 /* We use char because int might match the return type of a gcc2
15992 builtin and then its argument prototype would still apply. */
15998 /* The GNU C library defines this for functions which it implements
15999 to always fail with ENOSYS. Some functions are actually named
16000 something starting with __ and the normal name is an alias. */
16001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16009 if { (eval echo configure:16010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16011 eval "ac_cv_func_$ac_func=yes"
16013 echo "configure: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16016 eval "ac_cv_func_$ac_func=no"
16021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16022 echo "$ac_t""yes" 1>&6
16023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16024 cat >> confdefs.h <<EOF
16025 #define $ac_tr_func 1
16029 echo "$ac_t""no" 1>&6
16030 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16036 if test "$ac_cv_func_getopt" != yes; then
16037 LIBSRCS="$LIBSRCS getopt.c"
16040 if test "$ac_cv_func_tempnam" != yes; then
16041 LIBSRCS="$LIBSRCS tempnam.c"
16044 # Check Configuration
16045 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16046 echo "configure:16047: checking declaration of sys_errlist" >&5
16047 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16048 echo $ac_n "(cached) $ac_c" 1>&6
16051 cat > conftest.$ac_ext <<EOF
16052 #line 16053 "configure"
16053 #include "confdefs.h"
16056 #include <sys/types.h>
16059 #include <stdlib.h>
16062 char *c = (char *) *sys_errlist
16065 if { (eval echo configure:16066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16067 ol_cv_dcl_sys_errlist=yes
16068 ol_cv_have_sys_errlist=yes
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16073 ol_cv_dcl_sys_errlist=no
16078 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16080 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16081 if test $ol_cv_dcl_sys_errlist = no ; then
16082 cat >> confdefs.h <<\EOF
16083 #define DECL_SYS_ERRLIST 1
16087 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16088 echo "configure:16089: checking existence of sys_errlist" >&5
16089 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16090 echo $ac_n "(cached) $ac_c" 1>&6
16093 cat > conftest.$ac_ext <<EOF
16094 #line 16095 "configure"
16095 #include "confdefs.h"
16098 char *c = (char *) *sys_errlist
16101 if { (eval echo configure:16102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16103 ol_cv_have_sys_errlist=yes
16105 echo "configure: failed program was:" >&5
16106 cat conftest.$ac_ext >&5
16108 ol_cv_have_sys_errlist=no
16113 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16115 if test $ol_cv_have_sys_errlist = yes ; then
16116 cat >> confdefs.h <<\EOF
16117 #define HAVE_SYS_ERRLIST 1
16124 if test "$ol_enable_debug" != no ; then
16125 cat >> confdefs.h <<\EOF
16126 #define LDAP_DEBUG 1
16130 if test "$ol_enable_syslog" = yes ; then
16131 cat >> confdefs.h <<\EOF
16132 #define LDAP_SYSLOG 1
16136 if test "$ol_enable_cache" = no ; then
16137 cat >> confdefs.h <<\EOF
16138 #define LDAP_NOCACHE 1
16142 if test "$ol_link_kbind" != no ; then
16143 cat >> confdefs.h <<\EOF
16144 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16148 if test "$ol_enable_proctitle" != no ; then
16149 cat >> confdefs.h <<\EOF
16150 #define LDAP_PROCTITLE 1
16154 if test "$ol_enable_referrals" != no ; then
16155 cat >> confdefs.h <<\EOF
16156 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16160 if test "$ol_enable_local" != no; then
16161 cat >> confdefs.h <<\EOF
16162 #define LDAP_PF_LOCAL 1
16166 if test "$ol_link_ipv6" != no; then
16167 cat >> confdefs.h <<\EOF
16168 #define LDAP_PF_INET6 1
16172 if test "$ol_enable_cleartext" != no ; then
16173 cat >> confdefs.h <<\EOF
16174 #define SLAPD_CLEARTEXT 1
16178 if test "$ol_enable_crypt" != no ; then
16179 cat >> confdefs.h <<\EOF
16180 #define SLAPD_CRYPT 1
16184 if test "$ol_link_kpasswd" != no ; then
16185 cat >> confdefs.h <<\EOF
16186 #define SLAPD_KPASSWD 1
16190 if test "$ol_link_spasswd" != no ; then
16191 cat >> confdefs.h <<\EOF
16192 #define SLAPD_SPASSWD 1
16196 if test "$ol_enable_phonetic" != no ; then
16197 cat >> confdefs.h <<\EOF
16198 #define SLAPD_PHONETIC 1
16202 if test "$ol_enable_rlookups" != no ; then
16203 cat >> confdefs.h <<\EOF
16204 #define SLAPD_RLOOKUPS 1
16208 if test "$ol_enable_aci" != no ; then
16209 cat >> confdefs.h <<\EOF
16210 #define SLAPD_ACI_ENABLED 1
16215 if test "$ol_link_modules" != no ; then
16216 cat >> confdefs.h <<\EOF
16217 #define SLAPD_MODULES 1
16221 SLAPD_MODULES_LDFLAGS="-dlopen self"
16224 if test "$ol_enable_bdb" != no ; then
16225 cat >> confdefs.h <<\EOF
16226 #define SLAPD_BDB 1
16231 if test "$ol_with_bdb_module" != static ; then
16232 cat >> confdefs.h <<\EOF
16233 #define SLAPD_BDB_DYNAMIC 1
16237 BUILD_BDB_DYNAMIC=shared
16238 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16242 if test "$ol_link_dnssrv" != no ; then
16243 cat >> confdefs.h <<\EOF
16244 #define SLAPD_DNSSRV 1
16249 if test "$ol_with_dnssrv_module" != static ; then
16250 cat >> confdefs.h <<\EOF
16251 #define SLAPD_DNSSRV_DYNAMIC 1
16255 BUILD_DNSSRV_DYNAMIC=shared
16256 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16260 if test "$ol_enable_ldap" != no ; then
16261 cat >> confdefs.h <<\EOF
16262 #define SLAPD_LDAP 1
16267 if test "$ol_with_ldap_module" != static ; then
16268 cat >> confdefs.h <<\EOF
16269 #define SLAPD_LDAP_DYNAMIC 1
16273 BUILD_LDAP_DYNAMIC=shared
16274 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16278 if test "$ol_link_ldbm" != no ; then
16279 cat >> confdefs.h <<\EOF
16280 #define SLAPD_LDBM 1
16285 if test "$ol_with_ldbm_module" != static ; then
16286 cat >> confdefs.h <<\EOF
16287 #define SLAPD_LDBM_DYNAMIC 1
16291 BUILD_LDBM_DYNAMIC=shared
16292 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16296 if test "$ol_enable_passwd" != no ; then
16297 cat >> confdefs.h <<\EOF
16298 #define SLAPD_PASSWD 1
16303 if test "$ol_with_passwd_module" != static ; then
16304 cat >> confdefs.h <<\EOF
16305 #define SLAPD_PASSWD_DYNAMIC 1
16309 BUILD_PASSWD_DYNAMIC=shared
16310 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16314 if test "$ol_link_perl" != no ; then
16315 cat >> confdefs.h <<\EOF
16316 #define SLAPD_PERL 1
16321 if test "$ol_with_perl_module" != static ; then
16322 cat >> confdefs.h <<\EOF
16323 #define SLAPD_PERL_DYNAMIC 1
16327 BUILD_PERL_DYNAMIC=shared
16328 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16332 if test "$ol_enable_shell" != no ; then
16333 cat >> confdefs.h <<\EOF
16334 #define SLAPD_SHELL 1
16339 if test "$ol_with_shell_module" != static ; then
16340 cat >> confdefs.h <<\EOF
16341 #define SLAPD_SHELL_DYNAMIC 1
16345 BUILD_SHELL_DYNAMIC=shared
16346 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16350 if test "$ol_enable_tcl" != no ; then
16351 cat >> confdefs.h <<\EOF
16352 #define SLAPD_TCL 1
16357 if test "$ol_with_tcl_module" != static; then
16358 cat >> confdefs.h <<\EOF
16359 #define SLAPD_TCL_DYNAMIC 1
16363 BUILD_TCL_DYNAMIC=shared
16364 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16368 if test "$ol_link_sql" != no ; then
16369 cat >> confdefs.h <<\EOF
16370 #define SLAPD_SQL 1
16375 if test "$ol_with_sql_module" != static; then
16376 cat >> confdefs.h <<\EOF
16377 #define SLAPD_SQL_DYNAMIC 1
16381 BUILD_SQL_DYNAMIC=shared
16382 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16386 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16387 $BUILD_SLAPD = yes ; then
16392 if test "$LINK_BINS_DYNAMIC" = yes; then
16394 LT_LIB_LINKAGE=shared
16397 LT_LIB_LINKAGE=static
16400 if test "$ac_cv_mingw32" = yes ; then
16473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16476 # Let make expand exec_prefix.
16477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16479 # Any assignment to VPATH causes Sun make to only execute
16480 # the first set of double-colon rules, so remove it if not needed.
16481 # If there is a colon in the path, we need to keep it.
16482 if test "x$srcdir" = x.; then
16483 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16486 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16488 DEFS=-DHAVE_CONFIG_H
16490 # Without the "./", some shells look in PATH for config.status.
16491 : ${CONFIG_STATUS=./config.status}
16493 echo creating $CONFIG_STATUS
16494 rm -f $CONFIG_STATUS
16495 cat > $CONFIG_STATUS <<EOF
16497 # Generated automatically by configure.
16498 # Run this file to recreate the current configuration.
16499 # This directory was configured as follows,
16500 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16502 # $0 $ac_configure_args
16504 # Compiler output produced by configure, useful for debugging
16505 # configure, is in ./config.log if it exists.
16507 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16510 case "\$ac_option" in
16511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16512 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16513 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16514 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16515 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16517 -help | --help | --hel | --he | --h)
16518 echo "\$ac_cs_usage"; exit 0 ;;
16519 *) echo "\$ac_cs_usage"; exit 1 ;;
16523 ac_given_srcdir=$srcdir
16524 ac_given_INSTALL="$INSTALL"
16526 trap 'rm -fr `echo "\
16527 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16528 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16529 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16530 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16531 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16532 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16533 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16534 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16535 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16536 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16537 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16538 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16539 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16540 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16541 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16542 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16543 include/Makefile:build/top.mk:include/Makefile.in \
16544 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16545 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16546 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16547 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16548 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16549 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16550 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16551 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16552 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16553 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16554 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16555 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16556 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16557 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16558 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16559 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16560 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16561 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16562 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16563 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16564 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16565 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16566 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16567 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16568 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16569 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16570 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16571 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16572 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16574 cat >> $CONFIG_STATUS <<EOF
16576 # Protect against being on the right side of a sed subst in config.status.
16577 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16578 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16582 s%@CFLAGS@%$CFLAGS%g
16583 s%@CPPFLAGS@%$CPPFLAGS%g
16584 s%@CXXFLAGS@%$CXXFLAGS%g
16585 s%@FFLAGS@%$FFLAGS%g
16587 s%@LDFLAGS@%$LDFLAGS%g
16589 s%@exec_prefix@%$exec_prefix%g
16590 s%@prefix@%$prefix%g
16591 s%@program_transform_name@%$program_transform_name%g
16592 s%@bindir@%$bindir%g
16593 s%@sbindir@%$sbindir%g
16594 s%@libexecdir@%$libexecdir%g
16595 s%@datadir@%$datadir%g
16596 s%@sysconfdir@%$sysconfdir%g
16597 s%@sharedstatedir@%$sharedstatedir%g
16598 s%@localstatedir@%$localstatedir%g
16599 s%@libdir@%$libdir%g
16600 s%@includedir@%$includedir%g
16601 s%@oldincludedir@%$oldincludedir%g
16602 s%@infodir@%$infodir%g
16603 s%@mandir@%$mandir%g
16605 s%@host_alias@%$host_alias%g
16606 s%@host_cpu@%$host_cpu%g
16607 s%@host_vendor@%$host_vendor%g
16608 s%@host_os@%$host_os%g
16609 s%@target@%$target%g
16610 s%@target_alias@%$target_alias%g
16611 s%@target_cpu@%$target_cpu%g
16612 s%@target_vendor@%$target_vendor%g
16613 s%@target_os@%$target_os%g
16615 s%@build_alias@%$build_alias%g
16616 s%@build_cpu@%$build_cpu%g
16617 s%@build_vendor@%$build_vendor%g
16618 s%@build_os@%$build_os%g
16619 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16620 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16621 s%@INSTALL_DATA@%$INSTALL_DATA%g
16622 s%@PACKAGE@%$PACKAGE%g
16623 s%@VERSION@%$VERSION%g
16624 s%@ACLOCAL@%$ACLOCAL%g
16625 s%@AUTOCONF@%$AUTOCONF%g
16626 s%@AUTOMAKE@%$AUTOMAKE%g
16627 s%@AUTOHEADER@%$AUTOHEADER%g
16628 s%@MAKEINFO@%$MAKEINFO%g
16629 s%@install_sh@%$install_sh%g
16632 s%@AMTARFLAGS@%$AMTARFLAGS%g
16633 s%@SET_MAKE@%$SET_MAKE%g
16634 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16635 s%@top_builddir@%$top_builddir%g
16636 s%@ldap_subdir@%$ldap_subdir%g
16638 s%@RANLIB@%$RANLIB%g
16640 s%@DLLTOOL@%$DLLTOOL%g
16642 s%@OBJDUMP@%$OBJDUMP%g
16643 s%@LIBTOOL@%$LIBTOOL%g
16645 s%@SENDMAIL@%$SENDMAIL%g
16646 s%@EDITOR@%$EDITOR%g
16647 s%@FINGER@%$FINGER%g
16648 s%@PERLBIN@%$PERLBIN%g
16650 s%@EXEEXT@%$EXEEXT%g
16651 s%@OBJEXT@%$OBJEXT%g
16652 s%@OL_MKDEP@%$OL_MKDEP%g
16653 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16654 s%@LIBOBJS@%$LIBOBJS%g
16655 s%@LIBSRCS@%$LIBSRCS%g
16657 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16658 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16659 s%@DYN_EXT@%$DYN_EXT%g
16660 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16661 s%@BUILD_BDB@%$BUILD_BDB%g
16662 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16663 s%@BUILD_LDAP@%$BUILD_LDAP%g
16664 s%@BUILD_LDBM@%$BUILD_LDBM%g
16665 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16666 s%@BUILD_PERL@%$BUILD_PERL%g
16667 s%@BUILD_SHELL@%$BUILD_SHELL%g
16668 s%@BUILD_SQL@%$BUILD_SQL%g
16669 s%@BUILD_TCL@%$BUILD_TCL%g
16670 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
16671 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16672 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16673 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16674 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16675 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16676 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16677 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16678 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16679 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16680 s%@LDAP_LIBS@%$LDAP_LIBS%g
16681 s%@LDIF_LIBS@%$LDIF_LIBS%g
16682 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16683 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16684 s%@LDBM_LIBS@%$LDBM_LIBS%g
16685 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16686 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16687 s%@WRAP_LIBS@%$WRAP_LIBS%g
16688 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16689 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16690 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16691 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16692 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16693 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16694 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16695 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16696 s%@KRB4_LIBS@%$KRB4_LIBS%g
16697 s%@KRB5_LIBS@%$KRB5_LIBS%g
16698 s%@READLINE_LIBS@%$READLINE_LIBS%g
16699 s%@SASL_LIBS@%$SASL_LIBS%g
16700 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16701 s%@TLS_LIBS@%$TLS_LIBS%g
16702 s%@MODULES_LIBS@%$MODULES_LIBS%g
16703 s%@AUTH_LIBS@%$AUTH_LIBS%g
16704 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
16705 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16706 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16707 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16712 cat >> $CONFIG_STATUS <<\EOF
16714 # Split the substitutions into bite-sized pieces for seds with
16715 # small command number limits, like on Digital OSF/1 and HP-UX.
16716 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16717 ac_file=1 # Number of current file.
16718 ac_beg=1 # First line for current file.
16719 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16722 while $ac_more_lines; do
16723 if test $ac_beg -gt 1; then
16724 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16726 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16728 if test ! -s conftest.s$ac_file; then
16729 ac_more_lines=false
16730 rm -f conftest.s$ac_file
16732 if test -z "$ac_sed_cmds"; then
16733 ac_sed_cmds="sed -f conftest.s$ac_file"
16735 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16737 ac_file=`expr $ac_file + 1`
16739 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16742 if test -z "$ac_sed_cmds"; then
16747 cat >> $CONFIG_STATUS <<EOF
16749 CONFIG_FILES=\${CONFIG_FILES-"\
16750 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16751 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16752 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16753 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16754 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16755 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16756 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16757 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16758 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16759 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16760 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16761 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16762 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16763 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16764 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16765 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16766 include/Makefile:build/top.mk:include/Makefile.in \
16767 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16768 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16769 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16770 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16771 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16772 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16773 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16774 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16775 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16776 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16777 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16778 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16779 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16780 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16781 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16782 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16783 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16784 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16785 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16786 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16787 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16788 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16789 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16790 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16791 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16792 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16793 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16794 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16797 cat >> $CONFIG_STATUS <<\EOF
16798 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16799 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16801 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16802 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16803 *) ac_file_in="${ac_file}.in" ;;
16806 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16808 # Remove last slash and all that follows it. Not all systems have dirname.
16809 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16810 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16811 # The file is in a subdirectory.
16812 test ! -d "$ac_dir" && mkdir "$ac_dir"
16813 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16814 # A "../" for each directory in $ac_dir_suffix.
16815 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16817 ac_dir_suffix= ac_dots=
16820 case "$ac_given_srcdir" in
16822 if test -z "$ac_dots"; then top_srcdir=.
16823 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16824 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16825 *) # Relative path.
16826 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16827 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16830 case "$ac_given_INSTALL" in
16831 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16832 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16835 echo creating "$ac_file"
16837 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16839 *[Mm]akefile*) ac_comsub="1i\\
16840 # $configure_input" ;;
16844 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16846 s%@configure_input@%$configure_input%g
16847 s%@srcdir@%$srcdir%g
16848 s%@top_srcdir@%$top_srcdir%g
16849 s%@INSTALL@%$INSTALL%g
16850 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16857 # ac_d sets the value in "#define NAME VALUE" lines.
16858 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16859 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16862 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16863 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16864 ac_uB='\([ ]\)%\1#\2define\3'
16867 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16868 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16869 ac_eB='$%\1#\2define\3'
16873 if test "${CONFIG_HEADERS+set}" != set; then
16875 cat >> $CONFIG_STATUS <<EOF
16876 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16878 cat >> $CONFIG_STATUS <<\EOF
16880 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16881 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16883 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16884 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16885 *) ac_file_in="${ac_file}.in" ;;
16888 echo creating $ac_file
16890 rm -f conftest.frag conftest.in conftest.out
16891 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16892 cat $ac_file_inputs > conftest.in
16896 # Transform confdefs.h into a sed script conftest.vals that substitutes
16897 # the proper values into config.h.in to produce config.h. And first:
16898 # Protect against being on the right side of a sed subst in config.status.
16899 # Protect against being in an unquoted here document in config.status.
16900 rm -f conftest.vals
16901 cat > conftest.hdr <<\EOF
16904 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16908 sed -n -f conftest.hdr confdefs.h > conftest.vals
16911 # This sed command replaces #undef with comments. This is necessary, for
16912 # example, in the case of _POSIX_SOURCE, which is predefined and required
16913 # on some systems where configure will not decide to define it.
16914 cat >> conftest.vals <<\EOF
16915 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16918 # Break up conftest.vals because some shells have a limit on
16919 # the size of here documents, and old seds have small limits too.
16921 rm -f conftest.tail
16924 ac_lines=`grep -c . conftest.vals`
16925 # grep -c gives empty output for an empty file on some AIX systems.
16926 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16927 # Write a limited-size here document to conftest.frag.
16928 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16929 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16931 sed -f conftest.frag conftest.in > conftest.out
16933 mv conftest.out conftest.in
16934 ' >> $CONFIG_STATUS
16935 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16936 rm -f conftest.vals
16937 mv conftest.tail conftest.vals
16939 rm -f conftest.vals
16941 cat >> $CONFIG_STATUS <<\EOF
16942 rm -f conftest.frag conftest.h
16943 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16944 cat conftest.in >> conftest.h
16946 if cmp -s $ac_file conftest.h 2>/dev/null; then
16947 echo "$ac_file is unchanged"
16950 # Remove last slash and all that follows it. Not all systems have dirname.
16951 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16952 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16953 # The file is in a subdirectory.
16954 test ! -d "$ac_dir" && mkdir "$ac_dir"
16957 mv conftest.h $ac_file
16962 cat >> $CONFIG_STATUS <<EOF
16965 cat >> $CONFIG_STATUS <<\EOF
16968 echo Please \"make depend\" to build dependencies
16972 chmod +x $CONFIG_STATUS
16973 rm -fr confdefs* $ac_clean_files
16974 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1