3 # from OpenLDAP: pkg/ldap/configure.in,v 1.378 2001/11/28 14:57:37 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 test $ol_with_kerberos = auto ; then
2628 ol_with_kerberos=yes
2631 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2632 if test $ol_with_kerberos = auto ; then
2634 elif test $ol_with_kerberos != no ; then
2635 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2640 if test $ol_enable_spasswd = yes ; then
2641 if test $ol_with_cyrus_sasl = no ; then
2642 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2644 ol_with_cyrus_sasl=yes
2647 echo "$ac_t""done" 1>&6
2676 BUILD_BDB_DYNAMIC=static
2677 BUILD_DNSSRV_DYNAMIC=static
2678 BUILD_LDAP_DYNAMIC=static
2679 BUILD_LDBM_DYNAMIC=static
2680 BUILD_META_DYNAMIC=static
2681 BUILD_MONITOR_DYNAMIC=static
2682 BUILD_PASSWD_DYNAMIC=static
2683 BUILD_PERL_DYNAMIC=static
2684 BUILD_SHELL_DYNAMIC=static
2685 BUILD_TCL_DYNAMIC=static
2686 BUILD_SQL_DYNAMIC=static
2688 SLAPD_MODULES_LDFLAGS=
2689 SLAPD_MODULES_CPPFLAGS=
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
2855 test -n "$AR" || AR="ar"
2860 # Check whether --enable-fast-install or --disable-fast-install was given.
2861 if test "${enable_fast_install+set}" = set; then
2862 enableval="$enable_fast_install"
2863 p=${PACKAGE-default}
2864 case "$enableval" in
2865 yes) enable_fast_install=yes ;;
2866 no) enable_fast_install=no ;;
2868 enable_fast_install=no
2869 # Look at the argument we got. We use all the common list separators.
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2871 for pkg in $enableval; do
2872 if test "X$pkg" = "X$p"; then
2873 enable_fast_install=yes
2880 enable_fast_install=yes
2883 # Extract the first word of "ranlib", so it can be a program name with args.
2884 set dummy ranlib; ac_word=$2
2885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_word" >&5
2887 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 if test -n "$RANLIB"; then
2891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2895 for ac_dir in $ac_dummy; do
2896 test -z "$ac_dir" && ac_dir=.
2897 if test -f $ac_dir/$ac_word; then
2898 ac_cv_prog_RANLIB="ranlib"
2903 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2906 RANLIB="$ac_cv_prog_RANLIB"
2907 if test -n "$RANLIB"; then
2908 echo "$ac_t""$RANLIB" 1>&6
2910 echo "$ac_t""no" 1>&6
2913 # Extract the first word of "gcc", so it can be a program name with args.
2914 set dummy gcc; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2925 for ac_dir in $ac_dummy; do
2926 test -z "$ac_dir" && ac_dir=.
2927 if test -f $ac_dir/$ac_word; then
2936 if test -n "$CC"; then
2937 echo "$ac_t""$CC" 1>&6
2939 echo "$ac_t""no" 1>&6
2942 if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944 set dummy cc; ac_word=$2
2945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2946 echo "configure:2947: checking for $ac_word" >&5
2947 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2956 for ac_dir in $ac_dummy; do
2957 test -z "$ac_dir" && ac_dir=.
2958 if test -f $ac_dir/$ac_word; then
2959 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2960 ac_prog_rejected=yes
2968 if test $ac_prog_rejected = yes; then
2969 # We found a bogon in the path, so make sure we never use it.
2970 set dummy $ac_cv_prog_CC
2972 if test $# -gt 0; then
2973 # We chose a different compiler from the bogus one.
2974 # However, it has the same basename, so the bogon will be chosen
2975 # first if we set CC to just the basename; use the full file name.
2977 set dummy "$ac_dir/$ac_word" "$@"
2985 if test -n "$CC"; then
2986 echo "$ac_t""$CC" 1>&6
2988 echo "$ac_t""no" 1>&6
2991 if test -z "$CC"; then
2992 case "`uname -s`" in
2993 *win32* | *WIN32* | *CYGWIN*)
2994 # Extract the first word of "cl", so it can be a program name with args.
2995 set dummy cl; ac_word=$2
2996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_word" >&5
2998 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3006 for ac_dir in $ac_dummy; do
3007 test -z "$ac_dir" && ac_dir=.
3008 if test -f $ac_dir/$ac_word; then
3017 if test -n "$CC"; then
3018 echo "$ac_t""$CC" 1>&6
3020 echo "$ac_t""no" 1>&6
3025 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3029 echo "configure:3030: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3036 cross_compiling=$ac_cv_prog_cc_cross
3038 cat > conftest.$ac_ext << EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3046 ac_cv_prog_cc_works=yes
3047 # If we can't run a trivial program, we are probably using a cross compiler.
3048 if (./conftest; exit) 2>/dev/null; then
3049 ac_cv_prog_cc_cross=no
3051 ac_cv_prog_cc_cross=yes
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 ac_cv_prog_cc_works=no
3060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3064 cross_compiling=$ac_cv_prog_cc_cross
3066 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3067 if test $ac_cv_prog_cc_works = no; then
3068 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3070 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3071 echo "configure:3072: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3072 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3073 cross_compiling=$ac_cv_prog_cc_cross
3075 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3076 echo "configure:3077: checking whether we are using GNU C" >&5
3077 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.c <<EOF
3085 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3092 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3094 if test $ac_cv_prog_gcc = yes; then
3100 ac_test_CFLAGS="${CFLAGS+set}"
3101 ac_save_CFLAGS="$CFLAGS"
3103 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3104 echo "configure:3105: checking whether ${CC-cc} accepts -g" >&5
3105 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 echo 'void f(){}' > conftest.c
3109 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3118 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3119 if test "$ac_test_CFLAGS" = set; then
3120 CFLAGS="$ac_save_CFLAGS"
3121 elif test $ac_cv_prog_cc_g = yes; then
3122 if test "$GCC" = yes; then
3128 if test "$GCC" = yes; then
3135 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3136 if test "${with_gnu_ld+set}" = set; then
3137 withval="$with_gnu_ld"
3138 test "$withval" = no || with_gnu_ld=yes
3144 if test "$ac_cv_prog_gcc" = yes; then
3145 # Check if gcc -print-prog-name=ld gives a path.
3146 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3147 echo "configure:3148: checking for ld used by GCC" >&5
3148 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3150 # Accept absolute paths.
3151 [\\/]* | [A-Za-z]:[\\/]*)
3152 re_direlt='/[^/][^/]*/\.\./'
3153 # Canonicalize the path of ld
3154 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3155 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3156 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3158 test -z "$LD" && LD="$ac_prog"
3161 # If it fails, then pretend we aren't using GCC.
3165 # If it is relative, then search for the first ld in PATH.
3169 elif test "$with_gnu_ld" = yes; then
3170 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3171 echo "configure:3172: checking for GNU ld" >&5
3173 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3174 echo "configure:3175: checking for non-GNU ld" >&5
3176 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 if test -z "$LD"; then
3180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3181 for ac_dir in $PATH; do
3182 test -z "$ac_dir" && ac_dir=.
3183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3184 ac_cv_path_LD="$ac_dir/$ac_prog"
3185 # Check to see if the program is GNU ld. I'd rather use --version,
3186 # but apparently some GNU ld's only accept -v.
3187 # Break only if it was the GNU/non-GNU ld that we prefer.
3188 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3189 test "$with_gnu_ld" != no && break
3191 test "$with_gnu_ld" != yes && break
3197 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3202 if test -n "$LD"; then
3203 echo "$ac_t""$LD" 1>&6
3205 echo "$ac_t""no" 1>&6
3207 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3208 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3209 echo "configure:3210: checking if the linker ($LD) is GNU ld" >&5
3210 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3214 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3215 ac_cv_prog_gnu_ld=yes
3217 ac_cv_prog_gnu_ld=no
3221 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3224 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3225 echo "configure:3226: checking for BSD-compatible nm" >&5
3226 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 if test -n "$NM"; then
3230 # Let the user override the test.
3233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3234 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3235 test -z "$ac_dir" && ac_dir=.
3236 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3237 # Check to see if the nm accepts a BSD-compat flag.
3238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3239 # nm: unknown option "B" ignored
3240 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3241 ac_cv_path_NM="$ac_dir/nm -B"
3243 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3244 ac_cv_path_NM="$ac_dir/nm -p"
3247 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3248 continue # so that we can try to find one that supports BSD flags
3253 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3258 echo "$ac_t""$NM" 1>&6
3260 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3261 echo "configure:3262: checking whether ln -s works" >&5
3262 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3266 if ln -s X conftestdata 2>/dev/null
3269 ac_cv_prog_LN_S="ln -s"
3274 LN_S="$ac_cv_prog_LN_S"
3275 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3276 echo "$ac_t""yes" 1>&6
3278 echo "$ac_t""no" 1>&6
3281 if test $host != $build; then
3282 ac_tool_prefix=${host_alias}-
3289 NONE) lt_target="$host" ;;
3290 *) lt_target="$target" ;;
3293 # Check for any special flags to pass to ltconfig.
3294 libtool_flags="--cache-file=$cache_file"
3295 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3296 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3297 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3298 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3299 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3300 libtool_flags="$libtool_flags --enable-dlopen"
3301 libtool_flags="$libtool_flags --enable-win32-dll"
3302 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3303 if test "${enable_libtool_lock+set}" = set; then
3304 enableval="$enable_libtool_lock"
3308 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3309 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3311 # Some flags need to be propagated to the compiler or linker for good
3313 case "$lt_target" in
3315 # Find out which ABI we are using.
3316 echo '#line 3317 "configure"' > conftest.$ac_ext
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 case "`/usr/bin/file conftest.o`" in
3334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3335 SAVE_CFLAGS="$CFLAGS"
3336 CFLAGS="$CFLAGS -belf"
3337 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3338 echo "configure:3339: checking whether the C compiler needs -belf" >&5
3339 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3352 lt_cv_cc_needs_belf=yes
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 lt_cv_cc_needs_belf=no
3362 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3365 CFLAGS="$SAVE_CFLAGS"
3369 *-*-cygwin* | *-*-mingw*)
3370 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3373 echo "configure:3374: checking for $ac_word" >&5
3374 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 if test -n "$DLLTOOL"; then
3378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3382 for ac_dir in $ac_dummy; do
3383 test -z "$ac_dir" && ac_dir=.
3384 if test -f $ac_dir/$ac_word; then
3385 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3392 DLLTOOL="$ac_cv_prog_DLLTOOL"
3393 if test -n "$DLLTOOL"; then
3394 echo "$ac_t""$DLLTOOL" 1>&6
3396 echo "$ac_t""no" 1>&6
3400 if test -z "$ac_cv_prog_DLLTOOL"; then
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "dlltool", so it can be a program name with args.
3403 set dummy dlltool; ac_word=$2
3404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_word" >&5
3406 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 if test -n "$DLLTOOL"; then
3410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3414 for ac_dir in $ac_dummy; do
3415 test -z "$ac_dir" && ac_dir=.
3416 if test -f $ac_dir/$ac_word; then
3417 ac_cv_prog_DLLTOOL="dlltool"
3422 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3425 DLLTOOL="$ac_cv_prog_DLLTOOL"
3426 if test -n "$DLLTOOL"; then
3427 echo "$ac_t""$DLLTOOL" 1>&6
3429 echo "$ac_t""no" 1>&6
3437 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}as; ac_word=$2
3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_word" >&5
3441 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 if test -n "$AS"; then
3445 ac_cv_prog_AS="$AS" # Let the user override the test.
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3449 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3452 ac_cv_prog_AS="${ac_tool_prefix}as"
3460 if test -n "$AS"; then
3461 echo "$ac_t""$AS" 1>&6
3463 echo "$ac_t""no" 1>&6
3467 if test -z "$ac_cv_prog_AS"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "as", so it can be a program name with args.
3470 set dummy as; ac_word=$2
3471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_word" >&5
3473 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 if test -n "$AS"; then
3477 ac_cv_prog_AS="$AS" # Let the user override the test.
3479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3481 for ac_dir in $ac_dummy; do
3482 test -z "$ac_dir" && ac_dir=.
3483 if test -f $ac_dir/$ac_word; then
3489 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3493 if test -n "$AS"; then
3494 echo "$ac_t""$AS" 1>&6
3496 echo "$ac_t""no" 1>&6
3504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3505 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3507 echo "configure:3508: checking for $ac_word" >&5
3508 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 if test -n "$OBJDUMP"; then
3512 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3516 for ac_dir in $ac_dummy; do
3517 test -z "$ac_dir" && ac_dir=.
3518 if test -f $ac_dir/$ac_word; then
3519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3526 OBJDUMP="$ac_cv_prog_OBJDUMP"
3527 if test -n "$OBJDUMP"; then
3528 echo "$ac_t""$OBJDUMP" 1>&6
3530 echo "$ac_t""no" 1>&6
3534 if test -z "$ac_cv_prog_OBJDUMP"; then
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "objdump", so it can be a program name with args.
3537 set dummy objdump; ac_word=$2
3538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_word" >&5
3540 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 if test -n "$OBJDUMP"; then
3544 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3548 for ac_dir in $ac_dummy; do
3549 test -z "$ac_dir" && ac_dir=.
3550 if test -f $ac_dir/$ac_word; then
3551 ac_cv_prog_OBJDUMP="objdump"
3556 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3559 OBJDUMP="$ac_cv_prog_OBJDUMP"
3560 if test -n "$OBJDUMP"; then
3561 echo "$ac_t""$OBJDUMP" 1>&6
3563 echo "$ac_t""no" 1>&6
3576 # Save cache, so that ltconfig can load it
3579 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3580 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3581 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3582 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3583 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3584 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3585 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3586 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3588 # Reload cache, that may have been modified by ltconfig
3591 # This can be used to rebuild libtool when needed
3592 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3594 # Always use our own libtool.
3595 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3597 # Redirect the config.log output again, so that the ltconfig log is not
3598 # clobbered by the next message.
3599 exec 5>>./config.log
3602 for ac_prog in mawk gawk nawk awk
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3607 echo "configure:3608: checking for $ac_word" >&5
3608 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 if test -n "$AWK"; then
3612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3616 for ac_dir in $ac_dummy; do
3617 test -z "$ac_dir" && ac_dir=.
3618 if test -f $ac_dir/$ac_word; then
3619 ac_cv_prog_AWK="$ac_prog"
3626 AWK="$ac_cv_prog_AWK"
3627 if test -n "$AWK"; then
3628 echo "$ac_t""$AWK" 1>&6
3630 echo "$ac_t""no" 1>&6
3633 test -n "$AWK" && break
3636 # test for ln hardlink support
3637 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3638 echo "configure:3639: checking whether ln works" >&5
3639 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 rm -f conftest.src conftest.dst
3643 echo "conftest" > conftest.src
3644 if ln conftest.src conftest.dst 2>/dev/null
3646 ol_cv_prog_LN_H="ln"
3648 ol_cv_prog_LN_H="cp"
3650 rm -f conftest.src conftest.dst
3653 LN_H="$ol_cv_prog_LN_H"
3654 if test "$ol_cv_prog_LN_H" = "ln"; then
3655 echo "$ac_t""yes" 1>&6
3657 echo "$ac_t""no" 1>&6
3660 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3661 echo "configure:3662: checking whether ln -s works" >&5
3662 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3666 if ln -s X conftestdata 2>/dev/null
3669 ac_cv_prog_LN_S="ln -s"
3674 LN_S="$ac_cv_prog_LN_S"
3675 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3676 echo "$ac_t""yes" 1>&6
3678 echo "$ac_t""no" 1>&6
3682 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3686 # Extract the first word of "sendmail", so it can be a program name with args.
3687 set dummy sendmail; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3695 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3698 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3702 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3703 for ac_dir in $ac_dummy; do
3704 test -z "$ac_dir" && ac_dir=.
3705 if test -f $ac_dir/$ac_word; then
3706 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3711 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3715 SENDMAIL="$ac_cv_path_SENDMAIL"
3716 if test -n "$SENDMAIL"; then
3717 echo "$ac_t""$SENDMAIL" 1>&6
3719 echo "$ac_t""no" 1>&6
3722 # Extract the first word of "vi", so it can be a program name with args.
3723 set dummy vi; ac_word=$2
3724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_word" >&5
3726 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3734 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3738 ac_dummy="$PATH:/usr/ucb"
3739 for ac_dir in $ac_dummy; do
3740 test -z "$ac_dir" && ac_dir=.
3741 if test -f $ac_dir/$ac_word; then
3742 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3747 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3751 EDITOR="$ac_cv_path_EDITOR"
3752 if test -n "$EDITOR"; then
3753 echo "$ac_t""$EDITOR" 1>&6
3755 echo "$ac_t""no" 1>&6
3758 # Extract the first word of "finger", so it can be a program name with args.
3759 set dummy finger; ac_word=$2
3760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3761 echo "configure:3762: checking for $ac_word" >&5
3762 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3767 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3770 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3774 ac_dummy="$PATH:/usr/ucb"
3775 for ac_dir in $ac_dummy; do
3776 test -z "$ac_dir" && ac_dir=.
3777 if test -f $ac_dir/$ac_word; then
3778 ac_cv_path_FINGER="$ac_dir/$ac_word"
3783 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3787 FINGER="$ac_cv_path_FINGER"
3788 if test -n "$FINGER"; then
3789 echo "$ac_t""$FINGER" 1>&6
3791 echo "$ac_t""no" 1>&6
3796 if test $ol_enable_perl != no ; then
3797 # Extract the first word of "perl", so it can be a program name with args.
3798 set dummy perl; ac_word=$2
3799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_word" >&5
3801 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3806 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3809 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3814 for ac_dir in $ac_dummy; do
3815 test -z "$ac_dir" && ac_dir=.
3816 if test -f $ac_dir/$ac_word; then
3817 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3822 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3826 PERLBIN="$ac_cv_path_PERLBIN"
3827 if test -n "$PERLBIN"; then
3828 echo "$ac_t""$PERLBIN" 1>&6
3830 echo "$ac_t""no" 1>&6
3834 if test "no$PERLBIN" = "no" ; then
3835 if test $ol_enable_perl = yes ; then
3836 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3840 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3841 if test x"$ol_with_perl_module" = "xstatic" ; then
3842 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3844 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3850 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3851 echo "configure:3852: checking how to run the C preprocessor" >&5
3852 # On Suns, sometimes $CPP names a directory.
3853 if test -n "$CPP" && test -d "$CPP"; then
3856 if test -z "$CPP"; then
3857 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 # This must be in double quotes, not single quotes, because CPP may get
3861 # substituted into the Makefile and "${CC-cc}" will confuse make.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp.
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3872 { (eval echo configure:3873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3874 if test -z "$ac_err"; then
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 CPP="${CC-cc} -E -traditional-cpp"
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3889 { (eval echo configure:3890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3891 if test -z "$ac_err"; then
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3898 CPP="${CC-cc} -nologo -E"
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3906 { (eval echo configure:3907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3908 if test -z "$ac_err"; then
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3922 ac_cv_prog_CPP="$CPP"
3924 CPP="$ac_cv_prog_CPP"
3926 ac_cv_prog_CPP="$CPP"
3928 echo "$ac_t""$CPP" 1>&6
3931 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3932 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3934 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3935 echo "configure: warning: programs compiled here do run here..." 1>&2
3936 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3938 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3939 echo "configure: warning: programs compiled here do not run here..." 1>&2
3940 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3943 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3944 echo "configure:3945: checking for AIX" >&5
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954 egrep "yes" >/dev/null 2>&1; then
3956 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3957 #define _ALL_SOURCE 1
3962 echo "$ac_t""no" 1>&6
3967 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3968 echo "configure:3969: checking for POSIXized ISC" >&5
3969 if test -d /etc/conf/kconfig.d &&
3970 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3972 echo "$ac_t""yes" 1>&6
3973 ISC=yes # If later tests want to check for ISC.
3974 cat >> confdefs.h <<\EOF
3975 #define _POSIX_SOURCE 1
3978 if test "$GCC" = yes; then
3984 echo "$ac_t""no" 1>&6
3988 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3989 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3990 echo "configure:3991: checking for minix/config.h" >&5
3991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 #include <minix/config.h>
3999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4000 { (eval echo configure:4001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4002 if test -z "$ac_err"; then
4004 eval "ac_cv_header_$ac_safe=yes"
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4010 eval "ac_cv_header_$ac_safe=no"
4014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4018 echo "$ac_t""no" 1>&6
4022 if test "$MINIX" = yes; then
4023 cat >> confdefs.h <<\EOF
4024 #define _POSIX_SOURCE 1
4027 cat >> confdefs.h <<\EOF
4028 #define _POSIX_1_SOURCE 2
4031 cat >> confdefs.h <<\EOF
4038 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4039 echo "configure:4040: checking for Cygwin environment" >&5
4040 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4050 #define __CYGWIN__ __CYGWIN32__
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4067 echo "$ac_t""$ac_cv_cygwin" 1>&6
4069 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4070 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4071 echo "configure:4072: checking for mingw32 environment" >&5
4072 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4095 echo "$ac_t""$ac_cv_mingw32" 1>&6
4097 test "$ac_cv_mingw32" = yes && MINGW32=yes
4098 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4099 echo "configure:4100: checking for EMX OS/2 environment" >&5
4100 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4111 if { (eval echo configure:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4123 echo "$ac_t""$ac_cv_emxos2" 1>&6
4125 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4129 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4130 echo "configure:4131: checking for executable suffix" >&5
4131 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4138 echo 'int main () { return 0; }' > conftest.$ac_ext
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4141 for file in conftest.*; do
4143 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4144 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4148 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4151 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4156 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4157 echo "$ac_t""${ac_cv_exeext}" 1>&6
4160 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4161 echo "configure:4162: checking for object suffix" >&5
4162 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4166 echo 'int i = 1;' > conftest.$ac_ext
4167 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 for ac_file in conftest.*; do
4171 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4175 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4180 echo "$ac_t""$ac_cv_objext" 1>&6
4181 OBJEXT=$ac_cv_objext
4182 ac_objext=$ac_cv_objext
4185 cat >> confdefs.h <<EOF
4186 #define EXEEXT "${EXEEXT}"
4190 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4191 echo "configure:4192: checking for be_app in -lbe" >&5
4192 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 ac_save_LIBS="$LIBS"
4197 LIBS="-lbe -lroot -lnet $LIBS"
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 /* We use char because int might match the return type of a gcc2
4203 builtin and then its argument prototype would still apply. */
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4212 eval "ac_cv_lib_$ac_lib_var=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4217 eval "ac_cv_lib_$ac_lib_var=no"
4220 LIBS="$ac_save_LIBS"
4223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 LIBS="$LIBS -lbe -lroot -lnet"
4227 echo "$ac_t""no" 1>&6
4235 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4236 echo "configure:4237: checking for ${CC-cc} option to accept ANSI C" >&5
4237 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 am_cv_prog_cc_stdc=no
4242 # Don't try gcc -ansi; that turns off useful extensions and
4243 # breaks some systems' header files.
4244 # AIX -qlanglvl=ansi
4245 # Ultrix and OSF/1 -std1
4246 # HP-UX 10.20 and later -Ae
4247 # HP-UX older versions -Aa -D_HPUX_SOURCE
4248 # SVR4 -Xc -D__EXTENSIONS__
4249 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 CC="$ac_save_CC $ac_arg"
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 #include <sys/types.h>
4258 #include <sys/stat.h>
4259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4260 struct buf { int x; };
4261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4262 static char *e (p, i)
4268 static char *f (char * (*g) (char **, int), char **p, ...)
4273 s = g (p, va_arg (v,int));
4277 int test (int i, double x);
4278 struct s1 {int (*f) (int a);};
4279 struct s2 {int (*f) (double a);};
4280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4290 if { (eval echo configure:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4292 am_cv_prog_cc_stdc="$ac_arg"; break
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4303 if test -z "$am_cv_prog_cc_stdc"; then
4304 echo "$ac_t""none needed" 1>&6
4306 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4308 case "x$am_cv_prog_cc_stdc" in
4310 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4313 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4314 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4317 # test for make depend flag
4320 if test -z "${MKDEP}"; then
4322 if test -z "${MKDEP_FLAGS}"; then
4323 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4324 echo "configure:4325: checking for ${OL_MKDEP} depend flag" >&5
4325 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4330 for flag in "-M" "-xM"; do
4331 cat > conftest.c <<EOF
4334 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4335 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4337 if test ! -f conftest."${ac_object}" ; then
4339 OL_MKDEP_FLAGS="$flag"
4348 echo "$ac_t""$ol_cv_mkdep" 1>&6
4351 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4356 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4361 if test "${ol_cv_mkdep}" = no ; then
4362 # this will soon become an error
4363 echo "configure: warning: do not know how to generate dependencies" 1>&2
4366 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4367 echo "configure:4368: checking for afopen in -ls" >&5
4368 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 ac_save_LIBS="$LIBS"
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* Override any gcc2 internal prototype to avoid an error. */
4378 /* We use char because int might match the return type of a gcc2
4379 builtin and then its argument prototype would still apply. */
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 eval "ac_cv_lib_$ac_lib_var=yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 eval "ac_cv_lib_$ac_lib_var=no"
4396 LIBS="$ac_save_LIBS"
4399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4403 cat >> confdefs.h <<\EOF
4404 #define HAVE_AIX_SECURITY 1
4409 echo "$ac_t""no" 1>&6
4415 if test $ol_enable_modules != no ; then
4416 for ac_hdr in ltdl.h
4418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4420 echo "configure:4421: checking for $ac_hdr" >&5
4421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4430 { (eval echo configure:4431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4432 if test -z "$ac_err"; then
4434 eval "ac_cv_header_$ac_safe=yes"
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4440 eval "ac_cv_header_$ac_safe=no"
4444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4447 cat >> confdefs.h <<EOF
4448 #define $ac_tr_hdr 1
4452 echo "$ac_t""no" 1>&6
4457 if test $ac_cv_header_ltdl_h = no ; then
4458 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4461 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4462 echo "configure:4463: checking for lt_dlinit in -lltdl" >&5
4463 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 ac_save_LIBS="$LIBS"
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* Override any gcc2 internal prototype to avoid an error. */
4473 /* We use char because int might match the return type of a gcc2
4474 builtin and then its argument prototype would still apply. */
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 eval "ac_cv_lib_$ac_lib_var=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 eval "ac_cv_lib_$ac_lib_var=no"
4491 LIBS="$ac_save_LIBS"
4494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4498 cat >> confdefs.h <<\EOF
4499 #define HAVE_LIBLTDL 1
4504 echo "$ac_t""no" 1>&6
4508 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4509 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4513 ol_with_bdb_module=static
4514 ol_with_dnssrv_module=static
4515 ol_with_ldap_module=static
4516 ol_with_ldbm_module=static
4517 ol_with_meta_module=static
4518 ol_with_monitor_module=static
4519 ol_with_passwd_module=static
4520 ol_with_perl_module=static
4521 ol_with_shell_module=static
4522 ol_with_tcl_module=static
4523 ol_with_sql_module=static
4527 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4528 echo "configure:4529: checking for EBCDIC" >&5
4529 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4538 #include <__ASCII__/generate_error.h>
4542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4543 { (eval echo configure:4544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4545 if test -z "$ac_err"; then
4547 ol_cv_cpp_ebcdic=yes
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4558 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4559 if test $ol_cv_cpp_ebcdic = yes ; then
4560 cat >> confdefs.h <<\EOF
4561 #define HAVE_EBCDIC 1
4566 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4567 echo "configure:4568: checking for ANSI C header files" >&5
4568 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4580 { (eval echo configure:4581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4582 if test -z "$ac_err"; then
4584 ol_cv_header_stdc=yes
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 ol_cv_header_stdc=no
4594 if test $ol_cv_header_stdc = yes; then
4595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 egrep "memchr" >/dev/null 2>&1; then
4606 ol_cv_header_stdc=no
4612 if test $ol_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 egrep "free" >/dev/null 2>&1; then
4624 ol_cv_header_stdc=no
4630 if test $ol_cv_header_stdc = yes; then
4631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4632 if test "$cross_compiling" = yes; then
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4643 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4644 || ('j' <= (c) && (c) <= 'r') \
4645 || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4649 int main () { int i; for (i = 0; i < 256; i++)
4650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4654 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 ol_cv_header_stdc=no
4669 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4670 if test $ol_cv_header_stdc = yes; then
4671 cat >> confdefs.h <<\EOF
4672 #define STDC_HEADERS 1
4676 ac_cv_header_stdc=disable
4679 if test $ol_cv_header_stdc != yes; then
4680 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4687 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_hdr that defines DIR" >&5
4689 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 #include <sys/types.h>
4701 if { (eval echo configure:4702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4703 eval "ac_cv_header_dirent_$ac_safe=yes"
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 eval "ac_cv_header_dirent_$ac_safe=no"
4712 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4715 cat >> confdefs.h <<EOF
4716 #define $ac_tr_hdr 1
4718 ac_header_dirent=$ac_hdr; break
4720 echo "$ac_t""no" 1>&6
4723 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4724 if test $ac_header_dirent = dirent.h; then
4725 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4726 echo "configure:4727: checking for opendir in -ldir" >&5
4727 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 ac_save_LIBS="$LIBS"
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 /* Override any gcc2 internal prototype to avoid an error. */
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_lib_$ac_lib_var=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_lib_$ac_lib_var=no"
4755 LIBS="$ac_save_LIBS"
4758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4762 echo "$ac_t""no" 1>&6
4766 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4767 echo "configure:4768: checking for opendir in -lx" >&5
4768 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4769 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 ac_save_LIBS="$LIBS"
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 /* Override any gcc2 internal prototype to avoid an error. */
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4788 eval "ac_cv_lib_$ac_lib_var=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_lib_$ac_lib_var=no"
4796 LIBS="$ac_save_LIBS"
4799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4803 echo "$ac_t""no" 1>&6
4808 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4809 echo "configure:4810: checking for sys/wait.h that is POSIX.1 compatible" >&5
4810 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4817 #include <sys/wait.h>
4819 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4822 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4827 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4830 if { (eval echo configure:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4832 ac_cv_header_sys_wait_h=yes
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 ac_cv_header_sys_wait_h=no
4842 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4843 if test $ac_cv_header_sys_wait_h = yes; then
4844 cat >> confdefs.h <<\EOF
4845 #define HAVE_SYS_WAIT_H 1
4850 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4851 echo "configure:4852: checking POSIX termios" >&5
4852 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 #include <sys/types.h>
4860 #include <termios.h>
4862 /* SunOS 4.0.3 has termios.h but not the library calls. */
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 am_cv_sys_posix_termios=yes
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 am_cv_sys_posix_termios=no
4878 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4881 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4882 echo "configure:4883: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4883 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4888 gwinsz_in_termios_h=no
4889 if test $am_cv_sys_posix_termios = yes; then
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 #include <sys/types.h>
4894 # include <termios.h>
4900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4901 egrep "yes" >/dev/null 2>&1; then
4903 gwinsz_in_termios_h=yes
4909 if test $gwinsz_in_termios_h = no; then
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 #include <sys/types.h>
4914 # include <sys/ioctl.h>
4920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921 egrep "yes" >/dev/null 2>&1; then
4923 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4931 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4932 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4933 cat >> confdefs.h <<\EOF
4934 #define GWINSZ_IN_SYS_IOCTL 1
4939 if test $am_cv_sys_posix_termios = yes ; then
4940 cat >> confdefs.h <<\EOF
4941 #define HAVE_POSIX_TERMIOS 1
4992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_hdr" >&5
4995 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5004 { (eval echo configure:5005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5006 if test -z "$ac_err"; then
5008 eval "ac_cv_header_$ac_safe=yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_header_$ac_safe=no"
5018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5019 echo "$ac_t""yes" 1>&6
5020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5021 cat >> confdefs.h <<EOF
5022 #define $ac_tr_hdr 1
5026 echo "$ac_t""no" 1>&6
5033 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5034 echo "configure:5035: checking for dlopen" >&5
5035 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char dlopen(); below. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_func_dlopen=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_func_dlopen=no"
5075 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5079 echo "$ac_t""no" 1>&6
5080 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5081 echo "configure:5082: checking for dlopen in -ldl" >&5
5082 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5083 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 ac_save_LIBS="$LIBS"
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5102 eval "ac_cv_lib_$ac_lib_var=yes"
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 eval "ac_cv_lib_$ac_lib_var=no"
5110 LIBS="$ac_save_LIBS"
5113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5114 echo "$ac_t""yes" 1>&6
5115 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5116 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5117 cat >> confdefs.h <<EOF
5118 #define $ac_tr_lib 1
5124 echo "$ac_t""no" 1>&6
5130 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5131 echo "configure:5132: checking for sigset in -lV3" >&5
5132 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 ac_save_LIBS="$LIBS"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 /* Override any gcc2 internal prototype to avoid an error. */
5142 /* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 eval "ac_cv_lib_$ac_lib_var=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_lib_$ac_lib_var=no"
5160 LIBS="$ac_save_LIBS"
5163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5165 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_lib 1
5174 echo "$ac_t""no" 1>&6
5178 if test $ac_cv_header_winsock_h = yes; then
5179 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5180 echo "configure:5181: checking for winsock" >&5
5181 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 #include <winsock.h>
5191 select(0,NULL,NULL,NULL,NULL);
5193 gethostname(NULL,0);
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5209 echo "$ac_t""$ol_cv_winsock" 1>&6
5211 if test $ol_cv_winsock = yes ; then
5212 cat >> confdefs.h <<\EOF
5213 #define HAVE_WINSOCK 1
5216 ac_cv_func_socket=yes
5217 ac_cv_func_select=yes
5218 ac_cv_func_closesocket=yes
5219 ac_cv_func_gethostname=yes
5224 echo $ac_n "checking for socket""... $ac_c" 1>&6
5225 echo "configure:5226: checking for socket" >&5
5226 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char socket(); below. */
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined (__stub_socket) || defined (__stub___socket)
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 eval "ac_cv_func_socket=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_func_socket=no"
5266 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5267 echo "$ac_t""yes" 1>&6
5270 echo "$ac_t""no" 1>&6
5272 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5273 echo "configure:5274: checking for main in -lsocket" >&5
5274 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5275 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 ac_save_LIBS="$LIBS"
5279 LIBS="-lsocket $LIBS"
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5288 if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5290 eval "ac_cv_lib_$ac_lib_var=yes"
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5295 eval "ac_cv_lib_$ac_lib_var=no"
5298 LIBS="$ac_save_LIBS"
5301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5302 echo "$ac_t""yes" 1>&6
5303 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5305 cat >> confdefs.h <<EOF
5306 #define $ac_tr_lib 1
5309 LIBS="-lsocket $LIBS"
5312 echo "$ac_t""no" 1>&6
5315 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5316 echo "configure:5317: checking for main in -lnet" >&5
5317 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5318 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 ac_save_LIBS="$LIBS"
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333 eval "ac_cv_lib_$ac_lib_var=yes"
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 eval "ac_cv_lib_$ac_lib_var=no"
5341 LIBS="$ac_save_LIBS"
5344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5345 echo "$ac_t""yes" 1>&6
5346 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5347 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5348 cat >> confdefs.h <<EOF
5349 #define $ac_tr_lib 1
5355 echo "$ac_t""no" 1>&6
5358 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5359 echo "configure:5360: checking for main in -lnsl_s" >&5
5360 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5361 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 ac_save_LIBS="$LIBS"
5365 LIBS="-lnsl_s $LIBS"
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5376 eval "ac_cv_lib_$ac_lib_var=yes"
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5381 eval "ac_cv_lib_$ac_lib_var=no"
5384 LIBS="$ac_save_LIBS"
5387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5388 echo "$ac_t""yes" 1>&6
5389 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5391 cat >> confdefs.h <<EOF
5392 #define $ac_tr_lib 1
5395 LIBS="-lnsl_s $LIBS"
5398 echo "$ac_t""no" 1>&6
5401 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5402 echo "configure:5403: checking for main in -lnsl" >&5
5403 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5404 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 ac_save_LIBS="$LIBS"
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5419 eval "ac_cv_lib_$ac_lib_var=yes"
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5424 eval "ac_cv_lib_$ac_lib_var=no"
5427 LIBS="$ac_save_LIBS"
5430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5434 cat >> confdefs.h <<EOF
5435 #define $ac_tr_lib 1
5441 echo "$ac_t""no" 1>&6
5444 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5445 echo "configure:5446: checking for socket in -linet" >&5
5446 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 ac_save_LIBS="$LIBS"
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5466 eval "ac_cv_lib_$ac_lib_var=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_lib_$ac_lib_var=no"
5474 LIBS="$ac_save_LIBS"
5477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5478 echo "$ac_t""yes" 1>&6
5479 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5481 cat >> confdefs.h <<EOF
5482 #define $ac_tr_lib 1
5488 echo "$ac_t""no" 1>&6
5491 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5492 echo "configure:5493: checking for main in -lgen" >&5
5493 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 ac_save_LIBS="$LIBS"
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5509 eval "ac_cv_lib_$ac_lib_var=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5514 eval "ac_cv_lib_$ac_lib_var=no"
5517 LIBS="$ac_save_LIBS"
5520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5521 echo "$ac_t""yes" 1>&6
5522 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5523 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5524 cat >> confdefs.h <<EOF
5525 #define $ac_tr_lib 1
5531 echo "$ac_t""no" 1>&6
5538 echo $ac_n "checking for select""... $ac_c" 1>&6
5539 echo "configure:5540: checking for select" >&5
5540 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5543 cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5546 /* System header to define __stub macros and hopefully few prototypes,
5547 which can conflict with char select(); below. */
5549 /* Override any gcc2 internal prototype to avoid an error. */
5550 /* We use char because int might match the return type of a gcc2
5551 builtin and then its argument prototype would still apply. */
5557 /* The GNU C library defines this for functions which it implements
5558 to always fail with ENOSYS. Some functions are actually named
5559 something starting with __ and the normal name is an alias. */
5560 #if defined (__stub_select) || defined (__stub___select)
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5570 eval "ac_cv_func_select=yes"
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5575 eval "ac_cv_func_select=no"
5580 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5584 echo "$ac_t""no" 1>&6
5585 { echo "configure: error: select() required." 1>&2; exit 1; }
5589 if test "${ac_cv_header_winsock_h}" != yes; then
5590 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5591 echo "configure:5592: checking types of arguments for select()" >&5
5592 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5602 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5603 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607 #ifdef HAVE_SYS_TYPES_H
5608 #include <sys/types.h>
5610 #ifdef HAVE_SYS_TIME_H
5611 #include <sys/time.h>
5613 #ifdef HAVE_SYS_SELECT_H
5614 #include <sys/select.h>
5616 #ifdef HAVE_SYS_SOCKET_H
5617 #include <sys/socket.h>
5619 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);
5624 if { (eval echo configure:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5626 ac_not_found=no ; break 3
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5643 if test "$ac_not_found" = yes; then
5644 ac_cv_func_select_arg1=int
5645 ac_cv_func_select_arg234='int *'
5646 ac_cv_func_select_arg5='struct timeval *'
5648 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5649 cat >> confdefs.h <<EOF
5650 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5653 cat >> confdefs.h <<EOF
5654 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5657 cat >> confdefs.h <<EOF
5658 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5665 for ac_hdr in regex.h
5667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_hdr" >&5
5670 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5679 { (eval echo configure:5680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5681 if test -z "$ac_err"; then
5683 eval "ac_cv_header_$ac_safe=yes"
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 eval "ac_cv_header_$ac_safe=no"
5693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5694 echo "$ac_t""yes" 1>&6
5695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5696 cat >> confdefs.h <<EOF
5697 #define $ac_tr_hdr 1
5701 echo "$ac_t""no" 1>&6
5705 if test "$ac_cv_header_regex_h" != yes ; then
5706 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5708 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5709 echo "configure:5710: checking for regfree" >&5
5710 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 /* System header to define __stub macros and hopefully few prototypes,
5717 which can conflict with char regfree(); below. */
5719 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5727 /* The GNU C library defines this for functions which it implements
5728 to always fail with ENOSYS. Some functions are actually named
5729 something starting with __ and the normal name is an alias. */
5730 #if defined (__stub_regfree) || defined (__stub___regfree)
5738 if { (eval echo configure:5739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5740 eval "ac_cv_func_regfree=yes"
5742 echo "configure: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5745 eval "ac_cv_func_regfree=no"
5750 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5751 echo "$ac_t""yes" 1>&6
5754 echo "$ac_t""no" 1>&6
5755 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5760 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5761 echo "configure:5762: checking for compatible POSIX regex" >&5
5762 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5766 if test "$cross_compiling" = yes; then
5767 ol_cv_c_posix_regex=cross
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5773 #include <sys/types.h>
5775 static char *pattern, *string;
5783 if(regcomp(&re, pattern, 0)) {
5787 string = "ALL MATCH";
5789 rc = regexec(&re, string, 0, (void*)0, 0);
5796 if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5798 ol_cv_c_posix_regex=yes
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 ol_cv_c_posix_regex=no
5810 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5812 if test "$ol_cv_c_posix_regex" = no ; then
5813 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5817 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5818 echo "configure:5819: checking for res_query" >&5
5819 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char res_query(); below. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_res_query) || defined (__stub___res_query)
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 eval "ac_cv_func_res_query=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_func_res_query=no"
5859 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5863 echo "$ac_t""no" 1>&6
5866 if test $ac_cv_func_res_query = no ; then
5867 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5868 echo "configure:5869: checking for __res_query" >&5
5869 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5875 /* System header to define __stub macros and hopefully few prototypes,
5876 which can conflict with char __res_query(); below. */
5878 /* Override any gcc2 internal prototype to avoid an error. */
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5886 /* The GNU C library defines this for functions which it implements
5887 to always fail with ENOSYS. Some functions are actually named
5888 something starting with __ and the normal name is an alias. */
5889 #if defined (__stub___res_query) || defined (__stub_____res_query)
5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5899 eval "ac_cv_func___res_query=yes"
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5904 eval "ac_cv_func___res_query=no"
5909 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5910 echo "$ac_t""yes" 1>&6
5913 echo "$ac_t""no" 1>&6
5916 ac_cv_func_res_query=$ac_cv_func___res_query
5919 if test $ac_cv_func_res_query = no ; then
5920 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5921 echo "configure:5922: checking for res_query in -lbind" >&5
5922 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5923 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 ac_save_LIBS="$LIBS"
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 eval "ac_cv_lib_$ac_lib_var=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 eval "ac_cv_lib_$ac_lib_var=no"
5950 LIBS="$ac_save_LIBS"
5953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5954 echo "$ac_t""yes" 1>&6
5955 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5957 cat >> confdefs.h <<EOF
5958 #define $ac_tr_lib 1
5964 echo "$ac_t""no" 1>&6
5967 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5970 if test $ac_cv_func_res_query = no ; then
5971 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5972 echo "configure:5973: checking for __res_query in -lbind" >&5
5973 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5974 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 ac_save_LIBS="$LIBS"
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 /* Override any gcc2 internal prototype to avoid an error. */
5983 /* We use char because int might match the return type of a gcc2
5984 builtin and then its argument prototype would still apply. */
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5993 eval "ac_cv_lib_$ac_lib_var=yes"
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 eval "ac_cv_lib_$ac_lib_var=no"
6001 LIBS="$ac_save_LIBS"
6004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6005 echo "$ac_t""yes" 1>&6
6006 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6008 cat >> confdefs.h <<EOF
6009 #define $ac_tr_lib 1
6015 echo "$ac_t""no" 1>&6
6018 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
6021 if test $ac_cv_func_res_query = no ; then
6022 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
6023 echo "configure:6024: checking for res_query in -lresolv" >&5
6024 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
6025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6028 ac_save_LIBS="$LIBS"
6029 LIBS="-lresolv $LIBS"
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 eval "ac_cv_lib_$ac_lib_var=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_lib_$ac_lib_var=no"
6052 LIBS="$ac_save_LIBS"
6055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6056 echo "$ac_t""yes" 1>&6
6057 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6059 cat >> confdefs.h <<EOF
6060 #define $ac_tr_lib 1
6063 LIBS="-lresolv $LIBS"
6066 echo "$ac_t""no" 1>&6
6069 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
6072 if test $ac_cv_func_res_query = no ; then
6073 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
6074 echo "configure:6075: checking for __res_query in -lresolv" >&5
6075 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
6076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 ac_save_LIBS="$LIBS"
6080 LIBS="-lresolv $LIBS"
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6084 /* Override any gcc2 internal prototype to avoid an error. */
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 eval "ac_cv_lib_$ac_lib_var=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 eval "ac_cv_lib_$ac_lib_var=no"
6103 LIBS="$ac_save_LIBS"
6106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6107 echo "$ac_t""yes" 1>&6
6108 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6110 cat >> confdefs.h <<EOF
6111 #define $ac_tr_lib 1
6114 LIBS="-lresolv $LIBS"
6117 echo "$ac_t""no" 1>&6
6120 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
6123 if test "$ac_cv_func_res_query" = yes ; then
6124 cat >> confdefs.h <<\EOF
6125 #define HAVE_RES_QUERY 1
6129 if test $ol_enable_dnssrv != no ; then
6134 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
6135 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
6138 for ac_func in getaddrinfo inet_ntop
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6172 eval "ac_cv_func_$ac_func=yes"
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6177 eval "ac_cv_func_$ac_func=no"
6182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6183 echo "$ac_t""yes" 1>&6
6184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6185 cat >> confdefs.h <<EOF
6186 #define $ac_tr_func 1
6190 echo "$ac_t""no" 1>&6
6196 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6197 if test $ol_enable_ipv6 = yes ; then
6198 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6201 for ac_func in gai_strerror
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6222 /* The GNU C library defines this for functions which it implements
6223 to always fail with ENOSYS. Some functions are actually named
6224 something starting with __ and the normal name is an alias. */
6225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 eval "ac_cv_func_$ac_func=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 eval "ac_cv_func_$ac_func=no"
6245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6
6247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6248 cat >> confdefs.h <<EOF
6249 #define $ac_tr_func 1
6253 echo "$ac_t""no" 1>&6
6258 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6259 echo "configure:6260: checking INET6_ADDRSTRLEN" >&5
6260 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6264 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6268 # include <netinet/in.h>
6269 # ifdef INET6_ADDRSTRLEN
6270 __has_inet6_addrstrlen__;
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6277 ol_cv_inet6_addrstrlen=yes
6280 ol_cv_inet6_addrstrlen=no
6286 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6288 if test $ol_cv_inet6_addrstrlen = yes ; then
6290 elif test $ol_enable_ipv6 = yes ; then
6291 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6295 if test $ol_enable_local != no ; then
6296 for ac_hdr in sys/un.h
6298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6300 echo "configure:6301: checking for $ac_hdr" >&5
6301 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6310 { (eval echo configure:6311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6312 if test -z "$ac_err"; then
6314 eval "ac_cv_header_$ac_safe=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_header_$ac_safe=no"
6324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6325 echo "$ac_t""yes" 1>&6
6326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6327 cat >> confdefs.h <<EOF
6328 #define $ac_tr_hdr 1
6332 echo "$ac_t""no" 1>&6
6337 if test $ol_enable_local = auto ; then
6338 ol_enable_local=$ac_cv_header_sys_un_h
6339 elif test $ac_cv_header_sys_un_h = no ; then
6340 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6349 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6350 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6351 -o $ol_with_kerberos = k425 ; then
6353 for ac_hdr in krb5.h
6355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_hdr" >&5
6358 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6367 { (eval echo configure:6368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6369 if test -z "$ac_err"; then
6371 eval "ac_cv_header_$ac_safe=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 eval "ac_cv_header_$ac_safe=no"
6381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6382 echo "$ac_t""yes" 1>&6
6383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6384 cat >> confdefs.h <<EOF
6385 #define $ac_tr_hdr 1
6389 echo "$ac_t""no" 1>&6
6394 if test $ac_cv_header_krb5_h = yes ; then
6395 for ac_hdr in heim_err.h
6397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_hdr" >&5
6400 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6409 { (eval echo configure:6410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6411 if test -z "$ac_err"; then
6413 eval "ac_cv_header_$ac_safe=yes"
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6419 eval "ac_cv_header_$ac_safe=no"
6423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6426 cat >> confdefs.h <<EOF
6427 #define $ac_tr_hdr 1
6431 echo "$ac_t""no" 1>&6
6435 if test $ac_cv_header_heim_err_h = yes ; then
6441 if test $krb5_impl = mit; then
6442 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
6443 echo "configure:6444: checking for main in -lk5crypto" >&5
6444 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
6445 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6448 ac_save_LIBS="$LIBS"
6449 LIBS="-lk5crypto $LIBS"
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6458 if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6460 eval "ac_cv_lib_$ac_lib_var=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_lib_$ac_lib_var=no"
6468 LIBS="$ac_save_LIBS"
6471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6472 echo "$ac_t""yes" 1>&6
6475 echo "$ac_t""no" 1>&6
6480 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6481 echo "configure:6482: checking for main in -lkrb5" >&5
6482 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6483 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 ac_save_LIBS="$LIBS"
6487 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6496 if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 eval "ac_cv_lib_$ac_lib_var=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 eval "ac_cv_lib_$ac_lib_var=no"
6506 LIBS="$ac_save_LIBS"
6509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6512 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6514 echo "$ac_t""no" 1>&6
6519 elif test $krb5_impl = heimdal; then
6520 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6521 echo "configure:6522: checking for main in -lkrb5" >&5
6522 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 ac_save_LIBS="$LIBS"
6527 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6538 eval "ac_cv_lib_$ac_lib_var=yes"
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 eval "ac_cv_lib_$ac_lib_var=no"
6546 LIBS="$ac_save_LIBS"
6549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6550 echo "$ac_t""yes" 1>&6
6552 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6554 echo "$ac_t""no" 1>&6
6559 cat >> confdefs.h <<\EOF
6560 #define HAVE_HEIMDAL_KERBEROS 1
6566 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6569 if test $have_krb5 = yes ; then
6572 cat >> confdefs.h <<\EOF
6577 if test $ol_enable_kpasswd != no ; then
6578 ol_link_kpasswd=yes;
6581 if test $ol_with_kerberos = k5only ; then
6582 ol_with_kerberos=found
6585 elif test $ol_with_kerberos != auto ; then
6586 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6592 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6593 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6595 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6599 echo "configure:6600: checking for $ac_hdr" >&5
6600 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6609 { (eval echo configure:6610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6611 if test -z "$ac_err"; then
6613 eval "ac_cv_header_$ac_safe=yes"
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6619 eval "ac_cv_header_$ac_safe=no"
6623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6624 echo "$ac_t""yes" 1>&6
6625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6626 cat >> confdefs.h <<EOF
6627 #define $ac_tr_hdr 1
6631 echo "$ac_t""no" 1>&6
6636 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6637 if test $krb5_impl = mit; then
6638 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6639 echo "configure:6640: checking for main in -lkrb4" >&5
6640 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 ac_save_LIBS="$LIBS"
6645 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656 eval "ac_cv_lib_$ac_lib_var=yes"
6658 echo "configure: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6661 eval "ac_cv_lib_$ac_lib_var=no"
6664 LIBS="$ac_save_LIBS"
6667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6668 echo "$ac_t""yes" 1>&6
6670 KRB4_LIBS="-lkrb4 -ldes425"
6672 echo "$ac_t""no" 1>&6
6677 elif test $krb5_impl = heimdal; then
6678 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6679 echo "configure:6680: checking for main in -lkrb4" >&5
6680 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 ac_save_LIBS="$LIBS"
6685 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6686 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure"
6688 #include "confdefs.h"
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 eval "ac_cv_lib_$ac_lib_var=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_lib_$ac_lib_var=no"
6704 LIBS="$ac_save_LIBS"
6707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6708 echo "$ac_t""yes" 1>&6
6712 echo "$ac_t""no" 1>&6
6719 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6722 if test $have_k425 = yes ; then
6723 ol_with_kerberos=found
6726 cat >> confdefs.h <<\EOF
6727 #define HAVE_KRB425 1
6730 cat >> confdefs.h <<\EOF
6735 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6736 echo "configure:6737: checking for des_debug in Kerberos libraries" >&5
6737 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6742 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6747 #include <kerberosIV/krb.h>
6748 #include <kerberosIV/des.h>
6749 extern int des_debug;
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 ol_cv_var_des_debug=yes
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 ol_cv_var_des_debug=no
6771 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6773 if test $ol_cv_var_des_debug = yes ; then
6774 cat >> confdefs.h <<\EOF
6775 #define HAVE_DES_DEBUG 1
6785 if test $ol_link_krb5 = yes ; then
6786 ol_with_kerberos=found
6789 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6790 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6792 for ac_hdr in krb.h des.h krb-archaeology.h
6794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6796 echo "configure:6797: checking for $ac_hdr" >&5
6797 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6806 { (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6808 if test -z "$ac_err"; then
6810 eval "ac_cv_header_$ac_safe=yes"
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 eval "ac_cv_header_$ac_safe=no"
6820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6823 cat >> confdefs.h <<EOF
6824 #define $ac_tr_hdr 1
6828 echo "$ac_t""no" 1>&6
6833 if test $ac_cv_header_krb_h = yes ; then
6834 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6835 echo "configure:6836: checking for main in -lkrb" >&5
6836 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6840 ac_save_LIBS="$LIBS"
6841 LIBS="-lkrb -ldes $LIBS"
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6850 if { (eval echo configure:6851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6852 eval "ac_cv_lib_$ac_lib_var=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 eval "ac_cv_lib_$ac_lib_var=no"
6860 LIBS="$ac_save_LIBS"
6863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6864 echo "$ac_t""yes" 1>&6
6867 echo "$ac_t""no" 1>&6
6872 if test $have_k4 = yes ; then
6873 ol_with_kerberos=found
6876 cat >> confdefs.h <<\EOF
6881 KRB4_LIBS="-lkrb -ldes"
6883 if test $ac_cv_header_krb_archaeology_h = yes ; then
6884 cat >> confdefs.h <<\EOF
6885 #define HAVE_KTH_KERBEROS 1
6893 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6897 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6900 elif test $ol_enable_kbind = yes ; then
6901 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6904 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6905 cat >> confdefs.h <<\EOF
6906 #define HAVE_KERBEROS 1
6910 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6911 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6915 if test $ol_with_tls != no ; then
6916 for ac_hdr in openssl/ssl.h ssl.h
6918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6920 echo "configure:6921: checking for $ac_hdr" >&5
6921 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6930 { (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6932 if test -z "$ac_err"; then
6934 eval "ac_cv_header_$ac_safe=yes"
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 eval "ac_cv_header_$ac_safe=no"
6944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6945 echo "$ac_t""yes" 1>&6
6946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6947 cat >> confdefs.h <<EOF
6948 #define $ac_tr_hdr 1
6952 echo "$ac_t""no" 1>&6
6957 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6958 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6959 echo "configure:6960: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6960 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6961 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 ac_save_LIBS="$LIBS"
6965 LIBS="-lssl -lcrypto $LIBS"
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6972 char SSLeay_add_ssl_algorithms();
6975 SSLeay_add_ssl_algorithms()
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 eval "ac_cv_lib_$ac_lib_var=yes"
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 eval "ac_cv_lib_$ac_lib_var=no"
6988 LIBS="$ac_save_LIBS"
6991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6992 echo "$ac_t""yes" 1>&6
6996 echo "$ac_t""no" 1>&6
7001 if test $have_ssleay = no ; then
7002 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7003 echo "configure:7004: checking for SSL_library_init in -lssl" >&5
7004 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
7005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7008 ac_save_LIBS="$LIBS"
7009 LIBS="-lssl -lcrypto $LIBS"
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char SSL_library_init();
7022 if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7024 eval "ac_cv_lib_$ac_lib_var=yes"
7026 echo "configure: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7029 eval "ac_cv_lib_$ac_lib_var=no"
7032 LIBS="$ac_save_LIBS"
7035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7036 echo "$ac_t""yes" 1>&6
7040 echo "$ac_t""no" 1>&6
7046 if test $have_ssleay = no ; then
7047 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
7048 echo "configure:7049: checking for ssl3_accept in -lssl" >&5
7049 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
7050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 ac_save_LIBS="$LIBS"
7054 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069 eval "ac_cv_lib_$ac_lib_var=yes"
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7074 eval "ac_cv_lib_$ac_lib_var=no"
7077 LIBS="$ac_save_LIBS"
7080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7081 echo "$ac_t""yes" 1>&6
7085 echo "$ac_t""no" 1>&6
7091 if test $have_ssleay = yes ; then
7095 cat >> confdefs.h <<\EOF
7096 #define HAVE_SSLEAY 1
7100 if test $need_rsaref = yes; then
7101 cat >> confdefs.h <<\EOF
7102 #define HAVE_RSAREF 1
7106 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
7108 TLS_LIBS="-lssl -lcrypto"
7114 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7117 if test $ol_link_tls = yes ; then
7118 cat >> confdefs.h <<\EOF
7123 elif test $ol_with_tls = auto ; then
7124 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
7125 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7127 elif test $ol_with_tls != no ; then
7128 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
7131 if test $ol_enable_lmpasswd != no; then
7132 if test $ol_link_tls != yes ; then
7133 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
7136 cat >> confdefs.h <<\EOF
7137 #define SLAPD_LMHASH 1
7144 gethostbyname_r gethostbyaddr_r \
7147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7148 echo "configure:7149: checking for $ac_func" >&5
7149 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7155 /* System header to define __stub macros and hopefully few prototypes,
7156 which can conflict with char $ac_func(); below. */
7158 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7166 /* The GNU C library defines this for functions which it implements
7167 to always fail with ENOSYS. Some functions are actually named
7168 something starting with __ and the normal name is an alias. */
7169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 eval "ac_cv_func_$ac_func=yes"
7181 echo "configure: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7184 eval "ac_cv_func_$ac_func=no"
7189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7190 echo "$ac_t""yes" 1>&6
7191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7192 cat >> confdefs.h <<EOF
7193 #define $ac_tr_func 1
7197 echo "$ac_t""no" 1>&6
7202 if test "$ac_cv_func_ctime_r" = no ; then
7203 ol_cv_func_ctime_r_nargs=0
7205 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7206 echo "configure:7207: checking number of arguments of ctime_r" >&5
7207 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7215 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7218 if { (eval echo configure:7219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7220 ol_cv_func_ctime_r_nargs3=yes
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 ol_cv_func_ctime_r_nargs3=no
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7234 time_t ti; char *buffer; ctime_r(&ti,buffer);
7237 if { (eval echo configure:7238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7239 ol_cv_func_ctime_r_nargs2=yes
7241 echo "configure: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7244 ol_cv_func_ctime_r_nargs2=no
7248 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7249 $ol_cv_func_ctime_r_nargs2 = no ; then
7251 ol_cv_func_ctime_r_nargs=3
7253 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7254 $ol_cv_func_ctime_r_nargs2 = yes ; then
7256 ol_cv_func_ctime_r_nargs=2
7259 ol_cv_func_ctime_r_nargs=0
7264 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7266 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7267 cat >> confdefs.h <<EOF
7268 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7275 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7276 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7277 echo "configure:7278: checking number of arguments of gethostbyname_r" >&5
7278 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 #include <sys/types.h>
7285 #include <sys/socket.h>
7286 #include <netinet/in.h>
7288 #define BUFSIZE (sizeof(struct hostent)+10)
7290 struct hostent hent; char buffer[BUFSIZE];
7291 int bufsize=BUFSIZE;int h_errno;
7292 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7293 buffer, bufsize, &h_errno);
7296 if { (eval echo configure:7297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7298 ol_cv_func_gethostbyname_r_nargs5=yes
7300 echo "configure: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7303 ol_cv_func_gethostbyname_r_nargs5=no
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7310 #include <sys/types.h>
7311 #include <sys/socket.h>
7312 #include <netinet/in.h>
7314 #define BUFSIZE (sizeof(struct hostent)+10)
7316 struct hostent hent;struct hostent *rhent;
7317 char buffer[BUFSIZE];
7318 int bufsize=BUFSIZE;int h_errno;
7319 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7323 if { (eval echo configure:7324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7325 ol_cv_func_gethostbyname_r_nargs6=yes
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7330 ol_cv_func_gethostbyname_r_nargs6=no
7334 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7335 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7337 ol_cv_func_gethostbyname_r_nargs=5
7339 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7340 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7342 ol_cv_func_gethostbyname_r_nargs=6
7345 ol_cv_func_gethostbyname_r_nargs=0
7350 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7351 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7352 cat >> confdefs.h <<EOF
7353 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7359 ol_cv_func_gethostbyname_r_nargs=0
7362 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7363 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7364 echo "configure:7365: checking number of arguments of gethostbyaddr_r" >&5
7365 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 #include <sys/types.h>
7372 #include <sys/socket.h>
7373 #include <netinet/in.h>
7375 #define BUFSIZE (sizeof(struct hostent)+10)
7377 struct hostent hent; char buffer[BUFSIZE];
7379 size_t alen=sizeof(struct in_addr);
7380 int bufsize=BUFSIZE;int h_errno;
7381 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7382 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7385 if { (eval echo configure:7386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7387 ol_cv_func_gethostbyaddr_r_nargs7=yes
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 ol_cv_func_gethostbyaddr_r_nargs7=no
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 #include <sys/types.h>
7400 #include <sys/socket.h>
7401 #include <netinet/in.h>
7403 #define BUFSIZE (sizeof(struct hostent)+10)
7405 struct hostent hent;
7406 struct hostent *rhent; char buffer[BUFSIZE];
7408 size_t alen=sizeof(struct in_addr);
7409 int bufsize=BUFSIZE;int h_errno;
7410 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7411 alen, AF_INET, &hent, buffer, bufsize,
7415 if { (eval echo configure:7416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7417 ol_cv_func_gethostbyaddr_r_nargs8=yes
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 ol_cv_func_gethostbyaddr_r_nargs8=no
7426 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7427 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7429 ol_cv_func_gethostbyaddr_r_nargs=7
7431 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7432 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7434 ol_cv_func_gethostbyaddr_r_nargs=8
7437 ol_cv_func_gethostbyaddr_r_nargs=0
7442 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7443 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7444 cat >> confdefs.h <<EOF
7445 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7451 ol_cv_func_gethostbyaddr_r_nargs=0
7454 if test "$ac_cv_func_ctime_r" = yes \
7455 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7456 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7457 -a "$ac_cv_func_gethostbyname_r" = yes \
7458 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7459 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7460 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7461 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7462 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7465 cat >> confdefs.h <<\EOF
7466 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7473 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7474 -o $ol_with_threads = nt ; then
7477 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7478 echo "configure:7479: checking for _beginthread" >&5
7479 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7482 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 /* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char _beginthread(); below. */
7488 /* Override any gcc2 internal prototype to avoid an error. */
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char _beginthread();
7496 /* The GNU C library defines this for functions which it implements
7497 to always fail with ENOSYS. Some functions are actually named
7498 something starting with __ and the normal name is an alias. */
7499 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7507 if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7509 eval "ac_cv_func__beginthread=yes"
7511 echo "configure: failed program was:" >&5
7512 cat conftest.$ac_ext >&5
7514 eval "ac_cv_func__beginthread=no"
7519 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7520 echo "$ac_t""yes" 1>&6
7523 echo "$ac_t""no" 1>&6
7527 if test $ac_cv_func__beginthread = yes ; then
7528 cat >> confdefs.h <<\EOF
7529 #define HAVE_NT_THREADS 1
7535 if test "$ol_cv_nt_threads" = yes ; then
7537 ol_with_threads=found
7538 ol_with_yielding_select=yes
7540 cat >> confdefs.h <<\EOF
7541 #define HAVE_NT_SERVICE_MANAGER 1
7544 cat >> confdefs.h <<\EOF
7545 #define HAVE_NT_EVENT_LOG 1
7550 if test $ol_with_threads = nt ; then
7551 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7555 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7556 -o $ol_with_threads = posix ; then
7558 for ac_hdr in pthread.h
7560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_hdr" >&5
7563 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7572 { (eval echo configure:7573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7574 if test -z "$ac_err"; then
7576 eval "ac_cv_header_$ac_safe=yes"
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7582 eval "ac_cv_header_$ac_safe=no"
7586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7587 echo "$ac_t""yes" 1>&6
7588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7589 cat >> confdefs.h <<EOF
7590 #define $ac_tr_hdr 1
7594 echo "$ac_t""no" 1>&6
7599 if test $ac_cv_header_pthread_h = yes ; then
7600 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7601 echo "configure:7602: checking POSIX thread version" >&5
7602 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7610 # include <pthread.h>
7611 /* this check could be improved */
7612 # ifdef PTHREAD_ONCE_INIT
7613 pthread_version_final;
7617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7618 egrep "pthread_version_final" >/dev/null 2>&1; then
7620 ol_pthread_final=yes
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7632 # include <pthread.h>
7633 /* this check could be improved */
7634 # ifdef pthread_once_init
7635 pthread_version_draft4;
7639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7640 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7642 ol_pthread_draft4=yes
7645 ol_pthread_draft4=no
7650 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7651 ol_cv_pthread_version=final
7652 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7653 ol_cv_pthread_version=draft4
7655 ol_cv_pthread_version=unknown
7660 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7663 if test $ol_cv_pthread_version = final ; then
7664 cat >> confdefs.h <<\EOF
7665 #define HAVE_PTHREADS_FINAL 1
7668 elif test $ol_cv_pthread_version = draft4 ; then
7669 cat >> confdefs.h <<\EOF
7670 #define HAVE_PTHREADS_D4 1
7674 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7677 # consider threads found
7678 ol_with_threads=found
7681 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7682 echo "configure:7683: checking for LinuxThreads pthread.h" >&5
7683 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7686 cat > conftest.$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7689 #include <pthread.h>
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7694 ol_cv_header_linux_threads=yes
7697 ol_cv_header_linux_threads=no
7704 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7705 if test $ol_cv_header_linux_threads = yes; then
7706 cat >> confdefs.h <<\EOF
7707 #define HAVE_LINUX_THREADS 1
7713 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7714 echo "configure:7715: checking for GNU Pth pthread.h" >&5
7715 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 #include <pthread.h>
7722 #ifdef _POSIX_THREAD_IS_GNU_PTH
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 egrep "__gnu_pth__" >/dev/null 2>&1; then
7730 ol_cv_header_gnu_pth_pthread_h=yes
7733 ol_cv_header_gnu_pth_pthread_h=no
7740 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7743 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7744 for ac_hdr in sched.h
7746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7748 echo "configure:7749: checking for $ac_hdr" >&5
7749 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7750 echo $ac_n "(cached) $ac_c" 1>&6
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7758 { (eval echo configure:7759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7760 if test -z "$ac_err"; then
7762 eval "ac_cv_header_$ac_safe=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_header_$ac_safe=no"
7772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7775 cat >> confdefs.h <<EOF
7776 #define $ac_tr_hdr 1
7780 echo "$ac_t""no" 1>&6
7787 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7788 echo "configure:7789: checking for pthread_create in default libraries" >&5
7789 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7790 echo $ac_n "(cached) $ac_c" 1>&6
7793 if test "$cross_compiling" = yes; then
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* pthread test headers */
7798 #include <pthread.h>
7800 #define NULL (void*)0
7803 static void *task(p)
7806 return (void *) (p == NULL);
7811 /* pthread test function */
7816 #ifdef HAVE_PTHREADS_FINAL
7817 /* Final pthreads */
7818 pthread_attr_t attr;
7820 status = pthread_attr_init(&attr);
7821 if( status ) return status;
7823 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7825 #if defined( PTHREAD_CREATE_JOINABLE )
7826 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7828 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7831 #ifdef PTHREAD_CREATE_DETACHED
7833 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7836 if( status ) return status;
7839 status = pthread_create( &t, &attr, task, NULL );
7840 if( status ) return status;
7842 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7844 /* give thread a chance to complete */
7845 /* it should remain joinable and hence detachable */
7848 status = pthread_detach( t );
7849 if( status ) return status;
7854 /* Draft 4 pthreads */
7855 status = pthread_create( &t, pthread_attr_default, task, NULL );
7856 if( status ) return status;
7859 /* give thread a chance to complete */
7860 /* it should remain joinable and hence detachable */
7863 status = pthread_detach( &t );
7864 if( status ) return status;
7868 #ifdef HAVE_LINUX_THREADS
7869 pthread_kill_other_threads_np();
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7878 ol_cv_pthread_create=yes
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7883 ol_cv_pthread_create=no
7887 cat > conftest.$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7890 /* pthread test headers */
7891 #include <pthread.h>
7893 #define NULL (void*)0
7896 static void *task(p)
7899 return (void *) (p == NULL);
7903 int main(argc, argv)
7908 /* pthread test function */
7913 #ifdef HAVE_PTHREADS_FINAL
7914 /* Final pthreads */
7915 pthread_attr_t attr;
7917 status = pthread_attr_init(&attr);
7918 if( status ) return status;
7920 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7922 #if defined( PTHREAD_CREATE_JOINABLE )
7923 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7925 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7928 #ifdef PTHREAD_CREATE_DETACHED
7930 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7933 if( status ) return status;
7936 status = pthread_create( &t, &attr, task, NULL );
7937 if( status ) return status;
7939 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7941 /* give thread a chance to complete */
7942 /* it should remain joinable and hence detachable */
7945 status = pthread_detach( t );
7946 if( status ) return status;
7951 /* Draft 4 pthreads */
7952 status = pthread_create( &t, pthread_attr_default, task, NULL );
7953 if( status ) return status;
7956 /* give thread a chance to complete */
7957 /* it should remain joinable and hence detachable */
7960 status = pthread_detach( &t );
7961 if( status ) return status;
7965 #ifdef HAVE_LINUX_THREADS
7966 pthread_kill_other_threads_np();
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7976 ol_cv_pthread_create=yes
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 ol_cv_pthread_create=no
7988 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7990 if test $ol_cv_pthread_create != no ; then
7991 ol_link_threads=posix
7995 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7996 if test "$ol_link_threads" = no ; then
7998 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7999 echo "configure:8000: checking for pthread link with -kthread" >&5
8000 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8006 LIBS="-kthread $LIBS"
8008 if test "$cross_compiling" = yes; then
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8012 /* pthread test headers */
8013 #include <pthread.h>
8015 #define NULL (void*)0
8018 static void *task(p)
8021 return (void *) (p == NULL);
8026 /* pthread test function */
8031 #ifdef HAVE_PTHREADS_FINAL
8032 /* Final pthreads */
8033 pthread_attr_t attr;
8035 status = pthread_attr_init(&attr);
8036 if( status ) return status;
8038 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8040 #if defined( PTHREAD_CREATE_JOINABLE )
8041 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8043 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8046 #ifdef PTHREAD_CREATE_DETACHED
8048 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8051 if( status ) return status;
8054 status = pthread_create( &t, &attr, task, NULL );
8055 if( status ) return status;
8057 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8059 /* give thread a chance to complete */
8060 /* it should remain joinable and hence detachable */
8063 status = pthread_detach( t );
8064 if( status ) return status;
8069 /* Draft 4 pthreads */
8070 status = pthread_create( &t, pthread_attr_default, task, NULL );
8071 if( status ) return status;
8074 /* give thread a chance to complete */
8075 /* it should remain joinable and hence detachable */
8078 status = pthread_detach( &t );
8079 if( status ) return status;
8083 #ifdef HAVE_LINUX_THREADS
8084 pthread_kill_other_threads_np();
8091 if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8093 ol_cv_pthread_kthread=yes
8095 echo "configure: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8098 ol_cv_pthread_kthread=no
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* pthread test headers */
8106 #include <pthread.h>
8108 #define NULL (void*)0
8111 static void *task(p)
8114 return (void *) (p == NULL);
8118 int main(argc, argv)
8123 /* pthread test function */
8128 #ifdef HAVE_PTHREADS_FINAL
8129 /* Final pthreads */
8130 pthread_attr_t attr;
8132 status = pthread_attr_init(&attr);
8133 if( status ) return status;
8135 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8137 #if defined( PTHREAD_CREATE_JOINABLE )
8138 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8140 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8143 #ifdef PTHREAD_CREATE_DETACHED
8145 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8148 if( status ) return status;
8151 status = pthread_create( &t, &attr, task, NULL );
8152 if( status ) return status;
8154 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8156 /* give thread a chance to complete */
8157 /* it should remain joinable and hence detachable */
8160 status = pthread_detach( t );
8161 if( status ) return status;
8166 /* Draft 4 pthreads */
8167 status = pthread_create( &t, pthread_attr_default, task, NULL );
8168 if( status ) return status;
8171 /* give thread a chance to complete */
8172 /* it should remain joinable and hence detachable */
8175 status = pthread_detach( &t );
8176 if( status ) return status;
8180 #ifdef HAVE_LINUX_THREADS
8181 pthread_kill_other_threads_np();
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8191 ol_cv_pthread_kthread=yes
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8196 ol_cv_pthread_kthread=no
8207 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8209 if test $ol_cv_pthread_kthread = yes ; then
8210 ol_link_pthreads="-kthread"
8211 ol_link_threads=posix
8215 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8216 if test "$ol_link_threads" = no ; then
8218 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8219 echo "configure:8220: checking for pthread link with -pthread" >&5
8220 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6
8226 LIBS="-pthread $LIBS"
8228 if test "$cross_compiling" = yes; then
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 /* pthread test headers */
8233 #include <pthread.h>
8235 #define NULL (void*)0
8238 static void *task(p)
8241 return (void *) (p == NULL);
8246 /* pthread test function */
8251 #ifdef HAVE_PTHREADS_FINAL
8252 /* Final pthreads */
8253 pthread_attr_t attr;
8255 status = pthread_attr_init(&attr);
8256 if( status ) return status;
8258 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8260 #if defined( PTHREAD_CREATE_JOINABLE )
8261 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8263 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8266 #ifdef PTHREAD_CREATE_DETACHED
8268 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8271 if( status ) return status;
8274 status = pthread_create( &t, &attr, task, NULL );
8275 if( status ) return status;
8277 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8279 /* give thread a chance to complete */
8280 /* it should remain joinable and hence detachable */
8283 status = pthread_detach( t );
8284 if( status ) return status;
8289 /* Draft 4 pthreads */
8290 status = pthread_create( &t, pthread_attr_default, task, NULL );
8291 if( status ) return status;
8294 /* give thread a chance to complete */
8295 /* it should remain joinable and hence detachable */
8298 status = pthread_detach( &t );
8299 if( status ) return status;
8303 #ifdef HAVE_LINUX_THREADS
8304 pthread_kill_other_threads_np();
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 ol_cv_pthread_pthread=yes
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 ol_cv_pthread_pthread=no
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* pthread test headers */
8326 #include <pthread.h>
8328 #define NULL (void*)0
8331 static void *task(p)
8334 return (void *) (p == NULL);
8338 int main(argc, argv)
8343 /* pthread test function */
8348 #ifdef HAVE_PTHREADS_FINAL
8349 /* Final pthreads */
8350 pthread_attr_t attr;
8352 status = pthread_attr_init(&attr);
8353 if( status ) return status;
8355 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8357 #if defined( PTHREAD_CREATE_JOINABLE )
8358 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8360 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8363 #ifdef PTHREAD_CREATE_DETACHED
8365 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8368 if( status ) return status;
8371 status = pthread_create( &t, &attr, task, NULL );
8372 if( status ) return status;
8374 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8376 /* give thread a chance to complete */
8377 /* it should remain joinable and hence detachable */
8380 status = pthread_detach( t );
8381 if( status ) return status;
8386 /* Draft 4 pthreads */
8387 status = pthread_create( &t, pthread_attr_default, task, NULL );
8388 if( status ) return status;
8391 /* give thread a chance to complete */
8392 /* it should remain joinable and hence detachable */
8395 status = pthread_detach( &t );
8396 if( status ) return status;
8400 #ifdef HAVE_LINUX_THREADS
8401 pthread_kill_other_threads_np();
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8411 ol_cv_pthread_pthread=yes
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8416 ol_cv_pthread_pthread=no
8427 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8429 if test $ol_cv_pthread_pthread = yes ; then
8430 ol_link_pthreads="-pthread"
8431 ol_link_threads=posix
8435 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8436 if test "$ol_link_threads" = no ; then
8438 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8439 echo "configure:8440: checking for pthread link with -pthreads" >&5
8440 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8446 LIBS="-pthreads $LIBS"
8448 if test "$cross_compiling" = yes; then
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8452 /* pthread test headers */
8453 #include <pthread.h>
8455 #define NULL (void*)0
8458 static void *task(p)
8461 return (void *) (p == NULL);
8466 /* pthread test function */
8471 #ifdef HAVE_PTHREADS_FINAL
8472 /* Final pthreads */
8473 pthread_attr_t attr;
8475 status = pthread_attr_init(&attr);
8476 if( status ) return status;
8478 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8480 #if defined( PTHREAD_CREATE_JOINABLE )
8481 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8483 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8486 #ifdef PTHREAD_CREATE_DETACHED
8488 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8491 if( status ) return status;
8494 status = pthread_create( &t, &attr, task, NULL );
8495 if( status ) return status;
8497 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8499 /* give thread a chance to complete */
8500 /* it should remain joinable and hence detachable */
8503 status = pthread_detach( t );
8504 if( status ) return status;
8509 /* Draft 4 pthreads */
8510 status = pthread_create( &t, pthread_attr_default, task, NULL );
8511 if( status ) return status;
8514 /* give thread a chance to complete */
8515 /* it should remain joinable and hence detachable */
8518 status = pthread_detach( &t );
8519 if( status ) return status;
8523 #ifdef HAVE_LINUX_THREADS
8524 pthread_kill_other_threads_np();
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 ol_cv_pthread_pthreads=yes
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 ol_cv_pthread_pthreads=no
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* pthread test headers */
8546 #include <pthread.h>
8548 #define NULL (void*)0
8551 static void *task(p)
8554 return (void *) (p == NULL);
8558 int main(argc, argv)
8563 /* pthread test function */
8568 #ifdef HAVE_PTHREADS_FINAL
8569 /* Final pthreads */
8570 pthread_attr_t attr;
8572 status = pthread_attr_init(&attr);
8573 if( status ) return status;
8575 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8577 #if defined( PTHREAD_CREATE_JOINABLE )
8578 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8580 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8583 #ifdef PTHREAD_CREATE_DETACHED
8585 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8588 if( status ) return status;
8591 status = pthread_create( &t, &attr, task, NULL );
8592 if( status ) return status;
8594 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8596 /* give thread a chance to complete */
8597 /* it should remain joinable and hence detachable */
8600 status = pthread_detach( t );
8601 if( status ) return status;
8606 /* Draft 4 pthreads */
8607 status = pthread_create( &t, pthread_attr_default, task, NULL );
8608 if( status ) return status;
8611 /* give thread a chance to complete */
8612 /* it should remain joinable and hence detachable */
8615 status = pthread_detach( &t );
8616 if( status ) return status;
8620 #ifdef HAVE_LINUX_THREADS
8621 pthread_kill_other_threads_np();
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8631 ol_cv_pthread_pthreads=yes
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 ol_cv_pthread_pthreads=no
8647 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8649 if test $ol_cv_pthread_pthreads = yes ; then
8650 ol_link_pthreads="-pthreads"
8651 ol_link_threads=posix
8655 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8656 if test "$ol_link_threads" = no ; then
8658 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8659 echo "configure:8660: checking for pthread link with -mthreads" >&5
8660 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8666 LIBS="-mthreads $LIBS"
8668 if test "$cross_compiling" = yes; then
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 /* pthread test headers */
8673 #include <pthread.h>
8675 #define NULL (void*)0
8678 static void *task(p)
8681 return (void *) (p == NULL);
8686 /* pthread test function */
8691 #ifdef HAVE_PTHREADS_FINAL
8692 /* Final pthreads */
8693 pthread_attr_t attr;
8695 status = pthread_attr_init(&attr);
8696 if( status ) return status;
8698 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8700 #if defined( PTHREAD_CREATE_JOINABLE )
8701 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8703 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8706 #ifdef PTHREAD_CREATE_DETACHED
8708 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8711 if( status ) return status;
8714 status = pthread_create( &t, &attr, task, NULL );
8715 if( status ) return status;
8717 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8719 /* give thread a chance to complete */
8720 /* it should remain joinable and hence detachable */
8723 status = pthread_detach( t );
8724 if( status ) return status;
8729 /* Draft 4 pthreads */
8730 status = pthread_create( &t, pthread_attr_default, task, NULL );
8731 if( status ) return status;
8734 /* give thread a chance to complete */
8735 /* it should remain joinable and hence detachable */
8738 status = pthread_detach( &t );
8739 if( status ) return status;
8743 #ifdef HAVE_LINUX_THREADS
8744 pthread_kill_other_threads_np();
8751 if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8753 ol_cv_pthread_mthreads=yes
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8758 ol_cv_pthread_mthreads=no
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 /* pthread test headers */
8766 #include <pthread.h>
8768 #define NULL (void*)0
8771 static void *task(p)
8774 return (void *) (p == NULL);
8778 int main(argc, argv)
8783 /* pthread test function */
8788 #ifdef HAVE_PTHREADS_FINAL
8789 /* Final pthreads */
8790 pthread_attr_t attr;
8792 status = pthread_attr_init(&attr);
8793 if( status ) return status;
8795 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8797 #if defined( PTHREAD_CREATE_JOINABLE )
8798 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8800 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8803 #ifdef PTHREAD_CREATE_DETACHED
8805 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8808 if( status ) return status;
8811 status = pthread_create( &t, &attr, task, NULL );
8812 if( status ) return status;
8814 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8816 /* give thread a chance to complete */
8817 /* it should remain joinable and hence detachable */
8820 status = pthread_detach( t );
8821 if( status ) return status;
8826 /* Draft 4 pthreads */
8827 status = pthread_create( &t, pthread_attr_default, task, NULL );
8828 if( status ) return status;
8831 /* give thread a chance to complete */
8832 /* it should remain joinable and hence detachable */
8835 status = pthread_detach( &t );
8836 if( status ) return status;
8840 #ifdef HAVE_LINUX_THREADS
8841 pthread_kill_other_threads_np();
8849 if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8851 ol_cv_pthread_mthreads=yes
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8856 ol_cv_pthread_mthreads=no
8867 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8869 if test $ol_cv_pthread_mthreads = yes ; then
8870 ol_link_pthreads="-mthreads"
8871 ol_link_threads=posix
8875 # Pthread try link: -thread (ol_cv_pthread_thread)
8876 if test "$ol_link_threads" = no ; then
8878 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8879 echo "configure:8880: checking for pthread link with -thread" >&5
8880 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8886 LIBS="-thread $LIBS"
8888 if test "$cross_compiling" = yes; then
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* pthread test headers */
8893 #include <pthread.h>
8895 #define NULL (void*)0
8898 static void *task(p)
8901 return (void *) (p == NULL);
8906 /* pthread test function */
8911 #ifdef HAVE_PTHREADS_FINAL
8912 /* Final pthreads */
8913 pthread_attr_t attr;
8915 status = pthread_attr_init(&attr);
8916 if( status ) return status;
8918 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8920 #if defined( PTHREAD_CREATE_JOINABLE )
8921 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8923 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8926 #ifdef PTHREAD_CREATE_DETACHED
8928 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8931 if( status ) return status;
8934 status = pthread_create( &t, &attr, task, NULL );
8935 if( status ) return status;
8937 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8939 /* give thread a chance to complete */
8940 /* it should remain joinable and hence detachable */
8943 status = pthread_detach( t );
8944 if( status ) return status;
8949 /* Draft 4 pthreads */
8950 status = pthread_create( &t, pthread_attr_default, task, NULL );
8951 if( status ) return status;
8954 /* give thread a chance to complete */
8955 /* it should remain joinable and hence detachable */
8958 status = pthread_detach( &t );
8959 if( status ) return status;
8963 #ifdef HAVE_LINUX_THREADS
8964 pthread_kill_other_threads_np();
8971 if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8973 ol_cv_pthread_thread=yes
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8978 ol_cv_pthread_thread=no
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 /* pthread test headers */
8986 #include <pthread.h>
8988 #define NULL (void*)0
8991 static void *task(p)
8994 return (void *) (p == NULL);
8998 int main(argc, argv)
9003 /* pthread test function */
9008 #ifdef HAVE_PTHREADS_FINAL
9009 /* Final pthreads */
9010 pthread_attr_t attr;
9012 status = pthread_attr_init(&attr);
9013 if( status ) return status;
9015 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9017 #if defined( PTHREAD_CREATE_JOINABLE )
9018 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9020 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9023 #ifdef PTHREAD_CREATE_DETACHED
9025 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9028 if( status ) return status;
9031 status = pthread_create( &t, &attr, task, NULL );
9032 if( status ) return status;
9034 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9036 /* give thread a chance to complete */
9037 /* it should remain joinable and hence detachable */
9040 status = pthread_detach( t );
9041 if( status ) return status;
9046 /* Draft 4 pthreads */
9047 status = pthread_create( &t, pthread_attr_default, task, NULL );
9048 if( status ) return status;
9051 /* give thread a chance to complete */
9052 /* it should remain joinable and hence detachable */
9055 status = pthread_detach( &t );
9056 if( status ) return status;
9060 #ifdef HAVE_LINUX_THREADS
9061 pthread_kill_other_threads_np();
9069 if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9071 ol_cv_pthread_thread=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 ol_cv_pthread_thread=no
9087 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
9089 if test $ol_cv_pthread_thread = yes ; then
9090 ol_link_pthreads="-thread"
9091 ol_link_threads=posix
9096 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
9097 if test "$ol_link_threads" = no ; then
9098 # try -lpthread -lmach -lexc -lc_r
9099 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
9100 echo "configure:9101: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
9101 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9107 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
9109 if test "$cross_compiling" = yes; then
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 /* pthread test headers */
9114 #include <pthread.h>
9116 #define NULL (void*)0
9119 static void *task(p)
9122 return (void *) (p == NULL);
9127 /* pthread test function */
9132 #ifdef HAVE_PTHREADS_FINAL
9133 /* Final pthreads */
9134 pthread_attr_t attr;
9136 status = pthread_attr_init(&attr);
9137 if( status ) return status;
9139 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9141 #if defined( PTHREAD_CREATE_JOINABLE )
9142 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9144 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9147 #ifdef PTHREAD_CREATE_DETACHED
9149 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9152 if( status ) return status;
9155 status = pthread_create( &t, &attr, task, NULL );
9156 if( status ) return status;
9158 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9160 /* give thread a chance to complete */
9161 /* it should remain joinable and hence detachable */
9164 status = pthread_detach( t );
9165 if( status ) return status;
9170 /* Draft 4 pthreads */
9171 status = pthread_create( &t, pthread_attr_default, task, NULL );
9172 if( status ) return status;
9175 /* give thread a chance to complete */
9176 /* it should remain joinable and hence detachable */
9179 status = pthread_detach( &t );
9180 if( status ) return status;
9184 #ifdef HAVE_LINUX_THREADS
9185 pthread_kill_other_threads_np();
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9194 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 /* pthread test headers */
9207 #include <pthread.h>
9209 #define NULL (void*)0
9212 static void *task(p)
9215 return (void *) (p == NULL);
9219 int main(argc, argv)
9224 /* pthread test function */
9229 #ifdef HAVE_PTHREADS_FINAL
9230 /* Final pthreads */
9231 pthread_attr_t attr;
9233 status = pthread_attr_init(&attr);
9234 if( status ) return status;
9236 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9238 #if defined( PTHREAD_CREATE_JOINABLE )
9239 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9241 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9244 #ifdef PTHREAD_CREATE_DETACHED
9246 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9249 if( status ) return status;
9252 status = pthread_create( &t, &attr, task, NULL );
9253 if( status ) return status;
9255 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9257 /* give thread a chance to complete */
9258 /* it should remain joinable and hence detachable */
9261 status = pthread_detach( t );
9262 if( status ) return status;
9267 /* Draft 4 pthreads */
9268 status = pthread_create( &t, pthread_attr_default, task, NULL );
9269 if( status ) return status;
9272 /* give thread a chance to complete */
9273 /* it should remain joinable and hence detachable */
9276 status = pthread_detach( &t );
9277 if( status ) return status;
9281 #ifdef HAVE_LINUX_THREADS
9282 pthread_kill_other_threads_np();
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9292 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9297 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9308 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9310 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9311 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9312 ol_link_threads=posix
9316 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9317 if test "$ol_link_threads" = no ; then
9318 # try -lpthread -lmach -lexc
9319 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9320 echo "configure:9321: checking for pthread link with -lpthread -lmach -lexc" >&5
9321 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9327 LIBS="-lpthread -lmach -lexc $LIBS"
9329 if test "$cross_compiling" = yes; then
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 /* pthread test headers */
9334 #include <pthread.h>
9336 #define NULL (void*)0
9339 static void *task(p)
9342 return (void *) (p == NULL);
9347 /* pthread test function */
9352 #ifdef HAVE_PTHREADS_FINAL
9353 /* Final pthreads */
9354 pthread_attr_t attr;
9356 status = pthread_attr_init(&attr);
9357 if( status ) return status;
9359 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9361 #if defined( PTHREAD_CREATE_JOINABLE )
9362 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9364 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9367 #ifdef PTHREAD_CREATE_DETACHED
9369 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9372 if( status ) return status;
9375 status = pthread_create( &t, &attr, task, NULL );
9376 if( status ) return status;
9378 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9380 /* give thread a chance to complete */
9381 /* it should remain joinable and hence detachable */
9384 status = pthread_detach( t );
9385 if( status ) return status;
9390 /* Draft 4 pthreads */
9391 status = pthread_create( &t, pthread_attr_default, task, NULL );
9392 if( status ) return status;
9395 /* give thread a chance to complete */
9396 /* it should remain joinable and hence detachable */
9399 status = pthread_detach( &t );
9400 if( status ) return status;
9404 #ifdef HAVE_LINUX_THREADS
9405 pthread_kill_other_threads_np();
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 ol_cv_pthread_lpthread_lmach_lexc=yes
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 ol_cv_pthread_lpthread_lmach_lexc=no
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 /* pthread test headers */
9427 #include <pthread.h>
9429 #define NULL (void*)0
9432 static void *task(p)
9435 return (void *) (p == NULL);
9439 int main(argc, argv)
9444 /* pthread test function */
9449 #ifdef HAVE_PTHREADS_FINAL
9450 /* Final pthreads */
9451 pthread_attr_t attr;
9453 status = pthread_attr_init(&attr);
9454 if( status ) return status;
9456 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9458 #if defined( PTHREAD_CREATE_JOINABLE )
9459 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9461 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9464 #ifdef PTHREAD_CREATE_DETACHED
9466 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9469 if( status ) return status;
9472 status = pthread_create( &t, &attr, task, NULL );
9473 if( status ) return status;
9475 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9477 /* give thread a chance to complete */
9478 /* it should remain joinable and hence detachable */
9481 status = pthread_detach( t );
9482 if( status ) return status;
9487 /* Draft 4 pthreads */
9488 status = pthread_create( &t, pthread_attr_default, task, NULL );
9489 if( status ) return status;
9492 /* give thread a chance to complete */
9493 /* it should remain joinable and hence detachable */
9496 status = pthread_detach( &t );
9497 if( status ) return status;
9501 #ifdef HAVE_LINUX_THREADS
9502 pthread_kill_other_threads_np();
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9512 ol_cv_pthread_lpthread_lmach_lexc=yes
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 ol_cv_pthread_lpthread_lmach_lexc=no
9528 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9530 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9531 ol_link_pthreads="-lpthread -lmach -lexc"
9532 ol_link_threads=posix
9537 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9538 if test "$ol_link_threads" = no ; then
9539 # try -lpthread -Wl,-woff,85
9540 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9541 echo "configure:9542: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9542 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9548 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9550 if test "$cross_compiling" = yes; then
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 /* pthread test headers */
9555 #include <pthread.h>
9557 #define NULL (void*)0
9560 static void *task(p)
9563 return (void *) (p == NULL);
9568 /* pthread test function */
9573 #ifdef HAVE_PTHREADS_FINAL
9574 /* Final pthreads */
9575 pthread_attr_t attr;
9577 status = pthread_attr_init(&attr);
9578 if( status ) return status;
9580 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9582 #if defined( PTHREAD_CREATE_JOINABLE )
9583 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9585 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9588 #ifdef PTHREAD_CREATE_DETACHED
9590 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9593 if( status ) return status;
9596 status = pthread_create( &t, &attr, task, NULL );
9597 if( status ) return status;
9599 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9601 /* give thread a chance to complete */
9602 /* it should remain joinable and hence detachable */
9605 status = pthread_detach( t );
9606 if( status ) return status;
9611 /* Draft 4 pthreads */
9612 status = pthread_create( &t, pthread_attr_default, task, NULL );
9613 if( status ) return status;
9616 /* give thread a chance to complete */
9617 /* it should remain joinable and hence detachable */
9620 status = pthread_detach( &t );
9621 if( status ) return status;
9625 #ifdef HAVE_LINUX_THREADS
9626 pthread_kill_other_threads_np();
9633 if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9635 ol_cv_pthread_lib_lpthread_woff=yes
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9640 ol_cv_pthread_lib_lpthread_woff=no
9644 cat > conftest.$ac_ext <<EOF
9645 #line 9646 "configure"
9646 #include "confdefs.h"
9647 /* pthread test headers */
9648 #include <pthread.h>
9650 #define NULL (void*)0
9653 static void *task(p)
9656 return (void *) (p == NULL);
9660 int main(argc, argv)
9665 /* pthread test function */
9670 #ifdef HAVE_PTHREADS_FINAL
9671 /* Final pthreads */
9672 pthread_attr_t attr;
9674 status = pthread_attr_init(&attr);
9675 if( status ) return status;
9677 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9679 #if defined( PTHREAD_CREATE_JOINABLE )
9680 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9682 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9685 #ifdef PTHREAD_CREATE_DETACHED
9687 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9690 if( status ) return status;
9693 status = pthread_create( &t, &attr, task, NULL );
9694 if( status ) return status;
9696 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9698 /* give thread a chance to complete */
9699 /* it should remain joinable and hence detachable */
9702 status = pthread_detach( t );
9703 if( status ) return status;
9708 /* Draft 4 pthreads */
9709 status = pthread_create( &t, pthread_attr_default, task, NULL );
9710 if( status ) return status;
9713 /* give thread a chance to complete */
9714 /* it should remain joinable and hence detachable */
9717 status = pthread_detach( &t );
9718 if( status ) return status;
9722 #ifdef HAVE_LINUX_THREADS
9723 pthread_kill_other_threads_np();
9731 if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9733 ol_cv_pthread_lib_lpthread_woff=yes
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9738 ol_cv_pthread_lib_lpthread_woff=no
9749 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9751 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9752 ol_link_pthreads="-lpthread -Wl,-woff,85"
9753 ol_link_threads=posix
9758 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9759 if test "$ol_link_threads" = no ; then
9761 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9762 echo "configure:9763: checking for pthread link with -lpthread" >&5
9763 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9769 LIBS="-lpthread $LIBS"
9771 if test "$cross_compiling" = yes; then
9772 cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9775 /* pthread test headers */
9776 #include <pthread.h>
9778 #define NULL (void*)0
9781 static void *task(p)
9784 return (void *) (p == NULL);
9789 /* pthread test function */
9794 #ifdef HAVE_PTHREADS_FINAL
9795 /* Final pthreads */
9796 pthread_attr_t attr;
9798 status = pthread_attr_init(&attr);
9799 if( status ) return status;
9801 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9803 #if defined( PTHREAD_CREATE_JOINABLE )
9804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9806 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9809 #ifdef PTHREAD_CREATE_DETACHED
9811 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9814 if( status ) return status;
9817 status = pthread_create( &t, &attr, task, NULL );
9818 if( status ) return status;
9820 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9822 /* give thread a chance to complete */
9823 /* it should remain joinable and hence detachable */
9826 status = pthread_detach( t );
9827 if( status ) return status;
9832 /* Draft 4 pthreads */
9833 status = pthread_create( &t, pthread_attr_default, task, NULL );
9834 if( status ) return status;
9837 /* give thread a chance to complete */
9838 /* it should remain joinable and hence detachable */
9841 status = pthread_detach( &t );
9842 if( status ) return status;
9846 #ifdef HAVE_LINUX_THREADS
9847 pthread_kill_other_threads_np();
9854 if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9856 ol_cv_pthread_lpthread=yes
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9861 ol_cv_pthread_lpthread=no
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 /* pthread test headers */
9869 #include <pthread.h>
9871 #define NULL (void*)0
9874 static void *task(p)
9877 return (void *) (p == NULL);
9881 int main(argc, argv)
9886 /* pthread test function */
9891 #ifdef HAVE_PTHREADS_FINAL
9892 /* Final pthreads */
9893 pthread_attr_t attr;
9895 status = pthread_attr_init(&attr);
9896 if( status ) return status;
9898 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9900 #if defined( PTHREAD_CREATE_JOINABLE )
9901 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9903 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9906 #ifdef PTHREAD_CREATE_DETACHED
9908 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9911 if( status ) return status;
9914 status = pthread_create( &t, &attr, task, NULL );
9915 if( status ) return status;
9917 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9919 /* give thread a chance to complete */
9920 /* it should remain joinable and hence detachable */
9923 status = pthread_detach( t );
9924 if( status ) return status;
9929 /* Draft 4 pthreads */
9930 status = pthread_create( &t, pthread_attr_default, task, NULL );
9931 if( status ) return status;
9934 /* give thread a chance to complete */
9935 /* it should remain joinable and hence detachable */
9938 status = pthread_detach( &t );
9939 if( status ) return status;
9943 #ifdef HAVE_LINUX_THREADS
9944 pthread_kill_other_threads_np();
9952 if { (eval echo configure:9953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9954 ol_cv_pthread_lpthread=yes
9956 echo "configure: failed program was:" >&5
9957 cat conftest.$ac_ext >&5
9959 ol_cv_pthread_lpthread=no
9970 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9972 if test $ol_cv_pthread_lpthread = yes ; then
9973 ol_link_pthreads="-lpthread"
9974 ol_link_threads=posix
9978 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9979 if test "$ol_link_threads" = no ; then
9981 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9982 echo "configure:9983: checking for pthread link with -lc_r" >&5
9983 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9991 if test "$cross_compiling" = yes; then
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 /* pthread test headers */
9996 #include <pthread.h>
9998 #define NULL (void*)0
10001 static void *task(p)
10004 return (void *) (p == NULL);
10009 /* pthread test function */
10014 #ifdef HAVE_PTHREADS_FINAL
10015 /* Final pthreads */
10016 pthread_attr_t attr;
10018 status = pthread_attr_init(&attr);
10019 if( status ) return status;
10021 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10023 #if defined( PTHREAD_CREATE_JOINABLE )
10024 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10026 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10029 #ifdef PTHREAD_CREATE_DETACHED
10031 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10034 if( status ) return status;
10037 status = pthread_create( &t, &attr, task, NULL );
10038 if( status ) return status;
10040 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10042 /* give thread a chance to complete */
10043 /* it should remain joinable and hence detachable */
10046 status = pthread_detach( t );
10047 if( status ) return status;
10052 /* Draft 4 pthreads */
10053 status = pthread_create( &t, pthread_attr_default, task, NULL );
10054 if( status ) return status;
10057 /* give thread a chance to complete */
10058 /* it should remain joinable and hence detachable */
10061 status = pthread_detach( &t );
10062 if( status ) return status;
10066 #ifdef HAVE_LINUX_THREADS
10067 pthread_kill_other_threads_np();
10074 if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 ol_cv_pthread_lc_r=yes
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10081 ol_cv_pthread_lc_r=no
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 /* pthread test headers */
10089 #include <pthread.h>
10091 #define NULL (void*)0
10094 static void *task(p)
10097 return (void *) (p == NULL);
10101 int main(argc, argv)
10106 /* pthread test function */
10111 #ifdef HAVE_PTHREADS_FINAL
10112 /* Final pthreads */
10113 pthread_attr_t attr;
10115 status = pthread_attr_init(&attr);
10116 if( status ) return status;
10118 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10120 #if defined( PTHREAD_CREATE_JOINABLE )
10121 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10123 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10126 #ifdef PTHREAD_CREATE_DETACHED
10128 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10131 if( status ) return status;
10134 status = pthread_create( &t, &attr, task, NULL );
10135 if( status ) return status;
10137 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10139 /* give thread a chance to complete */
10140 /* it should remain joinable and hence detachable */
10143 status = pthread_detach( t );
10144 if( status ) return status;
10149 /* Draft 4 pthreads */
10150 status = pthread_create( &t, pthread_attr_default, task, NULL );
10151 if( status ) return status;
10154 /* give thread a chance to complete */
10155 /* it should remain joinable and hence detachable */
10158 status = pthread_detach( &t );
10159 if( status ) return status;
10163 #ifdef HAVE_LINUX_THREADS
10164 pthread_kill_other_threads_np();
10172 if { (eval echo configure:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10174 ol_cv_pthread_lc_r=yes
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10179 ol_cv_pthread_lc_r=no
10190 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10192 if test $ol_cv_pthread_lc_r = yes ; then
10193 ol_link_pthreads="-lc_r"
10194 ol_link_threads=posix
10199 # Pthread try link: -threads (ol_cv_pthread_threads)
10200 if test "$ol_link_threads" = no ; then
10202 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10203 echo "configure:10204: checking for pthread link with -threads" >&5
10204 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10205 echo $ac_n "(cached) $ac_c" 1>&6
10210 LIBS="-threads $LIBS"
10212 if test "$cross_compiling" = yes; then
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 /* pthread test headers */
10217 #include <pthread.h>
10219 #define NULL (void*)0
10222 static void *task(p)
10225 return (void *) (p == NULL);
10230 /* pthread test function */
10235 #ifdef HAVE_PTHREADS_FINAL
10236 /* Final pthreads */
10237 pthread_attr_t attr;
10239 status = pthread_attr_init(&attr);
10240 if( status ) return status;
10242 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10244 #if defined( PTHREAD_CREATE_JOINABLE )
10245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10247 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10250 #ifdef PTHREAD_CREATE_DETACHED
10252 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10255 if( status ) return status;
10258 status = pthread_create( &t, &attr, task, NULL );
10259 if( status ) return status;
10261 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10263 /* give thread a chance to complete */
10264 /* it should remain joinable and hence detachable */
10267 status = pthread_detach( t );
10268 if( status ) return status;
10273 /* Draft 4 pthreads */
10274 status = pthread_create( &t, pthread_attr_default, task, NULL );
10275 if( status ) return status;
10278 /* give thread a chance to complete */
10279 /* it should remain joinable and hence detachable */
10282 status = pthread_detach( &t );
10283 if( status ) return status;
10287 #ifdef HAVE_LINUX_THREADS
10288 pthread_kill_other_threads_np();
10295 if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10297 ol_cv_pthread_threads=yes
10299 echo "configure: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10302 ol_cv_pthread_threads=no
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309 /* pthread test headers */
10310 #include <pthread.h>
10312 #define NULL (void*)0
10315 static void *task(p)
10318 return (void *) (p == NULL);
10322 int main(argc, argv)
10327 /* pthread test function */
10332 #ifdef HAVE_PTHREADS_FINAL
10333 /* Final pthreads */
10334 pthread_attr_t attr;
10336 status = pthread_attr_init(&attr);
10337 if( status ) return status;
10339 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10341 #if defined( PTHREAD_CREATE_JOINABLE )
10342 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10344 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10347 #ifdef PTHREAD_CREATE_DETACHED
10349 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10352 if( status ) return status;
10355 status = pthread_create( &t, &attr, task, NULL );
10356 if( status ) return status;
10358 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10360 /* give thread a chance to complete */
10361 /* it should remain joinable and hence detachable */
10364 status = pthread_detach( t );
10365 if( status ) return status;
10370 /* Draft 4 pthreads */
10371 status = pthread_create( &t, pthread_attr_default, task, NULL );
10372 if( status ) return status;
10375 /* give thread a chance to complete */
10376 /* it should remain joinable and hence detachable */
10379 status = pthread_detach( &t );
10380 if( status ) return status;
10384 #ifdef HAVE_LINUX_THREADS
10385 pthread_kill_other_threads_np();
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10395 ol_cv_pthread_threads=yes
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 ol_cv_pthread_threads=no
10411 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10413 if test $ol_cv_pthread_threads = yes ; then
10414 ol_link_pthreads="-threads"
10415 ol_link_threads=posix
10420 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10421 if test "$ol_link_threads" = no ; then
10422 # try -lpthreads -lmach -lexc -lc_r
10423 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10424 echo "configure:10425: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10425 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10426 echo $ac_n "(cached) $ac_c" 1>&6
10431 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10433 if test "$cross_compiling" = yes; then
10434 cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 /* pthread test headers */
10438 #include <pthread.h>
10440 #define NULL (void*)0
10443 static void *task(p)
10446 return (void *) (p == NULL);
10451 /* pthread test function */
10456 #ifdef HAVE_PTHREADS_FINAL
10457 /* Final pthreads */
10458 pthread_attr_t attr;
10460 status = pthread_attr_init(&attr);
10461 if( status ) return status;
10463 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10465 #if defined( PTHREAD_CREATE_JOINABLE )
10466 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10468 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10471 #ifdef PTHREAD_CREATE_DETACHED
10473 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10476 if( status ) return status;
10479 status = pthread_create( &t, &attr, task, NULL );
10480 if( status ) return status;
10482 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10484 /* give thread a chance to complete */
10485 /* it should remain joinable and hence detachable */
10488 status = pthread_detach( t );
10489 if( status ) return status;
10494 /* Draft 4 pthreads */
10495 status = pthread_create( &t, pthread_attr_default, task, NULL );
10496 if( status ) return status;
10499 /* give thread a chance to complete */
10500 /* it should remain joinable and hence detachable */
10503 status = pthread_detach( &t );
10504 if( status ) return status;
10508 #ifdef HAVE_LINUX_THREADS
10509 pthread_kill_other_threads_np();
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10523 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10527 cat > conftest.$ac_ext <<EOF
10528 #line 10529 "configure"
10529 #include "confdefs.h"
10530 /* pthread test headers */
10531 #include <pthread.h>
10533 #define NULL (void*)0
10536 static void *task(p)
10539 return (void *) (p == NULL);
10543 int main(argc, argv)
10548 /* pthread test function */
10553 #ifdef HAVE_PTHREADS_FINAL
10554 /* Final pthreads */
10555 pthread_attr_t attr;
10557 status = pthread_attr_init(&attr);
10558 if( status ) return status;
10560 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10562 #if defined( PTHREAD_CREATE_JOINABLE )
10563 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10565 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10568 #ifdef PTHREAD_CREATE_DETACHED
10570 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10573 if( status ) return status;
10576 status = pthread_create( &t, &attr, task, NULL );
10577 if( status ) return status;
10579 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10581 /* give thread a chance to complete */
10582 /* it should remain joinable and hence detachable */
10585 status = pthread_detach( t );
10586 if( status ) return status;
10591 /* Draft 4 pthreads */
10592 status = pthread_create( &t, pthread_attr_default, task, NULL );
10593 if( status ) return status;
10596 /* give thread a chance to complete */
10597 /* it should remain joinable and hence detachable */
10600 status = pthread_detach( &t );
10601 if( status ) return status;
10605 #ifdef HAVE_LINUX_THREADS
10606 pthread_kill_other_threads_np();
10614 if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10616 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10621 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10632 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10634 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10635 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10636 ol_link_threads=posix
10640 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10641 if test "$ol_link_threads" = no ; then
10642 # try -lpthreads -lmach -lexc
10643 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10644 echo "configure:10645: checking for pthread link with -lpthreads -lmach -lexc" >&5
10645 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10651 LIBS="-lpthreads -lmach -lexc $LIBS"
10653 if test "$cross_compiling" = yes; then
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657 /* pthread test headers */
10658 #include <pthread.h>
10660 #define NULL (void*)0
10663 static void *task(p)
10666 return (void *) (p == NULL);
10671 /* pthread test function */
10676 #ifdef HAVE_PTHREADS_FINAL
10677 /* Final pthreads */
10678 pthread_attr_t attr;
10680 status = pthread_attr_init(&attr);
10681 if( status ) return status;
10683 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10685 #if defined( PTHREAD_CREATE_JOINABLE )
10686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10688 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10691 #ifdef PTHREAD_CREATE_DETACHED
10693 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10696 if( status ) return status;
10699 status = pthread_create( &t, &attr, task, NULL );
10700 if( status ) return status;
10702 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10704 /* give thread a chance to complete */
10705 /* it should remain joinable and hence detachable */
10708 status = pthread_detach( t );
10709 if( status ) return status;
10714 /* Draft 4 pthreads */
10715 status = pthread_create( &t, pthread_attr_default, task, NULL );
10716 if( status ) return status;
10719 /* give thread a chance to complete */
10720 /* it should remain joinable and hence detachable */
10723 status = pthread_detach( &t );
10724 if( status ) return status;
10728 #ifdef HAVE_LINUX_THREADS
10729 pthread_kill_other_threads_np();
10736 if { (eval echo configure:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10738 ol_cv_pthread_lpthreads_lmach_lexc=yes
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10743 ol_cv_pthread_lpthreads_lmach_lexc=no
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10750 /* pthread test headers */
10751 #include <pthread.h>
10753 #define NULL (void*)0
10756 static void *task(p)
10759 return (void *) (p == NULL);
10763 int main(argc, argv)
10768 /* pthread test function */
10773 #ifdef HAVE_PTHREADS_FINAL
10774 /* Final pthreads */
10775 pthread_attr_t attr;
10777 status = pthread_attr_init(&attr);
10778 if( status ) return status;
10780 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10782 #if defined( PTHREAD_CREATE_JOINABLE )
10783 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10785 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10788 #ifdef PTHREAD_CREATE_DETACHED
10790 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10793 if( status ) return status;
10796 status = pthread_create( &t, &attr, task, NULL );
10797 if( status ) return status;
10799 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10801 /* give thread a chance to complete */
10802 /* it should remain joinable and hence detachable */
10805 status = pthread_detach( t );
10806 if( status ) return status;
10811 /* Draft 4 pthreads */
10812 status = pthread_create( &t, pthread_attr_default, task, NULL );
10813 if( status ) return status;
10816 /* give thread a chance to complete */
10817 /* it should remain joinable and hence detachable */
10820 status = pthread_detach( &t );
10821 if( status ) return status;
10825 #ifdef HAVE_LINUX_THREADS
10826 pthread_kill_other_threads_np();
10834 if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10836 ol_cv_pthread_lpthreads_lmach_lexc=yes
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10841 ol_cv_pthread_lpthreads_lmach_lexc=no
10852 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10854 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10855 ol_link_pthreads="-lpthreads -lmach -lexc"
10856 ol_link_threads=posix
10860 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10861 if test "$ol_link_threads" = no ; then
10862 # try -lpthreads -lexc
10863 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10864 echo "configure:10865: checking for pthread link with -lpthreads -lexc" >&5
10865 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10871 LIBS="-lpthreads -lexc $LIBS"
10873 if test "$cross_compiling" = yes; then
10874 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 /* pthread test headers */
10878 #include <pthread.h>
10880 #define NULL (void*)0
10883 static void *task(p)
10886 return (void *) (p == NULL);
10891 /* pthread test function */
10896 #ifdef HAVE_PTHREADS_FINAL
10897 /* Final pthreads */
10898 pthread_attr_t attr;
10900 status = pthread_attr_init(&attr);
10901 if( status ) return status;
10903 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10905 #if defined( PTHREAD_CREATE_JOINABLE )
10906 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10908 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10911 #ifdef PTHREAD_CREATE_DETACHED
10913 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10916 if( status ) return status;
10919 status = pthread_create( &t, &attr, task, NULL );
10920 if( status ) return status;
10922 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10924 /* give thread a chance to complete */
10925 /* it should remain joinable and hence detachable */
10928 status = pthread_detach( t );
10929 if( status ) return status;
10934 /* Draft 4 pthreads */
10935 status = pthread_create( &t, pthread_attr_default, task, NULL );
10936 if( status ) return status;
10939 /* give thread a chance to complete */
10940 /* it should remain joinable and hence detachable */
10943 status = pthread_detach( &t );
10944 if( status ) return status;
10948 #ifdef HAVE_LINUX_THREADS
10949 pthread_kill_other_threads_np();
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10958 ol_cv_pthread_lpthreads_lexc=yes
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10963 ol_cv_pthread_lpthreads_lexc=no
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 /* pthread test headers */
10971 #include <pthread.h>
10973 #define NULL (void*)0
10976 static void *task(p)
10979 return (void *) (p == NULL);
10983 int main(argc, argv)
10988 /* pthread test function */
10993 #ifdef HAVE_PTHREADS_FINAL
10994 /* Final pthreads */
10995 pthread_attr_t attr;
10997 status = pthread_attr_init(&attr);
10998 if( status ) return status;
11000 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11002 #if defined( PTHREAD_CREATE_JOINABLE )
11003 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11005 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11008 #ifdef PTHREAD_CREATE_DETACHED
11010 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11013 if( status ) return status;
11016 status = pthread_create( &t, &attr, task, NULL );
11017 if( status ) return status;
11019 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11021 /* give thread a chance to complete */
11022 /* it should remain joinable and hence detachable */
11025 status = pthread_detach( t );
11026 if( status ) return status;
11031 /* Draft 4 pthreads */
11032 status = pthread_create( &t, pthread_attr_default, task, NULL );
11033 if( status ) return status;
11036 /* give thread a chance to complete */
11037 /* it should remain joinable and hence detachable */
11040 status = pthread_detach( &t );
11041 if( status ) return status;
11045 #ifdef HAVE_LINUX_THREADS
11046 pthread_kill_other_threads_np();
11054 if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11056 ol_cv_pthread_lpthreads_lexc=yes
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 ol_cv_pthread_lpthreads_lexc=no
11072 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
11074 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
11075 ol_link_pthreads="-lpthreads -lexc"
11076 ol_link_threads=posix
11081 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
11082 if test "$ol_link_threads" = no ; then
11084 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
11085 echo "configure:11086: checking for pthread link with -lpthreads" >&5
11086 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11092 LIBS="-lpthreads $LIBS"
11094 if test "$cross_compiling" = yes; then
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11098 /* pthread test headers */
11099 #include <pthread.h>
11101 #define NULL (void*)0
11104 static void *task(p)
11107 return (void *) (p == NULL);
11112 /* pthread test function */
11117 #ifdef HAVE_PTHREADS_FINAL
11118 /* Final pthreads */
11119 pthread_attr_t attr;
11121 status = pthread_attr_init(&attr);
11122 if( status ) return status;
11124 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11126 #if defined( PTHREAD_CREATE_JOINABLE )
11127 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11129 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11132 #ifdef PTHREAD_CREATE_DETACHED
11134 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11137 if( status ) return status;
11140 status = pthread_create( &t, &attr, task, NULL );
11141 if( status ) return status;
11143 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11145 /* give thread a chance to complete */
11146 /* it should remain joinable and hence detachable */
11149 status = pthread_detach( t );
11150 if( status ) return status;
11155 /* Draft 4 pthreads */
11156 status = pthread_create( &t, pthread_attr_default, task, NULL );
11157 if( status ) return status;
11160 /* give thread a chance to complete */
11161 /* it should remain joinable and hence detachable */
11164 status = pthread_detach( &t );
11165 if( status ) return status;
11169 #ifdef HAVE_LINUX_THREADS
11170 pthread_kill_other_threads_np();
11177 if { (eval echo configure:11178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11179 ol_cv_pthread_lib_lpthreads=yes
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11184 ol_cv_pthread_lib_lpthreads=no
11188 cat > conftest.$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11191 /* pthread test headers */
11192 #include <pthread.h>
11194 #define NULL (void*)0
11197 static void *task(p)
11200 return (void *) (p == NULL);
11204 int main(argc, argv)
11209 /* pthread test function */
11214 #ifdef HAVE_PTHREADS_FINAL
11215 /* Final pthreads */
11216 pthread_attr_t attr;
11218 status = pthread_attr_init(&attr);
11219 if( status ) return status;
11221 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11223 #if defined( PTHREAD_CREATE_JOINABLE )
11224 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11226 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11229 #ifdef PTHREAD_CREATE_DETACHED
11231 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11234 if( status ) return status;
11237 status = pthread_create( &t, &attr, task, NULL );
11238 if( status ) return status;
11240 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11242 /* give thread a chance to complete */
11243 /* it should remain joinable and hence detachable */
11246 status = pthread_detach( t );
11247 if( status ) return status;
11252 /* Draft 4 pthreads */
11253 status = pthread_create( &t, pthread_attr_default, task, NULL );
11254 if( status ) return status;
11257 /* give thread a chance to complete */
11258 /* it should remain joinable and hence detachable */
11261 status = pthread_detach( &t );
11262 if( status ) return status;
11266 #ifdef HAVE_LINUX_THREADS
11267 pthread_kill_other_threads_np();
11275 if { (eval echo configure:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11277 ol_cv_pthread_lib_lpthreads=yes
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11282 ol_cv_pthread_lib_lpthreads=no
11293 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11295 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11296 ol_link_pthreads="-lpthreads"
11297 ol_link_threads=posix
11302 if test $ol_link_threads != no ; then
11303 cat >> confdefs.h <<\EOF
11304 #define HAVE_PTHREADS 1
11308 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11310 save_CPPFLAGS="$CPPFLAGS"
11312 LIBS="$LTHREAD_LIBS $LIBS"
11314 for ac_func in sched_yield pthread_yield
11316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11317 echo "configure:11318: checking for $ac_func" >&5
11318 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11319 echo $ac_n "(cached) $ac_c" 1>&6
11321 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 /* System header to define __stub macros and hopefully few prototypes,
11325 which can conflict with char $ac_func(); below. */
11326 #include <assert.h>
11327 /* Override any gcc2 internal prototype to avoid an error. */
11328 /* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11335 /* The GNU C library defines this for functions which it implements
11336 to always fail with ENOSYS. Some functions are actually named
11337 something starting with __ and the normal name is an alias. */
11338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11346 if { (eval echo configure:11347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11348 eval "ac_cv_func_$ac_func=yes"
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11353 eval "ac_cv_func_$ac_func=no"
11358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11359 echo "$ac_t""yes" 1>&6
11360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11361 cat >> confdefs.h <<EOF
11362 #define $ac_tr_func 1
11366 echo "$ac_t""no" 1>&6
11371 if test $ac_cv_func_sched_yield = no -a \
11372 $ac_cv_func_pthread_yield = no ; then
11373 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11374 echo "configure:11375: checking for sched_yield in -lrt" >&5
11375 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11379 ac_save_LIBS="$LIBS"
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 /* Override any gcc2 internal prototype to avoid an error. */
11385 /* We use char because int might match the return type of a gcc2
11386 builtin and then its argument prototype would still apply. */
11387 char sched_yield();
11393 if { (eval echo configure:11394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11395 eval "ac_cv_lib_$ac_lib_var=yes"
11397 echo "configure: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11400 eval "ac_cv_lib_$ac_lib_var=no"
11403 LIBS="$ac_save_LIBS"
11406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11407 echo "$ac_t""yes" 1>&6
11408 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11409 cat >> confdefs.h <<\EOF
11410 #define HAVE_SCHED_YIELD 1
11413 ac_cv_func_sched_yield=yes
11415 echo "$ac_t""no" 1>&6
11416 ac_cv_func_sched_yield=no
11420 if test $ac_cv_func_sched_yield = no -a \
11421 $ac_cv_func_pthread_yield = no ; then
11422 for ac_func in thr_yield
11424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11425 echo "configure:11426: checking for $ac_func" >&5
11426 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 /* System header to define __stub macros and hopefully few prototypes,
11433 which can conflict with char $ac_func(); below. */
11434 #include <assert.h>
11435 /* Override any gcc2 internal prototype to avoid an error. */
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11454 if { (eval echo configure:11455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11456 eval "ac_cv_func_$ac_func=yes"
11458 echo "configure: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11461 eval "ac_cv_func_$ac_func=no"
11466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11467 echo "$ac_t""yes" 1>&6
11468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11469 cat >> confdefs.h <<EOF
11470 #define $ac_tr_func 1
11474 echo "$ac_t""no" 1>&6
11479 if test $ac_cv_func_sched_yield = no -a \
11480 $ac_cv_func_pthread_yield = no -a \
11481 "$ac_cv_func_thr_yield" = no ; then
11482 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11485 for ac_func in pthread_kill pthread_rwlock_destroy
11487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11488 echo "configure:11489: checking for $ac_func" >&5
11489 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11490 echo $ac_n "(cached) $ac_c" 1>&6
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 /* System header to define __stub macros and hopefully few prototypes,
11496 which can conflict with char $ac_func(); below. */
11497 #include <assert.h>
11498 /* Override any gcc2 internal prototype to avoid an error. */
11499 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11506 /* The GNU C library defines this for functions which it implements
11507 to always fail with ENOSYS. Some functions are actually named
11508 something starting with __ and the normal name is an alias. */
11509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11519 eval "ac_cv_func_$ac_func=yes"
11521 echo "configure: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11524 eval "ac_cv_func_$ac_func=no"
11529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11530 echo "$ac_t""yes" 1>&6
11531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11532 cat >> confdefs.h <<EOF
11533 #define $ac_tr_func 1
11537 echo "$ac_t""no" 1>&6
11542 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11543 echo "configure:11544: checking for pthread_detach with <pthread.h>" >&5
11544 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11552 #include <pthread.h>
11554 #define NULL (void*)0
11558 pthread_detach(NULL);
11561 if { (eval echo configure:11562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11563 ol_cv_func_pthread_detach=yes
11565 echo "configure: failed program was:" >&5
11566 cat conftest.$ac_ext >&5
11568 ol_cv_func_pthread_detach=no
11574 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11576 if test $ol_cv_func_pthread_detach = no ; then
11577 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11580 cat >> confdefs.h <<\EOF
11581 #define HAVE_PTHREAD_DETACH 1
11586 pthread_setconcurrency \
11587 pthread_getconcurrency \
11588 thr_setconcurrency \
11589 thr_getconcurrency \
11592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11593 echo "configure:11594: checking for $ac_func" >&5
11594 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func(); below. */
11602 #include <assert.h>
11603 /* Override any gcc2 internal prototype to avoid an error. */
11604 /* We use char because int might match the return type of a gcc2
11605 builtin and then its argument prototype would still apply. */
11611 /* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11622 if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11624 eval "ac_cv_func_$ac_func=yes"
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11629 eval "ac_cv_func_$ac_func=no"
11634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11635 echo "$ac_t""yes" 1>&6
11636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11637 cat >> confdefs.h <<EOF
11638 #define $ac_tr_func 1
11642 echo "$ac_t""no" 1>&6
11648 for ac_func in pthread_kill_other_threads_np
11650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11651 echo "configure:11652: checking for $ac_func" >&5
11652 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
11655 cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func(); below. */
11660 #include <assert.h>
11661 /* Override any gcc2 internal prototype to avoid an error. */
11662 /* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11669 /* The GNU C library defines this for functions which it implements
11670 to always fail with ENOSYS. Some functions are actually named
11671 something starting with __ and the normal name is an alias. */
11672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11680 if { (eval echo configure:11681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11682 eval "ac_cv_func_$ac_func=yes"
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11687 eval "ac_cv_func_$ac_func=no"
11692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11693 echo "$ac_t""yes" 1>&6
11694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11695 cat >> confdefs.h <<EOF
11696 #define $ac_tr_func 1
11700 echo "$ac_t""no" 1>&6
11704 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11705 echo "configure:11706: checking for LinuxThreads implementation" >&5
11706 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11709 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11712 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11717 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11718 echo "configure:11719: checking for LinuxThreads consistency" >&5
11719 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11720 echo $ac_n "(cached) $ac_c" 1>&6
11723 if test $ol_cv_header_linux_threads = yes -a \
11724 $ol_cv_sys_linux_threads = yes; then
11725 ol_cv_linux_threads=yes
11726 elif test $ol_cv_header_linux_threads = no -a \
11727 $ol_cv_sys_linux_threads = no; then
11728 ol_cv_linux_threads=no
11730 ol_cv_linux_threads=error
11735 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11738 if test $ol_cv_linux_threads = error; then
11739 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11742 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11743 echo "configure:11744: checking if pthread_create() works" >&5
11744 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11748 if test "$cross_compiling" = yes; then
11749 ol_cv_pthread_create_works=yes
11751 cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 /* pthread test headers */
11755 #include <pthread.h>
11757 #define NULL (void*)0
11760 static void *task(p)
11763 return (void *) (p == NULL);
11767 int main(argc, argv)
11772 /* pthread test function */
11777 #ifdef HAVE_PTHREADS_FINAL
11778 /* Final pthreads */
11779 pthread_attr_t attr;
11781 status = pthread_attr_init(&attr);
11782 if( status ) return status;
11784 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11786 #if defined( PTHREAD_CREATE_JOINABLE )
11787 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11789 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11792 #ifdef PTHREAD_CREATE_DETACHED
11794 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11797 if( status ) return status;
11800 status = pthread_create( &t, &attr, task, NULL );
11801 if( status ) return status;
11803 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11805 /* give thread a chance to complete */
11806 /* it should remain joinable and hence detachable */
11809 status = pthread_detach( t );
11810 if( status ) return status;
11815 /* Draft 4 pthreads */
11816 status = pthread_create( &t, pthread_attr_default, task, NULL );
11817 if( status ) return status;
11820 /* give thread a chance to complete */
11821 /* it should remain joinable and hence detachable */
11824 status = pthread_detach( &t );
11825 if( status ) return status;
11829 #ifdef HAVE_LINUX_THREADS
11830 pthread_kill_other_threads_np();
11838 if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11840 ol_cv_pthread_create_works=yes
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11845 ol_cv_pthread_create_works=no
11852 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11854 if test $ol_cv_pthread_create_works = no ; then
11855 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11858 if test $ol_with_yielding_select = auto ; then
11859 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11860 echo "configure:11861: checking if select yields when using pthreads" >&5
11861 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11862 echo $ac_n "(cached) $ac_c" 1>&6
11865 if test "$cross_compiling" = yes; then
11866 ol_cv_pthread_select_yields=cross
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11872 #include <sys/types.h>
11873 #include <sys/time.h>
11874 #include <unistd.h>
11875 #include <pthread.h>
11877 #define NULL (void*) 0
11880 static int fildes[2];
11882 static void *task(p)
11894 FD_SET(fildes[0], &rfds);
11896 /* we're not interested in any fds */
11897 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11904 exit(0); /* if we exit here, the select blocked the whole process */
11907 int main(argc, argv)
11913 /* create a pipe to select */
11914 if(pipe(&fildes[0])) {
11919 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11920 (void) pthread_setconcurrency(2);
11922 #ifdef HAVE_THR_SETCONCURRENCY
11923 /* Set Solaris LWP concurrency to 2 */
11924 thr_setconcurrency(2);
11928 #if HAVE_PTHREADS_D4
11929 pthread_create(&t, pthread_attr_default, task, NULL);
11931 pthread_create(&t, NULL, task, NULL);
11934 #if HAVE_SCHED_YIELD
11935 sched_yield(); /* make sure task runs first */
11937 #ifdef HAVE_PTHREAD_YIELD
11938 pthread_yield(); /* make sure task runs first */
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11947 ol_cv_pthread_select_yields=no
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11952 ol_cv_pthread_select_yields=yes
11959 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11961 if test $ol_cv_pthread_select_yields = cross ; then
11962 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11965 if test $ol_cv_pthread_select_yields = yes ; then
11966 ol_with_yielding_select=yes
11970 CPPFLAGS="$save_CPPFLAGS"
11973 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11977 if test $ol_with_threads = posix ; then
11978 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11982 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11983 -o $ol_with_threads = mach ; then
11985 for ac_hdr in mach/cthreads.h cthread.h
11987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11989 echo "configure:11990: checking for $ac_hdr" >&5
11990 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11991 echo $ac_n "(cached) $ac_c" 1>&6
11993 cat > conftest.$ac_ext <<EOF
11994 #line 11995 "configure"
11995 #include "confdefs.h"
11998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11999 { (eval echo configure:12000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12001 if test -z "$ac_err"; then
12003 eval "ac_cv_header_$ac_safe=yes"
12006 echo "configure: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12009 eval "ac_cv_header_$ac_safe=no"
12013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12014 echo "$ac_t""yes" 1>&6
12015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12016 cat >> confdefs.h <<EOF
12017 #define $ac_tr_hdr 1
12021 echo "$ac_t""no" 1>&6
12025 if test $ac_cv_header_mach_cthreads_h = yes ; then
12026 ol_with_threads=found
12028 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12029 echo "configure:12030: checking for cthread_fork" >&5
12030 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char cthread_fork(); below. */
12038 #include <assert.h>
12039 /* Override any gcc2 internal prototype to avoid an error. */
12040 /* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12042 char cthread_fork();
12047 /* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
12050 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12058 if { (eval echo configure:12059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12060 eval "ac_cv_func_cthread_fork=yes"
12062 echo "configure: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12065 eval "ac_cv_func_cthread_fork=no"
12070 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12071 echo "$ac_t""yes" 1>&6
12072 ol_link_threads=yes
12074 echo "$ac_t""no" 1>&6
12078 if test $ol_link_threads = no ; then
12079 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
12080 echo "configure:12081: checking for cthread_fork with -all_load" >&5
12081 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12086 LIBS="-all_load $LIBS"
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 #include <mach/cthreads.h>
12093 cthread_fork((void *)0, (void *)0);
12097 if { (eval echo configure:12098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12099 ol_cv_cthread_all_load=yes
12101 echo "configure: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12104 ol_cv_cthread_all_load=no
12111 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
12113 if test $ol_cv_cthread_all_load = yes ; then
12114 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
12115 ol_link_threads=mach
12119 elif test $ac_cv_header_cthreads_h = yes ; then
12121 ol_with_threads=found
12124 LIBS="$LIBS -lthreads"
12125 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12126 echo "configure:12127: checking for cthread_fork" >&5
12127 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char cthread_fork(); below. */
12135 #include <assert.h>
12136 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139 char cthread_fork();
12144 /* The GNU C library defines this for functions which it implements
12145 to always fail with ENOSYS. Some functions are actually named
12146 something starting with __ and the normal name is an alias. */
12147 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12155 if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12157 eval "ac_cv_func_cthread_fork=yes"
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12162 eval "ac_cv_func_cthread_fork=no"
12167 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12168 echo "$ac_t""yes" 1>&6
12169 ol_link_threads=yes
12171 echo "$ac_t""no" 1>&6
12176 if test $ol_link_threads = yes ; then
12177 LTHREAD_LIBS="-lthreads"
12178 ol_link_threads=mach
12180 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12183 elif test $ol_with_threads = mach ; then
12184 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
12187 if test $ol_link_threads = mach ; then
12188 cat >> confdefs.h <<\EOF
12189 #define HAVE_MACH_CTHREADS 1
12192 elif test $ol_with_threads = found ; then
12193 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12197 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12198 -o $ol_with_threads = pth ; then
12200 for ac_hdr in pth.h
12202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12204 echo "configure:12205: checking for $ac_hdr" >&5
12205 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12206 echo $ac_n "(cached) $ac_c" 1>&6
12208 cat > conftest.$ac_ext <<EOF
12209 #line 12210 "configure"
12210 #include "confdefs.h"
12213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12214 { (eval echo configure:12215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12216 if test -z "$ac_err"; then
12218 eval "ac_cv_header_$ac_safe=yes"
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12224 eval "ac_cv_header_$ac_safe=no"
12228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12229 echo "$ac_t""yes" 1>&6
12230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12231 cat >> confdefs.h <<EOF
12232 #define $ac_tr_hdr 1
12236 echo "$ac_t""no" 1>&6
12241 if test $ac_cv_header_pth_h = yes ; then
12242 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
12243 echo "configure:12244: checking for pth_version in -lpth" >&5
12244 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12246 echo $ac_n "(cached) $ac_c" 1>&6
12248 ac_save_LIBS="$LIBS"
12250 cat > conftest.$ac_ext <<EOF
12251 #line 12252 "configure"
12252 #include "confdefs.h"
12253 /* Override any gcc2 internal prototype to avoid an error. */
12254 /* We use char because int might match the return type of a gcc2
12255 builtin and then its argument prototype would still apply. */
12256 char pth_version();
12262 if { (eval echo configure:12263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12264 eval "ac_cv_lib_$ac_lib_var=yes"
12266 echo "configure: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12269 eval "ac_cv_lib_$ac_lib_var=no"
12272 LIBS="$ac_save_LIBS"
12275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12276 echo "$ac_t""yes" 1>&6
12279 echo "$ac_t""no" 1>&6
12284 if test $have_pth = yes ; then
12285 cat >> confdefs.h <<\EOF
12286 #define HAVE_GNU_PTH 1
12289 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12290 ol_link_threads=pth
12292 if test $ol_with_yielding_select = auto ; then
12293 ol_with_yielding_select=yes
12299 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12300 -o $ol_with_threads = lwp ; then
12302 for ac_hdr in thread.h synch.h
12304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12306 echo "configure:12307: checking for $ac_hdr" >&5
12307 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12316 { (eval echo configure:12317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12318 if test -z "$ac_err"; then
12320 eval "ac_cv_header_$ac_safe=yes"
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12326 eval "ac_cv_header_$ac_safe=no"
12330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12331 echo "$ac_t""yes" 1>&6
12332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12333 cat >> confdefs.h <<EOF
12334 #define $ac_tr_hdr 1
12338 echo "$ac_t""no" 1>&6
12342 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12343 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12344 echo "configure:12345: checking for thr_create in -lthread" >&5
12345 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
12349 ac_save_LIBS="$LIBS"
12350 LIBS="-lthread $LIBS"
12351 cat > conftest.$ac_ext <<EOF
12352 #line 12353 "configure"
12353 #include "confdefs.h"
12354 /* Override any gcc2 internal prototype to avoid an error. */
12355 /* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12363 if { (eval echo configure:12364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12365 eval "ac_cv_lib_$ac_lib_var=yes"
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12370 eval "ac_cv_lib_$ac_lib_var=no"
12373 LIBS="$ac_save_LIBS"
12376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12377 echo "$ac_t""yes" 1>&6
12380 echo "$ac_t""no" 1>&6
12385 if test $have_thr = yes ; then
12386 cat >> confdefs.h <<\EOF
12390 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12391 ol_link_threads=thr
12393 if test $ol_with_yielding_select = auto ; then
12394 ol_with_yielding_select=yes
12398 thr_setconcurrency \
12399 thr_getconcurrency \
12402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12403 echo "configure:12404: checking for $ac_func" >&5
12404 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12405 echo $ac_n "(cached) $ac_c" 1>&6
12407 cat > conftest.$ac_ext <<EOF
12408 #line 12409 "configure"
12409 #include "confdefs.h"
12410 /* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char $ac_func(); below. */
12412 #include <assert.h>
12413 /* Override any gcc2 internal prototype to avoid an error. */
12414 /* We use char because int might match the return type of a gcc2
12415 builtin and then its argument prototype would still apply. */
12421 /* The GNU C library defines this for functions which it implements
12422 to always fail with ENOSYS. Some functions are actually named
12423 something starting with __ and the normal name is an alias. */
12424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12434 eval "ac_cv_func_$ac_func=yes"
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12439 eval "ac_cv_func_$ac_func=no"
12444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12445 echo "$ac_t""yes" 1>&6
12446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12447 cat >> confdefs.h <<EOF
12448 #define $ac_tr_func 1
12452 echo "$ac_t""no" 1>&6
12459 for ac_hdr in lwp/lwp.h
12461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12463 echo "configure:12464: checking for $ac_hdr" >&5
12464 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12465 echo $ac_n "(cached) $ac_c" 1>&6
12467 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure"
12469 #include "confdefs.h"
12472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12473 { (eval echo configure:12474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12475 if test -z "$ac_err"; then
12477 eval "ac_cv_header_$ac_safe=yes"
12480 echo "configure: failed program was:" >&5
12481 cat conftest.$ac_ext >&5
12483 eval "ac_cv_header_$ac_safe=no"
12487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12488 echo "$ac_t""yes" 1>&6
12489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12490 cat >> confdefs.h <<EOF
12491 #define $ac_tr_hdr 1
12495 echo "$ac_t""no" 1>&6
12499 if test $ac_cv_header_lwp_lwp_h = yes ; then
12500 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12501 echo "configure:12502: checking for lwp_create in -llwp" >&5
12502 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12503 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12504 echo $ac_n "(cached) $ac_c" 1>&6
12506 ac_save_LIBS="$LIBS"
12508 cat > conftest.$ac_ext <<EOF
12509 #line 12510 "configure"
12510 #include "confdefs.h"
12511 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12522 eval "ac_cv_lib_$ac_lib_var=yes"
12524 echo "configure: failed program was:" >&5
12525 cat conftest.$ac_ext >&5
12527 eval "ac_cv_lib_$ac_lib_var=no"
12530 LIBS="$ac_save_LIBS"
12533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12534 echo "$ac_t""yes" 1>&6
12537 echo "$ac_t""no" 1>&6
12542 if test $have_lwp = yes ; then
12543 cat >> confdefs.h <<\EOF
12547 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12548 ol_link_threads=lwp
12550 if test $ol_with_yielding_select = auto ; then
12551 ol_with_yielding_select=no
12557 if test $ol_with_yielding_select = yes ; then
12558 cat >> confdefs.h <<\EOF
12559 #define HAVE_YIELDING_SELECT 1
12564 if test $ol_with_threads = manual ; then
12565 ol_link_threads=yes
12567 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12569 for ac_hdr in pthread.h sched.h
12571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12573 echo "configure:12574: checking for $ac_hdr" >&5
12574 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12577 cat > conftest.$ac_ext <<EOF
12578 #line 12579 "configure"
12579 #include "confdefs.h"
12582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12583 { (eval echo configure:12584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12585 if test -z "$ac_err"; then
12587 eval "ac_cv_header_$ac_safe=yes"
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12593 eval "ac_cv_header_$ac_safe=no"
12597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12598 echo "$ac_t""yes" 1>&6
12599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12600 cat >> confdefs.h <<EOF
12601 #define $ac_tr_hdr 1
12605 echo "$ac_t""no" 1>&6
12609 for ac_func in sched_yield pthread_yield
12611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12612 echo "configure:12613: checking for $ac_func" >&5
12613 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12614 echo $ac_n "(cached) $ac_c" 1>&6
12616 cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620 which can conflict with char $ac_func(); below. */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12630 /* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12643 eval "ac_cv_func_$ac_func=yes"
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 eval "ac_cv_func_$ac_func=no"
12653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12656 cat >> confdefs.h <<EOF
12657 #define $ac_tr_func 1
12661 echo "$ac_t""no" 1>&6
12666 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12667 echo "configure:12668: checking for LinuxThreads pthread.h" >&5
12668 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12669 echo $ac_n "(cached) $ac_c" 1>&6
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674 #include <pthread.h>
12676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12677 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12679 ol_cv_header_linux_threads=yes
12682 ol_cv_header_linux_threads=no
12689 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12690 if test $ol_cv_header_linux_threads = yes; then
12691 cat >> confdefs.h <<\EOF
12692 #define HAVE_LINUX_THREADS 1
12698 for ac_hdr in mach/cthreads.h
12700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12702 echo "configure:12703: checking for $ac_hdr" >&5
12703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12712 { (eval echo configure:12713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12714 if test -z "$ac_err"; then
12716 eval "ac_cv_header_$ac_safe=yes"
12719 echo "configure: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12722 eval "ac_cv_header_$ac_safe=no"
12726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12727 echo "$ac_t""yes" 1>&6
12728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12729 cat >> confdefs.h <<EOF
12730 #define $ac_tr_hdr 1
12734 echo "$ac_t""no" 1>&6
12738 for ac_hdr in lwp/lwp.h
12740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12742 echo "configure:12743: checking for $ac_hdr" >&5
12743 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12744 echo $ac_n "(cached) $ac_c" 1>&6
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12752 { (eval echo configure:12753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12754 if test -z "$ac_err"; then
12756 eval "ac_cv_header_$ac_safe=yes"
12759 echo "configure: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12762 eval "ac_cv_header_$ac_safe=no"
12766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12767 echo "$ac_t""yes" 1>&6
12768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12769 cat >> confdefs.h <<EOF
12770 #define $ac_tr_hdr 1
12774 echo "$ac_t""no" 1>&6
12778 for ac_hdr in thread.h synch.h
12780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12782 echo "configure:12783: checking for $ac_hdr" >&5
12783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12786 cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12792 { (eval echo configure:12793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12794 if test -z "$ac_err"; then
12796 eval "ac_cv_header_$ac_safe=yes"
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12802 eval "ac_cv_header_$ac_safe=no"
12806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12807 echo "$ac_t""yes" 1>&6
12808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12809 cat >> confdefs.h <<EOF
12810 #define $ac_tr_hdr 1
12814 echo "$ac_t""no" 1>&6
12820 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12821 cat >> confdefs.h <<\EOF
12822 #define REENTRANT 1
12825 cat >> confdefs.h <<\EOF
12826 #define _REENTRANT 1
12829 cat >> confdefs.h <<\EOF
12830 #define THREAD_SAFE 1
12833 cat >> confdefs.h <<\EOF
12834 #define _THREAD_SAFE 1
12837 cat >> confdefs.h <<\EOF
12838 #define THREADSAFE 1
12841 cat >> confdefs.h <<\EOF
12842 #define _THREADSAFE 1
12845 cat >> confdefs.h <<\EOF
12846 #define _SGI_MP_SOURCE 1
12850 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12851 echo "configure:12852: checking for thread specific errno" >&5
12852 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12853 echo $ac_n "(cached) $ac_c" 1>&6
12856 cat > conftest.$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12864 if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12866 ol_cv_errno_thread_specific=yes
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12871 ol_cv_errno_thread_specific=no
12877 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12879 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12880 echo "configure:12881: checking for thread specific h_errno" >&5
12881 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12893 if { (eval echo configure:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12895 ol_cv_h_errno_thread_specific=yes
12897 echo "configure: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12900 ol_cv_h_errno_thread_specific=no
12906 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12908 if test $ol_cv_errno_thread_specific != yes \
12909 -o $ol_cv_h_errno_thread_specific != yes ; then
12910 LIBS="$LTHREAD_LIBS $LIBS"
12916 if test $ol_link_threads = no ; then
12917 if test $ol_with_threads = yes ; then
12918 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12921 if test $ol_with_threads = auto ; then
12922 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12926 cat >> confdefs.h <<\EOF
12927 #define NO_THREADS 1
12933 if test $ol_link_threads != no ; then
12934 cat >> confdefs.h <<\EOF
12935 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12942 if test $ol_with_ldbm_api = auto \
12943 -o $ol_with_ldbm_api = berkeley \
12944 -o $ol_with_ldbm_api = bcompat ; then
12946 if test $ol_with_ldbm_api = bcompat; then \
12947 ol_cv_berkeley_db=no
12948 for ac_hdr in db_185.h db.h
12950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12952 echo "configure:12953: checking for $ac_hdr" >&5
12953 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12954 echo $ac_n "(cached) $ac_c" 1>&6
12956 cat > conftest.$ac_ext <<EOF
12957 #line 12958 "configure"
12958 #include "confdefs.h"
12961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12962 { (eval echo configure:12963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12964 if test -z "$ac_err"; then
12966 eval "ac_cv_header_$ac_safe=yes"
12969 echo "configure: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12972 eval "ac_cv_header_$ac_safe=no"
12976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12977 echo "$ac_t""yes" 1>&6
12978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12979 cat >> confdefs.h <<EOF
12980 #define $ac_tr_hdr 1
12984 echo "$ac_t""no" 1>&6
12988 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12989 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12990 echo "configure:12991: checking if Berkeley DB header compatibility" >&5
12991 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
12995 cat > conftest.$ac_ext <<EOF
12996 #line 12997 "configure"
12997 #include "confdefs.h"
13000 # include <db_185.h>
13005 /* this check could be improved */
13006 #ifndef DB_VERSION_MAJOR
13007 # define DB_VERSION_MAJOR 1
13010 #if DB_VERSION_MAJOR == 1
13015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016 egrep "__db_version_1" >/dev/null 2>&1; then
13018 ol_cv_header_db1=yes
13021 ol_cv_header_db1=no
13027 echo "$ac_t""$ol_cv_header_db1" 1>&6
13029 if test $ol_cv_header_db1 = yes ; then
13031 if test $ol_cv_lib_db = no ; then
13032 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13033 echo "configure:13034: checking for Berkeley DB link (default)" >&5
13034 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13035 echo $ac_n "(cached) $ac_c" 1>&6
13040 LIBS="$ol_DB_LIB $LIBS"
13042 cat > conftest.$ac_ext <<EOF
13043 #line 13044 "configure"
13044 #include "confdefs.h"
13046 #ifdef HAVE_DB_185_H
13047 # include <db_185.h>
13052 #ifndef DB_VERSION_MAJOR
13053 # define DB_VERSION_MAJOR 1
13057 #define NULL ((void*)0)
13062 #if DB_VERSION_MAJOR > 1
13065 int major, minor, patch;
13067 version = db_version( &major, &minor, &patch );
13069 if( major != DB_VERSION_MAJOR ||
13070 minor < DB_VERSION_MINOR )
13072 printf("Berkeley DB version mismatch\n"
13073 "\texpected: %s\n\tgot: %s\n",
13074 DB_VERSION_STRING, version);
13080 #if DB_VERSION_MAJOR > 2
13081 db_env_create( NULL, 0 );
13082 #elif DB_VERSION_MAJOR > 1
13083 db_appexit( NULL );
13085 (void) dbopen( NULL, 0, 0, 0, NULL);
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13105 echo "$ac_t""$ol_cv_db_none" 1>&6
13107 if test $ol_cv_db_none = yes ; then
13112 if test $ol_cv_lib_db = no ; then
13113 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13114 echo "configure:13115: checking for Berkeley DB link (-ldb)" >&5
13115 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13116 echo $ac_n "(cached) $ac_c" 1>&6
13121 LIBS="$ol_DB_LIB $LIBS"
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13127 #ifdef HAVE_DB_185_H
13128 # include <db_185.h>
13133 #ifndef DB_VERSION_MAJOR
13134 # define DB_VERSION_MAJOR 1
13138 #define NULL ((void*)0)
13143 #if DB_VERSION_MAJOR > 1
13146 int major, minor, patch;
13148 version = db_version( &major, &minor, &patch );
13150 if( major != DB_VERSION_MAJOR ||
13151 minor < DB_VERSION_MINOR )
13153 printf("Berkeley DB version mismatch\n"
13154 "\texpected: %s\n\tgot: %s\n",
13155 DB_VERSION_STRING, version);
13161 #if DB_VERSION_MAJOR > 2
13162 db_env_create( NULL, 0 );
13163 #elif DB_VERSION_MAJOR > 1
13164 db_appexit( NULL );
13166 (void) dbopen( NULL, 0, 0, 0, NULL);
13171 if { (eval echo configure:13172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13186 echo "$ac_t""$ol_cv_db_db" 1>&6
13188 if test $ol_cv_db_db = yes ; then
13193 if test $ol_cv_lib_db = no ; then
13194 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13195 echo "configure:13196: checking for Berkeley DB link (-ldb3)" >&5
13196 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13197 echo $ac_n "(cached) $ac_c" 1>&6
13202 LIBS="$ol_DB_LIB $LIBS"
13204 cat > conftest.$ac_ext <<EOF
13205 #line 13206 "configure"
13206 #include "confdefs.h"
13208 #ifdef HAVE_DB_185_H
13209 # include <db_185.h>
13214 #ifndef DB_VERSION_MAJOR
13215 # define DB_VERSION_MAJOR 1
13219 #define NULL ((void*)0)
13224 #if DB_VERSION_MAJOR > 1
13227 int major, minor, patch;
13229 version = db_version( &major, &minor, &patch );
13231 if( major != DB_VERSION_MAJOR ||
13232 minor < DB_VERSION_MINOR )
13234 printf("Berkeley DB version mismatch\n"
13235 "\texpected: %s\n\tgot: %s\n",
13236 DB_VERSION_STRING, version);
13242 #if DB_VERSION_MAJOR > 2
13243 db_env_create( NULL, 0 );
13244 #elif DB_VERSION_MAJOR > 1
13245 db_appexit( NULL );
13247 (void) dbopen( NULL, 0, 0, 0, NULL);
13252 if { (eval echo configure:13253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13267 echo "$ac_t""$ol_cv_db_db3" 1>&6
13269 if test $ol_cv_db_db3 = yes ; then
13274 if test $ol_cv_lib_db = no ; then
13275 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13276 echo "configure:13277: checking for Berkeley DB link (-ldb2)" >&5
13277 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13278 echo $ac_n "(cached) $ac_c" 1>&6
13283 LIBS="$ol_DB_LIB $LIBS"
13285 cat > conftest.$ac_ext <<EOF
13286 #line 13287 "configure"
13287 #include "confdefs.h"
13289 #ifdef HAVE_DB_185_H
13290 # include <db_185.h>
13295 #ifndef DB_VERSION_MAJOR
13296 # define DB_VERSION_MAJOR 1
13300 #define NULL ((void*)0)
13305 #if DB_VERSION_MAJOR > 1
13308 int major, minor, patch;
13310 version = db_version( &major, &minor, &patch );
13312 if( major != DB_VERSION_MAJOR ||
13313 minor < DB_VERSION_MINOR )
13315 printf("Berkeley DB version mismatch\n"
13316 "\texpected: %s\n\tgot: %s\n",
13317 DB_VERSION_STRING, version);
13323 #if DB_VERSION_MAJOR > 2
13324 db_env_create( NULL, 0 );
13325 #elif DB_VERSION_MAJOR > 1
13326 db_appexit( NULL );
13328 (void) dbopen( NULL, 0, 0, 0, NULL);
13333 if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13337 echo "configure: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13348 echo "$ac_t""$ol_cv_db_db2" 1>&6
13350 if test $ol_cv_db_db2 = yes ; then
13355 if test $ol_cv_lib_db = no ; then
13356 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13357 echo "configure:13358: checking for Berkeley DB link (-ldb1)" >&5
13358 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13359 echo $ac_n "(cached) $ac_c" 1>&6
13364 LIBS="$ol_DB_LIB $LIBS"
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13370 #ifdef HAVE_DB_185_H
13371 # include <db_185.h>
13376 #ifndef DB_VERSION_MAJOR
13377 # define DB_VERSION_MAJOR 1
13381 #define NULL ((void*)0)
13386 #if DB_VERSION_MAJOR > 1
13389 int major, minor, patch;
13391 version = db_version( &major, &minor, &patch );
13393 if( major != DB_VERSION_MAJOR ||
13394 minor < DB_VERSION_MINOR )
13396 printf("Berkeley DB version mismatch\n"
13397 "\texpected: %s\n\tgot: %s\n",
13398 DB_VERSION_STRING, version);
13404 #if DB_VERSION_MAJOR > 2
13405 db_env_create( NULL, 0 );
13406 #elif DB_VERSION_MAJOR > 1
13407 db_appexit( NULL );
13409 (void) dbopen( NULL, 0, 0, 0, NULL);
13414 if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13429 echo "$ac_t""$ol_cv_db_db1" 1>&6
13431 if test $ol_cv_db_db1 = yes ; then
13437 if test "$ol_cv_lib_db" != no ; then
13438 ol_cv_berkeley_db=yes
13444 ol_cv_berkeley_db=no
13447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13449 echo "configure:13450: checking for $ac_hdr" >&5
13450 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13451 echo $ac_n "(cached) $ac_c" 1>&6
13453 cat > conftest.$ac_ext <<EOF
13454 #line 13455 "configure"
13455 #include "confdefs.h"
13458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13459 { (eval echo configure:13460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13461 if test -z "$ac_err"; then
13463 eval "ac_cv_header_$ac_safe=yes"
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13469 eval "ac_cv_header_$ac_safe=no"
13473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13474 echo "$ac_t""yes" 1>&6
13475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13476 cat >> confdefs.h <<EOF
13477 #define $ac_tr_hdr 1
13481 echo "$ac_t""no" 1>&6
13485 if test $ac_cv_header_db_h = yes; then
13487 if test $ol_cv_lib_db = no ; then
13488 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13489 echo "configure:13490: checking for Berkeley DB link (default)" >&5
13490 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13491 echo $ac_n "(cached) $ac_c" 1>&6
13496 LIBS="$ol_DB_LIB $LIBS"
13498 cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13502 #ifdef HAVE_DB_185_H
13503 # include <db_185.h>
13508 #ifndef DB_VERSION_MAJOR
13509 # define DB_VERSION_MAJOR 1
13513 #define NULL ((void*)0)
13518 #if DB_VERSION_MAJOR > 1
13521 int major, minor, patch;
13523 version = db_version( &major, &minor, &patch );
13525 if( major != DB_VERSION_MAJOR ||
13526 minor < DB_VERSION_MINOR )
13528 printf("Berkeley DB version mismatch\n"
13529 "\texpected: %s\n\tgot: %s\n",
13530 DB_VERSION_STRING, version);
13536 #if DB_VERSION_MAJOR > 2
13537 db_env_create( NULL, 0 );
13538 #elif DB_VERSION_MAJOR > 1
13539 db_appexit( NULL );
13541 (void) dbopen( NULL, 0, 0, 0, NULL);
13546 if { (eval echo configure:13547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13561 echo "$ac_t""$ol_cv_db_none" 1>&6
13563 if test $ol_cv_db_none = yes ; then
13568 if test $ol_cv_lib_db = no ; then
13569 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13570 echo "configure:13571: checking for Berkeley DB link (-ldb)" >&5
13571 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13572 echo $ac_n "(cached) $ac_c" 1>&6
13577 LIBS="$ol_DB_LIB $LIBS"
13579 cat > conftest.$ac_ext <<EOF
13580 #line 13581 "configure"
13581 #include "confdefs.h"
13583 #ifdef HAVE_DB_185_H
13584 # include <db_185.h>
13589 #ifndef DB_VERSION_MAJOR
13590 # define DB_VERSION_MAJOR 1
13594 #define NULL ((void*)0)
13599 #if DB_VERSION_MAJOR > 1
13602 int major, minor, patch;
13604 version = db_version( &major, &minor, &patch );
13606 if( major != DB_VERSION_MAJOR ||
13607 minor < DB_VERSION_MINOR )
13609 printf("Berkeley DB version mismatch\n"
13610 "\texpected: %s\n\tgot: %s\n",
13611 DB_VERSION_STRING, version);
13617 #if DB_VERSION_MAJOR > 2
13618 db_env_create( NULL, 0 );
13619 #elif DB_VERSION_MAJOR > 1
13620 db_appexit( NULL );
13622 (void) dbopen( NULL, 0, 0, 0, NULL);
13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13631 echo "configure: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13642 echo "$ac_t""$ol_cv_db_db" 1>&6
13644 if test $ol_cv_db_db = yes ; then
13649 if test $ol_cv_lib_db = no ; then
13650 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13651 echo "configure:13652: checking for Berkeley DB link (-ldb3)" >&5
13652 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13653 echo $ac_n "(cached) $ac_c" 1>&6
13658 LIBS="$ol_DB_LIB $LIBS"
13660 cat > conftest.$ac_ext <<EOF
13661 #line 13662 "configure"
13662 #include "confdefs.h"
13664 #ifdef HAVE_DB_185_H
13665 # include <db_185.h>
13670 #ifndef DB_VERSION_MAJOR
13671 # define DB_VERSION_MAJOR 1
13675 #define NULL ((void*)0)
13680 #if DB_VERSION_MAJOR > 1
13683 int major, minor, patch;
13685 version = db_version( &major, &minor, &patch );
13687 if( major != DB_VERSION_MAJOR ||
13688 minor < DB_VERSION_MINOR )
13690 printf("Berkeley DB version mismatch\n"
13691 "\texpected: %s\n\tgot: %s\n",
13692 DB_VERSION_STRING, version);
13698 #if DB_VERSION_MAJOR > 2
13699 db_env_create( NULL, 0 );
13700 #elif DB_VERSION_MAJOR > 1
13701 db_appexit( NULL );
13703 (void) dbopen( NULL, 0, 0, 0, NULL);
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13723 echo "$ac_t""$ol_cv_db_db3" 1>&6
13725 if test $ol_cv_db_db3 = yes ; then
13730 if test $ol_cv_lib_db = no ; then
13731 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13732 echo "configure:13733: checking for Berkeley DB link (-ldb2)" >&5
13733 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13734 echo $ac_n "(cached) $ac_c" 1>&6
13739 LIBS="$ol_DB_LIB $LIBS"
13741 cat > conftest.$ac_ext <<EOF
13742 #line 13743 "configure"
13743 #include "confdefs.h"
13745 #ifdef HAVE_DB_185_H
13746 # include <db_185.h>
13751 #ifndef DB_VERSION_MAJOR
13752 # define DB_VERSION_MAJOR 1
13756 #define NULL ((void*)0)
13761 #if DB_VERSION_MAJOR > 1
13764 int major, minor, patch;
13766 version = db_version( &major, &minor, &patch );
13768 if( major != DB_VERSION_MAJOR ||
13769 minor < DB_VERSION_MINOR )
13771 printf("Berkeley DB version mismatch\n"
13772 "\texpected: %s\n\tgot: %s\n",
13773 DB_VERSION_STRING, version);
13779 #if DB_VERSION_MAJOR > 2
13780 db_env_create( NULL, 0 );
13781 #elif DB_VERSION_MAJOR > 1
13782 db_appexit( NULL );
13784 (void) dbopen( NULL, 0, 0, 0, NULL);
13789 if { (eval echo configure:13790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13793 echo "configure: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13804 echo "$ac_t""$ol_cv_db_db2" 1>&6
13806 if test $ol_cv_db_db2 = yes ; then
13811 if test $ol_cv_lib_db = no ; then
13812 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13813 echo "configure:13814: checking for Berkeley DB link (-ldb1)" >&5
13814 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13820 LIBS="$ol_DB_LIB $LIBS"
13822 cat > conftest.$ac_ext <<EOF
13823 #line 13824 "configure"
13824 #include "confdefs.h"
13826 #ifdef HAVE_DB_185_H
13827 # include <db_185.h>
13832 #ifndef DB_VERSION_MAJOR
13833 # define DB_VERSION_MAJOR 1
13837 #define NULL ((void*)0)
13842 #if DB_VERSION_MAJOR > 1
13845 int major, minor, patch;
13847 version = db_version( &major, &minor, &patch );
13849 if( major != DB_VERSION_MAJOR ||
13850 minor < DB_VERSION_MINOR )
13852 printf("Berkeley DB version mismatch\n"
13853 "\texpected: %s\n\tgot: %s\n",
13854 DB_VERSION_STRING, version);
13860 #if DB_VERSION_MAJOR > 2
13861 db_env_create( NULL, 0 );
13862 #elif DB_VERSION_MAJOR > 1
13863 db_appexit( NULL );
13865 (void) dbopen( NULL, 0, 0, 0, NULL);
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13885 echo "$ac_t""$ol_cv_db_db1" 1>&6
13887 if test $ol_cv_db_db1 = yes ; then
13893 if test "$ol_cv_lib_db" != no ; then
13894 ol_cv_berkeley_db=yes
13895 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13896 echo "configure:13897: checking for Berkeley DB thread support" >&5
13897 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13902 if test $ol_cv_lib_db != yes ; then
13903 LIBS="$ol_cv_lib_db"
13906 if test "$cross_compiling" = yes; then
13907 ol_cv_berkeley_db_thread=cross
13909 cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13913 #ifdef HAVE_DB_185_H
13919 #define NULL ((void *)0)
13924 u_int32_t flags = DB_CREATE |
13930 #if DB_VERSION_MAJOR > 2
13931 DB_ENV *env = NULL;
13933 rc = db_env_create( &env, 0 );
13935 flags |= DB_INIT_MPOOL;
13936 #ifdef DB_MPOOL_PRIVATE
13937 flags |= DB_MPOOL_PRIVATE;
13941 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13945 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13946 rc = env->open( env, NULL, flags, 0 );
13948 rc = env->open( env, NULL, NULL, flags, 0 );
13952 rc = env->close( env, 0 );
13956 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13962 memset( &env, '\0', sizeof(env) );
13964 rc = db_appinit( NULL, NULL, &env, flags );
13967 db_appexit( &env );
13970 unlink("__db_mpool.share");
13971 unlink("__db_lock.share");
13977 if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13979 ol_cv_berkeley_db_thread=yes
13981 echo "configure: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13984 ol_cv_berkeley_db_thread=no
13992 if test $ol_cv_berkeley_db_thread != no ; then
13993 cat >> confdefs.h <<\EOF
13994 #define HAVE_BERKELEY_DB_THREAD 1
14001 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
14007 if test $ol_cv_berkeley_db != no ; then
14008 cat >> confdefs.h <<\EOF
14009 #define HAVE_BERKELEY_DB 1
14013 ol_link_ldbm=berkeley
14014 ol_with_ldbm_api=berkeley
14016 if test $ol_with_ldbm_type = hash ; then
14017 cat >> confdefs.h <<\EOF
14018 #define LDBM_USE_DBHASH 1
14022 cat >> confdefs.h <<\EOF
14023 #define LDBM_USE_DBBTREE 1
14028 if test $ol_cv_lib_db != yes ; then
14029 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
14034 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
14035 { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
14036 elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
14040 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
14041 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
14042 ol_with_ldbm_api=none
14045 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
14046 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
14047 echo "configure:14048: checking for MDBM library" >&5
14048 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
14049 echo $ac_n "(cached) $ac_c" 1>&6
14052 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
14053 echo "configure:14054: checking for mdbm_set_chain" >&5
14054 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 /* System header to define __stub macros and hopefully few prototypes,
14061 which can conflict with char mdbm_set_chain(); below. */
14062 #include <assert.h>
14063 /* Override any gcc2 internal prototype to avoid an error. */
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14066 char mdbm_set_chain();
14071 /* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
14074 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
14077 f = mdbm_set_chain;
14082 if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14084 eval "ac_cv_func_mdbm_set_chain=yes"
14086 echo "configure: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14089 eval "ac_cv_func_mdbm_set_chain=no"
14094 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
14095 echo "$ac_t""yes" 1>&6
14098 echo "$ac_t""no" 1>&6
14100 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
14101 echo "configure:14102: checking for mdbm_set_chain in -lmdbm" >&5
14102 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
14103 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14104 echo $ac_n "(cached) $ac_c" 1>&6
14106 ac_save_LIBS="$LIBS"
14107 LIBS="-lmdbm $LIBS"
14108 cat > conftest.$ac_ext <<EOF
14109 #line 14110 "configure"
14110 #include "confdefs.h"
14111 /* Override any gcc2 internal prototype to avoid an error. */
14112 /* We use char because int might match the return type of a gcc2
14113 builtin and then its argument prototype would still apply. */
14114 char mdbm_set_chain();
14120 if { (eval echo configure:14121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14122 eval "ac_cv_lib_$ac_lib_var=yes"
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14127 eval "ac_cv_lib_$ac_lib_var=no"
14130 LIBS="$ac_save_LIBS"
14133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14134 echo "$ac_t""yes" 1>&6
14135 ol_cv_lib_mdbm=-lmdbm
14137 echo "$ac_t""no" 1>&6
14148 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
14151 for ac_hdr in mdbm.h
14153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14155 echo "configure:14156: checking for $ac_hdr" >&5
14156 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14157 echo $ac_n "(cached) $ac_c" 1>&6
14159 cat > conftest.$ac_ext <<EOF
14160 #line 14161 "configure"
14161 #include "confdefs.h"
14164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14165 { (eval echo configure:14166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14167 if test -z "$ac_err"; then
14169 eval "ac_cv_header_$ac_safe=yes"
14172 echo "configure: failed program was:" >&5
14173 cat conftest.$ac_ext >&5
14175 eval "ac_cv_header_$ac_safe=no"
14179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14182 cat >> confdefs.h <<EOF
14183 #define $ac_tr_hdr 1
14187 echo "$ac_t""no" 1>&6
14191 echo $ac_n "checking for db""... $ac_c" 1>&6
14192 echo "configure:14193: checking for db" >&5
14193 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
14194 echo $ac_n "(cached) $ac_c" 1>&6
14197 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
14205 echo "$ac_t""$ol_cv_mdbm" 1>&6
14206 if test $ol_cv_mdbm = yes ; then
14207 cat >> confdefs.h <<\EOF
14208 #define HAVE_MDBM 1
14214 if test $ol_cv_mdbm = yes ; then
14216 ol_with_ldbm_api=mdbm
14217 if test $ol_cv_lib_mdbm != yes ; then
14218 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
14223 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
14224 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
14225 echo "configure:14226: checking for GDBM library" >&5
14226 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
14227 echo $ac_n "(cached) $ac_c" 1>&6
14230 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
14231 echo "configure:14232: checking for gdbm_open" >&5
14232 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
14233 echo $ac_n "(cached) $ac_c" 1>&6
14235 cat > conftest.$ac_ext <<EOF
14236 #line 14237 "configure"
14237 #include "confdefs.h"
14238 /* System header to define __stub macros and hopefully few prototypes,
14239 which can conflict with char gdbm_open(); below. */
14240 #include <assert.h>
14241 /* Override any gcc2 internal prototype to avoid an error. */
14242 /* We use char because int might match the return type of a gcc2
14243 builtin and then its argument prototype would still apply. */
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14260 if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14262 eval "ac_cv_func_gdbm_open=yes"
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14267 eval "ac_cv_func_gdbm_open=no"
14272 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14273 echo "$ac_t""yes" 1>&6
14276 echo "$ac_t""no" 1>&6
14278 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14279 echo "configure:14280: checking for gdbm_open in -lgdbm" >&5
14280 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14281 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14282 echo $ac_n "(cached) $ac_c" 1>&6
14284 ac_save_LIBS="$LIBS"
14285 LIBS="-lgdbm $LIBS"
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 /* Override any gcc2 internal prototype to avoid an error. */
14290 /* We use char because int might match the return type of a gcc2
14291 builtin and then its argument prototype would still apply. */
14298 if { (eval echo configure:14299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14300 eval "ac_cv_lib_$ac_lib_var=yes"
14302 echo "configure: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14305 eval "ac_cv_lib_$ac_lib_var=no"
14308 LIBS="$ac_save_LIBS"
14311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14312 echo "$ac_t""yes" 1>&6
14313 ol_cv_lib_gdbm=-lgdbm
14315 echo "$ac_t""no" 1>&6
14326 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14329 for ac_hdr in gdbm.h
14331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14333 echo "configure:14334: checking for $ac_hdr" >&5
14334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14335 echo $ac_n "(cached) $ac_c" 1>&6
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14343 { (eval echo configure:14344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14345 if test -z "$ac_err"; then
14347 eval "ac_cv_header_$ac_safe=yes"
14350 echo "configure: failed program was:" >&5
14351 cat conftest.$ac_ext >&5
14353 eval "ac_cv_header_$ac_safe=no"
14357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14358 echo "$ac_t""yes" 1>&6
14359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14360 cat >> confdefs.h <<EOF
14361 #define $ac_tr_hdr 1
14365 echo "$ac_t""no" 1>&6
14369 echo $ac_n "checking for db""... $ac_c" 1>&6
14370 echo "configure:14371: checking for db" >&5
14371 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14372 echo $ac_n "(cached) $ac_c" 1>&6
14375 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14383 echo "$ac_t""$ol_cv_gdbm" 1>&6
14384 if test $ol_cv_gdbm = yes ; then
14385 cat >> confdefs.h <<\EOF
14386 #define HAVE_GDBM 1
14392 if test $ol_cv_gdbm = yes ; then
14394 ol_with_ldbm_api=gdbm
14396 if test $ol_cv_lib_gdbm != yes ; then
14397 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14402 if test $ol_with_ldbm_api = ndbm ; then
14403 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14404 echo "configure:14405: checking for NDBM library" >&5
14405 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14406 echo $ac_n "(cached) $ac_c" 1>&6
14409 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14410 echo "configure:14411: checking for dbm_open" >&5
14411 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
14414 cat > conftest.$ac_ext <<EOF
14415 #line 14416 "configure"
14416 #include "confdefs.h"
14417 /* System header to define __stub macros and hopefully few prototypes,
14418 which can conflict with char dbm_open(); below. */
14419 #include <assert.h>
14420 /* Override any gcc2 internal prototype to avoid an error. */
14421 /* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14428 /* The GNU C library defines this for functions which it implements
14429 to always fail with ENOSYS. Some functions are actually named
14430 something starting with __ and the normal name is an alias. */
14431 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14439 if { (eval echo configure:14440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14441 eval "ac_cv_func_dbm_open=yes"
14443 echo "configure: failed program was:" >&5
14444 cat conftest.$ac_ext >&5
14446 eval "ac_cv_func_dbm_open=no"
14451 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14452 echo "$ac_t""yes" 1>&6
14455 echo "$ac_t""no" 1>&6
14457 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14458 echo "configure:14459: checking for dbm_open in -lndbm" >&5
14459 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14460 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14463 ac_save_LIBS="$LIBS"
14464 LIBS="-lndbm $LIBS"
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14468 /* Override any gcc2 internal prototype to avoid an error. */
14469 /* We use char because int might match the return type of a gcc2
14470 builtin and then its argument prototype would still apply. */
14477 if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14479 eval "ac_cv_lib_$ac_lib_var=yes"
14481 echo "configure: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14484 eval "ac_cv_lib_$ac_lib_var=no"
14487 LIBS="$ac_save_LIBS"
14490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14491 echo "$ac_t""yes" 1>&6
14492 ol_cv_lib_ndbm=-lndbm
14494 echo "$ac_t""no" 1>&6
14496 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14497 echo "configure:14498: checking for dbm_open in -ldbm" >&5
14498 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14499 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14500 echo $ac_n "(cached) $ac_c" 1>&6
14502 ac_save_LIBS="$LIBS"
14504 cat > conftest.$ac_ext <<EOF
14505 #line 14506 "configure"
14506 #include "confdefs.h"
14507 /* Override any gcc2 internal prototype to avoid an error. */
14508 /* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14516 if { (eval echo configure:14517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14518 eval "ac_cv_lib_$ac_lib_var=yes"
14520 echo "configure: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14523 eval "ac_cv_lib_$ac_lib_var=no"
14526 LIBS="$ac_save_LIBS"
14529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14530 echo "$ac_t""yes" 1>&6
14531 ol_cv_lib_ndbm=-ldbm
14533 echo "$ac_t""no" 1>&6
14546 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14549 for ac_hdr in ndbm.h
14551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14553 echo "configure:14554: checking for $ac_hdr" >&5
14554 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14555 echo $ac_n "(cached) $ac_c" 1>&6
14557 cat > conftest.$ac_ext <<EOF
14558 #line 14559 "configure"
14559 #include "confdefs.h"
14562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14563 { (eval echo configure:14564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14565 if test -z "$ac_err"; then
14567 eval "ac_cv_header_$ac_safe=yes"
14570 echo "configure: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14573 eval "ac_cv_header_$ac_safe=no"
14577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14578 echo "$ac_t""yes" 1>&6
14579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14580 cat >> confdefs.h <<EOF
14581 #define $ac_tr_hdr 1
14585 echo "$ac_t""no" 1>&6
14589 echo $ac_n "checking for db""... $ac_c" 1>&6
14590 echo "configure:14591: checking for db" >&5
14591 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14592 echo $ac_n "(cached) $ac_c" 1>&6
14595 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14603 echo "$ac_t""$ol_cv_ndbm" 1>&6
14604 if test $ol_cv_ndbm = yes ; then
14605 cat >> confdefs.h <<\EOF
14606 #define HAVE_NDBM 1
14612 if test $ol_cv_ndbm = yes ; then
14614 ol_with_ldbm_api=ndbm
14616 if test $ol_cv_lib_ndbm != yes ; then
14617 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14622 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14623 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14624 if test $ol_enable_ldbm = yes ; then
14625 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14628 echo "configure: warning: disabling LDBM" 1>&2
14632 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14633 LINK_BINS_DYNAMIC="yes"
14635 LINK_BINS_DYNAMIC="no"
14638 if test $ol_enable_wrappers != no ; then
14639 for ac_hdr in tcpd.h
14641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14643 echo "configure:14644: checking for $ac_hdr" >&5
14644 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14645 echo $ac_n "(cached) $ac_c" 1>&6
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14653 { (eval echo configure:14654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14655 if test -z "$ac_err"; then
14657 eval "ac_cv_header_$ac_safe=yes"
14660 echo "configure: failed program was:" >&5
14661 cat conftest.$ac_ext >&5
14663 eval "ac_cv_header_$ac_safe=no"
14667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14668 echo "$ac_t""yes" 1>&6
14669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14670 cat >> confdefs.h <<EOF
14671 #define $ac_tr_hdr 1
14675 echo "$ac_t""no" 1>&6
14680 if test $ac_cv_header_tcpd_h != yes ; then
14683 cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14687 int allow_severity = 0;
14688 int deny_severity = 0;
14694 if { (eval echo configure:14695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14698 echo "configure: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14706 if test $have_wrappers = yes ; then
14707 cat >> confdefs.h <<\EOF
14708 #define HAVE_TCPD 1
14713 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14714 echo "configure:14715: checking for main in -lnsl" >&5
14715 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14716 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14717 echo $ac_n "(cached) $ac_c" 1>&6
14719 ac_save_LIBS="$LIBS"
14721 cat > conftest.$ac_ext <<EOF
14722 #line 14723 "configure"
14723 #include "confdefs.h"
14729 if { (eval echo configure:14730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14731 eval "ac_cv_lib_$ac_lib_var=yes"
14733 echo "configure: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14736 eval "ac_cv_lib_$ac_lib_var=no"
14739 LIBS="$ac_save_LIBS"
14742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14743 echo "$ac_t""yes" 1>&6
14744 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14746 cat >> confdefs.h <<EOF
14747 #define $ac_tr_lib 1
14753 echo "$ac_t""no" 1>&6
14757 echo "configure: warning: could not find -lwrap" 1>&2
14758 if test $ol_enable_wrappers = yes ; then
14759 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14762 echo "configure: warning: disabling wrappers support" 1>&2
14763 ol_enable_wrappers=no
14768 if test $ol_enable_syslog != no ; then
14769 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14770 echo "configure:14771: checking for openlog" >&5
14771 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14772 echo $ac_n "(cached) $ac_c" 1>&6
14774 cat > conftest.$ac_ext <<EOF
14775 #line 14776 "configure"
14776 #include "confdefs.h"
14777 /* System header to define __stub macros and hopefully few prototypes,
14778 which can conflict with char openlog(); below. */
14779 #include <assert.h>
14780 /* Override any gcc2 internal prototype to avoid an error. */
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14788 /* The GNU C library defines this for functions which it implements
14789 to always fail with ENOSYS. Some functions are actually named
14790 something starting with __ and the normal name is an alias. */
14791 #if defined (__stub_openlog) || defined (__stub___openlog)
14799 if { (eval echo configure:14800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14801 eval "ac_cv_func_openlog=yes"
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14806 eval "ac_cv_func_openlog=no"
14811 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14812 echo "$ac_t""yes" 1>&6
14815 echo "$ac_t""no" 1>&6
14818 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14819 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14821 ol_enable_syslog=$ac_cv_func_openlog
14826 if test $ol_enable_sql != no ; then
14827 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14828 echo "configure:14829: checking for SQLDriverConnect in -liodbc" >&5
14829 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14831 echo $ac_n "(cached) $ac_c" 1>&6
14833 ac_save_LIBS="$LIBS"
14834 LIBS="-liodbc $LIBS"
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14838 /* Override any gcc2 internal prototype to avoid an error. */
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14841 char SQLDriverConnect();
14847 if { (eval echo configure:14848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14849 eval "ac_cv_lib_$ac_lib_var=yes"
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14854 eval "ac_cv_lib_$ac_lib_var=no"
14857 LIBS="$ac_save_LIBS"
14860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14861 echo "$ac_t""yes" 1>&6
14864 echo "$ac_t""no" 1>&6
14868 if test $have_iodbc = yes ; then
14869 ol_link_sql="-liodbc"
14871 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14872 echo "configure:14873: checking for SQLDriverConnect in -lodbc" >&5
14873 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14875 echo $ac_n "(cached) $ac_c" 1>&6
14877 ac_save_LIBS="$LIBS"
14878 LIBS="-lodbc $LIBS"
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14882 /* Override any gcc2 internal prototype to avoid an error. */
14883 /* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14885 char SQLDriverConnect();
14891 if { (eval echo configure:14892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14893 eval "ac_cv_lib_$ac_lib_var=yes"
14895 echo "configure: failed program was:" >&5
14896 cat conftest.$ac_ext >&5
14898 eval "ac_cv_lib_$ac_lib_var=no"
14901 LIBS="$ac_save_LIBS"
14904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14905 echo "$ac_t""yes" 1>&6
14908 echo "$ac_t""no" 1>&6
14912 if test $have_odbc = yes ; then
14913 ol_link_sql="-lodbc"
14917 if test $ol_link_sql != no ; then
14918 SLAPD_SQL_LIBS="$ol_link_sql"
14920 elif test $ol_enable_sql != auto ; then
14921 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14925 if test $ol_enable_tcl != no ; then
14926 for ac_hdr in tcl.h
14928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14930 echo "configure:14931: checking for $ac_hdr" >&5
14931 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14932 echo $ac_n "(cached) $ac_c" 1>&6
14934 cat > conftest.$ac_ext <<EOF
14935 #line 14936 "configure"
14936 #include "confdefs.h"
14939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14940 { (eval echo configure:14941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14942 if test -z "$ac_err"; then
14944 eval "ac_cv_header_$ac_safe=yes"
14947 echo "configure: failed program was:" >&5
14948 cat conftest.$ac_ext >&5
14950 eval "ac_cv_header_$ac_safe=no"
14954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14955 echo "$ac_t""yes" 1>&6
14956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14957 cat >> confdefs.h <<EOF
14958 #define $ac_tr_hdr 1
14962 echo "$ac_t""no" 1>&6
14967 if test $ac_cv_header_tcl_h != yes ; then
14970 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
14971 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
14972 echo "configure:14973: checking for main in -l$lib" >&5
14973 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
14974 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14975 echo $ac_n "(cached) $ac_c" 1>&6
14977 ac_save_LIBS="$LIBS"
14978 LIBS="-l$lib $LIBS"
14979 cat > conftest.$ac_ext <<EOF
14980 #line 14981 "configure"
14981 #include "confdefs.h"
14987 if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14989 eval "ac_cv_lib_$ac_lib_var=yes"
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14994 eval "ac_cv_lib_$ac_lib_var=no"
14997 LIBS="$ac_save_LIBS"
15000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15001 echo "$ac_t""yes" 1>&6
15003 if test x"$ol_with_tcl_module" = "xstatic" ; then
15004 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
15006 MOD_TCL_LIB="-l${lib}"
15009 echo "$ac_t""no" 1>&6
15016 if test $have_tcl != yes ; then
15017 echo "configure: warning: could not find -ltcl" 1>&2
15018 if test $ol_enable_tcl = yes ; then
15019 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
15027 for ac_hdr in termcap.h ncurses.h
15029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15031 echo "configure:15032: checking for $ac_hdr" >&5
15032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15033 echo $ac_n "(cached) $ac_c" 1>&6
15035 cat > conftest.$ac_ext <<EOF
15036 #line 15037 "configure"
15037 #include "confdefs.h"
15040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15041 { (eval echo configure:15042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15043 if test -z "$ac_err"; then
15045 eval "ac_cv_header_$ac_safe=yes"
15048 echo "configure: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15051 eval "ac_cv_header_$ac_safe=no"
15055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15056 echo "$ac_t""yes" 1>&6
15057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15058 cat >> confdefs.h <<EOF
15059 #define $ac_tr_hdr 1
15063 echo "$ac_t""no" 1>&6
15068 if test $ol_link_termcap = no ; then
15069 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
15070 echo "configure:15071: checking for tputs in -ltermcap" >&5
15071 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
15072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15073 echo $ac_n "(cached) $ac_c" 1>&6
15075 ac_save_LIBS="$LIBS"
15076 LIBS="-ltermcap $LIBS"
15077 cat > conftest.$ac_ext <<EOF
15078 #line 15079 "configure"
15079 #include "confdefs.h"
15080 /* Override any gcc2 internal prototype to avoid an error. */
15081 /* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15089 if { (eval echo configure:15090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15091 eval "ac_cv_lib_$ac_lib_var=yes"
15093 echo "configure: failed program was:" >&5
15094 cat conftest.$ac_ext >&5
15096 eval "ac_cv_lib_$ac_lib_var=no"
15099 LIBS="$ac_save_LIBS"
15102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15103 echo "$ac_t""yes" 1>&6
15106 echo "$ac_t""no" 1>&6
15110 if test $have_termcap = yes ; then
15111 cat >> confdefs.h <<\EOF
15112 #define HAVE_TERMCAP 1
15115 ol_link_termcap=yes
15116 TERMCAP_LIBS=-ltermcap
15120 if test $ol_link_termcap = no ; then
15121 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
15122 echo "configure:15123: checking for initscr in -lncurses" >&5
15123 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
15124 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15125 echo $ac_n "(cached) $ac_c" 1>&6
15127 ac_save_LIBS="$LIBS"
15128 LIBS="-lncurses $LIBS"
15129 cat > conftest.$ac_ext <<EOF
15130 #line 15131 "configure"
15131 #include "confdefs.h"
15132 /* Override any gcc2 internal prototype to avoid an error. */
15133 /* We use char because int might match the return type of a gcc2
15134 builtin and then its argument prototype would still apply. */
15141 if { (eval echo configure:15142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15143 eval "ac_cv_lib_$ac_lib_var=yes"
15145 echo "configure: failed program was:" >&5
15146 cat conftest.$ac_ext >&5
15148 eval "ac_cv_lib_$ac_lib_var=no"
15151 LIBS="$ac_save_LIBS"
15154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15155 echo "$ac_t""yes" 1>&6
15158 echo "$ac_t""no" 1>&6
15162 if test $have_ncurses = yes ; then
15163 cat >> confdefs.h <<\EOF
15164 #define HAVE_NCURSES 1
15167 ol_link_termcap=yes
15168 TERMCAP_LIBS=-lncurses
15172 if test $ol_link_termcap = no ; then
15173 cat >> confdefs.h <<\EOF
15174 #define NO_TERMCAP 1
15182 if test $ol_with_cyrus_sasl != no ; then
15183 for ac_hdr in sasl.h
15185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15187 echo "configure:15188: checking for $ac_hdr" >&5
15188 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15189 echo $ac_n "(cached) $ac_c" 1>&6
15191 cat > conftest.$ac_ext <<EOF
15192 #line 15193 "configure"
15193 #include "confdefs.h"
15196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15197 { (eval echo configure:15198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15199 if test -z "$ac_err"; then
15201 eval "ac_cv_header_$ac_safe=yes"
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15207 eval "ac_cv_header_$ac_safe=no"
15211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15212 echo "$ac_t""yes" 1>&6
15213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15214 cat >> confdefs.h <<EOF
15215 #define $ac_tr_hdr 1
15219 echo "$ac_t""no" 1>&6
15224 if test $ac_cv_header_sasl_h = yes ; then
15225 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
15226 echo "configure:15227: checking for sasl_client_init in -lsasl" >&5
15227 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
15228 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15231 ac_save_LIBS="$LIBS"
15232 LIBS="-lsasl $LIBS"
15233 cat > conftest.$ac_ext <<EOF
15234 #line 15235 "configure"
15235 #include "confdefs.h"
15236 /* Override any gcc2 internal prototype to avoid an error. */
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15239 char sasl_client_init();
15245 if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15247 eval "ac_cv_lib_$ac_lib_var=yes"
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15252 eval "ac_cv_lib_$ac_lib_var=no"
15255 LIBS="$ac_save_LIBS"
15258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15259 echo "$ac_t""yes" 1>&6
15260 have_cyrus_sasl=yes
15262 echo "$ac_t""no" 1>&6
15267 if test $have_cyrus_sasl != no ; then
15269 cat >> confdefs.h <<\EOF
15270 #define HAVE_CYRUS_SASL 1
15277 if test $ol_link_sasl = no ; then
15278 if test $ol_with_cyrus_sasl != auto ; then
15279 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15281 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15282 echo "configure: warning: SASL authentication not supported!" 1>&2
15283 if test $ol_link_tls = no ; then
15284 echo "configure: warning: Strong authentication not supported!" 1>&2
15288 elif test $ol_enable_spasswd != no ; then
15289 ol_link_spasswd=yes
15293 echo "configure: warning: SASL authentication not supported!" 1>&2
15294 if test $ol_link_tls = no ; then
15295 echo "configure: warning: Strong authentication not supported!" 1>&2
15299 if test $cross_compiling != yes ; then
15301 if test -r /dev/urandom ; then
15302 dev="/dev/urandom";
15303 elif test -r /idev/urandom ; then
15304 dev="/idev/urandom";
15305 elif test -r /dev/srandom ; then
15306 dev="/dev/srandom";
15307 elif test -r /dev/random ; then
15309 elif test -r /idev/random ; then
15310 dev="/idev/random";
15313 if test $dev != no ; then
15314 cat >> confdefs.h <<EOF
15315 #define URANDOM_DEVICE "$dev"
15322 if test $ol_with_fetch != no ; then
15324 LIBS="-lfetch -lcom_err $LIBS"
15325 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15326 echo "configure:15327: checking fetch(3) library" >&5
15327 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15328 echo $ac_n "(cached) $ac_c" 1>&6
15331 cat > conftest.$ac_ext <<EOF
15332 #line 15333 "configure"
15333 #include "confdefs.h"
15335 #include <sys/param.h>
15339 struct url *u = fetchParseURL("file:///");
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15344 ol_cv_lib_fetch=yes
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15354 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15356 if test $ol_cv_lib_fetch != no ; then
15357 ol_link_fetch="-lfetch -lcom_err"
15358 cat >> confdefs.h <<\EOF
15359 #define HAVE_FETCH 1
15365 if test $ol_cv_lib_fetch != no ; then
15366 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15367 ol_link_fetch=freebsd
15369 elif test $ol_with_fetch != auto ; then
15370 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15374 ol_link_readline=no
15375 if test $ol_with_readline != no ; then
15376 for ac_hdr in readline/readline.h readline/history.h
15378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15380 echo "configure:15381: checking for $ac_hdr" >&5
15381 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15382 echo $ac_n "(cached) $ac_c" 1>&6
15384 cat > conftest.$ac_ext <<EOF
15385 #line 15386 "configure"
15386 #include "confdefs.h"
15389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15390 { (eval echo configure:15391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15392 if test -z "$ac_err"; then
15394 eval "ac_cv_header_$ac_safe=yes"
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15400 eval "ac_cv_header_$ac_safe=no"
15404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15405 echo "$ac_t""yes" 1>&6
15406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15407 cat >> confdefs.h <<EOF
15408 #define $ac_tr_hdr 1
15412 echo "$ac_t""no" 1>&6
15417 if test $ac_cv_header_readline_readline_h = yes ; then
15419 LIBS="$TERMCAP_LIBS $LIBS"
15420 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15421 echo "configure:15422: checking for readline in -lreadline" >&5
15422 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15424 echo $ac_n "(cached) $ac_c" 1>&6
15426 ac_save_LIBS="$LIBS"
15427 LIBS="-lreadline $LIBS"
15428 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 /* Override any gcc2 internal prototype to avoid an error. */
15432 /* We use char because int might match the return type of a gcc2
15433 builtin and then its argument prototype would still apply. */
15440 if { (eval echo configure:15441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15442 eval "ac_cv_lib_$ac_lib_var=yes"
15444 echo "configure: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15447 eval "ac_cv_lib_$ac_lib_var=no"
15450 LIBS="$ac_save_LIBS"
15453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15454 echo "$ac_t""yes" 1>&6
15457 echo "$ac_t""no" 1>&6
15463 if test $have_readline = yes ; then
15464 ol_with_readline=found
15465 ol_link_readline=yes
15467 READLINE_LIBS="-lreadline"
15472 if test $ol_link_readline = yes ; then
15473 cat >> confdefs.h <<\EOF
15474 #define HAVE_READLINE 1
15480 if test $ol_enable_crypt != no ; then
15481 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15482 echo "configure:15483: checking for crypt" >&5
15483 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15484 echo $ac_n "(cached) $ac_c" 1>&6
15486 cat > conftest.$ac_ext <<EOF
15487 #line 15488 "configure"
15488 #include "confdefs.h"
15489 /* System header to define __stub macros and hopefully few prototypes,
15490 which can conflict with char crypt(); below. */
15491 #include <assert.h>
15492 /* Override any gcc2 internal prototype to avoid an error. */
15493 /* We use char because int might match the return type of a gcc2
15494 builtin and then its argument prototype would still apply. */
15500 /* The GNU C library defines this for functions which it implements
15501 to always fail with ENOSYS. Some functions are actually named
15502 something starting with __ and the normal name is an alias. */
15503 #if defined (__stub_crypt) || defined (__stub___crypt)
15511 if { (eval echo configure:15512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15513 eval "ac_cv_func_crypt=yes"
15515 echo "configure: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15518 eval "ac_cv_func_crypt=no"
15523 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15524 echo "$ac_t""yes" 1>&6
15527 echo "$ac_t""no" 1>&6
15529 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15530 echo "configure:15531: checking for crypt in -lcrypt" >&5
15531 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15533 echo $ac_n "(cached) $ac_c" 1>&6
15535 ac_save_LIBS="$LIBS"
15536 LIBS="-lcrypt $LIBS"
15537 cat > conftest.$ac_ext <<EOF
15538 #line 15539 "configure"
15539 #include "confdefs.h"
15540 /* Override any gcc2 internal prototype to avoid an error. */
15541 /* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15549 if { (eval echo configure:15550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15551 eval "ac_cv_lib_$ac_lib_var=yes"
15553 echo "configure: failed program was:" >&5
15554 cat conftest.$ac_ext >&5
15556 eval "ac_cv_lib_$ac_lib_var=no"
15559 LIBS="$ac_save_LIBS"
15562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15563 echo "$ac_t""yes" 1>&6
15564 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15567 echo "$ac_t""no" 1>&6
15574 if test $have_crypt = yes ; then
15575 cat >> confdefs.h <<\EOF
15576 #define HAVE_CRYPT 1
15580 echo "configure: warning: could not find crypt" 1>&2
15581 if test $ol_enable_crypt = yes ; then
15582 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15585 echo "configure: warning: disabling crypt support" 1>&2
15590 if test $ol_enable_proctitle != no ; then
15591 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15592 echo "configure:15593: checking for setproctitle" >&5
15593 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15594 echo $ac_n "(cached) $ac_c" 1>&6
15596 cat > conftest.$ac_ext <<EOF
15597 #line 15598 "configure"
15598 #include "confdefs.h"
15599 /* System header to define __stub macros and hopefully few prototypes,
15600 which can conflict with char setproctitle(); below. */
15601 #include <assert.h>
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 /* We use char because int might match the return type of a gcc2
15604 builtin and then its argument prototype would still apply. */
15605 char setproctitle();
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15621 if { (eval echo configure:15622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15623 eval "ac_cv_func_setproctitle=yes"
15625 echo "configure: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15628 eval "ac_cv_func_setproctitle=no"
15633 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15634 echo "$ac_t""yes" 1>&6
15635 have_setproctitle=yes
15637 echo "$ac_t""no" 1>&6
15639 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15640 echo "configure:15641: checking for setproctitle in -lutil" >&5
15641 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15642 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
15645 ac_save_LIBS="$LIBS"
15646 LIBS="-lutil $LIBS"
15647 cat > conftest.$ac_ext <<EOF
15648 #line 15649 "configure"
15649 #include "confdefs.h"
15650 /* Override any gcc2 internal prototype to avoid an error. */
15651 /* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15653 char setproctitle();
15659 if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15661 eval "ac_cv_lib_$ac_lib_var=yes"
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15666 eval "ac_cv_lib_$ac_lib_var=no"
15669 LIBS="$ac_save_LIBS"
15672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15674 have_setproctitle=yes
15675 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15677 echo "$ac_t""no" 1>&6
15678 have_setproctitle=no
15679 LIBOBJS="$LIBOBJS setproctitle.o"
15680 LIBSRCS="$LIBSRCS setproctitle.c"
15686 if test $have_setproctitle = yes ; then
15687 cat >> confdefs.h <<\EOF
15688 #define HAVE_SETPROCTITLE 1
15694 if test $ol_enable_slp != no ; then
15695 for ac_hdr in slp.h
15697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15699 echo "configure:15700: checking for $ac_hdr" >&5
15700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15701 echo $ac_n "(cached) $ac_c" 1>&6
15703 cat > conftest.$ac_ext <<EOF
15704 #line 15705 "configure"
15705 #include "confdefs.h"
15708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15709 { (eval echo configure:15710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15711 if test -z "$ac_err"; then
15713 eval "ac_cv_header_$ac_safe=yes"
15716 echo "configure: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15719 eval "ac_cv_header_$ac_safe=no"
15723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15724 echo "$ac_t""yes" 1>&6
15725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15726 cat >> confdefs.h <<EOF
15727 #define $ac_tr_hdr 1
15731 echo "$ac_t""no" 1>&6
15736 if test $ac_cv_header_slp_h = yes ; then
15737 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15738 echo "configure:15739: checking for SLPOpen in -lslp" >&5
15739 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15741 echo $ac_n "(cached) $ac_c" 1>&6
15743 ac_save_LIBS="$LIBS"
15745 cat > conftest.$ac_ext <<EOF
15746 #line 15747 "configure"
15747 #include "confdefs.h"
15748 /* Override any gcc2 internal prototype to avoid an error. */
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15757 if { (eval echo configure:15758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15759 eval "ac_cv_lib_$ac_lib_var=yes"
15761 echo "configure: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15764 eval "ac_cv_lib_$ac_lib_var=no"
15767 LIBS="$ac_save_LIBS"
15770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15771 echo "$ac_t""yes" 1>&6
15774 echo "$ac_t""no" 1>&6
15778 if test $have_slp = yes ; then
15779 cat >> confdefs.h <<\EOF
15783 SLAPD_SLP_LIBS=-lslp
15786 elif test $ol_enable_slp = yes ; then
15787 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15791 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15792 echo "configure:15793: checking for ANSI C header files" >&5
15793 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15794 echo $ac_n "(cached) $ac_c" 1>&6
15796 cat > conftest.$ac_ext <<EOF
15797 #line 15798 "configure"
15798 #include "confdefs.h"
15799 #include <stdlib.h>
15800 #include <stdarg.h>
15801 #include <string.h>
15804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15805 { (eval echo configure:15806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15807 if test -z "$ac_err"; then
15809 ac_cv_header_stdc=yes
15812 echo "configure: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15815 ac_cv_header_stdc=no
15819 if test $ac_cv_header_stdc = yes; then
15820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15821 cat > conftest.$ac_ext <<EOF
15822 #line 15823 "configure"
15823 #include "confdefs.h"
15824 #include <string.h>
15826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15827 egrep "memchr" >/dev/null 2>&1; then
15831 ac_cv_header_stdc=no
15837 if test $ac_cv_header_stdc = yes; then
15838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15839 cat > conftest.$ac_ext <<EOF
15840 #line 15841 "configure"
15841 #include "confdefs.h"
15842 #include <stdlib.h>
15844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15845 egrep "free" >/dev/null 2>&1; then
15849 ac_cv_header_stdc=no
15855 if test $ac_cv_header_stdc = yes; then
15856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15857 if test "$cross_compiling" = yes; then
15860 cat > conftest.$ac_ext <<EOF
15861 #line 15862 "configure"
15862 #include "confdefs.h"
15864 #if ((' ' & 0x0FF) == 0x020)
15865 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15866 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15868 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15869 || ('j' <= (c) && (c) <= 'r') \
15870 || ('s' <= (c) && (c) <= 'z'))
15871 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15874 int main () { int i; for (i = 0; i < 256; i++)
15875 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15879 if { (eval echo configure:15880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15883 echo "configure: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15886 ac_cv_header_stdc=no
15894 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15895 if test $ac_cv_header_stdc = yes; then
15896 cat >> confdefs.h <<\EOF
15897 #define STDC_HEADERS 1
15902 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15903 echo "configure:15904: checking for mode_t" >&5
15904 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15905 echo $ac_n "(cached) $ac_c" 1>&6
15907 cat > conftest.$ac_ext <<EOF
15908 #line 15909 "configure"
15909 #include "confdefs.h"
15910 #include <sys/types.h>
15912 #include <stdlib.h>
15913 #include <stddef.h>
15917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15918 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15920 eval "ac_cv_type_mode_t=yes"
15923 eval "ac_cv_type_mode_t=no"
15928 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15929 echo "$ac_t""yes" 1>&6
15931 echo "$ac_t""no" 1>&6
15932 cat >> confdefs.h <<EOF
15938 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15939 echo "configure:15940: checking for off_t" >&5
15940 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15941 echo $ac_n "(cached) $ac_c" 1>&6
15943 cat > conftest.$ac_ext <<EOF
15944 #line 15945 "configure"
15945 #include "confdefs.h"
15946 #include <sys/types.h>
15948 #include <stdlib.h>
15949 #include <stddef.h>
15953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15954 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15956 eval "ac_cv_type_off_t=yes"
15959 eval "ac_cv_type_off_t=no"
15964 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15965 echo "$ac_t""yes" 1>&6
15967 echo "$ac_t""no" 1>&6
15968 cat >> confdefs.h <<EOF
15974 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15975 echo "configure:15976: checking for pid_t" >&5
15976 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15977 echo $ac_n "(cached) $ac_c" 1>&6
15979 cat > conftest.$ac_ext <<EOF
15980 #line 15981 "configure"
15981 #include "confdefs.h"
15982 #include <sys/types.h>
15984 #include <stdlib.h>
15985 #include <stddef.h>
15989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15990 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15992 eval "ac_cv_type_pid_t=yes"
15995 eval "ac_cv_type_pid_t=no"
16000 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
16001 echo "$ac_t""yes" 1>&6
16003 echo "$ac_t""no" 1>&6
16004 cat >> confdefs.h <<EOF
16010 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
16011 echo "configure:16012: checking for ptrdiff_t" >&5
16012 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
16013 echo $ac_n "(cached) $ac_c" 1>&6
16015 cat > conftest.$ac_ext <<EOF
16016 #line 16017 "configure"
16017 #include "confdefs.h"
16018 #include <stddef.h>
16023 if { (eval echo configure:16024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16025 am_cv_type_ptrdiff_t=yes
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16030 am_cv_type_ptrdiff_t=no
16035 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
16036 if test $am_cv_type_ptrdiff_t = yes; then
16037 cat >> confdefs.h <<\EOF
16038 #define HAVE_PTRDIFF_T 1
16043 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
16044 echo "configure:16045: checking return type of signal handlers" >&5
16045 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
16046 echo $ac_n "(cached) $ac_c" 1>&6
16048 cat > conftest.$ac_ext <<EOF
16049 #line 16050 "configure"
16050 #include "confdefs.h"
16051 #include <sys/types.h>
16052 #include <signal.h>
16057 extern "C" void (*signal (int, void (*)(int)))(int);
16059 void (*signal ()) ();
16066 if { (eval echo configure:16067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16068 ac_cv_type_signal=void
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16073 ac_cv_type_signal=int
16078 echo "$ac_t""$ac_cv_type_signal" 1>&6
16079 cat >> confdefs.h <<EOF
16080 #define RETSIGTYPE $ac_cv_type_signal
16084 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16085 echo "configure:16086: checking for size_t" >&5
16086 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
16087 echo $ac_n "(cached) $ac_c" 1>&6
16089 cat > conftest.$ac_ext <<EOF
16090 #line 16091 "configure"
16091 #include "confdefs.h"
16092 #include <sys/types.h>
16094 #include <stdlib.h>
16095 #include <stddef.h>
16099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16100 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16102 eval "ac_cv_type_size_t=yes"
16105 eval "ac_cv_type_size_t=no"
16110 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
16111 echo "$ac_t""yes" 1>&6
16113 echo "$ac_t""no" 1>&6
16114 cat >> confdefs.h <<EOF
16115 #define size_t unsigned
16121 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
16122 echo "configure:16123: checking for ssize_t" >&5
16123 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
16124 echo $ac_n "(cached) $ac_c" 1>&6
16126 cat > conftest.$ac_ext <<EOF
16127 #line 16128 "configure"
16128 #include "confdefs.h"
16129 #include <sys/types.h>
16131 #include <stdlib.h>
16132 #include <stddef.h>
16136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16137 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16139 eval "ac_cv_type_ssize_t=yes"
16142 eval "ac_cv_type_ssize_t=no"
16147 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
16148 echo "$ac_t""yes" 1>&6
16150 echo "$ac_t""no" 1>&6
16151 cat >> confdefs.h <<EOF
16152 #define ssize_t signed int
16157 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
16158 echo "configure:16159: checking for caddr_t" >&5
16159 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
16160 echo $ac_n "(cached) $ac_c" 1>&6
16162 cat > conftest.$ac_ext <<EOF
16163 #line 16164 "configure"
16164 #include "confdefs.h"
16165 #include <sys/types.h>
16167 #include <stdlib.h>
16168 #include <stddef.h>
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16175 eval "ac_cv_type_caddr_t=yes"
16178 eval "ac_cv_type_caddr_t=no"
16183 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
16184 echo "$ac_t""yes" 1>&6
16186 echo "$ac_t""no" 1>&6
16187 cat >> confdefs.h <<EOF
16188 #define caddr_t char *
16194 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
16195 echo "configure:16196: checking for socklen_t" >&5
16196 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
16197 echo $ac_n "(cached) $ac_c" 1>&6
16199 cat > conftest.$ac_ext <<EOF
16200 #line 16201 "configure"
16201 #include "confdefs.h"
16203 #ifdef HAVE_SYS_TYPES_H
16204 #include <sys/types.h>
16206 #ifdef HAVE_SYS_SOCKET_H
16207 #include <sys/socket.h>
16214 if { (eval echo configure:16215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16216 ol_cv_type_socklen_t=yes
16218 echo "configure: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16221 ol_cv_type_socklen_t=no
16226 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
16227 if test $ol_cv_type_socklen_t = no; then
16228 cat >> confdefs.h <<\EOF
16229 #define socklen_t int
16234 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
16235 echo "configure:16236: checking for member st_blksize in aggregate type struct stat" >&5
16236 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
16237 echo $ac_n "(cached) $ac_c" 1>&6
16239 cat > conftest.$ac_ext <<EOF
16240 #line 16241 "configure"
16241 #include "confdefs.h"
16242 #include <sys/types.h>
16243 #include <sys/stat.h>
16245 struct stat foo; foo.st_blksize;
16248 if { (eval echo configure:16249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16250 ac_cv_c_struct_member_st_blksize=yes
16252 echo "configure: failed program was:" >&5
16253 cat conftest.$ac_ext >&5
16255 ac_cv_c_struct_member_st_blksize=no
16260 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16261 st_blksize="$ac_cv_c_struct_member_st_blksize"
16262 if test $ac_cv_c_struct_member_st_blksize = yes; then
16263 cat >> confdefs.h <<\EOF
16264 #define HAVE_ST_BLKSIZE 1
16269 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16270 echo "configure:16271: checking whether time.h and sys/time.h may both be included" >&5
16271 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16272 echo $ac_n "(cached) $ac_c" 1>&6
16274 cat > conftest.$ac_ext <<EOF
16275 #line 16276 "configure"
16276 #include "confdefs.h"
16277 #include <sys/types.h>
16278 #include <sys/time.h>
16284 if { (eval echo configure:16285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16286 ac_cv_header_time=yes
16288 echo "configure: failed program was:" >&5
16289 cat conftest.$ac_ext >&5
16291 ac_cv_header_time=no
16296 echo "$ac_t""$ac_cv_header_time" 1>&6
16297 if test $ac_cv_header_time = yes; then
16298 cat >> confdefs.h <<\EOF
16299 #define TIME_WITH_SYS_TIME 1
16304 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16305 echo "configure:16306: checking whether struct tm is in sys/time.h or time.h" >&5
16306 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16307 echo $ac_n "(cached) $ac_c" 1>&6
16309 cat > conftest.$ac_ext <<EOF
16310 #line 16311 "configure"
16311 #include "confdefs.h"
16312 #include <sys/types.h>
16315 struct tm *tp; tp->tm_sec;
16318 if { (eval echo configure:16319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16320 ac_cv_struct_tm=time.h
16322 echo "configure: failed program was:" >&5
16323 cat conftest.$ac_ext >&5
16325 ac_cv_struct_tm=sys/time.h
16330 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16331 if test $ac_cv_struct_tm = sys/time.h; then
16332 cat >> confdefs.h <<\EOF
16333 #define TM_IN_SYS_TIME 1
16338 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16339 echo "configure:16340: checking for uid_t in sys/types.h" >&5
16340 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16341 echo $ac_n "(cached) $ac_c" 1>&6
16343 cat > conftest.$ac_ext <<EOF
16344 #line 16345 "configure"
16345 #include "confdefs.h"
16346 #include <sys/types.h>
16348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16349 egrep "uid_t" >/dev/null 2>&1; then
16351 ac_cv_type_uid_t=yes
16354 ac_cv_type_uid_t=no
16360 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16361 if test $ac_cv_type_uid_t = no; then
16362 cat >> confdefs.h <<\EOF
16366 cat >> confdefs.h <<\EOF
16372 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16373 echo "configure:16374: checking for sig_atomic_t" >&5
16374 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16375 echo $ac_n "(cached) $ac_c" 1>&6
16377 cat > conftest.$ac_ext <<EOF
16378 #line 16379 "configure"
16379 #include "confdefs.h"
16380 #include <signal.h>
16382 sig_atomic_t atomic;
16385 if { (eval echo configure:16386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16387 ol_cv_type_sig_atomic_t=yes
16389 echo "configure: failed program was:" >&5
16390 cat conftest.$ac_ext >&5
16392 ol_cv_type_sig_atomic_t=no
16397 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16398 if test $ol_cv_type_sig_atomic_t = no; then
16399 cat >> confdefs.h <<\EOF
16400 #define sig_atomic_t int
16407 # test for pw_gecos in struct passwd
16408 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16409 echo "configure:16410: checking struct passwd for pw_gecos" >&5
16410 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16411 echo $ac_n "(cached) $ac_c" 1>&6
16414 cat > conftest.$ac_ext <<EOF
16415 #line 16416 "configure"
16416 #include "confdefs.h"
16421 pwd.pw_gecos = pwd.pw_name;
16425 if { (eval echo configure:16426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16427 ol_cv_struct_passwd_pw_gecos=yes
16429 echo "configure: failed program was:" >&5
16430 cat conftest.$ac_ext >&5
16432 ol_cv_struct_passwd_pw_gecos=no
16437 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16438 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16439 cat >> confdefs.h <<\EOF
16440 #define HAVE_PW_GECOS 1
16445 # test for pw_passwd in struct passwd
16446 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16447 echo "configure:16448: checking struct passwd for pw_passwd" >&5
16448 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16449 echo $ac_n "(cached) $ac_c" 1>&6
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16454 "configure"
16454 #include "confdefs.h"
16459 pwd.pw_passwd = pwd.pw_name;
16463 if { (eval echo configure:16464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16465 ol_cv_struct_passwd_pw_passwd=yes
16467 echo "configure: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16470 ol_cv_struct_passwd_pw_passwd=no
16475 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16476 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16477 cat >> confdefs.h <<\EOF
16478 #define HAVE_PW_PASSWD 1
16484 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16485 echo "configure:16486: checking if toupper() requires islower()" >&5
16486 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16487 echo $ac_n "(cached) $ac_c" 1>&6
16490 if test "$cross_compiling" = yes; then
16491 ol_cv_c_upper_lower=safe
16493 cat > conftest.$ac_ext <<EOF
16494 #line 16495 "configure"
16495 #include "confdefs.h"
16500 if ('C' == toupper('C'))
16506 if { (eval echo configure:16507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16508 ol_cv_c_upper_lower=no
16510 echo "configure: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16513 ol_cv_c_upper_lower=yes
16520 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16521 if test $ol_cv_c_upper_lower != no ; then
16522 cat >> confdefs.h <<\EOF
16523 #define C_UPPER_LOWER 1
16528 echo $ac_n "checking for working const""... $ac_c" 1>&6
16529 echo "configure:16530: checking for working const" >&5
16530 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16531 echo $ac_n "(cached) $ac_c" 1>&6
16533 cat > conftest.$ac_ext <<EOF
16534 #line 16535 "configure"
16535 #include "confdefs.h"
16539 /* Ultrix mips cc rejects this. */
16540 typedef int charset[2]; const charset x;
16541 /* SunOS 4.1.1 cc rejects this. */
16542 char const *const *ccp;
16544 /* NEC SVR4.0.2 mips cc rejects this. */
16545 struct point {int x, y;};
16546 static struct point const zero = {0,0};
16547 /* AIX XL C 1.02.0.0 rejects this.
16548 It does not let you subtract one const X* pointer from another in an arm
16549 of an if-expression whose if-part is not a constant expression */
16550 const char *g = "string";
16551 ccp = &g + (g ? g-g : 0);
16552 /* HPUX 7.0 cc rejects these. */
16555 ccp = (char const *const *) p;
16556 { /* SCO 3.2v4 cc rejects this. */
16558 char const *s = 0 ? (char *) 0 : (char const *) 0;
16562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16563 int x[] = {25, 17};
16564 const int *foo = &x[0];
16567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16568 typedef const int *iptr;
16572 { /* AIX XL C 1.02.0.0 rejects this saying
16573 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16574 struct s { int j; const int *ap[3]; };
16575 struct s *b; b->j = 5;
16577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16578 const int foo = 10;
16583 if { (eval echo configure:16584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16595 echo "$ac_t""$ac_cv_c_const" 1>&6
16596 if test $ac_cv_c_const = no; then
16597 cat >> confdefs.h <<\EOF
16603 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16604 echo "configure:16605: checking if compiler understands volatile" >&5
16605 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16606 echo $ac_n "(cached) $ac_c" 1>&6
16608 cat > conftest.$ac_ext <<EOF
16609 #line 16610 "configure"
16610 #include "confdefs.h"
16613 volatile int a; int * volatile b = x ? &y : &z;
16614 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16618 if { (eval echo configure:16619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16620 ol_cv_c_volatile=yes
16622 echo "configure: failed program was:" >&5
16623 cat conftest.$ac_ext >&5
16625 ol_cv_c_volatile=no
16630 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16631 if test $ol_cv_c_volatile = yes; then
16634 cat >> confdefs.h <<\EOF
16641 if test $cross_compiling = yes ; then
16642 cat >> confdefs.h <<\EOF
16643 #define CROSS_COMPILING 1
16647 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16648 echo "configure:16649: checking whether byte ordering is bigendian" >&5
16649 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16650 echo $ac_n "(cached) $ac_c" 1>&6
16652 ac_cv_c_bigendian=unknown
16653 # See if sys/param.h defines the BYTE_ORDER macro.
16654 cat > conftest.$ac_ext <<EOF
16655 #line 16656 "configure"
16656 #include "confdefs.h"
16657 #include <sys/types.h>
16658 #include <sys/param.h>
16661 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16662 bogus endian macros
16666 if { (eval echo configure:16667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16668 # It does; now see whether it defined to BIG_ENDIAN or not.
16669 cat > conftest.$ac_ext <<EOF
16670 #line 16671 "configure"
16671 #include "confdefs.h"
16672 #include <sys/types.h>
16673 #include <sys/param.h>
16676 #if BYTE_ORDER != BIG_ENDIAN
16681 if { (eval echo configure:16682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16683 ac_cv_c_bigendian=yes
16685 echo "configure: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16688 ac_cv_c_bigendian=no
16692 echo "configure: failed program was:" >&5
16693 cat conftest.$ac_ext >&5
16696 if test $ac_cv_c_bigendian = unknown; then
16697 if test "$cross_compiling" = yes; then
16698 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16700 cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16704 /* Are we little or big endian? From Harbison&Steele. */
16708 char c[sizeof (long)];
16711 exit (u.c[sizeof (long) - 1] == 1);
16714 if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16716 ac_cv_c_bigendian=no
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16721 ac_cv_c_bigendian=yes
16729 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16730 if test $ac_cv_c_bigendian = yes; then
16731 cat >> confdefs.h <<\EOF
16732 #define WORDS_BIGENDIAN 1
16739 echo $ac_n "checking size of short""... $ac_c" 1>&6
16740 echo "configure:16741: checking size of short" >&5
16741 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16742 echo $ac_n "(cached) $ac_c" 1>&6
16744 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16745 cat > conftest.$ac_ext <<EOF
16746 #line 16747 "configure"
16747 #include "confdefs.h"
16748 #include "confdefs.h"
16749 #include <sys/types.h>
16753 switch (0) case 0: case (sizeof (short) == $ac_size):;
16756 if { (eval echo configure:16757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16758 ac_cv_sizeof_short=$ac_size
16760 echo "configure: failed program was:" >&5
16761 cat conftest.$ac_ext >&5
16764 if test x$ac_cv_sizeof_short != x ; then break; fi
16769 if test x$ac_cv_sizeof_short = x ; then
16770 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16772 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16773 cat >> confdefs.h <<EOF
16774 #define SIZEOF_SHORT $ac_cv_sizeof_short
16778 echo $ac_n "checking size of int""... $ac_c" 1>&6
16779 echo "configure:16780: checking size of int" >&5
16780 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16781 echo $ac_n "(cached) $ac_c" 1>&6
16783 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16784 cat > conftest.$ac_ext <<EOF
16785 #line 16786 "configure"
16786 #include "confdefs.h"
16787 #include "confdefs.h"
16788 #include <sys/types.h>
16792 switch (0) case 0: case (sizeof (int) == $ac_size):;
16795 if { (eval echo configure:16796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16797 ac_cv_sizeof_int=$ac_size
16799 echo "configure: failed program was:" >&5
16800 cat conftest.$ac_ext >&5
16803 if test x$ac_cv_sizeof_int != x ; then break; fi
16808 if test x$ac_cv_sizeof_int = x ; then
16809 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16811 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16812 cat >> confdefs.h <<EOF
16813 #define SIZEOF_INT $ac_cv_sizeof_int
16817 echo $ac_n "checking size of long""... $ac_c" 1>&6
16818 echo "configure:16819: checking size of long" >&5
16819 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
16822 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16823 cat > conftest.$ac_ext <<EOF
16824 #line 16825 "configure"
16825 #include "confdefs.h"
16826 #include "confdefs.h"
16827 #include <sys/types.h>
16831 switch (0) case 0: case (sizeof (long) == $ac_size):;
16834 if { (eval echo configure:16835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16836 ac_cv_sizeof_long=$ac_size
16838 echo "configure: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16842 if test x$ac_cv_sizeof_long != x ; then break; fi
16847 if test x$ac_cv_sizeof_long = x ; then
16848 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16850 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16851 cat >> confdefs.h <<EOF
16852 #define SIZEOF_LONG $ac_cv_sizeof_long
16857 if test "$ac_cv_sizeof_int" -lt 4 ; then
16858 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16860 cat >> confdefs.h <<\EOF
16861 #define LBER_INT_T long
16865 cat >> confdefs.h <<\EOF
16866 #define LBER_INT_T int
16871 cat >> confdefs.h <<\EOF
16872 #define LBER_LEN_T long
16875 cat >> confdefs.h <<\EOF
16876 #define LBER_SOCKET_T int
16879 cat >> confdefs.h <<\EOF
16880 #define LBER_TAG_T long
16884 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16885 echo "configure:16886: checking for 8-bit clean memcmp" >&5
16886 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16889 if test "$cross_compiling" = yes; then
16890 ac_cv_func_memcmp_clean=no
16892 cat > conftest.$ac_ext <<EOF
16893 #line 16894 "configure"
16894 #include "confdefs.h"
16898 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16899 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16903 if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16905 ac_cv_func_memcmp_clean=yes
16907 echo "configure: failed program was:" >&5
16908 cat conftest.$ac_ext >&5
16910 ac_cv_func_memcmp_clean=no
16917 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16918 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16920 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16921 echo "configure:16922: checking for strftime" >&5
16922 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16923 echo $ac_n "(cached) $ac_c" 1>&6
16925 cat > conftest.$ac_ext <<EOF
16926 #line 16927 "configure"
16927 #include "confdefs.h"
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char strftime(); below. */
16930 #include <assert.h>
16931 /* Override any gcc2 internal prototype to avoid an error. */
16932 /* We use char because int might match the return type of a gcc2
16933 builtin and then its argument prototype would still apply. */
16939 /* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942 #if defined (__stub_strftime) || defined (__stub___strftime)
16950 if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16952 eval "ac_cv_func_strftime=yes"
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16957 eval "ac_cv_func_strftime=no"
16962 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16963 echo "$ac_t""yes" 1>&6
16964 cat >> confdefs.h <<\EOF
16965 #define HAVE_STRFTIME 1
16969 echo "$ac_t""no" 1>&6
16970 # strftime is in -lintl on SCO UNIX.
16971 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16972 echo "configure:16973: checking for strftime in -lintl" >&5
16973 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16974 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16975 echo $ac_n "(cached) $ac_c" 1>&6
16977 ac_save_LIBS="$LIBS"
16978 LIBS="-lintl $LIBS"
16979 cat > conftest.$ac_ext <<EOF
16980 #line 16981 "configure"
16981 #include "confdefs.h"
16982 /* Override any gcc2 internal prototype to avoid an error. */
16983 /* We use char because int might match the return type of a gcc2
16984 builtin and then its argument prototype would still apply. */
16991 if { (eval echo configure:16992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16993 eval "ac_cv_lib_$ac_lib_var=yes"
16995 echo "configure: failed program was:" >&5
16996 cat conftest.$ac_ext >&5
16998 eval "ac_cv_lib_$ac_lib_var=no"
17001 LIBS="$ac_save_LIBS"
17004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17005 echo "$ac_t""yes" 1>&6
17006 cat >> confdefs.h <<\EOF
17007 #define HAVE_STRFTIME 1
17010 LIBS="-lintl $LIBS"
17012 echo "$ac_t""no" 1>&6
17018 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
17019 echo "configure:17020: checking for inet_aton()" >&5
17020 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
17021 echo $ac_n "(cached) $ac_c" 1>&6
17023 cat > conftest.$ac_ext <<EOF
17024 #line 17025 "configure"
17025 #include "confdefs.h"
17027 #ifdef HAVE_SYS_TYPES_H
17028 # include <sys/types.h>
17030 #ifdef HAVE_SYS_SOCKET_H
17031 # include <sys/socket.h>
17032 # ifdef HAVE_SYS_SELECT_H
17033 # include <sys/select.h>
17035 # include <netinet/in.h>
17036 # ifdef HAVE_ARPA_INET_H
17037 # include <arpa/inet.h>
17043 int rc = inet_aton( "255.255.255.255", &in );
17046 if { (eval echo configure:17047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17048 ol_cv_func_inet_aton=yes
17050 echo "configure: failed program was:" >&5
17051 cat conftest.$ac_ext >&5
17053 ol_cv_func_inet_aton=no
17058 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
17059 if test $ol_cv_func_inet_aton != no; then
17060 cat >> confdefs.h <<\EOF
17061 #define HAVE_INET_ATON 1
17067 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
17068 echo "configure:17069: checking for _spawnlp" >&5
17069 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
17070 echo $ac_n "(cached) $ac_c" 1>&6
17072 cat > conftest.$ac_ext <<EOF
17073 #line 17074 "configure"
17074 #include "confdefs.h"
17075 /* System header to define __stub macros and hopefully few prototypes,
17076 which can conflict with char _spawnlp(); below. */
17077 #include <assert.h>
17078 /* Override any gcc2 internal prototype to avoid an error. */
17079 /* We use char because int might match the return type of a gcc2
17080 builtin and then its argument prototype would still apply. */
17086 /* The GNU C library defines this for functions which it implements
17087 to always fail with ENOSYS. Some functions are actually named
17088 something starting with __ and the normal name is an alias. */
17089 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
17097 if { (eval echo configure:17098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17099 eval "ac_cv_func__spawnlp=yes"
17101 echo "configure: failed program was:" >&5
17102 cat conftest.$ac_ext >&5
17104 eval "ac_cv_func__spawnlp=no"
17109 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
17110 echo "$ac_t""yes" 1>&6
17111 cat >> confdefs.h <<\EOF
17112 #define HAVE_SPAWNLP 1
17116 echo "$ac_t""no" 1>&6
17120 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
17121 echo "configure:17122: checking for _snprintf" >&5
17122 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
17123 echo $ac_n "(cached) $ac_c" 1>&6
17125 cat > conftest.$ac_ext <<EOF
17126 #line 17127 "configure"
17127 #include "confdefs.h"
17128 /* System header to define __stub macros and hopefully few prototypes,
17129 which can conflict with char _snprintf(); below. */
17130 #include <assert.h>
17131 /* Override any gcc2 internal prototype to avoid an error. */
17132 /* We use char because int might match the return type of a gcc2
17133 builtin and then its argument prototype would still apply. */
17139 /* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142 #if defined (__stub__snprintf) || defined (__stub____snprintf)
17150 if { (eval echo configure:17151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17152 eval "ac_cv_func__snprintf=yes"
17154 echo "configure: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17157 eval "ac_cv_func__snprintf=no"
17162 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
17163 echo "$ac_t""yes" 1>&6
17164 ac_cv_func_snprintf=yes
17165 cat >> confdefs.h <<\EOF
17166 #define snprintf _snprintf
17171 echo "$ac_t""no" 1>&6
17175 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
17176 echo "configure:17177: checking for _vsnprintf" >&5
17177 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
17178 echo $ac_n "(cached) $ac_c" 1>&6
17180 cat > conftest.$ac_ext <<EOF
17181 #line 17182 "configure"
17182 #include "confdefs.h"
17183 /* System header to define __stub macros and hopefully few prototypes,
17184 which can conflict with char _vsnprintf(); below. */
17185 #include <assert.h>
17186 /* Override any gcc2 internal prototype to avoid an error. */
17187 /* We use char because int might match the return type of a gcc2
17188 builtin and then its argument prototype would still apply. */
17194 /* The GNU C library defines this for functions which it implements
17195 to always fail with ENOSYS. Some functions are actually named
17196 something starting with __ and the normal name is an alias. */
17197 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
17205 if { (eval echo configure:17206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17207 eval "ac_cv_func__vsnprintf=yes"
17209 echo "configure: failed program was:" >&5
17210 cat conftest.$ac_ext >&5
17212 eval "ac_cv_func__vsnprintf=no"
17217 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
17218 echo "$ac_t""yes" 1>&6
17219 ac_cv_func_vsnprintf=yes
17220 cat >> confdefs.h <<\EOF
17221 #define vsnprintf _vsnprintf
17226 echo "$ac_t""no" 1>&6
17230 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17231 echo "configure:17232: checking for vprintf" >&5
17232 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
17233 echo $ac_n "(cached) $ac_c" 1>&6
17235 cat > conftest.$ac_ext <<EOF
17236 #line 17237 "configure"
17237 #include "confdefs.h"
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char vprintf(); below. */
17240 #include <assert.h>
17241 /* Override any gcc2 internal prototype to avoid an error. */
17242 /* We use char because int might match the return type of a gcc2
17243 builtin and then its argument prototype would still apply. */
17249 /* The GNU C library defines this for functions which it implements
17250 to always fail with ENOSYS. Some functions are actually named
17251 something starting with __ and the normal name is an alias. */
17252 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17260 if { (eval echo configure:17261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17262 eval "ac_cv_func_vprintf=yes"
17264 echo "configure: failed program was:" >&5
17265 cat conftest.$ac_ext >&5
17267 eval "ac_cv_func_vprintf=no"
17272 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17273 echo "$ac_t""yes" 1>&6
17274 cat >> confdefs.h <<\EOF
17275 #define HAVE_VPRINTF 1
17279 echo "$ac_t""no" 1>&6
17282 if test "$ac_cv_func_vprintf" != yes; then
17283 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17284 echo "configure:17285: checking for _doprnt" >&5
17285 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17286 echo $ac_n "(cached) $ac_c" 1>&6
17288 cat > conftest.$ac_ext <<EOF
17289 #line 17290 "configure"
17290 #include "confdefs.h"
17291 /* System header to define __stub macros and hopefully few prototypes,
17292 which can conflict with char _doprnt(); below. */
17293 #include <assert.h>
17294 /* Override any gcc2 internal prototype to avoid an error. */
17295 /* We use char because int might match the return type of a gcc2
17296 builtin and then its argument prototype would still apply. */
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17313 if { (eval echo configure:17314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17315 eval "ac_cv_func__doprnt=yes"
17317 echo "configure: failed program was:" >&5
17318 cat conftest.$ac_ext >&5
17320 eval "ac_cv_func__doprnt=no"
17325 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17326 echo "$ac_t""yes" 1>&6
17327 cat >> confdefs.h <<\EOF
17328 #define HAVE_DOPRNT 1
17332 echo "$ac_t""no" 1>&6
17338 if test $ac_cv_func_vprintf = yes ; then
17339 for ac_func in vsnprintf vsprintf
17341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17342 echo "configure:17343: checking for $ac_func" >&5
17343 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17344 echo $ac_n "(cached) $ac_c" 1>&6
17346 cat > conftest.$ac_ext <<EOF
17347 #line 17348 "configure"
17348 #include "confdefs.h"
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func(); below. */
17351 #include <assert.h>
17352 /* Override any gcc2 internal prototype to avoid an error. */
17353 /* We use char because int might match the return type of a gcc2
17354 builtin and then its argument prototype would still apply. */
17360 /* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17371 if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17373 eval "ac_cv_func_$ac_func=yes"
17375 echo "configure: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17378 eval "ac_cv_func_$ac_func=no"
17383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17384 echo "$ac_t""yes" 1>&6
17385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17386 cat >> confdefs.h <<EOF
17387 #define $ac_tr_func 1
17391 echo "$ac_t""no" 1>&6
17449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17450 echo "configure:17451: checking for $ac_func" >&5
17451 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17452 echo $ac_n "(cached) $ac_c" 1>&6
17454 cat > conftest.$ac_ext <<EOF
17455 #line 17456 "configure"
17456 #include "confdefs.h"
17457 /* System header to define __stub macros and hopefully few prototypes,
17458 which can conflict with char $ac_func(); below. */
17459 #include <assert.h>
17460 /* Override any gcc2 internal prototype to avoid an error. */
17461 /* We use char because int might match the return type of a gcc2
17462 builtin and then its argument prototype would still apply. */
17468 /* The GNU C library defines this for functions which it implements
17469 to always fail with ENOSYS. Some functions are actually named
17470 something starting with __ and the normal name is an alias. */
17471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17479 if { (eval echo configure:17480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17481 eval "ac_cv_func_$ac_func=yes"
17483 echo "configure: failed program was:" >&5
17484 cat conftest.$ac_ext >&5
17486 eval "ac_cv_func_$ac_func=no"
17491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17492 echo "$ac_t""yes" 1>&6
17493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17494 cat >> confdefs.h <<EOF
17495 #define $ac_tr_func 1
17499 echo "$ac_t""no" 1>&6
17504 for ac_func in getopt
17506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17507 echo "configure:17508: checking for $ac_func" >&5
17508 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17509 echo $ac_n "(cached) $ac_c" 1>&6
17511 cat > conftest.$ac_ext <<EOF
17512 #line 17513 "configure"
17513 #include "confdefs.h"
17514 /* System header to define __stub macros and hopefully few prototypes,
17515 which can conflict with char $ac_func(); below. */
17516 #include <assert.h>
17517 /* Override any gcc2 internal prototype to avoid an error. */
17518 /* We use char because int might match the return type of a gcc2
17519 builtin and then its argument prototype would still apply. */
17525 /* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
17528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17536 if { (eval echo configure:17537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17538 eval "ac_cv_func_$ac_func=yes"
17540 echo "configure: failed program was:" >&5
17541 cat conftest.$ac_ext >&5
17543 eval "ac_cv_func_$ac_func=no"
17548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17549 echo "$ac_t""yes" 1>&6
17550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17551 cat >> confdefs.h <<EOF
17552 #define $ac_tr_func 1
17556 echo "$ac_t""no" 1>&6
17557 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17563 if test "$ac_cv_func_getopt" != yes; then
17564 LIBSRCS="$LIBSRCS getopt.c"
17567 # Check Configuration
17568 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17569 echo "configure:17570: checking declaration of sys_errlist" >&5
17570 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17571 echo $ac_n "(cached) $ac_c" 1>&6
17574 cat > conftest.$ac_ext <<EOF
17575 #line 17576 "configure"
17576 #include "confdefs.h"
17579 #include <sys/types.h>
17582 #include <stdlib.h>
17585 char *c = (char *) *sys_errlist
17588 if { (eval echo configure:17589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17590 ol_cv_dcl_sys_errlist=yes
17591 ol_cv_have_sys_errlist=yes
17593 echo "configure: failed program was:" >&5
17594 cat conftest.$ac_ext >&5
17596 ol_cv_dcl_sys_errlist=no
17601 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17603 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17604 if test $ol_cv_dcl_sys_errlist = no ; then
17605 cat >> confdefs.h <<\EOF
17606 #define DECL_SYS_ERRLIST 1
17610 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17611 echo "configure:17612: checking existence of sys_errlist" >&5
17612 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17613 echo $ac_n "(cached) $ac_c" 1>&6
17616 cat > conftest.$ac_ext <<EOF
17617 #line 17618 "configure"
17618 #include "confdefs.h"
17621 char *c = (char *) *sys_errlist
17624 if { (eval echo configure:17625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17626 ol_cv_have_sys_errlist=yes
17628 echo "configure: failed program was:" >&5
17629 cat conftest.$ac_ext >&5
17631 ol_cv_have_sys_errlist=no
17636 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17638 if test $ol_cv_have_sys_errlist = yes ; then
17639 cat >> confdefs.h <<\EOF
17640 #define HAVE_SYS_ERRLIST 1
17647 if test "$ol_enable_debug" != no ; then
17648 cat >> confdefs.h <<\EOF
17649 #define LDAP_DEBUG 1
17653 if test "$ol_enable_syslog" = yes ; then
17654 cat >> confdefs.h <<\EOF
17655 #define LDAP_SYSLOG 1
17659 if test "$ol_enable_cache" = no ; then
17660 cat >> confdefs.h <<\EOF
17661 #define LDAP_NOCACHE 1
17665 if test "$ol_link_kbind" != no ; then
17666 cat >> confdefs.h <<\EOF
17667 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17671 if test "$ol_enable_proctitle" != no ; then
17672 cat >> confdefs.h <<\EOF
17673 #define LDAP_PROCTITLE 1
17677 if test "$ol_enable_referrals" != no ; then
17678 cat >> confdefs.h <<\EOF
17679 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17683 if test "$ol_enable_local" != no; then
17684 cat >> confdefs.h <<\EOF
17685 #define LDAP_PF_LOCAL 1
17689 if test "$ol_link_ipv6" != no; then
17690 cat >> confdefs.h <<\EOF
17691 #define LDAP_PF_INET6 1
17695 if test "$ol_enable_cleartext" != no ; then
17696 cat >> confdefs.h <<\EOF
17697 #define SLAPD_CLEARTEXT 1
17701 if test "$ol_enable_crypt" != no ; then
17702 cat >> confdefs.h <<\EOF
17703 #define SLAPD_CRYPT 1
17707 if test "$ol_link_kpasswd" != no ; then
17708 cat >> confdefs.h <<\EOF
17709 #define SLAPD_KPASSWD 1
17713 if test "$ol_link_spasswd" != no ; then
17714 cat >> confdefs.h <<\EOF
17715 #define SLAPD_SPASSWD 1
17719 if test "$ol_enable_phonetic" != no ; then
17720 cat >> confdefs.h <<\EOF
17721 #define SLAPD_PHONETIC 1
17725 if test "$ol_enable_rlookups" != no ; then
17726 cat >> confdefs.h <<\EOF
17727 #define SLAPD_RLOOKUPS 1
17731 if test "$ol_enable_aci" != no ; then
17732 cat >> confdefs.h <<\EOF
17733 #define SLAPD_ACI_ENABLED 1
17738 if test "$ol_link_modules" != no ; then
17739 cat >> confdefs.h <<\EOF
17740 #define SLAPD_MODULES 1
17744 SLAPD_MODULES_LDFLAGS="-dlopen self"
17747 if test "$ol_enable_bdb" != no ; then
17748 cat >> confdefs.h <<\EOF
17749 #define SLAPD_BDB 1
17754 if test "$ol_with_bdb_module" != static ; then
17755 cat >> confdefs.h <<\EOF
17756 #define SLAPD_BDB_DYNAMIC 1
17760 BUILD_BDB_DYNAMIC=shared
17761 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17765 if test "$ol_link_dnssrv" != no ; then
17766 cat >> confdefs.h <<\EOF
17767 #define SLAPD_DNSSRV 1
17772 if test "$ol_with_dnssrv_module" != static ; then
17773 cat >> confdefs.h <<\EOF
17774 #define SLAPD_DNSSRV_DYNAMIC 1
17778 BUILD_DNSSRV_DYNAMIC=shared
17779 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17783 if test "$ol_enable_ldap" != no ; then
17784 cat >> confdefs.h <<\EOF
17785 #define SLAPD_LDAP 1
17790 if test "$ol_with_ldap_module" != static ; then
17791 cat >> confdefs.h <<\EOF
17792 #define SLAPD_LDAP_DYNAMIC 1
17796 BUILD_LDAP_DYNAMIC=shared
17797 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17801 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17802 cat >> confdefs.h <<\EOF
17803 #define SLAPD_LDBM 1
17809 if test "$ol_with_ldbm_module" != static ; then
17810 cat >> confdefs.h <<\EOF
17811 #define SLAPD_LDBM_DYNAMIC 1
17815 BUILD_LDBM_DYNAMIC=shared
17816 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17820 if test "$ol_enable_meta" != no ; then
17821 if test "$ol_enable_ldap" = no ; then
17822 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
17824 if test "$ol_enable_rewrite" = no ; then
17825 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
17827 cat >> confdefs.h <<\EOF
17828 #define SLAPD_META 1
17833 if test "$ol_with_meta_module" != static ; then
17834 cat >> confdefs.h <<\EOF
17835 #define SLAPD_META_DYNAMIC 1
17839 BUILD_META_DYNAMIC=shared
17840 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
17844 if test "$ol_enable_monitor" != no ; then
17845 cat >> confdefs.h <<\EOF
17846 #define SLAPD_MONITOR 1
17851 if test "$ol_with_monitor_module" != static ; then
17852 cat >> confdefs.h <<\EOF
17853 #define SLAPD_MONITOR_DYNAMIC 1
17857 BUILD_MONITOR_DYNAMIC=shared
17858 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
17862 if test "$ol_enable_passwd" != no ; then
17863 cat >> confdefs.h <<\EOF
17864 #define SLAPD_PASSWD 1
17869 if test "$ol_with_passwd_module" != static ; then
17870 cat >> confdefs.h <<\EOF
17871 #define SLAPD_PASSWD_DYNAMIC 1
17875 BUILD_PASSWD_DYNAMIC=shared
17876 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17880 if test "$ol_link_perl" != no ; then
17881 cat >> confdefs.h <<\EOF
17882 #define SLAPD_PERL 1
17887 if test "$ol_with_perl_module" != static ; then
17888 cat >> confdefs.h <<\EOF
17889 #define SLAPD_PERL_DYNAMIC 1
17893 BUILD_PERL_DYNAMIC=shared
17894 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
17898 if test "$ol_enable_shell" != no ; then
17899 cat >> confdefs.h <<\EOF
17900 #define SLAPD_SHELL 1
17905 if test "$ol_with_shell_module" != static ; then
17906 cat >> confdefs.h <<\EOF
17907 #define SLAPD_SHELL_DYNAMIC 1
17911 BUILD_SHELL_DYNAMIC=shared
17912 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17916 if test "$ol_enable_tcl" != no ; then
17917 cat >> confdefs.h <<\EOF
17918 #define SLAPD_TCL 1
17923 if test "$ol_with_tcl_module" != static; then
17924 cat >> confdefs.h <<\EOF
17925 #define SLAPD_TCL_DYNAMIC 1
17929 BUILD_TCL_DYNAMIC=shared
17930 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
17934 if test "$ol_link_sql" != no ; then
17935 cat >> confdefs.h <<\EOF
17936 #define SLAPD_SQL 1
17941 if test "$ol_with_sql_module" != static; then
17942 cat >> confdefs.h <<\EOF
17943 #define SLAPD_SQL_DYNAMIC 1
17947 BUILD_SQL_DYNAMIC=shared
17948 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17952 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17953 $BUILD_SLAPD = yes ; then
17957 if test "$ol_enable_rewrite" != no ; then
17958 cat >> confdefs.h <<\EOF
17959 #define ENABLE_REWRITE 1
17963 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
17967 if test "$LINK_BINS_DYNAMIC" = yes; then
17969 LT_LIB_LINKAGE=shared
17972 LT_LIB_LINKAGE=static
17975 if test "$ac_cv_mingw32" = yes ; then
18054 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18057 # Let make expand exec_prefix.
18058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18060 # Any assignment to VPATH causes Sun make to only execute
18061 # the first set of double-colon rules, so remove it if not needed.
18062 # If there is a colon in the path, we need to keep it.
18063 if test "x$srcdir" = x.; then
18064 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18067 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18069 DEFS=-DHAVE_CONFIG_H
18071 # Without the "./", some shells look in PATH for config.status.
18072 : ${CONFIG_STATUS=./config.status}
18074 echo creating $CONFIG_STATUS
18075 rm -f $CONFIG_STATUS
18076 cat > $CONFIG_STATUS <<EOF
18078 # Generated automatically by configure.
18079 # Run this file to recreate the current configuration.
18080 # This directory was configured as follows,
18081 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18083 # $0 $ac_configure_args
18085 # Compiler output produced by configure, useful for debugging
18086 # configure, is in ./config.log if it exists.
18088 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18091 case "\$ac_option" in
18092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18093 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18094 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18095 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18096 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
18098 -help | --help | --hel | --he | --h)
18099 echo "\$ac_cs_usage"; exit 0 ;;
18100 *) echo "\$ac_cs_usage"; exit 1 ;;
18104 ac_given_srcdir=$srcdir
18105 ac_given_INSTALL="$INSTALL"
18107 trap 'rm -fr `echo "\
18108 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18109 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18110 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18111 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18112 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18113 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18114 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18115 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18116 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18117 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18118 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18119 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18120 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18121 include/Makefile:build/top.mk:include/Makefile.in \
18122 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18123 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18124 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18125 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18126 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18127 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18128 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18129 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18130 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18131 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18132 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18133 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18134 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18135 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18136 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18137 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18138 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18139 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18140 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18141 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18142 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18143 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18144 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18145 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18146 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18147 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18148 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18149 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18150 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18152 cat >> $CONFIG_STATUS <<EOF
18154 # Protect against being on the right side of a sed subst in config.status.
18155 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18156 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18160 s%@CFLAGS@%$CFLAGS%g
18161 s%@CPPFLAGS@%$CPPFLAGS%g
18162 s%@CXXFLAGS@%$CXXFLAGS%g
18163 s%@FFLAGS@%$FFLAGS%g
18165 s%@LDFLAGS@%$LDFLAGS%g
18167 s%@exec_prefix@%$exec_prefix%g
18168 s%@prefix@%$prefix%g
18169 s%@program_transform_name@%$program_transform_name%g
18170 s%@bindir@%$bindir%g
18171 s%@sbindir@%$sbindir%g
18172 s%@libexecdir@%$libexecdir%g
18173 s%@datadir@%$datadir%g
18174 s%@sysconfdir@%$sysconfdir%g
18175 s%@sharedstatedir@%$sharedstatedir%g
18176 s%@localstatedir@%$localstatedir%g
18177 s%@libdir@%$libdir%g
18178 s%@includedir@%$includedir%g
18179 s%@oldincludedir@%$oldincludedir%g
18180 s%@infodir@%$infodir%g
18181 s%@mandir@%$mandir%g
18183 s%@host_alias@%$host_alias%g
18184 s%@host_cpu@%$host_cpu%g
18185 s%@host_vendor@%$host_vendor%g
18186 s%@host_os@%$host_os%g
18187 s%@target@%$target%g
18188 s%@target_alias@%$target_alias%g
18189 s%@target_cpu@%$target_cpu%g
18190 s%@target_vendor@%$target_vendor%g
18191 s%@target_os@%$target_os%g
18193 s%@build_alias@%$build_alias%g
18194 s%@build_cpu@%$build_cpu%g
18195 s%@build_vendor@%$build_vendor%g
18196 s%@build_os@%$build_os%g
18197 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18198 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18199 s%@INSTALL_DATA@%$INSTALL_DATA%g
18200 s%@PACKAGE@%$PACKAGE%g
18201 s%@VERSION@%$VERSION%g
18202 s%@ACLOCAL@%$ACLOCAL%g
18203 s%@AUTOCONF@%$AUTOCONF%g
18204 s%@AUTOMAKE@%$AUTOMAKE%g
18205 s%@AUTOHEADER@%$AUTOHEADER%g
18206 s%@MAKEINFO@%$MAKEINFO%g
18207 s%@install_sh@%$install_sh%g
18210 s%@AMTARFLAGS@%$AMTARFLAGS%g
18211 s%@SET_MAKE@%$SET_MAKE%g
18212 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
18213 s%@top_builddir@%$top_builddir%g
18214 s%@ldap_subdir@%$ldap_subdir%g
18217 s%@RANLIB@%$RANLIB%g
18219 s%@DLLTOOL@%$DLLTOOL%g
18221 s%@OBJDUMP@%$OBJDUMP%g
18222 s%@LIBTOOL@%$LIBTOOL%g
18224 s%@SENDMAIL@%$SENDMAIL%g
18225 s%@EDITOR@%$EDITOR%g
18226 s%@FINGER@%$FINGER%g
18227 s%@PERLBIN@%$PERLBIN%g
18229 s%@EXEEXT@%$EXEEXT%g
18230 s%@OBJEXT@%$OBJEXT%g
18231 s%@OL_MKDEP@%$OL_MKDEP%g
18232 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
18233 s%@LIBOBJS@%$LIBOBJS%g
18234 s%@LIBSRCS@%$LIBSRCS%g
18236 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
18237 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
18238 s%@DYN_EXT@%$DYN_EXT%g
18239 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
18240 s%@BUILD_BDB@%$BUILD_BDB%g
18241 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
18242 s%@BUILD_LDAP@%$BUILD_LDAP%g
18243 s%@BUILD_LDBM@%$BUILD_LDBM%g
18244 s%@BUILD_META@%$BUILD_META%g
18245 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18246 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18247 s%@BUILD_PERL@%$BUILD_PERL%g
18248 s%@BUILD_SHELL@%$BUILD_SHELL%g
18249 s%@BUILD_SQL@%$BUILD_SQL%g
18250 s%@BUILD_TCL@%$BUILD_TCL%g
18251 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18252 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18253 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18254 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18255 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18256 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18257 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18258 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18259 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18260 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18261 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18262 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18263 s%@LDBM_LIB@%$LDBM_LIB%g
18264 s%@LDAP_LIBS@%$LDAP_LIBS%g
18265 s%@LDIF_LIBS@%$LDIF_LIBS%g
18266 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18267 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18268 s%@LDBM_LIBS@%$LDBM_LIBS%g
18269 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18270 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18271 s%@WRAP_LIBS@%$WRAP_LIBS%g
18272 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18273 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
18274 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18275 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18276 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18277 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18278 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18279 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18280 s%@KRB4_LIBS@%$KRB4_LIBS%g
18281 s%@KRB5_LIBS@%$KRB5_LIBS%g
18282 s%@READLINE_LIBS@%$READLINE_LIBS%g
18283 s%@SASL_LIBS@%$SASL_LIBS%g
18284 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18285 s%@TLS_LIBS@%$TLS_LIBS%g
18286 s%@MODULES_LIBS@%$MODULES_LIBS%g
18287 s%@AUTH_LIBS@%$AUTH_LIBS%g
18288 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18289 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18290 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18291 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18296 cat >> $CONFIG_STATUS <<\EOF
18298 # Split the substitutions into bite-sized pieces for seds with
18299 # small command number limits, like on Digital OSF/1 and HP-UX.
18300 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18301 ac_file=1 # Number of current file.
18302 ac_beg=1 # First line for current file.
18303 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18306 while $ac_more_lines; do
18307 if test $ac_beg -gt 1; then
18308 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18310 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18312 if test ! -s conftest.s$ac_file; then
18313 ac_more_lines=false
18314 rm -f conftest.s$ac_file
18316 if test -z "$ac_sed_cmds"; then
18317 ac_sed_cmds="sed -f conftest.s$ac_file"
18319 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18321 ac_file=`expr $ac_file + 1`
18323 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18326 if test -z "$ac_sed_cmds"; then
18331 cat >> $CONFIG_STATUS <<EOF
18333 CONFIG_FILES=\${CONFIG_FILES-"\
18334 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18335 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18336 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18337 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18338 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18339 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18340 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18341 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18342 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18343 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18344 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18345 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18346 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18347 include/Makefile:build/top.mk:include/Makefile.in \
18348 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18349 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18350 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18351 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18352 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18353 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18354 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18355 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18356 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18357 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18358 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18359 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18360 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18361 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18362 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18363 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18364 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18365 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18366 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18367 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18368 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18369 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18370 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18371 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18372 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18373 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18374 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18375 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18378 cat >> $CONFIG_STATUS <<\EOF
18379 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18382 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18383 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18384 *) ac_file_in="${ac_file}.in" ;;
18387 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18389 # Remove last slash and all that follows it. Not all systems have dirname.
18390 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18391 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18392 # The file is in a subdirectory.
18393 test ! -d "$ac_dir" && mkdir "$ac_dir"
18394 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18395 # A "../" for each directory in $ac_dir_suffix.
18396 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18398 ac_dir_suffix= ac_dots=
18401 case "$ac_given_srcdir" in
18403 if test -z "$ac_dots"; then top_srcdir=.
18404 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18405 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18406 *) # Relative path.
18407 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18408 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18411 case "$ac_given_INSTALL" in
18412 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18413 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18416 echo creating "$ac_file"
18418 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18420 *[Mm]akefile*) ac_comsub="1i\\
18421 # $configure_input" ;;
18425 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18427 s%@configure_input@%$configure_input%g
18428 s%@srcdir@%$srcdir%g
18429 s%@top_srcdir@%$top_srcdir%g
18430 s%@INSTALL@%$INSTALL%g
18431 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18435 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18436 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18438 # ac_d sets the value in "#define NAME VALUE" lines.
18439 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18440 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18443 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18444 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18445 ac_uB='\([ ]\)%\1#\2define\3'
18448 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18449 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18450 ac_eB='$%\1#\2define\3'
18454 if test "${CONFIG_HEADERS+set}" != set; then
18456 cat >> $CONFIG_STATUS <<EOF
18457 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18459 cat >> $CONFIG_STATUS <<\EOF
18461 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18462 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18464 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18465 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18466 *) ac_file_in="${ac_file}.in" ;;
18469 echo creating $ac_file
18471 rm -f conftest.frag conftest.in conftest.out
18472 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18473 cat $ac_file_inputs > conftest.in
18477 # Transform confdefs.h into a sed script conftest.vals that substitutes
18478 # the proper values into config.h.in to produce config.h. And first:
18479 # Protect against being on the right side of a sed subst in config.status.
18480 # Protect against being in an unquoted here document in config.status.
18481 rm -f conftest.vals
18482 cat > conftest.hdr <<\EOF
18485 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18489 sed -n -f conftest.hdr confdefs.h > conftest.vals
18492 # This sed command replaces #undef with comments. This is necessary, for
18493 # example, in the case of _POSIX_SOURCE, which is predefined and required
18494 # on some systems where configure will not decide to define it.
18495 cat >> conftest.vals <<\EOF
18496 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18499 # Break up conftest.vals because some shells have a limit on
18500 # the size of here documents, and old seds have small limits too.
18502 rm -f conftest.tail
18505 ac_lines=`grep -c . conftest.vals`
18506 # grep -c gives empty output for an empty file on some AIX systems.
18507 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18508 # Write a limited-size here document to conftest.frag.
18509 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18510 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18512 sed -f conftest.frag conftest.in > conftest.out
18514 mv conftest.out conftest.in
18515 ' >> $CONFIG_STATUS
18516 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18517 rm -f conftest.vals
18518 mv conftest.tail conftest.vals
18520 rm -f conftest.vals
18522 cat >> $CONFIG_STATUS <<\EOF
18523 rm -f conftest.frag conftest.h
18524 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18525 cat conftest.in >> conftest.h
18527 if cmp -s $ac_file conftest.h 2>/dev/null; then
18528 echo "$ac_file is unchanged"
18531 # Remove last slash and all that follows it. Not all systems have dirname.
18532 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18533 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18534 # The file is in a subdirectory.
18535 test ! -d "$ac_dir" && mkdir "$ac_dir"
18538 mv conftest.h $ac_file
18543 cat >> $CONFIG_STATUS <<EOF
18546 cat >> $CONFIG_STATUS <<\EOF
18549 echo Please \"make depend\" to build dependencies
18553 chmod +x $CONFIG_STATUS
18554 rm -fr confdefs* $ac_clean_files
18555 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1