3 # from OpenLDAP: pkg/ldap/configure.in,v 1.376 2001/11/28 01:05:19 kurt Exp
5 # Copyright 1998-2001 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-2001 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 [no]"
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 [yes]"
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"
1970 ol_enable_ldbm="yes"
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 $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=
2714 cat >> confdefs.h <<\EOF
2715 #define HAVE_MKVERSION 1
2723 *-*-aix*) if test -z "$CC" ; then
2724 case "$ol_with_threads" in
2725 auto | yes | posix) ol_aix_threads=yes ;;
2731 if test $ol_aix_threads = yes ; then
2732 if test -z "${CC}" ; then
2733 for ac_prog in cc_r xlc_r cc
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2738 echo "configure:2739: checking for $ac_word" >&5
2739 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2747 for ac_dir in $ac_dummy; do
2748 test -z "$ac_dir" && ac_dir=.
2749 if test -f $ac_dir/$ac_word; then
2750 ac_cv_prog_CC="$ac_prog"
2758 if test -n "$CC"; then
2759 echo "$ac_t""$CC" 1>&6
2761 echo "$ac_t""no" 1>&6
2764 test -n "$CC" && break
2768 if test "$CC" = cc ; then
2769 if test $ol_with_threads != auto ; then
2770 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2772 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2778 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2779 ol_with_threads=posix
2780 ol_cv_pthread_create=yes
2784 if test -z "${CC}"; then
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2799 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if test -f $ac_dir/$ac_word; then
2802 ac_cv_prog_CC="$ac_prog"
2810 if test -n "$CC"; then
2811 echo "$ac_t""$CC" 1>&6
2813 echo "$ac_t""no" 1>&6
2816 test -n "$CC" && break
2822 for ac_prog in ar gar
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_word" >&5
2828 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test -n "$AR"; then
2832 ac_cv_prog_AR="$AR" # Let the user override the test.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 for ac_dir in $ac_dummy; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 ac_cv_prog_AR="$ac_prog"
2847 if test -n "$AR"; then
2848 echo "$ac_t""$AR" 1>&6
2850 echo "$ac_t""no" 1>&6
2853 test -n "$AR" && break
2859 # Check whether --enable-fast-install or --disable-fast-install was given.
2860 if test "${enable_fast_install+set}" = set; then
2861 enableval="$enable_fast_install"
2862 p=${PACKAGE-default}
2863 case "$enableval" in
2864 yes) enable_fast_install=yes ;;
2865 no) enable_fast_install=no ;;
2867 enable_fast_install=no
2868 # Look at the argument we got. We use all the common list separators.
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2870 for pkg in $enableval; do
2871 if test "X$pkg" = "X$p"; then
2872 enable_fast_install=yes
2879 enable_fast_install=yes
2882 # Extract the first word of "ranlib", so it can be a program name with args.
2883 set dummy ranlib; ac_word=$2
2884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2885 echo "configure:2886: checking for $ac_word" >&5
2886 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 if test -n "$RANLIB"; then
2890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2894 for ac_dir in $ac_dummy; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 ac_cv_prog_RANLIB="ranlib"
2902 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2905 RANLIB="$ac_cv_prog_RANLIB"
2906 if test -n "$RANLIB"; then
2907 echo "$ac_t""$RANLIB" 1>&6
2909 echo "$ac_t""no" 1>&6
2912 # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_word" >&5
2916 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2924 for ac_dir in $ac_dummy; do
2925 test -z "$ac_dir" && ac_dir=.
2926 if test -f $ac_dir/$ac_word; then
2935 if test -n "$CC"; then
2936 echo "$ac_t""$CC" 1>&6
2938 echo "$ac_t""no" 1>&6
2941 if test -z "$CC"; then
2942 # Extract the first word of "cc", so it can be a program name with args.
2943 set dummy cc; ac_word=$2
2944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2945 echo "configure:2946: checking for $ac_word" >&5
2946 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2955 for ac_dir in $ac_dummy; do
2956 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$ac_word; then
2958 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2959 ac_prog_rejected=yes
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2971 if test $# -gt 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2976 set dummy "$ac_dir/$ac_word" "$@"
2984 if test -n "$CC"; then
2985 echo "$ac_t""$CC" 1>&6
2987 echo "$ac_t""no" 1>&6
2990 if test -z "$CC"; then
2991 case "`uname -s`" in
2992 *win32* | *WIN32* | *CYGWIN*)
2993 # Extract the first word of "cl", so it can be a program name with args.
2994 set dummy cl; ac_word=$2
2995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2996 echo "configure:2997: checking for $ac_word" >&5
2997 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3005 for ac_dir in $ac_dummy; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3016 if test -n "$CC"; then
3017 echo "$ac_t""$CC" 1>&6
3019 echo "$ac_t""no" 1>&6
3024 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3027 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3028 echo "configure:3029: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3035 cross_compiling=$ac_cv_prog_cc_cross
3037 cat > conftest.$ac_ext << EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3044 if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3045 ac_cv_prog_cc_works=yes
3046 # If we can't run a trivial program, we are probably using a cross compiler.
3047 if (./conftest; exit) 2>/dev/null; then
3048 ac_cv_prog_cc_cross=no
3050 ac_cv_prog_cc_cross=yes
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 ac_cv_prog_cc_works=no
3059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3063 cross_compiling=$ac_cv_prog_cc_cross
3065 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3066 if test $ac_cv_prog_cc_works = no; then
3067 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3069 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3070 echo "configure:3071: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3071 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3072 cross_compiling=$ac_cv_prog_cc_cross
3074 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3075 echo "configure:3076: checking whether we are using GNU C" >&5
3076 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.c <<EOF
3084 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3091 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3093 if test $ac_cv_prog_gcc = yes; then
3099 ac_test_CFLAGS="${CFLAGS+set}"
3100 ac_save_CFLAGS="$CFLAGS"
3102 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3103 echo "configure:3104: checking whether ${CC-cc} accepts -g" >&5
3104 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 echo 'void f(){}' > conftest.c
3108 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3117 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3118 if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS="$ac_save_CFLAGS"
3120 elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3127 if test "$GCC" = yes; then
3134 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3135 if test "${with_gnu_ld+set}" = set; then
3136 withval="$with_gnu_ld"
3137 test "$withval" = no || with_gnu_ld=yes
3143 if test "$ac_cv_prog_gcc" = yes; then
3144 # Check if gcc -print-prog-name=ld gives a path.
3145 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3146 echo "configure:3147: checking for ld used by GCC" >&5
3147 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3149 # Accept absolute paths.
3150 [\\/]* | [A-Za-z]:[\\/]*)
3151 re_direlt='/[^/][^/]*/\.\./'
3152 # Canonicalize the path of ld
3153 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3155 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3157 test -z "$LD" && LD="$ac_prog"
3160 # If it fails, then pretend we aren't using GCC.
3164 # If it is relative, then search for the first ld in PATH.
3168 elif test "$with_gnu_ld" = yes; then
3169 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3170 echo "configure:3171: checking for GNU ld" >&5
3172 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3173 echo "configure:3174: checking for non-GNU ld" >&5
3175 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 if test -z "$LD"; then
3179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3180 for ac_dir in $PATH; do
3181 test -z "$ac_dir" && ac_dir=.
3182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3183 ac_cv_path_LD="$ac_dir/$ac_prog"
3184 # Check to see if the program is GNU ld. I'd rather use --version,
3185 # but apparently some GNU ld's only accept -v.
3186 # Break only if it was the GNU/non-GNU ld that we prefer.
3187 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3188 test "$with_gnu_ld" != no && break
3190 test "$with_gnu_ld" != yes && break
3196 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3201 if test -n "$LD"; then
3202 echo "$ac_t""$LD" 1>&6
3204 echo "$ac_t""no" 1>&6
3206 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3207 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3208 echo "configure:3209: checking if the linker ($LD) is GNU ld" >&5
3209 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3214 ac_cv_prog_gnu_ld=yes
3216 ac_cv_prog_gnu_ld=no
3220 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3223 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3224 echo "configure:3225: checking for BSD-compatible nm" >&5
3225 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 if test -n "$NM"; then
3229 # Let the user override the test.
3232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3233 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3236 # Check to see if the nm accepts a BSD-compat flag.
3237 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3238 # nm: unknown option "B" ignored
3239 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3240 ac_cv_path_NM="$ac_dir/nm -B"
3242 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3243 ac_cv_path_NM="$ac_dir/nm -p"
3246 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3247 continue # so that we can try to find one that supports BSD flags
3252 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3257 echo "$ac_t""$NM" 1>&6
3259 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3260 echo "configure:3261: checking whether ln -s works" >&5
3261 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3265 if ln -s X conftestdata 2>/dev/null
3268 ac_cv_prog_LN_S="ln -s"
3273 LN_S="$ac_cv_prog_LN_S"
3274 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3275 echo "$ac_t""yes" 1>&6
3277 echo "$ac_t""no" 1>&6
3280 if test $host != $build; then
3281 ac_tool_prefix=${host_alias}-
3288 NONE) lt_target="$host" ;;
3289 *) lt_target="$target" ;;
3292 # Check for any special flags to pass to ltconfig.
3293 libtool_flags="--cache-file=$cache_file"
3294 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3295 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3296 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3297 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3298 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3299 libtool_flags="$libtool_flags --enable-dlopen"
3300 libtool_flags="$libtool_flags --enable-win32-dll"
3301 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3302 if test "${enable_libtool_lock+set}" = set; then
3303 enableval="$enable_libtool_lock"
3307 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3308 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3310 # Some flags need to be propagated to the compiler or linker for good
3312 case "$lt_target" in
3314 # Find out which ABI we are using.
3315 echo '#line 3316 "configure"' > conftest.$ac_ext
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 case "`/usr/bin/file conftest.o`" in
3333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3334 SAVE_CFLAGS="$CFLAGS"
3335 CFLAGS="$CFLAGS -belf"
3336 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3337 echo "configure:3338: checking whether the C compiler needs -belf" >&5
3338 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 lt_cv_cc_needs_belf=yes
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3356 lt_cv_cc_needs_belf=no
3361 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3362 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3363 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3364 CFLAGS="$SAVE_CFLAGS"
3368 *-*-cygwin* | *-*-mingw*)
3369 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3372 echo "configure:3373: checking for $ac_word" >&5
3373 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 if test -n "$DLLTOOL"; then
3377 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3381 for ac_dir in $ac_dummy; do
3382 test -z "$ac_dir" && ac_dir=.
3383 if test -f $ac_dir/$ac_word; then
3384 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3391 DLLTOOL="$ac_cv_prog_DLLTOOL"
3392 if test -n "$DLLTOOL"; then
3393 echo "$ac_t""$DLLTOOL" 1>&6
3395 echo "$ac_t""no" 1>&6
3399 if test -z "$ac_cv_prog_DLLTOOL"; then
3400 if test -n "$ac_tool_prefix"; then
3401 # Extract the first word of "dlltool", so it can be a program name with args.
3402 set dummy dlltool; ac_word=$2
3403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3404 echo "configure:3405: checking for $ac_word" >&5
3405 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 if test -n "$DLLTOOL"; then
3409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3413 for ac_dir in $ac_dummy; do
3414 test -z "$ac_dir" && ac_dir=.
3415 if test -f $ac_dir/$ac_word; then
3416 ac_cv_prog_DLLTOOL="dlltool"
3421 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3424 DLLTOOL="$ac_cv_prog_DLLTOOL"
3425 if test -n "$DLLTOOL"; then
3426 echo "$ac_t""$DLLTOOL" 1>&6
3428 echo "$ac_t""no" 1>&6
3436 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}as; ac_word=$2
3438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3439 echo "configure:3440: checking for $ac_word" >&5
3440 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 if test -n "$AS"; then
3444 ac_cv_prog_AS="$AS" # Let the user override the test.
3446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3448 for ac_dir in $ac_dummy; do
3449 test -z "$ac_dir" && ac_dir=.
3450 if test -f $ac_dir/$ac_word; then
3451 ac_cv_prog_AS="${ac_tool_prefix}as"
3459 if test -n "$AS"; then
3460 echo "$ac_t""$AS" 1>&6
3462 echo "$ac_t""no" 1>&6
3466 if test -z "$ac_cv_prog_AS"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "as", so it can be a program name with args.
3469 set dummy as; ac_word=$2
3470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_word" >&5
3472 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 if test -n "$AS"; then
3476 ac_cv_prog_AS="$AS" # Let the user override the test.
3478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 for ac_dir in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir=.
3482 if test -f $ac_dir/$ac_word; then
3488 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3492 if test -n "$AS"; then
3493 echo "$ac_t""$AS" 1>&6
3495 echo "$ac_t""no" 1>&6
3503 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3506 echo "configure:3507: checking for $ac_word" >&5
3507 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 if test -n "$OBJDUMP"; then
3511 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3515 for ac_dir in $ac_dummy; do
3516 test -z "$ac_dir" && ac_dir=.
3517 if test -f $ac_dir/$ac_word; then
3518 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3525 OBJDUMP="$ac_cv_prog_OBJDUMP"
3526 if test -n "$OBJDUMP"; then
3527 echo "$ac_t""$OBJDUMP" 1>&6
3529 echo "$ac_t""no" 1>&6
3533 if test -z "$ac_cv_prog_OBJDUMP"; then
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "objdump", so it can be a program name with args.
3536 set dummy objdump; ac_word=$2
3537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3538 echo "configure:3539: checking for $ac_word" >&5
3539 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 if test -n "$OBJDUMP"; then
3543 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3547 for ac_dir in $ac_dummy; do
3548 test -z "$ac_dir" && ac_dir=.
3549 if test -f $ac_dir/$ac_word; then
3550 ac_cv_prog_OBJDUMP="objdump"
3555 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3558 OBJDUMP="$ac_cv_prog_OBJDUMP"
3559 if test -n "$OBJDUMP"; then
3560 echo "$ac_t""$OBJDUMP" 1>&6
3562 echo "$ac_t""no" 1>&6
3575 # Save cache, so that ltconfig can load it
3578 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3579 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3580 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3581 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3582 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3584 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3585 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3587 # Reload cache, that may have been modified by ltconfig
3590 # This can be used to rebuild libtool when needed
3591 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3593 # Always use our own libtool.
3594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3596 # Redirect the config.log output again, so that the ltconfig log is not
3597 # clobbered by the next message.
3598 exec 5>>./config.log
3601 for ac_prog in mawk gawk nawk awk
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3606 echo "configure:3607: checking for $ac_word" >&5
3607 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 if test -n "$AWK"; then
3611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3615 for ac_dir in $ac_dummy; do
3616 test -z "$ac_dir" && ac_dir=.
3617 if test -f $ac_dir/$ac_word; then
3618 ac_cv_prog_AWK="$ac_prog"
3625 AWK="$ac_cv_prog_AWK"
3626 if test -n "$AWK"; then
3627 echo "$ac_t""$AWK" 1>&6
3629 echo "$ac_t""no" 1>&6
3632 test -n "$AWK" && break
3635 # test for ln hardlink support
3636 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3637 echo "configure:3638: checking whether ln works" >&5
3638 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 rm -f conftest.src conftest.dst
3642 echo "conftest" > conftest.src
3643 if ln conftest.src conftest.dst 2>/dev/null
3645 ol_cv_prog_LN_H="ln"
3647 ol_cv_prog_LN_H="cp"
3649 rm -f conftest.src conftest.dst
3652 LN_H="$ol_cv_prog_LN_H"
3653 if test "$ol_cv_prog_LN_H" = "ln"; then
3654 echo "$ac_t""yes" 1>&6
3656 echo "$ac_t""no" 1>&6
3659 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3660 echo "configure:3661: checking whether ln -s works" >&5
3661 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3665 if ln -s X conftestdata 2>/dev/null
3668 ac_cv_prog_LN_S="ln -s"
3673 LN_S="$ac_cv_prog_LN_S"
3674 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3675 echo "$ac_t""yes" 1>&6
3677 echo "$ac_t""no" 1>&6
3681 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3685 # Extract the first word of "sendmail", so it can be a program name with args.
3686 set dummy sendmail; ac_word=$2
3687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3688 echo "configure:3689: checking for $ac_word" >&5
3689 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3694 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3697 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3701 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3702 for ac_dir in $ac_dummy; do
3703 test -z "$ac_dir" && ac_dir=.
3704 if test -f $ac_dir/$ac_word; then
3705 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3710 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3714 SENDMAIL="$ac_cv_path_SENDMAIL"
3715 if test -n "$SENDMAIL"; then
3716 echo "$ac_t""$SENDMAIL" 1>&6
3718 echo "$ac_t""no" 1>&6
3721 # Extract the first word of "vi", so it can be a program name with args.
3722 set dummy vi; ac_word=$2
3723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_word" >&5
3725 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3730 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3733 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3737 ac_dummy="$PATH:/usr/ucb"
3738 for ac_dir in $ac_dummy; do
3739 test -z "$ac_dir" && ac_dir=.
3740 if test -f $ac_dir/$ac_word; then
3741 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3746 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3750 EDITOR="$ac_cv_path_EDITOR"
3751 if test -n "$EDITOR"; then
3752 echo "$ac_t""$EDITOR" 1>&6
3754 echo "$ac_t""no" 1>&6
3757 # Extract the first word of "finger", so it can be a program name with args.
3758 set dummy finger; ac_word=$2
3759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_word" >&5
3761 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3766 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3769 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3773 ac_dummy="$PATH:/usr/ucb"
3774 for ac_dir in $ac_dummy; do
3775 test -z "$ac_dir" && ac_dir=.
3776 if test -f $ac_dir/$ac_word; then
3777 ac_cv_path_FINGER="$ac_dir/$ac_word"
3782 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3786 FINGER="$ac_cv_path_FINGER"
3787 if test -n "$FINGER"; then
3788 echo "$ac_t""$FINGER" 1>&6
3790 echo "$ac_t""no" 1>&6
3795 if test $ol_enable_perl != no ; then
3796 # Extract the first word of "perl", so it can be a program name with args.
3797 set dummy perl; ac_word=$2
3798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_word" >&5
3800 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3805 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3808 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3813 for ac_dir in $ac_dummy; do
3814 test -z "$ac_dir" && ac_dir=.
3815 if test -f $ac_dir/$ac_word; then
3816 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3821 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3825 PERLBIN="$ac_cv_path_PERLBIN"
3826 if test -n "$PERLBIN"; then
3827 echo "$ac_t""$PERLBIN" 1>&6
3829 echo "$ac_t""no" 1>&6
3833 if test "no$PERLBIN" = "no" ; then
3834 if test $ol_enable_perl = yes ; then
3835 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3839 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3840 if test x"$ol_with_perl_module" = "xstatic" ; then
3841 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3843 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3849 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3850 echo "configure:3851: checking how to run the C preprocessor" >&5
3851 # On Suns, sometimes $CPP names a directory.
3852 if test -n "$CPP" && test -d "$CPP"; then
3855 if test -z "$CPP"; then
3856 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 # This must be in double quotes, not single quotes, because CPP may get
3860 # substituted into the Makefile and "${CC-cc}" will confuse make.
3862 # On the NeXT, cc -E runs the code through the compiler's parser,
3863 # not just through cpp.
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3871 { (eval echo configure:3872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3873 if test -z "$ac_err"; then
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3880 CPP="${CC-cc} -E -traditional-cpp"
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3888 { (eval echo configure:3889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3890 if test -z "$ac_err"; then
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3897 CPP="${CC-cc} -nologo -E"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3905 { (eval echo configure:3906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3907 if test -z "$ac_err"; then
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3921 ac_cv_prog_CPP="$CPP"
3923 CPP="$ac_cv_prog_CPP"
3925 ac_cv_prog_CPP="$CPP"
3927 echo "$ac_t""$CPP" 1>&6
3930 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3931 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3933 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3934 echo "configure: warning: programs compiled here do run here..." 1>&2
3935 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3937 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3938 echo "configure: warning: programs compiled here do not run here..." 1>&2
3939 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3942 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3943 echo "configure:3944: checking for AIX" >&5
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 egrep "yes" >/dev/null 2>&1; then
3955 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3956 #define _ALL_SOURCE 1
3961 echo "$ac_t""no" 1>&6
3966 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3967 echo "configure:3968: checking for POSIXized ISC" >&5
3968 if test -d /etc/conf/kconfig.d &&
3969 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3971 echo "$ac_t""yes" 1>&6
3972 ISC=yes # If later tests want to check for ISC.
3973 cat >> confdefs.h <<\EOF
3974 #define _POSIX_SOURCE 1
3977 if test "$GCC" = yes; then
3983 echo "$ac_t""no" 1>&6
3987 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3988 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3989 echo "configure:3990: checking for minix/config.h" >&5
3990 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 #include <minix/config.h>
3998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3999 { (eval echo configure:4000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4001 if test -z "$ac_err"; then
4003 eval "ac_cv_header_$ac_safe=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4009 eval "ac_cv_header_$ac_safe=no"
4013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4017 echo "$ac_t""no" 1>&6
4021 if test "$MINIX" = yes; then
4022 cat >> confdefs.h <<\EOF
4023 #define _POSIX_SOURCE 1
4026 cat >> confdefs.h <<\EOF
4027 #define _POSIX_1_SOURCE 2
4030 cat >> confdefs.h <<\EOF
4037 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4038 echo "configure:4039: checking for Cygwin environment" >&5
4039 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4049 #define __CYGWIN__ __CYGWIN32__
4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4066 echo "$ac_t""$ac_cv_cygwin" 1>&6
4068 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4069 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4070 echo "configure:4071: checking for mingw32 environment" >&5
4071 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4082 if { (eval echo configure:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4094 echo "$ac_t""$ac_cv_mingw32" 1>&6
4096 test "$ac_cv_mingw32" = yes && MINGW32=yes
4097 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4098 echo "configure:4099: checking for EMX OS/2 environment" >&5
4099 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4110 if { (eval echo configure:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4122 echo "$ac_t""$ac_cv_emxos2" 1>&6
4124 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4128 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4129 echo "configure:4130: checking for executable suffix" >&5
4130 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4137 echo 'int main () { return 0; }' > conftest.$ac_ext
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4140 for file in conftest.*; do
4142 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4143 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4147 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4150 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4155 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4156 echo "$ac_t""${ac_cv_exeext}" 1>&6
4159 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4160 echo "configure:4161: checking for object suffix" >&5
4161 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4165 echo 'int i = 1;' > conftest.$ac_ext
4166 if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 for ac_file in conftest.*; do
4170 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4174 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4179 echo "$ac_t""$ac_cv_objext" 1>&6
4180 OBJEXT=$ac_cv_objext
4181 ac_objext=$ac_cv_objext
4184 cat >> confdefs.h <<EOF
4185 #define EXEEXT "${EXEEXT}"
4189 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4190 echo "configure:4191: checking for be_app in -lbe" >&5
4191 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4192 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 ac_save_LIBS="$LIBS"
4196 LIBS="-lbe -lroot -lnet $LIBS"
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4200 /* Override any gcc2 internal prototype to avoid an error. */
4201 /* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4209 if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211 eval "ac_cv_lib_$ac_lib_var=yes"
4213 echo "configure: failed program was:" >&5
4214 cat conftest.$ac_ext >&5
4216 eval "ac_cv_lib_$ac_lib_var=no"
4219 LIBS="$ac_save_LIBS"
4222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4223 echo "$ac_t""yes" 1>&6
4224 LIBS="$LIBS -lbe -lroot -lnet"
4226 echo "$ac_t""no" 1>&6
4234 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4235 echo "configure:4236: checking for ${CC-cc} option to accept ANSI C" >&5
4236 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 am_cv_prog_cc_stdc=no
4241 # Don't try gcc -ansi; that turns off useful extensions and
4242 # breaks some systems' header files.
4243 # AIX -qlanglvl=ansi
4244 # Ultrix and OSF/1 -std1
4245 # HP-UX 10.20 and later -Ae
4246 # HP-UX older versions -Aa -D_HPUX_SOURCE
4247 # SVR4 -Xc -D__EXTENSIONS__
4248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250 CC="$ac_save_CC $ac_arg"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4256 #include <sys/types.h>
4257 #include <sys/stat.h>
4258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4259 struct buf { int x; };
4260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261 static char *e (p, i)
4267 static char *f (char * (*g) (char **, int), char **p, ...)
4272 s = g (p, va_arg (v,int));
4276 int test (int i, double x);
4277 struct s1 {int (*f) (int a);};
4278 struct s2 {int (*f) (double a);};
4279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 if { (eval echo configure:4290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4291 am_cv_prog_cc_stdc="$ac_arg"; break
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4302 if test -z "$am_cv_prog_cc_stdc"; then
4303 echo "$ac_t""none needed" 1>&6
4305 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4307 case "x$am_cv_prog_cc_stdc" in
4309 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4312 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4313 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4316 # test for make depend flag
4319 if test -z "${MKDEP}"; then
4321 if test -z "${MKDEP_FLAGS}"; then
4322 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4323 echo "configure:4324: checking for ${OL_MKDEP} depend flag" >&5
4324 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4329 for flag in "-M" "-xM"; do
4330 cat > conftest.c <<EOF
4333 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4334 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4336 if test ! -f conftest."${ac_object}" ; then
4338 OL_MKDEP_FLAGS="$flag"
4347 echo "$ac_t""$ol_cv_mkdep" 1>&6
4350 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4355 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4360 if test "${ol_cv_mkdep}" = no ; then
4361 # this will soon become an error
4362 echo "configure: warning: do not know how to generate dependencies" 1>&2
4365 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4366 echo "configure:4367: checking for afopen in -ls" >&5
4367 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 ac_save_LIBS="$LIBS"
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4387 eval "ac_cv_lib_$ac_lib_var=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4392 eval "ac_cv_lib_$ac_lib_var=no"
4395 LIBS="$ac_save_LIBS"
4398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4402 cat >> confdefs.h <<\EOF
4403 #define HAVE_AIX_SECURITY 1
4408 echo "$ac_t""no" 1>&6
4414 if test $ol_enable_modules != no ; then
4415 for ac_hdr in ltdl.h
4417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4419 echo "configure:4420: checking for $ac_hdr" >&5
4420 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4429 { (eval echo configure:4430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4431 if test -z "$ac_err"; then
4433 eval "ac_cv_header_$ac_safe=yes"
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4439 eval "ac_cv_header_$ac_safe=no"
4443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4446 cat >> confdefs.h <<EOF
4447 #define $ac_tr_hdr 1
4451 echo "$ac_t""no" 1>&6
4456 if test $ac_cv_header_ltdl_h = no ; then
4457 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4460 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4461 echo "configure:4462: checking for lt_dlinit in -lltdl" >&5
4462 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 ac_save_LIBS="$LIBS"
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 eval "ac_cv_lib_$ac_lib_var=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 eval "ac_cv_lib_$ac_lib_var=no"
4490 LIBS="$ac_save_LIBS"
4493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4497 cat >> confdefs.h <<\EOF
4498 #define HAVE_LIBLTDL 1
4503 echo "$ac_t""no" 1>&6
4507 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4508 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4512 ol_with_bdb_module=static
4513 ol_with_dnssrv_module=static
4514 ol_with_ldap_module=static
4515 ol_with_ldbm_module=static
4516 ol_with_meta_module=static
4517 ol_with_monitor_module=static
4518 ol_with_passwd_module=static
4519 ol_with_perl_module=static
4520 ol_with_shell_module=static
4521 ol_with_tcl_module=static
4522 ol_with_sql_module=static
4526 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4527 echo "configure:4528: checking for EBCDIC" >&5
4528 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 #include <__ASCII__/generate_error.h>
4541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4542 { (eval echo configure:4543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4544 if test -z "$ac_err"; then
4546 ol_cv_cpp_ebcdic=yes
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4557 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4558 if test $ol_cv_cpp_ebcdic = yes ; then
4559 cat >> confdefs.h <<\EOF
4560 #define HAVE_EBCDIC 1
4565 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4566 echo "configure:4567: checking for ANSI C header files" >&5
4567 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4579 { (eval echo configure:4580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4581 if test -z "$ac_err"; then
4583 ol_cv_header_stdc=yes
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4589 ol_cv_header_stdc=no
4593 if test $ol_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 egrep "memchr" >/dev/null 2>&1; then
4605 ol_cv_header_stdc=no
4611 if test $ol_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619 egrep "free" >/dev/null 2>&1; then
4623 ol_cv_header_stdc=no
4629 if test $ol_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4642 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4643 || ('j' <= (c) && (c) <= 'r') \
4644 || ('s' <= (c) && (c) <= 'z'))
4645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648 int main () { int i; for (i = 0; i < 256; i++)
4649 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4653 if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 ol_cv_header_stdc=no
4668 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4669 if test $ol_cv_header_stdc = yes; then
4670 cat >> confdefs.h <<\EOF
4671 #define STDC_HEADERS 1
4675 ac_cv_header_stdc=disable
4678 if test $ol_cv_header_stdc != yes; then
4679 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4683 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4686 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_hdr that defines DIR" >&5
4688 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 #include <sys/types.h>
4700 if { (eval echo configure:4701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4702 eval "ac_cv_header_dirent_$ac_safe=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 eval "ac_cv_header_dirent_$ac_safe=no"
4711 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4712 echo "$ac_t""yes" 1>&6
4713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4714 cat >> confdefs.h <<EOF
4715 #define $ac_tr_hdr 1
4717 ac_header_dirent=$ac_hdr; break
4719 echo "$ac_t""no" 1>&6
4722 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4723 if test $ac_header_dirent = dirent.h; then
4724 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4725 echo "configure:4726: checking for opendir in -ldir" >&5
4726 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4727 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4730 ac_save_LIBS="$LIBS"
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4735 /* Override any gcc2 internal prototype to avoid an error. */
4736 /* We use char because int might match the return type of a gcc2
4737 builtin and then its argument prototype would still apply. */
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4746 eval "ac_cv_lib_$ac_lib_var=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 eval "ac_cv_lib_$ac_lib_var=no"
4754 LIBS="$ac_save_LIBS"
4757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4765 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4766 echo "configure:4767: checking for opendir in -lx" >&5
4767 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4768 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 ac_save_LIBS="$LIBS"
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4787 eval "ac_cv_lib_$ac_lib_var=yes"
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4792 eval "ac_cv_lib_$ac_lib_var=no"
4795 LIBS="$ac_save_LIBS"
4798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4802 echo "$ac_t""no" 1>&6
4807 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4808 echo "configure:4809: checking for sys/wait.h that is POSIX.1 compatible" >&5
4809 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 #include <sys/types.h>
4816 #include <sys/wait.h>
4818 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4821 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4826 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4829 if { (eval echo configure:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 ac_cv_header_sys_wait_h=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 ac_cv_header_sys_wait_h=no
4841 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4842 if test $ac_cv_header_sys_wait_h = yes; then
4843 cat >> confdefs.h <<\EOF
4844 #define HAVE_SYS_WAIT_H 1
4849 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4850 echo "configure:4851: checking POSIX termios" >&5
4851 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <sys/types.h>
4859 #include <termios.h>
4861 /* SunOS 4.0.3 has termios.h but not the library calls. */
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 am_cv_sys_posix_termios=yes
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 am_cv_sys_posix_termios=no
4877 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4880 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4881 echo "configure:4882: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4882 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4887 gwinsz_in_termios_h=no
4888 if test $am_cv_sys_posix_termios = yes; then
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 #include <sys/types.h>
4893 # include <termios.h>
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 egrep "yes" >/dev/null 2>&1; then
4902 gwinsz_in_termios_h=yes
4908 if test $gwinsz_in_termios_h = no; then
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912 #include <sys/types.h>
4913 # include <sys/ioctl.h>
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 egrep "yes" >/dev/null 2>&1; then
4922 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4930 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4931 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4932 cat >> confdefs.h <<\EOF
4933 #define GWINSZ_IN_SYS_IOCTL 1
4938 if test $am_cv_sys_posix_termios = yes ; then
4939 cat >> confdefs.h <<\EOF
4940 #define HAVE_POSIX_TERMIOS 1
4991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4993 echo "configure:4994: checking for $ac_hdr" >&5
4994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5003 { (eval echo configure:5004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5005 if test -z "$ac_err"; then
5007 eval "ac_cv_header_$ac_safe=yes"
5010 echo "configure: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5013 eval "ac_cv_header_$ac_safe=no"
5017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5020 cat >> confdefs.h <<EOF
5021 #define $ac_tr_hdr 1
5025 echo "$ac_t""no" 1>&6
5032 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5033 echo "configure:5034: checking for dlopen" >&5
5034 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5040 /* System header to define __stub macros and hopefully few prototypes,
5041 which can conflict with char dlopen(); below. */
5043 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5051 /* The GNU C library defines this for functions which it implements
5052 to always fail with ENOSYS. Some functions are actually named
5053 something starting with __ and the normal name is an alias. */
5054 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064 eval "ac_cv_func_dlopen=yes"
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5069 eval "ac_cv_func_dlopen=no"
5074 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5078 echo "$ac_t""no" 1>&6
5079 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5080 echo "configure:5081: checking for dlopen in -ldl" >&5
5081 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 ac_save_LIBS="$LIBS"
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 /* Override any gcc2 internal prototype to avoid an error. */
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5101 eval "ac_cv_lib_$ac_lib_var=yes"
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5106 eval "ac_cv_lib_$ac_lib_var=no"
5109 LIBS="$ac_save_LIBS"
5112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5113 echo "$ac_t""yes" 1>&6
5114 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5115 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5116 cat >> confdefs.h <<EOF
5117 #define $ac_tr_lib 1
5123 echo "$ac_t""no" 1>&6
5129 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5130 echo "configure:5131: checking for sigset in -lV3" >&5
5131 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 ac_save_LIBS="$LIBS"
5137 cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5140 /* Override any gcc2 internal prototype to avoid an error. */
5141 /* We use char because int might match the return type of a gcc2
5142 builtin and then its argument prototype would still apply. */
5149 if { (eval echo configure:5150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5151 eval "ac_cv_lib_$ac_lib_var=yes"
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 eval "ac_cv_lib_$ac_lib_var=no"
5159 LIBS="$ac_save_LIBS"
5162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5163 echo "$ac_t""yes" 1>&6
5164 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5166 cat >> confdefs.h <<EOF
5167 #define $ac_tr_lib 1
5173 echo "$ac_t""no" 1>&6
5177 if test $ac_cv_header_winsock_h = yes; then
5178 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5179 echo "configure:5180: checking for winsock" >&5
5180 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 #include <winsock.h>
5190 select(0,NULL,NULL,NULL,NULL);
5192 gethostname(NULL,0);
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5208 echo "$ac_t""$ol_cv_winsock" 1>&6
5210 if test $ol_cv_winsock = yes ; then
5211 cat >> confdefs.h <<\EOF
5212 #define HAVE_WINSOCK 1
5215 ac_cv_func_socket=yes
5216 ac_cv_func_select=yes
5217 ac_cv_func_closesocket=yes
5218 ac_cv_func_gethostname=yes
5223 echo $ac_n "checking for socket""... $ac_c" 1>&6
5224 echo "configure:5225: checking for socket" >&5
5225 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 /* System header to define __stub macros and hopefully few prototypes,
5232 which can conflict with char socket(); below. */
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_socket) || defined (__stub___socket)
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5255 eval "ac_cv_func_socket=yes"
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5260 eval "ac_cv_func_socket=no"
5265 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5269 echo "$ac_t""no" 1>&6
5271 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5272 echo "configure:5273: checking for main in -lsocket" >&5
5273 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5274 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 ac_save_LIBS="$LIBS"
5278 LIBS="-lsocket $LIBS"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 eval "ac_cv_lib_$ac_lib_var=no"
5297 LIBS="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5304 cat >> confdefs.h <<EOF
5305 #define $ac_tr_lib 1
5308 LIBS="-lsocket $LIBS"
5311 echo "$ac_t""no" 1>&6
5314 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5315 echo "configure:5316: checking for main in -lnet" >&5
5316 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5317 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 ac_save_LIBS="$LIBS"
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5330 if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5332 eval "ac_cv_lib_$ac_lib_var=yes"
5334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5337 eval "ac_cv_lib_$ac_lib_var=no"
5340 LIBS="$ac_save_LIBS"
5343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5344 echo "$ac_t""yes" 1>&6
5345 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5347 cat >> confdefs.h <<EOF
5348 #define $ac_tr_lib 1
5354 echo "$ac_t""no" 1>&6
5357 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5358 echo "configure:5359: checking for main in -lnsl_s" >&5
5359 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5360 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 ac_save_LIBS="$LIBS"
5364 LIBS="-lnsl_s $LIBS"
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5373 if { (eval echo configure:5374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5375 eval "ac_cv_lib_$ac_lib_var=yes"
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5380 eval "ac_cv_lib_$ac_lib_var=no"
5383 LIBS="$ac_save_LIBS"
5386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5387 echo "$ac_t""yes" 1>&6
5388 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5390 cat >> confdefs.h <<EOF
5391 #define $ac_tr_lib 1
5394 LIBS="-lnsl_s $LIBS"
5397 echo "$ac_t""no" 1>&6
5400 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5401 echo "configure:5402: checking for main in -lnsl" >&5
5402 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5403 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 ac_save_LIBS="$LIBS"
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 eval "ac_cv_lib_$ac_lib_var=yes"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5423 eval "ac_cv_lib_$ac_lib_var=no"
5426 LIBS="$ac_save_LIBS"
5429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5433 cat >> confdefs.h <<EOF
5434 #define $ac_tr_lib 1
5440 echo "$ac_t""no" 1>&6
5443 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5444 echo "configure:5445: checking for socket in -linet" >&5
5445 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 ac_save_LIBS="$LIBS"
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 /* Override any gcc2 internal prototype to avoid an error. */
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5463 if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465 eval "ac_cv_lib_$ac_lib_var=yes"
5467 echo "configure: failed program was:" >&5
5468 cat conftest.$ac_ext >&5
5470 eval "ac_cv_lib_$ac_lib_var=no"
5473 LIBS="$ac_save_LIBS"
5476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5480 cat >> confdefs.h <<EOF
5481 #define $ac_tr_lib 1
5487 echo "$ac_t""no" 1>&6
5490 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5491 echo "configure:5492: checking for main in -lgen" >&5
5492 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5493 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5496 ac_save_LIBS="$LIBS"
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 eval "ac_cv_lib_$ac_lib_var=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 eval "ac_cv_lib_$ac_lib_var=no"
5516 LIBS="$ac_save_LIBS"
5519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5523 cat >> confdefs.h <<EOF
5524 #define $ac_tr_lib 1
5530 echo "$ac_t""no" 1>&6
5537 echo $ac_n "checking for select""... $ac_c" 1>&6
5538 echo "configure:5539: checking for select" >&5
5539 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char select(); below. */
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5556 /* The GNU C library defines this for functions which it implements
5557 to always fail with ENOSYS. Some functions are actually named
5558 something starting with __ and the normal name is an alias. */
5559 #if defined (__stub_select) || defined (__stub___select)
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569 eval "ac_cv_func_select=yes"
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5574 eval "ac_cv_func_select=no"
5579 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5580 echo "$ac_t""yes" 1>&6
5583 echo "$ac_t""no" 1>&6
5584 { echo "configure: error: select() required." 1>&2; exit 1; }
5588 if test "${ac_cv_header_winsock_h}" != yes; then
5589 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5590 echo "configure:5591: checking types of arguments for select()" >&5
5591 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5601 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5602 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #ifdef HAVE_SYS_TYPES_H
5607 #include <sys/types.h>
5609 #ifdef HAVE_SYS_TIME_H
5610 #include <sys/time.h>
5612 #ifdef HAVE_SYS_SELECT_H
5613 #include <sys/select.h>
5615 #ifdef HAVE_SYS_SOCKET_H
5616 #include <sys/socket.h>
5618 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);
5623 if { (eval echo configure:5624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5625 ac_not_found=no ; break 3
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5642 if test "$ac_not_found" = yes; then
5643 ac_cv_func_select_arg1=int
5644 ac_cv_func_select_arg234='int *'
5645 ac_cv_func_select_arg5='struct timeval *'
5647 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5648 cat >> confdefs.h <<EOF
5649 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5652 cat >> confdefs.h <<EOF
5653 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5656 cat >> confdefs.h <<EOF
5657 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5664 for ac_hdr in regex.h
5666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_hdr" >&5
5669 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5678 { (eval echo configure:5679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5680 if test -z "$ac_err"; then
5682 eval "ac_cv_header_$ac_safe=yes"
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5688 eval "ac_cv_header_$ac_safe=no"
5692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5693 echo "$ac_t""yes" 1>&6
5694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5695 cat >> confdefs.h <<EOF
5696 #define $ac_tr_hdr 1
5700 echo "$ac_t""no" 1>&6
5704 if test "$ac_cv_header_regex_h" != yes ; then
5705 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5707 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5708 echo "configure:5709: checking for regfree" >&5
5709 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 /* System header to define __stub macros and hopefully few prototypes,
5716 which can conflict with char regfree(); below. */
5718 /* Override any gcc2 internal prototype to avoid an error. */
5719 /* We use char because int might match the return type of a gcc2
5720 builtin and then its argument prototype would still apply. */
5726 /* The GNU C library defines this for functions which it implements
5727 to always fail with ENOSYS. Some functions are actually named
5728 something starting with __ and the normal name is an alias. */
5729 #if defined (__stub_regfree) || defined (__stub___regfree)
5737 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5739 eval "ac_cv_func_regfree=yes"
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 eval "ac_cv_func_regfree=no"
5749 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5750 echo "$ac_t""yes" 1>&6
5753 echo "$ac_t""no" 1>&6
5754 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5759 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5760 echo "configure:5761: checking for compatible POSIX regex" >&5
5761 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5765 if test "$cross_compiling" = yes; then
5766 ol_cv_c_posix_regex=cross
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5772 #include <sys/types.h>
5774 static char *pattern, *string;
5782 if(regcomp(&re, pattern, 0)) {
5786 string = "ALL MATCH";
5788 rc = regexec(&re, string, 0, (void*)0, 0);
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5797 ol_cv_c_posix_regex=yes
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5802 ol_cv_c_posix_regex=no
5809 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5811 if test "$ol_cv_c_posix_regex" = no ; then
5812 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5816 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5817 echo "configure:5818: checking for res_query" >&5
5818 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5824 /* System header to define __stub macros and hopefully few prototypes,
5825 which can conflict with char res_query(); below. */
5827 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5835 /* The GNU C library defines this for functions which it implements
5836 to always fail with ENOSYS. Some functions are actually named
5837 something starting with __ and the normal name is an alias. */
5838 #if defined (__stub_res_query) || defined (__stub___res_query)
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 eval "ac_cv_func_res_query=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 eval "ac_cv_func_res_query=no"
5858 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5862 echo "$ac_t""no" 1>&6
5865 if test $ac_cv_func_res_query = no ; then
5866 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5867 echo "configure:5868: checking for __res_query" >&5
5868 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char __res_query(); below. */
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5885 /* The GNU C library defines this for functions which it implements
5886 to always fail with ENOSYS. Some functions are actually named
5887 something starting with __ and the normal name is an alias. */
5888 #if defined (__stub___res_query) || defined (__stub_____res_query)
5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5898 eval "ac_cv_func___res_query=yes"
5900 echo "configure: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5903 eval "ac_cv_func___res_query=no"
5908 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5909 echo "$ac_t""yes" 1>&6
5912 echo "$ac_t""no" 1>&6
5915 ac_cv_func_res_query=$ac_cv_func___res_query
5918 if test $ac_cv_func_res_query = no ; then
5919 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5920 echo "configure:5921: checking for res_query in -lbind" >&5
5921 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5922 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5925 ac_save_LIBS="$LIBS"
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5939 if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5941 eval "ac_cv_lib_$ac_lib_var=yes"
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5946 eval "ac_cv_lib_$ac_lib_var=no"
5949 LIBS="$ac_save_LIBS"
5952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5953 echo "$ac_t""yes" 1>&6
5954 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5955 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5956 cat >> confdefs.h <<EOF
5957 #define $ac_tr_lib 1
5963 echo "$ac_t""no" 1>&6
5966 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5969 if test $ac_cv_func_res_query = no ; then
5970 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5971 echo "configure:5972: checking for __res_query in -lbind" >&5
5972 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5973 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5976 ac_save_LIBS="$LIBS"
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 eval "ac_cv_lib_$ac_lib_var=yes"
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5997 eval "ac_cv_lib_$ac_lib_var=no"
6000 LIBS="$ac_save_LIBS"
6003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6005 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6007 cat >> confdefs.h <<EOF
6008 #define $ac_tr_lib 1
6014 echo "$ac_t""no" 1>&6
6017 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
6020 if test $ac_cv_func_res_query = no ; then
6021 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
6022 echo "configure:6023: checking for res_query in -lresolv" >&5
6023 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
6024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 ac_save_LIBS="$LIBS"
6028 LIBS="-lresolv $LIBS"
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 /* Override any gcc2 internal prototype to avoid an error. */
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6043 eval "ac_cv_lib_$ac_lib_var=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval "ac_cv_lib_$ac_lib_var=no"
6051 LIBS="$ac_save_LIBS"
6054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6058 cat >> confdefs.h <<EOF
6059 #define $ac_tr_lib 1
6062 LIBS="-lresolv $LIBS"
6065 echo "$ac_t""no" 1>&6
6068 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
6071 if test $ac_cv_func_res_query = no ; then
6072 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
6073 echo "configure:6074: checking for __res_query in -lresolv" >&5
6074 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
6075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6078 ac_save_LIBS="$LIBS"
6079 LIBS="-lresolv $LIBS"
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 /* Override any gcc2 internal prototype to avoid an error. */
6084 /* We use char because int might match the return type of a gcc2
6085 builtin and then its argument prototype would still apply. */
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 eval "ac_cv_lib_$ac_lib_var=yes"
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 eval "ac_cv_lib_$ac_lib_var=no"
6102 LIBS="$ac_save_LIBS"
6105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6109 cat >> confdefs.h <<EOF
6110 #define $ac_tr_lib 1
6113 LIBS="-lresolv $LIBS"
6116 echo "$ac_t""no" 1>&6
6119 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
6122 if test "$ac_cv_func_res_query" = yes ; then
6123 cat >> confdefs.h <<\EOF
6124 #define HAVE_RES_QUERY 1
6128 if test $ol_enable_dnssrv != no ; then
6133 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
6134 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
6137 for ac_func in getaddrinfo inet_ntop
6139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6140 echo "configure:6141: checking for $ac_func" >&5
6141 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147 /* System header to define __stub macros and hopefully few prototypes,
6148 which can conflict with char $ac_func(); below. */
6150 /* Override any gcc2 internal prototype to avoid an error. */
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6171 eval "ac_cv_func_$ac_func=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6176 eval "ac_cv_func_$ac_func=no"
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h <<EOF
6185 #define $ac_tr_func 1
6189 echo "$ac_t""no" 1>&6
6195 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6196 if test $ol_enable_ipv6 = yes ; then
6197 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6200 for ac_func in gai_strerror
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234 eval "ac_cv_func_$ac_func=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6239 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h <<EOF
6248 #define $ac_tr_func 1
6252 echo "$ac_t""no" 1>&6
6257 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6258 echo "configure:6259: checking INET6_ADDRSTRLEN" >&5
6259 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6263 cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6267 # include <netinet/in.h>
6268 # ifdef INET6_ADDRSTRLEN
6269 __has_inet6_addrstrlen__;
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6276 ol_cv_inet6_addrstrlen=yes
6279 ol_cv_inet6_addrstrlen=no
6285 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6287 if test $ol_cv_inet6_addrstrlen = yes ; then
6289 elif test $ol_enable_ipv6 = yes ; then
6290 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6294 if test $ol_enable_local != no ; then
6295 for ac_hdr in sys/un.h
6297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_hdr" >&5
6300 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6309 { (eval echo configure:6310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6311 if test -z "$ac_err"; then
6313 eval "ac_cv_header_$ac_safe=yes"
6316 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6319 eval "ac_cv_header_$ac_safe=no"
6323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6324 echo "$ac_t""yes" 1>&6
6325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6326 cat >> confdefs.h <<EOF
6327 #define $ac_tr_hdr 1
6331 echo "$ac_t""no" 1>&6
6336 if test $ol_enable_local = auto ; then
6337 ol_enable_local=$ac_cv_header_sys_un_h
6338 elif test $ac_cv_header_sys_un_h = no ; then
6339 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6348 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6349 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6350 -o $ol_with_kerberos = k425 ; then
6352 for ac_hdr in krb5.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
6393 if test $ac_cv_header_krb5_h = yes ; then
6394 for ac_hdr in heim_err.h
6396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6398 echo "configure:6399: checking for $ac_hdr" >&5
6399 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6400 echo $ac_n "(cached) $ac_c" 1>&6
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6408 { (eval echo configure:6409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6410 if test -z "$ac_err"; then
6412 eval "ac_cv_header_$ac_safe=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_header_$ac_safe=no"
6422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6425 cat >> confdefs.h <<EOF
6426 #define $ac_tr_hdr 1
6430 echo "$ac_t""no" 1>&6
6434 if test $ac_cv_header_heim_err_h = yes ; then
6440 if test $krb5_impl = mit; then
6441 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
6442 echo "configure:6443: checking for main in -lk5crypto" >&5
6443 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
6444 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 ac_save_LIBS="$LIBS"
6448 LIBS="-lk5crypto $LIBS"
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6459 eval "ac_cv_lib_$ac_lib_var=yes"
6461 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6464 eval "ac_cv_lib_$ac_lib_var=no"
6467 LIBS="$ac_save_LIBS"
6470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6474 echo "$ac_t""no" 1>&6
6479 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6480 echo "configure:6481: checking for main in -lkrb5" >&5
6481 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 ac_save_LIBS="$LIBS"
6486 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_lib_$ac_lib_var=no"
6505 LIBS="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6511 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6513 echo "$ac_t""no" 1>&6
6518 elif test $krb5_impl = heimdal; then
6519 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6520 echo "configure:6521: checking for main in -lkrb5" >&5
6521 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6522 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 ac_save_LIBS="$LIBS"
6526 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6535 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6537 eval "ac_cv_lib_$ac_lib_var=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_lib_$ac_lib_var=no"
6545 LIBS="$ac_save_LIBS"
6548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6549 echo "$ac_t""yes" 1>&6
6551 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6553 echo "$ac_t""no" 1>&6
6558 cat >> confdefs.h <<\EOF
6559 #define HAVE_HEIMDAL_KERBEROS 1
6565 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6568 if test $have_krb5 = yes ; then
6571 cat >> confdefs.h <<\EOF
6576 if test $ol_enable_kpasswd != no ; then
6577 ol_link_kpasswd=yes;
6580 if test $ol_with_kerberos = k5only ; then
6581 ol_with_kerberos=found
6584 elif test $ol_with_kerberos != auto ; then
6585 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6591 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6592 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6594 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6598 echo "configure:6599: checking for $ac_hdr" >&5
6599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6602 cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure"
6604 #include "confdefs.h"
6607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6608 { (eval echo configure:6609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6610 if test -z "$ac_err"; then
6612 eval "ac_cv_header_$ac_safe=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6618 eval "ac_cv_header_$ac_safe=no"
6622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6625 cat >> confdefs.h <<EOF
6626 #define $ac_tr_hdr 1
6630 echo "$ac_t""no" 1>&6
6635 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6636 if test $krb5_impl = mit; then
6637 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6638 echo "configure:6639: checking for main in -lkrb4" >&5
6639 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6643 ac_save_LIBS="$LIBS"
6644 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6655 eval "ac_cv_lib_$ac_lib_var=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 eval "ac_cv_lib_$ac_lib_var=no"
6663 LIBS="$ac_save_LIBS"
6666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6667 echo "$ac_t""yes" 1>&6
6669 KRB4_LIBS="-lkrb4 -ldes425"
6671 echo "$ac_t""no" 1>&6
6676 elif test $krb5_impl = heimdal; then
6677 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6678 echo "configure:6679: checking for main in -lkrb4" >&5
6679 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 ac_save_LIBS="$LIBS"
6684 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 eval "ac_cv_lib_$ac_lib_var=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 eval "ac_cv_lib_$ac_lib_var=no"
6703 LIBS="$ac_save_LIBS"
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6711 echo "$ac_t""no" 1>&6
6718 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6721 if test $have_k425 = yes ; then
6722 ol_with_kerberos=found
6725 cat >> confdefs.h <<\EOF
6726 #define HAVE_KRB425 1
6729 cat >> confdefs.h <<\EOF
6734 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6735 echo "configure:6736: checking for des_debug in Kerberos libraries" >&5
6736 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6741 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6746 #include <kerberosIV/krb.h>
6747 #include <kerberosIV/des.h>
6748 extern int des_debug;
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 ol_cv_var_des_debug=yes
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 ol_cv_var_des_debug=no
6770 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6772 if test $ol_cv_var_des_debug = yes ; then
6773 cat >> confdefs.h <<\EOF
6774 #define HAVE_DES_DEBUG 1
6784 if test $ol_link_krb5 = yes ; then
6785 ol_with_kerberos=found
6788 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6789 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6791 for ac_hdr in krb.h des.h krb-archaeology.h
6793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6795 echo "configure:6796: checking for $ac_hdr" >&5
6796 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6807 if test -z "$ac_err"; then
6809 eval "ac_cv_header_$ac_safe=yes"
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 eval "ac_cv_header_$ac_safe=no"
6819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6822 cat >> confdefs.h <<EOF
6823 #define $ac_tr_hdr 1
6827 echo "$ac_t""no" 1>&6
6832 if test $ac_cv_header_krb_h = yes ; then
6833 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6834 echo "configure:6835: checking for main in -lkrb" >&5
6835 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6836 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6839 ac_save_LIBS="$LIBS"
6840 LIBS="-lkrb -ldes $LIBS"
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6851 eval "ac_cv_lib_$ac_lib_var=yes"
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 eval "ac_cv_lib_$ac_lib_var=no"
6859 LIBS="$ac_save_LIBS"
6862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6866 echo "$ac_t""no" 1>&6
6871 if test $have_k4 = yes ; then
6872 ol_with_kerberos=found
6875 cat >> confdefs.h <<\EOF
6880 KRB4_LIBS="-lkrb -ldes"
6882 if test $ac_cv_header_krb_archaeology_h = yes ; then
6883 cat >> confdefs.h <<\EOF
6884 #define HAVE_KTH_KERBEROS 1
6892 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6896 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6899 elif test $ol_enable_kbind = yes ; then
6900 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6903 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6904 cat >> confdefs.h <<\EOF
6905 #define HAVE_KERBEROS 1
6909 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6910 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6914 if test $ol_with_tls != no ; then
6915 for ac_hdr in openssl/ssl.h ssl.h
6917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6919 echo "configure:6920: checking for $ac_hdr" >&5
6920 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6929 { (eval echo configure:6930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6931 if test -z "$ac_err"; then
6933 eval "ac_cv_header_$ac_safe=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_header_$ac_safe=no"
6943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6944 echo "$ac_t""yes" 1>&6
6945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6946 cat >> confdefs.h <<EOF
6947 #define $ac_tr_hdr 1
6951 echo "$ac_t""no" 1>&6
6956 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6957 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6958 echo "configure:6959: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6959 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6963 ac_save_LIBS="$LIBS"
6964 LIBS="-lssl -lcrypto $LIBS"
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* Override any gcc2 internal prototype to avoid an error. */
6969 /* We use char because int might match the return type of a gcc2
6970 builtin and then its argument prototype would still apply. */
6971 char SSLeay_add_ssl_algorithms();
6974 SSLeay_add_ssl_algorithms()
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6979 eval "ac_cv_lib_$ac_lib_var=yes"
6981 echo "configure: failed program was:" >&5
6982 cat conftest.$ac_ext >&5
6984 eval "ac_cv_lib_$ac_lib_var=no"
6987 LIBS="$ac_save_LIBS"
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6991 echo "$ac_t""yes" 1>&6
6995 echo "$ac_t""no" 1>&6
7000 if test $have_ssleay = no ; then
7001 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7002 echo "configure:7003: checking for SSL_library_init in -lssl" >&5
7003 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
7004 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 ac_save_LIBS="$LIBS"
7008 LIBS="-lssl -lcrypto $LIBS"
7009 cat > conftest.$ac_ext <<EOF
7010 #line 7011 "configure"
7011 #include "confdefs.h"
7012 /* Override any gcc2 internal prototype to avoid an error. */
7013 /* We use char because int might match the return type of a gcc2
7014 builtin and then its argument prototype would still apply. */
7015 char SSL_library_init();
7021 if { (eval echo configure:7022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7023 eval "ac_cv_lib_$ac_lib_var=yes"
7025 echo "configure: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7028 eval "ac_cv_lib_$ac_lib_var=no"
7031 LIBS="$ac_save_LIBS"
7034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7035 echo "$ac_t""yes" 1>&6
7039 echo "$ac_t""no" 1>&6
7045 if test $have_ssleay = no ; then
7046 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
7047 echo "configure:7048: checking for ssl3_accept in -lssl" >&5
7048 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
7049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 ac_save_LIBS="$LIBS"
7053 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 /* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 eval "ac_cv_lib_$ac_lib_var=yes"
7070 echo "configure: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7073 eval "ac_cv_lib_$ac_lib_var=no"
7076 LIBS="$ac_save_LIBS"
7079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7084 echo "$ac_t""no" 1>&6
7090 if test $have_ssleay = yes ; then
7094 cat >> confdefs.h <<\EOF
7095 #define HAVE_SSLEAY 1
7099 if test $need_rsaref = yes; then
7100 cat >> confdefs.h <<\EOF
7101 #define HAVE_RSAREF 1
7105 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
7107 TLS_LIBS="-lssl -lcrypto"
7113 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7116 if test $ol_link_tls = yes ; then
7117 cat >> confdefs.h <<\EOF
7122 elif test $ol_with_tls = auto ; then
7123 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
7124 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7126 elif test $ol_with_tls != no ; then
7127 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
7130 if test $ol_enable_lmpasswd != no; then
7131 if test $ol_link_tls != yes ; then
7132 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
7135 cat >> confdefs.h <<\EOF
7136 #define SLAPD_LMHASH 1
7143 gethostbyname_r gethostbyaddr_r \
7146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7147 echo "configure:7148: checking for $ac_func" >&5
7148 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 /* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char $ac_func(); below. */
7157 /* Override any gcc2 internal prototype to avoid an error. */
7158 /* We use char because int might match the return type of a gcc2
7159 builtin and then its argument prototype would still apply. */
7165 /* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 if { (eval echo configure:7177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7178 eval "ac_cv_func_$ac_func=yes"
7180 echo "configure: failed program was:" >&5
7181 cat conftest.$ac_ext >&5
7183 eval "ac_cv_func_$ac_func=no"
7188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7189 echo "$ac_t""yes" 1>&6
7190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7191 cat >> confdefs.h <<EOF
7192 #define $ac_tr_func 1
7196 echo "$ac_t""no" 1>&6
7201 if test "$ac_cv_func_ctime_r" = no ; then
7202 ol_cv_func_ctime_r_nargs=0
7204 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7205 echo "configure:7206: checking number of arguments of ctime_r" >&5
7206 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7214 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7217 if { (eval echo configure:7218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7219 ol_cv_func_ctime_r_nargs3=yes
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 ol_cv_func_ctime_r_nargs3=no
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7233 time_t ti; char *buffer; ctime_r(&ti,buffer);
7236 if { (eval echo configure:7237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7238 ol_cv_func_ctime_r_nargs2=yes
7240 echo "configure: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7243 ol_cv_func_ctime_r_nargs2=no
7247 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7248 $ol_cv_func_ctime_r_nargs2 = no ; then
7250 ol_cv_func_ctime_r_nargs=3
7252 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7253 $ol_cv_func_ctime_r_nargs2 = yes ; then
7255 ol_cv_func_ctime_r_nargs=2
7258 ol_cv_func_ctime_r_nargs=0
7263 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7265 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7266 cat >> confdefs.h <<EOF
7267 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7274 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7275 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7276 echo "configure:7277: checking number of arguments of gethostbyname_r" >&5
7277 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7278 echo $ac_n "(cached) $ac_c" 1>&6
7280 cat > conftest.$ac_ext <<EOF
7281 #line 7282 "configure"
7282 #include "confdefs.h"
7283 #include <sys/types.h>
7284 #include <sys/socket.h>
7285 #include <netinet/in.h>
7287 #define BUFSIZE (sizeof(struct hostent)+10)
7289 struct hostent hent; char buffer[BUFSIZE];
7290 int bufsize=BUFSIZE;int h_errno;
7291 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7292 buffer, bufsize, &h_errno);
7295 if { (eval echo configure:7296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7297 ol_cv_func_gethostbyname_r_nargs5=yes
7299 echo "configure: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7302 ol_cv_func_gethostbyname_r_nargs5=no
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 #include <sys/types.h>
7310 #include <sys/socket.h>
7311 #include <netinet/in.h>
7313 #define BUFSIZE (sizeof(struct hostent)+10)
7315 struct hostent hent;struct hostent *rhent;
7316 char buffer[BUFSIZE];
7317 int bufsize=BUFSIZE;int h_errno;
7318 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7322 if { (eval echo configure:7323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7324 ol_cv_func_gethostbyname_r_nargs6=yes
7326 echo "configure: failed program was:" >&5
7327 cat conftest.$ac_ext >&5
7329 ol_cv_func_gethostbyname_r_nargs6=no
7333 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7334 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7336 ol_cv_func_gethostbyname_r_nargs=5
7338 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7339 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7341 ol_cv_func_gethostbyname_r_nargs=6
7344 ol_cv_func_gethostbyname_r_nargs=0
7349 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7350 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7351 cat >> confdefs.h <<EOF
7352 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7358 ol_cv_func_gethostbyname_r_nargs=0
7361 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7362 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7363 echo "configure:7364: checking number of arguments of gethostbyaddr_r" >&5
7364 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 #include <sys/types.h>
7371 #include <sys/socket.h>
7372 #include <netinet/in.h>
7374 #define BUFSIZE (sizeof(struct hostent)+10)
7376 struct hostent hent; char buffer[BUFSIZE];
7378 size_t alen=sizeof(struct in_addr);
7379 int bufsize=BUFSIZE;int h_errno;
7380 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7381 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7384 if { (eval echo configure:7385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7386 ol_cv_func_gethostbyaddr_r_nargs7=yes
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7391 ol_cv_func_gethostbyaddr_r_nargs7=no
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 #include <sys/types.h>
7399 #include <sys/socket.h>
7400 #include <netinet/in.h>
7402 #define BUFSIZE (sizeof(struct hostent)+10)
7404 struct hostent hent;
7405 struct hostent *rhent; char buffer[BUFSIZE];
7407 size_t alen=sizeof(struct in_addr);
7408 int bufsize=BUFSIZE;int h_errno;
7409 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7410 alen, AF_INET, &hent, buffer, bufsize,
7414 if { (eval echo configure:7415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7416 ol_cv_func_gethostbyaddr_r_nargs8=yes
7418 echo "configure: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7421 ol_cv_func_gethostbyaddr_r_nargs8=no
7425 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7426 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7428 ol_cv_func_gethostbyaddr_r_nargs=7
7430 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7431 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7433 ol_cv_func_gethostbyaddr_r_nargs=8
7436 ol_cv_func_gethostbyaddr_r_nargs=0
7441 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7442 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7443 cat >> confdefs.h <<EOF
7444 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7450 ol_cv_func_gethostbyaddr_r_nargs=0
7453 if test "$ac_cv_func_ctime_r" = yes \
7454 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7455 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7456 -a "$ac_cv_func_gethostbyname_r" = yes \
7457 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7458 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7459 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7460 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7461 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7464 cat >> confdefs.h <<\EOF
7465 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7472 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7473 -o $ol_with_threads = nt ; then
7476 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7477 echo "configure:7478: checking for _beginthread" >&5
7478 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char _beginthread(); below. */
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7490 char _beginthread();
7495 /* The GNU C library defines this for functions which it implements
7496 to always fail with ENOSYS. Some functions are actually named
7497 something starting with __ and the normal name is an alias. */
7498 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7506 if { (eval echo configure:7507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7508 eval "ac_cv_func__beginthread=yes"
7510 echo "configure: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7513 eval "ac_cv_func__beginthread=no"
7518 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7519 echo "$ac_t""yes" 1>&6
7522 echo "$ac_t""no" 1>&6
7526 if test $ac_cv_func__beginthread = yes ; then
7527 cat >> confdefs.h <<\EOF
7528 #define HAVE_NT_THREADS 1
7534 if test "$ol_cv_nt_threads" = yes ; then
7536 ol_with_threads=found
7537 ol_with_yielding_select=yes
7539 cat >> confdefs.h <<\EOF
7540 #define HAVE_NT_SERVICE_MANAGER 1
7543 cat >> confdefs.h <<\EOF
7544 #define HAVE_NT_EVENT_LOG 1
7549 if test $ol_with_threads = nt ; then
7550 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7554 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7555 -o $ol_with_threads = posix ; then
7557 for ac_hdr in pthread.h
7559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_hdr" >&5
7562 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7571 { (eval echo configure:7572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7573 if test -z "$ac_err"; then
7575 eval "ac_cv_header_$ac_safe=yes"
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7581 eval "ac_cv_header_$ac_safe=no"
7585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7588 cat >> confdefs.h <<EOF
7589 #define $ac_tr_hdr 1
7593 echo "$ac_t""no" 1>&6
7598 if test $ac_cv_header_pthread_h = yes ; then
7599 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7600 echo "configure:7601: checking POSIX thread version" >&5
7601 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7609 # include <pthread.h>
7610 /* this check could be improved */
7611 # ifdef PTHREAD_ONCE_INIT
7612 pthread_version_final;
7616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7617 egrep "pthread_version_final" >/dev/null 2>&1; then
7619 ol_pthread_final=yes
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7631 # include <pthread.h>
7632 /* this check could be improved */
7633 # ifdef pthread_once_init
7634 pthread_version_draft4;
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7641 ol_pthread_draft4=yes
7644 ol_pthread_draft4=no
7649 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7650 ol_cv_pthread_version=final
7651 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7652 ol_cv_pthread_version=draft4
7654 ol_cv_pthread_version=unknown
7659 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7662 if test $ol_cv_pthread_version = final ; then
7663 cat >> confdefs.h <<\EOF
7664 #define HAVE_PTHREADS_FINAL 1
7667 elif test $ol_cv_pthread_version = draft4 ; then
7668 cat >> confdefs.h <<\EOF
7669 #define HAVE_PTHREADS_D4 1
7673 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7676 # consider threads found
7677 ol_with_threads=found
7680 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7681 echo "configure:7682: checking for LinuxThreads pthread.h" >&5
7682 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 #include <pthread.h>
7690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7691 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7693 ol_cv_header_linux_threads=yes
7696 ol_cv_header_linux_threads=no
7703 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7704 if test $ol_cv_header_linux_threads = yes; then
7705 cat >> confdefs.h <<\EOF
7706 #define HAVE_LINUX_THREADS 1
7712 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7713 echo "configure:7714: checking for GNU Pth pthread.h" >&5
7714 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7715 echo $ac_n "(cached) $ac_c" 1>&6
7717 cat > conftest.$ac_ext <<EOF
7718 #line 7719 "configure"
7719 #include "confdefs.h"
7720 #include <pthread.h>
7721 #ifdef _POSIX_THREAD_IS_GNU_PTH
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 egrep "__gnu_pth__" >/dev/null 2>&1; then
7729 ol_cv_header_gnu_pth_pthread_h=yes
7732 ol_cv_header_gnu_pth_pthread_h=no
7739 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7742 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7743 for ac_hdr in sched.h
7745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7747 echo "configure:7748: checking for $ac_hdr" >&5
7748 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7749 echo $ac_n "(cached) $ac_c" 1>&6
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7757 { (eval echo configure:7758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7759 if test -z "$ac_err"; then
7761 eval "ac_cv_header_$ac_safe=yes"
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 eval "ac_cv_header_$ac_safe=no"
7771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7774 cat >> confdefs.h <<EOF
7775 #define $ac_tr_hdr 1
7779 echo "$ac_t""no" 1>&6
7786 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7787 echo "configure:7788: checking for pthread_create in default libraries" >&5
7788 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7792 if test "$cross_compiling" = yes; then
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* pthread test headers */
7797 #include <pthread.h>
7799 #define NULL (void*)0
7802 static void *task(p)
7805 return (void *) (p == NULL);
7810 /* pthread test function */
7815 #ifdef HAVE_PTHREADS_FINAL
7816 /* Final pthreads */
7817 pthread_attr_t attr;
7819 status = pthread_attr_init(&attr);
7820 if( status ) return status;
7822 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7824 #if defined( PTHREAD_CREATE_JOINABLE )
7825 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7827 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7830 #ifdef PTHREAD_CREATE_DETACHED
7832 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7835 if( status ) return status;
7838 status = pthread_create( &t, &attr, task, NULL );
7839 if( status ) return status;
7841 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7843 /* give thread a chance to complete */
7844 /* it should remain joinable and hence detachable */
7847 status = pthread_detach( t );
7848 if( status ) return status;
7853 /* Draft 4 pthreads */
7854 status = pthread_create( &t, pthread_attr_default, task, NULL );
7855 if( status ) return status;
7858 /* give thread a chance to complete */
7859 /* it should remain joinable and hence detachable */
7862 status = pthread_detach( &t );
7863 if( status ) return status;
7867 #ifdef HAVE_LINUX_THREADS
7868 pthread_kill_other_threads_np();
7875 if { (eval echo configure:7876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877 ol_cv_pthread_create=yes
7879 echo "configure: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7882 ol_cv_pthread_create=no
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7889 /* pthread test headers */
7890 #include <pthread.h>
7892 #define NULL (void*)0
7895 static void *task(p)
7898 return (void *) (p == NULL);
7902 int main(argc, argv)
7907 /* pthread test function */
7912 #ifdef HAVE_PTHREADS_FINAL
7913 /* Final pthreads */
7914 pthread_attr_t attr;
7916 status = pthread_attr_init(&attr);
7917 if( status ) return status;
7919 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7921 #if defined( PTHREAD_CREATE_JOINABLE )
7922 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7924 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7927 #ifdef PTHREAD_CREATE_DETACHED
7929 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7932 if( status ) return status;
7935 status = pthread_create( &t, &attr, task, NULL );
7936 if( status ) return status;
7938 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7940 /* give thread a chance to complete */
7941 /* it should remain joinable and hence detachable */
7944 status = pthread_detach( t );
7945 if( status ) return status;
7950 /* Draft 4 pthreads */
7951 status = pthread_create( &t, pthread_attr_default, task, NULL );
7952 if( status ) return status;
7955 /* give thread a chance to complete */
7956 /* it should remain joinable and hence detachable */
7959 status = pthread_detach( &t );
7960 if( status ) return status;
7964 #ifdef HAVE_LINUX_THREADS
7965 pthread_kill_other_threads_np();
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7975 ol_cv_pthread_create=yes
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 ol_cv_pthread_create=no
7987 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7989 if test $ol_cv_pthread_create != no ; then
7990 ol_link_threads=posix
7994 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7995 if test "$ol_link_threads" = no ; then
7997 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7998 echo "configure:7999: checking for pthread link with -kthread" >&5
7999 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8005 LIBS="-kthread $LIBS"
8007 if test "$cross_compiling" = yes; then
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* pthread test headers */
8012 #include <pthread.h>
8014 #define NULL (void*)0
8017 static void *task(p)
8020 return (void *) (p == NULL);
8025 /* pthread test function */
8030 #ifdef HAVE_PTHREADS_FINAL
8031 /* Final pthreads */
8032 pthread_attr_t attr;
8034 status = pthread_attr_init(&attr);
8035 if( status ) return status;
8037 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8039 #if defined( PTHREAD_CREATE_JOINABLE )
8040 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8042 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8045 #ifdef PTHREAD_CREATE_DETACHED
8047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8050 if( status ) return status;
8053 status = pthread_create( &t, &attr, task, NULL );
8054 if( status ) return status;
8056 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8058 /* give thread a chance to complete */
8059 /* it should remain joinable and hence detachable */
8062 status = pthread_detach( t );
8063 if( status ) return status;
8068 /* Draft 4 pthreads */
8069 status = pthread_create( &t, pthread_attr_default, task, NULL );
8070 if( status ) return status;
8073 /* give thread a chance to complete */
8074 /* it should remain joinable and hence detachable */
8077 status = pthread_detach( &t );
8078 if( status ) return status;
8082 #ifdef HAVE_LINUX_THREADS
8083 pthread_kill_other_threads_np();
8090 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8092 ol_cv_pthread_kthread=yes
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8097 ol_cv_pthread_kthread=no
8101 cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8104 /* pthread test headers */
8105 #include <pthread.h>
8107 #define NULL (void*)0
8110 static void *task(p)
8113 return (void *) (p == NULL);
8117 int main(argc, argv)
8122 /* pthread test function */
8127 #ifdef HAVE_PTHREADS_FINAL
8128 /* Final pthreads */
8129 pthread_attr_t attr;
8131 status = pthread_attr_init(&attr);
8132 if( status ) return status;
8134 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8136 #if defined( PTHREAD_CREATE_JOINABLE )
8137 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8139 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8142 #ifdef PTHREAD_CREATE_DETACHED
8144 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8147 if( status ) return status;
8150 status = pthread_create( &t, &attr, task, NULL );
8151 if( status ) return status;
8153 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8155 /* give thread a chance to complete */
8156 /* it should remain joinable and hence detachable */
8159 status = pthread_detach( t );
8160 if( status ) return status;
8165 /* Draft 4 pthreads */
8166 status = pthread_create( &t, pthread_attr_default, task, NULL );
8167 if( status ) return status;
8170 /* give thread a chance to complete */
8171 /* it should remain joinable and hence detachable */
8174 status = pthread_detach( &t );
8175 if( status ) return status;
8179 #ifdef HAVE_LINUX_THREADS
8180 pthread_kill_other_threads_np();
8188 if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8190 ol_cv_pthread_kthread=yes
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8195 ol_cv_pthread_kthread=no
8206 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8208 if test $ol_cv_pthread_kthread = yes ; then
8209 ol_link_pthreads="-kthread"
8210 ol_link_threads=posix
8214 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8215 if test "$ol_link_threads" = no ; then
8217 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8218 echo "configure:8219: checking for pthread link with -pthread" >&5
8219 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8220 echo $ac_n "(cached) $ac_c" 1>&6
8225 LIBS="-pthread $LIBS"
8227 if test "$cross_compiling" = yes; then
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* pthread test headers */
8232 #include <pthread.h>
8234 #define NULL (void*)0
8237 static void *task(p)
8240 return (void *) (p == NULL);
8245 /* pthread test function */
8250 #ifdef HAVE_PTHREADS_FINAL
8251 /* Final pthreads */
8252 pthread_attr_t attr;
8254 status = pthread_attr_init(&attr);
8255 if( status ) return status;
8257 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8259 #if defined( PTHREAD_CREATE_JOINABLE )
8260 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8262 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8265 #ifdef PTHREAD_CREATE_DETACHED
8267 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8270 if( status ) return status;
8273 status = pthread_create( &t, &attr, task, NULL );
8274 if( status ) return status;
8276 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8278 /* give thread a chance to complete */
8279 /* it should remain joinable and hence detachable */
8282 status = pthread_detach( t );
8283 if( status ) return status;
8288 /* Draft 4 pthreads */
8289 status = pthread_create( &t, pthread_attr_default, task, NULL );
8290 if( status ) return status;
8293 /* give thread a chance to complete */
8294 /* it should remain joinable and hence detachable */
8297 status = pthread_detach( &t );
8298 if( status ) return status;
8302 #ifdef HAVE_LINUX_THREADS
8303 pthread_kill_other_threads_np();
8310 if { (eval echo configure:8311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8312 ol_cv_pthread_pthread=yes
8314 echo "configure: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8317 ol_cv_pthread_pthread=no
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* pthread test headers */
8325 #include <pthread.h>
8327 #define NULL (void*)0
8330 static void *task(p)
8333 return (void *) (p == NULL);
8337 int main(argc, argv)
8342 /* pthread test function */
8347 #ifdef HAVE_PTHREADS_FINAL
8348 /* Final pthreads */
8349 pthread_attr_t attr;
8351 status = pthread_attr_init(&attr);
8352 if( status ) return status;
8354 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8356 #if defined( PTHREAD_CREATE_JOINABLE )
8357 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8359 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8362 #ifdef PTHREAD_CREATE_DETACHED
8364 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8367 if( status ) return status;
8370 status = pthread_create( &t, &attr, task, NULL );
8371 if( status ) return status;
8373 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8375 /* give thread a chance to complete */
8376 /* it should remain joinable and hence detachable */
8379 status = pthread_detach( t );
8380 if( status ) return status;
8385 /* Draft 4 pthreads */
8386 status = pthread_create( &t, pthread_attr_default, task, NULL );
8387 if( status ) return status;
8390 /* give thread a chance to complete */
8391 /* it should remain joinable and hence detachable */
8394 status = pthread_detach( &t );
8395 if( status ) return status;
8399 #ifdef HAVE_LINUX_THREADS
8400 pthread_kill_other_threads_np();
8408 if { (eval echo configure:8409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8410 ol_cv_pthread_pthread=yes
8412 echo "configure: failed program was:" >&5
8413 cat conftest.$ac_ext >&5
8415 ol_cv_pthread_pthread=no
8426 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8428 if test $ol_cv_pthread_pthread = yes ; then
8429 ol_link_pthreads="-pthread"
8430 ol_link_threads=posix
8434 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8435 if test "$ol_link_threads" = no ; then
8437 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8438 echo "configure:8439: checking for pthread link with -pthreads" >&5
8439 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8445 LIBS="-pthreads $LIBS"
8447 if test "$cross_compiling" = yes; then
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* pthread test headers */
8452 #include <pthread.h>
8454 #define NULL (void*)0
8457 static void *task(p)
8460 return (void *) (p == NULL);
8465 /* pthread test function */
8470 #ifdef HAVE_PTHREADS_FINAL
8471 /* Final pthreads */
8472 pthread_attr_t attr;
8474 status = pthread_attr_init(&attr);
8475 if( status ) return status;
8477 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8479 #if defined( PTHREAD_CREATE_JOINABLE )
8480 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8482 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8485 #ifdef PTHREAD_CREATE_DETACHED
8487 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8490 if( status ) return status;
8493 status = pthread_create( &t, &attr, task, NULL );
8494 if( status ) return status;
8496 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8498 /* give thread a chance to complete */
8499 /* it should remain joinable and hence detachable */
8502 status = pthread_detach( t );
8503 if( status ) return status;
8508 /* Draft 4 pthreads */
8509 status = pthread_create( &t, pthread_attr_default, task, NULL );
8510 if( status ) return status;
8513 /* give thread a chance to complete */
8514 /* it should remain joinable and hence detachable */
8517 status = pthread_detach( &t );
8518 if( status ) return status;
8522 #ifdef HAVE_LINUX_THREADS
8523 pthread_kill_other_threads_np();
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8532 ol_cv_pthread_pthreads=yes
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8537 ol_cv_pthread_pthreads=no
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* pthread test headers */
8545 #include <pthread.h>
8547 #define NULL (void*)0
8550 static void *task(p)
8553 return (void *) (p == NULL);
8557 int main(argc, argv)
8562 /* pthread test function */
8567 #ifdef HAVE_PTHREADS_FINAL
8568 /* Final pthreads */
8569 pthread_attr_t attr;
8571 status = pthread_attr_init(&attr);
8572 if( status ) return status;
8574 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8576 #if defined( PTHREAD_CREATE_JOINABLE )
8577 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8579 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8582 #ifdef PTHREAD_CREATE_DETACHED
8584 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8587 if( status ) return status;
8590 status = pthread_create( &t, &attr, task, NULL );
8591 if( status ) return status;
8593 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8595 /* give thread a chance to complete */
8596 /* it should remain joinable and hence detachable */
8599 status = pthread_detach( t );
8600 if( status ) return status;
8605 /* Draft 4 pthreads */
8606 status = pthread_create( &t, pthread_attr_default, task, NULL );
8607 if( status ) return status;
8610 /* give thread a chance to complete */
8611 /* it should remain joinable and hence detachable */
8614 status = pthread_detach( &t );
8615 if( status ) return status;
8619 #ifdef HAVE_LINUX_THREADS
8620 pthread_kill_other_threads_np();
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8630 ol_cv_pthread_pthreads=yes
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 ol_cv_pthread_pthreads=no
8646 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8648 if test $ol_cv_pthread_pthreads = yes ; then
8649 ol_link_pthreads="-pthreads"
8650 ol_link_threads=posix
8654 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8655 if test "$ol_link_threads" = no ; then
8657 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8658 echo "configure:8659: checking for pthread link with -mthreads" >&5
8659 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8665 LIBS="-mthreads $LIBS"
8667 if test "$cross_compiling" = yes; then
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 /* pthread test headers */
8672 #include <pthread.h>
8674 #define NULL (void*)0
8677 static void *task(p)
8680 return (void *) (p == NULL);
8685 /* pthread test function */
8690 #ifdef HAVE_PTHREADS_FINAL
8691 /* Final pthreads */
8692 pthread_attr_t attr;
8694 status = pthread_attr_init(&attr);
8695 if( status ) return status;
8697 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8699 #if defined( PTHREAD_CREATE_JOINABLE )
8700 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8702 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8705 #ifdef PTHREAD_CREATE_DETACHED
8707 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8710 if( status ) return status;
8713 status = pthread_create( &t, &attr, task, NULL );
8714 if( status ) return status;
8716 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8718 /* give thread a chance to complete */
8719 /* it should remain joinable and hence detachable */
8722 status = pthread_detach( t );
8723 if( status ) return status;
8728 /* Draft 4 pthreads */
8729 status = pthread_create( &t, pthread_attr_default, task, NULL );
8730 if( status ) return status;
8733 /* give thread a chance to complete */
8734 /* it should remain joinable and hence detachable */
8737 status = pthread_detach( &t );
8738 if( status ) return status;
8742 #ifdef HAVE_LINUX_THREADS
8743 pthread_kill_other_threads_np();
8750 if { (eval echo configure:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8752 ol_cv_pthread_mthreads=yes
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8757 ol_cv_pthread_mthreads=no
8761 cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 /* pthread test headers */
8765 #include <pthread.h>
8767 #define NULL (void*)0
8770 static void *task(p)
8773 return (void *) (p == NULL);
8777 int main(argc, argv)
8782 /* pthread test function */
8787 #ifdef HAVE_PTHREADS_FINAL
8788 /* Final pthreads */
8789 pthread_attr_t attr;
8791 status = pthread_attr_init(&attr);
8792 if( status ) return status;
8794 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8796 #if defined( PTHREAD_CREATE_JOINABLE )
8797 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8799 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8802 #ifdef PTHREAD_CREATE_DETACHED
8804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8807 if( status ) return status;
8810 status = pthread_create( &t, &attr, task, NULL );
8811 if( status ) return status;
8813 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8815 /* give thread a chance to complete */
8816 /* it should remain joinable and hence detachable */
8819 status = pthread_detach( t );
8820 if( status ) return status;
8825 /* Draft 4 pthreads */
8826 status = pthread_create( &t, pthread_attr_default, task, NULL );
8827 if( status ) return status;
8830 /* give thread a chance to complete */
8831 /* it should remain joinable and hence detachable */
8834 status = pthread_detach( &t );
8835 if( status ) return status;
8839 #ifdef HAVE_LINUX_THREADS
8840 pthread_kill_other_threads_np();
8848 if { (eval echo configure:8849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8850 ol_cv_pthread_mthreads=yes
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8855 ol_cv_pthread_mthreads=no
8866 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8868 if test $ol_cv_pthread_mthreads = yes ; then
8869 ol_link_pthreads="-mthreads"
8870 ol_link_threads=posix
8874 # Pthread try link: -thread (ol_cv_pthread_thread)
8875 if test "$ol_link_threads" = no ; then
8877 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8878 echo "configure:8879: checking for pthread link with -thread" >&5
8879 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8880 echo $ac_n "(cached) $ac_c" 1>&6
8885 LIBS="-thread $LIBS"
8887 if test "$cross_compiling" = yes; then
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 /* pthread test headers */
8892 #include <pthread.h>
8894 #define NULL (void*)0
8897 static void *task(p)
8900 return (void *) (p == NULL);
8905 /* pthread test function */
8910 #ifdef HAVE_PTHREADS_FINAL
8911 /* Final pthreads */
8912 pthread_attr_t attr;
8914 status = pthread_attr_init(&attr);
8915 if( status ) return status;
8917 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8919 #if defined( PTHREAD_CREATE_JOINABLE )
8920 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8922 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8925 #ifdef PTHREAD_CREATE_DETACHED
8927 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8930 if( status ) return status;
8933 status = pthread_create( &t, &attr, task, NULL );
8934 if( status ) return status;
8936 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8938 /* give thread a chance to complete */
8939 /* it should remain joinable and hence detachable */
8942 status = pthread_detach( t );
8943 if( status ) return status;
8948 /* Draft 4 pthreads */
8949 status = pthread_create( &t, pthread_attr_default, task, NULL );
8950 if( status ) return status;
8953 /* give thread a chance to complete */
8954 /* it should remain joinable and hence detachable */
8957 status = pthread_detach( &t );
8958 if( status ) return status;
8962 #ifdef HAVE_LINUX_THREADS
8963 pthread_kill_other_threads_np();
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8972 ol_cv_pthread_thread=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 ol_cv_pthread_thread=no
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* pthread test headers */
8985 #include <pthread.h>
8987 #define NULL (void*)0
8990 static void *task(p)
8993 return (void *) (p == NULL);
8997 int main(argc, argv)
9002 /* pthread test function */
9007 #ifdef HAVE_PTHREADS_FINAL
9008 /* Final pthreads */
9009 pthread_attr_t attr;
9011 status = pthread_attr_init(&attr);
9012 if( status ) return status;
9014 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9016 #if defined( PTHREAD_CREATE_JOINABLE )
9017 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9019 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9022 #ifdef PTHREAD_CREATE_DETACHED
9024 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9027 if( status ) return status;
9030 status = pthread_create( &t, &attr, task, NULL );
9031 if( status ) return status;
9033 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9035 /* give thread a chance to complete */
9036 /* it should remain joinable and hence detachable */
9039 status = pthread_detach( t );
9040 if( status ) return status;
9045 /* Draft 4 pthreads */
9046 status = pthread_create( &t, pthread_attr_default, task, NULL );
9047 if( status ) return status;
9050 /* give thread a chance to complete */
9051 /* it should remain joinable and hence detachable */
9054 status = pthread_detach( &t );
9055 if( status ) return status;
9059 #ifdef HAVE_LINUX_THREADS
9060 pthread_kill_other_threads_np();
9068 if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9070 ol_cv_pthread_thread=yes
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9075 ol_cv_pthread_thread=no
9086 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
9088 if test $ol_cv_pthread_thread = yes ; then
9089 ol_link_pthreads="-thread"
9090 ol_link_threads=posix
9095 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
9096 if test "$ol_link_threads" = no ; then
9097 # try -lpthread -lmach -lexc -lc_r
9098 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
9099 echo "configure:9100: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
9100 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
9101 echo $ac_n "(cached) $ac_c" 1>&6
9106 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
9108 if test "$cross_compiling" = yes; then
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9112 /* pthread test headers */
9113 #include <pthread.h>
9115 #define NULL (void*)0
9118 static void *task(p)
9121 return (void *) (p == NULL);
9126 /* pthread test function */
9131 #ifdef HAVE_PTHREADS_FINAL
9132 /* Final pthreads */
9133 pthread_attr_t attr;
9135 status = pthread_attr_init(&attr);
9136 if( status ) return status;
9138 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9140 #if defined( PTHREAD_CREATE_JOINABLE )
9141 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9143 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9146 #ifdef PTHREAD_CREATE_DETACHED
9148 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9151 if( status ) return status;
9154 status = pthread_create( &t, &attr, task, NULL );
9155 if( status ) return status;
9157 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9159 /* give thread a chance to complete */
9160 /* it should remain joinable and hence detachable */
9163 status = pthread_detach( t );
9164 if( status ) return status;
9169 /* Draft 4 pthreads */
9170 status = pthread_create( &t, pthread_attr_default, task, NULL );
9171 if( status ) return status;
9174 /* give thread a chance to complete */
9175 /* it should remain joinable and hence detachable */
9178 status = pthread_detach( &t );
9179 if( status ) return status;
9183 #ifdef HAVE_LINUX_THREADS
9184 pthread_kill_other_threads_np();
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9205 /* pthread test headers */
9206 #include <pthread.h>
9208 #define NULL (void*)0
9211 static void *task(p)
9214 return (void *) (p == NULL);
9218 int main(argc, argv)
9223 /* pthread test function */
9228 #ifdef HAVE_PTHREADS_FINAL
9229 /* Final pthreads */
9230 pthread_attr_t attr;
9232 status = pthread_attr_init(&attr);
9233 if( status ) return status;
9235 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9237 #if defined( PTHREAD_CREATE_JOINABLE )
9238 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9240 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9243 #ifdef PTHREAD_CREATE_DETACHED
9245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9248 if( status ) return status;
9251 status = pthread_create( &t, &attr, task, NULL );
9252 if( status ) return status;
9254 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9256 /* give thread a chance to complete */
9257 /* it should remain joinable and hence detachable */
9260 status = pthread_detach( t );
9261 if( status ) return status;
9266 /* Draft 4 pthreads */
9267 status = pthread_create( &t, pthread_attr_default, task, NULL );
9268 if( status ) return status;
9271 /* give thread a chance to complete */
9272 /* it should remain joinable and hence detachable */
9275 status = pthread_detach( &t );
9276 if( status ) return status;
9280 #ifdef HAVE_LINUX_THREADS
9281 pthread_kill_other_threads_np();
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9291 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9296 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9307 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9309 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9310 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9311 ol_link_threads=posix
9315 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9316 if test "$ol_link_threads" = no ; then
9317 # try -lpthread -lmach -lexc
9318 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9319 echo "configure:9320: checking for pthread link with -lpthread -lmach -lexc" >&5
9320 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9326 LIBS="-lpthread -lmach -lexc $LIBS"
9328 if test "$cross_compiling" = yes; then
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9332 /* pthread test headers */
9333 #include <pthread.h>
9335 #define NULL (void*)0
9338 static void *task(p)
9341 return (void *) (p == NULL);
9346 /* pthread test function */
9351 #ifdef HAVE_PTHREADS_FINAL
9352 /* Final pthreads */
9353 pthread_attr_t attr;
9355 status = pthread_attr_init(&attr);
9356 if( status ) return status;
9358 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9360 #if defined( PTHREAD_CREATE_JOINABLE )
9361 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9363 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9366 #ifdef PTHREAD_CREATE_DETACHED
9368 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9371 if( status ) return status;
9374 status = pthread_create( &t, &attr, task, NULL );
9375 if( status ) return status;
9377 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9379 /* give thread a chance to complete */
9380 /* it should remain joinable and hence detachable */
9383 status = pthread_detach( t );
9384 if( status ) return status;
9389 /* Draft 4 pthreads */
9390 status = pthread_create( &t, pthread_attr_default, task, NULL );
9391 if( status ) return status;
9394 /* give thread a chance to complete */
9395 /* it should remain joinable and hence detachable */
9398 status = pthread_detach( &t );
9399 if( status ) return status;
9403 #ifdef HAVE_LINUX_THREADS
9404 pthread_kill_other_threads_np();
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 ol_cv_pthread_lpthread_lmach_lexc=yes
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9418 ol_cv_pthread_lpthread_lmach_lexc=no
9422 cat > conftest.$ac_ext <<EOF
9423 #line 9424 "configure"
9424 #include "confdefs.h"
9425 /* pthread test headers */
9426 #include <pthread.h>
9428 #define NULL (void*)0
9431 static void *task(p)
9434 return (void *) (p == NULL);
9438 int main(argc, argv)
9443 /* pthread test function */
9448 #ifdef HAVE_PTHREADS_FINAL
9449 /* Final pthreads */
9450 pthread_attr_t attr;
9452 status = pthread_attr_init(&attr);
9453 if( status ) return status;
9455 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9457 #if defined( PTHREAD_CREATE_JOINABLE )
9458 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9460 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9463 #ifdef PTHREAD_CREATE_DETACHED
9465 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9468 if( status ) return status;
9471 status = pthread_create( &t, &attr, task, NULL );
9472 if( status ) return status;
9474 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9476 /* give thread a chance to complete */
9477 /* it should remain joinable and hence detachable */
9480 status = pthread_detach( t );
9481 if( status ) return status;
9486 /* Draft 4 pthreads */
9487 status = pthread_create( &t, pthread_attr_default, task, NULL );
9488 if( status ) return status;
9491 /* give thread a chance to complete */
9492 /* it should remain joinable and hence detachable */
9495 status = pthread_detach( &t );
9496 if( status ) return status;
9500 #ifdef HAVE_LINUX_THREADS
9501 pthread_kill_other_threads_np();
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 ol_cv_pthread_lpthread_lmach_lexc=yes
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 ol_cv_pthread_lpthread_lmach_lexc=no
9527 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9529 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9530 ol_link_pthreads="-lpthread -lmach -lexc"
9531 ol_link_threads=posix
9536 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9537 if test "$ol_link_threads" = no ; then
9538 # try -lpthread -Wl,-woff,85
9539 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9540 echo "configure:9541: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9541 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9547 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9549 if test "$cross_compiling" = yes; then
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 /* pthread test headers */
9554 #include <pthread.h>
9556 #define NULL (void*)0
9559 static void *task(p)
9562 return (void *) (p == NULL);
9567 /* pthread test function */
9572 #ifdef HAVE_PTHREADS_FINAL
9573 /* Final pthreads */
9574 pthread_attr_t attr;
9576 status = pthread_attr_init(&attr);
9577 if( status ) return status;
9579 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9581 #if defined( PTHREAD_CREATE_JOINABLE )
9582 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9584 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9587 #ifdef PTHREAD_CREATE_DETACHED
9589 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9592 if( status ) return status;
9595 status = pthread_create( &t, &attr, task, NULL );
9596 if( status ) return status;
9598 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9600 /* give thread a chance to complete */
9601 /* it should remain joinable and hence detachable */
9604 status = pthread_detach( t );
9605 if( status ) return status;
9610 /* Draft 4 pthreads */
9611 status = pthread_create( &t, pthread_attr_default, task, NULL );
9612 if( status ) return status;
9615 /* give thread a chance to complete */
9616 /* it should remain joinable and hence detachable */
9619 status = pthread_detach( &t );
9620 if( status ) return status;
9624 #ifdef HAVE_LINUX_THREADS
9625 pthread_kill_other_threads_np();
9632 if { (eval echo configure:9633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9634 ol_cv_pthread_lib_lpthread_woff=yes
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9639 ol_cv_pthread_lib_lpthread_woff=no
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* pthread test headers */
9647 #include <pthread.h>
9649 #define NULL (void*)0
9652 static void *task(p)
9655 return (void *) (p == NULL);
9659 int main(argc, argv)
9664 /* pthread test function */
9669 #ifdef HAVE_PTHREADS_FINAL
9670 /* Final pthreads */
9671 pthread_attr_t attr;
9673 status = pthread_attr_init(&attr);
9674 if( status ) return status;
9676 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9678 #if defined( PTHREAD_CREATE_JOINABLE )
9679 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9681 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9684 #ifdef PTHREAD_CREATE_DETACHED
9686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9689 if( status ) return status;
9692 status = pthread_create( &t, &attr, task, NULL );
9693 if( status ) return status;
9695 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9697 /* give thread a chance to complete */
9698 /* it should remain joinable and hence detachable */
9701 status = pthread_detach( t );
9702 if( status ) return status;
9707 /* Draft 4 pthreads */
9708 status = pthread_create( &t, pthread_attr_default, task, NULL );
9709 if( status ) return status;
9712 /* give thread a chance to complete */
9713 /* it should remain joinable and hence detachable */
9716 status = pthread_detach( &t );
9717 if( status ) return status;
9721 #ifdef HAVE_LINUX_THREADS
9722 pthread_kill_other_threads_np();
9730 if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9732 ol_cv_pthread_lib_lpthread_woff=yes
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9737 ol_cv_pthread_lib_lpthread_woff=no
9748 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9750 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9751 ol_link_pthreads="-lpthread -Wl,-woff,85"
9752 ol_link_threads=posix
9757 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9758 if test "$ol_link_threads" = no ; then
9760 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9761 echo "configure:9762: checking for pthread link with -lpthread" >&5
9762 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9768 LIBS="-lpthread $LIBS"
9770 if test "$cross_compiling" = yes; then
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 /* pthread test headers */
9775 #include <pthread.h>
9777 #define NULL (void*)0
9780 static void *task(p)
9783 return (void *) (p == NULL);
9788 /* pthread test function */
9793 #ifdef HAVE_PTHREADS_FINAL
9794 /* Final pthreads */
9795 pthread_attr_t attr;
9797 status = pthread_attr_init(&attr);
9798 if( status ) return status;
9800 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9802 #if defined( PTHREAD_CREATE_JOINABLE )
9803 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9805 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9808 #ifdef PTHREAD_CREATE_DETACHED
9810 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9813 if( status ) return status;
9816 status = pthread_create( &t, &attr, task, NULL );
9817 if( status ) return status;
9819 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9821 /* give thread a chance to complete */
9822 /* it should remain joinable and hence detachable */
9825 status = pthread_detach( t );
9826 if( status ) return status;
9831 /* Draft 4 pthreads */
9832 status = pthread_create( &t, pthread_attr_default, task, NULL );
9833 if( status ) return status;
9836 /* give thread a chance to complete */
9837 /* it should remain joinable and hence detachable */
9840 status = pthread_detach( &t );
9841 if( status ) return status;
9845 #ifdef HAVE_LINUX_THREADS
9846 pthread_kill_other_threads_np();
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 ol_cv_pthread_lpthread=yes
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 ol_cv_pthread_lpthread=no
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* pthread test headers */
9868 #include <pthread.h>
9870 #define NULL (void*)0
9873 static void *task(p)
9876 return (void *) (p == NULL);
9880 int main(argc, argv)
9885 /* pthread test function */
9890 #ifdef HAVE_PTHREADS_FINAL
9891 /* Final pthreads */
9892 pthread_attr_t attr;
9894 status = pthread_attr_init(&attr);
9895 if( status ) return status;
9897 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9899 #if defined( PTHREAD_CREATE_JOINABLE )
9900 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9902 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9905 #ifdef PTHREAD_CREATE_DETACHED
9907 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9910 if( status ) return status;
9913 status = pthread_create( &t, &attr, task, NULL );
9914 if( status ) return status;
9916 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9918 /* give thread a chance to complete */
9919 /* it should remain joinable and hence detachable */
9922 status = pthread_detach( t );
9923 if( status ) return status;
9928 /* Draft 4 pthreads */
9929 status = pthread_create( &t, pthread_attr_default, task, NULL );
9930 if( status ) return status;
9933 /* give thread a chance to complete */
9934 /* it should remain joinable and hence detachable */
9937 status = pthread_detach( &t );
9938 if( status ) return status;
9942 #ifdef HAVE_LINUX_THREADS
9943 pthread_kill_other_threads_np();
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9953 ol_cv_pthread_lpthread=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 ol_cv_pthread_lpthread=no
9969 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9971 if test $ol_cv_pthread_lpthread = yes ; then
9972 ol_link_pthreads="-lpthread"
9973 ol_link_threads=posix
9977 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9978 if test "$ol_link_threads" = no ; then
9980 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9981 echo "configure:9982: checking for pthread link with -lc_r" >&5
9982 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9990 if test "$cross_compiling" = yes; then
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 /* pthread test headers */
9995 #include <pthread.h>
9997 #define NULL (void*)0
10000 static void *task(p)
10003 return (void *) (p == NULL);
10008 /* pthread test function */
10013 #ifdef HAVE_PTHREADS_FINAL
10014 /* Final pthreads */
10015 pthread_attr_t attr;
10017 status = pthread_attr_init(&attr);
10018 if( status ) return status;
10020 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10022 #if defined( PTHREAD_CREATE_JOINABLE )
10023 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10025 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10028 #ifdef PTHREAD_CREATE_DETACHED
10030 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10033 if( status ) return status;
10036 status = pthread_create( &t, &attr, task, NULL );
10037 if( status ) return status;
10039 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10041 /* give thread a chance to complete */
10042 /* it should remain joinable and hence detachable */
10045 status = pthread_detach( t );
10046 if( status ) return status;
10051 /* Draft 4 pthreads */
10052 status = pthread_create( &t, pthread_attr_default, task, NULL );
10053 if( status ) return status;
10056 /* give thread a chance to complete */
10057 /* it should remain joinable and hence detachable */
10060 status = pthread_detach( &t );
10061 if( status ) return status;
10065 #ifdef HAVE_LINUX_THREADS
10066 pthread_kill_other_threads_np();
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10075 ol_cv_pthread_lc_r=yes
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 ol_cv_pthread_lc_r=no
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 /* pthread test headers */
10088 #include <pthread.h>
10090 #define NULL (void*)0
10093 static void *task(p)
10096 return (void *) (p == NULL);
10100 int main(argc, argv)
10105 /* pthread test function */
10110 #ifdef HAVE_PTHREADS_FINAL
10111 /* Final pthreads */
10112 pthread_attr_t attr;
10114 status = pthread_attr_init(&attr);
10115 if( status ) return status;
10117 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10119 #if defined( PTHREAD_CREATE_JOINABLE )
10120 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10122 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10125 #ifdef PTHREAD_CREATE_DETACHED
10127 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10130 if( status ) return status;
10133 status = pthread_create( &t, &attr, task, NULL );
10134 if( status ) return status;
10136 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10138 /* give thread a chance to complete */
10139 /* it should remain joinable and hence detachable */
10142 status = pthread_detach( t );
10143 if( status ) return status;
10148 /* Draft 4 pthreads */
10149 status = pthread_create( &t, pthread_attr_default, task, NULL );
10150 if( status ) return status;
10153 /* give thread a chance to complete */
10154 /* it should remain joinable and hence detachable */
10157 status = pthread_detach( &t );
10158 if( status ) return status;
10162 #ifdef HAVE_LINUX_THREADS
10163 pthread_kill_other_threads_np();
10171 if { (eval echo configure:10172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10173 ol_cv_pthread_lc_r=yes
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10178 ol_cv_pthread_lc_r=no
10189 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10191 if test $ol_cv_pthread_lc_r = yes ; then
10192 ol_link_pthreads="-lc_r"
10193 ol_link_threads=posix
10198 # Pthread try link: -threads (ol_cv_pthread_threads)
10199 if test "$ol_link_threads" = no ; then
10201 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10202 echo "configure:10203: checking for pthread link with -threads" >&5
10203 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10209 LIBS="-threads $LIBS"
10211 if test "$cross_compiling" = yes; then
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 /* pthread test headers */
10216 #include <pthread.h>
10218 #define NULL (void*)0
10221 static void *task(p)
10224 return (void *) (p == NULL);
10229 /* pthread test function */
10234 #ifdef HAVE_PTHREADS_FINAL
10235 /* Final pthreads */
10236 pthread_attr_t attr;
10238 status = pthread_attr_init(&attr);
10239 if( status ) return status;
10241 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10243 #if defined( PTHREAD_CREATE_JOINABLE )
10244 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10246 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10249 #ifdef PTHREAD_CREATE_DETACHED
10251 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10254 if( status ) return status;
10257 status = pthread_create( &t, &attr, task, NULL );
10258 if( status ) return status;
10260 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10262 /* give thread a chance to complete */
10263 /* it should remain joinable and hence detachable */
10266 status = pthread_detach( t );
10267 if( status ) return status;
10272 /* Draft 4 pthreads */
10273 status = pthread_create( &t, pthread_attr_default, task, NULL );
10274 if( status ) return status;
10277 /* give thread a chance to complete */
10278 /* it should remain joinable and hence detachable */
10281 status = pthread_detach( &t );
10282 if( status ) return status;
10286 #ifdef HAVE_LINUX_THREADS
10287 pthread_kill_other_threads_np();
10294 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10296 ol_cv_pthread_threads=yes
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10301 ol_cv_pthread_threads=no
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 /* pthread test headers */
10309 #include <pthread.h>
10311 #define NULL (void*)0
10314 static void *task(p)
10317 return (void *) (p == NULL);
10321 int main(argc, argv)
10326 /* pthread test function */
10331 #ifdef HAVE_PTHREADS_FINAL
10332 /* Final pthreads */
10333 pthread_attr_t attr;
10335 status = pthread_attr_init(&attr);
10336 if( status ) return status;
10338 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10340 #if defined( PTHREAD_CREATE_JOINABLE )
10341 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10343 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10346 #ifdef PTHREAD_CREATE_DETACHED
10348 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10351 if( status ) return status;
10354 status = pthread_create( &t, &attr, task, NULL );
10355 if( status ) return status;
10357 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10359 /* give thread a chance to complete */
10360 /* it should remain joinable and hence detachable */
10363 status = pthread_detach( t );
10364 if( status ) return status;
10369 /* Draft 4 pthreads */
10370 status = pthread_create( &t, pthread_attr_default, task, NULL );
10371 if( status ) return status;
10374 /* give thread a chance to complete */
10375 /* it should remain joinable and hence detachable */
10378 status = pthread_detach( &t );
10379 if( status ) return status;
10383 #ifdef HAVE_LINUX_THREADS
10384 pthread_kill_other_threads_np();
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10394 ol_cv_pthread_threads=yes
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 ol_cv_pthread_threads=no
10410 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10412 if test $ol_cv_pthread_threads = yes ; then
10413 ol_link_pthreads="-threads"
10414 ol_link_threads=posix
10419 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10420 if test "$ol_link_threads" = no ; then
10421 # try -lpthreads -lmach -lexc -lc_r
10422 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10423 echo "configure:10424: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10424 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10425 echo $ac_n "(cached) $ac_c" 1>&6
10430 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10432 if test "$cross_compiling" = yes; then
10433 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10436 /* pthread test headers */
10437 #include <pthread.h>
10439 #define NULL (void*)0
10442 static void *task(p)
10445 return (void *) (p == NULL);
10450 /* pthread test function */
10455 #ifdef HAVE_PTHREADS_FINAL
10456 /* Final pthreads */
10457 pthread_attr_t attr;
10459 status = pthread_attr_init(&attr);
10460 if( status ) return status;
10462 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10464 #if defined( PTHREAD_CREATE_JOINABLE )
10465 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10467 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10470 #ifdef PTHREAD_CREATE_DETACHED
10472 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10475 if( status ) return status;
10478 status = pthread_create( &t, &attr, task, NULL );
10479 if( status ) return status;
10481 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10483 /* give thread a chance to complete */
10484 /* it should remain joinable and hence detachable */
10487 status = pthread_detach( t );
10488 if( status ) return status;
10493 /* Draft 4 pthreads */
10494 status = pthread_create( &t, pthread_attr_default, task, NULL );
10495 if( status ) return status;
10498 /* give thread a chance to complete */
10499 /* it should remain joinable and hence detachable */
10502 status = pthread_detach( &t );
10503 if( status ) return status;
10507 #ifdef HAVE_LINUX_THREADS
10508 pthread_kill_other_threads_np();
10515 if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10517 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10522 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10529 /* pthread test headers */
10530 #include <pthread.h>
10532 #define NULL (void*)0
10535 static void *task(p)
10538 return (void *) (p == NULL);
10542 int main(argc, argv)
10547 /* pthread test function */
10552 #ifdef HAVE_PTHREADS_FINAL
10553 /* Final pthreads */
10554 pthread_attr_t attr;
10556 status = pthread_attr_init(&attr);
10557 if( status ) return status;
10559 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10561 #if defined( PTHREAD_CREATE_JOINABLE )
10562 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10564 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10567 #ifdef PTHREAD_CREATE_DETACHED
10569 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10572 if( status ) return status;
10575 status = pthread_create( &t, &attr, task, NULL );
10576 if( status ) return status;
10578 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10580 /* give thread a chance to complete */
10581 /* it should remain joinable and hence detachable */
10584 status = pthread_detach( t );
10585 if( status ) return status;
10590 /* Draft 4 pthreads */
10591 status = pthread_create( &t, pthread_attr_default, task, NULL );
10592 if( status ) return status;
10595 /* give thread a chance to complete */
10596 /* it should remain joinable and hence detachable */
10599 status = pthread_detach( &t );
10600 if( status ) return status;
10604 #ifdef HAVE_LINUX_THREADS
10605 pthread_kill_other_threads_np();
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10615 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10620 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10631 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10633 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10634 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10635 ol_link_threads=posix
10639 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10640 if test "$ol_link_threads" = no ; then
10641 # try -lpthreads -lmach -lexc
10642 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10643 echo "configure:10644: checking for pthread link with -lpthreads -lmach -lexc" >&5
10644 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10650 LIBS="-lpthreads -lmach -lexc $LIBS"
10652 if test "$cross_compiling" = yes; then
10653 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 /* pthread test headers */
10657 #include <pthread.h>
10659 #define NULL (void*)0
10662 static void *task(p)
10665 return (void *) (p == NULL);
10670 /* pthread test function */
10675 #ifdef HAVE_PTHREADS_FINAL
10676 /* Final pthreads */
10677 pthread_attr_t attr;
10679 status = pthread_attr_init(&attr);
10680 if( status ) return status;
10682 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10684 #if defined( PTHREAD_CREATE_JOINABLE )
10685 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10687 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10690 #ifdef PTHREAD_CREATE_DETACHED
10692 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10695 if( status ) return status;
10698 status = pthread_create( &t, &attr, task, NULL );
10699 if( status ) return status;
10701 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10703 /* give thread a chance to complete */
10704 /* it should remain joinable and hence detachable */
10707 status = pthread_detach( t );
10708 if( status ) return status;
10713 /* Draft 4 pthreads */
10714 status = pthread_create( &t, pthread_attr_default, task, NULL );
10715 if( status ) return status;
10718 /* give thread a chance to complete */
10719 /* it should remain joinable and hence detachable */
10722 status = pthread_detach( &t );
10723 if( status ) return status;
10727 #ifdef HAVE_LINUX_THREADS
10728 pthread_kill_other_threads_np();
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10737 ol_cv_pthread_lpthreads_lmach_lexc=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 ol_cv_pthread_lpthreads_lmach_lexc=no
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749 /* pthread test headers */
10750 #include <pthread.h>
10752 #define NULL (void*)0
10755 static void *task(p)
10758 return (void *) (p == NULL);
10762 int main(argc, argv)
10767 /* pthread test function */
10772 #ifdef HAVE_PTHREADS_FINAL
10773 /* Final pthreads */
10774 pthread_attr_t attr;
10776 status = pthread_attr_init(&attr);
10777 if( status ) return status;
10779 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10781 #if defined( PTHREAD_CREATE_JOINABLE )
10782 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10784 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10787 #ifdef PTHREAD_CREATE_DETACHED
10789 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10792 if( status ) return status;
10795 status = pthread_create( &t, &attr, task, NULL );
10796 if( status ) return status;
10798 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10800 /* give thread a chance to complete */
10801 /* it should remain joinable and hence detachable */
10804 status = pthread_detach( t );
10805 if( status ) return status;
10810 /* Draft 4 pthreads */
10811 status = pthread_create( &t, pthread_attr_default, task, NULL );
10812 if( status ) return status;
10815 /* give thread a chance to complete */
10816 /* it should remain joinable and hence detachable */
10819 status = pthread_detach( &t );
10820 if( status ) return status;
10824 #ifdef HAVE_LINUX_THREADS
10825 pthread_kill_other_threads_np();
10833 if { (eval echo configure:10834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10835 ol_cv_pthread_lpthreads_lmach_lexc=yes
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10840 ol_cv_pthread_lpthreads_lmach_lexc=no
10851 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10853 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10854 ol_link_pthreads="-lpthreads -lmach -lexc"
10855 ol_link_threads=posix
10859 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10860 if test "$ol_link_threads" = no ; then
10861 # try -lpthreads -lexc
10862 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10863 echo "configure:10864: checking for pthread link with -lpthreads -lexc" >&5
10864 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10870 LIBS="-lpthreads -lexc $LIBS"
10872 if test "$cross_compiling" = yes; then
10873 cat > conftest.$ac_ext <<EOF
10874 #line 10875 "configure"
10875 #include "confdefs.h"
10876 /* pthread test headers */
10877 #include <pthread.h>
10879 #define NULL (void*)0
10882 static void *task(p)
10885 return (void *) (p == NULL);
10890 /* pthread test function */
10895 #ifdef HAVE_PTHREADS_FINAL
10896 /* Final pthreads */
10897 pthread_attr_t attr;
10899 status = pthread_attr_init(&attr);
10900 if( status ) return status;
10902 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10904 #if defined( PTHREAD_CREATE_JOINABLE )
10905 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10907 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10910 #ifdef PTHREAD_CREATE_DETACHED
10912 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10915 if( status ) return status;
10918 status = pthread_create( &t, &attr, task, NULL );
10919 if( status ) return status;
10921 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10923 /* give thread a chance to complete */
10924 /* it should remain joinable and hence detachable */
10927 status = pthread_detach( t );
10928 if( status ) return status;
10933 /* Draft 4 pthreads */
10934 status = pthread_create( &t, pthread_attr_default, task, NULL );
10935 if( status ) return status;
10938 /* give thread a chance to complete */
10939 /* it should remain joinable and hence detachable */
10942 status = pthread_detach( &t );
10943 if( status ) return status;
10947 #ifdef HAVE_LINUX_THREADS
10948 pthread_kill_other_threads_np();
10955 if { (eval echo configure:10956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10957 ol_cv_pthread_lpthreads_lexc=yes
10959 echo "configure: failed program was:" >&5
10960 cat conftest.$ac_ext >&5
10962 ol_cv_pthread_lpthreads_lexc=no
10966 cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10969 /* pthread test headers */
10970 #include <pthread.h>
10972 #define NULL (void*)0
10975 static void *task(p)
10978 return (void *) (p == NULL);
10982 int main(argc, argv)
10987 /* pthread test function */
10992 #ifdef HAVE_PTHREADS_FINAL
10993 /* Final pthreads */
10994 pthread_attr_t attr;
10996 status = pthread_attr_init(&attr);
10997 if( status ) return status;
10999 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11001 #if defined( PTHREAD_CREATE_JOINABLE )
11002 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11004 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11007 #ifdef PTHREAD_CREATE_DETACHED
11009 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11012 if( status ) return status;
11015 status = pthread_create( &t, &attr, task, NULL );
11016 if( status ) return status;
11018 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11020 /* give thread a chance to complete */
11021 /* it should remain joinable and hence detachable */
11024 status = pthread_detach( t );
11025 if( status ) return status;
11030 /* Draft 4 pthreads */
11031 status = pthread_create( &t, pthread_attr_default, task, NULL );
11032 if( status ) return status;
11035 /* give thread a chance to complete */
11036 /* it should remain joinable and hence detachable */
11039 status = pthread_detach( &t );
11040 if( status ) return status;
11044 #ifdef HAVE_LINUX_THREADS
11045 pthread_kill_other_threads_np();
11053 if { (eval echo configure:11054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11055 ol_cv_pthread_lpthreads_lexc=yes
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 ol_cv_pthread_lpthreads_lexc=no
11071 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
11073 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
11074 ol_link_pthreads="-lpthreads -lexc"
11075 ol_link_threads=posix
11080 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
11081 if test "$ol_link_threads" = no ; then
11083 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
11084 echo "configure:11085: checking for pthread link with -lpthreads" >&5
11085 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11091 LIBS="-lpthreads $LIBS"
11093 if test "$cross_compiling" = yes; then
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11097 /* pthread test headers */
11098 #include <pthread.h>
11100 #define NULL (void*)0
11103 static void *task(p)
11106 return (void *) (p == NULL);
11111 /* pthread test function */
11116 #ifdef HAVE_PTHREADS_FINAL
11117 /* Final pthreads */
11118 pthread_attr_t attr;
11120 status = pthread_attr_init(&attr);
11121 if( status ) return status;
11123 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11125 #if defined( PTHREAD_CREATE_JOINABLE )
11126 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11128 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11131 #ifdef PTHREAD_CREATE_DETACHED
11133 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11136 if( status ) return status;
11139 status = pthread_create( &t, &attr, task, NULL );
11140 if( status ) return status;
11142 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11144 /* give thread a chance to complete */
11145 /* it should remain joinable and hence detachable */
11148 status = pthread_detach( t );
11149 if( status ) return status;
11154 /* Draft 4 pthreads */
11155 status = pthread_create( &t, pthread_attr_default, task, NULL );
11156 if( status ) return status;
11159 /* give thread a chance to complete */
11160 /* it should remain joinable and hence detachable */
11163 status = pthread_detach( &t );
11164 if( status ) return status;
11168 #ifdef HAVE_LINUX_THREADS
11169 pthread_kill_other_threads_np();
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11178 ol_cv_pthread_lib_lpthreads=yes
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11183 ol_cv_pthread_lib_lpthreads=no
11187 cat > conftest.$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11190 /* pthread test headers */
11191 #include <pthread.h>
11193 #define NULL (void*)0
11196 static void *task(p)
11199 return (void *) (p == NULL);
11203 int main(argc, argv)
11208 /* pthread test function */
11213 #ifdef HAVE_PTHREADS_FINAL
11214 /* Final pthreads */
11215 pthread_attr_t attr;
11217 status = pthread_attr_init(&attr);
11218 if( status ) return status;
11220 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11222 #if defined( PTHREAD_CREATE_JOINABLE )
11223 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11225 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11228 #ifdef PTHREAD_CREATE_DETACHED
11230 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11233 if( status ) return status;
11236 status = pthread_create( &t, &attr, task, NULL );
11237 if( status ) return status;
11239 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11241 /* give thread a chance to complete */
11242 /* it should remain joinable and hence detachable */
11245 status = pthread_detach( t );
11246 if( status ) return status;
11251 /* Draft 4 pthreads */
11252 status = pthread_create( &t, pthread_attr_default, task, NULL );
11253 if( status ) return status;
11256 /* give thread a chance to complete */
11257 /* it should remain joinable and hence detachable */
11260 status = pthread_detach( &t );
11261 if( status ) return status;
11265 #ifdef HAVE_LINUX_THREADS
11266 pthread_kill_other_threads_np();
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11276 ol_cv_pthread_lib_lpthreads=yes
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11281 ol_cv_pthread_lib_lpthreads=no
11292 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11294 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11295 ol_link_pthreads="-lpthreads"
11296 ol_link_threads=posix
11301 if test $ol_link_threads != no ; then
11302 cat >> confdefs.h <<\EOF
11303 #define HAVE_PTHREADS 1
11307 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11309 save_CPPFLAGS="$CPPFLAGS"
11311 LIBS="$LTHREAD_LIBS $LIBS"
11313 for ac_func in sched_yield pthread_yield
11315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11316 echo "configure:11317: checking for $ac_func" >&5
11317 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11323 /* System header to define __stub macros and hopefully few prototypes,
11324 which can conflict with char $ac_func(); below. */
11325 #include <assert.h>
11326 /* Override any gcc2 internal prototype to avoid an error. */
11327 /* We use char because int might match the return type of a gcc2
11328 builtin and then its argument prototype would still apply. */
11334 /* The GNU C library defines this for functions which it implements
11335 to always fail with ENOSYS. Some functions are actually named
11336 something starting with __ and the normal name is an alias. */
11337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11347 eval "ac_cv_func_$ac_func=yes"
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11352 eval "ac_cv_func_$ac_func=no"
11357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11360 cat >> confdefs.h <<EOF
11361 #define $ac_tr_func 1
11365 echo "$ac_t""no" 1>&6
11370 if test $ac_cv_func_sched_yield = no -a \
11371 $ac_cv_func_pthread_yield = no ; then
11372 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11373 echo "configure:11374: checking for sched_yield in -lrt" >&5
11374 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11376 echo $ac_n "(cached) $ac_c" 1>&6
11378 ac_save_LIBS="$LIBS"
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11382 "configure"
11382 #include "confdefs.h"
11383 /* Override any gcc2 internal prototype to avoid an error. */
11384 /* We use char because int might match the return type of a gcc2
11385 builtin and then its argument prototype would still apply. */
11386 char sched_yield();
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11394 eval "ac_cv_lib_$ac_lib_var=yes"
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11399 eval "ac_cv_lib_$ac_lib_var=no"
11402 LIBS="$ac_save_LIBS"
11405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11406 echo "$ac_t""yes" 1>&6
11407 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11408 cat >> confdefs.h <<\EOF
11409 #define HAVE_SCHED_YIELD 1
11412 ac_cv_func_sched_yield=yes
11414 echo "$ac_t""no" 1>&6
11415 ac_cv_func_sched_yield=no
11419 if test $ac_cv_func_sched_yield = no -a \
11420 $ac_cv_func_pthread_yield = no ; then
11421 for ac_func in thr_yield
11423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11424 echo "configure:11425: checking for $ac_func" >&5
11425 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 /* System header to define __stub macros and hopefully few prototypes,
11432 which can conflict with char $ac_func(); below. */
11433 #include <assert.h>
11434 /* Override any gcc2 internal prototype to avoid an error. */
11435 /* We use char because int might match the return type of a gcc2
11436 builtin and then its argument prototype would still apply. */
11442 /* The GNU C library defines this for functions which it implements
11443 to always fail with ENOSYS. Some functions are actually named
11444 something starting with __ and the normal name is an alias. */
11445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11453 if { (eval echo configure:11454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11455 eval "ac_cv_func_$ac_func=yes"
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11460 eval "ac_cv_func_$ac_func=no"
11465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11466 echo "$ac_t""yes" 1>&6
11467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11468 cat >> confdefs.h <<EOF
11469 #define $ac_tr_func 1
11473 echo "$ac_t""no" 1>&6
11478 if test $ac_cv_func_sched_yield = no -a \
11479 $ac_cv_func_pthread_yield = no -a \
11480 "$ac_cv_func_thr_yield" = no ; then
11481 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11484 for ac_func in pthread_kill pthread_rwlock_destroy
11486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11487 echo "configure:11488: checking for $ac_func" >&5
11488 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11489 echo $ac_n "(cached) $ac_c" 1>&6
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11493 "configure"
11493 #include "confdefs.h"
11494 /* System header to define __stub macros and hopefully few prototypes,
11495 which can conflict with char $ac_func(); below. */
11496 #include <assert.h>
11497 /* Override any gcc2 internal prototype to avoid an error. */
11498 /* We use char because int might match the return type of a gcc2
11499 builtin and then its argument prototype would still apply. */
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11516 if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11518 eval "ac_cv_func_$ac_func=yes"
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11523 eval "ac_cv_func_$ac_func=no"
11528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11529 echo "$ac_t""yes" 1>&6
11530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11531 cat >> confdefs.h <<EOF
11532 #define $ac_tr_func 1
11536 echo "$ac_t""no" 1>&6
11541 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11542 echo "configure:11543: checking for pthread_detach with <pthread.h>" >&5
11543 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11551 #include <pthread.h>
11553 #define NULL (void*)0
11557 pthread_detach(NULL);
11560 if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11562 ol_cv_func_pthread_detach=yes
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 ol_cv_func_pthread_detach=no
11573 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11575 if test $ol_cv_func_pthread_detach = no ; then
11576 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11579 cat >> confdefs.h <<\EOF
11580 #define HAVE_PTHREAD_DETACH 1
11585 pthread_setconcurrency \
11586 pthread_getconcurrency \
11587 thr_setconcurrency \
11588 thr_getconcurrency \
11591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11592 echo "configure:11593: checking for $ac_func" >&5
11593 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11594 echo $ac_n "(cached) $ac_c" 1>&6
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 /* System header to define __stub macros and hopefully few prototypes,
11600 which can conflict with char $ac_func(); below. */
11601 #include <assert.h>
11602 /* Override any gcc2 internal prototype to avoid an error. */
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11623 eval "ac_cv_func_$ac_func=yes"
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11628 eval "ac_cv_func_$ac_func=no"
11633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11636 cat >> confdefs.h <<EOF
11637 #define $ac_tr_func 1
11641 echo "$ac_t""no" 1>&6
11647 for ac_func in pthread_kill_other_threads_np
11649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11650 echo "configure:11651: checking for $ac_func" >&5
11651 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11652 echo $ac_n "(cached) $ac_c" 1>&6
11654 cat > conftest.$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func(); below. */
11659 #include <assert.h>
11660 /* Override any gcc2 internal prototype to avoid an error. */
11661 /* We use char because int might match the return type of a gcc2
11662 builtin and then its argument prototype would still apply. */
11668 /* The GNU C library defines this for functions which it implements
11669 to always fail with ENOSYS. Some functions are actually named
11670 something starting with __ and the normal name is an alias. */
11671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11681 eval "ac_cv_func_$ac_func=yes"
11683 echo "configure: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11686 eval "ac_cv_func_$ac_func=no"
11691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11692 echo "$ac_t""yes" 1>&6
11693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11694 cat >> confdefs.h <<EOF
11695 #define $ac_tr_func 1
11699 echo "$ac_t""no" 1>&6
11703 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11704 echo "configure:11705: checking for LinuxThreads implementation" >&5
11705 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11706 echo $ac_n "(cached) $ac_c" 1>&6
11708 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11711 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11716 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11717 echo "configure:11718: checking for LinuxThreads consistency" >&5
11718 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11719 echo $ac_n "(cached) $ac_c" 1>&6
11722 if test $ol_cv_header_linux_threads = yes -a \
11723 $ol_cv_sys_linux_threads = yes; then
11724 ol_cv_linux_threads=yes
11725 elif test $ol_cv_header_linux_threads = no -a \
11726 $ol_cv_sys_linux_threads = no; then
11727 ol_cv_linux_threads=no
11729 ol_cv_linux_threads=error
11734 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11737 if test $ol_cv_linux_threads = error; then
11738 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11741 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11742 echo "configure:11743: checking if pthread_create() works" >&5
11743 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
11747 if test "$cross_compiling" = yes; then
11748 ol_cv_pthread_create_works=yes
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 /* pthread test headers */
11754 #include <pthread.h>
11756 #define NULL (void*)0
11759 static void *task(p)
11762 return (void *) (p == NULL);
11766 int main(argc, argv)
11771 /* pthread test function */
11776 #ifdef HAVE_PTHREADS_FINAL
11777 /* Final pthreads */
11778 pthread_attr_t attr;
11780 status = pthread_attr_init(&attr);
11781 if( status ) return status;
11783 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11785 #if defined( PTHREAD_CREATE_JOINABLE )
11786 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11788 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11791 #ifdef PTHREAD_CREATE_DETACHED
11793 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11796 if( status ) return status;
11799 status = pthread_create( &t, &attr, task, NULL );
11800 if( status ) return status;
11802 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11804 /* give thread a chance to complete */
11805 /* it should remain joinable and hence detachable */
11808 status = pthread_detach( t );
11809 if( status ) return status;
11814 /* Draft 4 pthreads */
11815 status = pthread_create( &t, pthread_attr_default, task, NULL );
11816 if( status ) return status;
11819 /* give thread a chance to complete */
11820 /* it should remain joinable and hence detachable */
11823 status = pthread_detach( &t );
11824 if( status ) return status;
11828 #ifdef HAVE_LINUX_THREADS
11829 pthread_kill_other_threads_np();
11837 if { (eval echo configure:11838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11839 ol_cv_pthread_create_works=yes
11841 echo "configure: failed program was:" >&5
11842 cat conftest.$ac_ext >&5
11844 ol_cv_pthread_create_works=no
11851 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11853 if test $ol_cv_pthread_create_works = no ; then
11854 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11857 if test $ol_with_yielding_select = auto ; then
11858 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11859 echo "configure:11860: checking if select yields when using pthreads" >&5
11860 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11864 if test "$cross_compiling" = yes; then
11865 ol_cv_pthread_select_yields=cross
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11871 #include <sys/types.h>
11872 #include <sys/time.h>
11873 #include <unistd.h>
11874 #include <pthread.h>
11876 #define NULL (void*) 0
11879 static int fildes[2];
11881 static void *task(p)
11893 FD_SET(fildes[0], &rfds);
11895 /* we're not interested in any fds */
11896 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11903 exit(0); /* if we exit here, the select blocked the whole process */
11906 int main(argc, argv)
11912 /* create a pipe to select */
11913 if(pipe(&fildes[0])) {
11918 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11919 (void) pthread_setconcurrency(2);
11921 #ifdef HAVE_THR_SETCONCURRENCY
11922 /* Set Solaris LWP concurrency to 2 */
11923 thr_setconcurrency(2);
11927 #if HAVE_PTHREADS_D4
11928 pthread_create(&t, pthread_attr_default, task, NULL);
11930 pthread_create(&t, NULL, task, NULL);
11933 #if HAVE_SCHED_YIELD
11934 sched_yield(); /* make sure task runs first */
11936 #ifdef HAVE_PTHREAD_YIELD
11937 pthread_yield(); /* make sure task runs first */
11944 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11946 ol_cv_pthread_select_yields=no
11948 echo "configure: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11951 ol_cv_pthread_select_yields=yes
11958 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11960 if test $ol_cv_pthread_select_yields = cross ; then
11961 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11964 if test $ol_cv_pthread_select_yields = yes ; then
11965 ol_with_yielding_select=yes
11969 CPPFLAGS="$save_CPPFLAGS"
11972 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11976 if test $ol_with_threads = posix ; then
11977 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11981 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11982 -o $ol_with_threads = mach ; then
11984 for ac_hdr in mach/cthreads.h cthread.h
11986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11988 echo "configure:11989: checking for $ac_hdr" >&5
11989 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11998 { (eval echo configure:11999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12000 if test -z "$ac_err"; then
12002 eval "ac_cv_header_$ac_safe=yes"
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12008 eval "ac_cv_header_$ac_safe=no"
12012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12013 echo "$ac_t""yes" 1>&6
12014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12015 cat >> confdefs.h <<EOF
12016 #define $ac_tr_hdr 1
12020 echo "$ac_t""no" 1>&6
12024 if test $ac_cv_header_mach_cthreads_h = yes ; then
12025 ol_with_threads=found
12027 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12028 echo "configure:12029: checking for cthread_fork" >&5
12029 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12035 /* System header to define __stub macros and hopefully few prototypes,
12036 which can conflict with char cthread_fork(); below. */
12037 #include <assert.h>
12038 /* Override any gcc2 internal prototype to avoid an error. */
12039 /* We use char because int might match the return type of a gcc2
12040 builtin and then its argument prototype would still apply. */
12041 char cthread_fork();
12046 /* The GNU C library defines this for functions which it implements
12047 to always fail with ENOSYS. Some functions are actually named
12048 something starting with __ and the normal name is an alias. */
12049 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12059 eval "ac_cv_func_cthread_fork=yes"
12061 echo "configure: failed program was:" >&5
12062 cat conftest.$ac_ext >&5
12064 eval "ac_cv_func_cthread_fork=no"
12069 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12070 echo "$ac_t""yes" 1>&6
12071 ol_link_threads=yes
12073 echo "$ac_t""no" 1>&6
12077 if test $ol_link_threads = no ; then
12078 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
12079 echo "configure:12080: checking for cthread_fork with -all_load" >&5
12080 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
12081 echo $ac_n "(cached) $ac_c" 1>&6
12085 LIBS="-all_load $LIBS"
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12089 #include <mach/cthreads.h>
12092 cthread_fork((void *)0, (void *)0);
12096 if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12098 ol_cv_cthread_all_load=yes
12100 echo "configure: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12103 ol_cv_cthread_all_load=no
12110 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
12112 if test $ol_cv_cthread_all_load = yes ; then
12113 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
12114 ol_link_threads=mach
12118 elif test $ac_cv_header_cthreads_h = yes ; then
12120 ol_with_threads=found
12123 LIBS="$LIBS -lthreads"
12124 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12125 echo "configure:12126: checking for cthread_fork" >&5
12126 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12127 echo $ac_n "(cached) $ac_c" 1>&6
12129 cat > conftest.$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* System header to define __stub macros and hopefully few prototypes,
12133 which can conflict with char cthread_fork(); below. */
12134 #include <assert.h>
12135 /* Override any gcc2 internal prototype to avoid an error. */
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12138 char cthread_fork();
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12154 if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12156 eval "ac_cv_func_cthread_fork=yes"
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12161 eval "ac_cv_func_cthread_fork=no"
12166 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12167 echo "$ac_t""yes" 1>&6
12168 ol_link_threads=yes
12170 echo "$ac_t""no" 1>&6
12175 if test $ol_link_threads = yes ; then
12176 LTHREAD_LIBS="-lthreads"
12177 ol_link_threads=mach
12179 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12182 elif test $ol_with_threads = mach ; then
12183 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
12186 if test $ol_link_threads = mach ; then
12187 cat >> confdefs.h <<\EOF
12188 #define HAVE_MACH_CTHREADS 1
12191 elif test $ol_with_threads = found ; then
12192 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12196 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12197 -o $ol_with_threads = pth ; then
12199 for ac_hdr in pth.h
12201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12203 echo "configure:12204: checking for $ac_hdr" >&5
12204 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12207 cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12213 { (eval echo configure:12214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12215 if test -z "$ac_err"; then
12217 eval "ac_cv_header_$ac_safe=yes"
12220 echo "configure: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12223 eval "ac_cv_header_$ac_safe=no"
12227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12228 echo "$ac_t""yes" 1>&6
12229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12230 cat >> confdefs.h <<EOF
12231 #define $ac_tr_hdr 1
12235 echo "$ac_t""no" 1>&6
12240 if test $ac_cv_header_pth_h = yes ; then
12241 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
12242 echo "configure:12243: checking for pth_version in -lpth" >&5
12243 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12247 ac_save_LIBS="$LIBS"
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 /* Override any gcc2 internal prototype to avoid an error. */
12253 /* We use char because int might match the return type of a gcc2
12254 builtin and then its argument prototype would still apply. */
12255 char pth_version();
12261 if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12263 eval "ac_cv_lib_$ac_lib_var=yes"
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12268 eval "ac_cv_lib_$ac_lib_var=no"
12271 LIBS="$ac_save_LIBS"
12274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12275 echo "$ac_t""yes" 1>&6
12278 echo "$ac_t""no" 1>&6
12283 if test $have_pth = yes ; then
12284 cat >> confdefs.h <<\EOF
12285 #define HAVE_GNU_PTH 1
12288 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12289 ol_link_threads=pth
12291 if test $ol_with_yielding_select = auto ; then
12292 ol_with_yielding_select=yes
12298 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12299 -o $ol_with_threads = lwp ; then
12301 for ac_hdr in thread.h synch.h
12303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12305 echo "configure:12306: checking for $ac_hdr" >&5
12306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12309 cat > conftest.$ac_ext <<EOF
12310 #line 12311 "configure"
12311 #include "confdefs.h"
12314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12315 { (eval echo configure:12316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12317 if test -z "$ac_err"; then
12319 eval "ac_cv_header_$ac_safe=yes"
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12325 eval "ac_cv_header_$ac_safe=no"
12329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12330 echo "$ac_t""yes" 1>&6
12331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12332 cat >> confdefs.h <<EOF
12333 #define $ac_tr_hdr 1
12337 echo "$ac_t""no" 1>&6
12341 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12342 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12343 echo "configure:12344: checking for thr_create in -lthread" >&5
12344 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12346 echo $ac_n "(cached) $ac_c" 1>&6
12348 ac_save_LIBS="$LIBS"
12349 LIBS="-lthread $LIBS"
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 /* Override any gcc2 internal prototype to avoid an error. */
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12362 if { (eval echo configure:12363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12364 eval "ac_cv_lib_$ac_lib_var=yes"
12366 echo "configure: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12369 eval "ac_cv_lib_$ac_lib_var=no"
12372 LIBS="$ac_save_LIBS"
12375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12376 echo "$ac_t""yes" 1>&6
12379 echo "$ac_t""no" 1>&6
12384 if test $have_thr = yes ; then
12385 cat >> confdefs.h <<\EOF
12389 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12390 ol_link_threads=thr
12392 if test $ol_with_yielding_select = auto ; then
12393 ol_with_yielding_select=yes
12397 thr_setconcurrency \
12398 thr_getconcurrency \
12401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12402 echo "configure:12403: checking for $ac_func" >&5
12403 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 /* System header to define __stub macros and hopefully few prototypes,
12410 which can conflict with char $ac_func(); below. */
12411 #include <assert.h>
12412 /* Override any gcc2 internal prototype to avoid an error. */
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12420 /* The GNU C library defines this for functions which it implements
12421 to always fail with ENOSYS. Some functions are actually named
12422 something starting with __ and the normal name is an alias. */
12423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12431 if { (eval echo configure:12432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12433 eval "ac_cv_func_$ac_func=yes"
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12438 eval "ac_cv_func_$ac_func=no"
12443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12444 echo "$ac_t""yes" 1>&6
12445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12446 cat >> confdefs.h <<EOF
12447 #define $ac_tr_func 1
12451 echo "$ac_t""no" 1>&6
12458 for ac_hdr in lwp/lwp.h
12460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12462 echo "configure:12463: checking for $ac_hdr" >&5
12463 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12472 { (eval echo configure:12473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12474 if test -z "$ac_err"; then
12476 eval "ac_cv_header_$ac_safe=yes"
12479 echo "configure: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12482 eval "ac_cv_header_$ac_safe=no"
12486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12487 echo "$ac_t""yes" 1>&6
12488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12489 cat >> confdefs.h <<EOF
12490 #define $ac_tr_hdr 1
12494 echo "$ac_t""no" 1>&6
12498 if test $ac_cv_header_lwp_lwp_h = yes ; then
12499 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12500 echo "configure:12501: checking for lwp_create in -llwp" >&5
12501 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12502 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12505 ac_save_LIBS="$LIBS"
12507 cat > conftest.$ac_ext <<EOF
12508 #line 12509 "configure"
12509 #include "confdefs.h"
12510 /* Override any gcc2 internal prototype to avoid an error. */
12511 /* We use char because int might match the return type of a gcc2
12512 builtin and then its argument prototype would still apply. */
12519 if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12521 eval "ac_cv_lib_$ac_lib_var=yes"
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12526 eval "ac_cv_lib_$ac_lib_var=no"
12529 LIBS="$ac_save_LIBS"
12532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12533 echo "$ac_t""yes" 1>&6
12536 echo "$ac_t""no" 1>&6
12541 if test $have_lwp = yes ; then
12542 cat >> confdefs.h <<\EOF
12546 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12547 ol_link_threads=lwp
12549 if test $ol_with_yielding_select = auto ; then
12550 ol_with_yielding_select=no
12556 if test $ol_with_yielding_select = yes ; then
12557 cat >> confdefs.h <<\EOF
12558 #define HAVE_YIELDING_SELECT 1
12563 if test $ol_with_threads = manual ; then
12564 ol_link_threads=yes
12566 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12568 for ac_hdr in pthread.h sched.h
12570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12572 echo "configure:12573: checking for $ac_hdr" >&5
12573 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12574 echo $ac_n "(cached) $ac_c" 1>&6
12576 cat > conftest.$ac_ext <<EOF
12577 #line 12578 "configure"
12578 #include "confdefs.h"
12581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12582 { (eval echo configure:12583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12584 if test -z "$ac_err"; then
12586 eval "ac_cv_header_$ac_safe=yes"
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12592 eval "ac_cv_header_$ac_safe=no"
12596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12597 echo "$ac_t""yes" 1>&6
12598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12599 cat >> confdefs.h <<EOF
12600 #define $ac_tr_hdr 1
12604 echo "$ac_t""no" 1>&6
12608 for ac_func in sched_yield pthread_yield
12610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12611 echo "configure:12612: checking for $ac_func" >&5
12612 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12613 echo $ac_n "(cached) $ac_c" 1>&6
12615 cat > conftest.$ac_ext <<EOF
12616 #line 12617 "configure"
12617 #include "confdefs.h"
12618 /* System header to define __stub macros and hopefully few prototypes,
12619 which can conflict with char $ac_func(); below. */
12620 #include <assert.h>
12621 /* Override any gcc2 internal prototype to avoid an error. */
12622 /* We use char because int might match the return type of a gcc2
12623 builtin and then its argument prototype would still apply. */
12629 /* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 eval "ac_cv_func_$ac_func=yes"
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12647 eval "ac_cv_func_$ac_func=no"
12652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12653 echo "$ac_t""yes" 1>&6
12654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12655 cat >> confdefs.h <<EOF
12656 #define $ac_tr_func 1
12660 echo "$ac_t""no" 1>&6
12665 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12666 echo "configure:12667: checking for LinuxThreads pthread.h" >&5
12667 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12668 echo $ac_n "(cached) $ac_c" 1>&6
12670 cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure"
12672 #include "confdefs.h"
12673 #include <pthread.h>
12675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12676 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12678 ol_cv_header_linux_threads=yes
12681 ol_cv_header_linux_threads=no
12688 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12689 if test $ol_cv_header_linux_threads = yes; then
12690 cat >> confdefs.h <<\EOF
12691 #define HAVE_LINUX_THREADS 1
12697 for ac_hdr in mach/cthreads.h
12699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12701 echo "configure:12702: checking for $ac_hdr" >&5
12702 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12711 { (eval echo configure:12712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12713 if test -z "$ac_err"; then
12715 eval "ac_cv_header_$ac_safe=yes"
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12721 eval "ac_cv_header_$ac_safe=no"
12725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12726 echo "$ac_t""yes" 1>&6
12727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12728 cat >> confdefs.h <<EOF
12729 #define $ac_tr_hdr 1
12733 echo "$ac_t""no" 1>&6
12737 for ac_hdr in lwp/lwp.h
12739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12741 echo "configure:12742: checking for $ac_hdr" >&5
12742 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12751 { (eval echo configure:12752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12753 if test -z "$ac_err"; then
12755 eval "ac_cv_header_$ac_safe=yes"
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 eval "ac_cv_header_$ac_safe=no"
12765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12766 echo "$ac_t""yes" 1>&6
12767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12768 cat >> confdefs.h <<EOF
12769 #define $ac_tr_hdr 1
12773 echo "$ac_t""no" 1>&6
12777 for ac_hdr in thread.h synch.h
12779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12781 echo "configure:12782: checking for $ac_hdr" >&5
12782 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12783 echo $ac_n "(cached) $ac_c" 1>&6
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12791 { (eval echo configure:12792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12793 if test -z "$ac_err"; then
12795 eval "ac_cv_header_$ac_safe=yes"
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12801 eval "ac_cv_header_$ac_safe=no"
12805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12806 echo "$ac_t""yes" 1>&6
12807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12808 cat >> confdefs.h <<EOF
12809 #define $ac_tr_hdr 1
12813 echo "$ac_t""no" 1>&6
12819 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12820 cat >> confdefs.h <<\EOF
12821 #define REENTRANT 1
12824 cat >> confdefs.h <<\EOF
12825 #define _REENTRANT 1
12828 cat >> confdefs.h <<\EOF
12829 #define THREAD_SAFE 1
12832 cat >> confdefs.h <<\EOF
12833 #define _THREAD_SAFE 1
12836 cat >> confdefs.h <<\EOF
12837 #define THREADSAFE 1
12840 cat >> confdefs.h <<\EOF
12841 #define _THREADSAFE 1
12844 cat >> confdefs.h <<\EOF
12845 #define _SGI_MP_SOURCE 1
12849 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12850 echo "configure:12851: checking for thread specific errno" >&5
12851 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12852 echo $ac_n "(cached) $ac_c" 1>&6
12855 cat > conftest.$ac_ext <<EOF
12856 #line 12857 "configure"
12857 #include "confdefs.h"
12863 if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12865 ol_cv_errno_thread_specific=yes
12867 echo "configure: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12870 ol_cv_errno_thread_specific=no
12876 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12878 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12879 echo "configure:12880: checking for thread specific h_errno" >&5
12880 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12884 cat > conftest.$ac_ext <<EOF
12885 #line 12886 "configure"
12886 #include "confdefs.h"
12892 if { (eval echo configure:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12894 ol_cv_h_errno_thread_specific=yes
12896 echo "configure: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12899 ol_cv_h_errno_thread_specific=no
12905 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12907 if test $ol_cv_errno_thread_specific != yes \
12908 -o $ol_cv_h_errno_thread_specific != yes ; then
12909 LIBS="$LTHREAD_LIBS $LIBS"
12915 if test $ol_link_threads = no ; then
12916 if test $ol_with_threads = yes ; then
12917 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12920 if test $ol_with_threads = auto ; then
12921 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12925 cat >> confdefs.h <<\EOF
12926 #define NO_THREADS 1
12932 if test $ol_link_threads != no ; then
12933 cat >> confdefs.h <<\EOF
12934 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12941 if test $ol_with_ldbm_api = auto \
12942 -o $ol_with_ldbm_api = berkeley \
12943 -o $ol_with_ldbm_api = bcompat ; then
12945 if test $ol_with_ldbm_api = bcompat; then \
12946 ol_cv_berkeley_db=no
12947 for ac_hdr in db_185.h db.h
12949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12951 echo "configure:12952: checking for $ac_hdr" >&5
12952 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12961 { (eval echo configure:12962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12963 if test -z "$ac_err"; then
12965 eval "ac_cv_header_$ac_safe=yes"
12968 echo "configure: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12971 eval "ac_cv_header_$ac_safe=no"
12975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12976 echo "$ac_t""yes" 1>&6
12977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12978 cat >> confdefs.h <<EOF
12979 #define $ac_tr_hdr 1
12983 echo "$ac_t""no" 1>&6
12987 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12988 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12989 echo "configure:12990: checking if Berkeley DB header compatibility" >&5
12990 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12991 echo $ac_n "(cached) $ac_c" 1>&6
12994 cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
12999 # include <db_185.h>
13004 /* this check could be improved */
13005 #ifndef DB_VERSION_MAJOR
13006 # define DB_VERSION_MAJOR 1
13009 #if DB_VERSION_MAJOR == 1
13014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13015 egrep "__db_version_1" >/dev/null 2>&1; then
13017 ol_cv_header_db1=yes
13020 ol_cv_header_db1=no
13026 echo "$ac_t""$ol_cv_header_db1" 1>&6
13028 if test $ol_cv_header_db1 = yes ; then
13030 if test $ol_cv_lib_db = no ; then
13031 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13032 echo "configure:13033: checking for Berkeley DB link (default)" >&5
13033 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13039 LIBS="$ol_DB_LIB $LIBS"
13041 cat > conftest.$ac_ext <<EOF
13042 #line 13043 "configure"
13043 #include "confdefs.h"
13045 #ifdef HAVE_DB_185_H
13046 # include <db_185.h>
13051 #ifndef DB_VERSION_MAJOR
13052 # define DB_VERSION_MAJOR 1
13056 #define NULL ((void*)0)
13061 #if DB_VERSION_MAJOR > 1
13064 int major, minor, patch;
13066 version = db_version( &major, &minor, &patch );
13068 if( major != DB_VERSION_MAJOR ||
13069 minor < DB_VERSION_MINOR )
13071 printf("Berkeley DB version mismatch\n"
13072 "\texpected: %s\n\tgot: %s\n",
13073 DB_VERSION_STRING, version);
13079 #if DB_VERSION_MAJOR > 2
13080 db_env_create( NULL, 0 );
13081 #elif DB_VERSION_MAJOR > 1
13082 db_appexit( NULL );
13084 (void) dbopen( NULL, 0, 0, 0, NULL);
13089 if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13093 echo "configure: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13104 echo "$ac_t""$ol_cv_db_none" 1>&6
13106 if test $ol_cv_db_none = yes ; then
13111 if test $ol_cv_lib_db = no ; then
13112 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13113 echo "configure:13114: checking for Berkeley DB link (-ldb)" >&5
13114 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13120 LIBS="$ol_DB_LIB $LIBS"
13122 cat > conftest.$ac_ext <<EOF
13123 #line 13124 "configure"
13124 #include "confdefs.h"
13126 #ifdef HAVE_DB_185_H
13127 # include <db_185.h>
13132 #ifndef DB_VERSION_MAJOR
13133 # define DB_VERSION_MAJOR 1
13137 #define NULL ((void*)0)
13142 #if DB_VERSION_MAJOR > 1
13145 int major, minor, patch;
13147 version = db_version( &major, &minor, &patch );
13149 if( major != DB_VERSION_MAJOR ||
13150 minor < DB_VERSION_MINOR )
13152 printf("Berkeley DB version mismatch\n"
13153 "\texpected: %s\n\tgot: %s\n",
13154 DB_VERSION_STRING, version);
13160 #if DB_VERSION_MAJOR > 2
13161 db_env_create( NULL, 0 );
13162 #elif DB_VERSION_MAJOR > 1
13163 db_appexit( NULL );
13165 (void) dbopen( NULL, 0, 0, 0, NULL);
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13174 echo "configure: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13185 echo "$ac_t""$ol_cv_db_db" 1>&6
13187 if test $ol_cv_db_db = yes ; then
13192 if test $ol_cv_lib_db = no ; then
13193 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13194 echo "configure:13195: checking for Berkeley DB link (-ldb3)" >&5
13195 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13196 echo $ac_n "(cached) $ac_c" 1>&6
13201 LIBS="$ol_DB_LIB $LIBS"
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13207 #ifdef HAVE_DB_185_H
13208 # include <db_185.h>
13213 #ifndef DB_VERSION_MAJOR
13214 # define DB_VERSION_MAJOR 1
13218 #define NULL ((void*)0)
13223 #if DB_VERSION_MAJOR > 1
13226 int major, minor, patch;
13228 version = db_version( &major, &minor, &patch );
13230 if( major != DB_VERSION_MAJOR ||
13231 minor < DB_VERSION_MINOR )
13233 printf("Berkeley DB version mismatch\n"
13234 "\texpected: %s\n\tgot: %s\n",
13235 DB_VERSION_STRING, version);
13241 #if DB_VERSION_MAJOR > 2
13242 db_env_create( NULL, 0 );
13243 #elif DB_VERSION_MAJOR > 1
13244 db_appexit( NULL );
13246 (void) dbopen( NULL, 0, 0, 0, NULL);
13251 if { (eval echo configure:13252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13266 echo "$ac_t""$ol_cv_db_db3" 1>&6
13268 if test $ol_cv_db_db3 = yes ; then
13273 if test $ol_cv_lib_db = no ; then
13274 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13275 echo "configure:13276: checking for Berkeley DB link (-ldb2)" >&5
13276 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13282 LIBS="$ol_DB_LIB $LIBS"
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13288 #ifdef HAVE_DB_185_H
13289 # include <db_185.h>
13294 #ifndef DB_VERSION_MAJOR
13295 # define DB_VERSION_MAJOR 1
13299 #define NULL ((void*)0)
13304 #if DB_VERSION_MAJOR > 1
13307 int major, minor, patch;
13309 version = db_version( &major, &minor, &patch );
13311 if( major != DB_VERSION_MAJOR ||
13312 minor < DB_VERSION_MINOR )
13314 printf("Berkeley DB version mismatch\n"
13315 "\texpected: %s\n\tgot: %s\n",
13316 DB_VERSION_STRING, version);
13322 #if DB_VERSION_MAJOR > 2
13323 db_env_create( NULL, 0 );
13324 #elif DB_VERSION_MAJOR > 1
13325 db_appexit( NULL );
13327 (void) dbopen( NULL, 0, 0, 0, NULL);
13332 if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13336 echo "configure: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13347 echo "$ac_t""$ol_cv_db_db2" 1>&6
13349 if test $ol_cv_db_db2 = yes ; then
13354 if test $ol_cv_lib_db = no ; then
13355 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13356 echo "configure:13357: checking for Berkeley DB link (-ldb1)" >&5
13357 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13363 LIBS="$ol_DB_LIB $LIBS"
13365 cat > conftest.$ac_ext <<EOF
13366 #line 13367 "configure"
13367 #include "confdefs.h"
13369 #ifdef HAVE_DB_185_H
13370 # include <db_185.h>
13375 #ifndef DB_VERSION_MAJOR
13376 # define DB_VERSION_MAJOR 1
13380 #define NULL ((void*)0)
13385 #if DB_VERSION_MAJOR > 1
13388 int major, minor, patch;
13390 version = db_version( &major, &minor, &patch );
13392 if( major != DB_VERSION_MAJOR ||
13393 minor < DB_VERSION_MINOR )
13395 printf("Berkeley DB version mismatch\n"
13396 "\texpected: %s\n\tgot: %s\n",
13397 DB_VERSION_STRING, version);
13403 #if DB_VERSION_MAJOR > 2
13404 db_env_create( NULL, 0 );
13405 #elif DB_VERSION_MAJOR > 1
13406 db_appexit( NULL );
13408 (void) dbopen( NULL, 0, 0, 0, NULL);
13413 if { (eval echo configure:13414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13417 echo "configure: failed program was:" >&5
13418 cat conftest.$ac_ext >&5
13428 echo "$ac_t""$ol_cv_db_db1" 1>&6
13430 if test $ol_cv_db_db1 = yes ; then
13436 if test "$ol_cv_lib_db" != no ; then
13437 ol_cv_berkeley_db=yes
13443 ol_cv_berkeley_db=no
13446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13448 echo "configure:13449: checking for $ac_hdr" >&5
13449 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13450 echo $ac_n "(cached) $ac_c" 1>&6
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13458 { (eval echo configure:13459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13460 if test -z "$ac_err"; then
13462 eval "ac_cv_header_$ac_safe=yes"
13465 echo "configure: failed program was:" >&5
13466 cat conftest.$ac_ext >&5
13468 eval "ac_cv_header_$ac_safe=no"
13472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13473 echo "$ac_t""yes" 1>&6
13474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13475 cat >> confdefs.h <<EOF
13476 #define $ac_tr_hdr 1
13480 echo "$ac_t""no" 1>&6
13484 if test $ac_cv_header_db_h = yes; then
13486 if test $ol_cv_lib_db = no ; then
13487 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13488 echo "configure:13489: checking for Berkeley DB link (default)" >&5
13489 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13490 echo $ac_n "(cached) $ac_c" 1>&6
13495 LIBS="$ol_DB_LIB $LIBS"
13497 cat > conftest.$ac_ext <<EOF
13498 #line 13499 "configure"
13499 #include "confdefs.h"
13501 #ifdef HAVE_DB_185_H
13502 # include <db_185.h>
13507 #ifndef DB_VERSION_MAJOR
13508 # define DB_VERSION_MAJOR 1
13512 #define NULL ((void*)0)
13517 #if DB_VERSION_MAJOR > 1
13520 int major, minor, patch;
13522 version = db_version( &major, &minor, &patch );
13524 if( major != DB_VERSION_MAJOR ||
13525 minor < DB_VERSION_MINOR )
13527 printf("Berkeley DB version mismatch\n"
13528 "\texpected: %s\n\tgot: %s\n",
13529 DB_VERSION_STRING, version);
13535 #if DB_VERSION_MAJOR > 2
13536 db_env_create( NULL, 0 );
13537 #elif DB_VERSION_MAJOR > 1
13538 db_appexit( NULL );
13540 (void) dbopen( NULL, 0, 0, 0, NULL);
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13560 echo "$ac_t""$ol_cv_db_none" 1>&6
13562 if test $ol_cv_db_none = yes ; then
13567 if test $ol_cv_lib_db = no ; then
13568 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13569 echo "configure:13570: checking for Berkeley DB link (-ldb)" >&5
13570 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13571 echo $ac_n "(cached) $ac_c" 1>&6
13576 LIBS="$ol_DB_LIB $LIBS"
13578 cat > conftest.$ac_ext <<EOF
13579 #line 13580 "configure"
13580 #include "confdefs.h"
13582 #ifdef HAVE_DB_185_H
13583 # include <db_185.h>
13588 #ifndef DB_VERSION_MAJOR
13589 # define DB_VERSION_MAJOR 1
13593 #define NULL ((void*)0)
13598 #if DB_VERSION_MAJOR > 1
13601 int major, minor, patch;
13603 version = db_version( &major, &minor, &patch );
13605 if( major != DB_VERSION_MAJOR ||
13606 minor < DB_VERSION_MINOR )
13608 printf("Berkeley DB version mismatch\n"
13609 "\texpected: %s\n\tgot: %s\n",
13610 DB_VERSION_STRING, version);
13616 #if DB_VERSION_MAJOR > 2
13617 db_env_create( NULL, 0 );
13618 #elif DB_VERSION_MAJOR > 1
13619 db_appexit( NULL );
13621 (void) dbopen( NULL, 0, 0, 0, NULL);
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13641 echo "$ac_t""$ol_cv_db_db" 1>&6
13643 if test $ol_cv_db_db = yes ; then
13648 if test $ol_cv_lib_db = no ; then
13649 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13650 echo "configure:13651: checking for Berkeley DB link (-ldb3)" >&5
13651 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13652 echo $ac_n "(cached) $ac_c" 1>&6
13657 LIBS="$ol_DB_LIB $LIBS"
13659 cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13663 #ifdef HAVE_DB_185_H
13664 # include <db_185.h>
13669 #ifndef DB_VERSION_MAJOR
13670 # define DB_VERSION_MAJOR 1
13674 #define NULL ((void*)0)
13679 #if DB_VERSION_MAJOR > 1
13682 int major, minor, patch;
13684 version = db_version( &major, &minor, &patch );
13686 if( major != DB_VERSION_MAJOR ||
13687 minor < DB_VERSION_MINOR )
13689 printf("Berkeley DB version mismatch\n"
13690 "\texpected: %s\n\tgot: %s\n",
13691 DB_VERSION_STRING, version);
13697 #if DB_VERSION_MAJOR > 2
13698 db_env_create( NULL, 0 );
13699 #elif DB_VERSION_MAJOR > 1
13700 db_appexit( NULL );
13702 (void) dbopen( NULL, 0, 0, 0, NULL);
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13722 echo "$ac_t""$ol_cv_db_db3" 1>&6
13724 if test $ol_cv_db_db3 = yes ; then
13729 if test $ol_cv_lib_db = no ; then
13730 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13731 echo "configure:13732: checking for Berkeley DB link (-ldb2)" >&5
13732 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13738 LIBS="$ol_DB_LIB $LIBS"
13740 cat > conftest.$ac_ext <<EOF
13741 #line 13742 "configure"
13742 #include "confdefs.h"
13744 #ifdef HAVE_DB_185_H
13745 # include <db_185.h>
13750 #ifndef DB_VERSION_MAJOR
13751 # define DB_VERSION_MAJOR 1
13755 #define NULL ((void*)0)
13760 #if DB_VERSION_MAJOR > 1
13763 int major, minor, patch;
13765 version = db_version( &major, &minor, &patch );
13767 if( major != DB_VERSION_MAJOR ||
13768 minor < DB_VERSION_MINOR )
13770 printf("Berkeley DB version mismatch\n"
13771 "\texpected: %s\n\tgot: %s\n",
13772 DB_VERSION_STRING, version);
13778 #if DB_VERSION_MAJOR > 2
13779 db_env_create( NULL, 0 );
13780 #elif DB_VERSION_MAJOR > 1
13781 db_appexit( NULL );
13783 (void) dbopen( NULL, 0, 0, 0, NULL);
13788 if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13803 echo "$ac_t""$ol_cv_db_db2" 1>&6
13805 if test $ol_cv_db_db2 = yes ; then
13810 if test $ol_cv_lib_db = no ; then
13811 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13812 echo "configure:13813: checking for Berkeley DB link (-ldb1)" >&5
13813 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13814 echo $ac_n "(cached) $ac_c" 1>&6
13819 LIBS="$ol_DB_LIB $LIBS"
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13825 #ifdef HAVE_DB_185_H
13826 # include <db_185.h>
13831 #ifndef DB_VERSION_MAJOR
13832 # define DB_VERSION_MAJOR 1
13836 #define NULL ((void*)0)
13841 #if DB_VERSION_MAJOR > 1
13844 int major, minor, patch;
13846 version = db_version( &major, &minor, &patch );
13848 if( major != DB_VERSION_MAJOR ||
13849 minor < DB_VERSION_MINOR )
13851 printf("Berkeley DB version mismatch\n"
13852 "\texpected: %s\n\tgot: %s\n",
13853 DB_VERSION_STRING, version);
13859 #if DB_VERSION_MAJOR > 2
13860 db_env_create( NULL, 0 );
13861 #elif DB_VERSION_MAJOR > 1
13862 db_appexit( NULL );
13864 (void) dbopen( NULL, 0, 0, 0, NULL);
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13884 echo "$ac_t""$ol_cv_db_db1" 1>&6
13886 if test $ol_cv_db_db1 = yes ; then
13892 if test "$ol_cv_lib_db" != no ; then
13893 ol_cv_berkeley_db=yes
13894 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13895 echo "configure:13896: checking for Berkeley DB thread support" >&5
13896 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13901 if test $ol_cv_lib_db != yes ; then
13902 LIBS="$ol_cv_lib_db"
13905 if test "$cross_compiling" = yes; then
13906 ol_cv_berkeley_db_thread=cross
13908 cat > conftest.$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13912 #ifdef HAVE_DB_185_H
13918 #define NULL ((void *)0)
13923 u_int32_t flags = DB_CREATE |
13929 #if DB_VERSION_MAJOR > 2
13930 DB_ENV *env = NULL;
13932 rc = db_env_create( &env, 0 );
13934 flags |= DB_INIT_MPOOL;
13935 #ifdef DB_MPOOL_PRIVATE
13936 flags |= DB_MPOOL_PRIVATE;
13940 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13944 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13945 rc = env->open( env, NULL, flags, 0 );
13947 rc = env->open( env, NULL, NULL, flags, 0 );
13951 rc = env->close( env, 0 );
13955 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13961 memset( &env, '\0', sizeof(env) );
13963 rc = db_appinit( NULL, NULL, &env, flags );
13966 db_appexit( &env );
13969 unlink("__db_mpool.share");
13970 unlink("__db_lock.share");
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13978 ol_cv_berkeley_db_thread=yes
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13983 ol_cv_berkeley_db_thread=no
13991 if test $ol_cv_berkeley_db_thread != no ; then
13992 cat >> confdefs.h <<\EOF
13993 #define HAVE_BERKELEY_DB_THREAD 1
14000 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
14006 if test $ol_cv_berkeley_db != no ; then
14007 cat >> confdefs.h <<\EOF
14008 #define HAVE_BERKELEY_DB 1
14012 ol_link_ldbm=berkeley
14013 ol_with_ldbm_api=berkeley
14015 if test $ol_with_ldbm_type = hash ; then
14016 cat >> confdefs.h <<\EOF
14017 #define LDBM_USE_DBHASH 1
14021 cat >> confdefs.h <<\EOF
14022 #define LDBM_USE_DBBTREE 1
14027 if test $ol_cv_lib_db != yes ; then
14028 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
14033 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
14034 { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
14035 elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
14039 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
14040 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
14041 ol_with_ldbm_api=none
14044 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
14045 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
14046 echo "configure:14047: checking for MDBM library" >&5
14047 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
14048 echo $ac_n "(cached) $ac_c" 1>&6
14051 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
14052 echo "configure:14053: checking for mdbm_set_chain" >&5
14053 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
14054 echo $ac_n "(cached) $ac_c" 1>&6
14056 cat > conftest.$ac_ext <<EOF
14057 #line 14058 "configure"
14058 #include "confdefs.h"
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char mdbm_set_chain(); below. */
14061 #include <assert.h>
14062 /* Override any gcc2 internal prototype to avoid an error. */
14063 /* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14065 char mdbm_set_chain();
14070 /* The GNU C library defines this for functions which it implements
14071 to always fail with ENOSYS. Some functions are actually named
14072 something starting with __ and the normal name is an alias. */
14073 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
14076 f = mdbm_set_chain;
14081 if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14083 eval "ac_cv_func_mdbm_set_chain=yes"
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14088 eval "ac_cv_func_mdbm_set_chain=no"
14093 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
14094 echo "$ac_t""yes" 1>&6
14097 echo "$ac_t""no" 1>&6
14099 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
14100 echo "configure:14101: checking for mdbm_set_chain in -lmdbm" >&5
14101 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
14102 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14103 echo $ac_n "(cached) $ac_c" 1>&6
14105 ac_save_LIBS="$LIBS"
14106 LIBS="-lmdbm $LIBS"
14107 cat > conftest.$ac_ext <<EOF
14108 #line 14109 "configure"
14109 #include "confdefs.h"
14110 /* Override any gcc2 internal prototype to avoid an error. */
14111 /* We use char because int might match the return type of a gcc2
14112 builtin and then its argument prototype would still apply. */
14113 char mdbm_set_chain();
14119 if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14121 eval "ac_cv_lib_$ac_lib_var=yes"
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14126 eval "ac_cv_lib_$ac_lib_var=no"
14129 LIBS="$ac_save_LIBS"
14132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14133 echo "$ac_t""yes" 1>&6
14134 ol_cv_lib_mdbm=-lmdbm
14136 echo "$ac_t""no" 1>&6
14147 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
14150 for ac_hdr in mdbm.h
14152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14154 echo "configure:14155: checking for $ac_hdr" >&5
14155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14156 echo $ac_n "(cached) $ac_c" 1>&6
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14164 { (eval echo configure:14165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14166 if test -z "$ac_err"; then
14168 eval "ac_cv_header_$ac_safe=yes"
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14174 eval "ac_cv_header_$ac_safe=no"
14178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14181 cat >> confdefs.h <<EOF
14182 #define $ac_tr_hdr 1
14186 echo "$ac_t""no" 1>&6
14190 echo $ac_n "checking for db""... $ac_c" 1>&6
14191 echo "configure:14192: checking for db" >&5
14192 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
14193 echo $ac_n "(cached) $ac_c" 1>&6
14196 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
14204 echo "$ac_t""$ol_cv_mdbm" 1>&6
14205 if test $ol_cv_mdbm = yes ; then
14206 cat >> confdefs.h <<\EOF
14207 #define HAVE_MDBM 1
14213 if test $ol_cv_mdbm = yes ; then
14215 ol_with_ldbm_api=mdbm
14216 if test $ol_cv_lib_mdbm != yes ; then
14217 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
14222 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
14223 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
14224 echo "configure:14225: checking for GDBM library" >&5
14225 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14229 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
14230 echo "configure:14231: checking for gdbm_open" >&5
14231 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14234 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 /* System header to define __stub macros and hopefully few prototypes,
14238 which can conflict with char gdbm_open(); below. */
14239 #include <assert.h>
14240 /* Override any gcc2 internal prototype to avoid an error. */
14241 /* We use char because int might match the return type of a gcc2
14242 builtin and then its argument prototype would still apply. */
14248 /* The GNU C library defines this for functions which it implements
14249 to always fail with ENOSYS. Some functions are actually named
14250 something starting with __ and the normal name is an alias. */
14251 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14259 if { (eval echo configure:14260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14261 eval "ac_cv_func_gdbm_open=yes"
14263 echo "configure: failed program was:" >&5
14264 cat conftest.$ac_ext >&5
14266 eval "ac_cv_func_gdbm_open=no"
14271 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14272 echo "$ac_t""yes" 1>&6
14275 echo "$ac_t""no" 1>&6
14277 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14278 echo "configure:14279: checking for gdbm_open in -lgdbm" >&5
14279 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14281 echo $ac_n "(cached) $ac_c" 1>&6
14283 ac_save_LIBS="$LIBS"
14284 LIBS="-lgdbm $LIBS"
14285 cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 /* Override any gcc2 internal prototype to avoid an error. */
14289 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14297 if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14299 eval "ac_cv_lib_$ac_lib_var=yes"
14301 echo "configure: failed program was:" >&5
14302 cat conftest.$ac_ext >&5
14304 eval "ac_cv_lib_$ac_lib_var=no"
14307 LIBS="$ac_save_LIBS"
14310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14311 echo "$ac_t""yes" 1>&6
14312 ol_cv_lib_gdbm=-lgdbm
14314 echo "$ac_t""no" 1>&6
14325 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14328 for ac_hdr in gdbm.h
14330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14332 echo "configure:14333: checking for $ac_hdr" >&5
14333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14334 echo $ac_n "(cached) $ac_c" 1>&6
14336 cat > conftest.$ac_ext <<EOF
14337 #line 14338 "configure"
14338 #include "confdefs.h"
14341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14342 { (eval echo configure:14343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14344 if test -z "$ac_err"; then
14346 eval "ac_cv_header_$ac_safe=yes"
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14352 eval "ac_cv_header_$ac_safe=no"
14356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14357 echo "$ac_t""yes" 1>&6
14358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14359 cat >> confdefs.h <<EOF
14360 #define $ac_tr_hdr 1
14364 echo "$ac_t""no" 1>&6
14368 echo $ac_n "checking for db""... $ac_c" 1>&6
14369 echo "configure:14370: checking for db" >&5
14370 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14374 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14382 echo "$ac_t""$ol_cv_gdbm" 1>&6
14383 if test $ol_cv_gdbm = yes ; then
14384 cat >> confdefs.h <<\EOF
14385 #define HAVE_GDBM 1
14391 if test $ol_cv_gdbm = yes ; then
14393 ol_with_ldbm_api=gdbm
14395 if test $ol_cv_lib_gdbm != yes ; then
14396 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14401 if test $ol_with_ldbm_api = ndbm ; then
14402 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14403 echo "configure:14404: checking for NDBM library" >&5
14404 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14405 echo $ac_n "(cached) $ac_c" 1>&6
14408 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14409 echo "configure:14410: checking for dbm_open" >&5
14410 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14411 echo $ac_n "(cached) $ac_c" 1>&6
14413 cat > conftest.$ac_ext <<EOF
14414 #line 14415 "configure"
14415 #include "confdefs.h"
14416 /* System header to define __stub macros and hopefully few prototypes,
14417 which can conflict with char dbm_open(); below. */
14418 #include <assert.h>
14419 /* Override any gcc2 internal prototype to avoid an error. */
14420 /* We use char because int might match the return type of a gcc2
14421 builtin and then its argument prototype would still apply. */
14427 /* The GNU C library defines this for functions which it implements
14428 to always fail with ENOSYS. Some functions are actually named
14429 something starting with __ and the normal name is an alias. */
14430 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14440 eval "ac_cv_func_dbm_open=yes"
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14445 eval "ac_cv_func_dbm_open=no"
14450 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14451 echo "$ac_t""yes" 1>&6
14454 echo "$ac_t""no" 1>&6
14456 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14457 echo "configure:14458: checking for dbm_open in -lndbm" >&5
14458 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14459 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14460 echo $ac_n "(cached) $ac_c" 1>&6
14462 ac_save_LIBS="$LIBS"
14463 LIBS="-lndbm $LIBS"
14464 cat > conftest.$ac_ext <<EOF
14465 #line 14466 "configure"
14466 #include "confdefs.h"
14467 /* Override any gcc2 internal prototype to avoid an error. */
14468 /* We use char because int might match the return type of a gcc2
14469 builtin and then its argument prototype would still apply. */
14476 if { (eval echo configure:14477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14478 eval "ac_cv_lib_$ac_lib_var=yes"
14480 echo "configure: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14483 eval "ac_cv_lib_$ac_lib_var=no"
14486 LIBS="$ac_save_LIBS"
14489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14490 echo "$ac_t""yes" 1>&6
14491 ol_cv_lib_ndbm=-lndbm
14493 echo "$ac_t""no" 1>&6
14495 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14496 echo "configure:14497: checking for dbm_open in -ldbm" >&5
14497 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14499 echo $ac_n "(cached) $ac_c" 1>&6
14501 ac_save_LIBS="$LIBS"
14503 cat > conftest.$ac_ext <<EOF
14504 #line 14505 "configure"
14505 #include "confdefs.h"
14506 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14517 eval "ac_cv_lib_$ac_lib_var=yes"
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14522 eval "ac_cv_lib_$ac_lib_var=no"
14525 LIBS="$ac_save_LIBS"
14528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14529 echo "$ac_t""yes" 1>&6
14530 ol_cv_lib_ndbm=-ldbm
14532 echo "$ac_t""no" 1>&6
14545 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14548 for ac_hdr in ndbm.h
14550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14552 echo "configure:14553: checking for $ac_hdr" >&5
14553 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
14556 cat > conftest.$ac_ext <<EOF
14557 #line 14558 "configure"
14558 #include "confdefs.h"
14561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14562 { (eval echo configure:14563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14564 if test -z "$ac_err"; then
14566 eval "ac_cv_header_$ac_safe=yes"
14569 echo "configure: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14572 eval "ac_cv_header_$ac_safe=no"
14576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14577 echo "$ac_t""yes" 1>&6
14578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14579 cat >> confdefs.h <<EOF
14580 #define $ac_tr_hdr 1
14584 echo "$ac_t""no" 1>&6
14588 echo $ac_n "checking for db""... $ac_c" 1>&6
14589 echo "configure:14590: checking for db" >&5
14590 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14591 echo $ac_n "(cached) $ac_c" 1>&6
14594 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14602 echo "$ac_t""$ol_cv_ndbm" 1>&6
14603 if test $ol_cv_ndbm = yes ; then
14604 cat >> confdefs.h <<\EOF
14605 #define HAVE_NDBM 1
14611 if test $ol_cv_ndbm = yes ; then
14613 ol_with_ldbm_api=ndbm
14615 if test $ol_cv_lib_ndbm != yes ; then
14616 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14621 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14622 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14623 if test $ol_enable_ldbm = yes ; then
14624 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14627 echo "configure: warning: disabling LDBM" 1>&2
14631 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14632 LINK_BINS_DYNAMIC="yes"
14634 LINK_BINS_DYNAMIC="no"
14637 if test $ol_enable_wrappers != no ; then
14638 for ac_hdr in tcpd.h
14640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14642 echo "configure:14643: checking for $ac_hdr" >&5
14643 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14644 echo $ac_n "(cached) $ac_c" 1>&6
14646 cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14652 { (eval echo configure:14653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14654 if test -z "$ac_err"; then
14656 eval "ac_cv_header_$ac_safe=yes"
14659 echo "configure: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14662 eval "ac_cv_header_$ac_safe=no"
14666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14667 echo "$ac_t""yes" 1>&6
14668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14669 cat >> confdefs.h <<EOF
14670 #define $ac_tr_hdr 1
14674 echo "$ac_t""no" 1>&6
14679 if test $ac_cv_header_tcpd_h != yes ; then
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14686 int allow_severity = 0;
14687 int deny_severity = 0;
14693 if { (eval echo configure:14694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14697 echo "configure: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14705 if test $have_wrappers = yes ; then
14706 cat >> confdefs.h <<\EOF
14707 #define HAVE_TCPD 1
14712 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14713 echo "configure:14714: checking for main in -lnsl" >&5
14714 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14715 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14716 echo $ac_n "(cached) $ac_c" 1>&6
14718 ac_save_LIBS="$LIBS"
14720 cat > conftest.$ac_ext <<EOF
14721 #line 14722 "configure"
14722 #include "confdefs.h"
14728 if { (eval echo configure:14729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14730 eval "ac_cv_lib_$ac_lib_var=yes"
14732 echo "configure: failed program was:" >&5
14733 cat conftest.$ac_ext >&5
14735 eval "ac_cv_lib_$ac_lib_var=no"
14738 LIBS="$ac_save_LIBS"
14741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14742 echo "$ac_t""yes" 1>&6
14743 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14745 cat >> confdefs.h <<EOF
14746 #define $ac_tr_lib 1
14752 echo "$ac_t""no" 1>&6
14756 echo "configure: warning: could not find -lwrap" 1>&2
14757 if test $ol_enable_wrappers = yes ; then
14758 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14761 echo "configure: warning: disabling wrappers support" 1>&2
14762 ol_enable_wrappers=no
14767 if test $ol_enable_syslog != no ; then
14768 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14769 echo "configure:14770: checking for openlog" >&5
14770 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14771 echo $ac_n "(cached) $ac_c" 1>&6
14773 cat > conftest.$ac_ext <<EOF
14774 #line 14775 "configure"
14775 #include "confdefs.h"
14776 /* System header to define __stub macros and hopefully few prototypes,
14777 which can conflict with char openlog(); below. */
14778 #include <assert.h>
14779 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14787 /* The GNU C library defines this for functions which it implements
14788 to always fail with ENOSYS. Some functions are actually named
14789 something starting with __ and the normal name is an alias. */
14790 #if defined (__stub_openlog) || defined (__stub___openlog)
14798 if { (eval echo configure:14799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14800 eval "ac_cv_func_openlog=yes"
14802 echo "configure: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14805 eval "ac_cv_func_openlog=no"
14810 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14811 echo "$ac_t""yes" 1>&6
14814 echo "$ac_t""no" 1>&6
14817 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14818 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14820 ol_enable_syslog=$ac_cv_func_openlog
14825 if test $ol_enable_sql != no ; then
14826 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14827 echo "configure:14828: checking for SQLDriverConnect in -liodbc" >&5
14828 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14830 echo $ac_n "(cached) $ac_c" 1>&6
14832 ac_save_LIBS="$LIBS"
14833 LIBS="-liodbc $LIBS"
14834 cat > conftest.$ac_ext <<EOF
14835 #line 14836 "configure"
14836 #include "confdefs.h"
14837 /* Override any gcc2 internal prototype to avoid an error. */
14838 /* We use char because int might match the return type of a gcc2
14839 builtin and then its argument prototype would still apply. */
14840 char SQLDriverConnect();
14846 if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14848 eval "ac_cv_lib_$ac_lib_var=yes"
14850 echo "configure: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14853 eval "ac_cv_lib_$ac_lib_var=no"
14856 LIBS="$ac_save_LIBS"
14859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14860 echo "$ac_t""yes" 1>&6
14863 echo "$ac_t""no" 1>&6
14867 if test $have_iodbc = yes ; then
14868 ol_link_sql="-liodbc"
14870 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14871 echo "configure:14872: checking for SQLDriverConnect in -lodbc" >&5
14872 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14874 echo $ac_n "(cached) $ac_c" 1>&6
14876 ac_save_LIBS="$LIBS"
14877 LIBS="-lodbc $LIBS"
14878 cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure"
14880 #include "confdefs.h"
14881 /* Override any gcc2 internal prototype to avoid an error. */
14882 /* We use char because int might match the return type of a gcc2
14883 builtin and then its argument prototype would still apply. */
14884 char SQLDriverConnect();
14890 if { (eval echo configure:14891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14892 eval "ac_cv_lib_$ac_lib_var=yes"
14894 echo "configure: failed program was:" >&5
14895 cat conftest.$ac_ext >&5
14897 eval "ac_cv_lib_$ac_lib_var=no"
14900 LIBS="$ac_save_LIBS"
14903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14904 echo "$ac_t""yes" 1>&6
14907 echo "$ac_t""no" 1>&6
14911 if test $have_odbc = yes ; then
14912 ol_link_sql="-lodbc"
14916 if test $ol_link_sql != no ; then
14917 SLAPD_SQL_LIBS="$ol_link_sql"
14919 elif test $ol_enable_sql != auto ; then
14920 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14924 if test $ol_enable_tcl != no ; then
14925 for ac_hdr in tcl.h
14927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14929 echo "configure:14930: checking for $ac_hdr" >&5
14930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14931 echo $ac_n "(cached) $ac_c" 1>&6
14933 cat > conftest.$ac_ext <<EOF
14934 #line 14935 "configure"
14935 #include "confdefs.h"
14938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14939 { (eval echo configure:14940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14941 if test -z "$ac_err"; then
14943 eval "ac_cv_header_$ac_safe=yes"
14946 echo "configure: failed program was:" >&5
14947 cat conftest.$ac_ext >&5
14949 eval "ac_cv_header_$ac_safe=no"
14953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14954 echo "$ac_t""yes" 1>&6
14955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14956 cat >> confdefs.h <<EOF
14957 #define $ac_tr_hdr 1
14961 echo "$ac_t""no" 1>&6
14966 if test $ac_cv_header_tcl_h != yes ; then
14969 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
14970 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
14971 echo "configure:14972: checking for main in -l$lib" >&5
14972 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
14973 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14974 echo $ac_n "(cached) $ac_c" 1>&6
14976 ac_save_LIBS="$LIBS"
14977 LIBS="-l$lib $LIBS"
14978 cat > conftest.$ac_ext <<EOF
14979 #line 14980 "configure"
14980 #include "confdefs.h"
14986 if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14988 eval "ac_cv_lib_$ac_lib_var=yes"
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14993 eval "ac_cv_lib_$ac_lib_var=no"
14996 LIBS="$ac_save_LIBS"
14999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15000 echo "$ac_t""yes" 1>&6
15002 if test x"$ol_with_tcl_module" = "xstatic" ; then
15003 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
15005 MOD_TCL_LIB="-l${lib}"
15008 echo "$ac_t""no" 1>&6
15015 if test $have_tcl != yes ; then
15016 echo "configure: warning: could not find -ltcl" 1>&2
15017 if test $ol_enable_tcl = yes ; then
15018 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
15026 for ac_hdr in termcap.h ncurses.h
15028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15030 echo "configure:15031: checking for $ac_hdr" >&5
15031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15032 echo $ac_n "(cached) $ac_c" 1>&6
15034 cat > conftest.$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15040 { (eval echo configure:15041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15042 if test -z "$ac_err"; then
15044 eval "ac_cv_header_$ac_safe=yes"
15047 echo "configure: failed program was:" >&5
15048 cat conftest.$ac_ext >&5
15050 eval "ac_cv_header_$ac_safe=no"
15054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15055 echo "$ac_t""yes" 1>&6
15056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15057 cat >> confdefs.h <<EOF
15058 #define $ac_tr_hdr 1
15062 echo "$ac_t""no" 1>&6
15067 if test $ol_link_termcap = no ; then
15068 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
15069 echo "configure:15070: checking for tputs in -ltermcap" >&5
15070 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
15071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15072 echo $ac_n "(cached) $ac_c" 1>&6
15074 ac_save_LIBS="$LIBS"
15075 LIBS="-ltermcap $LIBS"
15076 cat > conftest.$ac_ext <<EOF
15077 #line 15078 "configure"
15078 #include "confdefs.h"
15079 /* Override any gcc2 internal prototype to avoid an error. */
15080 /* We use char because int might match the return type of a gcc2
15081 builtin and then its argument prototype would still apply. */
15088 if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15090 eval "ac_cv_lib_$ac_lib_var=yes"
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15095 eval "ac_cv_lib_$ac_lib_var=no"
15098 LIBS="$ac_save_LIBS"
15101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15102 echo "$ac_t""yes" 1>&6
15105 echo "$ac_t""no" 1>&6
15109 if test $have_termcap = yes ; then
15110 cat >> confdefs.h <<\EOF
15111 #define HAVE_TERMCAP 1
15114 ol_link_termcap=yes
15115 TERMCAP_LIBS=-ltermcap
15119 if test $ol_link_termcap = no ; then
15120 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
15121 echo "configure:15122: checking for initscr in -lncurses" >&5
15122 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
15123 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15124 echo $ac_n "(cached) $ac_c" 1>&6
15126 ac_save_LIBS="$LIBS"
15127 LIBS="-lncurses $LIBS"
15128 cat > conftest.$ac_ext <<EOF
15129 #line 15130 "configure"
15130 #include "confdefs.h"
15131 /* Override any gcc2 internal prototype to avoid an error. */
15132 /* We use char because int might match the return type of a gcc2
15133 builtin and then its argument prototype would still apply. */
15140 if { (eval echo configure:15141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15142 eval "ac_cv_lib_$ac_lib_var=yes"
15144 echo "configure: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15147 eval "ac_cv_lib_$ac_lib_var=no"
15150 LIBS="$ac_save_LIBS"
15153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15154 echo "$ac_t""yes" 1>&6
15157 echo "$ac_t""no" 1>&6
15161 if test $have_ncurses = yes ; then
15162 cat >> confdefs.h <<\EOF
15163 #define HAVE_NCURSES 1
15166 ol_link_termcap=yes
15167 TERMCAP_LIBS=-lncurses
15171 if test $ol_link_termcap = no ; then
15172 cat >> confdefs.h <<\EOF
15173 #define NO_TERMCAP 1
15181 if test $ol_with_cyrus_sasl != no ; then
15182 for ac_hdr in sasl.h
15184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15186 echo "configure:15187: checking for $ac_hdr" >&5
15187 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15188 echo $ac_n "(cached) $ac_c" 1>&6
15190 cat > conftest.$ac_ext <<EOF
15191 #line 15192 "configure"
15192 #include "confdefs.h"
15195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15196 { (eval echo configure:15197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15198 if test -z "$ac_err"; then
15200 eval "ac_cv_header_$ac_safe=yes"
15203 echo "configure: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15206 eval "ac_cv_header_$ac_safe=no"
15210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15211 echo "$ac_t""yes" 1>&6
15212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15213 cat >> confdefs.h <<EOF
15214 #define $ac_tr_hdr 1
15218 echo "$ac_t""no" 1>&6
15223 if test $ac_cv_header_sasl_h = yes ; then
15224 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
15225 echo "configure:15226: checking for sasl_client_init in -lsasl" >&5
15226 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
15227 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15228 echo $ac_n "(cached) $ac_c" 1>&6
15230 ac_save_LIBS="$LIBS"
15231 LIBS="-lsasl $LIBS"
15232 cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 /* Override any gcc2 internal prototype to avoid an error. */
15236 /* We use char because int might match the return type of a gcc2
15237 builtin and then its argument prototype would still apply. */
15238 char sasl_client_init();
15244 if { (eval echo configure:15245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15246 eval "ac_cv_lib_$ac_lib_var=yes"
15248 echo "configure: failed program was:" >&5
15249 cat conftest.$ac_ext >&5
15251 eval "ac_cv_lib_$ac_lib_var=no"
15254 LIBS="$ac_save_LIBS"
15257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15258 echo "$ac_t""yes" 1>&6
15259 have_cyrus_sasl=yes
15261 echo "$ac_t""no" 1>&6
15266 if test $have_cyrus_sasl != no ; then
15268 cat >> confdefs.h <<\EOF
15269 #define HAVE_CYRUS_SASL 1
15276 if test $ol_link_sasl = no ; then
15277 if test $ol_with_cyrus_sasl != auto ; then
15278 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15280 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15281 echo "configure: warning: SASL authentication not supported!" 1>&2
15282 if test $ol_link_tls = no ; then
15283 echo "configure: warning: Strong authentication not supported!" 1>&2
15287 elif test $ol_enable_spasswd != no ; then
15288 ol_link_spasswd=yes
15292 echo "configure: warning: SASL authentication not supported!" 1>&2
15293 if test $ol_link_tls = no ; then
15294 echo "configure: warning: Strong authentication not supported!" 1>&2
15298 if test $cross_compiling != yes ; then
15300 if test -r /dev/urandom ; then
15301 dev="/dev/urandom";
15302 elif test -r /idev/urandom ; then
15303 dev="/idev/urandom";
15304 elif test -r /dev/srandom ; then
15305 dev="/dev/srandom";
15306 elif test -r /dev/random ; then
15308 elif test -r /idev/random ; then
15309 dev="/idev/random";
15312 if test $dev != no ; then
15313 cat >> confdefs.h <<EOF
15314 #define URANDOM_DEVICE "$dev"
15321 if test $ol_with_fetch != no ; then
15323 LIBS="-lfetch -lcom_err $LIBS"
15324 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15325 echo "configure:15326: checking fetch(3) library" >&5
15326 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15334 #include <sys/param.h>
15338 struct url *u = fetchParseURL("file:///");
15341 if { (eval echo configure:15342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 ol_cv_lib_fetch=yes
15345 echo "configure: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15353 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15355 if test $ol_cv_lib_fetch != no ; then
15356 ol_link_fetch="-lfetch -lcom_err"
15357 cat >> confdefs.h <<\EOF
15358 #define HAVE_FETCH 1
15364 if test $ol_cv_lib_fetch != no ; then
15365 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15366 ol_link_fetch=freebsd
15368 elif test $ol_with_fetch != auto ; then
15369 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15373 ol_link_readline=no
15374 if test $ol_with_readline != no ; then
15375 for ac_hdr in readline/readline.h readline/history.h
15377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15379 echo "configure:15380: checking for $ac_hdr" >&5
15380 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15381 echo $ac_n "(cached) $ac_c" 1>&6
15383 cat > conftest.$ac_ext <<EOF
15384 #line 15385 "configure"
15385 #include "confdefs.h"
15388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15389 { (eval echo configure:15390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15391 if test -z "$ac_err"; then
15393 eval "ac_cv_header_$ac_safe=yes"
15396 echo "configure: failed program was:" >&5
15397 cat conftest.$ac_ext >&5
15399 eval "ac_cv_header_$ac_safe=no"
15403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15404 echo "$ac_t""yes" 1>&6
15405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15406 cat >> confdefs.h <<EOF
15407 #define $ac_tr_hdr 1
15411 echo "$ac_t""no" 1>&6
15416 if test $ac_cv_header_readline_readline_h = yes ; then
15418 LIBS="$TERMCAP_LIBS $LIBS"
15419 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15420 echo "configure:15421: checking for readline in -lreadline" >&5
15421 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15423 echo $ac_n "(cached) $ac_c" 1>&6
15425 ac_save_LIBS="$LIBS"
15426 LIBS="-lreadline $LIBS"
15427 cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 /* Override any gcc2 internal prototype to avoid an error. */
15431 /* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15439 if { (eval echo configure:15440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15441 eval "ac_cv_lib_$ac_lib_var=yes"
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15446 eval "ac_cv_lib_$ac_lib_var=no"
15449 LIBS="$ac_save_LIBS"
15452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15453 echo "$ac_t""yes" 1>&6
15456 echo "$ac_t""no" 1>&6
15462 if test $have_readline = yes ; then
15463 ol_with_readline=found
15464 ol_link_readline=yes
15466 READLINE_LIBS="-lreadline"
15471 if test $ol_link_readline = yes ; then
15472 cat >> confdefs.h <<\EOF
15473 #define HAVE_READLINE 1
15479 if test $ol_enable_crypt != no ; then
15480 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15481 echo "configure:15482: checking for crypt" >&5
15482 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15483 echo $ac_n "(cached) $ac_c" 1>&6
15485 cat > conftest.$ac_ext <<EOF
15486 #line 15487 "configure"
15487 #include "confdefs.h"
15488 /* System header to define __stub macros and hopefully few prototypes,
15489 which can conflict with char crypt(); below. */
15490 #include <assert.h>
15491 /* Override any gcc2 internal prototype to avoid an error. */
15492 /* We use char because int might match the return type of a gcc2
15493 builtin and then its argument prototype would still apply. */
15499 /* The GNU C library defines this for functions which it implements
15500 to always fail with ENOSYS. Some functions are actually named
15501 something starting with __ and the normal name is an alias. */
15502 #if defined (__stub_crypt) || defined (__stub___crypt)
15510 if { (eval echo configure:15511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15512 eval "ac_cv_func_crypt=yes"
15514 echo "configure: failed program was:" >&5
15515 cat conftest.$ac_ext >&5
15517 eval "ac_cv_func_crypt=no"
15522 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15523 echo "$ac_t""yes" 1>&6
15526 echo "$ac_t""no" 1>&6
15528 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15529 echo "configure:15530: checking for crypt in -lcrypt" >&5
15530 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15531 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15532 echo $ac_n "(cached) $ac_c" 1>&6
15534 ac_save_LIBS="$LIBS"
15535 LIBS="-lcrypt $LIBS"
15536 cat > conftest.$ac_ext <<EOF
15537 #line 15538 "configure"
15538 #include "confdefs.h"
15539 /* Override any gcc2 internal prototype to avoid an error. */
15540 /* We use char because int might match the return type of a gcc2
15541 builtin and then its argument prototype would still apply. */
15548 if { (eval echo configure:15549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15550 eval "ac_cv_lib_$ac_lib_var=yes"
15552 echo "configure: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15555 eval "ac_cv_lib_$ac_lib_var=no"
15558 LIBS="$ac_save_LIBS"
15561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15562 echo "$ac_t""yes" 1>&6
15563 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15566 echo "$ac_t""no" 1>&6
15573 if test $have_crypt = yes ; then
15574 cat >> confdefs.h <<\EOF
15575 #define HAVE_CRYPT 1
15579 echo "configure: warning: could not find crypt" 1>&2
15580 if test $ol_enable_crypt = yes ; then
15581 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15584 echo "configure: warning: disabling crypt support" 1>&2
15589 if test $ol_enable_proctitle != no ; then
15590 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15591 echo "configure:15592: checking for setproctitle" >&5
15592 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15593 echo $ac_n "(cached) $ac_c" 1>&6
15595 cat > conftest.$ac_ext <<EOF
15596 #line 15597 "configure"
15597 #include "confdefs.h"
15598 /* System header to define __stub macros and hopefully few prototypes,
15599 which can conflict with char setproctitle(); below. */
15600 #include <assert.h>
15601 /* Override any gcc2 internal prototype to avoid an error. */
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15604 char setproctitle();
15609 /* The GNU C library defines this for functions which it implements
15610 to always fail with ENOSYS. Some functions are actually named
15611 something starting with __ and the normal name is an alias. */
15612 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15620 if { (eval echo configure:15621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15622 eval "ac_cv_func_setproctitle=yes"
15624 echo "configure: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15627 eval "ac_cv_func_setproctitle=no"
15632 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15633 echo "$ac_t""yes" 1>&6
15634 have_setproctitle=yes
15636 echo "$ac_t""no" 1>&6
15638 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15639 echo "configure:15640: checking for setproctitle in -lutil" >&5
15640 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15642 echo $ac_n "(cached) $ac_c" 1>&6
15644 ac_save_LIBS="$LIBS"
15645 LIBS="-lutil $LIBS"
15646 cat > conftest.$ac_ext <<EOF
15647 #line 15648 "configure"
15648 #include "confdefs.h"
15649 /* Override any gcc2 internal prototype to avoid an error. */
15650 /* We use char because int might match the return type of a gcc2
15651 builtin and then its argument prototype would still apply. */
15652 char setproctitle();
15658 if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15660 eval "ac_cv_lib_$ac_lib_var=yes"
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15665 eval "ac_cv_lib_$ac_lib_var=no"
15668 LIBS="$ac_save_LIBS"
15671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15672 echo "$ac_t""yes" 1>&6
15673 have_setproctitle=yes
15674 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15676 echo "$ac_t""no" 1>&6
15677 have_setproctitle=no
15678 LIBOBJS="$LIBOBJS setproctitle.o"
15679 LIBSRCS="$LIBSRCS setproctitle.c"
15685 if test $have_setproctitle = yes ; then
15686 cat >> confdefs.h <<\EOF
15687 #define HAVE_SETPROCTITLE 1
15693 if test $ol_enable_slp != no ; then
15694 for ac_hdr in slp.h
15696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15698 echo "configure:15699: checking for $ac_hdr" >&5
15699 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15700 echo $ac_n "(cached) $ac_c" 1>&6
15702 cat > conftest.$ac_ext <<EOF
15703 #line 15704 "configure"
15704 #include "confdefs.h"
15707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15708 { (eval echo configure:15709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15710 if test -z "$ac_err"; then
15712 eval "ac_cv_header_$ac_safe=yes"
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15718 eval "ac_cv_header_$ac_safe=no"
15722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15723 echo "$ac_t""yes" 1>&6
15724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15725 cat >> confdefs.h <<EOF
15726 #define $ac_tr_hdr 1
15730 echo "$ac_t""no" 1>&6
15735 if test $ac_cv_header_slp_h = yes ; then
15736 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15737 echo "configure:15738: checking for SLPOpen in -lslp" >&5
15738 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15740 echo $ac_n "(cached) $ac_c" 1>&6
15742 ac_save_LIBS="$LIBS"
15744 cat > conftest.$ac_ext <<EOF
15745 #line 15746 "configure"
15746 #include "confdefs.h"
15747 /* Override any gcc2 internal prototype to avoid an error. */
15748 /* We use char because int might match the return type of a gcc2
15749 builtin and then its argument prototype would still apply. */
15756 if { (eval echo configure:15757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15758 eval "ac_cv_lib_$ac_lib_var=yes"
15760 echo "configure: failed program was:" >&5
15761 cat conftest.$ac_ext >&5
15763 eval "ac_cv_lib_$ac_lib_var=no"
15766 LIBS="$ac_save_LIBS"
15769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15770 echo "$ac_t""yes" 1>&6
15773 echo "$ac_t""no" 1>&6
15777 if test $have_slp = yes ; then
15778 cat >> confdefs.h <<\EOF
15782 SLAPD_SLP_LIBS=-lslp
15785 elif test $ol_enable_slp = yes ; then
15786 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15790 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15791 echo "configure:15792: checking for ANSI C header files" >&5
15792 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15793 echo $ac_n "(cached) $ac_c" 1>&6
15795 cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15798 #include <stdlib.h>
15799 #include <stdarg.h>
15800 #include <string.h>
15803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15804 { (eval echo configure:15805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15806 if test -z "$ac_err"; then
15808 ac_cv_header_stdc=yes
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15814 ac_cv_header_stdc=no
15818 if test $ac_cv_header_stdc = yes; then
15819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15820 cat > conftest.$ac_ext <<EOF
15821 #line 15822 "configure"
15822 #include "confdefs.h"
15823 #include <string.h>
15825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15826 egrep "memchr" >/dev/null 2>&1; then
15830 ac_cv_header_stdc=no
15836 if test $ac_cv_header_stdc = yes; then
15837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15838 cat > conftest.$ac_ext <<EOF
15839 #line 15840 "configure"
15840 #include "confdefs.h"
15841 #include <stdlib.h>
15843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15844 egrep "free" >/dev/null 2>&1; then
15848 ac_cv_header_stdc=no
15854 if test $ac_cv_header_stdc = yes; then
15855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15856 if test "$cross_compiling" = yes; then
15859 cat > conftest.$ac_ext <<EOF
15860 #line 15861 "configure"
15861 #include "confdefs.h"
15863 #if ((' ' & 0x0FF) == 0x020)
15864 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15865 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15867 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15868 || ('j' <= (c) && (c) <= 'r') \
15869 || ('s' <= (c) && (c) <= 'z'))
15870 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15873 int main () { int i; for (i = 0; i < 256; i++)
15874 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15878 if { (eval echo configure:15879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15885 ac_cv_header_stdc=no
15893 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15894 if test $ac_cv_header_stdc = yes; then
15895 cat >> confdefs.h <<\EOF
15896 #define STDC_HEADERS 1
15901 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15902 echo "configure:15903: checking for mode_t" >&5
15903 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15904 echo $ac_n "(cached) $ac_c" 1>&6
15906 cat > conftest.$ac_ext <<EOF
15907 #line 15908 "configure"
15908 #include "confdefs.h"
15909 #include <sys/types.h>
15911 #include <stdlib.h>
15912 #include <stddef.h>
15916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15917 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15919 eval "ac_cv_type_mode_t=yes"
15922 eval "ac_cv_type_mode_t=no"
15927 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15928 echo "$ac_t""yes" 1>&6
15930 echo "$ac_t""no" 1>&6
15931 cat >> confdefs.h <<EOF
15937 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15938 echo "configure:15939: checking for off_t" >&5
15939 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15940 echo $ac_n "(cached) $ac_c" 1>&6
15942 cat > conftest.$ac_ext <<EOF
15943 #line 15944 "configure"
15944 #include "confdefs.h"
15945 #include <sys/types.h>
15947 #include <stdlib.h>
15948 #include <stddef.h>
15952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15953 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15955 eval "ac_cv_type_off_t=yes"
15958 eval "ac_cv_type_off_t=no"
15963 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15964 echo "$ac_t""yes" 1>&6
15966 echo "$ac_t""no" 1>&6
15967 cat >> confdefs.h <<EOF
15973 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15974 echo "configure:15975: checking for pid_t" >&5
15975 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15978 cat > conftest.$ac_ext <<EOF
15979 #line 15980 "configure"
15980 #include "confdefs.h"
15981 #include <sys/types.h>
15983 #include <stdlib.h>
15984 #include <stddef.h>
15988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15989 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15991 eval "ac_cv_type_pid_t=yes"
15994 eval "ac_cv_type_pid_t=no"
15999 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
16000 echo "$ac_t""yes" 1>&6
16002 echo "$ac_t""no" 1>&6
16003 cat >> confdefs.h <<EOF
16009 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
16010 echo "configure:16011: checking for ptrdiff_t" >&5
16011 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
16012 echo $ac_n "(cached) $ac_c" 1>&6
16014 cat > conftest.$ac_ext <<EOF
16015 #line 16016 "configure"
16016 #include "confdefs.h"
16017 #include <stddef.h>
16022 if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16024 am_cv_type_ptrdiff_t=yes
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16029 am_cv_type_ptrdiff_t=no
16034 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
16035 if test $am_cv_type_ptrdiff_t = yes; then
16036 cat >> confdefs.h <<\EOF
16037 #define HAVE_PTRDIFF_T 1
16042 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
16043 echo "configure:16044: checking return type of signal handlers" >&5
16044 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
16045 echo $ac_n "(cached) $ac_c" 1>&6
16047 cat > conftest.$ac_ext <<EOF
16048 #line 16049 "configure"
16049 #include "confdefs.h"
16050 #include <sys/types.h>
16051 #include <signal.h>
16056 extern "C" void (*signal (int, void (*)(int)))(int);
16058 void (*signal ()) ();
16065 if { (eval echo configure:16066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16067 ac_cv_type_signal=void
16069 echo "configure: failed program was:" >&5
16070 cat conftest.$ac_ext >&5
16072 ac_cv_type_signal=int
16077 echo "$ac_t""$ac_cv_type_signal" 1>&6
16078 cat >> confdefs.h <<EOF
16079 #define RETSIGTYPE $ac_cv_type_signal
16083 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16084 echo "configure:16085: checking for size_t" >&5
16085 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
16086 echo $ac_n "(cached) $ac_c" 1>&6
16088 cat > conftest.$ac_ext <<EOF
16089 #line 16090 "configure"
16090 #include "confdefs.h"
16091 #include <sys/types.h>
16093 #include <stdlib.h>
16094 #include <stddef.h>
16098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16099 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16101 eval "ac_cv_type_size_t=yes"
16104 eval "ac_cv_type_size_t=no"
16109 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
16110 echo "$ac_t""yes" 1>&6
16112 echo "$ac_t""no" 1>&6
16113 cat >> confdefs.h <<EOF
16114 #define size_t unsigned
16120 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
16121 echo "configure:16122: checking for ssize_t" >&5
16122 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16125 cat > conftest.$ac_ext <<EOF
16126 #line 16127 "configure"
16127 #include "confdefs.h"
16128 #include <sys/types.h>
16130 #include <stdlib.h>
16131 #include <stddef.h>
16135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16136 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16138 eval "ac_cv_type_ssize_t=yes"
16141 eval "ac_cv_type_ssize_t=no"
16146 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
16147 echo "$ac_t""yes" 1>&6
16149 echo "$ac_t""no" 1>&6
16150 cat >> confdefs.h <<EOF
16151 #define ssize_t signed int
16156 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
16157 echo "configure:16158: checking for caddr_t" >&5
16158 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
16159 echo $ac_n "(cached) $ac_c" 1>&6
16161 cat > conftest.$ac_ext <<EOF
16162 #line 16163 "configure"
16163 #include "confdefs.h"
16164 #include <sys/types.h>
16166 #include <stdlib.h>
16167 #include <stddef.h>
16171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16172 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16174 eval "ac_cv_type_caddr_t=yes"
16177 eval "ac_cv_type_caddr_t=no"
16182 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
16183 echo "$ac_t""yes" 1>&6
16185 echo "$ac_t""no" 1>&6
16186 cat >> confdefs.h <<EOF
16187 #define caddr_t char *
16193 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
16194 echo "configure:16195: checking for socklen_t" >&5
16195 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
16196 echo $ac_n "(cached) $ac_c" 1>&6
16198 cat > conftest.$ac_ext <<EOF
16199 #line 16200 "configure"
16200 #include "confdefs.h"
16202 #ifdef HAVE_SYS_TYPES_H
16203 #include <sys/types.h>
16205 #ifdef HAVE_SYS_SOCKET_H
16206 #include <sys/socket.h>
16213 if { (eval echo configure:16214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16215 ol_cv_type_socklen_t=yes
16217 echo "configure: failed program was:" >&5
16218 cat conftest.$ac_ext >&5
16220 ol_cv_type_socklen_t=no
16225 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
16226 if test $ol_cv_type_socklen_t = no; then
16227 cat >> confdefs.h <<\EOF
16228 #define socklen_t int
16233 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
16234 echo "configure:16235: checking for member st_blksize in aggregate type struct stat" >&5
16235 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
16236 echo $ac_n "(cached) $ac_c" 1>&6
16238 cat > conftest.$ac_ext <<EOF
16239 #line 16240 "configure"
16240 #include "confdefs.h"
16241 #include <sys/types.h>
16242 #include <sys/stat.h>
16244 struct stat foo; foo.st_blksize;
16247 if { (eval echo configure:16248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16249 ac_cv_c_struct_member_st_blksize=yes
16251 echo "configure: failed program was:" >&5
16252 cat conftest.$ac_ext >&5
16254 ac_cv_c_struct_member_st_blksize=no
16259 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16260 st_blksize="$ac_cv_c_struct_member_st_blksize"
16261 if test $ac_cv_c_struct_member_st_blksize = yes; then
16262 cat >> confdefs.h <<\EOF
16263 #define HAVE_ST_BLKSIZE 1
16268 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16269 echo "configure:16270: checking whether time.h and sys/time.h may both be included" >&5
16270 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16271 echo $ac_n "(cached) $ac_c" 1>&6
16273 cat > conftest.$ac_ext <<EOF
16274 #line 16275 "configure"
16275 #include "confdefs.h"
16276 #include <sys/types.h>
16277 #include <sys/time.h>
16283 if { (eval echo configure:16284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16285 ac_cv_header_time=yes
16287 echo "configure: failed program was:" >&5
16288 cat conftest.$ac_ext >&5
16290 ac_cv_header_time=no
16295 echo "$ac_t""$ac_cv_header_time" 1>&6
16296 if test $ac_cv_header_time = yes; then
16297 cat >> confdefs.h <<\EOF
16298 #define TIME_WITH_SYS_TIME 1
16303 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16304 echo "configure:16305: checking whether struct tm is in sys/time.h or time.h" >&5
16305 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16308 cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 #include <sys/types.h>
16314 struct tm *tp; tp->tm_sec;
16317 if { (eval echo configure:16318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16319 ac_cv_struct_tm=time.h
16321 echo "configure: failed program was:" >&5
16322 cat conftest.$ac_ext >&5
16324 ac_cv_struct_tm=sys/time.h
16329 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16330 if test $ac_cv_struct_tm = sys/time.h; then
16331 cat >> confdefs.h <<\EOF
16332 #define TM_IN_SYS_TIME 1
16337 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16338 echo "configure:16339: checking for uid_t in sys/types.h" >&5
16339 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16340 echo $ac_n "(cached) $ac_c" 1>&6
16342 cat > conftest.$ac_ext <<EOF
16343 #line 16344 "configure"
16344 #include "confdefs.h"
16345 #include <sys/types.h>
16347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16348 egrep "uid_t" >/dev/null 2>&1; then
16350 ac_cv_type_uid_t=yes
16353 ac_cv_type_uid_t=no
16359 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16360 if test $ac_cv_type_uid_t = no; then
16361 cat >> confdefs.h <<\EOF
16365 cat >> confdefs.h <<\EOF
16371 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16372 echo "configure:16373: checking for sig_atomic_t" >&5
16373 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16374 echo $ac_n "(cached) $ac_c" 1>&6
16376 cat > conftest.$ac_ext <<EOF
16377 #line 16378 "configure"
16378 #include "confdefs.h"
16379 #include <signal.h>
16381 sig_atomic_t atomic;
16384 if { (eval echo configure:16385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16386 ol_cv_type_sig_atomic_t=yes
16388 echo "configure: failed program was:" >&5
16389 cat conftest.$ac_ext >&5
16391 ol_cv_type_sig_atomic_t=no
16396 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16397 if test $ol_cv_type_sig_atomic_t = no; then
16398 cat >> confdefs.h <<\EOF
16399 #define sig_atomic_t int
16406 # test for pw_gecos in struct passwd
16407 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16408 echo "configure:16409: checking struct passwd for pw_gecos" >&5
16409 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16410 echo $ac_n "(cached) $ac_c" 1>&6
16413 cat > conftest.$ac_ext <<EOF
16414 #line 16415 "configure"
16415 #include "confdefs.h"
16420 pwd.pw_gecos = pwd.pw_name;
16424 if { (eval echo configure:16425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16426 ol_cv_struct_passwd_pw_gecos=yes
16428 echo "configure: failed program was:" >&5
16429 cat conftest.$ac_ext >&5
16431 ol_cv_struct_passwd_pw_gecos=no
16436 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16437 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16438 cat >> confdefs.h <<\EOF
16439 #define HAVE_PW_GECOS 1
16444 # test for pw_passwd in struct passwd
16445 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16446 echo "configure:16447: checking struct passwd for pw_passwd" >&5
16447 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16448 echo $ac_n "(cached) $ac_c" 1>&6
16451 cat > conftest.$ac_ext <<EOF
16452 #line 16453 "configure"
16453 #include "confdefs.h"
16458 pwd.pw_passwd = pwd.pw_name;
16462 if { (eval echo configure:16463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16464 ol_cv_struct_passwd_pw_passwd=yes
16466 echo "configure: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16469 ol_cv_struct_passwd_pw_passwd=no
16474 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16475 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16476 cat >> confdefs.h <<\EOF
16477 #define HAVE_PW_PASSWD 1
16483 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16484 echo "configure:16485: checking if toupper() requires islower()" >&5
16485 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16486 echo $ac_n "(cached) $ac_c" 1>&6
16489 if test "$cross_compiling" = yes; then
16490 ol_cv_c_upper_lower=safe
16492 cat > conftest.$ac_ext <<EOF
16493 #line 16494 "configure"
16494 #include "confdefs.h"
16499 if ('C' == toupper('C'))
16505 if { (eval echo configure:16506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16507 ol_cv_c_upper_lower=no
16509 echo "configure: failed program was:" >&5
16510 cat conftest.$ac_ext >&5
16512 ol_cv_c_upper_lower=yes
16519 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16520 if test $ol_cv_c_upper_lower != no ; then
16521 cat >> confdefs.h <<\EOF
16522 #define C_UPPER_LOWER 1
16527 echo $ac_n "checking for working const""... $ac_c" 1>&6
16528 echo "configure:16529: checking for working const" >&5
16529 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16530 echo $ac_n "(cached) $ac_c" 1>&6
16532 cat > conftest.$ac_ext <<EOF
16533 #line 16534 "configure"
16534 #include "confdefs.h"
16538 /* Ultrix mips cc rejects this. */
16539 typedef int charset[2]; const charset x;
16540 /* SunOS 4.1.1 cc rejects this. */
16541 char const *const *ccp;
16543 /* NEC SVR4.0.2 mips cc rejects this. */
16544 struct point {int x, y;};
16545 static struct point const zero = {0,0};
16546 /* AIX XL C 1.02.0.0 rejects this.
16547 It does not let you subtract one const X* pointer from another in an arm
16548 of an if-expression whose if-part is not a constant expression */
16549 const char *g = "string";
16550 ccp = &g + (g ? g-g : 0);
16551 /* HPUX 7.0 cc rejects these. */
16554 ccp = (char const *const *) p;
16555 { /* SCO 3.2v4 cc rejects this. */
16557 char const *s = 0 ? (char *) 0 : (char const *) 0;
16561 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16562 int x[] = {25, 17};
16563 const int *foo = &x[0];
16566 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16567 typedef const int *iptr;
16571 { /* AIX XL C 1.02.0.0 rejects this saying
16572 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16573 struct s { int j; const int *ap[3]; };
16574 struct s *b; b->j = 5;
16576 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16577 const int foo = 10;
16582 if { (eval echo configure:16583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16586 echo "configure: failed program was:" >&5
16587 cat conftest.$ac_ext >&5
16594 echo "$ac_t""$ac_cv_c_const" 1>&6
16595 if test $ac_cv_c_const = no; then
16596 cat >> confdefs.h <<\EOF
16602 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16603 echo "configure:16604: checking if compiler understands volatile" >&5
16604 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16612 volatile int a; int * volatile b = x ? &y : &z;
16613 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16617 if { (eval echo configure:16618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16619 ol_cv_c_volatile=yes
16621 echo "configure: failed program was:" >&5
16622 cat conftest.$ac_ext >&5
16624 ol_cv_c_volatile=no
16629 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16630 if test $ol_cv_c_volatile = yes; then
16633 cat >> confdefs.h <<\EOF
16640 if test $cross_compiling = yes ; then
16641 cat >> confdefs.h <<\EOF
16642 #define CROSS_COMPILING 1
16646 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16647 echo "configure:16648: checking whether byte ordering is bigendian" >&5
16648 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16649 echo $ac_n "(cached) $ac_c" 1>&6
16651 ac_cv_c_bigendian=unknown
16652 # See if sys/param.h defines the BYTE_ORDER macro.
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16656 #include <sys/types.h>
16657 #include <sys/param.h>
16660 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16661 bogus endian macros
16665 if { (eval echo configure:16666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16667 # It does; now see whether it defined to BIG_ENDIAN or not.
16668 cat > conftest.$ac_ext <<EOF
16669 #line 16670 "configure"
16670 #include "confdefs.h"
16671 #include <sys/types.h>
16672 #include <sys/param.h>
16675 #if BYTE_ORDER != BIG_ENDIAN
16680 if { (eval echo configure:16681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16682 ac_cv_c_bigendian=yes
16684 echo "configure: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16687 ac_cv_c_bigendian=no
16691 echo "configure: failed program was:" >&5
16692 cat conftest.$ac_ext >&5
16695 if test $ac_cv_c_bigendian = unknown; then
16696 if test "$cross_compiling" = yes; then
16697 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16699 cat > conftest.$ac_ext <<EOF
16700 #line 16701 "configure"
16701 #include "confdefs.h"
16703 /* Are we little or big endian? From Harbison&Steele. */
16707 char c[sizeof (long)];
16710 exit (u.c[sizeof (long) - 1] == 1);
16713 if { (eval echo configure:16714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16715 ac_cv_c_bigendian=no
16717 echo "configure: failed program was:" >&5
16718 cat conftest.$ac_ext >&5
16720 ac_cv_c_bigendian=yes
16728 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16729 if test $ac_cv_c_bigendian = yes; then
16730 cat >> confdefs.h <<\EOF
16731 #define WORDS_BIGENDIAN 1
16738 echo $ac_n "checking size of short""... $ac_c" 1>&6
16739 echo "configure:16740: checking size of short" >&5
16740 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
16743 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16744 cat > conftest.$ac_ext <<EOF
16745 #line 16746 "configure"
16746 #include "confdefs.h"
16747 #include "confdefs.h"
16748 #include <sys/types.h>
16752 switch (0) case 0: case (sizeof (short) == $ac_size):;
16755 if { (eval echo configure:16756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16757 ac_cv_sizeof_short=$ac_size
16759 echo "configure: failed program was:" >&5
16760 cat conftest.$ac_ext >&5
16763 if test x$ac_cv_sizeof_short != x ; then break; fi
16768 if test x$ac_cv_sizeof_short = x ; then
16769 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16771 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16772 cat >> confdefs.h <<EOF
16773 #define SIZEOF_SHORT $ac_cv_sizeof_short
16777 echo $ac_n "checking size of int""... $ac_c" 1>&6
16778 echo "configure:16779: checking size of int" >&5
16779 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16780 echo $ac_n "(cached) $ac_c" 1>&6
16782 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16783 cat > conftest.$ac_ext <<EOF
16784 #line 16785 "configure"
16785 #include "confdefs.h"
16786 #include "confdefs.h"
16787 #include <sys/types.h>
16791 switch (0) case 0: case (sizeof (int) == $ac_size):;
16794 if { (eval echo configure:16795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16796 ac_cv_sizeof_int=$ac_size
16798 echo "configure: failed program was:" >&5
16799 cat conftest.$ac_ext >&5
16802 if test x$ac_cv_sizeof_int != x ; then break; fi
16807 if test x$ac_cv_sizeof_int = x ; then
16808 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16810 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16811 cat >> confdefs.h <<EOF
16812 #define SIZEOF_INT $ac_cv_sizeof_int
16816 echo $ac_n "checking size of long""... $ac_c" 1>&6
16817 echo "configure:16818: checking size of long" >&5
16818 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16819 echo $ac_n "(cached) $ac_c" 1>&6
16821 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16822 cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16825 #include "confdefs.h"
16826 #include <sys/types.h>
16830 switch (0) case 0: case (sizeof (long) == $ac_size):;
16833 if { (eval echo configure:16834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16835 ac_cv_sizeof_long=$ac_size
16837 echo "configure: failed program was:" >&5
16838 cat conftest.$ac_ext >&5
16841 if test x$ac_cv_sizeof_long != x ; then break; fi
16846 if test x$ac_cv_sizeof_long = x ; then
16847 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16849 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16850 cat >> confdefs.h <<EOF
16851 #define SIZEOF_LONG $ac_cv_sizeof_long
16856 if test "$ac_cv_sizeof_int" -lt 4 ; then
16857 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16859 cat >> confdefs.h <<\EOF
16860 #define LBER_INT_T long
16864 cat >> confdefs.h <<\EOF
16865 #define LBER_INT_T int
16870 cat >> confdefs.h <<\EOF
16871 #define LBER_LEN_T long
16874 cat >> confdefs.h <<\EOF
16875 #define LBER_SOCKET_T int
16878 cat >> confdefs.h <<\EOF
16879 #define LBER_TAG_T long
16883 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16884 echo "configure:16885: checking for 8-bit clean memcmp" >&5
16885 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16886 echo $ac_n "(cached) $ac_c" 1>&6
16888 if test "$cross_compiling" = yes; then
16889 ac_cv_func_memcmp_clean=no
16891 cat > conftest.$ac_ext <<EOF
16892 #line 16893 "configure"
16893 #include "confdefs.h"
16897 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16898 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16902 if { (eval echo configure:16903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16904 ac_cv_func_memcmp_clean=yes
16906 echo "configure: failed program was:" >&5
16907 cat conftest.$ac_ext >&5
16909 ac_cv_func_memcmp_clean=no
16916 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16917 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16919 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16920 echo "configure:16921: checking for strftime" >&5
16921 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16927 /* System header to define __stub macros and hopefully few prototypes,
16928 which can conflict with char strftime(); below. */
16929 #include <assert.h>
16930 /* Override any gcc2 internal prototype to avoid an error. */
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined (__stub_strftime) || defined (__stub___strftime)
16949 if { (eval echo configure:16950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16951 eval "ac_cv_func_strftime=yes"
16953 echo "configure: failed program was:" >&5
16954 cat conftest.$ac_ext >&5
16956 eval "ac_cv_func_strftime=no"
16961 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16962 echo "$ac_t""yes" 1>&6
16963 cat >> confdefs.h <<\EOF
16964 #define HAVE_STRFTIME 1
16968 echo "$ac_t""no" 1>&6
16969 # strftime is in -lintl on SCO UNIX.
16970 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16971 echo "configure:16972: checking for strftime in -lintl" >&5
16972 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16973 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16974 echo $ac_n "(cached) $ac_c" 1>&6
16976 ac_save_LIBS="$LIBS"
16977 LIBS="-lintl $LIBS"
16978 cat > conftest.$ac_ext <<EOF
16979 #line 16980 "configure"
16980 #include "confdefs.h"
16981 /* Override any gcc2 internal prototype to avoid an error. */
16982 /* We use char because int might match the return type of a gcc2
16983 builtin and then its argument prototype would still apply. */
16990 if { (eval echo configure:16991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16992 eval "ac_cv_lib_$ac_lib_var=yes"
16994 echo "configure: failed program was:" >&5
16995 cat conftest.$ac_ext >&5
16997 eval "ac_cv_lib_$ac_lib_var=no"
17000 LIBS="$ac_save_LIBS"
17003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17004 echo "$ac_t""yes" 1>&6
17005 cat >> confdefs.h <<\EOF
17006 #define HAVE_STRFTIME 1
17009 LIBS="-lintl $LIBS"
17011 echo "$ac_t""no" 1>&6
17017 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
17018 echo "configure:17019: checking for inet_aton()" >&5
17019 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
17020 echo $ac_n "(cached) $ac_c" 1>&6
17022 cat > conftest.$ac_ext <<EOF
17023 #line 17024 "configure"
17024 #include "confdefs.h"
17026 #ifdef HAVE_SYS_TYPES_H
17027 # include <sys/types.h>
17029 #ifdef HAVE_SYS_SOCKET_H
17030 # include <sys/socket.h>
17031 # ifdef HAVE_SYS_SELECT_H
17032 # include <sys/select.h>
17034 # include <netinet/in.h>
17035 # ifdef HAVE_ARPA_INET_H
17036 # include <arpa/inet.h>
17042 int rc = inet_aton( "255.255.255.255", &in );
17045 if { (eval echo configure:17046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17047 ol_cv_func_inet_aton=yes
17049 echo "configure: failed program was:" >&5
17050 cat conftest.$ac_ext >&5
17052 ol_cv_func_inet_aton=no
17057 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
17058 if test $ol_cv_func_inet_aton != no; then
17059 cat >> confdefs.h <<\EOF
17060 #define HAVE_INET_ATON 1
17066 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
17067 echo "configure:17068: checking for _spawnlp" >&5
17068 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
17069 echo $ac_n "(cached) $ac_c" 1>&6
17071 cat > conftest.$ac_ext <<EOF
17072 #line 17073 "configure"
17073 #include "confdefs.h"
17074 /* System header to define __stub macros and hopefully few prototypes,
17075 which can conflict with char _spawnlp(); below. */
17076 #include <assert.h>
17077 /* Override any gcc2 internal prototype to avoid an error. */
17078 /* We use char because int might match the return type of a gcc2
17079 builtin and then its argument prototype would still apply. */
17085 /* The GNU C library defines this for functions which it implements
17086 to always fail with ENOSYS. Some functions are actually named
17087 something starting with __ and the normal name is an alias. */
17088 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
17096 if { (eval echo configure:17097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17098 eval "ac_cv_func__spawnlp=yes"
17100 echo "configure: failed program was:" >&5
17101 cat conftest.$ac_ext >&5
17103 eval "ac_cv_func__spawnlp=no"
17108 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
17109 echo "$ac_t""yes" 1>&6
17110 cat >> confdefs.h <<\EOF
17111 #define HAVE_SPAWNLP 1
17115 echo "$ac_t""no" 1>&6
17119 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
17120 echo "configure:17121: checking for _snprintf" >&5
17121 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
17122 echo $ac_n "(cached) $ac_c" 1>&6
17124 cat > conftest.$ac_ext <<EOF
17125 #line 17126 "configure"
17126 #include "confdefs.h"
17127 /* System header to define __stub macros and hopefully few prototypes,
17128 which can conflict with char _snprintf(); below. */
17129 #include <assert.h>
17130 /* Override any gcc2 internal prototype to avoid an error. */
17131 /* We use char because int might match the return type of a gcc2
17132 builtin and then its argument prototype would still apply. */
17138 /* The GNU C library defines this for functions which it implements
17139 to always fail with ENOSYS. Some functions are actually named
17140 something starting with __ and the normal name is an alias. */
17141 #if defined (__stub__snprintf) || defined (__stub____snprintf)
17149 if { (eval echo configure:17150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17151 eval "ac_cv_func__snprintf=yes"
17153 echo "configure: failed program was:" >&5
17154 cat conftest.$ac_ext >&5
17156 eval "ac_cv_func__snprintf=no"
17161 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
17162 echo "$ac_t""yes" 1>&6
17163 ac_cv_func_snprintf=yes
17164 cat >> confdefs.h <<\EOF
17165 #define snprintf _snprintf
17170 echo "$ac_t""no" 1>&6
17174 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
17175 echo "configure:17176: checking for _vsnprintf" >&5
17176 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
17177 echo $ac_n "(cached) $ac_c" 1>&6
17179 cat > conftest.$ac_ext <<EOF
17180 #line 17181 "configure"
17181 #include "confdefs.h"
17182 /* System header to define __stub macros and hopefully few prototypes,
17183 which can conflict with char _vsnprintf(); below. */
17184 #include <assert.h>
17185 /* Override any gcc2 internal prototype to avoid an error. */
17186 /* We use char because int might match the return type of a gcc2
17187 builtin and then its argument prototype would still apply. */
17193 /* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
17204 if { (eval echo configure:17205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17206 eval "ac_cv_func__vsnprintf=yes"
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17211 eval "ac_cv_func__vsnprintf=no"
17216 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
17217 echo "$ac_t""yes" 1>&6
17218 ac_cv_func_vsnprintf=yes
17219 cat >> confdefs.h <<\EOF
17220 #define vsnprintf _vsnprintf
17225 echo "$ac_t""no" 1>&6
17229 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17230 echo "configure:17231: checking for vprintf" >&5
17231 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
17232 echo $ac_n "(cached) $ac_c" 1>&6
17234 cat > conftest.$ac_ext <<EOF
17235 #line 17236 "configure"
17236 #include "confdefs.h"
17237 /* System header to define __stub macros and hopefully few prototypes,
17238 which can conflict with char vprintf(); below. */
17239 #include <assert.h>
17240 /* Override any gcc2 internal prototype to avoid an error. */
17241 /* We use char because int might match the return type of a gcc2
17242 builtin and then its argument prototype would still apply. */
17248 /* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17259 if { (eval echo configure:17260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17261 eval "ac_cv_func_vprintf=yes"
17263 echo "configure: failed program was:" >&5
17264 cat conftest.$ac_ext >&5
17266 eval "ac_cv_func_vprintf=no"
17271 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17272 echo "$ac_t""yes" 1>&6
17273 cat >> confdefs.h <<\EOF
17274 #define HAVE_VPRINTF 1
17278 echo "$ac_t""no" 1>&6
17281 if test "$ac_cv_func_vprintf" != yes; then
17282 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17283 echo "configure:17284: checking for _doprnt" >&5
17284 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17285 echo $ac_n "(cached) $ac_c" 1>&6
17287 cat > conftest.$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17290 /* System header to define __stub macros and hopefully few prototypes,
17291 which can conflict with char _doprnt(); below. */
17292 #include <assert.h>
17293 /* Override any gcc2 internal prototype to avoid an error. */
17294 /* We use char because int might match the return type of a gcc2
17295 builtin and then its argument prototype would still apply. */
17301 /* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17312 if { (eval echo configure:17313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17314 eval "ac_cv_func__doprnt=yes"
17316 echo "configure: failed program was:" >&5
17317 cat conftest.$ac_ext >&5
17319 eval "ac_cv_func__doprnt=no"
17324 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17325 echo "$ac_t""yes" 1>&6
17326 cat >> confdefs.h <<\EOF
17327 #define HAVE_DOPRNT 1
17331 echo "$ac_t""no" 1>&6
17337 if test $ac_cv_func_vprintf = yes ; then
17338 for ac_func in vsnprintf vsprintf
17340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17341 echo "configure:17342: checking for $ac_func" >&5
17342 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17343 echo $ac_n "(cached) $ac_c" 1>&6
17345 cat > conftest.$ac_ext <<EOF
17346 #line 17347 "configure"
17347 #include "confdefs.h"
17348 /* System header to define __stub macros and hopefully few prototypes,
17349 which can conflict with char $ac_func(); below. */
17350 #include <assert.h>
17351 /* Override any gcc2 internal prototype to avoid an error. */
17352 /* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17359 /* The GNU C library defines this for functions which it implements
17360 to always fail with ENOSYS. Some functions are actually named
17361 something starting with __ and the normal name is an alias. */
17362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17370 if { (eval echo configure:17371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17372 eval "ac_cv_func_$ac_func=yes"
17374 echo "configure: failed program was:" >&5
17375 cat conftest.$ac_ext >&5
17377 eval "ac_cv_func_$ac_func=no"
17382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17383 echo "$ac_t""yes" 1>&6
17384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17385 cat >> confdefs.h <<EOF
17386 #define $ac_tr_func 1
17390 echo "$ac_t""no" 1>&6
17448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17449 echo "configure:17450: checking for $ac_func" >&5
17450 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17451 echo $ac_n "(cached) $ac_c" 1>&6
17453 cat > conftest.$ac_ext <<EOF
17454 #line 17455 "configure"
17455 #include "confdefs.h"
17456 /* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func(); below. */
17458 #include <assert.h>
17459 /* Override any gcc2 internal prototype to avoid an error. */
17460 /* We use char because int might match the return type of a gcc2
17461 builtin and then its argument prototype would still apply. */
17467 /* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17478 if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17480 eval "ac_cv_func_$ac_func=yes"
17482 echo "configure: failed program was:" >&5
17483 cat conftest.$ac_ext >&5
17485 eval "ac_cv_func_$ac_func=no"
17490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17491 echo "$ac_t""yes" 1>&6
17492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17493 cat >> confdefs.h <<EOF
17494 #define $ac_tr_func 1
17498 echo "$ac_t""no" 1>&6
17503 for ac_func in getopt
17505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17506 echo "configure:17507: checking for $ac_func" >&5
17507 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17508 echo $ac_n "(cached) $ac_c" 1>&6
17510 cat > conftest.$ac_ext <<EOF
17511 #line 17512 "configure"
17512 #include "confdefs.h"
17513 /* System header to define __stub macros and hopefully few prototypes,
17514 which can conflict with char $ac_func(); below. */
17515 #include <assert.h>
17516 /* Override any gcc2 internal prototype to avoid an error. */
17517 /* We use char because int might match the return type of a gcc2
17518 builtin and then its argument prototype would still apply. */
17524 /* The GNU C library defines this for functions which it implements
17525 to always fail with ENOSYS. Some functions are actually named
17526 something starting with __ and the normal name is an alias. */
17527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17535 if { (eval echo configure:17536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17537 eval "ac_cv_func_$ac_func=yes"
17539 echo "configure: failed program was:" >&5
17540 cat conftest.$ac_ext >&5
17542 eval "ac_cv_func_$ac_func=no"
17547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17548 echo "$ac_t""yes" 1>&6
17549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17550 cat >> confdefs.h <<EOF
17551 #define $ac_tr_func 1
17555 echo "$ac_t""no" 1>&6
17556 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17562 if test "$ac_cv_func_getopt" != yes; then
17563 LIBSRCS="$LIBSRCS getopt.c"
17566 # Check Configuration
17567 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17568 echo "configure:17569: checking declaration of sys_errlist" >&5
17569 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17570 echo $ac_n "(cached) $ac_c" 1>&6
17573 cat > conftest.$ac_ext <<EOF
17574 #line 17575 "configure"
17575 #include "confdefs.h"
17578 #include <sys/types.h>
17581 #include <stdlib.h>
17584 char *c = (char *) *sys_errlist
17587 if { (eval echo configure:17588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17589 ol_cv_dcl_sys_errlist=yes
17590 ol_cv_have_sys_errlist=yes
17592 echo "configure: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
17595 ol_cv_dcl_sys_errlist=no
17600 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17602 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17603 if test $ol_cv_dcl_sys_errlist = no ; then
17604 cat >> confdefs.h <<\EOF
17605 #define DECL_SYS_ERRLIST 1
17609 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17610 echo "configure:17611: checking existence of sys_errlist" >&5
17611 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17612 echo $ac_n "(cached) $ac_c" 1>&6
17615 cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17620 char *c = (char *) *sys_errlist
17623 if { (eval echo configure:17624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17625 ol_cv_have_sys_errlist=yes
17627 echo "configure: failed program was:" >&5
17628 cat conftest.$ac_ext >&5
17630 ol_cv_have_sys_errlist=no
17635 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17637 if test $ol_cv_have_sys_errlist = yes ; then
17638 cat >> confdefs.h <<\EOF
17639 #define HAVE_SYS_ERRLIST 1
17646 if test "$ol_enable_debug" != no ; then
17647 cat >> confdefs.h <<\EOF
17648 #define LDAP_DEBUG 1
17652 if test "$ol_enable_syslog" = yes ; then
17653 cat >> confdefs.h <<\EOF
17654 #define LDAP_SYSLOG 1
17658 if test "$ol_enable_cache" = no ; then
17659 cat >> confdefs.h <<\EOF
17660 #define LDAP_NOCACHE 1
17664 if test "$ol_link_kbind" != no ; then
17665 cat >> confdefs.h <<\EOF
17666 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17670 if test "$ol_enable_proctitle" != no ; then
17671 cat >> confdefs.h <<\EOF
17672 #define LDAP_PROCTITLE 1
17676 if test "$ol_enable_referrals" != no ; then
17677 cat >> confdefs.h <<\EOF
17678 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17682 if test "$ol_enable_local" != no; then
17683 cat >> confdefs.h <<\EOF
17684 #define LDAP_PF_LOCAL 1
17688 if test "$ol_link_ipv6" != no; then
17689 cat >> confdefs.h <<\EOF
17690 #define LDAP_PF_INET6 1
17694 if test "$ol_enable_cleartext" != no ; then
17695 cat >> confdefs.h <<\EOF
17696 #define SLAPD_CLEARTEXT 1
17700 if test "$ol_enable_crypt" != no ; then
17701 cat >> confdefs.h <<\EOF
17702 #define SLAPD_CRYPT 1
17706 if test "$ol_link_kpasswd" != no ; then
17707 cat >> confdefs.h <<\EOF
17708 #define SLAPD_KPASSWD 1
17712 if test "$ol_link_spasswd" != no ; then
17713 cat >> confdefs.h <<\EOF
17714 #define SLAPD_SPASSWD 1
17718 if test "$ol_enable_phonetic" != no ; then
17719 cat >> confdefs.h <<\EOF
17720 #define SLAPD_PHONETIC 1
17724 if test "$ol_enable_rlookups" != no ; then
17725 cat >> confdefs.h <<\EOF
17726 #define SLAPD_RLOOKUPS 1
17730 if test "$ol_enable_aci" != no ; then
17731 cat >> confdefs.h <<\EOF
17732 #define SLAPD_ACI_ENABLED 1
17737 if test "$ol_link_modules" != no ; then
17738 cat >> confdefs.h <<\EOF
17739 #define SLAPD_MODULES 1
17743 SLAPD_MODULES_LDFLAGS="-dlopen self"
17746 if test "$ol_enable_bdb" != no ; then
17747 cat >> confdefs.h <<\EOF
17748 #define SLAPD_BDB 1
17753 if test "$ol_with_bdb_module" != static ; then
17754 cat >> confdefs.h <<\EOF
17755 #define SLAPD_BDB_DYNAMIC 1
17759 BUILD_BDB_DYNAMIC=shared
17760 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17764 if test "$ol_link_dnssrv" != no ; then
17765 cat >> confdefs.h <<\EOF
17766 #define SLAPD_DNSSRV 1
17771 if test "$ol_with_dnssrv_module" != static ; then
17772 cat >> confdefs.h <<\EOF
17773 #define SLAPD_DNSSRV_DYNAMIC 1
17777 BUILD_DNSSRV_DYNAMIC=shared
17778 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17782 if test "$ol_enable_ldap" != no ; then
17783 cat >> confdefs.h <<\EOF
17784 #define SLAPD_LDAP 1
17789 if test "$ol_with_ldap_module" != static ; then
17790 cat >> confdefs.h <<\EOF
17791 #define SLAPD_LDAP_DYNAMIC 1
17795 BUILD_LDAP_DYNAMIC=shared
17796 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17800 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17801 cat >> confdefs.h <<\EOF
17802 #define SLAPD_LDBM 1
17808 if test "$ol_with_ldbm_module" != static ; then
17809 cat >> confdefs.h <<\EOF
17810 #define SLAPD_LDBM_DYNAMIC 1
17814 BUILD_LDBM_DYNAMIC=shared
17815 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17819 if test "$ol_enable_meta" != no ; then
17820 if test "$ol_enable_ldap" = no ; then
17821 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
17823 if test "$ol_enable_rewrite" = no ; then
17824 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
17826 cat >> confdefs.h <<\EOF
17827 #define SLAPD_META 1
17832 if test "$ol_with_meta_module" != static ; then
17833 cat >> confdefs.h <<\EOF
17834 #define SLAPD_META_DYNAMIC 1
17838 BUILD_META_DYNAMIC=shared
17839 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
17843 if test "$ol_enable_monitor" != no ; then
17844 cat >> confdefs.h <<\EOF
17845 #define SLAPD_MONITOR 1
17850 if test "$ol_with_monitor_module" != static ; then
17851 cat >> confdefs.h <<\EOF
17852 #define SLAPD_MONITOR_DYNAMIC 1
17856 BUILD_MONITOR_DYNAMIC=shared
17857 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
17861 if test "$ol_enable_passwd" != no ; then
17862 cat >> confdefs.h <<\EOF
17863 #define SLAPD_PASSWD 1
17868 if test "$ol_with_passwd_module" != static ; then
17869 cat >> confdefs.h <<\EOF
17870 #define SLAPD_PASSWD_DYNAMIC 1
17874 BUILD_PASSWD_DYNAMIC=shared
17875 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17879 if test "$ol_link_perl" != no ; then
17880 cat >> confdefs.h <<\EOF
17881 #define SLAPD_PERL 1
17886 if test "$ol_with_perl_module" != static ; then
17887 cat >> confdefs.h <<\EOF
17888 #define SLAPD_PERL_DYNAMIC 1
17892 BUILD_PERL_DYNAMIC=shared
17893 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
17897 if test "$ol_enable_shell" != no ; then
17898 cat >> confdefs.h <<\EOF
17899 #define SLAPD_SHELL 1
17904 if test "$ol_with_shell_module" != static ; then
17905 cat >> confdefs.h <<\EOF
17906 #define SLAPD_SHELL_DYNAMIC 1
17910 BUILD_SHELL_DYNAMIC=shared
17911 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17915 if test "$ol_enable_tcl" != no ; then
17916 cat >> confdefs.h <<\EOF
17917 #define SLAPD_TCL 1
17922 if test "$ol_with_tcl_module" != static; then
17923 cat >> confdefs.h <<\EOF
17924 #define SLAPD_TCL_DYNAMIC 1
17928 BUILD_TCL_DYNAMIC=shared
17929 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
17933 if test "$ol_link_sql" != no ; then
17934 cat >> confdefs.h <<\EOF
17935 #define SLAPD_SQL 1
17940 if test "$ol_with_sql_module" != static; then
17941 cat >> confdefs.h <<\EOF
17942 #define SLAPD_SQL_DYNAMIC 1
17946 BUILD_SQL_DYNAMIC=shared
17947 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17951 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17952 $BUILD_SLAPD = yes ; then
17956 if test "$ol_enable_rewrite" != no ; then
17957 cat >> confdefs.h <<\EOF
17958 #define ENABLE_REWRITE 1
17962 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
17966 if test "$LINK_BINS_DYNAMIC" = yes; then
17968 LT_LIB_LINKAGE=shared
17971 LT_LIB_LINKAGE=static
17974 if test "$ac_cv_mingw32" = yes ; then
18053 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18056 # Let make expand exec_prefix.
18057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18059 # Any assignment to VPATH causes Sun make to only execute
18060 # the first set of double-colon rules, so remove it if not needed.
18061 # If there is a colon in the path, we need to keep it.
18062 if test "x$srcdir" = x.; then
18063 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18066 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18068 DEFS=-DHAVE_CONFIG_H
18070 # Without the "./", some shells look in PATH for config.status.
18071 : ${CONFIG_STATUS=./config.status}
18073 echo creating $CONFIG_STATUS
18074 rm -f $CONFIG_STATUS
18075 cat > $CONFIG_STATUS <<EOF
18077 # Generated automatically by configure.
18078 # Run this file to recreate the current configuration.
18079 # This directory was configured as follows,
18080 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18082 # $0 $ac_configure_args
18084 # Compiler output produced by configure, useful for debugging
18085 # configure, is in ./config.log if it exists.
18087 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18090 case "\$ac_option" in
18091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18092 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18093 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18094 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18095 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
18097 -help | --help | --hel | --he | --h)
18098 echo "\$ac_cs_usage"; exit 0 ;;
18099 *) echo "\$ac_cs_usage"; exit 1 ;;
18103 ac_given_srcdir=$srcdir
18104 ac_given_INSTALL="$INSTALL"
18106 trap 'rm -fr `echo "\
18107 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18108 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18109 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18110 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18111 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18112 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18113 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18114 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18115 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18116 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18117 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18118 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18119 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18120 include/Makefile:build/top.mk:include/Makefile.in \
18121 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18122 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18123 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18124 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18125 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18126 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18127 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18128 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18129 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18130 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18131 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18132 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18133 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18134 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18135 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18136 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18137 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18138 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18139 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18140 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18141 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18142 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18143 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18144 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18145 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18146 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18147 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18148 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18149 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18151 cat >> $CONFIG_STATUS <<EOF
18153 # Protect against being on the right side of a sed subst in config.status.
18154 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18155 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18159 s%@CFLAGS@%$CFLAGS%g
18160 s%@CPPFLAGS@%$CPPFLAGS%g
18161 s%@CXXFLAGS@%$CXXFLAGS%g
18162 s%@FFLAGS@%$FFLAGS%g
18164 s%@LDFLAGS@%$LDFLAGS%g
18166 s%@exec_prefix@%$exec_prefix%g
18167 s%@prefix@%$prefix%g
18168 s%@program_transform_name@%$program_transform_name%g
18169 s%@bindir@%$bindir%g
18170 s%@sbindir@%$sbindir%g
18171 s%@libexecdir@%$libexecdir%g
18172 s%@datadir@%$datadir%g
18173 s%@sysconfdir@%$sysconfdir%g
18174 s%@sharedstatedir@%$sharedstatedir%g
18175 s%@localstatedir@%$localstatedir%g
18176 s%@libdir@%$libdir%g
18177 s%@includedir@%$includedir%g
18178 s%@oldincludedir@%$oldincludedir%g
18179 s%@infodir@%$infodir%g
18180 s%@mandir@%$mandir%g
18182 s%@host_alias@%$host_alias%g
18183 s%@host_cpu@%$host_cpu%g
18184 s%@host_vendor@%$host_vendor%g
18185 s%@host_os@%$host_os%g
18186 s%@target@%$target%g
18187 s%@target_alias@%$target_alias%g
18188 s%@target_cpu@%$target_cpu%g
18189 s%@target_vendor@%$target_vendor%g
18190 s%@target_os@%$target_os%g
18192 s%@build_alias@%$build_alias%g
18193 s%@build_cpu@%$build_cpu%g
18194 s%@build_vendor@%$build_vendor%g
18195 s%@build_os@%$build_os%g
18196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18198 s%@INSTALL_DATA@%$INSTALL_DATA%g
18199 s%@PACKAGE@%$PACKAGE%g
18200 s%@VERSION@%$VERSION%g
18201 s%@ACLOCAL@%$ACLOCAL%g
18202 s%@AUTOCONF@%$AUTOCONF%g
18203 s%@AUTOMAKE@%$AUTOMAKE%g
18204 s%@AUTOHEADER@%$AUTOHEADER%g
18205 s%@MAKEINFO@%$MAKEINFO%g
18206 s%@install_sh@%$install_sh%g
18209 s%@AMTARFLAGS@%$AMTARFLAGS%g
18210 s%@SET_MAKE@%$SET_MAKE%g
18211 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
18212 s%@top_builddir@%$top_builddir%g
18213 s%@ldap_subdir@%$ldap_subdir%g
18216 s%@RANLIB@%$RANLIB%g
18218 s%@DLLTOOL@%$DLLTOOL%g
18220 s%@OBJDUMP@%$OBJDUMP%g
18221 s%@LIBTOOL@%$LIBTOOL%g
18223 s%@SENDMAIL@%$SENDMAIL%g
18224 s%@EDITOR@%$EDITOR%g
18225 s%@FINGER@%$FINGER%g
18226 s%@PERLBIN@%$PERLBIN%g
18228 s%@EXEEXT@%$EXEEXT%g
18229 s%@OBJEXT@%$OBJEXT%g
18230 s%@OL_MKDEP@%$OL_MKDEP%g
18231 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
18232 s%@LIBOBJS@%$LIBOBJS%g
18233 s%@LIBSRCS@%$LIBSRCS%g
18235 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
18236 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
18237 s%@DYN_EXT@%$DYN_EXT%g
18238 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
18239 s%@BUILD_BDB@%$BUILD_BDB%g
18240 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
18241 s%@BUILD_LDAP@%$BUILD_LDAP%g
18242 s%@BUILD_LDBM@%$BUILD_LDBM%g
18243 s%@BUILD_META@%$BUILD_META%g
18244 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18245 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18246 s%@BUILD_PERL@%$BUILD_PERL%g
18247 s%@BUILD_SHELL@%$BUILD_SHELL%g
18248 s%@BUILD_SQL@%$BUILD_SQL%g
18249 s%@BUILD_TCL@%$BUILD_TCL%g
18250 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18251 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18252 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18253 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18254 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18255 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18256 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18257 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18258 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18259 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18260 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18261 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18262 s%@LDBM_LIB@%$LDBM_LIB%g
18263 s%@LDAP_LIBS@%$LDAP_LIBS%g
18264 s%@LDIF_LIBS@%$LDIF_LIBS%g
18265 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18266 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18267 s%@LDBM_LIBS@%$LDBM_LIBS%g
18268 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18269 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18270 s%@WRAP_LIBS@%$WRAP_LIBS%g
18271 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18272 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
18273 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18274 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18275 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18276 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18277 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18278 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18279 s%@KRB4_LIBS@%$KRB4_LIBS%g
18280 s%@KRB5_LIBS@%$KRB5_LIBS%g
18281 s%@READLINE_LIBS@%$READLINE_LIBS%g
18282 s%@SASL_LIBS@%$SASL_LIBS%g
18283 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18284 s%@TLS_LIBS@%$TLS_LIBS%g
18285 s%@MODULES_LIBS@%$MODULES_LIBS%g
18286 s%@AUTH_LIBS@%$AUTH_LIBS%g
18287 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18288 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18289 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18290 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18295 cat >> $CONFIG_STATUS <<\EOF
18297 # Split the substitutions into bite-sized pieces for seds with
18298 # small command number limits, like on Digital OSF/1 and HP-UX.
18299 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18300 ac_file=1 # Number of current file.
18301 ac_beg=1 # First line for current file.
18302 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18305 while $ac_more_lines; do
18306 if test $ac_beg -gt 1; then
18307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18309 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18311 if test ! -s conftest.s$ac_file; then
18312 ac_more_lines=false
18313 rm -f conftest.s$ac_file
18315 if test -z "$ac_sed_cmds"; then
18316 ac_sed_cmds="sed -f conftest.s$ac_file"
18318 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18320 ac_file=`expr $ac_file + 1`
18322 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18325 if test -z "$ac_sed_cmds"; then
18330 cat >> $CONFIG_STATUS <<EOF
18332 CONFIG_FILES=\${CONFIG_FILES-"\
18333 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18334 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18335 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18336 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18337 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18338 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18339 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18340 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18341 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18342 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18343 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18344 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18345 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18346 include/Makefile:build/top.mk:include/Makefile.in \
18347 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18348 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18349 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18350 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18351 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18352 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18353 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18354 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18355 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18356 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18357 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18358 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18359 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18360 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18361 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18362 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18363 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18364 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18365 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18366 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18367 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18368 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18369 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18370 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18371 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18372 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18373 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18374 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18377 cat >> $CONFIG_STATUS <<\EOF
18378 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18379 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18381 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18382 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18383 *) ac_file_in="${ac_file}.in" ;;
18386 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18388 # Remove last slash and all that follows it. Not all systems have dirname.
18389 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18390 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18391 # The file is in a subdirectory.
18392 test ! -d "$ac_dir" && mkdir "$ac_dir"
18393 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18394 # A "../" for each directory in $ac_dir_suffix.
18395 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18397 ac_dir_suffix= ac_dots=
18400 case "$ac_given_srcdir" in
18402 if test -z "$ac_dots"; then top_srcdir=.
18403 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18404 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18405 *) # Relative path.
18406 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18407 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18410 case "$ac_given_INSTALL" in
18411 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18412 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18415 echo creating "$ac_file"
18417 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18419 *[Mm]akefile*) ac_comsub="1i\\
18420 # $configure_input" ;;
18424 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18426 s%@configure_input@%$configure_input%g
18427 s%@srcdir@%$srcdir%g
18428 s%@top_srcdir@%$top_srcdir%g
18429 s%@INSTALL@%$INSTALL%g
18430 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18434 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18435 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18437 # ac_d sets the value in "#define NAME VALUE" lines.
18438 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18439 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18442 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18443 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18444 ac_uB='\([ ]\)%\1#\2define\3'
18447 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18448 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18449 ac_eB='$%\1#\2define\3'
18453 if test "${CONFIG_HEADERS+set}" != set; then
18455 cat >> $CONFIG_STATUS <<EOF
18456 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18458 cat >> $CONFIG_STATUS <<\EOF
18460 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18463 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18464 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18465 *) ac_file_in="${ac_file}.in" ;;
18468 echo creating $ac_file
18470 rm -f conftest.frag conftest.in conftest.out
18471 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18472 cat $ac_file_inputs > conftest.in
18476 # Transform confdefs.h into a sed script conftest.vals that substitutes
18477 # the proper values into config.h.in to produce config.h. And first:
18478 # Protect against being on the right side of a sed subst in config.status.
18479 # Protect against being in an unquoted here document in config.status.
18480 rm -f conftest.vals
18481 cat > conftest.hdr <<\EOF
18484 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18488 sed -n -f conftest.hdr confdefs.h > conftest.vals
18491 # This sed command replaces #undef with comments. This is necessary, for
18492 # example, in the case of _POSIX_SOURCE, which is predefined and required
18493 # on some systems where configure will not decide to define it.
18494 cat >> conftest.vals <<\EOF
18495 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18498 # Break up conftest.vals because some shells have a limit on
18499 # the size of here documents, and old seds have small limits too.
18501 rm -f conftest.tail
18504 ac_lines=`grep -c . conftest.vals`
18505 # grep -c gives empty output for an empty file on some AIX systems.
18506 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18507 # Write a limited-size here document to conftest.frag.
18508 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18509 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18511 sed -f conftest.frag conftest.in > conftest.out
18513 mv conftest.out conftest.in
18514 ' >> $CONFIG_STATUS
18515 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18516 rm -f conftest.vals
18517 mv conftest.tail conftest.vals
18519 rm -f conftest.vals
18521 cat >> $CONFIG_STATUS <<\EOF
18522 rm -f conftest.frag conftest.h
18523 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18524 cat conftest.in >> conftest.h
18526 if cmp -s $ac_file conftest.h 2>/dev/null; then
18527 echo "$ac_file is unchanged"
18530 # Remove last slash and all that follows it. Not all systems have dirname.
18531 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18532 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18533 # The file is in a subdirectory.
18534 test ! -d "$ac_dir" && mkdir "$ac_dir"
18537 mv conftest.h $ac_file
18542 cat >> $CONFIG_STATUS <<EOF
18545 cat >> $CONFIG_STATUS <<\EOF
18548 echo Please \"make depend\" to build dependencies
18552 chmod +x $CONFIG_STATUS
18553 rm -fr confdefs* $ac_clean_files
18554 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1