3 # from OpenLDAP: pkg/ldap/configure.in,v 1.395 2002/01/21 02:12:41 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [yes]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [no]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-monitor enable monitor backend [no]"
119 --with-monitor-module module type [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
145 Library Generation & Linking Options"
147 --enable-static[=PKGS] build static libraries [default=yes]"
149 --enable-shared[=PKGS] build shared libraries [default=yes]"
151 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
153 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
155 --disable-libtool-lock avoid locking (might break parallel builds)"
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
161 cache_file=./config.cache
170 program_transform_name=s,x,x,
178 bindir='${exec_prefix}/bin'
179 sbindir='${exec_prefix}/sbin'
180 libexecdir='${exec_prefix}/libexec'
181 datadir='${prefix}/share'
182 sysconfdir='${prefix}/etc'
183 sharedstatedir='${prefix}/com'
184 localstatedir='${prefix}/var'
185 libdir='${exec_prefix}/lib'
186 includedir='${prefix}/include'
187 oldincludedir='/usr/include'
188 infodir='${prefix}/info'
189 mandir='${prefix}/man'
191 # Initialize some other variables.
194 SHELL=${CONFIG_SHELL-/bin/sh}
195 # Maximum number of lines to put in a shell here document.
202 # If the previous option needs an argument, assign it.
203 if test -n "$ac_prev"; then
204 eval "$ac_prev=\$ac_option"
210 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
214 # Accept the important Cygnus configure options, so we can diagnose typos.
218 -bindir | --bindir | --bindi | --bind | --bin | --bi)
220 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
221 bindir="$ac_optarg" ;;
223 -build | --build | --buil | --bui | --bu)
225 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
226 build="$ac_optarg" ;;
228 -cache-file | --cache-file | --cache-fil | --cache-fi \
229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
230 ac_prev=cache_file ;;
231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
233 cache_file="$ac_optarg" ;;
235 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
237 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
239 datadir="$ac_optarg" ;;
241 -disable-* | --disable-*)
242 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
254 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix="$ac_optarg" ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he)
277 # Omit some internal or obsolete options to make the list less imposing.
278 # This message is too long to be a string in the A/UX 3.1 sh.
280 Usage: configure [options] [host]
281 Options: [defaults in brackets after descriptions]
283 --cache-file=FILE cache test results in FILE
284 --help print this message
285 --no-create do not create output files
286 --quiet, --silent do not print \`checking...' messages
287 --version print the version of autoconf that created configure
288 Directory and file names:
289 --prefix=PREFIX install architecture-independent files in PREFIX
291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
293 --bindir=DIR user executables in DIR [EPREFIX/bin]
294 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
295 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
296 --datadir=DIR read-only architecture-independent data in DIR
298 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
299 --sharedstatedir=DIR modifiable architecture-independent data in DIR
301 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
302 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
303 --includedir=DIR C header files in DIR [PREFIX/include]
304 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
305 --infodir=DIR info documentation in DIR [PREFIX/info]
306 --mandir=DIR man documentation in DIR [PREFIX/man]
307 --srcdir=DIR find the sources in DIR [configure dir or ..]
308 --program-prefix=PREFIX prepend PREFIX to installed program names
309 --program-suffix=SUFFIX append SUFFIX to installed program names
310 --program-transform-name=PROGRAM
311 run sed PROGRAM on installed program names
315 --build=BUILD configure for building on BUILD [BUILD=HOST]
316 --host=HOST configure for HOST [guessed]
317 --target=TARGET configure for TARGET [TARGET=HOST]
318 Features and packages:
319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
323 --x-includes=DIR X include files are in DIR
324 --x-libraries=DIR X library files are in DIR
326 if test -n "$ac_help"; then
327 echo "--enable and --with options recognized:$ac_help"
331 -host | --host | --hos | --ho)
333 -host=* | --host=* | --hos=* | --ho=*)
336 -includedir | --includedir | --includedi | --included | --include \
337 | --includ | --inclu | --incl | --inc)
338 ac_prev=includedir ;;
339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
340 | --includ=* | --inclu=* | --incl=* | --inc=*)
341 includedir="$ac_optarg" ;;
343 -infodir | --infodir | --infodi | --infod | --info | --inf)
345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
346 infodir="$ac_optarg" ;;
348 -libdir | --libdir | --libdi | --libd)
350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
351 libdir="$ac_optarg" ;;
353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
354 | --libexe | --libex | --libe)
355 ac_prev=libexecdir ;;
356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
357 | --libexe=* | --libex=* | --libe=*)
358 libexecdir="$ac_optarg" ;;
360 -localstatedir | --localstatedir | --localstatedi | --localstated \
361 | --localstate | --localstat | --localsta | --localst \
362 | --locals | --local | --loca | --loc | --lo)
363 ac_prev=localstatedir ;;
364 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
365 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
366 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
367 localstatedir="$ac_optarg" ;;
369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
372 mandir="$ac_optarg" ;;
375 # Obsolete; use --without-fp.
378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
388 | --oldin | --oldi | --old | --ol | --o)
389 ac_prev=oldincludedir ;;
390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
393 oldincludedir="$ac_optarg" ;;
395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
398 prefix="$ac_optarg" ;;
400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
401 | --program-pre | --program-pr | --program-p)
402 ac_prev=program_prefix ;;
403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
405 program_prefix="$ac_optarg" ;;
407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
408 | --program-suf | --program-su | --program-s)
409 ac_prev=program_suffix ;;
410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
412 program_suffix="$ac_optarg" ;;
414 -program-transform-name | --program-transform-name \
415 | --program-transform-nam | --program-transform-na \
416 | --program-transform-n | --program-transform- \
417 | --program-transform | --program-transfor \
418 | --program-transfo | --program-transf \
419 | --program-trans | --program-tran \
420 | --progr-tra | --program-tr | --program-t)
421 ac_prev=program_transform_name ;;
422 -program-transform-name=* | --program-transform-name=* \
423 | --program-transform-nam=* | --program-transform-na=* \
424 | --program-transform-n=* | --program-transform-=* \
425 | --program-transform=* | --program-transfor=* \
426 | --program-transfo=* | --program-transf=* \
427 | --program-trans=* | --program-tran=* \
428 | --progr-tra=* | --program-tr=* | --program-t=*)
429 program_transform_name="$ac_optarg" ;;
431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
432 | -silent | --silent | --silen | --sile | --sil)
435 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
437 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
439 sbindir="$ac_optarg" ;;
441 -sharedstatedir | --sharedstatedir | --sharedstatedi \
442 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
443 | --sharedst | --shareds | --shared | --share | --shar \
445 ac_prev=sharedstatedir ;;
446 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
447 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
448 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
450 sharedstatedir="$ac_optarg" ;;
452 -site | --site | --sit)
454 -site=* | --site=* | --sit=*)
457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
460 srcdir="$ac_optarg" ;;
462 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
463 | --syscon | --sysco | --sysc | --sys | --sy)
464 ac_prev=sysconfdir ;;
465 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
466 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
467 sysconfdir="$ac_optarg" ;;
469 -target | --target | --targe | --targ | --tar | --ta | --t)
471 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
472 target="$ac_optarg" ;;
474 -v | -verbose | --verbose | --verbos | --verbo | --verb)
477 -version | --version | --versio | --versi | --vers)
478 echo "configure generated by autoconf version 2.13.1"
482 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
492 eval "with_${ac_package}='$ac_optarg'" ;;
494 -without-* | --without-*)
495 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package=`echo $ac_package| sed 's/-/_/g'`
501 eval "with_${ac_package}=no" ;;
504 # Obsolete; use --with-x.
507 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
508 | --x-incl | --x-inc | --x-in | --x-i)
509 ac_prev=x_includes ;;
510 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
511 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
512 x_includes="$ac_optarg" ;;
514 -x-libraries | --x-libraries | --x-librarie | --x-librari \
515 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
516 ac_prev=x_libraries ;;
517 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
518 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
519 x_libraries="$ac_optarg" ;;
521 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
525 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
526 echo "configure: warning: $ac_option: invalid host type" 1>&2
528 if test "x$nonopt" != xNONE; then
529 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
537 if test -n "$ac_prev"; then
538 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
543 # File descriptor usage:
546 # 2 errors and warnings
547 # 3 some systems may open it to /dev/tty
548 # 4 used on the Kubota Titan
549 # 6 checking for... messages and results
550 # 5 compiler messages saved in config.log
551 if test "$silent" = yes; then
559 This file contains any messages produced by compilers while
560 running configure, to aid debugging if configure makes a mistake.
563 # Strip out --no-create and --no-recursion so they do not pile up.
564 # Also quote any args containing shell metacharacters.
569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
570 | --no-cr | --no-c) ;;
571 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
572 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
573 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
574 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
575 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
580 # Only set these to C if already set. These must not be set unconditionally
581 # because not all systems understand e.g. LANG=C (notably SCO).
582 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
583 # Non-C LC_CTYPE values break the ctype check.
584 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
585 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
586 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
587 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
590 rm -rf conftest* confdefs.h
591 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
594 # A filename unique to this package, relative to the directory that
595 # configure is in, which we can look for to find out if srcdir is correct.
596 ac_unique_file=build/version.sh
598 # Find the source files, if location was not specified.
599 if test -z "$srcdir"; then
600 ac_srcdir_defaulted=yes
601 # Try the directory containing this script, then its parent.
603 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
604 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
606 if test ! -r $srcdir/$ac_unique_file; then
610 ac_srcdir_defaulted=no
612 if test ! -r $srcdir/$ac_unique_file; then
613 if test "$ac_srcdir_defaulted" = yes; then
614 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
616 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
619 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
621 # Prefer explicitly selected file to automatically selected ones.
622 if test -z "$CONFIG_SITE"; then
623 if test "x$prefix" != xNONE; then
624 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
626 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
629 for ac_site_file in $CONFIG_SITE; do
630 if test -r "$ac_site_file"; then
631 echo "loading site script $ac_site_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
655 ac_n= ac_c='\c' ac_t=
659 # set unset (borrowed from autoconf 2.49c)
660 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
666 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
669 for ac_dir in build $srcdir/build; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
678 elif test -f $ac_dir/shtool; then
680 ac_install_sh="$ac_aux_dir/shtool install -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
687 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
688 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
689 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
691 eval `$ac_aux_dir/version.sh`
692 if test -z "$OL_STRING"; then
693 { echo "configure: error: could not determine version" 1>&2; exit 1; }
696 echo "Configuring $OL_STRING ..."
699 echo $ac_n "checking host system type""... $ac_c" 1>&6
700 echo "configure:701: checking host system type" >&5
701 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
703 # Make sure we can run config.sub.
704 if $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 ac_cv_host_alias=$host
709 case "$ac_cv_host_alias" in
713 if ac_cv_host_alias=`$ac_config_guess`; then :
714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 *) ac_cv_host_alias=$nonopt ;;
720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
721 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo $ac_n "(cached) $ac_c" 1>&6
728 echo "$ac_t""$ac_cv_host" 1>&6
731 host_alias=$ac_cv_host_alias
732 host_cpu=$ac_cv_host_cpu
733 host_vendor=$ac_cv_host_vendor
734 host_os=$ac_cv_host_os
740 echo $ac_n "checking target system type""... $ac_c" 1>&6
741 echo "configure:742: checking target system type" >&5
742 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
744 # Make sure we can run config.sub.
745 if $ac_config_sub sun4 >/dev/null 2>&1; then :
746 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749 ac_cv_target_alias=$target
750 case "$ac_cv_target_alias" in
754 ac_cv_target_alias=$host_alias ;;
756 *) ac_cv_target_alias=$nonopt ;;
760 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
761 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo $ac_n "(cached) $ac_c" 1>&6
768 echo "$ac_t""$ac_cv_target" 1>&6
771 target_alias=$ac_cv_target_alias
772 target_cpu=$ac_cv_target_cpu
773 target_vendor=$ac_cv_target_vendor
774 target_os=$ac_cv_target_os
780 echo $ac_n "checking build system type""... $ac_c" 1>&6
781 echo "configure:782: checking build system type" >&5
782 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
784 # Make sure we can run config.sub.
785 if $ac_config_sub sun4 >/dev/null 2>&1; then :
786 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
789 ac_cv_build_alias=$build
790 case "$ac_cv_build_alias" in
794 ac_cv_build_alias=$host_alias ;;
796 *) ac_cv_build_alias=$nonopt ;;
800 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
801 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
805 echo $ac_n "(cached) $ac_c" 1>&6
808 echo "$ac_t""$ac_cv_build" 1>&6
811 build_alias=$ac_cv_build_alias
812 build_cpu=$ac_cv_build_cpu
813 build_vendor=$ac_cv_build_vendor
814 build_os=$ac_cv_build_os
820 # Do some error checking and defaulting for the host and target type.
822 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
825 # 1. You are not allowed to specify --host, --target, and nonopt at the
827 # 2. Host defaults to nonopt.
828 # 3. If nonopt is not specified, then host defaults to the current host,
829 # as determined by config.guess.
830 # 4. Target and build default to nonopt.
831 # 5. If nonopt is not specified, then target and build default to host.
833 # The aliases save the names the user supplied, while $host etc.
834 # will get canonicalized.
835 case $host---$target---$nonopt in
836 NONE---*---* | *---NONE---* | *---*---NONE) ;;
837 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
840 test "$host_alias" != "$target_alias" &&
841 test "$program_prefix$program_suffix$program_transform_name" = \
843 program_prefix=${target_alias}-
846 # Find a good install program. We prefer a C program (faster),
847 # so one script is as good as another. But avoid the broken or
848 # incompatible versions:
849 # SysV /etc/install, /usr/sbin/install
850 # SunOS /usr/etc/install
853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
856 # ./install, which can be erroneously created by make from ./install.sh.
857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
858 echo "configure:859: checking for a BSD compatible install" >&5
859 if test -z "$INSTALL"; then
860 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
864 for ac_dir in $PATH; do
865 # Account for people who put trailing slashes in PATH elements.
867 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 # OSF1 and SCO ODT 3.0 have their own names for install.
870 # Don't use installbsd from OSF since it installs stuff as root
872 for ac_prog in ginstall scoinst install; do
873 if test -f $ac_dir/$ac_prog; then
874 if test $ac_prog = install &&
875 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # AIX install. It has an incompatible calling convention.
878 elif test $ac_prog = install &&
879 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
880 # program-specific install script used by HP pwplus--don't use.
883 ac_cv_path_install="$ac_dir/$ac_prog -c"
894 if test "${ac_cv_path_install+set}" = set; then
895 INSTALL="$ac_cv_path_install"
897 # As a last resort, use the slow shell script. We don't cache a
898 # path for INSTALL within a source directory, because that will
899 # break other packages using the cache if that directory is
900 # removed, or if the path is relative.
901 INSTALL="$ac_install_sh"
904 echo "$ac_t""$INSTALL" 1>&6
906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
907 # It thinks the first close brace ends the variable substitution.
908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
914 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
915 echo "configure:916: checking whether build environment is sane" >&5
918 echo timestamp > conftestfile
919 # Do `set' in a subshell so we don't clobber the current shell's
920 # arguments. Must try -L first in case configure is actually a
921 # symlink; some systems play weird games with the mod time of symlinks
922 # (eg FreeBSD returns the mod time of the symlink's containing
925 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
926 if test "$*" = "X"; then
928 set X `ls -t $srcdir/configure conftestfile`
930 if test "$*" != "X $srcdir/configure conftestfile" \
931 && test "$*" != "X conftestfile $srcdir/configure"; then
933 # If neither matched, then we have a broken ls. This can happen
934 # if, for instance, CONFIG_SHELL is bash and it inherits a
935 # broken ls alias from the environment. This has actually
936 # happened. Such a system could not be considered "sane".
937 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
938 alias in your environment" 1>&2; exit 1; }
941 test "$2" = conftestfile
947 { echo "configure: error: newly created file is older than distributed files!
948 Check your system clock" 1>&2; exit 1; }
951 echo "$ac_t""yes" 1>&6
952 if test "$program_transform_name" = s,x,x,; then
953 program_transform_name=
955 # Double any \ or $. echo might interpret backslashes.
956 cat <<\EOF_SED > conftestsed
957 s,\\,\\\\,g; s,\$,$$,g
959 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
962 test "$program_prefix" != NONE &&
963 program_transform_name="s,^,${program_prefix},;$program_transform_name"
964 # Use a double $ so make ignores it.
965 test "$program_suffix" != NONE &&
966 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
968 # sed with no file args requires a program.
969 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
971 for ac_prog in mawk gawk nawk awk
973 # Extract the first word of "$ac_prog", so it can be a program name with args.
974 set dummy $ac_prog; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$AWK"; then
981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_AWK="$ac_prog"
995 AWK="$ac_cv_prog_AWK"
996 if test -n "$AWK"; then
997 echo "$ac_t""$AWK" 1>&6
999 echo "$ac_t""no" 1>&6
1002 test -n "$AWK" && break
1005 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${MAKE-make} sets \${MAKE}" >&5
1007 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1008 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftestmake <<\EOF
1013 @echo 'ac_maketemp="${MAKE}"'
1015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1016 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1017 if test -n "$ac_maketemp"; then
1018 eval ac_cv_prog_make_${ac_make}_set=yes
1020 eval ac_cv_prog_make_${ac_make}_set=no
1024 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1028 echo "$ac_t""no" 1>&6
1029 SET_MAKE="MAKE=${MAKE-make}"
1038 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1039 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1044 missing_dir=`cd $ac_aux_dir && pwd`
1045 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working aclocal" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 ACLOCAL="$missing_dir/missing aclocal"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoconf" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOCONF="$missing_dir/missing autoconf"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working automake" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (automake --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 AUTOMAKE="$missing_dir/missing automake"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working autoheader" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1090 AUTOHEADER=autoheader
1091 echo "$ac_t""found" 1>&6
1093 AUTOHEADER="$missing_dir/missing autoheader"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working makeinfo" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1104 echo "$ac_t""found" 1>&6
1106 MAKEINFO="$missing_dir/missing makeinfo"
1107 echo "$ac_t""missing" 1>&6
1110 install_sh="$missing_dir/install-sh"
1111 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1113 for ac_prog in gnutar gtar tar
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy $ac_prog; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$AMTAR"; then
1123 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AMTAR="$ac_prog"
1137 AMTAR="$ac_cv_prog_AMTAR"
1138 if test -n "$AMTAR"; then
1139 echo "$ac_t""$AMTAR" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AMTAR" && break
1149 if test -n "$AMTAR"; then
1150 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1155 cat >> confdefs.h <<EOF
1156 #define OPENLDAP_PACKAGE "$PACKAGE"
1159 cat >> confdefs.h <<EOF
1160 #define OPENLDAP_VERSION "$VERSION"
1164 cat >> confdefs.h <<EOF
1165 #define LDAP_VENDOR_VERSION $OL_API_INC
1168 cat >> confdefs.h <<EOF
1169 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1172 cat >> confdefs.h <<EOF
1173 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1176 cat >> confdefs.h <<EOF
1177 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1181 OPENLDAP_LIBVERSION=$OL_API_LIB
1185 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1186 echo "configure:1187: checking configure arguments" >&5
1191 ldap_subdir="/openldap"
1193 # Check whether --with-subdir or --without-subdir was given.
1194 if test "${with_subdir+set}" = set; then
1195 withval="$with_subdir"
1202 ldap_subdir="$withval"
1205 ldap_subdir="/$withval"
1212 # OpenLDAP --enable-debug
1213 # Check whether --enable-debug or --disable-debug was given.
1214 if test "${enable_debug+set}" = set; then
1215 enableval="$enable_debug"
1218 for ol_val in auto yes no ; do
1219 if test "$enableval" = "$ol_val" ; then
1223 if test "$ol_arg" = "invalid" ; then
1224 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1226 ol_enable_debug="$ol_arg"
1229 ol_enable_debug="yes"
1231 # end --enable-debug
1232 # OpenLDAP --enable-syslog
1233 # Check whether --enable-syslog or --disable-syslog was given.
1234 if test "${enable_syslog+set}" = set; then
1235 enableval="$enable_syslog"
1238 for ol_val in auto yes no ; do
1239 if test "$enableval" = "$ol_val" ; then
1243 if test "$ol_arg" = "invalid" ; then
1244 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1246 ol_enable_syslog="$ol_arg"
1249 ol_enable_syslog="auto"
1251 # end --enable-syslog
1252 # OpenLDAP --enable-proctitle
1253 # Check whether --enable-proctitle or --disable-proctitle was given.
1254 if test "${enable_proctitle+set}" = set; then
1255 enableval="$enable_proctitle"
1258 for ol_val in auto yes no ; do
1259 if test "$enableval" = "$ol_val" ; then
1263 if test "$ol_arg" = "invalid" ; then
1264 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1266 ol_enable_proctitle="$ol_arg"
1269 ol_enable_proctitle="yes"
1271 # end --enable-proctitle
1272 # OpenLDAP --enable-cache
1273 # Check whether --enable-cache or --disable-cache was given.
1274 if test "${enable_cache+set}" = set; then
1275 enableval="$enable_cache"
1278 for ol_val in auto yes no ; do
1279 if test "$enableval" = "$ol_val" ; then
1283 if test "$ol_arg" = "invalid" ; then
1284 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1286 ol_enable_cache="$ol_arg"
1289 ol_enable_cache="no"
1291 # end --enable-cache
1292 # OpenLDAP --enable-referrals
1293 # Check whether --enable-referrals or --disable-referrals was given.
1294 if test "${enable_referrals+set}" = set; then
1295 enableval="$enable_referrals"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1306 ol_enable_referrals="$ol_arg"
1309 ol_enable_referrals="no"
1311 # end --enable-referrals
1312 # OpenLDAP --enable-kbind
1313 # Check whether --enable-kbind or --disable-kbind was given.
1314 if test "${enable_kbind+set}" = set; then
1315 enableval="$enable_kbind"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1326 ol_enable_kbind="$ol_arg"
1329 ol_enable_kbind="no"
1331 # end --enable-kbind
1332 # OpenLDAP --enable-ipv6
1333 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1334 if test "${enable_ipv6+set}" = set; then
1335 enableval="$enable_ipv6"
1338 for ol_val in auto yes no ; do
1339 if test "$enableval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1346 ol_enable_ipv6="$ol_arg"
1349 ol_enable_ipv6="auto"
1352 # OpenLDAP --enable-local
1353 # Check whether --enable-local or --disable-local was given.
1354 if test "${enable_local+set}" = set; then
1355 enableval="$enable_local"
1358 for ol_val in auto yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1366 ol_enable_local="$ol_arg"
1369 ol_enable_local="auto"
1371 # end --enable-local
1372 # OpenLDAP --enable-rewrite
1373 # Check whether --enable-rewrite or --disable-rewrite was given.
1374 if test "${enable_rewrite+set}" = set; then
1375 enableval="$enable_rewrite"
1378 for ol_val in auto yes no ; do
1379 if test "$enableval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1386 ol_enable_rewrite="$ol_arg"
1389 ol_enable_rewrite="no"
1391 # end --enable-rewrite
1392 # OpenLDAP --enable-x_compile
1393 # Check whether --enable-x_compile or --disable-x_compile was given.
1394 if test "${enable_x_compile+set}" = set; then
1395 enableval="$enable_x_compile"
1398 for ol_val in yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1406 ol_enable_x_compile="$ol_arg"
1409 ol_enable_x_compile="no"
1411 # end --enable-x_compile
1414 # OpenLDAP --with-cyrus_sasl
1415 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1416 if test "${with_cyrus_sasl+set}" = set; then
1417 withval="$with_cyrus_sasl"
1420 for ol_val in auto yes no ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1428 ol_with_cyrus_sasl="$ol_arg"
1431 ol_with_cyrus_sasl="auto"
1433 # end --with-cyrus_sasl
1435 # OpenLDAP --with-fetch
1436 # Check whether --with-fetch or --without-fetch was given.
1437 if test "${with_fetch+set}" = set; then
1438 withval="$with_fetch"
1441 for ol_val in auto yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1449 ol_with_fetch="$ol_arg"
1452 ol_with_fetch="auto"
1456 # OpenLDAP --with-kerberos
1457 # Check whether --with-kerberos or --without-kerberos was given.
1458 if test "${with_kerberos+set}" = set; then
1459 withval="$with_kerberos"
1462 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1470 ol_with_kerberos="$ol_arg"
1473 ol_with_kerberos="auto"
1475 # end --with-kerberos
1477 # OpenLDAP --with-readline
1478 # Check whether --with-readline or --without-readline was given.
1479 if test "${with_readline+set}" = set; then
1480 withval="$with_readline"
1483 for ol_val in auto yes no ; do
1484 if test "$withval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1491 ol_with_readline="$ol_arg"
1494 ol_with_readline="auto"
1496 # end --with-readline
1498 # OpenLDAP --with-threads
1499 # Check whether --with-threads or --without-threads was given.
1500 if test "${with_threads+set}" = set; then
1501 withval="$with_threads"
1504 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1512 ol_with_threads="$ol_arg"
1515 ol_with_threads="auto"
1517 # end --with-threads
1519 # OpenLDAP --with-tls
1520 # Check whether --with-tls or --without-tls was given.
1521 if test "${with_tls+set}" = set; then
1525 for ol_val in auto ssleay openssl yes no ; do
1526 if test "$withval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1533 ol_with_tls="$ol_arg"
1540 # OpenLDAP --with-yielding_select
1541 # Check whether --with-yielding_select or --without-yielding_select was given.
1542 if test "${with_yielding_select+set}" = set; then
1543 withval="$with_yielding_select"
1546 for ol_val in auto yes no manual ; do
1547 if test "$withval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1554 ol_with_yielding_select="$ol_arg"
1557 ol_with_yielding_select="auto"
1559 # end --with-yielding_select
1563 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1564 if test "${with_xxslapdoptions+set}" = set; then
1565 withval="$with_xxslapdoptions"
1569 # OpenLDAP --enable-slapd
1570 # Check whether --enable-slapd or --disable-slapd was given.
1571 if test "${enable_slapd+set}" = set; then
1572 enableval="$enable_slapd"
1575 for ol_val in auto yes no ; do
1576 if test "$enableval" = "$ol_val" ; then
1580 if test "$ol_arg" = "invalid" ; then
1581 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1583 ol_enable_slapd="$ol_arg"
1586 ol_enable_slapd="yes"
1588 # end --enable-slapd
1589 # OpenLDAP --enable-aci
1590 # Check whether --enable-aci or --disable-aci was given.
1591 if test "${enable_aci+set}" = set; then
1592 enableval="$enable_aci"
1595 for ol_val in auto yes no ; do
1596 if test "$enableval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1603 ol_enable_aci="$ol_arg"
1609 # OpenLDAP --enable-cleartext
1610 # Check whether --enable-cleartext or --disable-cleartext was given.
1611 if test "${enable_cleartext+set}" = set; then
1612 enableval="$enable_cleartext"
1615 for ol_val in auto yes no ; do
1616 if test "$enableval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1623 ol_enable_cleartext="$ol_arg"
1626 ol_enable_cleartext="yes"
1628 # end --enable-cleartext
1629 # OpenLDAP --enable-crypt
1630 # Check whether --enable-crypt or --disable-crypt was given.
1631 if test "${enable_crypt+set}" = set; then
1632 enableval="$enable_crypt"
1635 for ol_val in auto yes no ; do
1636 if test "$enableval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1643 ol_enable_crypt="$ol_arg"
1646 ol_enable_crypt="no"
1648 # end --enable-crypt
1649 # OpenLDAP --enable-dynamic
1650 # Check whether --enable-dynamic or --disable-dynamic was given.
1651 if test "${enable_dynamic+set}" = set; then
1652 enableval="$enable_dynamic"
1655 for ol_val in auto yes no ; do
1656 if test "$enableval" = "$ol_val" ; then
1660 if test "$ol_arg" = "invalid" ; then
1661 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1663 ol_enable_dynamic="$ol_arg"
1666 ol_enable_dynamic="no"
1668 # end --enable-dynamic
1669 # OpenLDAP --enable-kpasswd
1670 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1671 if test "${enable_kpasswd+set}" = set; then
1672 enableval="$enable_kpasswd"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1683 ol_enable_kpasswd="$ol_arg"
1686 ol_enable_kpasswd="no"
1688 # end --enable-kpasswd
1689 # OpenLDAP --enable-lmpasswd
1690 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1691 if test "${enable_lmpasswd+set}" = set; then
1692 enableval="$enable_lmpasswd"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1703 ol_enable_lmpasswd="$ol_arg"
1706 ol_enable_lmpasswd="no"
1708 # end --enable-lmpasswd
1709 # OpenLDAP --enable-spasswd
1710 # Check whether --enable-spasswd or --disable-spasswd was given.
1711 if test "${enable_spasswd+set}" = set; then
1712 enableval="$enable_spasswd"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1723 ol_enable_spasswd="$ol_arg"
1726 ol_enable_spasswd="no"
1728 # end --enable-spasswd
1729 # OpenLDAP --enable-modules
1730 # Check whether --enable-modules or --disable-modules was given.
1731 if test "${enable_modules+set}" = set; then
1732 enableval="$enable_modules"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1743 ol_enable_modules="$ol_arg"
1746 ol_enable_modules="no"
1748 # end --enable-modules
1749 # OpenLDAP --enable-phonetic
1750 # Check whether --enable-phonetic or --disable-phonetic was given.
1751 if test "${enable_phonetic+set}" = set; then
1752 enableval="$enable_phonetic"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1763 ol_enable_phonetic="$ol_arg"
1766 ol_enable_phonetic="no"
1768 # end --enable-phonetic
1769 # OpenLDAP --enable-rlookups
1770 # Check whether --enable-rlookups or --disable-rlookups was given.
1771 if test "${enable_rlookups+set}" = set; then
1772 enableval="$enable_rlookups"
1775 for ol_val in auto yes no ; do
1776 if test "$enableval" = "$ol_val" ; then
1780 if test "$ol_arg" = "invalid" ; then
1781 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1783 ol_enable_rlookups="$ol_arg"
1786 ol_enable_rlookups="no"
1788 # end --enable-rlookups
1789 # OpenLDAP --enable-slp
1790 # Check whether --enable-slp or --disable-slp was given.
1791 if test "${enable_slp+set}" = set; then
1792 enableval="$enable_slp"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1803 ol_enable_slp="$ol_arg"
1809 # OpenLDAP --enable-wrappers
1810 # Check whether --enable-wrappers or --disable-wrappers was given.
1811 if test "${enable_wrappers+set}" = set; then
1812 enableval="$enable_wrappers"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1823 ol_enable_wrappers="$ol_arg"
1826 ol_enable_wrappers="no"
1828 # end --enable-wrappers
1830 # OpenLDAP --enable-bdb
1831 # Check whether --enable-bdb or --disable-bdb was given.
1832 if test "${enable_bdb+set}" = set; then
1833 enableval="$enable_bdb"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1844 ol_enable_bdb="$ol_arg"
1850 # OpenLDAP --with-bdb_module
1851 # Check whether --with-bdb_module or --without-bdb_module was given.
1852 if test "${with_bdb_module+set}" = set; then
1853 withval="$with_bdb_module"
1856 for ol_val in static dynamic ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1864 ol_with_bdb_module="$ol_arg"
1867 ol_with_bdb_module="static"
1869 # end --with-bdb_module
1871 # OpenLDAP --enable-dnssrv
1872 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1873 if test "${enable_dnssrv+set}" = set; then
1874 enableval="$enable_dnssrv"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1885 ol_enable_dnssrv="$ol_arg"
1888 ol_enable_dnssrv="no"
1890 # end --enable-dnssrv
1891 # OpenLDAP --with-dnssrv_module
1892 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1893 if test "${with_dnssrv_module+set}" = set; then
1894 withval="$with_dnssrv_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1905 ol_with_dnssrv_module="$ol_arg"
1908 ol_with_dnssrv_module="static"
1910 # end --with-dnssrv_module
1912 # OpenLDAP --enable-ldap
1913 # Check whether --enable-ldap or --disable-ldap was given.
1914 if test "${enable_ldap+set}" = set; then
1915 enableval="$enable_ldap"
1918 for ol_val in auto yes no ; do
1919 if test "$enableval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1926 ol_enable_ldap="$ol_arg"
1932 # OpenLDAP --with-ldap_module
1933 # Check whether --with-ldap_module or --without-ldap_module was given.
1934 if test "${with_ldap_module+set}" = set; then
1935 withval="$with_ldap_module"
1938 for ol_val in static dynamic ; do
1939 if test "$withval" = "$ol_val" ; then
1943 if test "$ol_arg" = "invalid" ; then
1944 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1946 ol_with_ldap_module="$ol_arg"
1949 ol_with_ldap_module="static"
1951 # end --with-ldap_module
1953 # OpenLDAP --enable-ldbm
1954 # Check whether --enable-ldbm or --disable-ldbm was given.
1955 if test "${enable_ldbm+set}" = set; then
1956 enableval="$enable_ldbm"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1967 ol_enable_ldbm="$ol_arg"
1973 # OpenLDAP --with-ldbm_api
1974 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1975 if test "${with_ldbm_api+set}" = set; then
1976 withval="$with_ldbm_api"
1979 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1980 if test "$withval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1987 ol_with_ldbm_api="$ol_arg"
1990 ol_with_ldbm_api="auto"
1992 # end --with-ldbm_api
1994 # OpenLDAP --with-ldbm_module
1995 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1996 if test "${with_ldbm_module+set}" = set; then
1997 withval="$with_ldbm_module"
2000 for ol_val in static dynamic ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2008 ol_with_ldbm_module="$ol_arg"
2011 ol_with_ldbm_module="static"
2013 # end --with-ldbm_module
2015 # OpenLDAP --with-ldbm_type
2016 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2017 if test "${with_ldbm_type+set}" = set; then
2018 withval="$with_ldbm_type"
2021 for ol_val in auto btree hash ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2029 ol_with_ldbm_type="$ol_arg"
2032 ol_with_ldbm_type="auto"
2034 # end --with-ldbm_type
2036 # OpenLDAP --enable-meta
2037 # Check whether --enable-meta or --disable-meta was given.
2038 if test "${enable_meta+set}" = set; then
2039 enableval="$enable_meta"
2042 for ol_val in auto yes no ; do
2043 if test "$enableval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2050 ol_enable_meta="$ol_arg"
2056 # OpenLDAP --with-meta_module
2057 # Check whether --with-meta_module or --without-meta_module was given.
2058 if test "${with_meta_module+set}" = set; then
2059 withval="$with_meta_module"
2062 for ol_val in static dynamic ; do
2063 if test "$withval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2070 ol_with_meta_module="$ol_arg"
2073 ol_with_meta_module="static"
2075 # end --with-meta_module
2077 # OpenLDAP --enable-monitor
2078 # Check whether --enable-monitor or --disable-monitor was given.
2079 if test "${enable_monitor+set}" = set; then
2080 enableval="$enable_monitor"
2083 for ol_val in auto yes no ; do
2084 if test "$enableval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2091 ol_enable_monitor="$ol_arg"
2094 ol_enable_monitor="no"
2096 # end --enable-monitor
2097 # OpenLDAP --with-monitor_module
2098 # Check whether --with-monitor_module or --without-monitor_module was given.
2099 if test "${with_monitor_module+set}" = set; then
2100 withval="$with_monitor_module"
2103 for ol_val in static dynamic ; do
2104 if test "$withval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2111 ol_with_monitor_module="$ol_arg"
2114 ol_with_monitor_module="static"
2116 # end --with-monitor_module
2118 # OpenLDAP --enable-passwd
2119 # Check whether --enable-passwd or --disable-passwd was given.
2120 if test "${enable_passwd+set}" = set; then
2121 enableval="$enable_passwd"
2124 for ol_val in auto yes no ; do
2125 if test "$enableval" = "$ol_val" ; then
2129 if test "$ol_arg" = "invalid" ; then
2130 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2132 ol_enable_passwd="$ol_arg"
2135 ol_enable_passwd="no"
2137 # end --enable-passwd
2138 # OpenLDAP --with-passwd_module
2139 # Check whether --with-passwd_module or --without-passwd_module was given.
2140 if test "${with_passwd_module+set}" = set; then
2141 withval="$with_passwd_module"
2144 for ol_val in static dynamic ; do
2145 if test "$withval" = "$ol_val" ; then
2149 if test "$ol_arg" = "invalid" ; then
2150 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2152 ol_with_passwd_module="$ol_arg"
2155 ol_with_passwd_module="static"
2157 # end --with-passwd_module
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in auto yes no ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --with-perl_module
2180 # Check whether --with-perl_module or --without-perl_module was given.
2181 if test "${with_perl_module+set}" = set; then
2182 withval="$with_perl_module"
2185 for ol_val in static dynamic ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2193 ol_with_perl_module="$ol_arg"
2196 ol_with_perl_module="static"
2198 # end --with-perl_module
2200 # OpenLDAP --enable-shell
2201 # Check whether --enable-shell or --disable-shell was given.
2202 if test "${enable_shell+set}" = set; then
2203 enableval="$enable_shell"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2214 ol_enable_shell="$ol_arg"
2217 ol_enable_shell="no"
2219 # end --enable-shell
2220 # OpenLDAP --with-shell_module
2221 # Check whether --with-shell_module or --without-shell_module was given.
2222 if test "${with_shell_module+set}" = set; then
2223 withval="$with_shell_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2234 ol_with_shell_module="$ol_arg"
2237 ol_with_shell_module="static"
2239 # end --with-shell_module
2241 # OpenLDAP --enable-sql
2242 # Check whether --enable-sql or --disable-sql was given.
2243 if test "${enable_sql+set}" = set; then
2244 enableval="$enable_sql"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2255 ol_enable_sql="$ol_arg"
2261 # OpenLDAP --with-sql_module
2262 # Check whether --with-sql_module or --without-sql_module was given.
2263 if test "${with_sql_module+set}" = set; then
2264 withval="$with_sql_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2275 ol_with_sql_module="$ol_arg"
2278 ol_with_sql_module="static"
2280 # end --with-sql_module
2282 # OpenLDAP --enable-tcl
2283 # Check whether --enable-tcl or --disable-tcl was given.
2284 if test "${enable_tcl+set}" = set; then
2285 enableval="$enable_tcl"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2296 ol_enable_tcl="$ol_arg"
2302 # OpenLDAP --with-tcl_module
2303 # Check whether --with-tcl_module or --without-tcl_module was given.
2304 if test "${with_tcl_module+set}" = set; then
2305 withval="$with_tcl_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2316 ol_with_tcl_module="$ol_arg"
2319 ol_with_tcl_module="static"
2321 # end --with-tcl_module
2324 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2325 if test "${with_xxslurpdoptions+set}" = set; then
2326 withval="$with_xxslurpdoptions"
2330 # OpenLDAP --enable-slurpd
2331 # Check whether --enable-slurpd or --disable-slurpd was given.
2332 if test "${enable_slurpd+set}" = set; then
2333 enableval="$enable_slurpd"
2336 for ol_val in auto yes no ; do
2337 if test "$enableval" = "$ol_val" ; then
2341 if test "$ol_arg" = "invalid" ; then
2342 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2344 ol_enable_slurpd="$ol_arg"
2347 ol_enable_slurpd="auto"
2349 # end --enable-slurpd
2351 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2352 if test "${with_xxliboptions+set}" = set; then
2353 withval="$with_xxliboptions"
2357 # Check whether --enable-static or --disable-static was given.
2358 if test "${enable_static+set}" = set; then
2359 enableval="$enable_static"
2360 p=${PACKAGE-default}
2361 case "$enableval" in
2362 yes) enable_static=yes ;;
2363 no) enable_static=no ;;
2366 # Look at the argument we got. We use all the common list separators.
2367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2368 for pkg in $enableval; do
2369 if test "X$pkg" = "X$p"; then
2380 # Check whether --enable-shared or --disable-shared was given.
2381 if test "${enable_shared+set}" = set; then
2382 enableval="$enable_shared"
2383 p=${PACKAGE-default}
2384 case "$enableval" in
2385 yes) enable_shared=yes ;;
2386 no) enable_shared=no ;;
2389 # Look at the argument we got. We use all the common list separators.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2391 for pkg in $enableval; do
2392 if test "X$pkg" = "X$p"; then
2406 if test $ol_enable_slapd = no ; then
2407 if test $ol_enable_bdb = yes ; then
2408 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2410 if test $ol_enable_dnssrv = yes ; then
2411 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2413 if test $ol_enable_ldap = yes ; then
2414 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2416 if test $ol_enable_ldbm = yes ; then
2417 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2419 if test $ol_enable_meta = yes ; then
2420 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2422 if test $ol_enable_monitor = yes ; then
2423 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2425 if test $ol_enable_passwd = yes ; then
2426 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2428 if test $ol_enable_perl = yes ; then
2429 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2431 if test $ol_enable_shell = yes ; then
2432 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2434 if test $ol_enable_tcl = yes ; then
2435 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2437 if test $ol_enable_sql = yes ; then
2438 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2440 if test $ol_enable_modules = yes ; then
2441 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2443 if test $ol_enable_wrappers = yes ; then
2444 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2446 if test $ol_enable_phonetic = yes ; then
2447 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2449 if test $ol_enable_rlookups = yes ; then
2450 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2452 if test $ol_enable_aci = yes ; then
2453 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2455 if test $ol_with_ldbm_api != auto ; then
2456 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2458 if test $ol_with_ldbm_type != auto ; then
2459 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2461 if test $ol_with_bdb_module != static ; then
2462 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2464 if test $ol_with_dnssrv_module != static ; then
2465 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2467 if test $ol_with_ldap_module != static ; then
2468 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2470 if test $ol_with_ldbm_module != static ; then
2471 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2473 if test $ol_with_meta_module != static ; then
2474 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2476 if test $ol_with_monitor_module != static ; then
2477 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2479 if test $ol_with_passwd_module != static ; then
2480 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2482 if test $ol_with_perl_module != static ; then
2483 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2485 if test $ol_with_shell_module != static ; then
2486 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2488 if test $ol_with_tcl_module != static ; then
2489 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2491 if test $ol_with_sql_module != static ; then
2492 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2494 if test $ol_enable_slurpd = yes ; then
2495 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2497 if test $ol_enable_rewrite = yes ; then
2498 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2501 # force settings to no
2507 ol_enable_monitor=no
2514 ol_enable_modules=no
2515 ol_enable_phonetic=no
2516 ol_enable_rlookups=no
2518 ol_enable_wrappers=no
2519 ol_enable_dynamic=no
2522 ol_with_ldbm_type=no
2524 ol_with_bdb_module=static
2525 ol_with_dnssrv_module=static
2526 ol_with_ldap_module=static
2527 ol_with_ldbm_module=static
2528 ol_with_meta_module=static
2529 ol_with_monitor_module=static
2530 ol_with_passwd_module=static
2531 ol_with_perl_module=static
2532 ol_with_shell_module=static
2533 ol_with_tcl_module=static
2534 ol_with_sql_module=static
2538 ol_enable_rewrite=no
2540 elif test $ol_enable_ldbm = no ; then
2542 if test $ol_with_ldbm_api != auto ; then
2543 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2546 if test $ol_with_ldbm_type != auto ; then
2547 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2550 if test $ol_with_ldbm_module != static ; then
2551 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2554 if test $ol_enable_modules != yes -a \
2555 $ol_enable_bdb = no -a \
2556 $ol_enable_dnssrv = no -a \
2557 $ol_enable_ldap = no -a \
2558 $ol_enable_meta = no -a \
2559 $ol_enable_monitor = no -a \
2560 $ol_enable_passwd = no -a \
2561 $ol_enable_perl = no -a \
2562 $ol_enable_shell = no -a \
2563 $ol_enable_sql = no -a \
2564 $ol_enable_tcl = no ; then
2566 if test $ol_enable_slapd = yes ; then
2567 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2569 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2575 ol_with_ldbm_type=no
2576 ol_with_ldbm_module=static
2578 if test $ol_enable_bdb != no ; then
2579 ol_with_ldbm_api=berkeley
2583 if test $ol_with_ldbm_api = gdbm -a \
2584 $ol_with_ldbm_type = btree ; then
2585 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2587 if test $ol_with_ldbm_api = mdbm -a \
2588 $ol_with_ldbm_type = btree ; then
2589 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2591 if test $ol_with_ldbm_api = ndbm -a \
2592 $ol_with_ldbm_type = btree ; then
2593 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2596 if test $ol_enable_bdb = yes ; then
2597 if test $ol_with_ldbm_api = auto ; then
2598 ol_with_ldbm_api=berkeley
2599 elif test $ol_with_ldbm_api != berkeley ; then
2600 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2603 elif test $ol_enable_bdb = auto ; then
2604 if test $ol_with_ldbm_api != berkeley \
2605 -o $ol_with_ldbm_api != auto ; then
2606 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2612 if test $ol_enable_slurpd = yes ; then
2613 if test $ol_with_threads = no ; then
2614 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2618 if test $ol_enable_lmpasswd = yes ; then
2619 if test $ol_with_tls = no ; then
2620 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2624 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2625 if test $ol_with_kerberos = no ; then
2626 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2627 elif test $ol_with_kerberos = auto ; then
2628 ol_with_kerberos=yes
2631 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2632 if test $ol_with_kerberos = auto ; then
2634 elif test $ol_with_kerberos != no ; then
2635 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2640 if test $ol_enable_spasswd = yes ; then
2641 if test $ol_with_cyrus_sasl = no ; then
2642 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2644 ol_with_cyrus_sasl=yes
2647 echo "$ac_t""done" 1>&6
2676 BUILD_BDB_DYNAMIC=static
2677 BUILD_DNSSRV_DYNAMIC=static
2678 BUILD_LDAP_DYNAMIC=static
2679 BUILD_LDBM_DYNAMIC=static
2680 BUILD_META_DYNAMIC=static
2681 BUILD_MONITOR_DYNAMIC=static
2682 BUILD_PASSWD_DYNAMIC=static
2683 BUILD_PERL_DYNAMIC=static
2684 BUILD_SHELL_DYNAMIC=static
2685 BUILD_TCL_DYNAMIC=static
2686 BUILD_SQL_DYNAMIC=static
2688 SLAPD_MODULES_LDFLAGS=
2689 SLAPD_MODULES_CPPFLAGS=
2692 SLAPD_STATIC_BACKENDS=
2693 SLAPD_DYNAMIC_BACKENDS=
2717 cat >> confdefs.h <<\EOF
2718 #define HAVE_MKVERSION 1
2726 *-*-aix*) if test -z "$CC" ; then
2727 case "$ol_with_threads" in
2728 auto | yes | posix) ol_aix_threads=yes ;;
2734 if test $ol_aix_threads = yes ; then
2735 if test -z "${CC}" ; then
2736 for ac_prog in cc_r xlc_r cc
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_word" >&5
2742 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 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 ac_cv_prog_CC="$ac_prog"
2761 if test -n "$CC"; then
2762 echo "$ac_t""$CC" 1>&6
2764 echo "$ac_t""no" 1>&6
2767 test -n "$CC" && break
2771 if test "$CC" = cc ; then
2772 if test $ol_with_threads != auto ; then
2773 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2775 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2781 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2782 ol_with_threads=posix
2783 ol_cv_pthread_create=yes
2787 if test -z "${CC}"; then
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_word" >&5
2794 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2805 ac_cv_prog_CC="$ac_prog"
2813 if test -n "$CC"; then
2814 echo "$ac_t""$CC" 1>&6
2816 echo "$ac_t""no" 1>&6
2819 test -n "$CC" && break
2825 for ac_prog in ar gar
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_word" >&5
2831 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 if test -n "$AR"; then
2835 ac_cv_prog_AR="$AR" # Let the user override the test.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2839 for ac_dir in $ac_dummy; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_prog_AR="$ac_prog"
2850 if test -n "$AR"; then
2851 echo "$ac_t""$AR" 1>&6
2853 echo "$ac_t""no" 1>&6
2856 test -n "$AR" && break
2858 test -n "$AR" || AR="ar"
2863 # Check whether --enable-fast-install or --disable-fast-install was given.
2864 if test "${enable_fast_install+set}" = set; then
2865 enableval="$enable_fast_install"
2866 p=${PACKAGE-default}
2867 case "$enableval" in
2868 yes) enable_fast_install=yes ;;
2869 no) enable_fast_install=no ;;
2871 enable_fast_install=no
2872 # Look at the argument we got. We use all the common list separators.
2873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2874 for pkg in $enableval; do
2875 if test "X$pkg" = "X$p"; then
2876 enable_fast_install=yes
2883 enable_fast_install=yes
2886 # Extract the first word of "ranlib", so it can be a program name with args.
2887 set dummy ranlib; ac_word=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 if test -n "$RANLIB"; then
2894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2898 for ac_dir in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_prog_RANLIB="ranlib"
2906 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2909 RANLIB="$ac_cv_prog_RANLIB"
2910 if test -n "$RANLIB"; then
2911 echo "$ac_t""$RANLIB" 1>&6
2913 echo "$ac_t""no" 1>&6
2916 # Extract the first word of "gcc", so it can be a program name with args.
2917 set dummy gcc; ac_word=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2939 if test -n "$CC"; then
2940 echo "$ac_t""$CC" 1>&6
2942 echo "$ac_t""no" 1>&6
2945 if test -z "$CC"; then
2946 # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2959 for ac_dir in $ac_dummy; do
2960 test -z "$ac_dir" && ac_dir=.
2961 if test -f $ac_dir/$ac_word; then
2962 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2963 ac_prog_rejected=yes
2971 if test $ac_prog_rejected = yes; then
2972 # We found a bogon in the path, so make sure we never use it.
2973 set dummy $ac_cv_prog_CC
2975 if test $# -gt 0; then
2976 # We chose a different compiler from the bogus one.
2977 # However, it has the same basename, so the bogon will be chosen
2978 # first if we set CC to just the basename; use the full file name.
2980 set dummy "$ac_dir/$ac_word" "$@"
2988 if test -n "$CC"; then
2989 echo "$ac_t""$CC" 1>&6
2991 echo "$ac_t""no" 1>&6
2994 if test -z "$CC"; then
2995 case "`uname -s`" in
2996 *win32* | *WIN32* | *CYGWIN*)
2997 # Extract the first word of "cl", so it can be a program name with args.
2998 set dummy cl; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 for ac_dir in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir=.
3011 if test -f $ac_dir/$ac_word; then
3020 if test -n "$CC"; then
3021 echo "$ac_t""$CC" 1>&6
3023 echo "$ac_t""no" 1>&6
3028 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3032 echo "configure:3033: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3039 cross_compiling=$ac_cv_prog_cc_cross
3041 cat > conftest.$ac_ext << EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 ac_cv_prog_cc_works=yes
3050 # If we can't run a trivial program, we are probably using a cross compiler.
3051 if (./conftest; exit) 2>/dev/null; then
3052 ac_cv_prog_cc_cross=no
3054 ac_cv_prog_cc_cross=yes
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 ac_cv_prog_cc_works=no
3063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3064 ac_cpp='$CPP $CPPFLAGS'
3065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3067 cross_compiling=$ac_cv_prog_cc_cross
3069 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3070 if test $ac_cv_prog_cc_works = no; then
3071 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3073 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3074 echo "configure:3075: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3075 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3076 cross_compiling=$ac_cv_prog_cc_cross
3078 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3079 echo "configure:3080: checking whether we are using GNU C" >&5
3080 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.c <<EOF
3088 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3095 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3097 if test $ac_cv_prog_gcc = yes; then
3103 ac_test_CFLAGS="${CFLAGS+set}"
3104 ac_save_CFLAGS="$CFLAGS"
3106 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3107 echo "configure:3108: checking whether ${CC-cc} accepts -g" >&5
3108 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 echo 'void f(){}' > conftest.c
3112 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3121 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3122 if test "$ac_test_CFLAGS" = set; then
3123 CFLAGS="$ac_save_CFLAGS"
3124 elif test $ac_cv_prog_cc_g = yes; then
3125 if test "$GCC" = yes; then
3131 if test "$GCC" = yes; then
3138 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3139 if test "${with_gnu_ld+set}" = set; then
3140 withval="$with_gnu_ld"
3141 test "$withval" = no || with_gnu_ld=yes
3147 if test "$ac_cv_prog_gcc" = yes; then
3148 # Check if gcc -print-prog-name=ld gives a path.
3149 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3150 echo "configure:3151: checking for ld used by GCC" >&5
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3153 # Accept absolute paths.
3154 [\\/]* | [A-Za-z]:[\\/]*)
3155 re_direlt='/[^/][^/]*/\.\./'
3156 # Canonicalize the path of ld
3157 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3159 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3161 test -z "$LD" && LD="$ac_prog"
3164 # If it fails, then pretend we aren't using GCC.
3168 # If it is relative, then search for the first ld in PATH.
3172 elif test "$with_gnu_ld" = yes; then
3173 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3174 echo "configure:3175: checking for GNU ld" >&5
3176 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3177 echo "configure:3178: checking for non-GNU ld" >&5
3179 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 if test -z "$LD"; then
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3184 for ac_dir in $PATH; do
3185 test -z "$ac_dir" && ac_dir=.
3186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3187 ac_cv_path_LD="$ac_dir/$ac_prog"
3188 # Check to see if the program is GNU ld. I'd rather use --version,
3189 # but apparently some GNU ld's only accept -v.
3190 # Break only if it was the GNU/non-GNU ld that we prefer.
3191 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3192 test "$with_gnu_ld" != no && break
3194 test "$with_gnu_ld" != yes && break
3200 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3205 if test -n "$LD"; then
3206 echo "$ac_t""$LD" 1>&6
3208 echo "$ac_t""no" 1>&6
3210 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3211 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3212 echo "configure:3213: checking if the linker ($LD) is GNU ld" >&5
3213 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3217 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3218 ac_cv_prog_gnu_ld=yes
3220 ac_cv_prog_gnu_ld=no
3224 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3227 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3228 echo "configure:3229: checking for BSD-compatible nm" >&5
3229 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 if test -n "$NM"; then
3233 # Let the user override the test.
3236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3237 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3238 test -z "$ac_dir" && ac_dir=.
3239 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3240 # Check to see if the nm accepts a BSD-compat flag.
3241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3242 # nm: unknown option "B" ignored
3243 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3244 ac_cv_path_NM="$ac_dir/nm -B"
3246 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3247 ac_cv_path_NM="$ac_dir/nm -p"
3250 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3251 continue # so that we can try to find one that supports BSD flags
3256 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3261 echo "$ac_t""$NM" 1>&6
3263 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether ln -s works" >&5
3265 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3269 if ln -s X conftestdata 2>/dev/null
3272 ac_cv_prog_LN_S="ln -s"
3277 LN_S="$ac_cv_prog_LN_S"
3278 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3279 echo "$ac_t""yes" 1>&6
3281 echo "$ac_t""no" 1>&6
3284 if test $host != $build; then
3285 ac_tool_prefix=${host_alias}-
3292 NONE) lt_target="$host" ;;
3293 *) lt_target="$target" ;;
3296 # Check for any special flags to pass to ltconfig.
3297 libtool_flags="--cache-file=$cache_file"
3298 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3299 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3300 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3301 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3302 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3303 libtool_flags="$libtool_flags --enable-dlopen"
3304 libtool_flags="$libtool_flags --enable-win32-dll"
3305 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3306 if test "${enable_libtool_lock+set}" = set; then
3307 enableval="$enable_libtool_lock"
3311 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3312 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3314 # Some flags need to be propagated to the compiler or linker for good
3316 case "$lt_target" in
3318 # Find out which ABI we are using.
3319 echo '#line 3320 "configure"' > conftest.$ac_ext
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321 case "`/usr/bin/file conftest.o`" in
3337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3338 SAVE_CFLAGS="$CFLAGS"
3339 CFLAGS="$CFLAGS -belf"
3340 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3341 echo "configure:3342: checking whether the C compiler needs -belf" >&5
3342 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 lt_cv_cc_needs_belf=yes
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 lt_cv_cc_needs_belf=no
3365 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3366 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3367 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3368 CFLAGS="$SAVE_CFLAGS"
3372 *-*-cygwin* | *-*-mingw*)
3373 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3374 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 if test -n "$DLLTOOL"; then
3381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3395 DLLTOOL="$ac_cv_prog_DLLTOOL"
3396 if test -n "$DLLTOOL"; then
3397 echo "$ac_t""$DLLTOOL" 1>&6
3399 echo "$ac_t""no" 1>&6
3403 if test -z "$ac_cv_prog_DLLTOOL"; then
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "dlltool", so it can be a program name with args.
3406 set dummy dlltool; ac_word=$2
3407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3408 echo "configure:3409: checking for $ac_word" >&5
3409 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 if test -n "$DLLTOOL"; then
3413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 for ac_dir in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir=.
3419 if test -f $ac_dir/$ac_word; then
3420 ac_cv_prog_DLLTOOL="dlltool"
3425 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3428 DLLTOOL="$ac_cv_prog_DLLTOOL"
3429 if test -n "$DLLTOOL"; then
3430 echo "$ac_t""$DLLTOOL" 1>&6
3432 echo "$ac_t""no" 1>&6
3440 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}as; ac_word=$2
3442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_word" >&5
3444 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 if test -n "$AS"; then
3448 ac_cv_prog_AS="$AS" # Let the user override the test.
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3452 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_prog_AS="${ac_tool_prefix}as"
3463 if test -n "$AS"; then
3464 echo "$ac_t""$AS" 1>&6
3466 echo "$ac_t""no" 1>&6
3470 if test -z "$ac_cv_prog_AS"; then
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "as", so it can be a program name with args.
3473 set dummy as; ac_word=$2
3474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3475 echo "configure:3476: checking for $ac_word" >&5
3476 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 if test -n "$AS"; then
3480 ac_cv_prog_AS="$AS" # Let the user override the test.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/$ac_word; then
3492 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3496 if test -n "$AS"; then
3497 echo "$ac_t""$AS" 1>&6
3499 echo "$ac_t""no" 1>&6
3507 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 if test -n "$OBJDUMP"; then
3515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 for ac_dir in $ac_dummy; do
3520 test -z "$ac_dir" && ac_dir=.
3521 if test -f $ac_dir/$ac_word; then
3522 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3529 OBJDUMP="$ac_cv_prog_OBJDUMP"
3530 if test -n "$OBJDUMP"; then
3531 echo "$ac_t""$OBJDUMP" 1>&6
3533 echo "$ac_t""no" 1>&6
3537 if test -z "$ac_cv_prog_OBJDUMP"; then
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "objdump", so it can be a program name with args.
3540 set dummy objdump; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 if test -n "$OBJDUMP"; then
3547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if test -f $ac_dir/$ac_word; then
3554 ac_cv_prog_OBJDUMP="objdump"
3559 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3562 OBJDUMP="$ac_cv_prog_OBJDUMP"
3563 if test -n "$OBJDUMP"; then
3564 echo "$ac_t""$OBJDUMP" 1>&6
3566 echo "$ac_t""no" 1>&6
3579 # Save cache, so that ltconfig can load it
3582 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3583 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3584 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3585 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3586 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3587 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3588 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3589 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3591 # Reload cache, that may have been modified by ltconfig
3594 # This can be used to rebuild libtool when needed
3595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3597 # Always use our own libtool.
3598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3600 # Redirect the config.log output again, so that the ltconfig log is not
3601 # clobbered by the next message.
3602 exec 5>>./config.log
3605 for ac_prog in mawk gawk nawk awk
3607 # Extract the first word of "$ac_prog", so it can be a program name with args.
3608 set dummy $ac_prog; ac_word=$2
3609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_word" >&5
3611 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 if test -n "$AWK"; then
3615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if test -f $ac_dir/$ac_word; then
3622 ac_cv_prog_AWK="$ac_prog"
3629 AWK="$ac_cv_prog_AWK"
3630 if test -n "$AWK"; then
3631 echo "$ac_t""$AWK" 1>&6
3633 echo "$ac_t""no" 1>&6
3636 test -n "$AWK" && break
3639 # test for ln hardlink support
3640 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3641 echo "configure:3642: checking whether ln works" >&5
3642 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 rm -f conftest.src conftest.dst
3646 echo "conftest" > conftest.src
3647 if ln conftest.src conftest.dst 2>/dev/null
3649 ol_cv_prog_LN_H="ln"
3651 ol_cv_prog_LN_H="cp"
3653 rm -f conftest.src conftest.dst
3656 LN_H="$ol_cv_prog_LN_H"
3657 if test "$ol_cv_prog_LN_H" = "ln"; then
3658 echo "$ac_t""yes" 1>&6
3660 echo "$ac_t""no" 1>&6
3663 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether ln -s works" >&5
3665 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3669 if ln -s X conftestdata 2>/dev/null
3672 ac_cv_prog_LN_S="ln -s"
3677 LN_S="$ac_cv_prog_LN_S"
3678 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3679 echo "$ac_t""yes" 1>&6
3681 echo "$ac_t""no" 1>&6
3685 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3689 # Extract the first word of "sendmail", so it can be a program name with args.
3690 set dummy sendmail; ac_word=$2
3691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $ac_word" >&5
3693 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3701 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3705 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3706 for ac_dir in $ac_dummy; do
3707 test -z "$ac_dir" && ac_dir=.
3708 if test -f $ac_dir/$ac_word; then
3709 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3714 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3718 SENDMAIL="$ac_cv_path_SENDMAIL"
3719 if test -n "$SENDMAIL"; then
3720 echo "$ac_t""$SENDMAIL" 1>&6
3722 echo "$ac_t""no" 1>&6
3725 # Extract the first word of "vi", so it can be a program name with args.
3726 set dummy vi; ac_word=$2
3727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_word" >&5
3729 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3734 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3737 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3741 ac_dummy="$PATH:/usr/ucb"
3742 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 if test -f $ac_dir/$ac_word; then
3745 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3750 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3754 EDITOR="$ac_cv_path_EDITOR"
3755 if test -n "$EDITOR"; then
3756 echo "$ac_t""$EDITOR" 1>&6
3758 echo "$ac_t""no" 1>&6
3761 # Extract the first word of "finger", so it can be a program name with args.
3762 set dummy finger; ac_word=$2
3763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_word" >&5
3765 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3773 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3777 ac_dummy="$PATH:/usr/ucb"
3778 for ac_dir in $ac_dummy; do
3779 test -z "$ac_dir" && ac_dir=.
3780 if test -f $ac_dir/$ac_word; then
3781 ac_cv_path_FINGER="$ac_dir/$ac_word"
3786 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3790 FINGER="$ac_cv_path_FINGER"
3791 if test -n "$FINGER"; then
3792 echo "$ac_t""$FINGER" 1>&6
3794 echo "$ac_t""no" 1>&6
3799 if test $ol_enable_perl != no ; then
3800 # Extract the first word of "perl", so it can be a program name with args.
3801 set dummy perl; ac_word=$2
3802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_word" >&5
3804 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3809 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3812 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3817 for ac_dir in $ac_dummy; do
3818 test -z "$ac_dir" && ac_dir=.
3819 if test -f $ac_dir/$ac_word; then
3820 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3825 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3829 PERLBIN="$ac_cv_path_PERLBIN"
3830 if test -n "$PERLBIN"; then
3831 echo "$ac_t""$PERLBIN" 1>&6
3833 echo "$ac_t""no" 1>&6
3837 if test "no$PERLBIN" = "no" ; then
3838 if test $ol_enable_perl = yes ; then
3839 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3843 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3844 if test x"$ol_with_perl_module" = "xstatic" ; then
3845 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3847 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3853 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3854 echo "configure:3855: checking how to run the C preprocessor" >&5
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3859 if test -z "$CPP"; then
3860 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 # This must be in double quotes, not single quotes, because CPP may get
3864 # substituted into the Makefile and "${CC-cc}" will confuse make.
3866 # On the NeXT, cc -E runs the code through the compiler's parser,
3867 # not just through cpp.
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 CPP="${CC-cc} -E -traditional-cpp"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3892 { (eval echo configure:3893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3894 if test -z "$ac_err"; then
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 CPP="${CC-cc} -nologo -E"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3909 { (eval echo configure:3910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3911 if test -z "$ac_err"; then
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3925 ac_cv_prog_CPP="$CPP"
3927 CPP="$ac_cv_prog_CPP"
3929 ac_cv_prog_CPP="$CPP"
3931 echo "$ac_t""$CPP" 1>&6
3934 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3935 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3937 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3938 echo "configure: warning: programs compiled here do run here..." 1>&2
3939 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3941 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3942 echo "configure: warning: programs compiled here do not run here..." 1>&2
3943 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3946 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3947 echo "configure:3948: checking for AIX" >&5
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 egrep "yes" >/dev/null 2>&1; then
3959 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3960 #define _ALL_SOURCE 1
3965 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3971 echo "configure:3972: checking for POSIXized ISC" >&5
3972 if test -d /etc/conf/kconfig.d &&
3973 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3975 echo "$ac_t""yes" 1>&6
3976 ISC=yes # If later tests want to check for ISC.
3977 cat >> confdefs.h <<\EOF
3978 #define _POSIX_SOURCE 1
3981 if test "$GCC" = yes; then
3987 echo "$ac_t""no" 1>&6
3991 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3992 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3993 echo "configure:3994: checking for minix/config.h" >&5
3994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <minix/config.h>
4002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4003 { (eval echo configure:4004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4005 if test -z "$ac_err"; then
4007 eval "ac_cv_header_$ac_safe=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 eval "ac_cv_header_$ac_safe=no"
4017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 echo "$ac_t""no" 1>&6
4025 if test "$MINIX" = yes; then
4026 cat >> confdefs.h <<\EOF
4027 #define _POSIX_SOURCE 1
4030 cat >> confdefs.h <<\EOF
4031 #define _POSIX_1_SOURCE 2
4034 cat >> confdefs.h <<\EOF
4041 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4042 echo "configure:4043: checking for Cygwin environment" >&5
4043 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4053 #define __CYGWIN__ __CYGWIN32__
4058 if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4070 echo "$ac_t""$ac_cv_cygwin" 1>&6
4072 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4073 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4074 echo "configure:4075: checking for mingw32 environment" >&5
4075 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4098 echo "$ac_t""$ac_cv_mingw32" 1>&6
4100 test "$ac_cv_mingw32" = yes && MINGW32=yes
4101 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4102 echo "configure:4103: checking for EMX OS/2 environment" >&5
4103 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4114 if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4126 echo "$ac_t""$ac_cv_emxos2" 1>&6
4128 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4132 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4133 echo "configure:4134: checking for executable suffix" >&5
4134 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4141 echo 'int main () { return 0; }' > conftest.$ac_ext
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4144 for file in conftest.*; do
4146 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4147 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4151 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4154 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4159 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4160 echo "$ac_t""${ac_cv_exeext}" 1>&6
4163 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4164 echo "configure:4165: checking for object suffix" >&5
4165 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4169 echo 'int i = 1;' > conftest.$ac_ext
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 for ac_file in conftest.*; do
4174 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4178 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4183 echo "$ac_t""$ac_cv_objext" 1>&6
4184 OBJEXT=$ac_cv_objext
4185 ac_objext=$ac_cv_objext
4188 cat >> confdefs.h <<EOF
4189 #define EXEEXT "${EXEEXT}"
4193 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4194 echo "configure:4195: checking for be_app in -lbe" >&5
4195 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 ac_save_LIBS="$LIBS"
4200 LIBS="-lbe -lroot -lnet $LIBS"
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 eval "ac_cv_lib_$ac_lib_var=no"
4223 LIBS="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 LIBS="$LIBS -lbe -lroot -lnet"
4230 echo "$ac_t""no" 1>&6
4238 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4239 echo "configure:4240: checking for ${CC-cc} option to accept ANSI C" >&5
4240 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 am_cv_prog_cc_stdc=no
4245 # Don't try gcc -ansi; that turns off useful extensions and
4246 # breaks some systems' header files.
4247 # AIX -qlanglvl=ansi
4248 # Ultrix and OSF/1 -std1
4249 # HP-UX 10.20 and later -Ae
4250 # HP-UX older versions -Aa -D_HPUX_SOURCE
4251 # SVR4 -Xc -D__EXTENSIONS__
4252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 CC="$ac_save_CC $ac_arg"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 #include <sys/types.h>
4261 #include <sys/stat.h>
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4276 s = g (p, va_arg (v,int));
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 if { (eval echo configure:4294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4295 am_cv_prog_cc_stdc="$ac_arg"; break
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4306 if test -z "$am_cv_prog_cc_stdc"; then
4307 echo "$ac_t""none needed" 1>&6
4309 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4311 case "x$am_cv_prog_cc_stdc" in
4313 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4316 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4317 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4320 # test for make depend flag
4323 if test -z "${MKDEP}"; then
4325 if test -z "${MKDEP_FLAGS}"; then
4326 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4327 echo "configure:4328: checking for ${OL_MKDEP} depend flag" >&5
4328 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4333 for flag in "-M" "-xM"; do
4334 cat > conftest.c <<EOF
4337 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4338 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4340 if test ! -f conftest."${ac_object}" ; then
4342 OL_MKDEP_FLAGS="$flag"
4351 echo "$ac_t""$ol_cv_mkdep" 1>&6
4354 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4359 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4364 if test "${ol_cv_mkdep}" = no ; then
4365 # this will soon become an error
4366 echo "configure: warning: do not know how to generate dependencies" 1>&2
4369 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4370 echo "configure:4371: checking for afopen in -ls" >&5
4371 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS="$LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4406 cat >> confdefs.h <<\EOF
4407 #define HAVE_AIX_SECURITY 1
4412 echo "$ac_t""no" 1>&6
4418 if test $ol_enable_modules != no ; then
4419 for ac_hdr in ltdl.h
4421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_hdr" >&5
4424 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4433 { (eval echo configure:4434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4435 if test -z "$ac_err"; then
4437 eval "ac_cv_header_$ac_safe=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_header_$ac_safe=no"
4447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_hdr 1
4455 echo "$ac_t""no" 1>&6
4460 if test $ac_cv_header_ltdl_h = no ; then
4461 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4464 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4465 echo "configure:4466: checking for lt_dlinit in -lltdl" >&5
4466 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 ac_save_LIBS="$LIBS"
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4494 LIBS="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4501 cat >> confdefs.h <<\EOF
4502 #define HAVE_LIBLTDL 1
4507 echo "$ac_t""no" 1>&6
4511 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4512 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4516 ol_with_bdb_module=static
4517 ol_with_dnssrv_module=static
4518 ol_with_ldap_module=static
4519 ol_with_ldbm_module=static
4520 ol_with_meta_module=static
4521 ol_with_monitor_module=static
4522 ol_with_passwd_module=static
4523 ol_with_perl_module=static
4524 ol_with_shell_module=static
4525 ol_with_tcl_module=static
4526 ol_with_sql_module=static
4530 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4531 echo "configure:4532: checking for EBCDIC" >&5
4532 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 #include <__ASCII__/generate_error.h>
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4550 ol_cv_cpp_ebcdic=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4561 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4562 if test $ol_cv_cpp_ebcdic = yes ; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_EBCDIC 1
4569 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4570 echo "configure:4571: checking for ANSI C header files" >&5
4571 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4583 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4585 if test -z "$ac_err"; then
4587 ol_cv_header_stdc=yes
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 ol_cv_header_stdc=no
4597 if test $ol_cv_header_stdc = yes; then
4598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 egrep "memchr" >/dev/null 2>&1; then
4609 ol_cv_header_stdc=no
4615 if test $ol_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 egrep "free" >/dev/null 2>&1; then
4627 ol_cv_header_stdc=no
4633 if test $ol_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652 int main () { int i; for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 ol_cv_header_stdc=no
4672 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4673 if test $ol_cv_header_stdc = yes; then
4674 cat >> confdefs.h <<\EOF
4675 #define STDC_HEADERS 1
4679 ac_cv_header_stdc=disable
4682 if test $ol_cv_header_stdc != yes; then
4683 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_hdr that defines DIR" >&5
4692 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <sys/types.h>
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4706 eval "ac_cv_header_dirent_$ac_safe=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_header_dirent_$ac_safe=no"
4715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4718 cat >> confdefs.h <<EOF
4719 #define $ac_tr_hdr 1
4721 ac_header_dirent=$ac_hdr; break
4723 echo "$ac_t""no" 1>&6
4726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4727 if test $ac_header_dirent = dirent.h; then
4728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4729 echo "configure:4730: checking for opendir in -ldir" >&5
4730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS="$LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4765 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4770 echo "configure:4771: checking for opendir in -lx" >&5
4771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4772 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4806 echo "$ac_t""no" 1>&6
4811 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4812 echo "configure:4813: checking for sys/wait.h that is POSIX.1 compatible" >&5
4813 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 #include <sys/types.h>
4820 #include <sys/wait.h>
4822 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4825 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4830 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 ac_cv_header_sys_wait_h=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 ac_cv_header_sys_wait_h=no
4845 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4846 if test $ac_cv_header_sys_wait_h = yes; then
4847 cat >> confdefs.h <<\EOF
4848 #define HAVE_SYS_WAIT_H 1
4853 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4854 echo "configure:4855: checking POSIX termios" >&5
4855 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 #include <sys/types.h>
4863 #include <termios.h>
4865 /* SunOS 4.0.3 has termios.h but not the library calls. */
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 am_cv_sys_posix_termios=yes
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 am_cv_sys_posix_termios=no
4881 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4884 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4885 echo "configure:4886: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4886 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4891 gwinsz_in_termios_h=no
4892 if test $am_cv_sys_posix_termios = yes; then
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <sys/types.h>
4897 # include <termios.h>
4903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4904 egrep "yes" >/dev/null 2>&1; then
4906 gwinsz_in_termios_h=yes
4912 if test $gwinsz_in_termios_h = no; then
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <sys/types.h>
4917 # include <sys/ioctl.h>
4923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4924 egrep "yes" >/dev/null 2>&1; then
4926 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4934 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4935 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4936 cat >> confdefs.h <<\EOF
4937 #define GWINSZ_IN_SYS_IOCTL 1
4942 if test $am_cv_sys_posix_termios = yes ; then
4943 cat >> confdefs.h <<\EOF
4944 #define HAVE_POSIX_TERMIOS 1
4996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_hdr" >&5
4999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5012 eval "ac_cv_header_$ac_safe=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 eval "ac_cv_header_$ac_safe=no"
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5025 cat >> confdefs.h <<EOF
5026 #define $ac_tr_hdr 1
5030 echo "$ac_t""no" 1>&6
5037 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5038 echo "configure:5039: checking for dlopen" >&5
5039 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char dlopen(); below. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5056 /* The GNU C library defines this for functions which it implements
5057 to always fail with ENOSYS. Some functions are actually named
5058 something starting with __ and the normal name is an alias. */
5059 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5069 eval "ac_cv_func_dlopen=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_func_dlopen=no"
5079 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5080 echo "$ac_t""yes" 1>&6
5083 echo "$ac_t""no" 1>&6
5084 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5085 echo "configure:5086: checking for dlopen in -ldl" >&5
5086 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 ac_save_LIBS="$LIBS"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_lib 1
5128 echo "$ac_t""no" 1>&6
5135 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5136 echo "configure:5137: checking for winsock" >&5
5138 for curlib in ws2_32 wsock32; do
5139 LIBS="$LIBS -l$curlib"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5146 char closesocket@4();
5147 char gethostname@8();
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5169 if test $have_winsock = yes; then
5170 cat >> confdefs.h <<\EOF
5171 #define HAVE_WINSOCK 1
5174 ac_cv_func_socket=yes
5175 ac_cv_func_select=yes
5176 ac_cv_func_closesocket=yes
5177 ac_cv_func_gethostname=yes
5178 if test $curlib = ws2_32; then
5179 have_winsock=winsock2
5180 cat >> confdefs.h <<\EOF
5181 #define HAVE_WINSOCK2 1
5189 echo "$ac_t""$have_winsock" 1>&6
5192 echo $ac_n "checking for socket""... $ac_c" 1>&6
5193 echo "configure:5194: checking for socket" >&5
5194 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201 which can conflict with char socket(); below. */
5203 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5211 /* The GNU C library defines this for functions which it implements
5212 to always fail with ENOSYS. Some functions are actually named
5213 something starting with __ and the normal name is an alias. */
5214 #if defined (__stub_socket) || defined (__stub___socket)
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5224 eval "ac_cv_func_socket=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5229 eval "ac_cv_func_socket=no"
5234 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5235 echo "$ac_t""yes" 1>&6
5238 echo "$ac_t""no" 1>&6
5240 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5241 echo "configure:5242: checking for main in -lsocket" >&5
5242 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5243 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 ac_save_LIBS="$LIBS"
5247 LIBS="-lsocket $LIBS"
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 eval "ac_cv_lib_$ac_lib_var=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_lib_$ac_lib_var=no"
5266 LIBS="$ac_save_LIBS"
5269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5271 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5273 cat >> confdefs.h <<EOF
5274 #define $ac_tr_lib 1
5277 LIBS="-lsocket $LIBS"
5280 echo "$ac_t""no" 1>&6
5283 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5284 echo "configure:5285: checking for main in -lnet" >&5
5285 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5286 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 ac_save_LIBS="$LIBS"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_lib_$ac_lib_var=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_lib_$ac_lib_var=no"
5309 LIBS="$ac_save_LIBS"
5312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5316 cat >> confdefs.h <<EOF
5317 #define $ac_tr_lib 1
5323 echo "$ac_t""no" 1>&6
5326 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5327 echo "configure:5328: checking for main in -lnsl_s" >&5
5328 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5329 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5332 ac_save_LIBS="$LIBS"
5333 LIBS="-lnsl_s $LIBS"
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 eval "ac_cv_lib_$ac_lib_var=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 eval "ac_cv_lib_$ac_lib_var=no"
5352 LIBS="$ac_save_LIBS"
5355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5359 cat >> confdefs.h <<EOF
5360 #define $ac_tr_lib 1
5363 LIBS="-lnsl_s $LIBS"
5366 echo "$ac_t""no" 1>&6
5369 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5370 echo "configure:5371: checking for main in -lnsl" >&5
5371 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 ac_save_LIBS="$LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5385 if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5387 eval "ac_cv_lib_$ac_lib_var=yes"
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5392 eval "ac_cv_lib_$ac_lib_var=no"
5395 LIBS="$ac_save_LIBS"
5398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5399 echo "$ac_t""yes" 1>&6
5400 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5402 cat >> confdefs.h <<EOF
5403 #define $ac_tr_lib 1
5409 echo "$ac_t""no" 1>&6
5412 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5413 echo "configure:5414: checking for socket in -linet" >&5
5414 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5415 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5418 ac_save_LIBS="$LIBS"
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5423 /* Override any gcc2 internal prototype to avoid an error. */
5424 /* We use char because int might match the return type of a gcc2
5425 builtin and then its argument prototype would still apply. */
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5434 eval "ac_cv_lib_$ac_lib_var=yes"
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5439 eval "ac_cv_lib_$ac_lib_var=no"
5442 LIBS="$ac_save_LIBS"
5445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5446 echo "$ac_t""yes" 1>&6
5447 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5449 cat >> confdefs.h <<EOF
5450 #define $ac_tr_lib 1
5456 echo "$ac_t""no" 1>&6
5459 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5460 echo "configure:5461: checking for main in -lgen" >&5
5461 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5462 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 ac_save_LIBS="$LIBS"
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5475 if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5477 eval "ac_cv_lib_$ac_lib_var=yes"
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5482 eval "ac_cv_lib_$ac_lib_var=no"
5485 LIBS="$ac_save_LIBS"
5488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5492 cat >> confdefs.h <<EOF
5493 #define $ac_tr_lib 1
5499 echo "$ac_t""no" 1>&6
5506 echo $ac_n "checking for select""... $ac_c" 1>&6
5507 echo "configure:5508: checking for select" >&5
5508 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 /* System header to define __stub macros and hopefully few prototypes,
5515 which can conflict with char select(); below. */
5517 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5525 /* The GNU C library defines this for functions which it implements
5526 to always fail with ENOSYS. Some functions are actually named
5527 something starting with __ and the normal name is an alias. */
5528 #if defined (__stub_select) || defined (__stub___select)
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538 eval "ac_cv_func_select=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 eval "ac_cv_func_select=no"
5548 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5549 echo "$ac_t""yes" 1>&6
5552 echo "$ac_t""no" 1>&6
5553 { echo "configure: error: select() required." 1>&2; exit 1; }
5557 if test "${ac_cv_header_winsock_h}" != yes; then
5558 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5559 echo "configure:5560: checking types of arguments for select()" >&5
5560 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5570 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5571 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5575 #ifdef HAVE_SYS_TYPES_H
5576 #include <sys/types.h>
5578 #ifdef HAVE_SYS_TIME_H
5579 #include <sys/time.h>
5581 #ifdef HAVE_SYS_SELECT_H
5582 #include <sys/select.h>
5584 #ifdef HAVE_SYS_SOCKET_H
5585 #include <sys/socket.h>
5587 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);
5592 if { (eval echo configure:5593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5594 ac_not_found=no ; break 3
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5611 if test "$ac_not_found" = yes; then
5612 ac_cv_func_select_arg1=int
5613 ac_cv_func_select_arg234='int *'
5614 ac_cv_func_select_arg5='struct timeval *'
5616 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5617 cat >> confdefs.h <<EOF
5618 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5621 cat >> confdefs.h <<EOF
5622 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5625 cat >> confdefs.h <<EOF
5626 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5633 for ac_hdr in regex.h
5635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5637 echo "configure:5638: checking for $ac_hdr" >&5
5638 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5647 { (eval echo configure:5648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5649 if test -z "$ac_err"; then
5651 eval "ac_cv_header_$ac_safe=yes"
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5657 eval "ac_cv_header_$ac_safe=no"
5661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5662 echo "$ac_t""yes" 1>&6
5663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5664 cat >> confdefs.h <<EOF
5665 #define $ac_tr_hdr 1
5669 echo "$ac_t""no" 1>&6
5673 if test "$ac_cv_header_regex_h" != yes ; then
5674 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5677 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
5678 echo "configure:5679: checking for library containing regfree" >&5
5679 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5682 ac_func_search_save_LIBS="$LIBS"
5683 ac_cv_search_regfree="no"
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 ac_cv_search_regfree="none required"
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5704 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
5705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5718 if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5720 ac_cv_search_regfree="-l$ac_lib"
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5728 LIBS="$ac_func_search_save_LIBS"
5731 echo "$ac_t""$ac_cv_search_regfree" 1>&6
5732 if test "$ac_cv_search_regfree" != "no"; then
5733 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
5736 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5740 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5741 echo "configure:5742: checking for compatible POSIX regex" >&5
5742 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5746 if test "$cross_compiling" = yes; then
5747 ol_cv_c_posix_regex=cross
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5753 #include <sys/types.h>
5755 static char *pattern, *string;
5763 if(regcomp(&re, pattern, 0)) {
5767 string = "ALL MATCH";
5769 rc = regexec(&re, string, 0, (void*)0, 0);
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5778 ol_cv_c_posix_regex=yes
5780 echo "configure: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5783 ol_cv_c_posix_regex=no
5790 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5792 if test "$ol_cv_c_posix_regex" = no ; then
5793 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5796 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
5797 echo "configure:5798: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
5799 LIBS="$LIBS -lrpcrt4"
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5804 char UuidCreate@4();
5805 char UuidToStringA@8();
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5824 if test $need_rpcrt = yes; then
5825 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
5828 echo "$ac_t""$need_rpcrt" 1>&6
5831 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5832 echo "configure:5833: checking for res_query" >&5
5833 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 /* System header to define __stub macros and hopefully few prototypes,
5840 which can conflict with char res_query(); below. */
5842 /* Override any gcc2 internal prototype to avoid an error. */
5843 /* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub_res_query) || defined (__stub___res_query)
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863 eval "ac_cv_func_res_query=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5868 eval "ac_cv_func_res_query=no"
5873 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5877 echo "$ac_t""no" 1>&6
5880 if test $ac_cv_func_res_query = no ; then
5881 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5882 echo "configure:5883: checking for __res_query" >&5
5883 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char __res_query(); below. */
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub___res_query) || defined (__stub_____res_query)
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5913 eval "ac_cv_func___res_query=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 eval "ac_cv_func___res_query=no"
5923 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5927 echo "$ac_t""no" 1>&6
5930 ac_cv_func_res_query=$ac_cv_func___res_query
5933 if test $ac_cv_func_res_query = no ; then
5934 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5935 echo "configure:5936: checking for res_query in -lbind" >&5
5936 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5937 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5938 echo $ac_n "(cached) $ac_c" 1>&6
5940 ac_save_LIBS="$LIBS"
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5945 /* Override any gcc2 internal prototype to avoid an error. */
5946 /* We use char because int might match the return type of a gcc2
5947 builtin and then its argument prototype would still apply. */
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5956 eval "ac_cv_lib_$ac_lib_var=yes"
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5961 eval "ac_cv_lib_$ac_lib_var=no"
5964 LIBS="$ac_save_LIBS"
5967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5968 echo "$ac_t""yes" 1>&6
5969 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5970 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5971 cat >> confdefs.h <<EOF
5972 #define $ac_tr_lib 1
5978 echo "$ac_t""no" 1>&6
5981 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5984 if test $ac_cv_func_res_query = no ; then
5985 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5986 echo "configure:5987: checking for __res_query in -lbind" >&5
5987 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 ac_save_LIBS="$LIBS"
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6007 eval "ac_cv_lib_$ac_lib_var=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_lib_$ac_lib_var=no"
6015 LIBS="$ac_save_LIBS"
6018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6022 cat >> confdefs.h <<EOF
6023 #define $ac_tr_lib 1
6029 echo "$ac_t""no" 1>&6
6032 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
6035 if test $ac_cv_func_res_query = no ; then
6036 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
6037 echo "configure:6038: checking for res_query in -lresolv" >&5
6038 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
6039 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 ac_save_LIBS="$LIBS"
6043 LIBS="-lresolv $LIBS"
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 /* Override any gcc2 internal prototype to avoid an error. */
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 eval "ac_cv_lib_$ac_lib_var=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6063 eval "ac_cv_lib_$ac_lib_var=no"
6066 LIBS="$ac_save_LIBS"
6069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6072 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6073 cat >> confdefs.h <<EOF
6074 #define $ac_tr_lib 1
6077 LIBS="-lresolv $LIBS"
6080 echo "$ac_t""no" 1>&6
6083 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
6086 if test $ac_cv_func_res_query = no ; then
6087 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
6088 echo "configure:6089: checking for __res_query in -lresolv" >&5
6089 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
6090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 ac_save_LIBS="$LIBS"
6094 LIBS="-lresolv $LIBS"
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_lib_$ac_lib_var=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_lib_$ac_lib_var=no"
6117 LIBS="$ac_save_LIBS"
6120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6121 echo "$ac_t""yes" 1>&6
6122 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6124 cat >> confdefs.h <<EOF
6125 #define $ac_tr_lib 1
6128 LIBS="-lresolv $LIBS"
6131 echo "$ac_t""no" 1>&6
6134 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
6137 if test "$ac_cv_func_res_query" = yes ; then
6138 cat >> confdefs.h <<\EOF
6139 #define HAVE_RES_QUERY 1
6143 if test $ol_enable_dnssrv != no ; then
6148 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
6149 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
6152 for ac_func in getaddrinfo gai_strerror inet_ntop
6154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6155 echo "configure:6156: checking for $ac_func" >&5
6156 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 /* System header to define __stub macros and hopefully few prototypes,
6163 which can conflict with char $ac_func(); below. */
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6173 /* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 eval "ac_cv_func_$ac_func=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_func_$ac_func=no"
6196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6199 cat >> confdefs.h <<EOF
6200 #define $ac_tr_func 1
6204 echo "$ac_t""no" 1>&6
6210 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6211 if test $ol_enable_ipv6 = yes ; then
6212 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6214 elif test $ol_enable_ipv6 != no ; then
6215 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6216 echo "configure:6217: checking INET6_ADDRSTRLEN" >&5
6217 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6225 # include <netinet/in.h>
6226 # ifdef INET6_ADDRSTRLEN
6227 __has_inet6_addrstrlen__;
6231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6232 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6234 ol_cv_inet6_addrstrlen=yes
6237 ol_cv_inet6_addrstrlen=no
6243 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6245 if test $ol_cv_inet6_addrstrlen = yes ; then
6247 elif test $ol_enable_ipv6 = yes ; then
6248 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6252 if test $ol_enable_local != no ; then
6253 for ac_hdr in sys/un.h
6255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6257 echo "configure:6258: checking for $ac_hdr" >&5
6258 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6267 { (eval echo configure:6268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6269 if test -z "$ac_err"; then
6271 eval "ac_cv_header_$ac_safe=yes"
6274 echo "configure: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6277 eval "ac_cv_header_$ac_safe=no"
6281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6282 echo "$ac_t""yes" 1>&6
6283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6284 cat >> confdefs.h <<EOF
6285 #define $ac_tr_hdr 1
6289 echo "$ac_t""no" 1>&6
6294 if test $ol_enable_local = auto ; then
6295 ol_enable_local=$ac_cv_header_sys_un_h
6296 elif test $ac_cv_header_sys_un_h = no ; then
6297 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6306 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6307 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6308 -o $ol_with_kerberos = k425 ; then
6310 for ac_hdr in krb5.h
6312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6314 echo "configure:6315: checking for $ac_hdr" >&5
6315 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6324 { (eval echo configure:6325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6326 if test -z "$ac_err"; then
6328 eval "ac_cv_header_$ac_safe=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 eval "ac_cv_header_$ac_safe=no"
6338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6341 cat >> confdefs.h <<EOF
6342 #define $ac_tr_hdr 1
6346 echo "$ac_t""no" 1>&6
6351 if test $ac_cv_header_krb5_h = yes ; then
6352 for ac_hdr in heim_err.h
6354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6356 echo "configure:6357: checking for $ac_hdr" >&5
6357 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6366 { (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6368 if test -z "$ac_err"; then
6370 eval "ac_cv_header_$ac_safe=yes"
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 eval "ac_cv_header_$ac_safe=no"
6380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6383 cat >> confdefs.h <<EOF
6384 #define $ac_tr_hdr 1
6388 echo "$ac_t""no" 1>&6
6392 if test $ac_cv_header_heim_err_h = yes ; then
6398 if test $krb5_impl = mit; then
6399 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
6400 echo "configure:6401: checking for main in -lk5crypto" >&5
6401 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
6402 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6405 ac_save_LIBS="$LIBS"
6406 LIBS="-lk5crypto $LIBS"
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6425 LIBS="$ac_save_LIBS"
6428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6432 echo "$ac_t""no" 1>&6
6437 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6438 echo "configure:6439: checking for main in -lkrb5" >&5
6439 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6440 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 ac_save_LIBS="$LIBS"
6444 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6453 if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6455 eval "ac_cv_lib_$ac_lib_var=yes"
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6460 eval "ac_cv_lib_$ac_lib_var=no"
6463 LIBS="$ac_save_LIBS"
6466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6469 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6471 echo "$ac_t""no" 1>&6
6476 elif test $krb5_impl = heimdal; then
6477 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6478 echo "configure:6479: checking for main in -lkrb5" >&5
6479 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6480 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 ac_save_LIBS="$LIBS"
6484 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6493 if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6495 eval "ac_cv_lib_$ac_lib_var=yes"
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6500 eval "ac_cv_lib_$ac_lib_var=no"
6503 LIBS="$ac_save_LIBS"
6506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6509 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6511 echo "$ac_t""no" 1>&6
6516 cat >> confdefs.h <<\EOF
6517 #define HAVE_HEIMDAL_KERBEROS 1
6523 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6526 if test $have_krb5 = yes ; then
6529 cat >> confdefs.h <<\EOF
6534 if test $ol_enable_kpasswd != no ; then
6535 ol_link_kpasswd=yes;
6538 if test $ol_with_kerberos = k5only ; then
6539 ol_with_kerberos=found
6542 elif test $ol_with_kerberos != auto ; then
6543 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6549 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6550 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6552 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_hdr" >&5
6557 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6566 { (eval echo configure:6567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6568 if test -z "$ac_err"; then
6570 eval "ac_cv_header_$ac_safe=yes"
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6576 eval "ac_cv_header_$ac_safe=no"
6580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6583 cat >> confdefs.h <<EOF
6584 #define $ac_tr_hdr 1
6588 echo "$ac_t""no" 1>&6
6593 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6594 if test $krb5_impl = mit; then
6595 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6596 echo "configure:6597: checking for main in -lkrb4" >&5
6597 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6598 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6601 ac_save_LIBS="$LIBS"
6602 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 eval "ac_cv_lib_$ac_lib_var=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6618 eval "ac_cv_lib_$ac_lib_var=no"
6621 LIBS="$ac_save_LIBS"
6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6627 KRB4_LIBS="-lkrb4 -ldes425"
6629 echo "$ac_t""no" 1>&6
6634 elif test $krb5_impl = heimdal; then
6635 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6636 echo "configure:6637: checking for main in -lkrb4" >&5
6637 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 ac_save_LIBS="$LIBS"
6642 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653 eval "ac_cv_lib_$ac_lib_var=yes"
6655 echo "configure: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6658 eval "ac_cv_lib_$ac_lib_var=no"
6661 LIBS="$ac_save_LIBS"
6664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6669 echo "$ac_t""no" 1>&6
6676 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6679 if test $have_k425 = yes ; then
6680 ol_with_kerberos=found
6683 cat >> confdefs.h <<\EOF
6684 #define HAVE_KRB425 1
6687 cat >> confdefs.h <<\EOF
6692 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6693 echo "configure:6694: checking for des_debug in Kerberos libraries" >&5
6694 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6699 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6704 #include <kerberosIV/krb.h>
6705 #include <kerberosIV/des.h>
6706 extern int des_debug;
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6716 ol_cv_var_des_debug=yes
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 ol_cv_var_des_debug=no
6728 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6730 if test $ol_cv_var_des_debug = yes ; then
6731 cat >> confdefs.h <<\EOF
6732 #define HAVE_DES_DEBUG 1
6742 if test $ol_link_krb5 = yes ; then
6743 ol_with_kerberos=found
6746 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6747 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6749 for ac_hdr in krb.h des.h krb-archaeology.h
6751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6753 echo "configure:6754: checking for $ac_hdr" >&5
6754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6763 { (eval echo configure:6764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6765 if test -z "$ac_err"; then
6767 eval "ac_cv_header_$ac_safe=yes"
6770 echo "configure: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6773 eval "ac_cv_header_$ac_safe=no"
6777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6778 echo "$ac_t""yes" 1>&6
6779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6780 cat >> confdefs.h <<EOF
6781 #define $ac_tr_hdr 1
6785 echo "$ac_t""no" 1>&6
6790 if test $ac_cv_header_krb_h = yes ; then
6791 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6792 echo "configure:6793: checking for main in -lkrb" >&5
6793 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 ac_save_LIBS="$LIBS"
6798 LIBS="-lkrb -ldes $LIBS"
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 eval "ac_cv_lib_$ac_lib_var=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_lib_$ac_lib_var=no"
6817 LIBS="$ac_save_LIBS"
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6824 echo "$ac_t""no" 1>&6
6829 if test $have_k4 = yes ; then
6830 ol_with_kerberos=found
6833 cat >> confdefs.h <<\EOF
6838 KRB4_LIBS="-lkrb -ldes"
6840 if test $ac_cv_header_krb_archaeology_h = yes ; then
6841 cat >> confdefs.h <<\EOF
6842 #define HAVE_KTH_KERBEROS 1
6850 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6854 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6857 elif test $ol_enable_kbind = yes ; then
6858 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6861 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6862 cat >> confdefs.h <<\EOF
6863 #define HAVE_KERBEROS 1
6867 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6868 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6872 if test $ol_with_tls != no ; then
6873 for ac_hdr in openssl/ssl.h ssl.h
6875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6877 echo "configure:6878: checking for $ac_hdr" >&5
6878 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6887 { (eval echo configure:6888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6889 if test -z "$ac_err"; then
6891 eval "ac_cv_header_$ac_safe=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_header_$ac_safe=no"
6901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6902 echo "$ac_t""yes" 1>&6
6903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6904 cat >> confdefs.h <<EOF
6905 #define $ac_tr_hdr 1
6909 echo "$ac_t""no" 1>&6
6914 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6915 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6916 echo "configure:6917: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6917 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6921 ac_save_LIBS="$LIBS"
6922 LIBS="-lssl -lcrypto $LIBS"
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char SSLeay_add_ssl_algorithms();
6932 SSLeay_add_ssl_algorithms()
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 eval "ac_cv_lib_$ac_lib_var=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 eval "ac_cv_lib_$ac_lib_var=no"
6945 LIBS="$ac_save_LIBS"
6948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6953 echo "$ac_t""no" 1>&6
6958 if test $have_ssleay = no ; then
6959 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6960 echo "configure:6961: checking for SSL_library_init in -lssl" >&5
6961 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6962 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 ac_save_LIBS="$LIBS"
6966 LIBS="-lssl -lcrypto $LIBS"
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973 char SSL_library_init();
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6981 eval "ac_cv_lib_$ac_lib_var=yes"
6983 echo "configure: failed program was:" >&5
6984 cat conftest.$ac_ext >&5
6986 eval "ac_cv_lib_$ac_lib_var=no"
6989 LIBS="$ac_save_LIBS"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6997 echo "$ac_t""no" 1>&6
7003 if test $have_ssleay = no ; then
7004 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
7005 echo "configure:7006: checking for ssl3_accept in -lssl" >&5
7006 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
7007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7010 ac_save_LIBS="$LIBS"
7011 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7026 eval "ac_cv_lib_$ac_lib_var=yes"
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 eval "ac_cv_lib_$ac_lib_var=no"
7034 LIBS="$ac_save_LIBS"
7037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7038 echo "$ac_t""yes" 1>&6
7042 echo "$ac_t""no" 1>&6
7048 if test $have_ssleay = yes ; then
7052 cat >> confdefs.h <<\EOF
7053 #define HAVE_SSLEAY 1
7057 if test $need_rsaref = yes; then
7058 cat >> confdefs.h <<\EOF
7059 #define HAVE_RSAREF 1
7063 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
7065 TLS_LIBS="-lssl -lcrypto"
7071 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7074 if test $ol_link_tls = yes ; then
7075 cat >> confdefs.h <<\EOF
7080 elif test $ol_with_tls = auto ; then
7081 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
7082 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7084 elif test $ol_with_tls != no ; then
7085 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
7088 if test $ol_enable_lmpasswd != no; then
7089 if test $ol_link_tls != yes ; then
7090 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
7093 cat >> confdefs.h <<\EOF
7094 #define SLAPD_LMHASH 1
7101 gethostbyname_r gethostbyaddr_r \
7104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7105 echo "configure:7106: checking for $ac_func" >&5
7106 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* System header to define __stub macros and hopefully few prototypes,
7113 which can conflict with char $ac_func(); below. */
7115 /* Override any gcc2 internal prototype to avoid an error. */
7116 /* We use char because int might match the return type of a gcc2
7117 builtin and then its argument prototype would still apply. */
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7136 eval "ac_cv_func_$ac_func=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 eval "ac_cv_func_$ac_func=no"
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h <<EOF
7150 #define $ac_tr_func 1
7154 echo "$ac_t""no" 1>&6
7159 if test "$ac_cv_func_ctime_r" = no ; then
7160 ol_cv_func_ctime_r_nargs=0
7162 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7163 echo "configure:7164: checking number of arguments of ctime_r" >&5
7164 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7172 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7175 if { (eval echo configure:7176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7177 ol_cv_func_ctime_r_nargs3=yes
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 ol_cv_func_ctime_r_nargs3=no
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7191 time_t ti; char *buffer; ctime_r(&ti,buffer);
7194 if { (eval echo configure:7195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7196 ol_cv_func_ctime_r_nargs2=yes
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 ol_cv_func_ctime_r_nargs2=no
7205 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7206 $ol_cv_func_ctime_r_nargs2 = no ; then
7208 ol_cv_func_ctime_r_nargs=3
7210 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7211 $ol_cv_func_ctime_r_nargs2 = yes ; then
7213 ol_cv_func_ctime_r_nargs=2
7216 ol_cv_func_ctime_r_nargs=0
7221 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7223 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7224 cat >> confdefs.h <<EOF
7225 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7232 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7233 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7234 echo "configure:7235: checking number of arguments of gethostbyname_r" >&5
7235 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 #include <sys/types.h>
7242 #include <sys/socket.h>
7243 #include <netinet/in.h>
7245 #define BUFSIZE (sizeof(struct hostent)+10)
7247 struct hostent hent; char buffer[BUFSIZE];
7248 int bufsize=BUFSIZE;int h_errno;
7249 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7250 buffer, bufsize, &h_errno);
7253 if { (eval echo configure:7254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7255 ol_cv_func_gethostbyname_r_nargs5=yes
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 ol_cv_func_gethostbyname_r_nargs5=no
7264 cat > conftest.$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7267 #include <sys/types.h>
7268 #include <sys/socket.h>
7269 #include <netinet/in.h>
7271 #define BUFSIZE (sizeof(struct hostent)+10)
7273 struct hostent hent;struct hostent *rhent;
7274 char buffer[BUFSIZE];
7275 int bufsize=BUFSIZE;int h_errno;
7276 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7280 if { (eval echo configure:7281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7282 ol_cv_func_gethostbyname_r_nargs6=yes
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7287 ol_cv_func_gethostbyname_r_nargs6=no
7291 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7292 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7294 ol_cv_func_gethostbyname_r_nargs=5
7296 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7297 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7299 ol_cv_func_gethostbyname_r_nargs=6
7302 ol_cv_func_gethostbyname_r_nargs=0
7307 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7308 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7309 cat >> confdefs.h <<EOF
7310 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7316 ol_cv_func_gethostbyname_r_nargs=0
7319 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7320 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7321 echo "configure:7322: checking number of arguments of gethostbyaddr_r" >&5
7322 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7323 echo $ac_n "(cached) $ac_c" 1>&6
7325 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 #include <sys/types.h>
7329 #include <sys/socket.h>
7330 #include <netinet/in.h>
7332 #define BUFSIZE (sizeof(struct hostent)+10)
7334 struct hostent hent; char buffer[BUFSIZE];
7336 size_t alen=sizeof(struct in_addr);
7337 int bufsize=BUFSIZE;int h_errno;
7338 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7339 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7342 if { (eval echo configure:7343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7344 ol_cv_func_gethostbyaddr_r_nargs7=yes
7346 echo "configure: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7349 ol_cv_func_gethostbyaddr_r_nargs7=no
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7356 #include <sys/types.h>
7357 #include <sys/socket.h>
7358 #include <netinet/in.h>
7360 #define BUFSIZE (sizeof(struct hostent)+10)
7362 struct hostent hent;
7363 struct hostent *rhent; char buffer[BUFSIZE];
7365 size_t alen=sizeof(struct in_addr);
7366 int bufsize=BUFSIZE;int h_errno;
7367 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7368 alen, AF_INET, &hent, buffer, bufsize,
7372 if { (eval echo configure:7373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7374 ol_cv_func_gethostbyaddr_r_nargs8=yes
7376 echo "configure: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7379 ol_cv_func_gethostbyaddr_r_nargs8=no
7383 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7384 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7386 ol_cv_func_gethostbyaddr_r_nargs=7
7388 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7389 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7391 ol_cv_func_gethostbyaddr_r_nargs=8
7394 ol_cv_func_gethostbyaddr_r_nargs=0
7399 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7400 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7401 cat >> confdefs.h <<EOF
7402 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7408 ol_cv_func_gethostbyaddr_r_nargs=0
7411 if test "$ac_cv_func_ctime_r" = yes \
7412 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7413 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7414 -a "$ac_cv_func_gethostbyname_r" = yes \
7415 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7416 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7417 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7418 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7419 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7422 cat >> confdefs.h <<\EOF
7423 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7430 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7431 -o $ol_with_threads = nt ; then
7434 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7435 echo "configure:7436: checking for _beginthread" >&5
7436 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7437 echo $ac_n "(cached) $ac_c" 1>&6
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 /* System header to define __stub macros and hopefully few prototypes,
7443 which can conflict with char _beginthread(); below. */
7445 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7448 char _beginthread();
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7466 eval "ac_cv_func__beginthread=yes"
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7471 eval "ac_cv_func__beginthread=no"
7476 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7477 echo "$ac_t""yes" 1>&6
7480 echo "$ac_t""no" 1>&6
7484 if test $ac_cv_func__beginthread = yes ; then
7485 cat >> confdefs.h <<\EOF
7486 #define HAVE_NT_THREADS 1
7489 ol_cv_nt_threads=yes
7493 if test "$ol_cv_nt_threads" = yes ; then
7495 ol_with_threads=found
7496 ol_with_yielding_select=yes
7498 cat >> confdefs.h <<\EOF
7499 #define HAVE_NT_SERVICE_MANAGER 1
7502 cat >> confdefs.h <<\EOF
7503 #define HAVE_NT_EVENT_LOG 1
7508 if test $ol_with_threads = nt ; then
7509 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7513 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7514 -o $ol_with_threads = posix ; then
7516 for ac_hdr in pthread.h
7518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7520 echo "configure:7521: checking for $ac_hdr" >&5
7521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 cat > conftest.$ac_ext <<EOF
7525 #line 7526 "configure"
7526 #include "confdefs.h"
7529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7530 { (eval echo configure:7531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7532 if test -z "$ac_err"; then
7534 eval "ac_cv_header_$ac_safe=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 eval "ac_cv_header_$ac_safe=no"
7544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7547 cat >> confdefs.h <<EOF
7548 #define $ac_tr_hdr 1
7552 echo "$ac_t""no" 1>&6
7557 if test $ac_cv_header_pthread_h = yes ; then
7558 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7559 echo "configure:7560: checking POSIX thread version" >&5
7560 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7568 # include <pthread.h>
7569 /* this check could be improved */
7570 # ifdef PTHREAD_ONCE_INIT
7571 pthread_version_final;
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 egrep "pthread_version_final" >/dev/null 2>&1; then
7578 ol_pthread_final=yes
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7590 # include <pthread.h>
7591 /* this check could be improved */
7592 # ifdef pthread_once_init
7593 pthread_version_draft4;
7597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7598 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7600 ol_pthread_draft4=yes
7603 ol_pthread_draft4=no
7608 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7609 ol_cv_pthread_version=final
7610 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7611 ol_cv_pthread_version=draft4
7613 ol_cv_pthread_version=unknown
7618 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7621 if test $ol_cv_pthread_version = final ; then
7622 cat >> confdefs.h <<\EOF
7623 #define HAVE_PTHREADS_FINAL 1
7626 elif test $ol_cv_pthread_version = draft4 ; then
7627 cat >> confdefs.h <<\EOF
7628 #define HAVE_PTHREADS_D4 1
7632 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7635 # consider threads found
7636 ol_with_threads=found
7639 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7640 echo "configure:7641: checking for LinuxThreads pthread.h" >&5
7641 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 #include <pthread.h>
7649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7650 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7652 ol_cv_header_linux_threads=yes
7655 ol_cv_header_linux_threads=no
7662 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7663 if test $ol_cv_header_linux_threads = yes; then
7664 cat >> confdefs.h <<\EOF
7665 #define HAVE_LINUX_THREADS 1
7671 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7672 echo "configure:7673: checking for GNU Pth pthread.h" >&5
7673 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 #include <pthread.h>
7680 #ifdef _POSIX_THREAD_IS_GNU_PTH
7685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7686 egrep "__gnu_pth__" >/dev/null 2>&1; then
7688 ol_cv_header_gnu_pth_pthread_h=yes
7691 ol_cv_header_gnu_pth_pthread_h=no
7698 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7701 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7702 for ac_hdr in sched.h
7704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7706 echo "configure:7707: checking for $ac_hdr" >&5
7707 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7716 { (eval echo configure:7717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7718 if test -z "$ac_err"; then
7720 eval "ac_cv_header_$ac_safe=yes"
7723 echo "configure: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7726 eval "ac_cv_header_$ac_safe=no"
7730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7731 echo "$ac_t""yes" 1>&6
7732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7733 cat >> confdefs.h <<EOF
7734 #define $ac_tr_hdr 1
7738 echo "$ac_t""no" 1>&6
7745 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7746 echo "configure:7747: checking for pthread_create in default libraries" >&5
7747 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7751 if test "$cross_compiling" = yes; then
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7755 /* pthread test headers */
7756 #include <pthread.h>
7758 #define NULL (void*)0
7761 static void *task(p)
7764 return (void *) (p == NULL);
7769 /* pthread test function */
7774 #ifdef HAVE_PTHREADS_FINAL
7775 /* Final pthreads */
7776 pthread_attr_t attr;
7778 status = pthread_attr_init(&attr);
7779 if( status ) return status;
7781 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7783 #if defined( PTHREAD_CREATE_JOINABLE )
7784 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7786 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7789 #ifdef PTHREAD_CREATE_DETACHED
7791 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7794 if( status ) return status;
7797 status = pthread_create( &t, &attr, task, NULL );
7798 if( status ) return status;
7800 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7802 /* give thread a chance to complete */
7803 /* it should remain joinable and hence detachable */
7806 status = pthread_detach( t );
7807 if( status ) return status;
7812 /* Draft 4 pthreads */
7813 status = pthread_create( &t, pthread_attr_default, task, NULL );
7814 if( status ) return status;
7817 /* give thread a chance to complete */
7818 /* it should remain joinable and hence detachable */
7821 status = pthread_detach( &t );
7822 if( status ) return status;
7826 #ifdef HAVE_LINUX_THREADS
7827 pthread_kill_other_threads_np();
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7836 ol_cv_pthread_create=yes
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7841 ol_cv_pthread_create=no
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 /* pthread test headers */
7849 #include <pthread.h>
7851 #define NULL (void*)0
7854 static void *task(p)
7857 return (void *) (p == NULL);
7861 int main(argc, argv)
7866 /* pthread test function */
7871 #ifdef HAVE_PTHREADS_FINAL
7872 /* Final pthreads */
7873 pthread_attr_t attr;
7875 status = pthread_attr_init(&attr);
7876 if( status ) return status;
7878 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7880 #if defined( PTHREAD_CREATE_JOINABLE )
7881 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7883 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7886 #ifdef PTHREAD_CREATE_DETACHED
7888 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7891 if( status ) return status;
7894 status = pthread_create( &t, &attr, task, NULL );
7895 if( status ) return status;
7897 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7899 /* give thread a chance to complete */
7900 /* it should remain joinable and hence detachable */
7903 status = pthread_detach( t );
7904 if( status ) return status;
7909 /* Draft 4 pthreads */
7910 status = pthread_create( &t, pthread_attr_default, task, NULL );
7911 if( status ) return status;
7914 /* give thread a chance to complete */
7915 /* it should remain joinable and hence detachable */
7918 status = pthread_detach( &t );
7919 if( status ) return status;
7923 #ifdef HAVE_LINUX_THREADS
7924 pthread_kill_other_threads_np();
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7934 ol_cv_pthread_create=yes
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 ol_cv_pthread_create=no
7946 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7948 if test $ol_cv_pthread_create != no ; then
7949 ol_link_threads=posix
7953 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7954 if test "$ol_link_threads" = no ; then
7956 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7957 echo "configure:7958: checking for pthread link with -kthread" >&5
7958 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7964 LIBS="-kthread $LIBS"
7966 if test "$cross_compiling" = yes; then
7967 cat > conftest.$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* pthread test headers */
7971 #include <pthread.h>
7973 #define NULL (void*)0
7976 static void *task(p)
7979 return (void *) (p == NULL);
7984 /* pthread test function */
7989 #ifdef HAVE_PTHREADS_FINAL
7990 /* Final pthreads */
7991 pthread_attr_t attr;
7993 status = pthread_attr_init(&attr);
7994 if( status ) return status;
7996 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7998 #if defined( PTHREAD_CREATE_JOINABLE )
7999 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8001 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8004 #ifdef PTHREAD_CREATE_DETACHED
8006 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8009 if( status ) return status;
8012 status = pthread_create( &t, &attr, task, NULL );
8013 if( status ) return status;
8015 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8017 /* give thread a chance to complete */
8018 /* it should remain joinable and hence detachable */
8021 status = pthread_detach( t );
8022 if( status ) return status;
8027 /* Draft 4 pthreads */
8028 status = pthread_create( &t, pthread_attr_default, task, NULL );
8029 if( status ) return status;
8032 /* give thread a chance to complete */
8033 /* it should remain joinable and hence detachable */
8036 status = pthread_detach( &t );
8037 if( status ) return status;
8041 #ifdef HAVE_LINUX_THREADS
8042 pthread_kill_other_threads_np();
8049 if { (eval echo configure:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8051 ol_cv_pthread_kthread=yes
8053 echo "configure: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8056 ol_cv_pthread_kthread=no
8060 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure"
8062 #include "confdefs.h"
8063 /* pthread test headers */
8064 #include <pthread.h>
8066 #define NULL (void*)0
8069 static void *task(p)
8072 return (void *) (p == NULL);
8076 int main(argc, argv)
8081 /* pthread test function */
8086 #ifdef HAVE_PTHREADS_FINAL
8087 /* Final pthreads */
8088 pthread_attr_t attr;
8090 status = pthread_attr_init(&attr);
8091 if( status ) return status;
8093 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8095 #if defined( PTHREAD_CREATE_JOINABLE )
8096 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8098 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8101 #ifdef PTHREAD_CREATE_DETACHED
8103 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8106 if( status ) return status;
8109 status = pthread_create( &t, &attr, task, NULL );
8110 if( status ) return status;
8112 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8114 /* give thread a chance to complete */
8115 /* it should remain joinable and hence detachable */
8118 status = pthread_detach( t );
8119 if( status ) return status;
8124 /* Draft 4 pthreads */
8125 status = pthread_create( &t, pthread_attr_default, task, NULL );
8126 if( status ) return status;
8129 /* give thread a chance to complete */
8130 /* it should remain joinable and hence detachable */
8133 status = pthread_detach( &t );
8134 if( status ) return status;
8138 #ifdef HAVE_LINUX_THREADS
8139 pthread_kill_other_threads_np();
8147 if { (eval echo configure:8148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8149 ol_cv_pthread_kthread=yes
8151 echo "configure: failed program was:" >&5
8152 cat conftest.$ac_ext >&5
8154 ol_cv_pthread_kthread=no
8165 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8167 if test $ol_cv_pthread_kthread = yes ; then
8168 ol_link_pthreads="-kthread"
8169 ol_link_threads=posix
8173 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8174 if test "$ol_link_threads" = no ; then
8176 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8177 echo "configure:8178: checking for pthread link with -pthread" >&5
8178 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8184 LIBS="-pthread $LIBS"
8186 if test "$cross_compiling" = yes; then
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 /* pthread test headers */
8191 #include <pthread.h>
8193 #define NULL (void*)0
8196 static void *task(p)
8199 return (void *) (p == NULL);
8204 /* pthread test function */
8209 #ifdef HAVE_PTHREADS_FINAL
8210 /* Final pthreads */
8211 pthread_attr_t attr;
8213 status = pthread_attr_init(&attr);
8214 if( status ) return status;
8216 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8218 #if defined( PTHREAD_CREATE_JOINABLE )
8219 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8221 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8224 #ifdef PTHREAD_CREATE_DETACHED
8226 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8229 if( status ) return status;
8232 status = pthread_create( &t, &attr, task, NULL );
8233 if( status ) return status;
8235 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8237 /* give thread a chance to complete */
8238 /* it should remain joinable and hence detachable */
8241 status = pthread_detach( t );
8242 if( status ) return status;
8247 /* Draft 4 pthreads */
8248 status = pthread_create( &t, pthread_attr_default, task, NULL );
8249 if( status ) return status;
8252 /* give thread a chance to complete */
8253 /* it should remain joinable and hence detachable */
8256 status = pthread_detach( &t );
8257 if( status ) return status;
8261 #ifdef HAVE_LINUX_THREADS
8262 pthread_kill_other_threads_np();
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 ol_cv_pthread_pthread=yes
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 ol_cv_pthread_pthread=no
8280 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8283 /* pthread test headers */
8284 #include <pthread.h>
8286 #define NULL (void*)0
8289 static void *task(p)
8292 return (void *) (p == NULL);
8296 int main(argc, argv)
8301 /* pthread test function */
8306 #ifdef HAVE_PTHREADS_FINAL
8307 /* Final pthreads */
8308 pthread_attr_t attr;
8310 status = pthread_attr_init(&attr);
8311 if( status ) return status;
8313 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8315 #if defined( PTHREAD_CREATE_JOINABLE )
8316 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8318 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8321 #ifdef PTHREAD_CREATE_DETACHED
8323 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8326 if( status ) return status;
8329 status = pthread_create( &t, &attr, task, NULL );
8330 if( status ) return status;
8332 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8334 /* give thread a chance to complete */
8335 /* it should remain joinable and hence detachable */
8338 status = pthread_detach( t );
8339 if( status ) return status;
8344 /* Draft 4 pthreads */
8345 status = pthread_create( &t, pthread_attr_default, task, NULL );
8346 if( status ) return status;
8349 /* give thread a chance to complete */
8350 /* it should remain joinable and hence detachable */
8353 status = pthread_detach( &t );
8354 if( status ) return status;
8358 #ifdef HAVE_LINUX_THREADS
8359 pthread_kill_other_threads_np();
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8369 ol_cv_pthread_pthread=yes
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8374 ol_cv_pthread_pthread=no
8385 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8387 if test $ol_cv_pthread_pthread = yes ; then
8388 ol_link_pthreads="-pthread"
8389 ol_link_threads=posix
8393 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8394 if test "$ol_link_threads" = no ; then
8396 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8397 echo "configure:8398: checking for pthread link with -pthreads" >&5
8398 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8399 echo $ac_n "(cached) $ac_c" 1>&6
8404 LIBS="-pthreads $LIBS"
8406 if test "$cross_compiling" = yes; then
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 /* pthread test headers */
8411 #include <pthread.h>
8413 #define NULL (void*)0
8416 static void *task(p)
8419 return (void *) (p == NULL);
8424 /* pthread test function */
8429 #ifdef HAVE_PTHREADS_FINAL
8430 /* Final pthreads */
8431 pthread_attr_t attr;
8433 status = pthread_attr_init(&attr);
8434 if( status ) return status;
8436 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8438 #if defined( PTHREAD_CREATE_JOINABLE )
8439 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8441 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8444 #ifdef PTHREAD_CREATE_DETACHED
8446 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8449 if( status ) return status;
8452 status = pthread_create( &t, &attr, task, NULL );
8453 if( status ) return status;
8455 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8457 /* give thread a chance to complete */
8458 /* it should remain joinable and hence detachable */
8461 status = pthread_detach( t );
8462 if( status ) return status;
8467 /* Draft 4 pthreads */
8468 status = pthread_create( &t, pthread_attr_default, task, NULL );
8469 if( status ) return status;
8472 /* give thread a chance to complete */
8473 /* it should remain joinable and hence detachable */
8476 status = pthread_detach( &t );
8477 if( status ) return status;
8481 #ifdef HAVE_LINUX_THREADS
8482 pthread_kill_other_threads_np();
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8491 ol_cv_pthread_pthreads=yes
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 ol_cv_pthread_pthreads=no
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* pthread test headers */
8504 #include <pthread.h>
8506 #define NULL (void*)0
8509 static void *task(p)
8512 return (void *) (p == NULL);
8516 int main(argc, argv)
8521 /* pthread test function */
8526 #ifdef HAVE_PTHREADS_FINAL
8527 /* Final pthreads */
8528 pthread_attr_t attr;
8530 status = pthread_attr_init(&attr);
8531 if( status ) return status;
8533 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8535 #if defined( PTHREAD_CREATE_JOINABLE )
8536 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8538 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8541 #ifdef PTHREAD_CREATE_DETACHED
8543 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8546 if( status ) return status;
8549 status = pthread_create( &t, &attr, task, NULL );
8550 if( status ) return status;
8552 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8554 /* give thread a chance to complete */
8555 /* it should remain joinable and hence detachable */
8558 status = pthread_detach( t );
8559 if( status ) return status;
8564 /* Draft 4 pthreads */
8565 status = pthread_create( &t, pthread_attr_default, task, NULL );
8566 if( status ) return status;
8569 /* give thread a chance to complete */
8570 /* it should remain joinable and hence detachable */
8573 status = pthread_detach( &t );
8574 if( status ) return status;
8578 #ifdef HAVE_LINUX_THREADS
8579 pthread_kill_other_threads_np();
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8589 ol_cv_pthread_pthreads=yes
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8594 ol_cv_pthread_pthreads=no
8605 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8607 if test $ol_cv_pthread_pthreads = yes ; then
8608 ol_link_pthreads="-pthreads"
8609 ol_link_threads=posix
8613 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8614 if test "$ol_link_threads" = no ; then
8616 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8617 echo "configure:8618: checking for pthread link with -mthreads" >&5
8618 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8624 LIBS="-mthreads $LIBS"
8626 if test "$cross_compiling" = yes; then
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* pthread test headers */
8631 #include <pthread.h>
8633 #define NULL (void*)0
8636 static void *task(p)
8639 return (void *) (p == NULL);
8644 /* pthread test function */
8649 #ifdef HAVE_PTHREADS_FINAL
8650 /* Final pthreads */
8651 pthread_attr_t attr;
8653 status = pthread_attr_init(&attr);
8654 if( status ) return status;
8656 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8658 #if defined( PTHREAD_CREATE_JOINABLE )
8659 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8661 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8664 #ifdef PTHREAD_CREATE_DETACHED
8666 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8669 if( status ) return status;
8672 status = pthread_create( &t, &attr, task, NULL );
8673 if( status ) return status;
8675 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8677 /* give thread a chance to complete */
8678 /* it should remain joinable and hence detachable */
8681 status = pthread_detach( t );
8682 if( status ) return status;
8687 /* Draft 4 pthreads */
8688 status = pthread_create( &t, pthread_attr_default, task, NULL );
8689 if( status ) return status;
8692 /* give thread a chance to complete */
8693 /* it should remain joinable and hence detachable */
8696 status = pthread_detach( &t );
8697 if( status ) return status;
8701 #ifdef HAVE_LINUX_THREADS
8702 pthread_kill_other_threads_np();
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8711 ol_cv_pthread_mthreads=yes
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8716 ol_cv_pthread_mthreads=no
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723 /* pthread test headers */
8724 #include <pthread.h>
8726 #define NULL (void*)0
8729 static void *task(p)
8732 return (void *) (p == NULL);
8736 int main(argc, argv)
8741 /* pthread test function */
8746 #ifdef HAVE_PTHREADS_FINAL
8747 /* Final pthreads */
8748 pthread_attr_t attr;
8750 status = pthread_attr_init(&attr);
8751 if( status ) return status;
8753 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8755 #if defined( PTHREAD_CREATE_JOINABLE )
8756 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8758 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8761 #ifdef PTHREAD_CREATE_DETACHED
8763 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8766 if( status ) return status;
8769 status = pthread_create( &t, &attr, task, NULL );
8770 if( status ) return status;
8772 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8774 /* give thread a chance to complete */
8775 /* it should remain joinable and hence detachable */
8778 status = pthread_detach( t );
8779 if( status ) return status;
8784 /* Draft 4 pthreads */
8785 status = pthread_create( &t, pthread_attr_default, task, NULL );
8786 if( status ) return status;
8789 /* give thread a chance to complete */
8790 /* it should remain joinable and hence detachable */
8793 status = pthread_detach( &t );
8794 if( status ) return status;
8798 #ifdef HAVE_LINUX_THREADS
8799 pthread_kill_other_threads_np();
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8809 ol_cv_pthread_mthreads=yes
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8814 ol_cv_pthread_mthreads=no
8825 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8827 if test $ol_cv_pthread_mthreads = yes ; then
8828 ol_link_pthreads="-mthreads"
8829 ol_link_threads=posix
8833 # Pthread try link: -thread (ol_cv_pthread_thread)
8834 if test "$ol_link_threads" = no ; then
8836 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8837 echo "configure:8838: checking for pthread link with -thread" >&5
8838 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8844 LIBS="-thread $LIBS"
8846 if test "$cross_compiling" = yes; then
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 /* pthread test headers */
8851 #include <pthread.h>
8853 #define NULL (void*)0
8856 static void *task(p)
8859 return (void *) (p == NULL);
8864 /* pthread test function */
8869 #ifdef HAVE_PTHREADS_FINAL
8870 /* Final pthreads */
8871 pthread_attr_t attr;
8873 status = pthread_attr_init(&attr);
8874 if( status ) return status;
8876 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8878 #if defined( PTHREAD_CREATE_JOINABLE )
8879 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8881 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8884 #ifdef PTHREAD_CREATE_DETACHED
8886 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8889 if( status ) return status;
8892 status = pthread_create( &t, &attr, task, NULL );
8893 if( status ) return status;
8895 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8897 /* give thread a chance to complete */
8898 /* it should remain joinable and hence detachable */
8901 status = pthread_detach( t );
8902 if( status ) return status;
8907 /* Draft 4 pthreads */
8908 status = pthread_create( &t, pthread_attr_default, task, NULL );
8909 if( status ) return status;
8912 /* give thread a chance to complete */
8913 /* it should remain joinable and hence detachable */
8916 status = pthread_detach( &t );
8917 if( status ) return status;
8921 #ifdef HAVE_LINUX_THREADS
8922 pthread_kill_other_threads_np();
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8931 ol_cv_pthread_thread=yes
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8936 ol_cv_pthread_thread=no
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8943 /* pthread test headers */
8944 #include <pthread.h>
8946 #define NULL (void*)0
8949 static void *task(p)
8952 return (void *) (p == NULL);
8956 int main(argc, argv)
8961 /* pthread test function */
8966 #ifdef HAVE_PTHREADS_FINAL
8967 /* Final pthreads */
8968 pthread_attr_t attr;
8970 status = pthread_attr_init(&attr);
8971 if( status ) return status;
8973 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8975 #if defined( PTHREAD_CREATE_JOINABLE )
8976 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8978 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8981 #ifdef PTHREAD_CREATE_DETACHED
8983 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8986 if( status ) return status;
8989 status = pthread_create( &t, &attr, task, NULL );
8990 if( status ) return status;
8992 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8994 /* give thread a chance to complete */
8995 /* it should remain joinable and hence detachable */
8998 status = pthread_detach( t );
8999 if( status ) return status;
9004 /* Draft 4 pthreads */
9005 status = pthread_create( &t, pthread_attr_default, task, NULL );
9006 if( status ) return status;
9009 /* give thread a chance to complete */
9010 /* it should remain joinable and hence detachable */
9013 status = pthread_detach( &t );
9014 if( status ) return status;
9018 #ifdef HAVE_LINUX_THREADS
9019 pthread_kill_other_threads_np();
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9029 ol_cv_pthread_thread=yes
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 ol_cv_pthread_thread=no
9045 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
9047 if test $ol_cv_pthread_thread = yes ; then
9048 ol_link_pthreads="-thread"
9049 ol_link_threads=posix
9054 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
9055 if test "$ol_link_threads" = no ; then
9056 # try -lpthread -lmach -lexc -lc_r
9057 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
9058 echo "configure:9059: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
9059 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9065 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
9067 if test "$cross_compiling" = yes; then
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 /* pthread test headers */
9072 #include <pthread.h>
9074 #define NULL (void*)0
9077 static void *task(p)
9080 return (void *) (p == NULL);
9085 /* pthread test function */
9090 #ifdef HAVE_PTHREADS_FINAL
9091 /* Final pthreads */
9092 pthread_attr_t attr;
9094 status = pthread_attr_init(&attr);
9095 if( status ) return status;
9097 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9099 #if defined( PTHREAD_CREATE_JOINABLE )
9100 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9102 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9105 #ifdef PTHREAD_CREATE_DETACHED
9107 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9110 if( status ) return status;
9113 status = pthread_create( &t, &attr, task, NULL );
9114 if( status ) return status;
9116 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9118 /* give thread a chance to complete */
9119 /* it should remain joinable and hence detachable */
9122 status = pthread_detach( t );
9123 if( status ) return status;
9128 /* Draft 4 pthreads */
9129 status = pthread_create( &t, pthread_attr_default, task, NULL );
9130 if( status ) return status;
9133 /* give thread a chance to complete */
9134 /* it should remain joinable and hence detachable */
9137 status = pthread_detach( &t );
9138 if( status ) return status;
9142 #ifdef HAVE_LINUX_THREADS
9143 pthread_kill_other_threads_np();
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9152 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9161 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9164 /* pthread test headers */
9165 #include <pthread.h>
9167 #define NULL (void*)0
9170 static void *task(p)
9173 return (void *) (p == NULL);
9177 int main(argc, argv)
9182 /* pthread test function */
9187 #ifdef HAVE_PTHREADS_FINAL
9188 /* Final pthreads */
9189 pthread_attr_t attr;
9191 status = pthread_attr_init(&attr);
9192 if( status ) return status;
9194 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9196 #if defined( PTHREAD_CREATE_JOINABLE )
9197 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9199 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9202 #ifdef PTHREAD_CREATE_DETACHED
9204 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9207 if( status ) return status;
9210 status = pthread_create( &t, &attr, task, NULL );
9211 if( status ) return status;
9213 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9215 /* give thread a chance to complete */
9216 /* it should remain joinable and hence detachable */
9219 status = pthread_detach( t );
9220 if( status ) return status;
9225 /* Draft 4 pthreads */
9226 status = pthread_create( &t, pthread_attr_default, task, NULL );
9227 if( status ) return status;
9230 /* give thread a chance to complete */
9231 /* it should remain joinable and hence detachable */
9234 status = pthread_detach( &t );
9235 if( status ) return status;
9239 #ifdef HAVE_LINUX_THREADS
9240 pthread_kill_other_threads_np();
9248 if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9250 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9255 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9266 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9268 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9269 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9270 ol_link_threads=posix
9274 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9275 if test "$ol_link_threads" = no ; then
9276 # try -lpthread -lmach -lexc
9277 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9278 echo "configure:9279: checking for pthread link with -lpthread -lmach -lexc" >&5
9279 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9285 LIBS="-lpthread -lmach -lexc $LIBS"
9287 if test "$cross_compiling" = yes; then
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 /* pthread test headers */
9292 #include <pthread.h>
9294 #define NULL (void*)0
9297 static void *task(p)
9300 return (void *) (p == NULL);
9305 /* pthread test function */
9310 #ifdef HAVE_PTHREADS_FINAL
9311 /* Final pthreads */
9312 pthread_attr_t attr;
9314 status = pthread_attr_init(&attr);
9315 if( status ) return status;
9317 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9319 #if defined( PTHREAD_CREATE_JOINABLE )
9320 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9322 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9325 #ifdef PTHREAD_CREATE_DETACHED
9327 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9330 if( status ) return status;
9333 status = pthread_create( &t, &attr, task, NULL );
9334 if( status ) return status;
9336 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9338 /* give thread a chance to complete */
9339 /* it should remain joinable and hence detachable */
9342 status = pthread_detach( t );
9343 if( status ) return status;
9348 /* Draft 4 pthreads */
9349 status = pthread_create( &t, pthread_attr_default, task, NULL );
9350 if( status ) return status;
9353 /* give thread a chance to complete */
9354 /* it should remain joinable and hence detachable */
9357 status = pthread_detach( &t );
9358 if( status ) return status;
9362 #ifdef HAVE_LINUX_THREADS
9363 pthread_kill_other_threads_np();
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9372 ol_cv_pthread_lpthread_lmach_lexc=yes
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 ol_cv_pthread_lpthread_lmach_lexc=no
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 /* pthread test headers */
9385 #include <pthread.h>
9387 #define NULL (void*)0
9390 static void *task(p)
9393 return (void *) (p == NULL);
9397 int main(argc, argv)
9402 /* pthread test function */
9407 #ifdef HAVE_PTHREADS_FINAL
9408 /* Final pthreads */
9409 pthread_attr_t attr;
9411 status = pthread_attr_init(&attr);
9412 if( status ) return status;
9414 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9416 #if defined( PTHREAD_CREATE_JOINABLE )
9417 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9419 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9422 #ifdef PTHREAD_CREATE_DETACHED
9424 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9427 if( status ) return status;
9430 status = pthread_create( &t, &attr, task, NULL );
9431 if( status ) return status;
9433 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9435 /* give thread a chance to complete */
9436 /* it should remain joinable and hence detachable */
9439 status = pthread_detach( t );
9440 if( status ) return status;
9445 /* Draft 4 pthreads */
9446 status = pthread_create( &t, pthread_attr_default, task, NULL );
9447 if( status ) return status;
9450 /* give thread a chance to complete */
9451 /* it should remain joinable and hence detachable */
9454 status = pthread_detach( &t );
9455 if( status ) return status;
9459 #ifdef HAVE_LINUX_THREADS
9460 pthread_kill_other_threads_np();
9468 if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9470 ol_cv_pthread_lpthread_lmach_lexc=yes
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9475 ol_cv_pthread_lpthread_lmach_lexc=no
9486 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9488 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9489 ol_link_pthreads="-lpthread -lmach -lexc"
9490 ol_link_threads=posix
9495 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9496 if test "$ol_link_threads" = no ; then
9497 # try -lpthread -Wl,-woff,85
9498 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9499 echo "configure:9500: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9500 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9506 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9508 if test "$cross_compiling" = yes; then
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9512 /* pthread test headers */
9513 #include <pthread.h>
9515 #define NULL (void*)0
9518 static void *task(p)
9521 return (void *) (p == NULL);
9526 /* pthread test function */
9531 #ifdef HAVE_PTHREADS_FINAL
9532 /* Final pthreads */
9533 pthread_attr_t attr;
9535 status = pthread_attr_init(&attr);
9536 if( status ) return status;
9538 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9540 #if defined( PTHREAD_CREATE_JOINABLE )
9541 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9543 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9546 #ifdef PTHREAD_CREATE_DETACHED
9548 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9551 if( status ) return status;
9554 status = pthread_create( &t, &attr, task, NULL );
9555 if( status ) return status;
9557 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9559 /* give thread a chance to complete */
9560 /* it should remain joinable and hence detachable */
9563 status = pthread_detach( t );
9564 if( status ) return status;
9569 /* Draft 4 pthreads */
9570 status = pthread_create( &t, pthread_attr_default, task, NULL );
9571 if( status ) return status;
9574 /* give thread a chance to complete */
9575 /* it should remain joinable and hence detachable */
9578 status = pthread_detach( &t );
9579 if( status ) return status;
9583 #ifdef HAVE_LINUX_THREADS
9584 pthread_kill_other_threads_np();
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9593 ol_cv_pthread_lib_lpthread_woff=yes
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9598 ol_cv_pthread_lib_lpthread_woff=no
9602 cat > conftest.$ac_ext <<EOF
9603 #line 9604 "configure"
9604 #include "confdefs.h"
9605 /* pthread test headers */
9606 #include <pthread.h>
9608 #define NULL (void*)0
9611 static void *task(p)
9614 return (void *) (p == NULL);
9618 int main(argc, argv)
9623 /* pthread test function */
9628 #ifdef HAVE_PTHREADS_FINAL
9629 /* Final pthreads */
9630 pthread_attr_t attr;
9632 status = pthread_attr_init(&attr);
9633 if( status ) return status;
9635 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9637 #if defined( PTHREAD_CREATE_JOINABLE )
9638 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9640 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9643 #ifdef PTHREAD_CREATE_DETACHED
9645 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9648 if( status ) return status;
9651 status = pthread_create( &t, &attr, task, NULL );
9652 if( status ) return status;
9654 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9656 /* give thread a chance to complete */
9657 /* it should remain joinable and hence detachable */
9660 status = pthread_detach( t );
9661 if( status ) return status;
9666 /* Draft 4 pthreads */
9667 status = pthread_create( &t, pthread_attr_default, task, NULL );
9668 if( status ) return status;
9671 /* give thread a chance to complete */
9672 /* it should remain joinable and hence detachable */
9675 status = pthread_detach( &t );
9676 if( status ) return status;
9680 #ifdef HAVE_LINUX_THREADS
9681 pthread_kill_other_threads_np();
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9691 ol_cv_pthread_lib_lpthread_woff=yes
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9696 ol_cv_pthread_lib_lpthread_woff=no
9707 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9709 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9710 ol_link_pthreads="-lpthread -Wl,-woff,85"
9711 ol_link_threads=posix
9716 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9717 if test "$ol_link_threads" = no ; then
9719 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9720 echo "configure:9721: checking for pthread link with -lpthread" >&5
9721 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
9727 LIBS="-lpthread $LIBS"
9729 if test "$cross_compiling" = yes; then
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 /* pthread test headers */
9734 #include <pthread.h>
9736 #define NULL (void*)0
9739 static void *task(p)
9742 return (void *) (p == NULL);
9747 /* pthread test function */
9752 #ifdef HAVE_PTHREADS_FINAL
9753 /* Final pthreads */
9754 pthread_attr_t attr;
9756 status = pthread_attr_init(&attr);
9757 if( status ) return status;
9759 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9761 #if defined( PTHREAD_CREATE_JOINABLE )
9762 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9764 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9767 #ifdef PTHREAD_CREATE_DETACHED
9769 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9772 if( status ) return status;
9775 status = pthread_create( &t, &attr, task, NULL );
9776 if( status ) return status;
9778 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9780 /* give thread a chance to complete */
9781 /* it should remain joinable and hence detachable */
9784 status = pthread_detach( t );
9785 if( status ) return status;
9790 /* Draft 4 pthreads */
9791 status = pthread_create( &t, pthread_attr_default, task, NULL );
9792 if( status ) return status;
9795 /* give thread a chance to complete */
9796 /* it should remain joinable and hence detachable */
9799 status = pthread_detach( &t );
9800 if( status ) return status;
9804 #ifdef HAVE_LINUX_THREADS
9805 pthread_kill_other_threads_np();
9812 if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9814 ol_cv_pthread_lpthread=yes
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9819 ol_cv_pthread_lpthread=no
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9826 /* pthread test headers */
9827 #include <pthread.h>
9829 #define NULL (void*)0
9832 static void *task(p)
9835 return (void *) (p == NULL);
9839 int main(argc, argv)
9844 /* pthread test function */
9849 #ifdef HAVE_PTHREADS_FINAL
9850 /* Final pthreads */
9851 pthread_attr_t attr;
9853 status = pthread_attr_init(&attr);
9854 if( status ) return status;
9856 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9858 #if defined( PTHREAD_CREATE_JOINABLE )
9859 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9861 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9864 #ifdef PTHREAD_CREATE_DETACHED
9866 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9869 if( status ) return status;
9872 status = pthread_create( &t, &attr, task, NULL );
9873 if( status ) return status;
9875 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9877 /* give thread a chance to complete */
9878 /* it should remain joinable and hence detachable */
9881 status = pthread_detach( t );
9882 if( status ) return status;
9887 /* Draft 4 pthreads */
9888 status = pthread_create( &t, pthread_attr_default, task, NULL );
9889 if( status ) return status;
9892 /* give thread a chance to complete */
9893 /* it should remain joinable and hence detachable */
9896 status = pthread_detach( &t );
9897 if( status ) return status;
9901 #ifdef HAVE_LINUX_THREADS
9902 pthread_kill_other_threads_np();
9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9912 ol_cv_pthread_lpthread=yes
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9917 ol_cv_pthread_lpthread=no
9928 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9930 if test $ol_cv_pthread_lpthread = yes ; then
9931 ol_link_pthreads="-lpthread"
9932 ol_link_threads=posix
9936 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9937 if test "$ol_link_threads" = no ; then
9939 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9940 echo "configure:9941: checking for pthread link with -lc_r" >&5
9941 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
9949 if test "$cross_compiling" = yes; then
9950 cat > conftest.$ac_ext <<EOF
9951 #line 9952 "configure"
9952 #include "confdefs.h"
9953 /* pthread test headers */
9954 #include <pthread.h>
9956 #define NULL (void*)0
9959 static void *task(p)
9962 return (void *) (p == NULL);
9967 /* pthread test function */
9972 #ifdef HAVE_PTHREADS_FINAL
9973 /* Final pthreads */
9974 pthread_attr_t attr;
9976 status = pthread_attr_init(&attr);
9977 if( status ) return status;
9979 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9981 #if defined( PTHREAD_CREATE_JOINABLE )
9982 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9984 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9987 #ifdef PTHREAD_CREATE_DETACHED
9989 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9992 if( status ) return status;
9995 status = pthread_create( &t, &attr, task, NULL );
9996 if( status ) return status;
9998 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10000 /* give thread a chance to complete */
10001 /* it should remain joinable and hence detachable */
10004 status = pthread_detach( t );
10005 if( status ) return status;
10010 /* Draft 4 pthreads */
10011 status = pthread_create( &t, pthread_attr_default, task, NULL );
10012 if( status ) return status;
10015 /* give thread a chance to complete */
10016 /* it should remain joinable and hence detachable */
10019 status = pthread_detach( &t );
10020 if( status ) return status;
10024 #ifdef HAVE_LINUX_THREADS
10025 pthread_kill_other_threads_np();
10032 if { (eval echo configure:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10034 ol_cv_pthread_lc_r=yes
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10039 ol_cv_pthread_lc_r=no
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 /* pthread test headers */
10047 #include <pthread.h>
10049 #define NULL (void*)0
10052 static void *task(p)
10055 return (void *) (p == NULL);
10059 int main(argc, argv)
10064 /* pthread test function */
10069 #ifdef HAVE_PTHREADS_FINAL
10070 /* Final pthreads */
10071 pthread_attr_t attr;
10073 status = pthread_attr_init(&attr);
10074 if( status ) return status;
10076 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10078 #if defined( PTHREAD_CREATE_JOINABLE )
10079 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10081 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10084 #ifdef PTHREAD_CREATE_DETACHED
10086 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10089 if( status ) return status;
10092 status = pthread_create( &t, &attr, task, NULL );
10093 if( status ) return status;
10095 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10097 /* give thread a chance to complete */
10098 /* it should remain joinable and hence detachable */
10101 status = pthread_detach( t );
10102 if( status ) return status;
10107 /* Draft 4 pthreads */
10108 status = pthread_create( &t, pthread_attr_default, task, NULL );
10109 if( status ) return status;
10112 /* give thread a chance to complete */
10113 /* it should remain joinable and hence detachable */
10116 status = pthread_detach( &t );
10117 if( status ) return status;
10121 #ifdef HAVE_LINUX_THREADS
10122 pthread_kill_other_threads_np();
10130 if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10132 ol_cv_pthread_lc_r=yes
10134 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10137 ol_cv_pthread_lc_r=no
10148 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10150 if test $ol_cv_pthread_lc_r = yes ; then
10151 ol_link_pthreads="-lc_r"
10152 ol_link_threads=posix
10157 # Pthread try link: -threads (ol_cv_pthread_threads)
10158 if test "$ol_link_threads" = no ; then
10160 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10161 echo "configure:10162: checking for pthread link with -threads" >&5
10162 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10168 LIBS="-threads $LIBS"
10170 if test "$cross_compiling" = yes; then
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 /* pthread test headers */
10175 #include <pthread.h>
10177 #define NULL (void*)0
10180 static void *task(p)
10183 return (void *) (p == NULL);
10188 /* pthread test function */
10193 #ifdef HAVE_PTHREADS_FINAL
10194 /* Final pthreads */
10195 pthread_attr_t attr;
10197 status = pthread_attr_init(&attr);
10198 if( status ) return status;
10200 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10202 #if defined( PTHREAD_CREATE_JOINABLE )
10203 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10205 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10208 #ifdef PTHREAD_CREATE_DETACHED
10210 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10213 if( status ) return status;
10216 status = pthread_create( &t, &attr, task, NULL );
10217 if( status ) return status;
10219 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10221 /* give thread a chance to complete */
10222 /* it should remain joinable and hence detachable */
10225 status = pthread_detach( t );
10226 if( status ) return status;
10231 /* Draft 4 pthreads */
10232 status = pthread_create( &t, pthread_attr_default, task, NULL );
10233 if( status ) return status;
10236 /* give thread a chance to complete */
10237 /* it should remain joinable and hence detachable */
10240 status = pthread_detach( &t );
10241 if( status ) return status;
10245 #ifdef HAVE_LINUX_THREADS
10246 pthread_kill_other_threads_np();
10253 if { (eval echo configure:10254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10255 ol_cv_pthread_threads=yes
10257 echo "configure: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10260 ol_cv_pthread_threads=no
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 /* pthread test headers */
10268 #include <pthread.h>
10270 #define NULL (void*)0
10273 static void *task(p)
10276 return (void *) (p == NULL);
10280 int main(argc, argv)
10285 /* pthread test function */
10290 #ifdef HAVE_PTHREADS_FINAL
10291 /* Final pthreads */
10292 pthread_attr_t attr;
10294 status = pthread_attr_init(&attr);
10295 if( status ) return status;
10297 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10299 #if defined( PTHREAD_CREATE_JOINABLE )
10300 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10302 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10305 #ifdef PTHREAD_CREATE_DETACHED
10307 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10310 if( status ) return status;
10313 status = pthread_create( &t, &attr, task, NULL );
10314 if( status ) return status;
10316 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10318 /* give thread a chance to complete */
10319 /* it should remain joinable and hence detachable */
10322 status = pthread_detach( t );
10323 if( status ) return status;
10328 /* Draft 4 pthreads */
10329 status = pthread_create( &t, pthread_attr_default, task, NULL );
10330 if( status ) return status;
10333 /* give thread a chance to complete */
10334 /* it should remain joinable and hence detachable */
10337 status = pthread_detach( &t );
10338 if( status ) return status;
10342 #ifdef HAVE_LINUX_THREADS
10343 pthread_kill_other_threads_np();
10351 if { (eval echo configure:10352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10353 ol_cv_pthread_threads=yes
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10358 ol_cv_pthread_threads=no
10369 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10371 if test $ol_cv_pthread_threads = yes ; then
10372 ol_link_pthreads="-threads"
10373 ol_link_threads=posix
10378 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10379 if test "$ol_link_threads" = no ; then
10380 # try -lpthreads -lmach -lexc -lc_r
10381 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10382 echo "configure:10383: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10383 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10389 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10391 if test "$cross_compiling" = yes; then
10392 cat > conftest.$ac_ext <<EOF
10393 #line 10394 "configure"
10394 #include "confdefs.h"
10395 /* pthread test headers */
10396 #include <pthread.h>
10398 #define NULL (void*)0
10401 static void *task(p)
10404 return (void *) (p == NULL);
10409 /* pthread test function */
10414 #ifdef HAVE_PTHREADS_FINAL
10415 /* Final pthreads */
10416 pthread_attr_t attr;
10418 status = pthread_attr_init(&attr);
10419 if( status ) return status;
10421 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10423 #if defined( PTHREAD_CREATE_JOINABLE )
10424 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10426 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10429 #ifdef PTHREAD_CREATE_DETACHED
10431 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10434 if( status ) return status;
10437 status = pthread_create( &t, &attr, task, NULL );
10438 if( status ) return status;
10440 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10442 /* give thread a chance to complete */
10443 /* it should remain joinable and hence detachable */
10446 status = pthread_detach( t );
10447 if( status ) return status;
10452 /* Draft 4 pthreads */
10453 status = pthread_create( &t, pthread_attr_default, task, NULL );
10454 if( status ) return status;
10457 /* give thread a chance to complete */
10458 /* it should remain joinable and hence detachable */
10461 status = pthread_detach( &t );
10462 if( status ) return status;
10466 #ifdef HAVE_LINUX_THREADS
10467 pthread_kill_other_threads_np();
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10476 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10481 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10485 cat > conftest.$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10488 /* pthread test headers */
10489 #include <pthread.h>
10491 #define NULL (void*)0
10494 static void *task(p)
10497 return (void *) (p == NULL);
10501 int main(argc, argv)
10506 /* pthread test function */
10511 #ifdef HAVE_PTHREADS_FINAL
10512 /* Final pthreads */
10513 pthread_attr_t attr;
10515 status = pthread_attr_init(&attr);
10516 if( status ) return status;
10518 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10520 #if defined( PTHREAD_CREATE_JOINABLE )
10521 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10523 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10526 #ifdef PTHREAD_CREATE_DETACHED
10528 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10531 if( status ) return status;
10534 status = pthread_create( &t, &attr, task, NULL );
10535 if( status ) return status;
10537 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10539 /* give thread a chance to complete */
10540 /* it should remain joinable and hence detachable */
10543 status = pthread_detach( t );
10544 if( status ) return status;
10549 /* Draft 4 pthreads */
10550 status = pthread_create( &t, pthread_attr_default, task, NULL );
10551 if( status ) return status;
10554 /* give thread a chance to complete */
10555 /* it should remain joinable and hence detachable */
10558 status = pthread_detach( &t );
10559 if( status ) return status;
10563 #ifdef HAVE_LINUX_THREADS
10564 pthread_kill_other_threads_np();
10572 if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10574 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10579 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10590 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10592 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10593 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10594 ol_link_threads=posix
10598 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10599 if test "$ol_link_threads" = no ; then
10600 # try -lpthreads -lmach -lexc
10601 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10602 echo "configure:10603: checking for pthread link with -lpthreads -lmach -lexc" >&5
10603 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10609 LIBS="-lpthreads -lmach -lexc $LIBS"
10611 if test "$cross_compiling" = yes; then
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 /* pthread test headers */
10616 #include <pthread.h>
10618 #define NULL (void*)0
10621 static void *task(p)
10624 return (void *) (p == NULL);
10629 /* pthread test function */
10634 #ifdef HAVE_PTHREADS_FINAL
10635 /* Final pthreads */
10636 pthread_attr_t attr;
10638 status = pthread_attr_init(&attr);
10639 if( status ) return status;
10641 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10643 #if defined( PTHREAD_CREATE_JOINABLE )
10644 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10646 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10649 #ifdef PTHREAD_CREATE_DETACHED
10651 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10654 if( status ) return status;
10657 status = pthread_create( &t, &attr, task, NULL );
10658 if( status ) return status;
10660 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10662 /* give thread a chance to complete */
10663 /* it should remain joinable and hence detachable */
10666 status = pthread_detach( t );
10667 if( status ) return status;
10672 /* Draft 4 pthreads */
10673 status = pthread_create( &t, pthread_attr_default, task, NULL );
10674 if( status ) return status;
10677 /* give thread a chance to complete */
10678 /* it should remain joinable and hence detachable */
10681 status = pthread_detach( &t );
10682 if( status ) return status;
10686 #ifdef HAVE_LINUX_THREADS
10687 pthread_kill_other_threads_np();
10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10696 ol_cv_pthread_lpthreads_lmach_lexc=yes
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10701 ol_cv_pthread_lpthreads_lmach_lexc=no
10705 cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10708 /* pthread test headers */
10709 #include <pthread.h>
10711 #define NULL (void*)0
10714 static void *task(p)
10717 return (void *) (p == NULL);
10721 int main(argc, argv)
10726 /* pthread test function */
10731 #ifdef HAVE_PTHREADS_FINAL
10732 /* Final pthreads */
10733 pthread_attr_t attr;
10735 status = pthread_attr_init(&attr);
10736 if( status ) return status;
10738 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10740 #if defined( PTHREAD_CREATE_JOINABLE )
10741 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10743 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10746 #ifdef PTHREAD_CREATE_DETACHED
10748 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10751 if( status ) return status;
10754 status = pthread_create( &t, &attr, task, NULL );
10755 if( status ) return status;
10757 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10759 /* give thread a chance to complete */
10760 /* it should remain joinable and hence detachable */
10763 status = pthread_detach( t );
10764 if( status ) return status;
10769 /* Draft 4 pthreads */
10770 status = pthread_create( &t, pthread_attr_default, task, NULL );
10771 if( status ) return status;
10774 /* give thread a chance to complete */
10775 /* it should remain joinable and hence detachable */
10778 status = pthread_detach( &t );
10779 if( status ) return status;
10783 #ifdef HAVE_LINUX_THREADS
10784 pthread_kill_other_threads_np();
10792 if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10794 ol_cv_pthread_lpthreads_lmach_lexc=yes
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10799 ol_cv_pthread_lpthreads_lmach_lexc=no
10810 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10812 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10813 ol_link_pthreads="-lpthreads -lmach -lexc"
10814 ol_link_threads=posix
10818 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10819 if test "$ol_link_threads" = no ; then
10820 # try -lpthreads -lexc
10821 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10822 echo "configure:10823: checking for pthread link with -lpthreads -lexc" >&5
10823 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10824 echo $ac_n "(cached) $ac_c" 1>&6
10829 LIBS="-lpthreads -lexc $LIBS"
10831 if test "$cross_compiling" = yes; then
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 /* pthread test headers */
10836 #include <pthread.h>
10838 #define NULL (void*)0
10841 static void *task(p)
10844 return (void *) (p == NULL);
10849 /* pthread test function */
10854 #ifdef HAVE_PTHREADS_FINAL
10855 /* Final pthreads */
10856 pthread_attr_t attr;
10858 status = pthread_attr_init(&attr);
10859 if( status ) return status;
10861 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10863 #if defined( PTHREAD_CREATE_JOINABLE )
10864 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10866 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10869 #ifdef PTHREAD_CREATE_DETACHED
10871 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10874 if( status ) return status;
10877 status = pthread_create( &t, &attr, task, NULL );
10878 if( status ) return status;
10880 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10882 /* give thread a chance to complete */
10883 /* it should remain joinable and hence detachable */
10886 status = pthread_detach( t );
10887 if( status ) return status;
10892 /* Draft 4 pthreads */
10893 status = pthread_create( &t, pthread_attr_default, task, NULL );
10894 if( status ) return status;
10897 /* give thread a chance to complete */
10898 /* it should remain joinable and hence detachable */
10901 status = pthread_detach( &t );
10902 if( status ) return status;
10906 #ifdef HAVE_LINUX_THREADS
10907 pthread_kill_other_threads_np();
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10916 ol_cv_pthread_lpthreads_lexc=yes
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10921 ol_cv_pthread_lpthreads_lexc=no
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 /* pthread test headers */
10929 #include <pthread.h>
10931 #define NULL (void*)0
10934 static void *task(p)
10937 return (void *) (p == NULL);
10941 int main(argc, argv)
10946 /* pthread test function */
10951 #ifdef HAVE_PTHREADS_FINAL
10952 /* Final pthreads */
10953 pthread_attr_t attr;
10955 status = pthread_attr_init(&attr);
10956 if( status ) return status;
10958 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10960 #if defined( PTHREAD_CREATE_JOINABLE )
10961 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10963 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10966 #ifdef PTHREAD_CREATE_DETACHED
10968 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10971 if( status ) return status;
10974 status = pthread_create( &t, &attr, task, NULL );
10975 if( status ) return status;
10977 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10979 /* give thread a chance to complete */
10980 /* it should remain joinable and hence detachable */
10983 status = pthread_detach( t );
10984 if( status ) return status;
10989 /* Draft 4 pthreads */
10990 status = pthread_create( &t, pthread_attr_default, task, NULL );
10991 if( status ) return status;
10994 /* give thread a chance to complete */
10995 /* it should remain joinable and hence detachable */
10998 status = pthread_detach( &t );
10999 if( status ) return status;
11003 #ifdef HAVE_LINUX_THREADS
11004 pthread_kill_other_threads_np();
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11014 ol_cv_pthread_lpthreads_lexc=yes
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11019 ol_cv_pthread_lpthreads_lexc=no
11030 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
11032 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
11033 ol_link_pthreads="-lpthreads -lexc"
11034 ol_link_threads=posix
11039 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
11040 if test "$ol_link_threads" = no ; then
11042 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
11043 echo "configure:11044: checking for pthread link with -lpthreads" >&5
11044 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11050 LIBS="-lpthreads $LIBS"
11052 if test "$cross_compiling" = yes; then
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 /* pthread test headers */
11057 #include <pthread.h>
11059 #define NULL (void*)0
11062 static void *task(p)
11065 return (void *) (p == NULL);
11070 /* pthread test function */
11075 #ifdef HAVE_PTHREADS_FINAL
11076 /* Final pthreads */
11077 pthread_attr_t attr;
11079 status = pthread_attr_init(&attr);
11080 if( status ) return status;
11082 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11084 #if defined( PTHREAD_CREATE_JOINABLE )
11085 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11087 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11090 #ifdef PTHREAD_CREATE_DETACHED
11092 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11095 if( status ) return status;
11098 status = pthread_create( &t, &attr, task, NULL );
11099 if( status ) return status;
11101 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11103 /* give thread a chance to complete */
11104 /* it should remain joinable and hence detachable */
11107 status = pthread_detach( t );
11108 if( status ) return status;
11113 /* Draft 4 pthreads */
11114 status = pthread_create( &t, pthread_attr_default, task, NULL );
11115 if( status ) return status;
11118 /* give thread a chance to complete */
11119 /* it should remain joinable and hence detachable */
11122 status = pthread_detach( &t );
11123 if( status ) return status;
11127 #ifdef HAVE_LINUX_THREADS
11128 pthread_kill_other_threads_np();
11135 if { (eval echo configure:11136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11137 ol_cv_pthread_lib_lpthreads=yes
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11142 ol_cv_pthread_lib_lpthreads=no
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 /* pthread test headers */
11150 #include <pthread.h>
11152 #define NULL (void*)0
11155 static void *task(p)
11158 return (void *) (p == NULL);
11162 int main(argc, argv)
11167 /* pthread test function */
11172 #ifdef HAVE_PTHREADS_FINAL
11173 /* Final pthreads */
11174 pthread_attr_t attr;
11176 status = pthread_attr_init(&attr);
11177 if( status ) return status;
11179 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11181 #if defined( PTHREAD_CREATE_JOINABLE )
11182 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11184 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11187 #ifdef PTHREAD_CREATE_DETACHED
11189 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11192 if( status ) return status;
11195 status = pthread_create( &t, &attr, task, NULL );
11196 if( status ) return status;
11198 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11200 /* give thread a chance to complete */
11201 /* it should remain joinable and hence detachable */
11204 status = pthread_detach( t );
11205 if( status ) return status;
11210 /* Draft 4 pthreads */
11211 status = pthread_create( &t, pthread_attr_default, task, NULL );
11212 if( status ) return status;
11215 /* give thread a chance to complete */
11216 /* it should remain joinable and hence detachable */
11219 status = pthread_detach( &t );
11220 if( status ) return status;
11224 #ifdef HAVE_LINUX_THREADS
11225 pthread_kill_other_threads_np();
11233 if { (eval echo configure:11234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11235 ol_cv_pthread_lib_lpthreads=yes
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11240 ol_cv_pthread_lib_lpthreads=no
11251 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11253 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11254 ol_link_pthreads="-lpthreads"
11255 ol_link_threads=posix
11260 if test $ol_link_threads != no ; then
11261 cat >> confdefs.h <<\EOF
11262 #define HAVE_PTHREADS 1
11266 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11268 save_CPPFLAGS="$CPPFLAGS"
11270 LIBS="$LTHREAD_LIBS $LIBS"
11272 for ac_func in sched_yield pthread_yield
11274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11275 echo "configure:11276: checking for $ac_func" >&5
11276 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11277 echo $ac_n "(cached) $ac_c" 1>&6
11279 cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 /* System header to define __stub macros and hopefully few prototypes,
11283 which can conflict with char $ac_func(); below. */
11284 #include <assert.h>
11285 /* Override any gcc2 internal prototype to avoid an error. */
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11293 /* The GNU C library defines this for functions which it implements
11294 to always fail with ENOSYS. Some functions are actually named
11295 something starting with __ and the normal name is an alias. */
11296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11304 if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11306 eval "ac_cv_func_$ac_func=yes"
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 eval "ac_cv_func_$ac_func=no"
11316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11317 echo "$ac_t""yes" 1>&6
11318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11319 cat >> confdefs.h <<EOF
11320 #define $ac_tr_func 1
11324 echo "$ac_t""no" 1>&6
11329 if test $ac_cv_func_sched_yield = no -a \
11330 $ac_cv_func_pthread_yield = no ; then
11331 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11332 echo "configure:11333: checking for sched_yield in -lrt" >&5
11333 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11337 ac_save_LIBS="$LIBS"
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 /* Override any gcc2 internal prototype to avoid an error. */
11343 /* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11345 char sched_yield();
11351 if { (eval echo configure:11352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11353 eval "ac_cv_lib_$ac_lib_var=yes"
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 eval "ac_cv_lib_$ac_lib_var=no"
11361 LIBS="$ac_save_LIBS"
11364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11367 cat >> confdefs.h <<\EOF
11368 #define HAVE_SCHED_YIELD 1
11371 ac_cv_func_sched_yield=yes
11373 echo "$ac_t""no" 1>&6
11374 ac_cv_func_sched_yield=no
11378 if test $ac_cv_func_sched_yield = no -a \
11379 $ac_cv_func_pthread_yield = no ; then
11380 for ac_func in thr_yield
11382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11383 echo "configure:11384: checking for $ac_func" >&5
11384 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11385 echo $ac_n "(cached) $ac_c" 1>&6
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 /* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char $ac_func(); below. */
11392 #include <assert.h>
11393 /* Override any gcc2 internal prototype to avoid an error. */
11394 /* We use char because int might match the return type of a gcc2
11395 builtin and then its argument prototype would still apply. */
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11412 if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11414 eval "ac_cv_func_$ac_func=yes"
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11419 eval "ac_cv_func_$ac_func=no"
11424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11425 echo "$ac_t""yes" 1>&6
11426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11427 cat >> confdefs.h <<EOF
11428 #define $ac_tr_func 1
11432 echo "$ac_t""no" 1>&6
11437 if test $ac_cv_func_sched_yield = no -a \
11438 $ac_cv_func_pthread_yield = no -a \
11439 "$ac_cv_func_thr_yield" = no ; then
11440 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11443 for ac_func in pthread_kill pthread_rwlock_destroy
11445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11446 echo "configure:11447: checking for $ac_func" >&5
11447 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11450 cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11453 /* System header to define __stub macros and hopefully few prototypes,
11454 which can conflict with char $ac_func(); below. */
11455 #include <assert.h>
11456 /* Override any gcc2 internal prototype to avoid an error. */
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11464 /* The GNU C library defines this for functions which it implements
11465 to always fail with ENOSYS. Some functions are actually named
11466 something starting with __ and the normal name is an alias. */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11477 eval "ac_cv_func_$ac_func=yes"
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 eval "ac_cv_func_$ac_func=no"
11487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11488 echo "$ac_t""yes" 1>&6
11489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11490 cat >> confdefs.h <<EOF
11491 #define $ac_tr_func 1
11495 echo "$ac_t""no" 1>&6
11500 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11501 echo "configure:11502: checking for pthread_detach with <pthread.h>" >&5
11502 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11508 "configure"
11508 #include "confdefs.h"
11510 #include <pthread.h>
11512 #define NULL (void*)0
11516 pthread_detach(NULL);
11519 if { (eval echo configure:11520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11521 ol_cv_func_pthread_detach=yes
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11526 ol_cv_func_pthread_detach=no
11532 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11534 if test $ol_cv_func_pthread_detach = no ; then
11535 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11538 cat >> confdefs.h <<\EOF
11539 #define HAVE_PTHREAD_DETACH 1
11544 pthread_setconcurrency \
11545 pthread_getconcurrency \
11546 thr_setconcurrency \
11547 thr_getconcurrency \
11550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11551 echo "configure:11552: checking for $ac_func" >&5
11552 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11553 echo $ac_n "(cached) $ac_c" 1>&6
11555 cat > conftest.$ac_ext <<EOF
11556 #line 11557 "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func(); below. */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error. */
11562 /* We use char because int might match the return type of a gcc2
11563 builtin and then its argument prototype would still apply. */
11569 /* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11580 if { (eval echo configure:11581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11582 eval "ac_cv_func_$ac_func=yes"
11584 echo "configure: failed program was:" >&5
11585 cat conftest.$ac_ext >&5
11587 eval "ac_cv_func_$ac_func=no"
11592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11593 echo "$ac_t""yes" 1>&6
11594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11595 cat >> confdefs.h <<EOF
11596 #define $ac_tr_func 1
11600 echo "$ac_t""no" 1>&6
11606 for ac_func in pthread_kill_other_threads_np
11608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11609 echo "configure:11610: checking for $ac_func" >&5
11610 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11611 echo $ac_n "(cached) $ac_c" 1>&6
11613 cat > conftest.$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11616 /* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func(); below. */
11618 #include <assert.h>
11619 /* Override any gcc2 internal prototype to avoid an error. */
11620 /* We use char because int might match the return type of a gcc2
11621 builtin and then its argument prototype would still apply. */
11627 /* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11640 eval "ac_cv_func_$ac_func=yes"
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11645 eval "ac_cv_func_$ac_func=no"
11650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11653 cat >> confdefs.h <<EOF
11654 #define $ac_tr_func 1
11658 echo "$ac_t""no" 1>&6
11662 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11663 echo "configure:11664: checking for LinuxThreads implementation" >&5
11664 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11667 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11670 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11675 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11676 echo "configure:11677: checking for LinuxThreads consistency" >&5
11677 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11681 if test $ol_cv_header_linux_threads = yes -a \
11682 $ol_cv_sys_linux_threads = yes; then
11683 ol_cv_linux_threads=yes
11684 elif test $ol_cv_header_linux_threads = no -a \
11685 $ol_cv_sys_linux_threads = no; then
11686 ol_cv_linux_threads=no
11688 ol_cv_linux_threads=error
11693 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11696 if test $ol_cv_linux_threads = error; then
11697 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11700 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11701 echo "configure:11702: checking if pthread_create() works" >&5
11702 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11706 if test "$cross_compiling" = yes; then
11707 ol_cv_pthread_create_works=yes
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 /* pthread test headers */
11713 #include <pthread.h>
11715 #define NULL (void*)0
11718 static void *task(p)
11721 return (void *) (p == NULL);
11725 int main(argc, argv)
11730 /* pthread test function */
11735 #ifdef HAVE_PTHREADS_FINAL
11736 /* Final pthreads */
11737 pthread_attr_t attr;
11739 status = pthread_attr_init(&attr);
11740 if( status ) return status;
11742 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11744 #if defined( PTHREAD_CREATE_JOINABLE )
11745 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11747 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11750 #ifdef PTHREAD_CREATE_DETACHED
11752 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11755 if( status ) return status;
11758 status = pthread_create( &t, &attr, task, NULL );
11759 if( status ) return status;
11761 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11763 /* give thread a chance to complete */
11764 /* it should remain joinable and hence detachable */
11767 status = pthread_detach( t );
11768 if( status ) return status;
11773 /* Draft 4 pthreads */
11774 status = pthread_create( &t, pthread_attr_default, task, NULL );
11775 if( status ) return status;
11778 /* give thread a chance to complete */
11779 /* it should remain joinable and hence detachable */
11782 status = pthread_detach( &t );
11783 if( status ) return status;
11787 #ifdef HAVE_LINUX_THREADS
11788 pthread_kill_other_threads_np();
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11798 ol_cv_pthread_create_works=yes
11800 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5
11803 ol_cv_pthread_create_works=no
11810 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11812 if test $ol_cv_pthread_create_works = no ; then
11813 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11816 if test $ol_with_yielding_select = auto ; then
11817 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11818 echo "configure:11819: checking if select yields when using pthreads" >&5
11819 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11823 if test "$cross_compiling" = yes; then
11824 ol_cv_pthread_select_yields=cross
11826 cat > conftest.$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11830 #include <sys/types.h>
11831 #include <sys/time.h>
11832 #include <unistd.h>
11833 #include <pthread.h>
11835 #define NULL (void*) 0
11838 static int fildes[2];
11840 static void *task(p)
11852 FD_SET(fildes[0], &rfds);
11854 /* we're not interested in any fds */
11855 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11862 exit(0); /* if we exit here, the select blocked the whole process */
11865 int main(argc, argv)
11871 /* create a pipe to select */
11872 if(pipe(&fildes[0])) {
11877 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11878 (void) pthread_setconcurrency(2);
11880 #ifdef HAVE_THR_SETCONCURRENCY
11881 /* Set Solaris LWP concurrency to 2 */
11882 thr_setconcurrency(2);
11886 #if HAVE_PTHREADS_D4
11887 pthread_create(&t, pthread_attr_default, task, NULL);
11889 pthread_create(&t, NULL, task, NULL);
11892 #if HAVE_SCHED_YIELD
11893 sched_yield(); /* make sure task runs first */
11895 #ifdef HAVE_PTHREAD_YIELD
11896 pthread_yield(); /* make sure task runs first */
11903 if { (eval echo configure:11904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11905 ol_cv_pthread_select_yields=no
11907 echo "configure: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11910 ol_cv_pthread_select_yields=yes
11917 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11919 if test $ol_cv_pthread_select_yields = cross ; then
11920 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11923 if test $ol_cv_pthread_select_yields = yes ; then
11924 ol_with_yielding_select=yes
11928 CPPFLAGS="$save_CPPFLAGS"
11931 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11935 if test $ol_with_threads = posix ; then
11936 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11940 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11941 -o $ol_with_threads = mach ; then
11943 for ac_hdr in mach/cthreads.h cthreads.h
11945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11947 echo "configure:11948: checking for $ac_hdr" >&5
11948 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11949 echo $ac_n "(cached) $ac_c" 1>&6
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11957 { (eval echo configure:11958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11959 if test -z "$ac_err"; then
11961 eval "ac_cv_header_$ac_safe=yes"
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11967 eval "ac_cv_header_$ac_safe=no"
11971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11972 echo "$ac_t""yes" 1>&6
11973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11974 cat >> confdefs.h <<EOF
11975 #define $ac_tr_hdr 1
11979 echo "$ac_t""no" 1>&6
11983 if test $ac_cv_header_mach_cthreads_h = yes ; then
11984 ol_with_threads=found
11986 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11987 echo "configure:11988: checking for cthread_fork" >&5
11988 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11989 echo $ac_n "(cached) $ac_c" 1>&6
11991 cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char cthread_fork(); below. */
11996 #include <assert.h>
11997 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12000 char cthread_fork();
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12018 eval "ac_cv_func_cthread_fork=yes"
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12023 eval "ac_cv_func_cthread_fork=no"
12028 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12029 echo "$ac_t""yes" 1>&6
12030 ol_link_threads=yes
12032 echo "$ac_t""no" 1>&6
12036 if test $ol_link_threads = no ; then
12037 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
12038 echo "configure:12039: checking for cthread_fork with -all_load" >&5
12039 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12044 LIBS="-all_load $LIBS"
12045 cat > conftest.$ac_ext <<EOF
12046 #line 12047 "configure"
12047 #include "confdefs.h"
12048 #include <mach/cthreads.h>
12051 cthread_fork((void *)0, (void *)0);
12055 if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12057 ol_cv_cthread_all_load=yes
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 ol_cv_cthread_all_load=no
12069 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
12071 if test $ol_cv_cthread_all_load = yes ; then
12072 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
12073 ol_link_threads=mach
12074 ol_with_threads=found
12078 elif test $ac_cv_header_cthreads_h = yes ; then
12080 ol_with_threads=found
12083 LIBS="$LIBS -lthreads"
12084 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12085 echo "configure:12086: checking for cthread_fork" >&5
12086 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12092 /* System header to define __stub macros and hopefully few prototypes,
12093 which can conflict with char cthread_fork(); below. */
12094 #include <assert.h>
12095 /* Override any gcc2 internal prototype to avoid an error. */
12096 /* We use char because int might match the return type of a gcc2
12097 builtin and then its argument prototype would still apply. */
12098 char cthread_fork();
12103 /* The GNU C library defines this for functions which it implements
12104 to always fail with ENOSYS. Some functions are actually named
12105 something starting with __ and the normal name is an alias. */
12106 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12116 eval "ac_cv_func_cthread_fork=yes"
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12121 eval "ac_cv_func_cthread_fork=no"
12126 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12127 echo "$ac_t""yes" 1>&6
12128 ol_link_threads=yes
12130 echo "$ac_t""no" 1>&6
12135 if test $ol_link_threads = yes ; then
12136 LTHREAD_LIBS="-lthreads"
12137 ol_link_threads=mach
12138 ol_with_threads=found
12140 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12143 elif test $ol_with_threads = mach ; then
12144 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
12147 if test $ol_link_threads = mach ; then
12148 cat >> confdefs.h <<\EOF
12149 #define HAVE_MACH_CTHREADS 1
12152 elif test $ol_with_threads = found ; then
12153 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12157 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12158 -o $ol_with_threads = pth ; then
12160 for ac_hdr in pth.h
12162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12164 echo "configure:12165: checking for $ac_hdr" >&5
12165 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12166 echo $ac_n "(cached) $ac_c" 1>&6
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12174 { (eval echo configure:12175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12176 if test -z "$ac_err"; then
12178 eval "ac_cv_header_$ac_safe=yes"
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12184 eval "ac_cv_header_$ac_safe=no"
12188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12191 cat >> confdefs.h <<EOF
12192 #define $ac_tr_hdr 1
12196 echo "$ac_t""no" 1>&6
12201 if test $ac_cv_header_pth_h = yes ; then
12202 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
12203 echo "configure:12204: checking for pth_version in -lpth" >&5
12204 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12205 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12206 echo $ac_n "(cached) $ac_c" 1>&6
12208 ac_save_LIBS="$LIBS"
12210 cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12213 /* Override any gcc2 internal prototype to avoid an error. */
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char pth_version();
12222 if { (eval echo configure:12223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224 eval "ac_cv_lib_$ac_lib_var=yes"
12226 echo "configure: failed program was:" >&5
12227 cat conftest.$ac_ext >&5
12229 eval "ac_cv_lib_$ac_lib_var=no"
12232 LIBS="$ac_save_LIBS"
12235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12236 echo "$ac_t""yes" 1>&6
12239 echo "$ac_t""no" 1>&6
12244 if test $have_pth = yes ; then
12245 cat >> confdefs.h <<\EOF
12246 #define HAVE_GNU_PTH 1
12249 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12250 ol_link_threads=pth
12251 ol_with_threads=found
12253 if test $ol_with_yielding_select = auto ; then
12254 ol_with_yielding_select=yes
12260 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12261 -o $ol_with_threads = lwp ; then
12263 for ac_hdr in thread.h synch.h
12265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12267 echo "configure:12268: checking for $ac_hdr" >&5
12268 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12271 cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12277 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12279 if test -z "$ac_err"; then
12281 eval "ac_cv_header_$ac_safe=yes"
12284 echo "configure: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12287 eval "ac_cv_header_$ac_safe=no"
12291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12294 cat >> confdefs.h <<EOF
12295 #define $ac_tr_hdr 1
12299 echo "$ac_t""no" 1>&6
12303 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12304 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12305 echo "configure:12306: checking for thr_create in -lthread" >&5
12306 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
12310 ac_save_LIBS="$LIBS"
12311 LIBS="-lthread $LIBS"
12312 cat > conftest.$ac_ext <<EOF
12313 #line 12314 "configure"
12314 #include "confdefs.h"
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12324 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12326 eval "ac_cv_lib_$ac_lib_var=yes"
12328 echo "configure: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12331 eval "ac_cv_lib_$ac_lib_var=no"
12334 LIBS="$ac_save_LIBS"
12337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12338 echo "$ac_t""yes" 1>&6
12341 echo "$ac_t""no" 1>&6
12346 if test $have_thr = yes ; then
12347 cat >> confdefs.h <<\EOF
12351 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12352 ol_link_threads=thr
12354 if test $ol_with_yielding_select = auto ; then
12355 ol_with_yielding_select=yes
12359 thr_setconcurrency \
12360 thr_getconcurrency \
12363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12364 echo "configure:12365: checking for $ac_func" >&5
12365 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12366 echo $ac_n "(cached) $ac_c" 1>&6
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371 /* System header to define __stub macros and hopefully few prototypes,
12372 which can conflict with char $ac_func(); below. */
12373 #include <assert.h>
12374 /* Override any gcc2 internal prototype to avoid an error. */
12375 /* We use char because int might match the return type of a gcc2
12376 builtin and then its argument prototype would still apply. */
12382 /* The GNU C library defines this for functions which it implements
12383 to always fail with ENOSYS. Some functions are actually named
12384 something starting with __ and the normal name is an alias. */
12385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12395 eval "ac_cv_func_$ac_func=yes"
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12400 eval "ac_cv_func_$ac_func=no"
12405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12406 echo "$ac_t""yes" 1>&6
12407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12408 cat >> confdefs.h <<EOF
12409 #define $ac_tr_func 1
12413 echo "$ac_t""no" 1>&6
12420 for ac_hdr in lwp/lwp.h
12422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12424 echo "configure:12425: checking for $ac_hdr" >&5
12425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12426 echo $ac_n "(cached) $ac_c" 1>&6
12428 cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12434 { (eval echo configure:12435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12436 if test -z "$ac_err"; then
12438 eval "ac_cv_header_$ac_safe=yes"
12441 echo "configure: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12444 eval "ac_cv_header_$ac_safe=no"
12448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12449 echo "$ac_t""yes" 1>&6
12450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12451 cat >> confdefs.h <<EOF
12452 #define $ac_tr_hdr 1
12456 echo "$ac_t""no" 1>&6
12460 if test $ac_cv_header_lwp_lwp_h = yes ; then
12461 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12462 echo "configure:12463: checking for lwp_create in -llwp" >&5
12463 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12465 echo $ac_n "(cached) $ac_c" 1>&6
12467 ac_save_LIBS="$LIBS"
12469 cat > conftest.$ac_ext <<EOF
12470 #line 12471 "configure"
12471 #include "confdefs.h"
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 /* We use char because int might match the return type of a gcc2
12474 builtin and then its argument prototype would still apply. */
12481 if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12483 eval "ac_cv_lib_$ac_lib_var=yes"
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12488 eval "ac_cv_lib_$ac_lib_var=no"
12491 LIBS="$ac_save_LIBS"
12494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12495 echo "$ac_t""yes" 1>&6
12498 echo "$ac_t""no" 1>&6
12503 if test $have_lwp = yes ; then
12504 cat >> confdefs.h <<\EOF
12508 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12509 ol_link_threads=lwp
12511 if test $ol_with_yielding_select = auto ; then
12512 ol_with_yielding_select=no
12518 if test $ol_with_yielding_select = yes ; then
12519 cat >> confdefs.h <<\EOF
12520 #define HAVE_YIELDING_SELECT 1
12525 if test $ol_with_threads = manual ; then
12526 ol_link_threads=yes
12528 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12530 for ac_hdr in pthread.h sched.h
12532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12534 echo "configure:12535: checking for $ac_hdr" >&5
12535 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12536 echo $ac_n "(cached) $ac_c" 1>&6
12538 cat > conftest.$ac_ext <<EOF
12539 #line 12540 "configure"
12540 #include "confdefs.h"
12543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12544 { (eval echo configure:12545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12546 if test -z "$ac_err"; then
12548 eval "ac_cv_header_$ac_safe=yes"
12551 echo "configure: failed program was:" >&5
12552 cat conftest.$ac_ext >&5
12554 eval "ac_cv_header_$ac_safe=no"
12558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12559 echo "$ac_t""yes" 1>&6
12560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12561 cat >> confdefs.h <<EOF
12562 #define $ac_tr_hdr 1
12566 echo "$ac_t""no" 1>&6
12570 for ac_func in sched_yield pthread_yield
12572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12573 echo "configure:12574: checking for $ac_func" >&5
12574 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12577 cat > conftest.$ac_ext <<EOF
12578 #line 12579 "configure"
12579 #include "confdefs.h"
12580 /* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char $ac_func(); below. */
12582 #include <assert.h>
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12602 if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604 eval "ac_cv_func_$ac_func=yes"
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12609 eval "ac_cv_func_$ac_func=no"
12614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12615 echo "$ac_t""yes" 1>&6
12616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12617 cat >> confdefs.h <<EOF
12618 #define $ac_tr_func 1
12622 echo "$ac_t""no" 1>&6
12627 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12628 echo "configure:12629: checking for LinuxThreads pthread.h" >&5
12629 if eval "test \"\${ol_cv_header_linux_threads+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"
12635 #include <pthread.h>
12637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12638 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12640 ol_cv_header_linux_threads=yes
12643 ol_cv_header_linux_threads=no
12650 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12651 if test $ol_cv_header_linux_threads = yes; then
12652 cat >> confdefs.h <<\EOF
12653 #define HAVE_LINUX_THREADS 1
12659 for ac_hdr in mach/cthreads.h
12661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12663 echo "configure:12664: checking for $ac_hdr" >&5
12664 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12673 { (eval echo configure:12674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12675 if test -z "$ac_err"; then
12677 eval "ac_cv_header_$ac_safe=yes"
12680 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12683 eval "ac_cv_header_$ac_safe=no"
12687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12688 echo "$ac_t""yes" 1>&6
12689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12690 cat >> confdefs.h <<EOF
12691 #define $ac_tr_hdr 1
12695 echo "$ac_t""no" 1>&6
12699 for ac_hdr in lwp/lwp.h
12701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12703 echo "configure:12704: checking for $ac_hdr" >&5
12704 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12713 { (eval echo configure:12714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12715 if test -z "$ac_err"; then
12717 eval "ac_cv_header_$ac_safe=yes"
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 eval "ac_cv_header_$ac_safe=no"
12727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12728 echo "$ac_t""yes" 1>&6
12729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12730 cat >> confdefs.h <<EOF
12731 #define $ac_tr_hdr 1
12735 echo "$ac_t""no" 1>&6
12739 for ac_hdr in thread.h synch.h
12741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12743 echo "configure:12744: checking for $ac_hdr" >&5
12744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12745 echo $ac_n "(cached) $ac_c" 1>&6
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12753 { (eval echo configure:12754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12755 if test -z "$ac_err"; then
12757 eval "ac_cv_header_$ac_safe=yes"
12760 echo "configure: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12763 eval "ac_cv_header_$ac_safe=no"
12767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12768 echo "$ac_t""yes" 1>&6
12769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12770 cat >> confdefs.h <<EOF
12771 #define $ac_tr_hdr 1
12775 echo "$ac_t""no" 1>&6
12781 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12782 cat >> confdefs.h <<\EOF
12783 #define REENTRANT 1
12786 cat >> confdefs.h <<\EOF
12787 #define _REENTRANT 1
12790 cat >> confdefs.h <<\EOF
12791 #define THREAD_SAFE 1
12794 cat >> confdefs.h <<\EOF
12795 #define _THREAD_SAFE 1
12798 cat >> confdefs.h <<\EOF
12799 #define THREADSAFE 1
12802 cat >> confdefs.h <<\EOF
12803 #define _THREADSAFE 1
12806 cat >> confdefs.h <<\EOF
12807 #define _SGI_MP_SOURCE 1
12811 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12812 echo "configure:12813: checking for thread specific errno" >&5
12813 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12814 echo $ac_n "(cached) $ac_c" 1>&6
12817 cat > conftest.$ac_ext <<EOF
12818 #line 12819 "configure"
12819 #include "confdefs.h"
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12827 ol_cv_errno_thread_specific=yes
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12832 ol_cv_errno_thread_specific=no
12838 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12840 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12841 echo "configure:12842: checking for thread specific h_errno" >&5
12842 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12846 cat > conftest.$ac_ext <<EOF
12847 #line 12848 "configure"
12848 #include "confdefs.h"
12854 if { (eval echo configure:12855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12856 ol_cv_h_errno_thread_specific=yes
12858 echo "configure: failed program was:" >&5
12859 cat conftest.$ac_ext >&5
12861 ol_cv_h_errno_thread_specific=no
12867 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12869 if test $ol_cv_errno_thread_specific != yes \
12870 -o $ol_cv_h_errno_thread_specific != yes ; then
12871 LIBS="$LTHREAD_LIBS $LIBS"
12877 if test $ol_link_threads = no ; then
12878 if test $ol_with_threads = yes ; then
12879 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12882 if test $ol_with_threads = auto ; then
12883 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12887 cat >> confdefs.h <<\EOF
12888 #define NO_THREADS 1
12894 if test $ol_link_threads != no ; then
12895 cat >> confdefs.h <<\EOF
12896 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12903 if test $ol_with_ldbm_api = auto \
12904 -o $ol_with_ldbm_api = berkeley \
12905 -o $ol_with_ldbm_api = bcompat ; then
12907 if test $ol_with_ldbm_api = bcompat; then \
12908 for ac_hdr in db_185.h db.h
12910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12912 echo "configure:12913: checking for $ac_hdr" >&5
12913 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12914 echo $ac_n "(cached) $ac_c" 1>&6
12916 cat > conftest.$ac_ext <<EOF
12917 #line 12918 "configure"
12918 #include "confdefs.h"
12921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12922 { (eval echo configure:12923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12924 if test -z "$ac_err"; then
12926 eval "ac_cv_header_$ac_safe=yes"
12929 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12932 eval "ac_cv_header_$ac_safe=no"
12936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12937 echo "$ac_t""yes" 1>&6
12938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12939 cat >> confdefs.h <<EOF
12940 #define $ac_tr_hdr 1
12944 echo "$ac_t""no" 1>&6
12948 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12949 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12950 echo "configure:12951: checking if Berkeley DB header compatibility" >&5
12951 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12960 # include <db_185.h>
12965 /* this check could be improved */
12966 #ifndef DB_VERSION_MAJOR
12967 # define DB_VERSION_MAJOR 1
12970 #if DB_VERSION_MAJOR == 1
12975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12976 egrep "__db_version_1" >/dev/null 2>&1; then
12978 ol_cv_header_db1=yes
12981 ol_cv_header_db1=no
12987 echo "$ac_t""$ol_cv_header_db1" 1>&6
12989 if test $ol_cv_header_db1 = yes ; then
12991 if test $ol_cv_lib_db = no ; then
12992 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12993 echo "configure:12994: checking for Berkeley DB link (default)" >&5
12994 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12995 echo $ac_n "(cached) $ac_c" 1>&6
13000 LIBS="$ol_DB_LIB $LIBS"
13002 cat > conftest.$ac_ext <<EOF
13003 #line 13004 "configure"
13004 #include "confdefs.h"
13006 #ifdef HAVE_DB_185_H
13007 # include <db_185.h>
13012 #ifndef DB_VERSION_MAJOR
13013 # define DB_VERSION_MAJOR 1
13017 #define NULL ((void*)0)
13022 #if DB_VERSION_MAJOR > 1
13025 int major, minor, patch;
13027 version = db_version( &major, &minor, &patch );
13029 if( major != DB_VERSION_MAJOR ||
13030 minor < DB_VERSION_MINOR )
13032 printf("Berkeley DB version mismatch\n"
13033 "\texpected: %s\n\tgot: %s\n",
13034 DB_VERSION_STRING, version);
13040 #if DB_VERSION_MAJOR > 2
13041 db_env_create( NULL, 0 );
13042 #elif DB_VERSION_MAJOR > 1
13043 db_appexit( NULL );
13045 (void) dbopen( NULL, 0, 0, 0, NULL);
13050 if { (eval echo configure:13051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13054 echo "configure: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13065 echo "$ac_t""$ol_cv_db_none" 1>&6
13067 if test $ol_cv_db_none = yes ; then
13072 if test $ol_cv_lib_db = no ; then
13073 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13074 echo "configure:13075: checking for Berkeley DB link (-ldb)" >&5
13075 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13076 echo $ac_n "(cached) $ac_c" 1>&6
13081 LIBS="$ol_DB_LIB $LIBS"
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13087 #ifdef HAVE_DB_185_H
13088 # include <db_185.h>
13093 #ifndef DB_VERSION_MAJOR
13094 # define DB_VERSION_MAJOR 1
13098 #define NULL ((void*)0)
13103 #if DB_VERSION_MAJOR > 1
13106 int major, minor, patch;
13108 version = db_version( &major, &minor, &patch );
13110 if( major != DB_VERSION_MAJOR ||
13111 minor < DB_VERSION_MINOR )
13113 printf("Berkeley DB version mismatch\n"
13114 "\texpected: %s\n\tgot: %s\n",
13115 DB_VERSION_STRING, version);
13121 #if DB_VERSION_MAJOR > 2
13122 db_env_create( NULL, 0 );
13123 #elif DB_VERSION_MAJOR > 1
13124 db_appexit( NULL );
13126 (void) dbopen( NULL, 0, 0, 0, NULL);
13131 if { (eval echo configure:13132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13135 echo "configure: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13146 echo "$ac_t""$ol_cv_db_db" 1>&6
13148 if test $ol_cv_db_db = yes ; then
13153 if test $ol_cv_lib_db = no ; then
13154 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
13155 echo "configure:13156: checking for Berkeley DB link (-ldb4)" >&5
13156 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
13157 echo $ac_n "(cached) $ac_c" 1>&6
13162 LIBS="$ol_DB_LIB $LIBS"
13164 cat > conftest.$ac_ext <<EOF
13165 #line 13166 "configure"
13166 #include "confdefs.h"
13168 #ifdef HAVE_DB_185_H
13169 # include <db_185.h>
13174 #ifndef DB_VERSION_MAJOR
13175 # define DB_VERSION_MAJOR 1
13179 #define NULL ((void*)0)
13184 #if DB_VERSION_MAJOR > 1
13187 int major, minor, patch;
13189 version = db_version( &major, &minor, &patch );
13191 if( major != DB_VERSION_MAJOR ||
13192 minor < DB_VERSION_MINOR )
13194 printf("Berkeley DB version mismatch\n"
13195 "\texpected: %s\n\tgot: %s\n",
13196 DB_VERSION_STRING, version);
13202 #if DB_VERSION_MAJOR > 2
13203 db_env_create( NULL, 0 );
13204 #elif DB_VERSION_MAJOR > 1
13205 db_appexit( NULL );
13207 (void) dbopen( NULL, 0, 0, 0, NULL);
13212 if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13216 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13227 echo "$ac_t""$ol_cv_db_db4" 1>&6
13229 if test $ol_cv_db_db4 = yes ; then
13234 if test $ol_cv_lib_db = no ; then
13235 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13236 echo "configure:13237: checking for Berkeley DB link (-ldb3)" >&5
13237 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13238 echo $ac_n "(cached) $ac_c" 1>&6
13243 LIBS="$ol_DB_LIB $LIBS"
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13249 #ifdef HAVE_DB_185_H
13250 # include <db_185.h>
13255 #ifndef DB_VERSION_MAJOR
13256 # define DB_VERSION_MAJOR 1
13260 #define NULL ((void*)0)
13265 #if DB_VERSION_MAJOR > 1
13268 int major, minor, patch;
13270 version = db_version( &major, &minor, &patch );
13272 if( major != DB_VERSION_MAJOR ||
13273 minor < DB_VERSION_MINOR )
13275 printf("Berkeley DB version mismatch\n"
13276 "\texpected: %s\n\tgot: %s\n",
13277 DB_VERSION_STRING, version);
13283 #if DB_VERSION_MAJOR > 2
13284 db_env_create( NULL, 0 );
13285 #elif DB_VERSION_MAJOR > 1
13286 db_appexit( NULL );
13288 (void) dbopen( NULL, 0, 0, 0, NULL);
13293 if { (eval echo configure:13294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13308 echo "$ac_t""$ol_cv_db_db3" 1>&6
13310 if test $ol_cv_db_db3 = yes ; then
13315 if test $ol_cv_lib_db = no ; then
13316 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13317 echo "configure:13318: checking for Berkeley DB link (-ldb2)" >&5
13318 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13324 LIBS="$ol_DB_LIB $LIBS"
13326 cat > conftest.$ac_ext <<EOF
13327 #line 13328 "configure"
13328 #include "confdefs.h"
13330 #ifdef HAVE_DB_185_H
13331 # include <db_185.h>
13336 #ifndef DB_VERSION_MAJOR
13337 # define DB_VERSION_MAJOR 1
13341 #define NULL ((void*)0)
13346 #if DB_VERSION_MAJOR > 1
13349 int major, minor, patch;
13351 version = db_version( &major, &minor, &patch );
13353 if( major != DB_VERSION_MAJOR ||
13354 minor < DB_VERSION_MINOR )
13356 printf("Berkeley DB version mismatch\n"
13357 "\texpected: %s\n\tgot: %s\n",
13358 DB_VERSION_STRING, version);
13364 #if DB_VERSION_MAJOR > 2
13365 db_env_create( NULL, 0 );
13366 #elif DB_VERSION_MAJOR > 1
13367 db_appexit( NULL );
13369 (void) dbopen( NULL, 0, 0, 0, NULL);
13374 if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13389 echo "$ac_t""$ol_cv_db_db2" 1>&6
13391 if test $ol_cv_db_db2 = yes ; then
13396 if test $ol_cv_lib_db = no ; then
13397 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13398 echo "configure:13399: checking for Berkeley DB link (-ldb1)" >&5
13399 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13400 echo $ac_n "(cached) $ac_c" 1>&6
13405 LIBS="$ol_DB_LIB $LIBS"
13407 cat > conftest.$ac_ext <<EOF
13408 #line 13409 "configure"
13409 #include "confdefs.h"
13411 #ifdef HAVE_DB_185_H
13412 # include <db_185.h>
13417 #ifndef DB_VERSION_MAJOR
13418 # define DB_VERSION_MAJOR 1
13422 #define NULL ((void*)0)
13427 #if DB_VERSION_MAJOR > 1
13430 int major, minor, patch;
13432 version = db_version( &major, &minor, &patch );
13434 if( major != DB_VERSION_MAJOR ||
13435 minor < DB_VERSION_MINOR )
13437 printf("Berkeley DB version mismatch\n"
13438 "\texpected: %s\n\tgot: %s\n",
13439 DB_VERSION_STRING, version);
13445 #if DB_VERSION_MAJOR > 2
13446 db_env_create( NULL, 0 );
13447 #elif DB_VERSION_MAJOR > 1
13448 db_appexit( NULL );
13450 (void) dbopen( NULL, 0, 0, 0, NULL);
13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13470 echo "$ac_t""$ol_cv_db_db1" 1>&6
13472 if test $ol_cv_db_db1 = yes ; then
13478 if test "$ol_cv_lib_db" != no ; then
13479 ol_cv_berkeley_db=yes
13485 ol_cv_berkeley_db=no
13488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13490 echo "configure:13491: checking for $ac_hdr" >&5
13491 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13492 echo $ac_n "(cached) $ac_c" 1>&6
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13500 { (eval echo configure:13501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13502 if test -z "$ac_err"; then
13504 eval "ac_cv_header_$ac_safe=yes"
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 eval "ac_cv_header_$ac_safe=no"
13514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13515 echo "$ac_t""yes" 1>&6
13516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13517 cat >> confdefs.h <<EOF
13518 #define $ac_tr_hdr 1
13522 echo "$ac_t""no" 1>&6
13526 if test $ac_cv_header_db_h = yes; then
13528 if test $ol_cv_lib_db = no ; then
13529 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13530 echo "configure:13531: checking for Berkeley DB link (default)" >&5
13531 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13532 echo $ac_n "(cached) $ac_c" 1>&6
13537 LIBS="$ol_DB_LIB $LIBS"
13539 cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13543 #ifdef HAVE_DB_185_H
13544 # include <db_185.h>
13549 #ifndef DB_VERSION_MAJOR
13550 # define DB_VERSION_MAJOR 1
13554 #define NULL ((void*)0)
13559 #if DB_VERSION_MAJOR > 1
13562 int major, minor, patch;
13564 version = db_version( &major, &minor, &patch );
13566 if( major != DB_VERSION_MAJOR ||
13567 minor < DB_VERSION_MINOR )
13569 printf("Berkeley DB version mismatch\n"
13570 "\texpected: %s\n\tgot: %s\n",
13571 DB_VERSION_STRING, version);
13577 #if DB_VERSION_MAJOR > 2
13578 db_env_create( NULL, 0 );
13579 #elif DB_VERSION_MAJOR > 1
13580 db_appexit( NULL );
13582 (void) dbopen( NULL, 0, 0, 0, NULL);
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13591 echo "configure: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13602 echo "$ac_t""$ol_cv_db_none" 1>&6
13604 if test $ol_cv_db_none = yes ; then
13609 if test $ol_cv_lib_db = no ; then
13610 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13611 echo "configure:13612: checking for Berkeley DB link (-ldb)" >&5
13612 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13618 LIBS="$ol_DB_LIB $LIBS"
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13624 #ifdef HAVE_DB_185_H
13625 # include <db_185.h>
13630 #ifndef DB_VERSION_MAJOR
13631 # define DB_VERSION_MAJOR 1
13635 #define NULL ((void*)0)
13640 #if DB_VERSION_MAJOR > 1
13643 int major, minor, patch;
13645 version = db_version( &major, &minor, &patch );
13647 if( major != DB_VERSION_MAJOR ||
13648 minor < DB_VERSION_MINOR )
13650 printf("Berkeley DB version mismatch\n"
13651 "\texpected: %s\n\tgot: %s\n",
13652 DB_VERSION_STRING, version);
13658 #if DB_VERSION_MAJOR > 2
13659 db_env_create( NULL, 0 );
13660 #elif DB_VERSION_MAJOR > 1
13661 db_appexit( NULL );
13663 (void) dbopen( NULL, 0, 0, 0, NULL);
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13672 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13683 echo "$ac_t""$ol_cv_db_db" 1>&6
13685 if test $ol_cv_db_db = yes ; then
13690 if test $ol_cv_lib_db = no ; then
13691 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
13692 echo "configure:13693: checking for Berkeley DB link (-ldb4)" >&5
13693 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
13694 echo $ac_n "(cached) $ac_c" 1>&6
13699 LIBS="$ol_DB_LIB $LIBS"
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13705 #ifdef HAVE_DB_185_H
13706 # include <db_185.h>
13711 #ifndef DB_VERSION_MAJOR
13712 # define DB_VERSION_MAJOR 1
13716 #define NULL ((void*)0)
13721 #if DB_VERSION_MAJOR > 1
13724 int major, minor, patch;
13726 version = db_version( &major, &minor, &patch );
13728 if( major != DB_VERSION_MAJOR ||
13729 minor < DB_VERSION_MINOR )
13731 printf("Berkeley DB version mismatch\n"
13732 "\texpected: %s\n\tgot: %s\n",
13733 DB_VERSION_STRING, version);
13739 #if DB_VERSION_MAJOR > 2
13740 db_env_create( NULL, 0 );
13741 #elif DB_VERSION_MAJOR > 1
13742 db_appexit( NULL );
13744 (void) dbopen( NULL, 0, 0, 0, NULL);
13749 if { (eval echo configure:13750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13753 echo "configure: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13764 echo "$ac_t""$ol_cv_db_db4" 1>&6
13766 if test $ol_cv_db_db4 = yes ; then
13771 if test $ol_cv_lib_db = no ; then
13772 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13773 echo "configure:13774: checking for Berkeley DB link (-ldb3)" >&5
13774 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13775 echo $ac_n "(cached) $ac_c" 1>&6
13780 LIBS="$ol_DB_LIB $LIBS"
13782 cat > conftest.$ac_ext <<EOF
13783 #line 13784 "configure"
13784 #include "confdefs.h"
13786 #ifdef HAVE_DB_185_H
13787 # include <db_185.h>
13792 #ifndef DB_VERSION_MAJOR
13793 # define DB_VERSION_MAJOR 1
13797 #define NULL ((void*)0)
13802 #if DB_VERSION_MAJOR > 1
13805 int major, minor, patch;
13807 version = db_version( &major, &minor, &patch );
13809 if( major != DB_VERSION_MAJOR ||
13810 minor < DB_VERSION_MINOR )
13812 printf("Berkeley DB version mismatch\n"
13813 "\texpected: %s\n\tgot: %s\n",
13814 DB_VERSION_STRING, version);
13820 #if DB_VERSION_MAJOR > 2
13821 db_env_create( NULL, 0 );
13822 #elif DB_VERSION_MAJOR > 1
13823 db_appexit( NULL );
13825 (void) dbopen( NULL, 0, 0, 0, NULL);
13830 if { (eval echo configure:13831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 echo "configure: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13845 echo "$ac_t""$ol_cv_db_db3" 1>&6
13847 if test $ol_cv_db_db3 = yes ; then
13852 if test $ol_cv_lib_db = no ; then
13853 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13854 echo "configure:13855: checking for Berkeley DB link (-ldb2)" >&5
13855 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
13861 LIBS="$ol_DB_LIB $LIBS"
13863 cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13867 #ifdef HAVE_DB_185_H
13868 # include <db_185.h>
13873 #ifndef DB_VERSION_MAJOR
13874 # define DB_VERSION_MAJOR 1
13878 #define NULL ((void*)0)
13883 #if DB_VERSION_MAJOR > 1
13886 int major, minor, patch;
13888 version = db_version( &major, &minor, &patch );
13890 if( major != DB_VERSION_MAJOR ||
13891 minor < DB_VERSION_MINOR )
13893 printf("Berkeley DB version mismatch\n"
13894 "\texpected: %s\n\tgot: %s\n",
13895 DB_VERSION_STRING, version);
13901 #if DB_VERSION_MAJOR > 2
13902 db_env_create( NULL, 0 );
13903 #elif DB_VERSION_MAJOR > 1
13904 db_appexit( NULL );
13906 (void) dbopen( NULL, 0, 0, 0, NULL);
13911 if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13926 echo "$ac_t""$ol_cv_db_db2" 1>&6
13928 if test $ol_cv_db_db2 = yes ; then
13933 if test $ol_cv_lib_db = no ; then
13934 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13935 echo "configure:13936: checking for Berkeley DB link (-ldb1)" >&5
13936 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13942 LIBS="$ol_DB_LIB $LIBS"
13944 cat > conftest.$ac_ext <<EOF
13945 #line 13946 "configure"
13946 #include "confdefs.h"
13948 #ifdef HAVE_DB_185_H
13949 # include <db_185.h>
13954 #ifndef DB_VERSION_MAJOR
13955 # define DB_VERSION_MAJOR 1
13959 #define NULL ((void*)0)
13964 #if DB_VERSION_MAJOR > 1
13967 int major, minor, patch;
13969 version = db_version( &major, &minor, &patch );
13971 if( major != DB_VERSION_MAJOR ||
13972 minor < DB_VERSION_MINOR )
13974 printf("Berkeley DB version mismatch\n"
13975 "\texpected: %s\n\tgot: %s\n",
13976 DB_VERSION_STRING, version);
13982 #if DB_VERSION_MAJOR > 2
13983 db_env_create( NULL, 0 );
13984 #elif DB_VERSION_MAJOR > 1
13985 db_appexit( NULL );
13987 (void) dbopen( NULL, 0, 0, 0, NULL);
13992 if { (eval echo configure:13993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13996 echo "configure: failed program was:" >&5
13997 cat conftest.$ac_ext >&5
14007 echo "$ac_t""$ol_cv_db_db1" 1>&6
14009 if test $ol_cv_db_db1 = yes ; then
14015 if test "$ol_cv_lib_db" != no ; then
14016 ol_cv_berkeley_db=yes
14017 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
14018 echo "configure:14019: checking for Berkeley DB thread support" >&5
14019 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
14020 echo $ac_n "(cached) $ac_c" 1>&6
14024 if test $ol_cv_lib_db != yes ; then
14025 LIBS="$ol_cv_lib_db"
14028 if test "$cross_compiling" = yes; then
14029 ol_cv_berkeley_db_thread=cross
14031 cat > conftest.$ac_ext <<EOF
14032 #line 14033 "configure"
14033 #include "confdefs.h"
14035 #ifdef HAVE_DB_185_H
14041 #define NULL ((void *)0)
14046 u_int32_t flags = DB_CREATE |
14052 #if DB_VERSION_MAJOR > 2
14053 DB_ENV *env = NULL;
14055 rc = db_env_create( &env, 0 );
14057 flags |= DB_INIT_MPOOL;
14058 #ifdef DB_MPOOL_PRIVATE
14059 flags |= DB_MPOOL_PRIVATE;
14063 printf("BerkeleyDB: %s\n", db_strerror(rc) );
14067 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
14068 rc = env->open( env, NULL, flags, 0 );
14070 rc = env->open( env, NULL, NULL, flags, 0 );
14074 rc = env->close( env, 0 );
14078 printf("BerkeleyDB: %s\n", db_strerror(rc) );
14084 memset( &env, '\0', sizeof(env) );
14086 rc = db_appinit( NULL, NULL, &env, flags );
14089 db_appexit( &env );
14092 unlink("__db_mpool.share");
14093 unlink("__db_lock.share");
14099 if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14101 ol_cv_berkeley_db_thread=yes
14103 echo "configure: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14106 ol_cv_berkeley_db_thread=no
14114 if test $ol_cv_berkeley_db_thread != no ; then
14115 cat >> confdefs.h <<\EOF
14116 #define HAVE_BERKELEY_DB_THREAD 1
14123 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
14129 if test $ol_cv_berkeley_db != no ; then
14130 cat >> confdefs.h <<\EOF
14131 #define HAVE_BERKELEY_DB 1
14135 ol_link_ldbm=berkeley
14136 ol_with_ldbm_api=berkeley
14138 if test $ol_with_ldbm_type = hash ; then
14139 cat >> confdefs.h <<\EOF
14140 #define LDBM_USE_DBHASH 1
14144 cat >> confdefs.h <<\EOF
14145 #define LDBM_USE_DBBTREE 1
14150 if test $ol_cv_lib_db != yes ; then
14151 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
14156 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
14157 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
14158 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
14159 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
14160 echo "configure:14161: checking Berkeley DB version for BDB backend" >&5
14161 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
14162 echo $ac_n "(cached) $ac_c" 1>&6
14165 cat > conftest.$ac_ext <<EOF
14166 #line 14167 "configure"
14167 #include "confdefs.h"
14171 /* this check could be improved */
14172 #ifndef DB_VERSION_MAJOR
14173 # define DB_VERSION_MAJOR 1
14176 /* require 3.3 or later */
14177 #if DB_VERSION_MAJOR > 3
14178 __db_version_compat
14179 #elif DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR >= 3
14180 __db_version_compat
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 egrep "__db_version_compat" >/dev/null 2>&1; then
14187 ol_cv_bdb_compat=yes
14190 ol_cv_bdb_compat=no
14196 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
14199 if test $ol_cv_bdb_compat = yes ; then
14201 elif test $ol_enable_bdb = yes ; then
14202 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
14208 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
14209 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
14210 ol_with_ldbm_api=none
14213 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
14214 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
14215 echo "configure:14216: checking for MDBM library" >&5
14216 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
14217 echo $ac_n "(cached) $ac_c" 1>&6
14220 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
14221 echo "configure:14222: checking for mdbm_set_chain" >&5
14222 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
14223 echo $ac_n "(cached) $ac_c" 1>&6
14225 cat > conftest.$ac_ext <<EOF
14226 #line 14227 "configure"
14227 #include "confdefs.h"
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char mdbm_set_chain(); below. */
14230 #include <assert.h>
14231 /* Override any gcc2 internal prototype to avoid an error. */
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14234 char mdbm_set_chain();
14239 /* The GNU C library defines this for functions which it implements
14240 to always fail with ENOSYS. Some functions are actually named
14241 something starting with __ and the normal name is an alias. */
14242 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
14245 f = mdbm_set_chain;
14250 if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14252 eval "ac_cv_func_mdbm_set_chain=yes"
14254 echo "configure: failed program was:" >&5
14255 cat conftest.$ac_ext >&5
14257 eval "ac_cv_func_mdbm_set_chain=no"
14262 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14266 echo "$ac_t""no" 1>&6
14268 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
14269 echo "configure:14270: checking for mdbm_set_chain in -lmdbm" >&5
14270 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
14271 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14272 echo $ac_n "(cached) $ac_c" 1>&6
14274 ac_save_LIBS="$LIBS"
14275 LIBS="-lmdbm $LIBS"
14276 cat > conftest.$ac_ext <<EOF
14277 #line 14278 "configure"
14278 #include "confdefs.h"
14279 /* Override any gcc2 internal prototype to avoid an error. */
14280 /* We use char because int might match the return type of a gcc2
14281 builtin and then its argument prototype would still apply. */
14282 char mdbm_set_chain();
14288 if { (eval echo configure:14289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14290 eval "ac_cv_lib_$ac_lib_var=yes"
14292 echo "configure: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14295 eval "ac_cv_lib_$ac_lib_var=no"
14298 LIBS="$ac_save_LIBS"
14301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14302 echo "$ac_t""yes" 1>&6
14303 ol_cv_lib_mdbm=-lmdbm
14305 echo "$ac_t""no" 1>&6
14316 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
14319 for ac_hdr in mdbm.h
14321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14323 echo "configure:14324: checking for $ac_hdr" >&5
14324 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14325 echo $ac_n "(cached) $ac_c" 1>&6
14327 cat > conftest.$ac_ext <<EOF
14328 #line 14329 "configure"
14329 #include "confdefs.h"
14332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14333 { (eval echo configure:14334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14335 if test -z "$ac_err"; then
14337 eval "ac_cv_header_$ac_safe=yes"
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14343 eval "ac_cv_header_$ac_safe=no"
14347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14348 echo "$ac_t""yes" 1>&6
14349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14350 cat >> confdefs.h <<EOF
14351 #define $ac_tr_hdr 1
14355 echo "$ac_t""no" 1>&6
14359 echo $ac_n "checking for db""... $ac_c" 1>&6
14360 echo "configure:14361: checking for db" >&5
14361 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14365 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
14373 echo "$ac_t""$ol_cv_mdbm" 1>&6
14374 if test $ol_cv_mdbm = yes ; then
14375 cat >> confdefs.h <<\EOF
14376 #define HAVE_MDBM 1
14382 if test $ol_cv_mdbm = yes ; then
14384 ol_with_ldbm_api=mdbm
14385 if test $ol_cv_lib_mdbm != yes ; then
14386 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
14391 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
14392 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
14393 echo "configure:14394: checking for GDBM library" >&5
14394 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
14395 echo $ac_n "(cached) $ac_c" 1>&6
14398 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
14399 echo "configure:14400: checking for gdbm_open" >&5
14400 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
14401 echo $ac_n "(cached) $ac_c" 1>&6
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14406 /* System header to define __stub macros and hopefully few prototypes,
14407 which can conflict with char gdbm_open(); below. */
14408 #include <assert.h>
14409 /* Override any gcc2 internal prototype to avoid an error. */
14410 /* We use char because int might match the return type of a gcc2
14411 builtin and then its argument prototype would still apply. */
14417 /* The GNU C library defines this for functions which it implements
14418 to always fail with ENOSYS. Some functions are actually named
14419 something starting with __ and the normal name is an alias. */
14420 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14428 if { (eval echo configure:14429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14430 eval "ac_cv_func_gdbm_open=yes"
14432 echo "configure: failed program was:" >&5
14433 cat conftest.$ac_ext >&5
14435 eval "ac_cv_func_gdbm_open=no"
14440 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14441 echo "$ac_t""yes" 1>&6
14444 echo "$ac_t""no" 1>&6
14446 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14447 echo "configure:14448: checking for gdbm_open in -lgdbm" >&5
14448 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14450 echo $ac_n "(cached) $ac_c" 1>&6
14452 ac_save_LIBS="$LIBS"
14453 LIBS="-lgdbm $LIBS"
14454 cat > conftest.$ac_ext <<EOF
14455 #line 14456 "configure"
14456 #include "confdefs.h"
14457 /* Override any gcc2 internal prototype to avoid an error. */
14458 /* We use char because int might match the return type of a gcc2
14459 builtin and then its argument prototype would still apply. */
14466 if { (eval echo configure:14467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14468 eval "ac_cv_lib_$ac_lib_var=yes"
14470 echo "configure: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14473 eval "ac_cv_lib_$ac_lib_var=no"
14476 LIBS="$ac_save_LIBS"
14479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14480 echo "$ac_t""yes" 1>&6
14481 ol_cv_lib_gdbm=-lgdbm
14483 echo "$ac_t""no" 1>&6
14494 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14497 for ac_hdr in gdbm.h
14499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14501 echo "configure:14502: checking for $ac_hdr" >&5
14502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
14505 cat > conftest.$ac_ext <<EOF
14506 #line 14507 "configure"
14507 #include "confdefs.h"
14510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14511 { (eval echo configure:14512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14513 if test -z "$ac_err"; then
14515 eval "ac_cv_header_$ac_safe=yes"
14518 echo "configure: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14521 eval "ac_cv_header_$ac_safe=no"
14525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14526 echo "$ac_t""yes" 1>&6
14527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14528 cat >> confdefs.h <<EOF
14529 #define $ac_tr_hdr 1
14533 echo "$ac_t""no" 1>&6
14537 echo $ac_n "checking for db""... $ac_c" 1>&6
14538 echo "configure:14539: checking for db" >&5
14539 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14540 echo $ac_n "(cached) $ac_c" 1>&6
14543 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14551 echo "$ac_t""$ol_cv_gdbm" 1>&6
14552 if test $ol_cv_gdbm = yes ; then
14553 cat >> confdefs.h <<\EOF
14554 #define HAVE_GDBM 1
14560 if test $ol_cv_gdbm = yes ; then
14562 ol_with_ldbm_api=gdbm
14564 if test $ol_cv_lib_gdbm != yes ; then
14565 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14570 if test $ol_with_ldbm_api = ndbm ; then
14571 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14572 echo "configure:14573: checking for NDBM library" >&5
14573 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14574 echo $ac_n "(cached) $ac_c" 1>&6
14577 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14578 echo "configure:14579: checking for dbm_open" >&5
14579 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14580 echo $ac_n "(cached) $ac_c" 1>&6
14582 cat > conftest.$ac_ext <<EOF
14583 #line 14584 "configure"
14584 #include "confdefs.h"
14585 /* System header to define __stub macros and hopefully few prototypes,
14586 which can conflict with char dbm_open(); below. */
14587 #include <assert.h>
14588 /* Override any gcc2 internal prototype to avoid an error. */
14589 /* We use char because int might match the return type of a gcc2
14590 builtin and then its argument prototype would still apply. */
14596 /* The GNU C library defines this for functions which it implements
14597 to always fail with ENOSYS. Some functions are actually named
14598 something starting with __ and the normal name is an alias. */
14599 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14607 if { (eval echo configure:14608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14609 eval "ac_cv_func_dbm_open=yes"
14611 echo "configure: failed program was:" >&5
14612 cat conftest.$ac_ext >&5
14614 eval "ac_cv_func_dbm_open=no"
14619 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14620 echo "$ac_t""yes" 1>&6
14623 echo "$ac_t""no" 1>&6
14625 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14626 echo "configure:14627: checking for dbm_open in -lndbm" >&5
14627 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14629 echo $ac_n "(cached) $ac_c" 1>&6
14631 ac_save_LIBS="$LIBS"
14632 LIBS="-lndbm $LIBS"
14633 cat > conftest.$ac_ext <<EOF
14634 #line 14635 "configure"
14635 #include "confdefs.h"
14636 /* Override any gcc2 internal prototype to avoid an error. */
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14645 if { (eval echo configure:14646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14647 eval "ac_cv_lib_$ac_lib_var=yes"
14649 echo "configure: failed program was:" >&5
14650 cat conftest.$ac_ext >&5
14652 eval "ac_cv_lib_$ac_lib_var=no"
14655 LIBS="$ac_save_LIBS"
14658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14659 echo "$ac_t""yes" 1>&6
14660 ol_cv_lib_ndbm=-lndbm
14662 echo "$ac_t""no" 1>&6
14664 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14665 echo "configure:14666: checking for dbm_open in -ldbm" >&5
14666 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14668 echo $ac_n "(cached) $ac_c" 1>&6
14670 ac_save_LIBS="$LIBS"
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 /* Override any gcc2 internal prototype to avoid an error. */
14676 /* We use char because int might match the return type of a gcc2
14677 builtin and then its argument prototype would still apply. */
14684 if { (eval echo configure:14685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14686 eval "ac_cv_lib_$ac_lib_var=yes"
14688 echo "configure: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14691 eval "ac_cv_lib_$ac_lib_var=no"
14694 LIBS="$ac_save_LIBS"
14697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14698 echo "$ac_t""yes" 1>&6
14699 ol_cv_lib_ndbm=-ldbm
14701 echo "$ac_t""no" 1>&6
14714 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14717 for ac_hdr in ndbm.h
14719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14721 echo "configure:14722: checking for $ac_hdr" >&5
14722 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14725 cat > conftest.$ac_ext <<EOF
14726 #line 14727 "configure"
14727 #include "confdefs.h"
14730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14731 { (eval echo configure:14732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14733 if test -z "$ac_err"; then
14735 eval "ac_cv_header_$ac_safe=yes"
14738 echo "configure: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14741 eval "ac_cv_header_$ac_safe=no"
14745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14746 echo "$ac_t""yes" 1>&6
14747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14748 cat >> confdefs.h <<EOF
14749 #define $ac_tr_hdr 1
14753 echo "$ac_t""no" 1>&6
14757 echo $ac_n "checking for db""... $ac_c" 1>&6
14758 echo "configure:14759: checking for db" >&5
14759 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14763 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14771 echo "$ac_t""$ol_cv_ndbm" 1>&6
14772 if test $ol_cv_ndbm = yes ; then
14773 cat >> confdefs.h <<\EOF
14774 #define HAVE_NDBM 1
14780 if test $ol_cv_ndbm = yes ; then
14782 ol_with_ldbm_api=ndbm
14784 if test $ol_cv_lib_ndbm != yes ; then
14785 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14790 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14791 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14792 if test $ol_enable_ldbm = yes ; then
14793 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14796 echo "configure: warning: disabling LDBM" 1>&2
14800 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14801 BUILD_LIBS_DYNAMIC=shared
14802 cat >> confdefs.h <<\EOF
14803 #define LDAP_LIBS_DYNAMIC 1
14807 BUILD_LIBS_DYNAMIC=static
14810 if test $ol_enable_wrappers != no ; then
14811 for ac_hdr in tcpd.h
14813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14815 echo "configure:14816: checking for $ac_hdr" >&5
14816 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14817 echo $ac_n "(cached) $ac_c" 1>&6
14819 cat > conftest.$ac_ext <<EOF
14820 #line 14821 "configure"
14821 #include "confdefs.h"
14824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14825 { (eval echo configure:14826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14827 if test -z "$ac_err"; then
14829 eval "ac_cv_header_$ac_safe=yes"
14832 echo "configure: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14835 eval "ac_cv_header_$ac_safe=no"
14839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14840 echo "$ac_t""yes" 1>&6
14841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14842 cat >> confdefs.h <<EOF
14843 #define $ac_tr_hdr 1
14847 echo "$ac_t""no" 1>&6
14852 if test $ac_cv_header_tcpd_h != yes ; then
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14859 int allow_severity = 0;
14860 int deny_severity = 0;
14866 if { (eval echo configure:14867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14870 echo "configure: failed program was:" >&5
14871 cat conftest.$ac_ext >&5
14878 if test $have_wrappers = yes ; then
14879 cat >> confdefs.h <<\EOF
14880 #define HAVE_TCPD 1
14885 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14886 echo "configure:14887: checking for main in -lnsl" >&5
14887 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14891 ac_save_LIBS="$LIBS"
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure"
14895 #include "confdefs.h"
14901 if { (eval echo configure:14902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903 eval "ac_cv_lib_$ac_lib_var=yes"
14905 echo "configure: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14908 eval "ac_cv_lib_$ac_lib_var=no"
14911 LIBS="$ac_save_LIBS"
14914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14915 echo "$ac_t""yes" 1>&6
14916 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14918 cat >> confdefs.h <<EOF
14919 #define $ac_tr_lib 1
14925 echo "$ac_t""no" 1>&6
14929 echo "configure: warning: could not find -lwrap" 1>&2
14930 if test $ol_enable_wrappers = yes ; then
14931 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14934 echo "configure: warning: disabling wrappers support" 1>&2
14935 ol_enable_wrappers=no
14940 if test $ol_enable_syslog != no ; then
14941 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14942 echo "configure:14943: checking for openlog" >&5
14943 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14944 echo $ac_n "(cached) $ac_c" 1>&6
14946 cat > conftest.$ac_ext <<EOF
14947 #line 14948 "configure"
14948 #include "confdefs.h"
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char openlog(); below. */
14951 #include <assert.h>
14952 /* Override any gcc2 internal prototype to avoid an error. */
14953 /* We use char because int might match the return type of a gcc2
14954 builtin and then its argument prototype would still apply. */
14960 /* The GNU C library defines this for functions which it implements
14961 to always fail with ENOSYS. Some functions are actually named
14962 something starting with __ and the normal name is an alias. */
14963 #if defined (__stub_openlog) || defined (__stub___openlog)
14971 if { (eval echo configure:14972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14973 eval "ac_cv_func_openlog=yes"
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14978 eval "ac_cv_func_openlog=no"
14983 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14987 echo "$ac_t""no" 1>&6
14990 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14991 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14993 ol_enable_syslog=$ac_cv_func_openlog
14998 if test $ol_enable_sql != no ; then
14999 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
15000 echo "configure:15001: checking for SQLDriverConnect in -liodbc" >&5
15001 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
15002 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15003 echo $ac_n "(cached) $ac_c" 1>&6
15005 ac_save_LIBS="$LIBS"
15006 LIBS="-liodbc $LIBS"
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 /* Override any gcc2 internal prototype to avoid an error. */
15011 /* We use char because int might match the return type of a gcc2
15012 builtin and then its argument prototype would still apply. */
15013 char SQLDriverConnect();
15019 if { (eval echo configure:15020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15021 eval "ac_cv_lib_$ac_lib_var=yes"
15023 echo "configure: failed program was:" >&5
15024 cat conftest.$ac_ext >&5
15026 eval "ac_cv_lib_$ac_lib_var=no"
15029 LIBS="$ac_save_LIBS"
15032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15033 echo "$ac_t""yes" 1>&6
15036 echo "$ac_t""no" 1>&6
15040 if test $have_iodbc = yes ; then
15041 ol_link_sql="-liodbc"
15043 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
15044 echo "configure:15045: checking for SQLDriverConnect in -lodbc" >&5
15045 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
15046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15047 echo $ac_n "(cached) $ac_c" 1>&6
15049 ac_save_LIBS="$LIBS"
15050 LIBS="-lodbc $LIBS"
15051 cat > conftest.$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054 /* Override any gcc2 internal prototype to avoid an error. */
15055 /* We use char because int might match the return type of a gcc2
15056 builtin and then its argument prototype would still apply. */
15057 char SQLDriverConnect();
15063 if { (eval echo configure:15064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15065 eval "ac_cv_lib_$ac_lib_var=yes"
15067 echo "configure: failed program was:" >&5
15068 cat conftest.$ac_ext >&5
15070 eval "ac_cv_lib_$ac_lib_var=no"
15073 LIBS="$ac_save_LIBS"
15076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15077 echo "$ac_t""yes" 1>&6
15080 echo "$ac_t""no" 1>&6
15084 if test $have_odbc = yes ; then
15085 ol_link_sql="-lodbc"
15089 if test $ol_link_sql != no ; then
15090 SLAPD_SQL_LIBS="$ol_link_sql"
15092 elif test $ol_enable_sql != auto ; then
15093 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
15097 if test $ol_enable_tcl != no ; then
15098 for ac_hdr in tcl.h
15100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15102 echo "configure:15103: checking for $ac_hdr" >&5
15103 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15104 echo $ac_n "(cached) $ac_c" 1>&6
15106 cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure"
15108 #include "confdefs.h"
15111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15112 { (eval echo configure:15113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15114 if test -z "$ac_err"; then
15116 eval "ac_cv_header_$ac_safe=yes"
15119 echo "configure: failed program was:" >&5
15120 cat conftest.$ac_ext >&5
15122 eval "ac_cv_header_$ac_safe=no"
15126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15127 echo "$ac_t""yes" 1>&6
15128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15129 cat >> confdefs.h <<EOF
15130 #define $ac_tr_hdr 1
15134 echo "$ac_t""no" 1>&6
15139 if test $ac_cv_header_tcl_h != yes ; then
15142 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
15143 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
15144 echo "configure:15145: checking for main in -l$lib" >&5
15145 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
15146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15149 ac_save_LIBS="$LIBS"
15150 LIBS="-l$lib $LIBS"
15151 cat > conftest.$ac_ext <<EOF
15152 #line 15153 "configure"
15153 #include "confdefs.h"
15159 if { (eval echo configure:15160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15161 eval "ac_cv_lib_$ac_lib_var=yes"
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15166 eval "ac_cv_lib_$ac_lib_var=no"
15169 LIBS="$ac_save_LIBS"
15172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15173 echo "$ac_t""yes" 1>&6
15175 if test x"$ol_with_tcl_module" = "xstatic" ; then
15176 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
15178 MOD_TCL_LIB="-l${lib}"
15181 echo "$ac_t""no" 1>&6
15188 if test $have_tcl != yes ; then
15189 echo "configure: warning: could not find -ltcl" 1>&2
15190 if test $ol_enable_tcl = yes ; then
15191 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
15199 for ac_hdr in termcap.h ncurses.h
15201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15203 echo "configure:15204: checking for $ac_hdr" >&5
15204 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15205 echo $ac_n "(cached) $ac_c" 1>&6
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15213 { (eval echo configure:15214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15215 if test -z "$ac_err"; then
15217 eval "ac_cv_header_$ac_safe=yes"
15220 echo "configure: failed program was:" >&5
15221 cat conftest.$ac_ext >&5
15223 eval "ac_cv_header_$ac_safe=no"
15227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15228 echo "$ac_t""yes" 1>&6
15229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15230 cat >> confdefs.h <<EOF
15231 #define $ac_tr_hdr 1
15235 echo "$ac_t""no" 1>&6
15240 if test $ol_link_termcap = no ; then
15241 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
15242 echo "configure:15243: checking for tputs in -ltermcap" >&5
15243 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
15244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15245 echo $ac_n "(cached) $ac_c" 1>&6
15247 ac_save_LIBS="$LIBS"
15248 LIBS="-ltermcap $LIBS"
15249 cat > conftest.$ac_ext <<EOF
15250 #line 15251 "configure"
15251 #include "confdefs.h"
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15261 if { (eval echo configure:15262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15263 eval "ac_cv_lib_$ac_lib_var=yes"
15265 echo "configure: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15268 eval "ac_cv_lib_$ac_lib_var=no"
15271 LIBS="$ac_save_LIBS"
15274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15275 echo "$ac_t""yes" 1>&6
15278 echo "$ac_t""no" 1>&6
15282 if test $have_termcap = yes ; then
15283 cat >> confdefs.h <<\EOF
15284 #define HAVE_TERMCAP 1
15287 ol_link_termcap=yes
15288 TERMCAP_LIBS=-ltermcap
15292 if test $ol_link_termcap = no ; then
15293 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
15294 echo "configure:15295: checking for initscr in -lncurses" >&5
15295 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
15296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15297 echo $ac_n "(cached) $ac_c" 1>&6
15299 ac_save_LIBS="$LIBS"
15300 LIBS="-lncurses $LIBS"
15301 cat > conftest.$ac_ext <<EOF
15302 #line 15303 "configure"
15303 #include "confdefs.h"
15304 /* Override any gcc2 internal prototype to avoid an error. */
15305 /* We use char because int might match the return type of a gcc2
15306 builtin and then its argument prototype would still apply. */
15313 if { (eval echo configure:15314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15315 eval "ac_cv_lib_$ac_lib_var=yes"
15317 echo "configure: failed program was:" >&5
15318 cat conftest.$ac_ext >&5
15320 eval "ac_cv_lib_$ac_lib_var=no"
15323 LIBS="$ac_save_LIBS"
15326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15327 echo "$ac_t""yes" 1>&6
15330 echo "$ac_t""no" 1>&6
15334 if test $have_ncurses = yes ; then
15335 cat >> confdefs.h <<\EOF
15336 #define HAVE_NCURSES 1
15339 ol_link_termcap=yes
15340 TERMCAP_LIBS=-lncurses
15344 if test $ol_link_termcap = no ; then
15345 cat >> confdefs.h <<\EOF
15346 #define NO_TERMCAP 1
15354 if test $ol_with_cyrus_sasl != no ; then
15355 for ac_hdr in sasl.h
15357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15359 echo "configure:15360: checking for $ac_hdr" >&5
15360 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15361 echo $ac_n "(cached) $ac_c" 1>&6
15363 cat > conftest.$ac_ext <<EOF
15364 #line 15365 "configure"
15365 #include "confdefs.h"
15368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15369 { (eval echo configure:15370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15371 if test -z "$ac_err"; then
15373 eval "ac_cv_header_$ac_safe=yes"
15376 echo "configure: failed program was:" >&5
15377 cat conftest.$ac_ext >&5
15379 eval "ac_cv_header_$ac_safe=no"
15383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15384 echo "$ac_t""yes" 1>&6
15385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15386 cat >> confdefs.h <<EOF
15387 #define $ac_tr_hdr 1
15391 echo "$ac_t""no" 1>&6
15396 if test $ac_cv_header_sasl_h = yes ; then
15397 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
15398 echo "configure:15399: checking for sasl_client_init in -lsasl" >&5
15399 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
15400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15401 echo $ac_n "(cached) $ac_c" 1>&6
15403 ac_save_LIBS="$LIBS"
15404 LIBS="-lsasl $LIBS"
15405 cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 /* Override any gcc2 internal prototype to avoid an error. */
15409 /* We use char because int might match the return type of a gcc2
15410 builtin and then its argument prototype would still apply. */
15411 char sasl_client_init();
15417 if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15419 eval "ac_cv_lib_$ac_lib_var=yes"
15421 echo "configure: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15424 eval "ac_cv_lib_$ac_lib_var=no"
15427 LIBS="$ac_save_LIBS"
15430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15431 echo "$ac_t""yes" 1>&6
15432 have_cyrus_sasl=yes
15434 echo "$ac_t""no" 1>&6
15439 if test $have_cyrus_sasl != no ; then
15441 cat >> confdefs.h <<\EOF
15442 #define HAVE_CYRUS_SASL 1
15449 if test $ol_link_sasl = no ; then
15450 if test $ol_with_cyrus_sasl != auto ; then
15451 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15453 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15454 echo "configure: warning: SASL authentication not supported!" 1>&2
15455 if test $ol_link_tls = no ; then
15456 echo "configure: warning: Strong authentication not supported!" 1>&2
15460 elif test $ol_enable_spasswd != no ; then
15461 ol_link_spasswd=yes
15465 echo "configure: warning: SASL authentication not supported!" 1>&2
15466 if test $ol_link_tls = no ; then
15467 echo "configure: warning: Strong authentication not supported!" 1>&2
15471 if test $cross_compiling != yes -a $ac_cv_mingw32 != yes ; then
15473 if test -r /dev/urandom ; then
15474 dev="/dev/urandom";
15475 elif test -r /idev/urandom ; then
15476 dev="/idev/urandom";
15477 elif test -r /dev/srandom ; then
15478 dev="/dev/srandom";
15479 elif test -r /dev/random ; then
15481 elif test -r /idev/random ; then
15482 dev="/idev/random";
15485 if test $dev != no ; then
15486 cat >> confdefs.h <<EOF
15487 #define URANDOM_DEVICE "$dev"
15494 if test $ol_with_fetch != no ; then
15496 LIBS="-lfetch -lcom_err $LIBS"
15497 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15498 echo "configure:15499: checking fetch(3) library" >&5
15499 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15500 echo $ac_n "(cached) $ac_c" 1>&6
15503 cat > conftest.$ac_ext <<EOF
15504 #line 15505 "configure"
15505 #include "confdefs.h"
15507 #include <sys/param.h>
15511 struct url *u = fetchParseURL("file:///");
15514 if { (eval echo configure:15515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15516 ol_cv_lib_fetch=yes
15518 echo "configure: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15526 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15528 if test $ol_cv_lib_fetch != no ; then
15529 ol_link_fetch="-lfetch -lcom_err"
15530 cat >> confdefs.h <<\EOF
15531 #define HAVE_FETCH 1
15537 if test $ol_cv_lib_fetch != no ; then
15538 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15539 ol_link_fetch=freebsd
15541 elif test $ol_with_fetch != auto ; then
15542 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15546 ol_link_readline=no
15547 if test $ol_with_readline != no ; then
15548 for ac_hdr in readline/readline.h readline/history.h
15550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15552 echo "configure:15553: checking for $ac_hdr" >&5
15553 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15554 echo $ac_n "(cached) $ac_c" 1>&6
15556 cat > conftest.$ac_ext <<EOF
15557 #line 15558 "configure"
15558 #include "confdefs.h"
15561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15562 { (eval echo configure:15563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15564 if test -z "$ac_err"; then
15566 eval "ac_cv_header_$ac_safe=yes"
15569 echo "configure: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15572 eval "ac_cv_header_$ac_safe=no"
15576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15577 echo "$ac_t""yes" 1>&6
15578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15579 cat >> confdefs.h <<EOF
15580 #define $ac_tr_hdr 1
15584 echo "$ac_t""no" 1>&6
15589 if test $ac_cv_header_readline_readline_h = yes ; then
15591 LIBS="$TERMCAP_LIBS $LIBS"
15592 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15593 echo "configure:15594: checking for readline in -lreadline" >&5
15594 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15595 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15596 echo $ac_n "(cached) $ac_c" 1>&6
15598 ac_save_LIBS="$LIBS"
15599 LIBS="-lreadline $LIBS"
15600 cat > conftest.$ac_ext <<EOF
15601 #line 15602 "configure"
15602 #include "confdefs.h"
15603 /* Override any gcc2 internal prototype to avoid an error. */
15604 /* We use char because int might match the return type of a gcc2
15605 builtin and then its argument prototype would still apply. */
15612 if { (eval echo configure:15613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15614 eval "ac_cv_lib_$ac_lib_var=yes"
15616 echo "configure: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15619 eval "ac_cv_lib_$ac_lib_var=no"
15622 LIBS="$ac_save_LIBS"
15625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15626 echo "$ac_t""yes" 1>&6
15629 echo "$ac_t""no" 1>&6
15635 if test $have_readline = yes ; then
15636 ol_with_readline=found
15637 ol_link_readline=yes
15639 READLINE_LIBS="-lreadline"
15644 if test $ol_link_readline = yes ; then
15645 cat >> confdefs.h <<\EOF
15646 #define HAVE_READLINE 1
15652 if test $ol_enable_crypt != no ; then
15653 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15654 echo "configure:15655: checking for crypt" >&5
15655 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15656 echo $ac_n "(cached) $ac_c" 1>&6
15658 cat > conftest.$ac_ext <<EOF
15659 #line 15660 "configure"
15660 #include "confdefs.h"
15661 /* System header to define __stub macros and hopefully few prototypes,
15662 which can conflict with char crypt(); below. */
15663 #include <assert.h>
15664 /* Override any gcc2 internal prototype to avoid an error. */
15665 /* We use char because int might match the return type of a gcc2
15666 builtin and then its argument prototype would still apply. */
15672 /* The GNU C library defines this for functions which it implements
15673 to always fail with ENOSYS. Some functions are actually named
15674 something starting with __ and the normal name is an alias. */
15675 #if defined (__stub_crypt) || defined (__stub___crypt)
15683 if { (eval echo configure:15684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15685 eval "ac_cv_func_crypt=yes"
15687 echo "configure: failed program was:" >&5
15688 cat conftest.$ac_ext >&5
15690 eval "ac_cv_func_crypt=no"
15695 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15696 echo "$ac_t""yes" 1>&6
15699 echo "$ac_t""no" 1>&6
15701 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15702 echo "configure:15703: checking for crypt in -lcrypt" >&5
15703 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15704 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15705 echo $ac_n "(cached) $ac_c" 1>&6
15707 ac_save_LIBS="$LIBS"
15708 LIBS="-lcrypt $LIBS"
15709 cat > conftest.$ac_ext <<EOF
15710 #line 15711 "configure"
15711 #include "confdefs.h"
15712 /* Override any gcc2 internal prototype to avoid an error. */
15713 /* We use char because int might match the return type of a gcc2
15714 builtin and then its argument prototype would still apply. */
15721 if { (eval echo configure:15722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15723 eval "ac_cv_lib_$ac_lib_var=yes"
15725 echo "configure: failed program was:" >&5
15726 cat conftest.$ac_ext >&5
15728 eval "ac_cv_lib_$ac_lib_var=no"
15731 LIBS="$ac_save_LIBS"
15734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15735 echo "$ac_t""yes" 1>&6
15736 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15739 echo "$ac_t""no" 1>&6
15746 if test $have_crypt = yes ; then
15747 cat >> confdefs.h <<\EOF
15748 #define HAVE_CRYPT 1
15752 echo "configure: warning: could not find crypt" 1>&2
15753 if test $ol_enable_crypt = yes ; then
15754 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15757 echo "configure: warning: disabling crypt support" 1>&2
15762 if test $ol_enable_proctitle != no ; then
15763 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15764 echo "configure:15765: checking for setproctitle" >&5
15765 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15766 echo $ac_n "(cached) $ac_c" 1>&6
15768 cat > conftest.$ac_ext <<EOF
15769 #line 15770 "configure"
15770 #include "confdefs.h"
15771 /* System header to define __stub macros and hopefully few prototypes,
15772 which can conflict with char setproctitle(); below. */
15773 #include <assert.h>
15774 /* Override any gcc2 internal prototype to avoid an error. */
15775 /* We use char because int might match the return type of a gcc2
15776 builtin and then its argument prototype would still apply. */
15777 char setproctitle();
15782 /* The GNU C library defines this for functions which it implements
15783 to always fail with ENOSYS. Some functions are actually named
15784 something starting with __ and the normal name is an alias. */
15785 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15793 if { (eval echo configure:15794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15795 eval "ac_cv_func_setproctitle=yes"
15797 echo "configure: failed program was:" >&5
15798 cat conftest.$ac_ext >&5
15800 eval "ac_cv_func_setproctitle=no"
15805 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15806 echo "$ac_t""yes" 1>&6
15807 have_setproctitle=yes
15809 echo "$ac_t""no" 1>&6
15811 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15812 echo "configure:15813: checking for setproctitle in -lutil" >&5
15813 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15815 echo $ac_n "(cached) $ac_c" 1>&6
15817 ac_save_LIBS="$LIBS"
15818 LIBS="-lutil $LIBS"
15819 cat > conftest.$ac_ext <<EOF
15820 #line 15821 "configure"
15821 #include "confdefs.h"
15822 /* Override any gcc2 internal prototype to avoid an error. */
15823 /* We use char because int might match the return type of a gcc2
15824 builtin and then its argument prototype would still apply. */
15825 char setproctitle();
15831 if { (eval echo configure:15832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15833 eval "ac_cv_lib_$ac_lib_var=yes"
15835 echo "configure: failed program was:" >&5
15836 cat conftest.$ac_ext >&5
15838 eval "ac_cv_lib_$ac_lib_var=no"
15841 LIBS="$ac_save_LIBS"
15844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15845 echo "$ac_t""yes" 1>&6
15846 have_setproctitle=yes
15847 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15849 echo "$ac_t""no" 1>&6
15850 have_setproctitle=no
15851 LIBOBJS="$LIBOBJS setproctitle.o"
15852 LIBSRCS="$LIBSRCS setproctitle.c"
15858 if test $have_setproctitle = yes ; then
15859 cat >> confdefs.h <<\EOF
15860 #define HAVE_SETPROCTITLE 1
15866 if test $ol_enable_slp != no ; then
15867 for ac_hdr in slp.h
15869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15871 echo "configure:15872: checking for $ac_hdr" >&5
15872 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15873 echo $ac_n "(cached) $ac_c" 1>&6
15875 cat > conftest.$ac_ext <<EOF
15876 #line 15877 "configure"
15877 #include "confdefs.h"
15880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15881 { (eval echo configure:15882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15883 if test -z "$ac_err"; then
15885 eval "ac_cv_header_$ac_safe=yes"
15888 echo "configure: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15891 eval "ac_cv_header_$ac_safe=no"
15895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15896 echo "$ac_t""yes" 1>&6
15897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15898 cat >> confdefs.h <<EOF
15899 #define $ac_tr_hdr 1
15903 echo "$ac_t""no" 1>&6
15908 if test $ac_cv_header_slp_h = yes ; then
15909 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15910 echo "configure:15911: checking for SLPOpen in -lslp" >&5
15911 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15912 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15913 echo $ac_n "(cached) $ac_c" 1>&6
15915 ac_save_LIBS="$LIBS"
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 /* Override any gcc2 internal prototype to avoid an error. */
15921 /* We use char because int might match the return type of a gcc2
15922 builtin and then its argument prototype would still apply. */
15929 if { (eval echo configure:15930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15931 eval "ac_cv_lib_$ac_lib_var=yes"
15933 echo "configure: failed program was:" >&5
15934 cat conftest.$ac_ext >&5
15936 eval "ac_cv_lib_$ac_lib_var=no"
15939 LIBS="$ac_save_LIBS"
15942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15943 echo "$ac_t""yes" 1>&6
15946 echo "$ac_t""no" 1>&6
15950 if test $have_slp = yes ; then
15951 cat >> confdefs.h <<\EOF
15955 SLAPD_SLP_LIBS=-lslp
15958 elif test $ol_enable_slp = yes ; then
15959 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15963 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15964 echo "configure:15965: checking for ANSI C header files" >&5
15965 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15966 echo $ac_n "(cached) $ac_c" 1>&6
15968 cat > conftest.$ac_ext <<EOF
15969 #line 15970 "configure"
15970 #include "confdefs.h"
15971 #include <stdlib.h>
15972 #include <stdarg.h>
15973 #include <string.h>
15976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15977 { (eval echo configure:15978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15979 if test -z "$ac_err"; then
15981 ac_cv_header_stdc=yes
15984 echo "configure: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15987 ac_cv_header_stdc=no
15991 if test $ac_cv_header_stdc = yes; then
15992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15993 cat > conftest.$ac_ext <<EOF
15994 #line 15995 "configure"
15995 #include "confdefs.h"
15996 #include <string.h>
15998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15999 egrep "memchr" >/dev/null 2>&1; then
16003 ac_cv_header_stdc=no
16009 if test $ac_cv_header_stdc = yes; then
16010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16011 cat > conftest.$ac_ext <<EOF
16012 #line 16013 "configure"
16013 #include "confdefs.h"
16014 #include <stdlib.h>
16016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16017 egrep "free" >/dev/null 2>&1; then
16021 ac_cv_header_stdc=no
16027 if test $ac_cv_header_stdc = yes; then
16028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16029 if test "$cross_compiling" = yes; then
16032 cat > conftest.$ac_ext <<EOF
16033 #line 16034 "configure"
16034 #include "confdefs.h"
16036 #if ((' ' & 0x0FF) == 0x020)
16037 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16038 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16040 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
16041 || ('j' <= (c) && (c) <= 'r') \
16042 || ('s' <= (c) && (c) <= 'z'))
16043 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16046 int main () { int i; for (i = 0; i < 256; i++)
16047 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16051 if { (eval echo configure:16052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16055 echo "configure: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16058 ac_cv_header_stdc=no
16066 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16067 if test $ac_cv_header_stdc = yes; then
16068 cat >> confdefs.h <<\EOF
16069 #define STDC_HEADERS 1
16074 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16075 echo "configure:16076: checking for mode_t" >&5
16076 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
16077 echo $ac_n "(cached) $ac_c" 1>&6
16079 cat > conftest.$ac_ext <<EOF
16080 #line 16081 "configure"
16081 #include "confdefs.h"
16082 #include <sys/types.h>
16084 #include <stdlib.h>
16085 #include <stddef.h>
16089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16090 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16092 eval "ac_cv_type_mode_t=yes"
16095 eval "ac_cv_type_mode_t=no"
16100 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
16101 echo "$ac_t""yes" 1>&6
16103 echo "$ac_t""no" 1>&6
16104 cat >> confdefs.h <<EOF
16110 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16111 echo "configure:16112: checking for off_t" >&5
16112 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
16113 echo $ac_n "(cached) $ac_c" 1>&6
16115 cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 #include <sys/types.h>
16120 #include <stdlib.h>
16121 #include <stddef.h>
16125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16126 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16128 eval "ac_cv_type_off_t=yes"
16131 eval "ac_cv_type_off_t=no"
16136 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
16137 echo "$ac_t""yes" 1>&6
16139 echo "$ac_t""no" 1>&6
16140 cat >> confdefs.h <<EOF
16146 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16147 echo "configure:16148: checking for pid_t" >&5
16148 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
16149 echo $ac_n "(cached) $ac_c" 1>&6
16151 cat > conftest.$ac_ext <<EOF
16152 #line 16153 "configure"
16153 #include "confdefs.h"
16154 #include <sys/types.h>
16156 #include <stdlib.h>
16157 #include <stddef.h>
16161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16162 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16164 eval "ac_cv_type_pid_t=yes"
16167 eval "ac_cv_type_pid_t=no"
16172 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
16173 echo "$ac_t""yes" 1>&6
16175 echo "$ac_t""no" 1>&6
16176 cat >> confdefs.h <<EOF
16182 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
16183 echo "configure:16184: checking for ptrdiff_t" >&5
16184 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
16185 echo $ac_n "(cached) $ac_c" 1>&6
16187 cat > conftest.$ac_ext <<EOF
16188 #line 16189 "configure"
16189 #include "confdefs.h"
16190 #include <stddef.h>
16195 if { (eval echo configure:16196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16197 am_cv_type_ptrdiff_t=yes
16199 echo "configure: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16202 am_cv_type_ptrdiff_t=no
16207 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
16208 if test $am_cv_type_ptrdiff_t = yes; then
16209 cat >> confdefs.h <<\EOF
16210 #define HAVE_PTRDIFF_T 1
16215 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
16216 echo "configure:16217: checking return type of signal handlers" >&5
16217 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
16218 echo $ac_n "(cached) $ac_c" 1>&6
16220 cat > conftest.$ac_ext <<EOF
16221 #line 16222 "configure"
16222 #include "confdefs.h"
16223 #include <sys/types.h>
16224 #include <signal.h>
16229 extern "C" void (*signal (int, void (*)(int)))(int);
16231 void (*signal ()) ();
16238 if { (eval echo configure:16239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16240 ac_cv_type_signal=void
16242 echo "configure: failed program was:" >&5
16243 cat conftest.$ac_ext >&5
16245 ac_cv_type_signal=int
16250 echo "$ac_t""$ac_cv_type_signal" 1>&6
16251 cat >> confdefs.h <<EOF
16252 #define RETSIGTYPE $ac_cv_type_signal
16256 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16257 echo "configure:16258: checking for size_t" >&5
16258 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
16259 echo $ac_n "(cached) $ac_c" 1>&6
16261 cat > conftest.$ac_ext <<EOF
16262 #line 16263 "configure"
16263 #include "confdefs.h"
16264 #include <sys/types.h>
16266 #include <stdlib.h>
16267 #include <stddef.h>
16271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16272 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16274 eval "ac_cv_type_size_t=yes"
16277 eval "ac_cv_type_size_t=no"
16282 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
16283 echo "$ac_t""yes" 1>&6
16285 echo "$ac_t""no" 1>&6
16286 cat >> confdefs.h <<EOF
16287 #define size_t unsigned
16293 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
16294 echo "configure:16295: checking for ssize_t" >&5
16295 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
16296 echo $ac_n "(cached) $ac_c" 1>&6
16298 cat > conftest.$ac_ext <<EOF
16299 #line 16300 "configure"
16300 #include "confdefs.h"
16301 #include <sys/types.h>
16303 #include <stdlib.h>
16304 #include <stddef.h>
16308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16309 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16311 eval "ac_cv_type_ssize_t=yes"
16314 eval "ac_cv_type_ssize_t=no"
16319 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
16320 echo "$ac_t""yes" 1>&6
16322 echo "$ac_t""no" 1>&6
16323 cat >> confdefs.h <<EOF
16324 #define ssize_t signed int
16329 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
16330 echo "configure:16331: checking for caddr_t" >&5
16331 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
16332 echo $ac_n "(cached) $ac_c" 1>&6
16334 cat > conftest.$ac_ext <<EOF
16335 #line 16336 "configure"
16336 #include "confdefs.h"
16337 #include <sys/types.h>
16339 #include <stdlib.h>
16340 #include <stddef.h>
16344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16345 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16347 eval "ac_cv_type_caddr_t=yes"
16350 eval "ac_cv_type_caddr_t=no"
16355 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
16356 echo "$ac_t""yes" 1>&6
16358 echo "$ac_t""no" 1>&6
16359 cat >> confdefs.h <<EOF
16360 #define caddr_t char *
16366 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
16367 echo "configure:16368: checking for socklen_t" >&5
16368 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
16369 echo $ac_n "(cached) $ac_c" 1>&6
16371 cat > conftest.$ac_ext <<EOF
16372 #line 16373 "configure"
16373 #include "confdefs.h"
16375 #ifdef HAVE_SYS_TYPES_H
16376 #include <sys/types.h>
16378 #ifdef HAVE_SYS_SOCKET_H
16379 #include <sys/socket.h>
16386 if { (eval echo configure:16387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16388 ol_cv_type_socklen_t=yes
16390 echo "configure: failed program was:" >&5
16391 cat conftest.$ac_ext >&5
16393 ol_cv_type_socklen_t=no
16398 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
16399 if test $ol_cv_type_socklen_t = no; then
16400 cat >> confdefs.h <<\EOF
16401 #define socklen_t int
16406 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
16407 echo "configure:16408: checking for member st_blksize in aggregate type struct stat" >&5
16408 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
16409 echo $ac_n "(cached) $ac_c" 1>&6
16411 cat > conftest.$ac_ext <<EOF
16412 #line 16413 "configure"
16413 #include "confdefs.h"
16414 #include <sys/types.h>
16415 #include <sys/stat.h>
16417 struct stat foo; foo.st_blksize;
16420 if { (eval echo configure:16421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16422 ac_cv_c_struct_member_st_blksize=yes
16424 echo "configure: failed program was:" >&5
16425 cat conftest.$ac_ext >&5
16427 ac_cv_c_struct_member_st_blksize=no
16432 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16433 st_blksize="$ac_cv_c_struct_member_st_blksize"
16434 if test $ac_cv_c_struct_member_st_blksize = yes; then
16435 cat >> confdefs.h <<\EOF
16436 #define HAVE_ST_BLKSIZE 1
16441 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16442 echo "configure:16443: checking whether time.h and sys/time.h may both be included" >&5
16443 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16444 echo $ac_n "(cached) $ac_c" 1>&6
16446 cat > conftest.$ac_ext <<EOF
16447 #line 16448 "configure"
16448 #include "confdefs.h"
16449 #include <sys/types.h>
16450 #include <sys/time.h>
16456 if { (eval echo configure:16457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16458 ac_cv_header_time=yes
16460 echo "configure: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16463 ac_cv_header_time=no
16468 echo "$ac_t""$ac_cv_header_time" 1>&6
16469 if test $ac_cv_header_time = yes; then
16470 cat >> confdefs.h <<\EOF
16471 #define TIME_WITH_SYS_TIME 1
16476 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16477 echo "configure:16478: checking whether struct tm is in sys/time.h or time.h" >&5
16478 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16479 echo $ac_n "(cached) $ac_c" 1>&6
16481 cat > conftest.$ac_ext <<EOF
16482 #line 16483 "configure"
16483 #include "confdefs.h"
16484 #include <sys/types.h>
16487 struct tm *tp; tp->tm_sec;
16490 if { (eval echo configure:16491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16492 ac_cv_struct_tm=time.h
16494 echo "configure: failed program was:" >&5
16495 cat conftest.$ac_ext >&5
16497 ac_cv_struct_tm=sys/time.h
16502 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16503 if test $ac_cv_struct_tm = sys/time.h; then
16504 cat >> confdefs.h <<\EOF
16505 #define TM_IN_SYS_TIME 1
16510 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16511 echo "configure:16512: checking for uid_t in sys/types.h" >&5
16512 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16513 echo $ac_n "(cached) $ac_c" 1>&6
16515 cat > conftest.$ac_ext <<EOF
16516 #line 16517 "configure"
16517 #include "confdefs.h"
16518 #include <sys/types.h>
16520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16521 egrep "uid_t" >/dev/null 2>&1; then
16523 ac_cv_type_uid_t=yes
16526 ac_cv_type_uid_t=no
16532 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16533 if test $ac_cv_type_uid_t = no; then
16534 cat >> confdefs.h <<\EOF
16538 cat >> confdefs.h <<\EOF
16544 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16545 echo "configure:16546: checking for sig_atomic_t" >&5
16546 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16547 echo $ac_n "(cached) $ac_c" 1>&6
16549 cat > conftest.$ac_ext <<EOF
16550 #line 16551 "configure"
16551 #include "confdefs.h"
16552 #include <signal.h>
16554 sig_atomic_t atomic;
16557 if { (eval echo configure:16558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16559 ol_cv_type_sig_atomic_t=yes
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16564 ol_cv_type_sig_atomic_t=no
16569 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16570 if test $ol_cv_type_sig_atomic_t = no; then
16571 cat >> confdefs.h <<\EOF
16572 #define sig_atomic_t int
16579 # test for pw_gecos in struct passwd
16580 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16581 echo "configure:16582: checking struct passwd for pw_gecos" >&5
16582 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16583 echo $ac_n "(cached) $ac_c" 1>&6
16586 cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16593 pwd.pw_gecos = pwd.pw_name;
16597 if { (eval echo configure:16598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16599 ol_cv_struct_passwd_pw_gecos=yes
16601 echo "configure: failed program was:" >&5
16602 cat conftest.$ac_ext >&5
16604 ol_cv_struct_passwd_pw_gecos=no
16609 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16610 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16611 cat >> confdefs.h <<\EOF
16612 #define HAVE_PW_GECOS 1
16617 # test for pw_passwd in struct passwd
16618 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16619 echo "configure:16620: checking struct passwd for pw_passwd" >&5
16620 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16621 echo $ac_n "(cached) $ac_c" 1>&6
16624 cat > conftest.$ac_ext <<EOF
16625 #line 16626 "configure"
16626 #include "confdefs.h"
16631 pwd.pw_passwd = pwd.pw_name;
16635 if { (eval echo configure:16636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16637 ol_cv_struct_passwd_pw_passwd=yes
16639 echo "configure: failed program was:" >&5
16640 cat conftest.$ac_ext >&5
16642 ol_cv_struct_passwd_pw_passwd=no
16647 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16648 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16649 cat >> confdefs.h <<\EOF
16650 #define HAVE_PW_PASSWD 1
16656 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16657 echo "configure:16658: checking if toupper() requires islower()" >&5
16658 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16659 echo $ac_n "(cached) $ac_c" 1>&6
16662 if test "$cross_compiling" = yes; then
16663 ol_cv_c_upper_lower=safe
16665 cat > conftest.$ac_ext <<EOF
16666 #line 16667 "configure"
16667 #include "confdefs.h"
16672 if ('C' == toupper('C'))
16678 if { (eval echo configure:16679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16680 ol_cv_c_upper_lower=no
16682 echo "configure: failed program was:" >&5
16683 cat conftest.$ac_ext >&5
16685 ol_cv_c_upper_lower=yes
16692 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16693 if test $ol_cv_c_upper_lower != no ; then
16694 cat >> confdefs.h <<\EOF
16695 #define C_UPPER_LOWER 1
16700 echo $ac_n "checking for working const""... $ac_c" 1>&6
16701 echo "configure:16702: checking for working const" >&5
16702 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16703 echo $ac_n "(cached) $ac_c" 1>&6
16705 cat > conftest.$ac_ext <<EOF
16706 #line 16707 "configure"
16707 #include "confdefs.h"
16711 /* Ultrix mips cc rejects this. */
16712 typedef int charset[2]; const charset x;
16713 /* SunOS 4.1.1 cc rejects this. */
16714 char const *const *ccp;
16716 /* NEC SVR4.0.2 mips cc rejects this. */
16717 struct point {int x, y;};
16718 static struct point const zero = {0,0};
16719 /* AIX XL C 1.02.0.0 rejects this.
16720 It does not let you subtract one const X* pointer from another in an arm
16721 of an if-expression whose if-part is not a constant expression */
16722 const char *g = "string";
16723 ccp = &g + (g ? g-g : 0);
16724 /* HPUX 7.0 cc rejects these. */
16727 ccp = (char const *const *) p;
16728 { /* SCO 3.2v4 cc rejects this. */
16730 char const *s = 0 ? (char *) 0 : (char const *) 0;
16734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16735 int x[] = {25, 17};
16736 const int *foo = &x[0];
16739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16740 typedef const int *iptr;
16744 { /* AIX XL C 1.02.0.0 rejects this saying
16745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16746 struct s { int j; const int *ap[3]; };
16747 struct s *b; b->j = 5;
16749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16750 const int foo = 10;
16755 if { (eval echo configure:16756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16759 echo "configure: failed program was:" >&5
16760 cat conftest.$ac_ext >&5
16767 echo "$ac_t""$ac_cv_c_const" 1>&6
16768 if test $ac_cv_c_const = no; then
16769 cat >> confdefs.h <<\EOF
16775 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16776 echo "configure:16777: checking if compiler understands volatile" >&5
16777 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16778 echo $ac_n "(cached) $ac_c" 1>&6
16780 cat > conftest.$ac_ext <<EOF
16781 #line 16782 "configure"
16782 #include "confdefs.h"
16785 volatile int a; int * volatile b = x ? &y : &z;
16786 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16790 if { (eval echo configure:16791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16792 ol_cv_c_volatile=yes
16794 echo "configure: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16797 ol_cv_c_volatile=no
16802 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16803 if test $ol_cv_c_volatile = yes; then
16806 cat >> confdefs.h <<\EOF
16813 if test $cross_compiling = yes ; then
16814 cat >> confdefs.h <<\EOF
16815 #define CROSS_COMPILING 1
16819 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16820 echo "configure:16821: checking whether byte ordering is bigendian" >&5
16821 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16822 echo $ac_n "(cached) $ac_c" 1>&6
16824 ac_cv_c_bigendian=unknown
16825 # See if sys/param.h defines the BYTE_ORDER macro.
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16829 #include <sys/types.h>
16830 #include <sys/param.h>
16833 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16834 bogus endian macros
16838 if { (eval echo configure:16839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16840 # It does; now see whether it defined to BIG_ENDIAN or not.
16841 cat > conftest.$ac_ext <<EOF
16842 #line 16843 "configure"
16843 #include "confdefs.h"
16844 #include <sys/types.h>
16845 #include <sys/param.h>
16848 #if BYTE_ORDER != BIG_ENDIAN
16853 if { (eval echo configure:16854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16855 ac_cv_c_bigendian=yes
16857 echo "configure: failed program was:" >&5
16858 cat conftest.$ac_ext >&5
16860 ac_cv_c_bigendian=no
16864 echo "configure: failed program was:" >&5
16865 cat conftest.$ac_ext >&5
16868 if test $ac_cv_c_bigendian = unknown; then
16869 if test "$cross_compiling" = yes; then
16870 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16872 cat > conftest.$ac_ext <<EOF
16873 #line 16874 "configure"
16874 #include "confdefs.h"
16876 /* Are we little or big endian? From Harbison&Steele. */
16880 char c[sizeof (long)];
16883 exit (u.c[sizeof (long) - 1] == 1);
16886 if { (eval echo configure:16887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16888 ac_cv_c_bigendian=no
16890 echo "configure: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16893 ac_cv_c_bigendian=yes
16901 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16902 if test $ac_cv_c_bigendian = yes; then
16903 cat >> confdefs.h <<\EOF
16904 #define WORDS_BIGENDIAN 1
16911 echo $ac_n "checking size of short""... $ac_c" 1>&6
16912 echo "configure:16913: checking size of short" >&5
16913 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16914 echo $ac_n "(cached) $ac_c" 1>&6
16916 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16917 cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16920 #include "confdefs.h"
16921 #include <sys/types.h>
16925 switch (0) case 0: case (sizeof (short) == $ac_size):;
16928 if { (eval echo configure:16929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16930 ac_cv_sizeof_short=$ac_size
16932 echo "configure: failed program was:" >&5
16933 cat conftest.$ac_ext >&5
16936 if test x$ac_cv_sizeof_short != x ; then break; fi
16941 if test x$ac_cv_sizeof_short = x ; then
16942 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16944 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16945 cat >> confdefs.h <<EOF
16946 #define SIZEOF_SHORT $ac_cv_sizeof_short
16950 echo $ac_n "checking size of int""... $ac_c" 1>&6
16951 echo "configure:16952: checking size of int" >&5
16952 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16953 echo $ac_n "(cached) $ac_c" 1>&6
16955 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16956 cat > conftest.$ac_ext <<EOF
16957 #line 16958 "configure"
16958 #include "confdefs.h"
16959 #include "confdefs.h"
16960 #include <sys/types.h>
16964 switch (0) case 0: case (sizeof (int) == $ac_size):;
16967 if { (eval echo configure:16968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16969 ac_cv_sizeof_int=$ac_size
16971 echo "configure: failed program was:" >&5
16972 cat conftest.$ac_ext >&5
16975 if test x$ac_cv_sizeof_int != x ; then break; fi
16980 if test x$ac_cv_sizeof_int = x ; then
16981 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16983 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16984 cat >> confdefs.h <<EOF
16985 #define SIZEOF_INT $ac_cv_sizeof_int
16989 echo $ac_n "checking size of long""... $ac_c" 1>&6
16990 echo "configure:16991: checking size of long" >&5
16991 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
16994 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16995 cat > conftest.$ac_ext <<EOF
16996 #line 16997 "configure"
16997 #include "confdefs.h"
16998 #include "confdefs.h"
16999 #include <sys/types.h>
17003 switch (0) case 0: case (sizeof (long) == $ac_size):;
17006 if { (eval echo configure:17007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17008 ac_cv_sizeof_long=$ac_size
17010 echo "configure: failed program was:" >&5
17011 cat conftest.$ac_ext >&5
17014 if test x$ac_cv_sizeof_long != x ; then break; fi
17019 if test x$ac_cv_sizeof_long = x ; then
17020 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
17022 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
17023 cat >> confdefs.h <<EOF
17024 #define SIZEOF_LONG $ac_cv_sizeof_long
17029 if test "$ac_cv_sizeof_int" -lt 4 ; then
17030 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
17032 cat >> confdefs.h <<\EOF
17033 #define LBER_INT_T long
17037 cat >> confdefs.h <<\EOF
17038 #define LBER_INT_T int
17043 cat >> confdefs.h <<\EOF
17044 #define LBER_LEN_T long
17047 cat >> confdefs.h <<\EOF
17048 #define LBER_SOCKET_T int
17051 cat >> confdefs.h <<\EOF
17052 #define LBER_TAG_T long
17056 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
17057 echo "configure:17058: checking for 8-bit clean memcmp" >&5
17058 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
17059 echo $ac_n "(cached) $ac_c" 1>&6
17061 if test "$cross_compiling" = yes; then
17062 ac_cv_func_memcmp_clean=no
17064 cat > conftest.$ac_ext <<EOF
17065 #line 17066 "configure"
17066 #include "confdefs.h"
17070 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
17071 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
17075 if { (eval echo configure:17076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17077 ac_cv_func_memcmp_clean=yes
17079 echo "configure: failed program was:" >&5
17080 cat conftest.$ac_ext >&5
17082 ac_cv_func_memcmp_clean=no
17089 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
17090 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
17092 echo $ac_n "checking for strftime""... $ac_c" 1>&6
17093 echo "configure:17094: checking for strftime" >&5
17094 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
17095 echo $ac_n "(cached) $ac_c" 1>&6
17097 cat > conftest.$ac_ext <<EOF
17098 #line 17099 "configure"
17099 #include "confdefs.h"
17100 /* System header to define __stub macros and hopefully few prototypes,
17101 which can conflict with char strftime(); below. */
17102 #include <assert.h>
17103 /* Override any gcc2 internal prototype to avoid an error. */
17104 /* We use char because int might match the return type of a gcc2
17105 builtin and then its argument prototype would still apply. */
17111 /* The GNU C library defines this for functions which it implements
17112 to always fail with ENOSYS. Some functions are actually named
17113 something starting with __ and the normal name is an alias. */
17114 #if defined (__stub_strftime) || defined (__stub___strftime)
17122 if { (eval echo configure:17123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17124 eval "ac_cv_func_strftime=yes"
17126 echo "configure: failed program was:" >&5
17127 cat conftest.$ac_ext >&5
17129 eval "ac_cv_func_strftime=no"
17134 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
17135 echo "$ac_t""yes" 1>&6
17136 cat >> confdefs.h <<\EOF
17137 #define HAVE_STRFTIME 1
17141 echo "$ac_t""no" 1>&6
17142 # strftime is in -lintl on SCO UNIX.
17143 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
17144 echo "configure:17145: checking for strftime in -lintl" >&5
17145 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
17146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
17147 echo $ac_n "(cached) $ac_c" 1>&6
17149 ac_save_LIBS="$LIBS"
17150 LIBS="-lintl $LIBS"
17151 cat > conftest.$ac_ext <<EOF
17152 #line 17153 "configure"
17153 #include "confdefs.h"
17154 /* Override any gcc2 internal prototype to avoid an error. */
17155 /* We use char because int might match the return type of a gcc2
17156 builtin and then its argument prototype would still apply. */
17163 if { (eval echo configure:17164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17165 eval "ac_cv_lib_$ac_lib_var=yes"
17167 echo "configure: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
17170 eval "ac_cv_lib_$ac_lib_var=no"
17173 LIBS="$ac_save_LIBS"
17176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17177 echo "$ac_t""yes" 1>&6
17178 cat >> confdefs.h <<\EOF
17179 #define HAVE_STRFTIME 1
17182 LIBS="-lintl $LIBS"
17184 echo "$ac_t""no" 1>&6
17190 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
17191 echo "configure:17192: checking for inet_aton()" >&5
17192 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
17193 echo $ac_n "(cached) $ac_c" 1>&6
17195 cat > conftest.$ac_ext <<EOF
17196 #line 17197 "configure"
17197 #include "confdefs.h"
17199 #ifdef HAVE_SYS_TYPES_H
17200 # include <sys/types.h>
17202 #ifdef HAVE_SYS_SOCKET_H
17203 # include <sys/socket.h>
17204 # ifdef HAVE_SYS_SELECT_H
17205 # include <sys/select.h>
17207 # include <netinet/in.h>
17208 # ifdef HAVE_ARPA_INET_H
17209 # include <arpa/inet.h>
17215 int rc = inet_aton( "255.255.255.255", &in );
17218 if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17220 ol_cv_func_inet_aton=yes
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17225 ol_cv_func_inet_aton=no
17230 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
17231 if test $ol_cv_func_inet_aton != no; then
17232 cat >> confdefs.h <<\EOF
17233 #define HAVE_INET_ATON 1
17239 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
17240 echo "configure:17241: checking for _spawnlp" >&5
17241 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
17242 echo $ac_n "(cached) $ac_c" 1>&6
17244 cat > conftest.$ac_ext <<EOF
17245 #line 17246 "configure"
17246 #include "confdefs.h"
17247 /* System header to define __stub macros and hopefully few prototypes,
17248 which can conflict with char _spawnlp(); below. */
17249 #include <assert.h>
17250 /* Override any gcc2 internal prototype to avoid an error. */
17251 /* We use char because int might match the return type of a gcc2
17252 builtin and then its argument prototype would still apply. */
17258 /* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
17269 if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17271 eval "ac_cv_func__spawnlp=yes"
17273 echo "configure: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17276 eval "ac_cv_func__spawnlp=no"
17281 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
17282 echo "$ac_t""yes" 1>&6
17283 cat >> confdefs.h <<\EOF
17284 #define HAVE_SPAWNLP 1
17288 echo "$ac_t""no" 1>&6
17292 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
17293 echo "configure:17294: checking for _snprintf" >&5
17294 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
17295 echo $ac_n "(cached) $ac_c" 1>&6
17297 cat > conftest.$ac_ext <<EOF
17298 #line 17299 "configure"
17299 #include "confdefs.h"
17300 /* System header to define __stub macros and hopefully few prototypes,
17301 which can conflict with char _snprintf(); below. */
17302 #include <assert.h>
17303 /* Override any gcc2 internal prototype to avoid an error. */
17304 /* We use char because int might match the return type of a gcc2
17305 builtin and then its argument prototype would still apply. */
17311 /* The GNU C library defines this for functions which it implements
17312 to always fail with ENOSYS. Some functions are actually named
17313 something starting with __ and the normal name is an alias. */
17314 #if defined (__stub__snprintf) || defined (__stub____snprintf)
17322 if { (eval echo configure:17323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17324 eval "ac_cv_func__snprintf=yes"
17326 echo "configure: failed program was:" >&5
17327 cat conftest.$ac_ext >&5
17329 eval "ac_cv_func__snprintf=no"
17334 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
17335 echo "$ac_t""yes" 1>&6
17336 ac_cv_func_snprintf=yes
17337 cat >> confdefs.h <<\EOF
17338 #define snprintf _snprintf
17343 echo "$ac_t""no" 1>&6
17347 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
17348 echo "configure:17349: checking for _vsnprintf" >&5
17349 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
17350 echo $ac_n "(cached) $ac_c" 1>&6
17352 cat > conftest.$ac_ext <<EOF
17353 #line 17354 "configure"
17354 #include "confdefs.h"
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char _vsnprintf(); below. */
17357 #include <assert.h>
17358 /* Override any gcc2 internal prototype to avoid an error. */
17359 /* We use char because int might match the return type of a gcc2
17360 builtin and then its argument prototype would still apply. */
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
17377 if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17379 eval "ac_cv_func__vsnprintf=yes"
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17384 eval "ac_cv_func__vsnprintf=no"
17389 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
17390 echo "$ac_t""yes" 1>&6
17391 ac_cv_func_vsnprintf=yes
17392 cat >> confdefs.h <<\EOF
17393 #define vsnprintf _vsnprintf
17398 echo "$ac_t""no" 1>&6
17402 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17403 echo "configure:17404: checking for vprintf" >&5
17404 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
17405 echo $ac_n "(cached) $ac_c" 1>&6
17407 cat > conftest.$ac_ext <<EOF
17408 #line 17409 "configure"
17409 #include "confdefs.h"
17410 /* System header to define __stub macros and hopefully few prototypes,
17411 which can conflict with char vprintf(); below. */
17412 #include <assert.h>
17413 /* Override any gcc2 internal prototype to avoid an error. */
17414 /* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17432 if { (eval echo configure:17433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17434 eval "ac_cv_func_vprintf=yes"
17436 echo "configure: failed program was:" >&5
17437 cat conftest.$ac_ext >&5
17439 eval "ac_cv_func_vprintf=no"
17444 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17445 echo "$ac_t""yes" 1>&6
17446 cat >> confdefs.h <<\EOF
17447 #define HAVE_VPRINTF 1
17451 echo "$ac_t""no" 1>&6
17454 if test "$ac_cv_func_vprintf" != yes; then
17455 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17456 echo "configure:17457: checking for _doprnt" >&5
17457 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17458 echo $ac_n "(cached) $ac_c" 1>&6
17460 cat > conftest.$ac_ext <<EOF
17461 #line 17462 "configure"
17462 #include "confdefs.h"
17463 /* System header to define __stub macros and hopefully few prototypes,
17464 which can conflict with char _doprnt(); below. */
17465 #include <assert.h>
17466 /* Override any gcc2 internal prototype to avoid an error. */
17467 /* We use char because int might match the return type of a gcc2
17468 builtin and then its argument prototype would still apply. */
17474 /* The GNU C library defines this for functions which it implements
17475 to always fail with ENOSYS. Some functions are actually named
17476 something starting with __ and the normal name is an alias. */
17477 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17485 if { (eval echo configure:17486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17487 eval "ac_cv_func__doprnt=yes"
17489 echo "configure: failed program was:" >&5
17490 cat conftest.$ac_ext >&5
17492 eval "ac_cv_func__doprnt=no"
17497 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17498 echo "$ac_t""yes" 1>&6
17499 cat >> confdefs.h <<\EOF
17500 #define HAVE_DOPRNT 1
17504 echo "$ac_t""no" 1>&6
17510 if test $ac_cv_func_vprintf = yes ; then
17511 for ac_func in vsnprintf vsprintf
17513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17514 echo "configure:17515: checking for $ac_func" >&5
17515 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17516 echo $ac_n "(cached) $ac_c" 1>&6
17518 cat > conftest.$ac_ext <<EOF
17519 #line 17520 "configure"
17520 #include "confdefs.h"
17521 /* System header to define __stub macros and hopefully few prototypes,
17522 which can conflict with char $ac_func(); below. */
17523 #include <assert.h>
17524 /* Override any gcc2 internal prototype to avoid an error. */
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17532 /* The GNU C library defines this for functions which it implements
17533 to always fail with ENOSYS. Some functions are actually named
17534 something starting with __ and the normal name is an alias. */
17535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17543 if { (eval echo configure:17544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17545 eval "ac_cv_func_$ac_func=yes"
17547 echo "configure: failed program was:" >&5
17548 cat conftest.$ac_ext >&5
17550 eval "ac_cv_func_$ac_func=no"
17555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17556 echo "$ac_t""yes" 1>&6
17557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17558 cat >> confdefs.h <<EOF
17559 #define $ac_tr_func 1
17563 echo "$ac_t""no" 1>&6
17623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17624 echo "configure:17625: checking for $ac_func" >&5
17625 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17626 echo $ac_n "(cached) $ac_c" 1>&6
17628 cat > conftest.$ac_ext <<EOF
17629 #line 17630 "configure"
17630 #include "confdefs.h"
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func(); below. */
17633 #include <assert.h>
17634 /* Override any gcc2 internal prototype to avoid an error. */
17635 /* We use char because int might match the return type of a gcc2
17636 builtin and then its argument prototype would still apply. */
17642 /* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17653 if { (eval echo configure:17654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17655 eval "ac_cv_func_$ac_func=yes"
17657 echo "configure: failed program was:" >&5
17658 cat conftest.$ac_ext >&5
17660 eval "ac_cv_func_$ac_func=no"
17665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17666 echo "$ac_t""yes" 1>&6
17667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17668 cat >> confdefs.h <<EOF
17669 #define $ac_tr_func 1
17673 echo "$ac_t""no" 1>&6
17678 for ac_func in getopt
17680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17681 echo "configure:17682: checking for $ac_func" >&5
17682 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17683 echo $ac_n "(cached) $ac_c" 1>&6
17685 cat > conftest.$ac_ext <<EOF
17686 #line 17687 "configure"
17687 #include "confdefs.h"
17688 /* System header to define __stub macros and hopefully few prototypes,
17689 which can conflict with char $ac_func(); below. */
17690 #include <assert.h>
17691 /* Override any gcc2 internal prototype to avoid an error. */
17692 /* We use char because int might match the return type of a gcc2
17693 builtin and then its argument prototype would still apply. */
17699 /* The GNU C library defines this for functions which it implements
17700 to always fail with ENOSYS. Some functions are actually named
17701 something starting with __ and the normal name is an alias. */
17702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17710 if { (eval echo configure:17711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17712 eval "ac_cv_func_$ac_func=yes"
17714 echo "configure: failed program was:" >&5
17715 cat conftest.$ac_ext >&5
17717 eval "ac_cv_func_$ac_func=no"
17722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17723 echo "$ac_t""yes" 1>&6
17724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17725 cat >> confdefs.h <<EOF
17726 #define $ac_tr_func 1
17730 echo "$ac_t""no" 1>&6
17731 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17737 if test "$ac_cv_func_getopt" != yes; then
17738 LIBSRCS="$LIBSRCS getopt.c"
17741 # Check Configuration
17742 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17743 echo "configure:17744: checking declaration of sys_errlist" >&5
17744 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17745 echo $ac_n "(cached) $ac_c" 1>&6
17748 cat > conftest.$ac_ext <<EOF
17749 #line 17750 "configure"
17750 #include "confdefs.h"
17753 #include <sys/types.h>
17756 #include <stdlib.h>
17759 char *c = (char *) *sys_errlist
17762 if { (eval echo configure:17763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17764 ol_cv_dcl_sys_errlist=yes
17765 ol_cv_have_sys_errlist=yes
17767 echo "configure: failed program was:" >&5
17768 cat conftest.$ac_ext >&5
17770 ol_cv_dcl_sys_errlist=no
17775 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17777 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17778 if test $ol_cv_dcl_sys_errlist = no ; then
17779 cat >> confdefs.h <<\EOF
17780 #define DECL_SYS_ERRLIST 1
17784 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17785 echo "configure:17786: checking existence of sys_errlist" >&5
17786 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17787 echo $ac_n "(cached) $ac_c" 1>&6
17790 cat > conftest.$ac_ext <<EOF
17791 #line 17792 "configure"
17792 #include "confdefs.h"
17795 char *c = (char *) *sys_errlist
17798 if { (eval echo configure:17799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17800 ol_cv_have_sys_errlist=yes
17802 echo "configure: failed program was:" >&5
17803 cat conftest.$ac_ext >&5
17805 ol_cv_have_sys_errlist=no
17810 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17812 if test $ol_cv_have_sys_errlist = yes ; then
17813 cat >> confdefs.h <<\EOF
17814 #define HAVE_SYS_ERRLIST 1
17821 if test "$ol_enable_debug" != no ; then
17822 cat >> confdefs.h <<\EOF
17823 #define LDAP_DEBUG 1
17827 if test "$ol_enable_syslog" = yes ; then
17828 cat >> confdefs.h <<\EOF
17829 #define LDAP_SYSLOG 1
17833 if test "$ol_enable_cache" = no ; then
17834 cat >> confdefs.h <<\EOF
17835 #define LDAP_NOCACHE 1
17839 if test "$ol_link_kbind" != no ; then
17840 cat >> confdefs.h <<\EOF
17841 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17845 if test "$ol_enable_proctitle" != no ; then
17846 cat >> confdefs.h <<\EOF
17847 #define LDAP_PROCTITLE 1
17851 if test "$ol_enable_referrals" != no ; then
17852 cat >> confdefs.h <<\EOF
17853 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17857 if test "$ol_enable_local" != no; then
17858 cat >> confdefs.h <<\EOF
17859 #define LDAP_PF_LOCAL 1
17863 if test "$ol_link_ipv6" != no; then
17864 cat >> confdefs.h <<\EOF
17865 #define LDAP_PF_INET6 1
17869 if test "$ol_enable_cleartext" != no ; then
17870 cat >> confdefs.h <<\EOF
17871 #define SLAPD_CLEARTEXT 1
17875 if test "$ol_enable_crypt" != no ; then
17876 cat >> confdefs.h <<\EOF
17877 #define SLAPD_CRYPT 1
17881 if test "$ol_link_kpasswd" != no ; then
17882 cat >> confdefs.h <<\EOF
17883 #define SLAPD_KPASSWD 1
17887 if test "$ol_link_spasswd" != no ; then
17888 cat >> confdefs.h <<\EOF
17889 #define SLAPD_SPASSWD 1
17893 if test "$ol_enable_phonetic" != no ; then
17894 cat >> confdefs.h <<\EOF
17895 #define SLAPD_PHONETIC 1
17899 if test "$ol_enable_rlookups" != no ; then
17900 cat >> confdefs.h <<\EOF
17901 #define SLAPD_RLOOKUPS 1
17905 if test "$ol_enable_aci" != no ; then
17906 cat >> confdefs.h <<\EOF
17907 #define SLAPD_ACI_ENABLED 1
17912 if test "$ol_link_modules" != no ; then
17913 cat >> confdefs.h <<\EOF
17914 #define SLAPD_MODULES 1
17918 SLAPD_MODULES_LDFLAGS="-dlopen self"
17921 if test "$ol_enable_bdb" != no ; then
17922 cat >> confdefs.h <<\EOF
17923 #define SLAPD_BDB 1
17928 if test "$ol_with_bdb_module" != static ; then
17929 cat >> confdefs.h <<\EOF
17930 #define SLAPD_BDB_DYNAMIC 1
17934 BUILD_BDB_DYNAMIC=shared
17935 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17936 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
17938 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
17942 if test "$ol_link_dnssrv" != no ; then
17943 cat >> confdefs.h <<\EOF
17944 #define SLAPD_DNSSRV 1
17949 if test "$ol_with_dnssrv_module" != static ; then
17950 cat >> confdefs.h <<\EOF
17951 #define SLAPD_DNSSRV_DYNAMIC 1
17955 BUILD_DNSSRV_DYNAMIC=shared
17956 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17957 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
17959 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
17963 if test "$ol_enable_ldap" != no ; then
17964 cat >> confdefs.h <<\EOF
17965 #define SLAPD_LDAP 1
17970 if test "$ol_with_ldap_module" != static ; then
17971 cat >> confdefs.h <<\EOF
17972 #define SLAPD_LDAP_DYNAMIC 1
17976 BUILD_LDAP_DYNAMIC=shared
17977 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17978 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
17980 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
17984 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17985 cat >> confdefs.h <<\EOF
17986 #define SLAPD_LDBM 1
17992 if test "$ol_with_ldbm_module" != static ; then
17993 cat >> confdefs.h <<\EOF
17994 #define SLAPD_LDBM_DYNAMIC 1
17998 BUILD_LDBM_DYNAMIC=shared
17999 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
18000 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
18002 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
18006 if test "$ol_enable_meta" != no ; then
18007 if test "$ol_enable_ldap" = no ; then
18008 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
18010 if test "$ol_enable_rewrite" = no ; then
18011 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
18013 cat >> confdefs.h <<\EOF
18014 #define SLAPD_META 1
18019 if test "$ol_with_meta_module" != static ; then
18020 cat >> confdefs.h <<\EOF
18021 #define SLAPD_META_DYNAMIC 1
18025 BUILD_META_DYNAMIC=shared
18026 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
18027 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
18029 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
18033 if test "$ol_enable_monitor" != no ; then
18034 cat >> confdefs.h <<\EOF
18035 #define SLAPD_MONITOR 1
18040 if test "$ol_with_monitor_module" != static ; then
18041 cat >> confdefs.h <<\EOF
18042 #define SLAPD_MONITOR_DYNAMIC 1
18046 BUILD_MONITOR_DYNAMIC=shared
18047 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
18048 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
18050 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
18054 if test "$ol_enable_passwd" != no ; then
18055 cat >> confdefs.h <<\EOF
18056 #define SLAPD_PASSWD 1
18061 if test "$ol_with_passwd_module" != static ; then
18062 cat >> confdefs.h <<\EOF
18063 #define SLAPD_PASSWD_DYNAMIC 1
18067 BUILD_PASSWD_DYNAMIC=shared
18068 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
18069 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
18071 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
18075 if test "$ol_link_perl" != no ; then
18076 cat >> confdefs.h <<\EOF
18077 #define SLAPD_PERL 1
18082 if test "$ol_with_perl_module" != static ; then
18083 cat >> confdefs.h <<\EOF
18084 #define SLAPD_PERL_DYNAMIC 1
18088 BUILD_PERL_DYNAMIC=shared
18089 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
18090 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
18092 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
18096 if test "$ol_enable_shell" != no ; then
18097 cat >> confdefs.h <<\EOF
18098 #define SLAPD_SHELL 1
18103 if test "$ol_with_shell_module" != static ; then
18104 cat >> confdefs.h <<\EOF
18105 #define SLAPD_SHELL_DYNAMIC 1
18109 BUILD_SHELL_DYNAMIC=shared
18110 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
18111 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
18113 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
18117 if test "$ol_enable_tcl" != no ; then
18118 cat >> confdefs.h <<\EOF
18119 #define SLAPD_TCL 1
18124 if test "$ol_with_tcl_module" != static; then
18125 cat >> confdefs.h <<\EOF
18126 #define SLAPD_TCL_DYNAMIC 1
18130 BUILD_TCL_DYNAMIC=shared
18131 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
18132 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
18134 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
18138 if test "$ol_link_sql" != no ; then
18139 cat >> confdefs.h <<\EOF
18140 #define SLAPD_SQL 1
18145 if test "$ol_with_sql_module" != static; then
18146 cat >> confdefs.h <<\EOF
18147 #define SLAPD_SQL_DYNAMIC 1
18151 BUILD_SQL_DYNAMIC=shared
18152 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
18153 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
18155 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
18159 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
18160 $BUILD_SLAPD = yes ; then
18164 if test "$ol_enable_rewrite" != no ; then
18165 cat >> confdefs.h <<\EOF
18166 #define ENABLE_REWRITE 1
18170 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
18175 if test "$ac_cv_mingw32" = yes ; then
18177 SLAPD_MODULES_LDFLAGS=
18178 SLAPD_MODULES_LIST=
18253 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18256 # Let make expand exec_prefix.
18257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18259 # Any assignment to VPATH causes Sun make to only execute
18260 # the first set of double-colon rules, so remove it if not needed.
18261 # If there is a colon in the path, we need to keep it.
18262 if test "x$srcdir" = x.; then
18263 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18266 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18268 DEFS=-DHAVE_CONFIG_H
18270 # Without the "./", some shells look in PATH for config.status.
18271 : ${CONFIG_STATUS=./config.status}
18273 echo creating $CONFIG_STATUS
18274 rm -f $CONFIG_STATUS
18275 cat > $CONFIG_STATUS <<EOF
18277 # Generated automatically by configure.
18278 # Run this file to recreate the current configuration.
18279 # This directory was configured as follows,
18280 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18282 # $0 $ac_configure_args
18284 # Compiler output produced by configure, useful for debugging
18285 # configure, is in ./config.log if it exists.
18287 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18290 case "\$ac_option" in
18291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18292 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18293 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18294 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18295 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
18297 -help | --help | --hel | --he | --h)
18298 echo "\$ac_cs_usage"; exit 0 ;;
18299 *) echo "\$ac_cs_usage"; exit 1 ;;
18303 ac_given_srcdir=$srcdir
18304 ac_given_INSTALL="$INSTALL"
18306 trap 'rm -fr `echo "\
18307 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18308 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18309 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18310 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18311 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18312 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18313 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18314 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18315 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18316 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18317 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18318 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18319 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18320 include/Makefile:build/top.mk:include/Makefile.in \
18321 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18322 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18323 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18324 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18325 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18326 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18327 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18328 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18329 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18330 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18331 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18332 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18333 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18334 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18335 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18336 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18337 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18338 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18339 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18340 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18341 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18342 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18343 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18344 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18345 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18346 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18347 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18348 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18349 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18351 cat >> $CONFIG_STATUS <<EOF
18353 # Protect against being on the right side of a sed subst in config.status.
18354 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18355 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18359 s%@CFLAGS@%$CFLAGS%g
18360 s%@CPPFLAGS@%$CPPFLAGS%g
18361 s%@CXXFLAGS@%$CXXFLAGS%g
18362 s%@FFLAGS@%$FFLAGS%g
18364 s%@LDFLAGS@%$LDFLAGS%g
18366 s%@exec_prefix@%$exec_prefix%g
18367 s%@prefix@%$prefix%g
18368 s%@program_transform_name@%$program_transform_name%g
18369 s%@bindir@%$bindir%g
18370 s%@sbindir@%$sbindir%g
18371 s%@libexecdir@%$libexecdir%g
18372 s%@datadir@%$datadir%g
18373 s%@sysconfdir@%$sysconfdir%g
18374 s%@sharedstatedir@%$sharedstatedir%g
18375 s%@localstatedir@%$localstatedir%g
18376 s%@libdir@%$libdir%g
18377 s%@includedir@%$includedir%g
18378 s%@oldincludedir@%$oldincludedir%g
18379 s%@infodir@%$infodir%g
18380 s%@mandir@%$mandir%g
18382 s%@host_alias@%$host_alias%g
18383 s%@host_cpu@%$host_cpu%g
18384 s%@host_vendor@%$host_vendor%g
18385 s%@host_os@%$host_os%g
18386 s%@target@%$target%g
18387 s%@target_alias@%$target_alias%g
18388 s%@target_cpu@%$target_cpu%g
18389 s%@target_vendor@%$target_vendor%g
18390 s%@target_os@%$target_os%g
18392 s%@build_alias@%$build_alias%g
18393 s%@build_cpu@%$build_cpu%g
18394 s%@build_vendor@%$build_vendor%g
18395 s%@build_os@%$build_os%g
18396 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18397 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18398 s%@INSTALL_DATA@%$INSTALL_DATA%g
18399 s%@PACKAGE@%$PACKAGE%g
18400 s%@VERSION@%$VERSION%g
18401 s%@ACLOCAL@%$ACLOCAL%g
18402 s%@AUTOCONF@%$AUTOCONF%g
18403 s%@AUTOMAKE@%$AUTOMAKE%g
18404 s%@AUTOHEADER@%$AUTOHEADER%g
18405 s%@MAKEINFO@%$MAKEINFO%g
18406 s%@install_sh@%$install_sh%g
18409 s%@AMTARFLAGS@%$AMTARFLAGS%g
18410 s%@SET_MAKE@%$SET_MAKE%g
18411 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
18412 s%@top_builddir@%$top_builddir%g
18413 s%@ldap_subdir@%$ldap_subdir%g
18416 s%@RANLIB@%$RANLIB%g
18418 s%@DLLTOOL@%$DLLTOOL%g
18420 s%@OBJDUMP@%$OBJDUMP%g
18421 s%@LIBTOOL@%$LIBTOOL%g
18423 s%@SENDMAIL@%$SENDMAIL%g
18424 s%@EDITOR@%$EDITOR%g
18425 s%@FINGER@%$FINGER%g
18426 s%@PERLBIN@%$PERLBIN%g
18428 s%@EXEEXT@%$EXEEXT%g
18429 s%@OBJEXT@%$OBJEXT%g
18430 s%@OL_MKDEP@%$OL_MKDEP%g
18431 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
18432 s%@LIBOBJS@%$LIBOBJS%g
18433 s%@LIBSRCS@%$LIBSRCS%g
18435 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
18436 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
18437 s%@BUILD_BDB@%$BUILD_BDB%g
18438 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
18439 s%@BUILD_LDAP@%$BUILD_LDAP%g
18440 s%@BUILD_LDBM@%$BUILD_LDBM%g
18441 s%@BUILD_META@%$BUILD_META%g
18442 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18443 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18444 s%@BUILD_PERL@%$BUILD_PERL%g
18445 s%@BUILD_SHELL@%$BUILD_SHELL%g
18446 s%@BUILD_SQL@%$BUILD_SQL%g
18447 s%@BUILD_TCL@%$BUILD_TCL%g
18448 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18449 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18450 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18451 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18452 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18453 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18454 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18455 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18456 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18457 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18458 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18459 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18460 s%@LDBM_LIB@%$LDBM_LIB%g
18461 s%@LDAP_LIBS@%$LDAP_LIBS%g
18462 s%@LDIF_LIBS@%$LDIF_LIBS%g
18463 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18464 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18465 s%@LDBM_LIBS@%$LDBM_LIBS%g
18466 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18467 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18468 s%@WRAP_LIBS@%$WRAP_LIBS%g
18469 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18470 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18471 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18472 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18473 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
18474 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
18475 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18476 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18477 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18478 s%@KRB4_LIBS@%$KRB4_LIBS%g
18479 s%@KRB5_LIBS@%$KRB5_LIBS%g
18480 s%@READLINE_LIBS@%$READLINE_LIBS%g
18481 s%@SASL_LIBS@%$SASL_LIBS%g
18482 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18483 s%@TLS_LIBS@%$TLS_LIBS%g
18484 s%@MODULES_LIBS@%$MODULES_LIBS%g
18485 s%@AUTH_LIBS@%$AUTH_LIBS%g
18486 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18487 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18488 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18489 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18494 cat >> $CONFIG_STATUS <<\EOF
18496 # Split the substitutions into bite-sized pieces for seds with
18497 # small command number limits, like on Digital OSF/1 and HP-UX.
18498 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18499 ac_file=1 # Number of current file.
18500 ac_beg=1 # First line for current file.
18501 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18504 while $ac_more_lines; do
18505 if test $ac_beg -gt 1; then
18506 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18508 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18510 if test ! -s conftest.s$ac_file; then
18511 ac_more_lines=false
18512 rm -f conftest.s$ac_file
18514 if test -z "$ac_sed_cmds"; then
18515 ac_sed_cmds="sed -f conftest.s$ac_file"
18517 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18519 ac_file=`expr $ac_file + 1`
18521 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18524 if test -z "$ac_sed_cmds"; then
18529 cat >> $CONFIG_STATUS <<EOF
18531 CONFIG_FILES=\${CONFIG_FILES-"\
18532 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18533 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18534 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18535 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18536 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18537 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18538 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18539 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18540 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18541 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18542 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18543 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18544 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18545 include/Makefile:build/top.mk:include/Makefile.in \
18546 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18547 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18548 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18549 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18550 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18551 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18552 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18553 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18554 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18555 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18556 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18557 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18558 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18559 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18560 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18561 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18562 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18563 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18564 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18565 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18566 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18567 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18568 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18569 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18570 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18571 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18572 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18573 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18576 cat >> $CONFIG_STATUS <<\EOF
18577 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18580 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18581 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18582 *) ac_file_in="${ac_file}.in" ;;
18585 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18587 # Remove last slash and all that follows it. Not all systems have dirname.
18588 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18589 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18590 # The file is in a subdirectory.
18591 test ! -d "$ac_dir" && mkdir "$ac_dir"
18592 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18593 # A "../" for each directory in $ac_dir_suffix.
18594 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18596 ac_dir_suffix= ac_dots=
18599 case "$ac_given_srcdir" in
18601 if test -z "$ac_dots"; then top_srcdir=.
18602 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18603 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18604 *) # Relative path.
18605 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18606 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18609 case "$ac_given_INSTALL" in
18610 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18611 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18614 echo creating "$ac_file"
18616 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18618 *[Mm]akefile*) ac_comsub="1i\\
18619 # $configure_input" ;;
18623 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18625 s%@configure_input@%$configure_input%g
18626 s%@srcdir@%$srcdir%g
18627 s%@top_srcdir@%$top_srcdir%g
18628 s%@INSTALL@%$INSTALL%g
18629 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18636 # ac_d sets the value in "#define NAME VALUE" lines.
18637 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18638 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18641 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18642 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18643 ac_uB='\([ ]\)%\1#\2define\3'
18646 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18647 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18648 ac_eB='$%\1#\2define\3'
18652 if test "${CONFIG_HEADERS+set}" != set; then
18654 cat >> $CONFIG_STATUS <<EOF
18655 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18657 cat >> $CONFIG_STATUS <<\EOF
18659 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18662 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18663 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18664 *) ac_file_in="${ac_file}.in" ;;
18667 echo creating $ac_file
18669 rm -f conftest.frag conftest.in conftest.out
18670 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18671 cat $ac_file_inputs > conftest.in
18675 # Transform confdefs.h into a sed script conftest.vals that substitutes
18676 # the proper values into config.h.in to produce config.h. And first:
18677 # Protect against being on the right side of a sed subst in config.status.
18678 # Protect against being in an unquoted here document in config.status.
18679 rm -f conftest.vals
18680 cat > conftest.hdr <<\EOF
18683 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18687 sed -n -f conftest.hdr confdefs.h > conftest.vals
18690 # This sed command replaces #undef with comments. This is necessary, for
18691 # example, in the case of _POSIX_SOURCE, which is predefined and required
18692 # on some systems where configure will not decide to define it.
18693 cat >> conftest.vals <<\EOF
18694 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18697 # Break up conftest.vals because some shells have a limit on
18698 # the size of here documents, and old seds have small limits too.
18700 rm -f conftest.tail
18703 ac_lines=`grep -c . conftest.vals`
18704 # grep -c gives empty output for an empty file on some AIX systems.
18705 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18706 # Write a limited-size here document to conftest.frag.
18707 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18708 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18710 sed -f conftest.frag conftest.in > conftest.out
18712 mv conftest.out conftest.in
18713 ' >> $CONFIG_STATUS
18714 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18715 rm -f conftest.vals
18716 mv conftest.tail conftest.vals
18718 rm -f conftest.vals
18720 cat >> $CONFIG_STATUS <<\EOF
18721 rm -f conftest.frag conftest.h
18722 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18723 cat conftest.in >> conftest.h
18725 if cmp -s $ac_file conftest.h 2>/dev/null; then
18726 echo "$ac_file is unchanged"
18729 # Remove last slash and all that follows it. Not all systems have dirname.
18730 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18732 # The file is in a subdirectory.
18733 test ! -d "$ac_dir" && mkdir "$ac_dir"
18736 mv conftest.h $ac_file
18741 cat >> $CONFIG_STATUS <<EOF
18744 cat >> $CONFIG_STATUS <<\EOF
18747 echo Please \"make depend\" to build dependencies
18751 chmod +x $CONFIG_STATUS
18752 rm -fr confdefs* $ac_clean_files
18753 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1