3 # from OpenLDAP: pkg/ldap/configure.in,v 1.353 2001/05/03 03:53:37 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging [yes]"
32 --enable-syslog enable syslog support [auto]"
34 --enable-proctitle enable proctitle support [yes]"
36 --enable-cache enable caching (experimental) [no]"
38 --enable-referrals enable V2 Referrals (experimental) [no]"
40 --enable-kbind enable V2 Kerberos IV bind (deprecated) [no]"
42 --enable-ipv6 enable IPv6 support [auto]"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
46 --enable-x-compile enable cross compiling [no]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch URL support [auto]"
52 --with-kerberos with support [auto]"
54 --with-readline with readline support [auto]"
56 --with-threads with threads [auto]"
58 --with-tls with TLS/SSL support [auto]"
60 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rlookups enable reverse lookups [no]"
86 --enable-slp enable SLPv2 support [no]"
88 --enable-wrappers enable tcp wrapper support [no]"
90 --enable-bdb enable Berkeley DB backend [no]"
92 --with-bdb-module module type [static]"
94 --enable-dnssrv enable dnssrv backend [no]"
96 --with-dnssrv-module module type [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type [static]"
102 --enable-ldbm enable ldbm backend [yes]"
104 --with-ldbm-api with LDBM API [auto]"
106 --with-ldbm-module module type [static]"
108 --with-ldbm-type use LDBM type [auto]"
110 --enable-passwd enable passwd backend [no]"
112 --with-passwd-module module type [static]"
114 --enable-perl enable perl backend [no]"
116 --with-perl-module module type [static]"
118 --enable-shell enable shell backend [no]"
120 --with-shell-module module type [static]"
122 --enable-sql enable sql backend [no]"
124 --with-sql-module module type [static]"
126 --enable-tcl enable tcl backend [no]"
128 --with-tcl-module module type [static]"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd [auto]"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13.1"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version.sh
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 # set unset (borrowed from autoconf 2.49c)
649 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
655 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
658 for ac_dir in build $srcdir/build; do
659 if test -f $ac_dir/install-sh; then
661 ac_install_sh="$ac_aux_dir/install-sh -c"
663 elif test -f $ac_dir/install.sh; then
665 ac_install_sh="$ac_aux_dir/install.sh -c"
667 elif test -f $ac_dir/shtool; then
669 ac_install_sh="$ac_aux_dir/shtool install -c"
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
676 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
677 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
678 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
680 eval `$ac_aux_dir/version.sh`
681 if test -z "$OL_STRING"; then
682 { echo "configure: error: could not determine version" 1>&2; exit 1; }
685 echo "Configuring $OL_STRING ..."
688 echo $ac_n "checking host system type""... $ac_c" 1>&6
689 echo "configure:690: checking host system type" >&5
690 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
692 # Make sure we can run config.sub.
693 if $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 ac_cv_host_alias=$host
698 case "$ac_cv_host_alias" in
702 if ac_cv_host_alias=`$ac_config_guess`; then :
703 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705 *) ac_cv_host_alias=$nonopt ;;
709 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
710 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo $ac_n "(cached) $ac_c" 1>&6
717 echo "$ac_t""$ac_cv_host" 1>&6
720 host_alias=$ac_cv_host_alias
721 host_cpu=$ac_cv_host_cpu
722 host_vendor=$ac_cv_host_vendor
723 host_os=$ac_cv_host_os
729 echo $ac_n "checking target system type""... $ac_c" 1>&6
730 echo "configure:731: checking target system type" >&5
731 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4 >/dev/null 2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 ac_cv_target_alias=$target
739 case "$ac_cv_target_alias" in
743 ac_cv_target_alias=$host_alias ;;
745 *) ac_cv_target_alias=$nonopt ;;
749 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
750 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo $ac_n "(cached) $ac_c" 1>&6
757 echo "$ac_t""$ac_cv_target" 1>&6
760 target_alias=$ac_cv_target_alias
761 target_cpu=$ac_cv_target_cpu
762 target_vendor=$ac_cv_target_vendor
763 target_os=$ac_cv_target_os
769 echo $ac_n "checking build system type""... $ac_c" 1>&6
770 echo "configure:771: checking build system type" >&5
771 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
773 # Make sure we can run config.sub.
774 if $ac_config_sub sun4 >/dev/null 2>&1; then :
775 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
778 ac_cv_build_alias=$build
779 case "$ac_cv_build_alias" in
783 ac_cv_build_alias=$host_alias ;;
785 *) ac_cv_build_alias=$nonopt ;;
789 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
790 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
791 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
792 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
794 echo $ac_n "(cached) $ac_c" 1>&6
797 echo "$ac_t""$ac_cv_build" 1>&6
800 build_alias=$ac_cv_build_alias
801 build_cpu=$ac_cv_build_cpu
802 build_vendor=$ac_cv_build_vendor
803 build_os=$ac_cv_build_os
809 # Do some error checking and defaulting for the host and target type.
811 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
814 # 1. You are not allowed to specify --host, --target, and nonopt at the
816 # 2. Host defaults to nonopt.
817 # 3. If nonopt is not specified, then host defaults to the current host,
818 # as determined by config.guess.
819 # 4. Target and build default to nonopt.
820 # 5. If nonopt is not specified, then target and build default to host.
822 # The aliases save the names the user supplied, while $host etc.
823 # will get canonicalized.
824 case $host---$target---$nonopt in
825 NONE---*---* | *---NONE---* | *---*---NONE) ;;
826 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
829 test "$host_alias" != "$target_alias" &&
830 test "$program_prefix$program_suffix$program_transform_name" = \
832 program_prefix=${target_alias}-
835 # Find a good install program. We prefer a C program (faster),
836 # so one script is as good as another. But avoid the broken or
837 # incompatible versions:
838 # SysV /etc/install, /usr/sbin/install
839 # SunOS /usr/etc/install
842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
845 # ./install, which can be erroneously created by make from ./install.sh.
846 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
847 echo "configure:848: checking for a BSD compatible install" >&5
848 if test -z "$INSTALL"; then
849 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
853 for ac_dir in $PATH; do
854 # Account for people who put trailing slashes in PATH elements.
856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858 # OSF1 and SCO ODT 3.0 have their own names for install.
859 # Don't use installbsd from OSF since it installs stuff as root
861 for ac_prog in ginstall scoinst install; do
862 if test -f $ac_dir/$ac_prog; then
863 if test $ac_prog = install &&
864 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # AIX install. It has an incompatible calling convention.
867 elif test $ac_prog = install &&
868 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
869 # program-specific install script used by HP pwplus--don't use.
872 ac_cv_path_install="$ac_dir/$ac_prog -c"
883 if test "${ac_cv_path_install+set}" = set; then
884 INSTALL="$ac_cv_path_install"
886 # As a last resort, use the slow shell script. We don't cache a
887 # path for INSTALL within a source directory, because that will
888 # break other packages using the cache if that directory is
889 # removed, or if the path is relative.
890 INSTALL="$ac_install_sh"
893 echo "$ac_t""$INSTALL" 1>&6
895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
896 # It thinks the first close brace ends the variable substitution.
897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
903 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
904 echo "configure:905: checking whether build environment is sane" >&5
907 echo timestamp > conftestfile
908 # Do `set' in a subshell so we don't clobber the current shell's
909 # arguments. Must try -L first in case configure is actually a
910 # symlink; some systems play weird games with the mod time of symlinks
911 # (eg FreeBSD returns the mod time of the symlink's containing
914 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
915 if test "$*" = "X"; then
917 set X `ls -t $srcdir/configure conftestfile`
919 if test "$*" != "X $srcdir/configure conftestfile" \
920 && test "$*" != "X conftestfile $srcdir/configure"; then
922 # If neither matched, then we have a broken ls. This can happen
923 # if, for instance, CONFIG_SHELL is bash and it inherits a
924 # broken ls alias from the environment. This has actually
925 # happened. Such a system could not be considered "sane".
926 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
927 alias in your environment" 1>&2; exit 1; }
930 test "$2" = conftestfile
936 { echo "configure: error: newly created file is older than distributed files!
937 Check your system clock" 1>&2; exit 1; }
940 echo "$ac_t""yes" 1>&6
941 if test "$program_transform_name" = s,x,x,; then
942 program_transform_name=
944 # Double any \ or $. echo might interpret backslashes.
945 cat <<\EOF_SED > conftestsed
946 s,\\,\\\\,g; s,\$,$$,g
948 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
951 test "$program_prefix" != NONE &&
952 program_transform_name="s,^,${program_prefix},;$program_transform_name"
953 # Use a double $ so make ignores it.
954 test "$program_suffix" != NONE &&
955 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
957 # sed with no file args requires a program.
958 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
960 for ac_prog in mawk gawk nawk awk
962 # Extract the first word of "$ac_prog", so it can be a program name with args.
963 set dummy $ac_prog; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$AWK"; then
970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_AWK="$ac_prog"
984 AWK="$ac_cv_prog_AWK"
985 if test -n "$AWK"; then
986 echo "$ac_t""$AWK" 1>&6
988 echo "$ac_t""no" 1>&6
991 test -n "$AWK" && break
994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${MAKE-make} sets \${MAKE}" >&5
996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftestmake <<\EOF
1002 @echo 'ac_maketemp="${MAKE}"'
1004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1005 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1006 if test -n "$ac_maketemp"; then
1007 eval ac_cv_prog_make_${ac_make}_set=yes
1009 eval ac_cv_prog_make_${ac_make}_set=no
1013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1014 echo "$ac_t""yes" 1>&6
1017 echo "$ac_t""no" 1>&6
1018 SET_MAKE="MAKE=${MAKE-make}"
1027 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1028 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1033 missing_dir=`cd $ac_aux_dir && pwd`
1034 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working aclocal" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1041 echo "$ac_t""found" 1>&6
1043 ACLOCAL="$missing_dir/missing aclocal"
1044 echo "$ac_t""missing" 1>&6
1047 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1048 echo "configure:1049: checking for working autoconf" >&5
1049 # Run test in a subshell; some versions of sh will print an error if
1050 # an executable is not found, even if stderr is redirected.
1051 # Redirect stdin to placate older versions of autoconf. Sigh.
1052 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1054 echo "$ac_t""found" 1>&6
1056 AUTOCONF="$missing_dir/missing autoconf"
1057 echo "$ac_t""missing" 1>&6
1060 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1061 echo "configure:1062: checking for working automake" >&5
1062 # Run test in a subshell; some versions of sh will print an error if
1063 # an executable is not found, even if stderr is redirected.
1064 # Redirect stdin to placate older versions of autoconf. Sigh.
1065 if (automake --version) < /dev/null > /dev/null 2>&1; then
1067 echo "$ac_t""found" 1>&6
1069 AUTOMAKE="$missing_dir/missing automake"
1070 echo "$ac_t""missing" 1>&6
1073 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1074 echo "configure:1075: checking for working autoheader" >&5
1075 # Run test in a subshell; some versions of sh will print an error if
1076 # an executable is not found, even if stderr is redirected.
1077 # Redirect stdin to placate older versions of autoconf. Sigh.
1078 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1079 AUTOHEADER=autoheader
1080 echo "$ac_t""found" 1>&6
1082 AUTOHEADER="$missing_dir/missing autoheader"
1083 echo "$ac_t""missing" 1>&6
1086 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1087 echo "configure:1088: checking for working makeinfo" >&5
1088 # Run test in a subshell; some versions of sh will print an error if
1089 # an executable is not found, even if stderr is redirected.
1090 # Redirect stdin to placate older versions of autoconf. Sigh.
1091 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1093 echo "$ac_t""found" 1>&6
1095 MAKEINFO="$missing_dir/missing makeinfo"
1096 echo "$ac_t""missing" 1>&6
1099 install_sh="$missing_dir/install-sh"
1100 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1102 for ac_prog in gnutar gtar tar
1104 # Extract the first word of "$ac_prog", so it can be a program name with args.
1105 set dummy $ac_prog; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$AMTAR"; then
1112 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 ac_cv_prog_AMTAR="$ac_prog"
1126 AMTAR="$ac_cv_prog_AMTAR"
1127 if test -n "$AMTAR"; then
1128 echo "$ac_t""$AMTAR" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 test -n "$AMTAR" && break
1138 if test -n "$AMTAR"; then
1139 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION $OL_API_INC
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1165 cat >> confdefs.h <<EOF
1166 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1170 OPENLDAP_LIBVERSION=$OL_API_LIB
1174 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1175 echo "configure:1176: checking configure arguments" >&5
1180 ldap_subdir="/openldap"
1182 # Check whether --with-subdir or --without-subdir was given.
1183 if test "${with_subdir+set}" = set; then
1184 withval="$with_subdir"
1191 ldap_subdir="$withval"
1194 ldap_subdir="/$withval"
1201 # OpenLDAP --enable-debug
1202 # Check whether --enable-debug or --disable-debug was given.
1203 if test "${enable_debug+set}" = set; then
1204 enableval="$enable_debug"
1207 for ol_val in auto yes no ; do
1208 if test "$enableval" = "$ol_val" ; then
1212 if test "$ol_arg" = "invalid" ; then
1213 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1215 ol_enable_debug="$ol_arg"
1218 ol_enable_debug="yes"
1220 # end --enable-debug
1221 # OpenLDAP --enable-syslog
1222 # Check whether --enable-syslog or --disable-syslog was given.
1223 if test "${enable_syslog+set}" = set; then
1224 enableval="$enable_syslog"
1227 for ol_val in auto yes no ; do
1228 if test "$enableval" = "$ol_val" ; then
1232 if test "$ol_arg" = "invalid" ; then
1233 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1235 ol_enable_syslog="$ol_arg"
1238 ol_enable_syslog="auto"
1240 # end --enable-syslog
1241 # OpenLDAP --enable-proctitle
1242 # Check whether --enable-proctitle or --disable-proctitle was given.
1243 if test "${enable_proctitle+set}" = set; then
1244 enableval="$enable_proctitle"
1247 for ol_val in auto yes no ; do
1248 if test "$enableval" = "$ol_val" ; then
1252 if test "$ol_arg" = "invalid" ; then
1253 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1255 ol_enable_proctitle="$ol_arg"
1258 ol_enable_proctitle="yes"
1260 # end --enable-proctitle
1261 # OpenLDAP --enable-cache
1262 # Check whether --enable-cache or --disable-cache was given.
1263 if test "${enable_cache+set}" = set; then
1264 enableval="$enable_cache"
1267 for ol_val in auto yes no ; do
1268 if test "$enableval" = "$ol_val" ; then
1272 if test "$ol_arg" = "invalid" ; then
1273 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1275 ol_enable_cache="$ol_arg"
1278 ol_enable_cache="no"
1280 # end --enable-cache
1281 # OpenLDAP --enable-referrals
1282 # Check whether --enable-referrals or --disable-referrals was given.
1283 if test "${enable_referrals+set}" = set; then
1284 enableval="$enable_referrals"
1287 for ol_val in auto yes no ; do
1288 if test "$enableval" = "$ol_val" ; then
1292 if test "$ol_arg" = "invalid" ; then
1293 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1295 ol_enable_referrals="$ol_arg"
1298 ol_enable_referrals="no"
1300 # end --enable-referrals
1301 # OpenLDAP --enable-kbind
1302 # Check whether --enable-kbind or --disable-kbind was given.
1303 if test "${enable_kbind+set}" = set; then
1304 enableval="$enable_kbind"
1307 for ol_val in auto yes no ; do
1308 if test "$enableval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1315 ol_enable_kbind="$ol_arg"
1318 ol_enable_kbind="no"
1320 # end --enable-kbind
1321 # OpenLDAP --enable-ipv6
1322 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1323 if test "${enable_ipv6+set}" = set; then
1324 enableval="$enable_ipv6"
1327 for ol_val in auto yes no ; do
1328 if test "$enableval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1335 ol_enable_ipv6="$ol_arg"
1338 ol_enable_ipv6="auto"
1341 # OpenLDAP --enable-local
1342 # Check whether --enable-local or --disable-local was given.
1343 if test "${enable_local+set}" = set; then
1344 enableval="$enable_local"
1347 for ol_val in auto yes no ; do
1348 if test "$enableval" = "$ol_val" ; then
1352 if test "$ol_arg" = "invalid" ; then
1353 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1355 ol_enable_local="$ol_arg"
1358 ol_enable_local="auto"
1360 # end --enable-local
1361 # OpenLDAP --enable-x_compile
1362 # Check whether --enable-x_compile or --disable-x_compile was given.
1363 if test "${enable_x_compile+set}" = set; then
1364 enableval="$enable_x_compile"
1367 for ol_val in yes no ; do
1368 if test "$enableval" = "$ol_val" ; then
1372 if test "$ol_arg" = "invalid" ; then
1373 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1375 ol_enable_x_compile="$ol_arg"
1378 ol_enable_x_compile="no"
1380 # end --enable-x_compile
1383 # OpenLDAP --with-cyrus_sasl
1384 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1385 if test "${with_cyrus_sasl+set}" = set; then
1386 withval="$with_cyrus_sasl"
1389 for ol_val in auto yes no ; do
1390 if test "$withval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1397 ol_with_cyrus_sasl="$ol_arg"
1400 ol_with_cyrus_sasl="auto"
1402 # end --with-cyrus_sasl
1404 # OpenLDAP --with-fetch
1405 # Check whether --with-fetch or --without-fetch was given.
1406 if test "${with_fetch+set}" = set; then
1407 withval="$with_fetch"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1418 ol_with_fetch="$ol_arg"
1421 ol_with_fetch="auto"
1425 # OpenLDAP --with-kerberos
1426 # Check whether --with-kerberos or --without-kerberos was given.
1427 if test "${with_kerberos+set}" = set; then
1428 withval="$with_kerberos"
1431 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1439 ol_with_kerberos="$ol_arg"
1442 ol_with_kerberos="auto"
1444 # end --with-kerberos
1446 # OpenLDAP --with-readline
1447 # Check whether --with-readline or --without-readline was given.
1448 if test "${with_readline+set}" = set; then
1449 withval="$with_readline"
1452 for ol_val in auto yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1460 ol_with_readline="$ol_arg"
1463 ol_with_readline="auto"
1465 # end --with-readline
1467 # OpenLDAP --with-threads
1468 # Check whether --with-threads or --without-threads was given.
1469 if test "${with_threads+set}" = set; then
1470 withval="$with_threads"
1473 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1481 ol_with_threads="$ol_arg"
1484 ol_with_threads="auto"
1486 # end --with-threads
1488 # OpenLDAP --with-tls
1489 # Check whether --with-tls or --without-tls was given.
1490 if test "${with_tls+set}" = set; then
1494 for ol_val in auto ssleay openssl yes no ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1502 ol_with_tls="$ol_arg"
1509 # OpenLDAP --with-yielding_select
1510 # Check whether --with-yielding_select or --without-yielding_select was given.
1511 if test "${with_yielding_select+set}" = set; then
1512 withval="$with_yielding_select"
1515 for ol_val in auto yes no manual ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1523 ol_with_yielding_select="$ol_arg"
1526 ol_with_yielding_select="auto"
1528 # end --with-yielding_select
1532 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1533 if test "${with_xxslapdoptions+set}" = set; then
1534 withval="$with_xxslapdoptions"
1538 # OpenLDAP --enable-slapd
1539 # Check whether --enable-slapd or --disable-slapd was given.
1540 if test "${enable_slapd+set}" = set; then
1541 enableval="$enable_slapd"
1544 for ol_val in auto yes no ; do
1545 if test "$enableval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1552 ol_enable_slapd="$ol_arg"
1555 ol_enable_slapd="yes"
1557 # end --enable-slapd
1558 # OpenLDAP --enable-aci
1559 # Check whether --enable-aci or --disable-aci was given.
1560 if test "${enable_aci+set}" = set; then
1561 enableval="$enable_aci"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1572 ol_enable_aci="$ol_arg"
1578 # OpenLDAP --enable-cleartext
1579 # Check whether --enable-cleartext or --disable-cleartext was given.
1580 if test "${enable_cleartext+set}" = set; then
1581 enableval="$enable_cleartext"
1584 for ol_val in auto yes no ; do
1585 if test "$enableval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1592 ol_enable_cleartext="$ol_arg"
1595 ol_enable_cleartext="yes"
1597 # end --enable-cleartext
1598 # OpenLDAP --enable-crypt
1599 # Check whether --enable-crypt or --disable-crypt was given.
1600 if test "${enable_crypt+set}" = set; then
1601 enableval="$enable_crypt"
1604 for ol_val in auto yes no ; do
1605 if test "$enableval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1612 ol_enable_crypt="$ol_arg"
1615 ol_enable_crypt="no"
1617 # end --enable-crypt
1618 # OpenLDAP --enable-dynamic
1619 # Check whether --enable-dynamic or --disable-dynamic was given.
1620 if test "${enable_dynamic+set}" = set; then
1621 enableval="$enable_dynamic"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1632 ol_enable_dynamic="$ol_arg"
1635 ol_enable_dynamic="no"
1637 # end --enable-dynamic
1638 # OpenLDAP --enable-kpasswd
1639 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1640 if test "${enable_kpasswd+set}" = set; then
1641 enableval="$enable_kpasswd"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1652 ol_enable_kpasswd="$ol_arg"
1655 ol_enable_kpasswd="no"
1657 # end --enable-kpasswd
1658 # OpenLDAP --enable-lmpasswd
1659 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1660 if test "${enable_lmpasswd+set}" = set; then
1661 enableval="$enable_lmpasswd"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1672 ol_enable_lmpasswd="$ol_arg"
1675 ol_enable_lmpasswd="no"
1677 # end --enable-lmpasswd
1678 # OpenLDAP --enable-spasswd
1679 # Check whether --enable-spasswd or --disable-spasswd was given.
1680 if test "${enable_spasswd+set}" = set; then
1681 enableval="$enable_spasswd"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1692 ol_enable_spasswd="$ol_arg"
1695 ol_enable_spasswd="no"
1697 # end --enable-spasswd
1698 # OpenLDAP --enable-modules
1699 # Check whether --enable-modules or --disable-modules was given.
1700 if test "${enable_modules+set}" = set; then
1701 enableval="$enable_modules"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1712 ol_enable_modules="$ol_arg"
1715 ol_enable_modules="no"
1717 # end --enable-modules
1718 # OpenLDAP --enable-phonetic
1719 # Check whether --enable-phonetic or --disable-phonetic was given.
1720 if test "${enable_phonetic+set}" = set; then
1721 enableval="$enable_phonetic"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1732 ol_enable_phonetic="$ol_arg"
1735 ol_enable_phonetic="no"
1737 # end --enable-phonetic
1738 # OpenLDAP --enable-rlookups
1739 # Check whether --enable-rlookups or --disable-rlookups was given.
1740 if test "${enable_rlookups+set}" = set; then
1741 enableval="$enable_rlookups"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1752 ol_enable_rlookups="$ol_arg"
1755 ol_enable_rlookups="no"
1757 # end --enable-rlookups
1758 # OpenLDAP --enable-slp
1759 # Check whether --enable-slp or --disable-slp was given.
1760 if test "${enable_slp+set}" = set; then
1761 enableval="$enable_slp"
1764 for ol_val in auto yes no ; do
1765 if test "$enableval" = "$ol_val" ; then
1769 if test "$ol_arg" = "invalid" ; then
1770 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1772 ol_enable_slp="$ol_arg"
1778 # OpenLDAP --enable-wrappers
1779 # Check whether --enable-wrappers or --disable-wrappers was given.
1780 if test "${enable_wrappers+set}" = set; then
1781 enableval="$enable_wrappers"
1784 for ol_val in auto yes no ; do
1785 if test "$enableval" = "$ol_val" ; then
1789 if test "$ol_arg" = "invalid" ; then
1790 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1792 ol_enable_wrappers="$ol_arg"
1795 ol_enable_wrappers="no"
1797 # end --enable-wrappers
1799 # OpenLDAP --enable-bdb
1800 # Check whether --enable-bdb or --disable-bdb was given.
1801 if test "${enable_bdb+set}" = set; then
1802 enableval="$enable_bdb"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1813 ol_enable_bdb="$ol_arg"
1819 # OpenLDAP --with-bdb_module
1820 # Check whether --with-bdb_module or --without-bdb_module was given.
1821 if test "${with_bdb_module+set}" = set; then
1822 withval="$with_bdb_module"
1825 for ol_val in static dynamic ; do
1826 if test "$withval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1833 ol_with_bdb_module="$ol_arg"
1836 ol_with_bdb_module="static"
1838 # end --with-bdb_module
1840 # OpenLDAP --enable-dnssrv
1841 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1842 if test "${enable_dnssrv+set}" = set; then
1843 enableval="$enable_dnssrv"
1846 for ol_val in auto yes no ; do
1847 if test "$enableval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1854 ol_enable_dnssrv="$ol_arg"
1857 ol_enable_dnssrv="no"
1859 # end --enable-dnssrv
1860 # OpenLDAP --with-dnssrv_module
1861 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1862 if test "${with_dnssrv_module+set}" = set; then
1863 withval="$with_dnssrv_module"
1866 for ol_val in static dynamic ; do
1867 if test "$withval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1874 ol_with_dnssrv_module="$ol_arg"
1877 ol_with_dnssrv_module="static"
1879 # end --with-dnssrv_module
1881 # OpenLDAP --enable-ldap
1882 # Check whether --enable-ldap or --disable-ldap was given.
1883 if test "${enable_ldap+set}" = set; then
1884 enableval="$enable_ldap"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1895 ol_enable_ldap="$ol_arg"
1901 # OpenLDAP --with-ldap_module
1902 # Check whether --with-ldap_module or --without-ldap_module was given.
1903 if test "${with_ldap_module+set}" = set; then
1904 withval="$with_ldap_module"
1907 for ol_val in static dynamic ; do
1908 if test "$withval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1915 ol_with_ldap_module="$ol_arg"
1918 ol_with_ldap_module="static"
1920 # end --with-ldap_module
1922 # OpenLDAP --enable-ldbm
1923 # Check whether --enable-ldbm or --disable-ldbm was given.
1924 if test "${enable_ldbm+set}" = set; then
1925 enableval="$enable_ldbm"
1928 for ol_val in auto yes no ; do
1929 if test "$enableval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1936 ol_enable_ldbm="$ol_arg"
1939 ol_enable_ldbm="yes"
1942 # OpenLDAP --with-ldbm_api
1943 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1944 if test "${with_ldbm_api+set}" = set; then
1945 withval="$with_ldbm_api"
1948 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1949 if test "$withval" = "$ol_val" ; then
1953 if test "$ol_arg" = "invalid" ; then
1954 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1956 ol_with_ldbm_api="$ol_arg"
1959 ol_with_ldbm_api="auto"
1961 # end --with-ldbm_api
1963 # OpenLDAP --with-ldbm_module
1964 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1965 if test "${with_ldbm_module+set}" = set; then
1966 withval="$with_ldbm_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1977 ol_with_ldbm_module="$ol_arg"
1980 ol_with_ldbm_module="static"
1982 # end --with-ldbm_module
1984 # OpenLDAP --with-ldbm_type
1985 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1986 if test "${with_ldbm_type+set}" = set; then
1987 withval="$with_ldbm_type"
1990 for ol_val in auto btree hash ; do
1991 if test "$withval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1998 ol_with_ldbm_type="$ol_arg"
2001 ol_with_ldbm_type="auto"
2003 # end --with-ldbm_type
2005 # OpenLDAP --enable-passwd
2006 # Check whether --enable-passwd or --disable-passwd was given.
2007 if test "${enable_passwd+set}" = set; then
2008 enableval="$enable_passwd"
2011 for ol_val in auto yes no ; do
2012 if test "$enableval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2019 ol_enable_passwd="$ol_arg"
2022 ol_enable_passwd="no"
2024 # end --enable-passwd
2025 # OpenLDAP --with-passwd_module
2026 # Check whether --with-passwd_module or --without-passwd_module was given.
2027 if test "${with_passwd_module+set}" = set; then
2028 withval="$with_passwd_module"
2031 for ol_val in static dynamic ; do
2032 if test "$withval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2039 ol_with_passwd_module="$ol_arg"
2042 ol_with_passwd_module="static"
2044 # end --with-passwd_module
2046 # OpenLDAP --enable-perl
2047 # Check whether --enable-perl or --disable-perl was given.
2048 if test "${enable_perl+set}" = set; then
2049 enableval="$enable_perl"
2052 for ol_val in auto yes no ; do
2053 if test "$enableval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2060 ol_enable_perl="$ol_arg"
2066 # OpenLDAP --with-perl_module
2067 # Check whether --with-perl_module or --without-perl_module was given.
2068 if test "${with_perl_module+set}" = set; then
2069 withval="$with_perl_module"
2072 for ol_val in static dynamic ; do
2073 if test "$withval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2080 ol_with_perl_module="$ol_arg"
2083 ol_with_perl_module="static"
2085 # end --with-perl_module
2087 # OpenLDAP --enable-shell
2088 # Check whether --enable-shell or --disable-shell was given.
2089 if test "${enable_shell+set}" = set; then
2090 enableval="$enable_shell"
2093 for ol_val in auto yes no ; do
2094 if test "$enableval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2101 ol_enable_shell="$ol_arg"
2104 ol_enable_shell="no"
2106 # end --enable-shell
2107 # OpenLDAP --with-shell_module
2108 # Check whether --with-shell_module or --without-shell_module was given.
2109 if test "${with_shell_module+set}" = set; then
2110 withval="$with_shell_module"
2113 for ol_val in static dynamic ; do
2114 if test "$withval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2121 ol_with_shell_module="$ol_arg"
2124 ol_with_shell_module="static"
2126 # end --with-shell_module
2128 # OpenLDAP --enable-sql
2129 # Check whether --enable-sql or --disable-sql was given.
2130 if test "${enable_sql+set}" = set; then
2131 enableval="$enable_sql"
2134 for ol_val in auto yes no ; do
2135 if test "$enableval" = "$ol_val" ; then
2139 if test "$ol_arg" = "invalid" ; then
2140 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2142 ol_enable_sql="$ol_arg"
2148 # OpenLDAP --with-sql_module
2149 # Check whether --with-sql_module or --without-sql_module was given.
2150 if test "${with_sql_module+set}" = set; then
2151 withval="$with_sql_module"
2154 for ol_val in static dynamic ; do
2155 if test "$withval" = "$ol_val" ; then
2159 if test "$ol_arg" = "invalid" ; then
2160 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2162 ol_with_sql_module="$ol_arg"
2165 ol_with_sql_module="static"
2167 # end --with-sql_module
2169 # OpenLDAP --enable-tcl
2170 # Check whether --enable-tcl or --disable-tcl was given.
2171 if test "${enable_tcl+set}" = set; then
2172 enableval="$enable_tcl"
2175 for ol_val in auto yes no ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2183 ol_enable_tcl="$ol_arg"
2189 # OpenLDAP --with-tcl_module
2190 # Check whether --with-tcl_module or --without-tcl_module was given.
2191 if test "${with_tcl_module+set}" = set; then
2192 withval="$with_tcl_module"
2195 for ol_val in static dynamic ; do
2196 if test "$withval" = "$ol_val" ; then
2200 if test "$ol_arg" = "invalid" ; then
2201 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2203 ol_with_tcl_module="$ol_arg"
2206 ol_with_tcl_module="static"
2208 # end --with-tcl_module
2211 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2212 if test "${with_xxslurpdoptions+set}" = set; then
2213 withval="$with_xxslurpdoptions"
2217 # OpenLDAP --enable-slurpd
2218 # Check whether --enable-slurpd or --disable-slurpd was given.
2219 if test "${enable_slurpd+set}" = set; then
2220 enableval="$enable_slurpd"
2223 for ol_val in auto yes no ; do
2224 if test "$enableval" = "$ol_val" ; then
2228 if test "$ol_arg" = "invalid" ; then
2229 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2231 ol_enable_slurpd="$ol_arg"
2234 ol_enable_slurpd="auto"
2236 # end --enable-slurpd
2238 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2239 if test "${with_xxliboptions+set}" = set; then
2240 withval="$with_xxliboptions"
2244 # Check whether --enable-static or --disable-static was given.
2245 if test "${enable_static+set}" = set; then
2246 enableval="$enable_static"
2247 p=${PACKAGE-default}
2248 case "$enableval" in
2249 yes) enable_static=yes ;;
2250 no) enable_static=no ;;
2253 # Look at the argument we got. We use all the common list separators.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2255 for pkg in $enableval; do
2256 if test "X$pkg" = "X$p"; then
2267 # Check whether --enable-shared or --disable-shared was given.
2268 if test "${enable_shared+set}" = set; then
2269 enableval="$enable_shared"
2270 p=${PACKAGE-default}
2271 case "$enableval" in
2272 yes) enable_shared=yes ;;
2273 no) enable_shared=no ;;
2276 # Look at the argument we got. We use all the common list separators.
2277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2278 for pkg in $enableval; do
2279 if test "X$pkg" = "X$p"; then
2293 if test $ol_enable_slapd = no ; then
2294 if test $ol_enable_bdb = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2297 if test $ol_enable_dnssrv = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2300 if test $ol_enable_ldap = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2303 if test $ol_enable_ldbm = yes ; then
2304 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2306 if test $ol_enable_passwd = yes ; then
2307 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2309 if test $ol_enable_perl = yes ; then
2310 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2312 if test $ol_enable_shell = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2315 if test $ol_enable_tcl = yes ; then
2316 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2318 if test $ol_enable_sql = yes ; then
2319 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2321 if test $ol_enable_modules = yes ; then
2322 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2324 if test $ol_enable_wrappers = yes ; then
2325 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2327 if test $ol_enable_phonetic = yes ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2330 if test $ol_enable_rlookups = yes ; then
2331 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2333 if test $ol_enable_aci = yes ; then
2334 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2336 if test $ol_with_ldbm_api != auto ; then
2337 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2339 if test $ol_with_ldbm_type != auto ; then
2340 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2342 if test $ol_with_bdb_module != static ; then
2343 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2345 if test $ol_with_dnssrv_module != static ; then
2346 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2348 if test $ol_with_ldap_module != static ; then
2349 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2351 if test $ol_with_ldbm_module != static ; then
2352 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2354 if test $ol_with_passwd_module != static ; then
2355 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2357 if test $ol_with_perl_module != static ; then
2358 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2360 if test $ol_with_shell_module != static ; then
2361 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2363 if test $ol_with_tcl_module != static ; then
2364 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2366 if test $ol_with_sql_module != static ; then
2367 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2369 if test $ol_enable_slurpd = yes ; then
2370 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2373 # force settings to no
2384 ol_enable_modules=no
2385 ol_enable_phonetic=no
2386 ol_enable_rlookups=no
2388 ol_enable_wrappers=no
2389 ol_enable_dynamic=no
2392 ol_with_ldbm_type=no
2394 ol_with_bdb_module=static
2395 ol_with_dnssrv_module=static
2396 ol_with_ldap_module=static
2397 ol_with_ldbm_module=static
2398 ol_with_passwd_module=static
2399 ol_with_perl_module=static
2400 ol_with_shell_module=static
2401 ol_with_tcl_module=static
2402 ol_with_sql_module=static
2406 elif test $ol_enable_ldbm = no ; then
2408 if test $ol_with_ldbm_api != auto ; then
2409 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2412 if test $ol_with_ldbm_type != auto ; then
2413 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2416 if test $ol_with_ldbm_module != static ; then
2417 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2420 if test $ol_enable_modules != yes -a \
2421 $ol_enable_bdb = no -a \
2422 $ol_enable_dnssrv = no -a \
2423 $ol_enable_ldap = no -a \
2424 $ol_enable_passwd = no -a \
2425 $ol_enable_perl = no -a \
2426 $ol_enable_shell = no -a \
2427 $ol_enable_sql = no -a \
2428 $ol_enable_tcl = no ; then
2429 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2433 ol_with_ldbm_type=no
2434 ol_with_ldbm_module=static
2437 if test $ol_with_ldbm_api = gdbm -a \
2438 $ol_with_ldbm_type = btree ; then
2439 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2441 if test $ol_with_ldbm_api = mdbm -a \
2442 $ol_with_ldbm_type = btree ; then
2443 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2445 if test $ol_with_ldbm_api = ndbm -a \
2446 $ol_with_ldbm_type = btree ; then
2447 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2451 if test $ol_enable_slurpd = yes ; then
2452 if test $ol_with_threads = no ; then
2453 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2457 if test $ol_enable_lmpasswd = yes ; then
2458 if test $ol_with_tls = no ; then
2459 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2463 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2464 if test $ol_with_kerberos = no ; then
2465 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2467 ol_with_kerberos=yes
2468 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2469 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2470 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2475 if test $ol_enable_spasswd = yes ; then
2476 if test $ol_with_cyrus_sasl = no ; then
2477 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2479 ol_with_cyrus_sasl=yes
2482 echo "$ac_t""done" 1>&6
2508 BUILD_BDB_DYNAMIC=static
2509 BUILD_DNSSRV_DYNAMIC=static
2510 BUILD_LDAP_DYNAMIC=static
2511 BUILD_LDBM_DYNAMIC=static
2512 BUILD_PASSWD_DYNAMIC=static
2513 BUILD_PERL_DYNAMIC=static
2514 BUILD_SHELL_DYNAMIC=static
2515 BUILD_TCL_DYNAMIC=static
2516 BUILD_SQL_DYNAMIC=static
2518 SLAPD_MODULES_LDFLAGS=
2519 SLAPD_MODULES_CPPFLAGS=
2544 cat >> confdefs.h <<\EOF
2545 #define HAVE_MKVERSION 1
2553 *-*-aix*) if test -z "$CC" ; then
2554 case "$ol_with_threads" in
2555 auto | yes | posix) ol_aix_threads=yes ;;
2561 if test $ol_aix_threads = yes ; then
2562 if test -z "${CC}" ; then
2563 for ac_prog in cc_r xlc_r cc
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_word" >&5
2569 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2577 for ac_dir in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir=.
2579 if test -f $ac_dir/$ac_word; then
2580 ac_cv_prog_CC="$ac_prog"
2588 if test -n "$CC"; then
2589 echo "$ac_t""$CC" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 test -n "$CC" && break
2598 if test "$CC" = cc ; then
2599 if test $ol_with_threads != auto ; then
2600 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2602 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2608 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2609 ol_with_threads=posix
2610 ol_cv_pthread_create=yes
2614 if test -z "${CC}"; then
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_word" >&5
2621 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2629 for ac_dir in $ac_dummy; do
2630 test -z "$ac_dir" && ac_dir=.
2631 if test -f $ac_dir/$ac_word; then
2632 ac_cv_prog_CC="$ac_prog"
2640 if test -n "$CC"; then
2641 echo "$ac_t""$CC" 1>&6
2643 echo "$ac_t""no" 1>&6
2646 test -n "$CC" && break
2654 # Check whether --enable-fast-install or --disable-fast-install was given.
2655 if test "${enable_fast_install+set}" = set; then
2656 enableval="$enable_fast_install"
2657 p=${PACKAGE-default}
2658 case "$enableval" in
2659 yes) enable_fast_install=yes ;;
2660 no) enable_fast_install=no ;;
2662 enable_fast_install=no
2663 # Look at the argument we got. We use all the common list separators.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2665 for pkg in $enableval; do
2666 if test "X$pkg" = "X$p"; then
2667 enable_fast_install=yes
2674 enable_fast_install=yes
2677 # Extract the first word of "ranlib", so it can be a program name with args.
2678 set dummy ranlib; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 if test -n "$RANLIB"; then
2685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_prog_RANLIB="ranlib"
2697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2700 RANLIB="$ac_cv_prog_RANLIB"
2701 if test -n "$RANLIB"; then
2702 echo "$ac_t""$RANLIB" 1>&6
2704 echo "$ac_t""no" 1>&6
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2719 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_word" >&5
2741 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2750 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 if test -f $ac_dir/$ac_word; then
2753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2754 ac_prog_rejected=yes
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy $ac_cv_prog_CC
2766 if test $# -gt 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2771 set dummy "$ac_dir/$ac_word" "$@"
2779 if test -n "$CC"; then
2780 echo "$ac_t""$CC" 1>&6
2782 echo "$ac_t""no" 1>&6
2785 if test -z "$CC"; then
2786 case "`uname -s`" in
2787 *win32* | *WIN32* | *CYGWIN*)
2788 # Extract the first word of "cl", so it can be a program name with args.
2789 set dummy cl; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2823 echo "configure:2824: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2830 cross_compiling=$ac_cv_prog_cc_cross
2832 cat > conftest.$ac_ext << EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 ac_cv_prog_cc_works=yes
2841 # If we can't run a trivial program, we are probably using a cross compiler.
2842 if (./conftest; exit) 2>/dev/null; then
2843 ac_cv_prog_cc_cross=no
2845 ac_cv_prog_cc_cross=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 ac_cv_prog_cc_works=no
2854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2858 cross_compiling=$ac_cv_prog_cc_cross
2860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2861 if test $ac_cv_prog_cc_works = no; then
2862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2865 echo "configure:2866: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2867 cross_compiling=$ac_cv_prog_cc_cross
2869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2870 echo "configure:2871: checking whether we are using GNU C" >&5
2871 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.c <<EOF
2879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2888 if test $ac_cv_prog_gcc = yes; then
2894 ac_test_CFLAGS="${CFLAGS+set}"
2895 ac_save_CFLAGS="$CFLAGS"
2897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2898 echo "configure:2899: checking whether ${CC-cc} accepts -g" >&5
2899 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 echo 'void f(){}' > conftest.c
2903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2913 if test "$ac_test_CFLAGS" = set; then
2914 CFLAGS="$ac_save_CFLAGS"
2915 elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2922 if test "$GCC" = yes; then
2929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2930 if test "${with_gnu_ld+set}" = set; then
2931 withval="$with_gnu_ld"
2932 test "$withval" = no || with_gnu_ld=yes
2938 if test "$ac_cv_prog_gcc" = yes; then
2939 # Check if gcc -print-prog-name=ld gives a path.
2940 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2941 echo "configure:2942: checking for ld used by GCC" >&5
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2944 # Accept absolute paths.
2945 [\\/]* | [A-Za-z]:[\\/]*)
2946 re_direlt='/[^/][^/]*/\.\./'
2947 # Canonicalize the path of ld
2948 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2950 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952 test -z "$LD" && LD="$ac_prog"
2955 # If it fails, then pretend we aren't using GCC.
2959 # If it is relative, then search for the first ld in PATH.
2963 elif test "$with_gnu_ld" = yes; then
2964 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2965 echo "configure:2966: checking for GNU ld" >&5
2967 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2968 echo "configure:2969: checking for non-GNU ld" >&5
2970 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test -z "$LD"; then
2974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2975 for ac_dir in $PATH; do
2976 test -z "$ac_dir" && ac_dir=.
2977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2978 ac_cv_path_LD="$ac_dir/$ac_prog"
2979 # Check to see if the program is GNU ld. I'd rather use --version,
2980 # but apparently some GNU ld's only accept -v.
2981 # Break only if it was the GNU/non-GNU ld that we prefer.
2982 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2983 test "$with_gnu_ld" != no && break
2985 test "$with_gnu_ld" != yes && break
2991 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2996 if test -n "$LD"; then
2997 echo "$ac_t""$LD" 1>&6
2999 echo "$ac_t""no" 1>&6
3001 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3002 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3003 echo "configure:3004: checking if the linker ($LD) is GNU ld" >&5
3004 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3008 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3009 ac_cv_prog_gnu_ld=yes
3011 ac_cv_prog_gnu_ld=no
3015 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3018 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3019 echo "configure:3020: checking for BSD-compatible nm" >&5
3020 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$NM"; then
3024 # Let the user override the test.
3027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3028 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3031 # Check to see if the nm accepts a BSD-compat flag.
3032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3033 # nm: unknown option "B" ignored
3034 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3035 ac_cv_path_NM="$ac_dir/nm -B"
3037 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3038 ac_cv_path_NM="$ac_dir/nm -p"
3041 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3042 continue # so that we can try to find one that supports BSD flags
3047 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3052 echo "$ac_t""$NM" 1>&6
3054 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether ln -s works" >&5
3056 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3060 if ln -s X conftestdata 2>/dev/null
3063 ac_cv_prog_LN_S="ln -s"
3068 LN_S="$ac_cv_prog_LN_S"
3069 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3070 echo "$ac_t""yes" 1>&6
3072 echo "$ac_t""no" 1>&6
3075 if test $host != $build; then
3076 ac_tool_prefix=${host_alias}-
3083 NONE) lt_target="$host" ;;
3084 *) lt_target="$target" ;;
3087 # Check for any special flags to pass to ltconfig.
3088 libtool_flags="--cache-file=$cache_file"
3089 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3090 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3091 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3092 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3093 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3094 libtool_flags="$libtool_flags --enable-dlopen"
3095 libtool_flags="$libtool_flags --enable-win32-dll"
3096 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3097 if test "${enable_libtool_lock+set}" = set; then
3098 enableval="$enable_libtool_lock"
3102 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3103 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3105 # Some flags need to be propagated to the compiler or linker for good
3107 case "$lt_target" in
3109 # Find out which ABI we are using.
3110 echo '#line 3111 "configure"' > conftest.$ac_ext
3111 if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 case "`/usr/bin/file conftest.o`" in
3128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3129 SAVE_CFLAGS="$CFLAGS"
3130 CFLAGS="$CFLAGS -belf"
3131 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3132 echo "configure:3133: checking whether the C compiler needs -belf" >&5
3133 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 lt_cv_cc_needs_belf=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 lt_cv_cc_needs_belf=no
3156 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3159 CFLAGS="$SAVE_CFLAGS"
3163 *-*-cygwin* | *-*-mingw*)
3164 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_word" >&5
3168 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$DLLTOOL"; then
3172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3176 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 if test -f $ac_dir/$ac_word; then
3179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3186 DLLTOOL="$ac_cv_prog_DLLTOOL"
3187 if test -n "$DLLTOOL"; then
3188 echo "$ac_t""$DLLTOOL" 1>&6
3190 echo "$ac_t""no" 1>&6
3194 if test -z "$ac_cv_prog_DLLTOOL"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "dlltool", so it can be a program name with args.
3197 set dummy dlltool; ac_word=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3208 for ac_dir in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_DLLTOOL="dlltool"
3216 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3219 DLLTOOL="$ac_cv_prog_DLLTOOL"
3220 if test -n "$DLLTOOL"; then
3221 echo "$ac_t""$DLLTOOL" 1>&6
3223 echo "$ac_t""no" 1>&6
3231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}as; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$AS"; then
3239 ac_cv_prog_AS="$AS" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_AS="${ac_tool_prefix}as"
3254 if test -n "$AS"; then
3255 echo "$ac_t""$AS" 1>&6
3257 echo "$ac_t""no" 1>&6
3261 if test -z "$ac_cv_prog_AS"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "as", so it can be a program name with args.
3264 set dummy as; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS="$AS" # Let the user override the test.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3275 for ac_dir in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir=.
3277 if test -f $ac_dir/$ac_word; then
3283 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3287 if test -n "$AS"; then
3288 echo "$ac_t""$AS" 1>&6
3290 echo "$ac_t""no" 1>&6
3298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_word" >&5
3302 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 if test -n "$OBJDUMP"; then
3306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f $ac_dir/$ac_word; then
3313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3320 OBJDUMP="$ac_cv_prog_OBJDUMP"
3321 if test -n "$OBJDUMP"; then
3322 echo "$ac_t""$OBJDUMP" 1>&6
3324 echo "$ac_t""no" 1>&6
3328 if test -z "$ac_cv_prog_OBJDUMP"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "objdump", so it can be a program name with args.
3331 set dummy objdump; ac_word=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3342 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_OBJDUMP="objdump"
3350 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3353 OBJDUMP="$ac_cv_prog_OBJDUMP"
3354 if test -n "$OBJDUMP"; then
3355 echo "$ac_t""$OBJDUMP" 1>&6
3357 echo "$ac_t""no" 1>&6
3370 # Save cache, so that ltconfig can load it
3373 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3374 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3375 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3376 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3377 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3378 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3379 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3380 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3382 # Reload cache, that may have been modified by ltconfig
3385 # This can be used to rebuild libtool when needed
3386 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3388 # Always use our own libtool.
3389 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3391 # Redirect the config.log output again, so that the ltconfig log is not
3392 # clobbered by the next message.
3393 exec 5>>./config.log
3396 for ac_prog in mawk gawk nawk awk
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_word" >&5
3402 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 if test -n "$AWK"; then
3406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3410 for ac_dir in $ac_dummy; do
3411 test -z "$ac_dir" && ac_dir=.
3412 if test -f $ac_dir/$ac_word; then
3413 ac_cv_prog_AWK="$ac_prog"
3420 AWK="$ac_cv_prog_AWK"
3421 if test -n "$AWK"; then
3422 echo "$ac_t""$AWK" 1>&6
3424 echo "$ac_t""no" 1>&6
3427 test -n "$AWK" && break
3430 # test for ln hardlink support
3431 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3432 echo "configure:3433: checking whether ln works" >&5
3433 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 rm -f conftest.src conftest.dst
3437 echo "conftest" > conftest.src
3438 if ln conftest.src conftest.dst 2>/dev/null
3440 ol_cv_prog_LN_H="ln"
3442 ol_cv_prog_LN_H="cp"
3444 rm -f conftest.src conftest.dst
3447 LN_H="$ol_cv_prog_LN_H"
3448 if test "$ol_cv_prog_LN_H" = "ln"; then
3449 echo "$ac_t""yes" 1>&6
3451 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3455 echo "configure:3456: checking whether ln -s works" >&5
3456 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3460 if ln -s X conftestdata 2>/dev/null
3463 ac_cv_prog_LN_S="ln -s"
3468 LN_S="$ac_cv_prog_LN_S"
3469 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3470 echo "$ac_t""yes" 1>&6
3472 echo "$ac_t""no" 1>&6
3476 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3480 # Extract the first word of "sendmail", so it can be a program name with args.
3481 set dummy sendmail; ac_word=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3484 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3492 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3496 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3505 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3509 SENDMAIL="$ac_cv_path_SENDMAIL"
3510 if test -n "$SENDMAIL"; then
3511 echo "$ac_t""$SENDMAIL" 1>&6
3513 echo "$ac_t""no" 1>&6
3516 # Extract the first word of "vi", so it can be a program name with args.
3517 set dummy vi; ac_word=$2
3518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_word" >&5
3520 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3528 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3532 ac_dummy="$PATH:/usr/ucb"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3541 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3545 EDITOR="$ac_cv_path_EDITOR"
3546 if test -n "$EDITOR"; then
3547 echo "$ac_t""$EDITOR" 1>&6
3549 echo "$ac_t""no" 1>&6
3552 # Extract the first word of "finger", so it can be a program name with args.
3553 set dummy finger; ac_word=$2
3554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_word" >&5
3556 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3564 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3568 ac_dummy="$PATH:/usr/ucb"
3569 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_path_FINGER="$ac_dir/$ac_word"
3577 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3581 FINGER="$ac_cv_path_FINGER"
3582 if test -n "$FINGER"; then
3583 echo "$ac_t""$FINGER" 1>&6
3585 echo "$ac_t""no" 1>&6
3590 if test $ol_enable_perl != no ; then
3591 # Extract the first word of "perl", so it can be a program name with args.
3592 set dummy perl; ac_word=$2
3593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_word" >&5
3595 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3603 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3616 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3620 PERLBIN="$ac_cv_path_PERLBIN"
3621 if test -n "$PERLBIN"; then
3622 echo "$ac_t""$PERLBIN" 1>&6
3624 echo "$ac_t""no" 1>&6
3628 if test "no$PERLBIN" = "no" ; then
3629 if test $ol_enable_perl = yes ; then
3630 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3634 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3635 if test x"$ol_with_perl_module" = "xstatic" ; then
3636 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3638 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3644 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3645 echo "configure:3646: checking how to run the C preprocessor" >&5
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3650 if test -z "$CPP"; then
3651 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 # This must be in double quotes, not single quotes, because CPP may get
3655 # substituted into the Makefile and "${CC-cc}" will confuse make.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp.
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3666 { (eval echo configure:3667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3668 if test -z "$ac_err"; then
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 CPP="${CC-cc} -E -traditional-cpp"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3683 { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3685 if test -z "$ac_err"; then
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 CPP="${CC-cc} -nologo -E"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3700 { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3702 if test -z "$ac_err"; then
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3716 ac_cv_prog_CPP="$CPP"
3718 CPP="$ac_cv_prog_CPP"
3720 ac_cv_prog_CPP="$CPP"
3722 echo "$ac_t""$CPP" 1>&6
3725 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3726 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3728 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3729 echo "configure: warning: programs compiled here do run here..." 1>&2
3730 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3732 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3733 echo "configure: warning: programs compiled here do not run here..." 1>&2
3734 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3737 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3738 echo "configure:3739: checking for AIX" >&5
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 egrep "yes" >/dev/null 2>&1; then
3750 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3751 #define _ALL_SOURCE 1
3756 echo "$ac_t""no" 1>&6
3761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3762 echo "configure:3763: checking for POSIXized ISC" >&5
3763 if test -d /etc/conf/kconfig.d &&
3764 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3766 echo "$ac_t""yes" 1>&6
3767 ISC=yes # If later tests want to check for ISC.
3768 cat >> confdefs.h <<\EOF
3769 #define _POSIX_SOURCE 1
3772 if test "$GCC" = yes; then
3778 echo "$ac_t""no" 1>&6
3782 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3783 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3784 echo "configure:3785: checking for minix/config.h" >&5
3785 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <minix/config.h>
3793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3794 { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3796 if test -z "$ac_err"; then
3798 eval "ac_cv_header_$ac_safe=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_header_$ac_safe=no"
3808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3812 echo "$ac_t""no" 1>&6
3816 if test "$MINIX" = yes; then
3817 cat >> confdefs.h <<\EOF
3818 #define _POSIX_SOURCE 1
3821 cat >> confdefs.h <<\EOF
3822 #define _POSIX_1_SOURCE 2
3825 cat >> confdefs.h <<\EOF
3832 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3833 echo "configure:3834: checking for Cygwin environment" >&5
3834 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3844 #define __CYGWIN__ __CYGWIN32__
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3861 echo "$ac_t""$ac_cv_cygwin" 1>&6
3863 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3864 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3865 echo "configure:3866: checking for mingw32 environment" >&5
3866 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3889 echo "$ac_t""$ac_cv_mingw32" 1>&6
3891 test "$ac_cv_mingw32" = yes && MINGW32=yes
3892 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3893 echo "configure:3894: checking for EMX OS/2 environment" >&5
3894 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3917 echo "$ac_t""$ac_cv_emxos2" 1>&6
3919 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3923 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3924 echo "configure:3925: checking for executable suffix" >&5
3925 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3932 echo 'int main () { return 0; }' > conftest.$ac_ext
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3935 for file in conftest.*; do
3937 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3938 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3942 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3945 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3950 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3951 echo "$ac_t""${ac_cv_exeext}" 1>&6
3954 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3955 echo "configure:3956: checking for object suffix" >&5
3956 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3960 echo 'int i = 1;' > conftest.$ac_ext
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 for ac_file in conftest.*; do
3965 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3969 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3974 echo "$ac_t""$ac_cv_objext" 1>&6
3975 OBJEXT=$ac_cv_objext
3976 ac_objext=$ac_cv_objext
3979 cat >> confdefs.h <<EOF
3980 #define EXEEXT "${EXEEXT}"
3984 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3985 echo "configure:3986: checking for be_app in -lbe" >&5
3986 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS="$LIBS"
3991 LIBS="-lbe -lroot -lnet $LIBS"
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 eval "ac_cv_lib_$ac_lib_var=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4011 eval "ac_cv_lib_$ac_lib_var=no"
4014 LIBS="$ac_save_LIBS"
4017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 LIBS="$LIBS -lbe -lroot -lnet"
4021 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4030 echo "configure:4031: checking for ${CC-cc} option to accept ANSI C" >&5
4031 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 am_cv_prog_cc_stdc=no
4036 # Don't try gcc -ansi; that turns off useful extensions and
4037 # breaks some systems' header files.
4038 # AIX -qlanglvl=ansi
4039 # Ultrix and OSF/1 -std1
4040 # HP-UX 10.20 and later -Ae
4041 # HP-UX older versions -Aa -D_HPUX_SOURCE
4042 # SVR4 -Xc -D__EXTENSIONS__
4043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4071 int test (int i, double x);
4072 struct s1 {int (*f) (int a);};
4073 struct s2 {int (*f) (double a);};
4074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 am_cv_prog_cc_stdc="$ac_arg"; break
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4097 if test -z "$am_cv_prog_cc_stdc"; then
4098 echo "$ac_t""none needed" 1>&6
4100 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4102 case "x$am_cv_prog_cc_stdc" in
4104 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4107 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4108 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4111 # test for make depend flag
4114 if test -z "${MKDEP}"; then
4116 if test -z "${MKDEP_FLAGS}"; then
4117 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4118 echo "configure:4119: checking for ${OL_MKDEP} depend flag" >&5
4119 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4124 for flag in "-M" "-xM"; do
4125 cat > conftest.c <<EOF
4128 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4129 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4131 if test ! -f conftest."${ac_object}" ; then
4133 OL_MKDEP_FLAGS="$flag"
4142 echo "$ac_t""$ol_cv_mkdep" 1>&6
4145 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4150 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4155 if test "${ol_cv_mkdep}" = no ; then
4156 # this will soon become an error
4157 echo "configure: warning: do not know how to generate dependencies" 1>&2
4160 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4161 echo "configure:4162: checking for afopen in -ls" >&5
4162 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 ac_save_LIBS="$LIBS"
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* Override any gcc2 internal prototype to avoid an error. */
4172 /* We use char because int might match the return type of a gcc2
4173 builtin and then its argument prototype would still apply. */
4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4182 eval "ac_cv_lib_$ac_lib_var=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 eval "ac_cv_lib_$ac_lib_var=no"
4190 LIBS="$ac_save_LIBS"
4193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_AIX_SECURITY 1
4203 echo "$ac_t""no" 1>&6
4209 if test $ol_enable_modules != no ; then
4210 for ac_hdr in ltdl.h
4212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h <<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4251 if test $ac_cv_header_ltdl_h = no ; then
4252 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4255 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4256 echo "configure:4257: checking for lt_dlinit in -lltdl" >&5
4257 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_LIBLTDL 1
4298 echo "$ac_t""no" 1>&6
4302 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4303 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4307 ol_with_bdb_module=static
4308 ol_with_dnssrv_module=static
4309 ol_with_ldap_module=static
4310 ol_with_ldbm_module=static
4311 ol_with_passwd_module=static
4312 ol_with_perl_module=static
4313 ol_with_shell_module=static
4314 ol_with_tcl_module=static
4315 ol_with_sql_module=static
4319 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4320 echo "configure:4321: checking for EBCDIC" >&5
4321 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 #include <__ASCII__/generate_error.h>
4334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 ol_cv_cpp_ebcdic=yes
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4350 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4351 if test $ol_cv_cpp_ebcdic = yes ; then
4352 cat >> confdefs.h <<\EOF
4353 #define HAVE_EBCDIC 1
4358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4359 echo "configure:4360: checking for ANSI C header files" >&5
4360 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372 { (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374 if test -z "$ac_err"; then
4376 ol_cv_header_stdc=yes
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 ol_cv_header_stdc=no
4386 if test $ol_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "memchr" >/dev/null 2>&1; then
4398 ol_cv_header_stdc=no
4404 if test $ol_cv_header_stdc = yes; then
4405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "free" >/dev/null 2>&1; then
4416 ol_cv_header_stdc=no
4422 if test $ol_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4424 if test "$cross_compiling" = yes; then
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
4438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 int main () { int i; for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 ol_cv_header_stdc=no
4461 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4462 if test $ol_cv_header_stdc = yes; then
4463 cat >> confdefs.h <<\EOF
4464 #define STDC_HEADERS 1
4468 ac_cv_header_stdc=disable
4471 if test $ol_cv_header_stdc != yes; then
4472 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4476 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4479 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_hdr that defines DIR" >&5
4481 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 #include <sys/types.h>
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 eval "ac_cv_header_dirent_$ac_safe=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_header_dirent_$ac_safe=no"
4504 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_hdr 1
4510 ac_header_dirent=$ac_hdr; break
4512 echo "$ac_t""no" 1>&6
4515 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4516 if test $ac_header_dirent = dirent.h; then
4517 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4518 echo "configure:4519: checking for opendir in -ldir" >&5
4519 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 ac_save_LIBS="$LIBS"
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4539 eval "ac_cv_lib_$ac_lib_var=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_lib_$ac_lib_var=no"
4547 LIBS="$ac_save_LIBS"
4550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4559 echo "configure:4560: checking for opendir in -lx" >&5
4560 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 ac_save_LIBS="$LIBS"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 eval "ac_cv_lib_$ac_lib_var=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_lib_$ac_lib_var=no"
4588 LIBS="$ac_save_LIBS"
4591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4595 echo "$ac_t""no" 1>&6
4600 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4601 echo "configure:4602: checking for sys/wait.h that is POSIX.1 compatible" >&5
4602 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <sys/types.h>
4609 #include <sys/wait.h>
4611 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4614 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4622 if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 ac_cv_header_sys_wait_h=yes
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 ac_cv_header_sys_wait_h=no
4634 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4635 if test $ac_cv_header_sys_wait_h = yes; then
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_SYS_WAIT_H 1
4642 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4643 echo "configure:4644: checking POSIX termios" >&5
4644 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 #include <sys/types.h>
4652 #include <termios.h>
4654 /* SunOS 4.0.3 has termios.h but not the library calls. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 am_cv_sys_posix_termios=yes
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 am_cv_sys_posix_termios=no
4670 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4673 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4675 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4680 gwinsz_in_termios_h=no
4681 if test $am_cv_sys_posix_termios = yes; then
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 # include <termios.h>
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 egrep "yes" >/dev/null 2>&1; then
4695 gwinsz_in_termios_h=yes
4701 if test $gwinsz_in_termios_h = no; then
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <sys/types.h>
4706 # include <sys/ioctl.h>
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 egrep "yes" >/dev/null 2>&1; then
4715 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4723 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4724 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4725 cat >> confdefs.h <<\EOF
4726 #define GWINSZ_IN_SYS_IOCTL 1
4731 if test $am_cv_sys_posix_termios = yes ; then
4732 cat >> confdefs.h <<\EOF
4733 #define HAVE_POSIX_TERMIOS 1
4784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_hdr" >&5
4787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4796 { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4798 if test -z "$ac_err"; then
4800 eval "ac_cv_header_$ac_safe=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 eval "ac_cv_header_$ac_safe=no"
4810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_hdr 1
4818 echo "$ac_t""no" 1>&6
4825 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4826 echo "configure:4827: checking for dlopen" >&5
4827 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char dlopen(); below. */
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857 eval "ac_cv_func_dlopen=yes"
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 eval "ac_cv_func_dlopen=no"
4867 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4871 echo "$ac_t""no" 1>&6
4872 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4873 echo "configure:4874: checking for dlopen in -ldl" >&5
4874 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4875 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 ac_save_LIBS="$LIBS"
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 eval "ac_cv_lib_$ac_lib_var=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 eval "ac_cv_lib_$ac_lib_var=no"
4902 LIBS="$ac_save_LIBS"
4905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4907 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4909 cat >> confdefs.h <<EOF
4910 #define $ac_tr_lib 1
4916 echo "$ac_t""no" 1>&6
4922 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4923 echo "configure:4924: checking for sigset in -lV3" >&5
4924 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 ac_save_LIBS="$LIBS"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4944 eval "ac_cv_lib_$ac_lib_var=yes"
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4949 eval "ac_cv_lib_$ac_lib_var=no"
4952 LIBS="$ac_save_LIBS"
4955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4959 cat >> confdefs.h <<EOF
4960 #define $ac_tr_lib 1
4966 echo "$ac_t""no" 1>&6
4970 if test $ac_cv_header_winsock_h = yes; then
4971 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4972 echo "configure:4973: checking for winsock" >&5
4973 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 #include <winsock.h>
4983 select(0,NULL,NULL,NULL,NULL);
4985 gethostname(NULL,0);
4989 if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
5001 echo "$ac_t""$ol_cv_winsock" 1>&6
5003 if test $ol_cv_winsock = yes ; then
5004 cat >> confdefs.h <<\EOF
5005 #define HAVE_WINSOCK 1
5008 ac_cv_func_socket=yes
5009 ac_cv_func_select=yes
5010 ac_cv_func_closesocket=yes
5011 ac_cv_func_gethostname=yes
5016 echo $ac_n "checking for socket""... $ac_c" 1>&6
5017 echo "configure:5018: checking for socket" >&5
5018 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char socket(); below. */
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_socket) || defined (__stub___socket)
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 eval "ac_cv_func_socket=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_func_socket=no"
5058 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5062 echo "$ac_t""no" 1>&6
5064 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5065 echo "configure:5066: checking for main in -lsocket" >&5
5066 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5067 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 ac_save_LIBS="$LIBS"
5071 LIBS="-lsocket $LIBS"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 eval "ac_cv_lib_$ac_lib_var=no"
5090 LIBS="$ac_save_LIBS"
5093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5094 echo "$ac_t""yes" 1>&6
5095 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5097 cat >> confdefs.h <<EOF
5098 #define $ac_tr_lib 1
5101 LIBS="-lsocket $LIBS"
5104 echo "$ac_t""no" 1>&6
5107 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5108 echo "configure:5109: checking for main in -lnet" >&5
5109 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5110 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 ac_save_LIBS="$LIBS"
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 eval "ac_cv_lib_$ac_lib_var=yes"
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 eval "ac_cv_lib_$ac_lib_var=no"
5133 LIBS="$ac_save_LIBS"
5136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5140 cat >> confdefs.h <<EOF
5141 #define $ac_tr_lib 1
5147 echo "$ac_t""no" 1>&6
5150 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5151 echo "configure:5152: checking for main in -lnsl_s" >&5
5152 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 ac_save_LIBS="$LIBS"
5157 LIBS="-lnsl_s $LIBS"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 eval "ac_cv_lib_$ac_lib_var=yes"
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5173 eval "ac_cv_lib_$ac_lib_var=no"
5176 LIBS="$ac_save_LIBS"
5179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5180 echo "$ac_t""yes" 1>&6
5181 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5183 cat >> confdefs.h <<EOF
5184 #define $ac_tr_lib 1
5187 LIBS="-lnsl_s $LIBS"
5190 echo "$ac_t""no" 1>&6
5193 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5194 echo "configure:5195: checking for main in -lnsl" >&5
5195 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 ac_save_LIBS="$LIBS"
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5226 cat >> confdefs.h <<EOF
5227 #define $ac_tr_lib 1
5233 echo "$ac_t""no" 1>&6
5236 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5237 echo "configure:5238: checking for socket in -linet" >&5
5238 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 ac_save_LIBS="$LIBS"
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 eval "ac_cv_lib_$ac_lib_var=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_lib_$ac_lib_var=no"
5266 LIBS="$ac_save_LIBS"
5269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5271 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5273 cat >> confdefs.h <<EOF
5274 #define $ac_tr_lib 1
5280 echo "$ac_t""no" 1>&6
5283 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5284 echo "configure:5285: checking for main in -lgen" >&5
5285 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5286 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 ac_save_LIBS="$LIBS"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_lib_$ac_lib_var=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_lib_$ac_lib_var=no"
5309 LIBS="$ac_save_LIBS"
5312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5316 cat >> confdefs.h <<EOF
5317 #define $ac_tr_lib 1
5323 echo "$ac_t""no" 1>&6
5330 echo $ac_n "checking for select""... $ac_c" 1>&6
5331 echo "configure:5332: checking for select" >&5
5332 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char select(); below. */
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5349 /* The GNU C library defines this for functions which it implements
5350 to always fail with ENOSYS. Some functions are actually named
5351 something starting with __ and the normal name is an alias. */
5352 #if defined (__stub_select) || defined (__stub___select)
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_func_select=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_func_select=no"
5372 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5377 { echo "configure: error: select() required." 1>&2; exit 1; }
5381 if test "${ac_cv_header_winsock_h}" != yes; then
5382 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5383 echo "configure:5384: checking types of arguments for select()" >&5
5384 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5387 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5394 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5395 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 #ifdef HAVE_SYS_TYPES_H
5400 #include <sys/types.h>
5402 #ifdef HAVE_SYS_TIME_H
5403 #include <sys/time.h>
5405 #ifdef HAVE_SYS_SELECT_H
5406 #include <sys/select.h>
5408 #ifdef HAVE_SYS_SOCKET_H
5409 #include <sys/socket.h>
5411 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);
5416 if { (eval echo configure:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5418 ac_not_found=no ; break 3
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5435 if test "$ac_not_found" = yes; then
5436 ac_cv_func_select_arg1=int
5437 ac_cv_func_select_arg234='int *'
5438 ac_cv_func_select_arg5='struct timeval *'
5440 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5441 cat >> confdefs.h <<EOF
5442 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5445 cat >> confdefs.h <<EOF
5446 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5449 cat >> confdefs.h <<EOF
5450 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5457 for ac_hdr in regex.h
5459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5461 echo "configure:5462: checking for $ac_hdr" >&5
5462 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5471 { (eval echo configure:5472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5473 if test -z "$ac_err"; then
5475 eval "ac_cv_header_$ac_safe=yes"
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 eval "ac_cv_header_$ac_safe=no"
5485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5488 cat >> confdefs.h <<EOF
5489 #define $ac_tr_hdr 1
5493 echo "$ac_t""no" 1>&6
5497 if test "$ac_cv_header_regex_h" != yes ; then
5498 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5500 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5501 echo "configure:5502: checking for regfree" >&5
5502 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char regfree(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5519 /* The GNU C library defines this for functions which it implements
5520 to always fail with ENOSYS. Some functions are actually named
5521 something starting with __ and the normal name is an alias. */
5522 #if defined (__stub_regfree) || defined (__stub___regfree)
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 eval "ac_cv_func_regfree=yes"
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5537 eval "ac_cv_func_regfree=no"
5542 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5546 echo "$ac_t""no" 1>&6
5547 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5552 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5553 echo "configure:5554: checking for compatible POSIX regex" >&5
5554 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5558 if test "$cross_compiling" = yes; then
5559 ol_cv_c_posix_regex=cross
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5565 #include <sys/types.h>
5567 static char *pattern, *string;
5575 if(regcomp(&re, pattern, 0)) {
5579 string = "ALL MATCH";
5581 rc = regexec(&re, string, 0, (void*)0, 0);
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5590 ol_cv_c_posix_regex=yes
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 ol_cv_c_posix_regex=no
5602 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5604 if test "$ol_cv_c_posix_regex" = no ; then
5605 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5609 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5610 echo "configure:5611: checking for res_query" >&5
5611 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* System header to define __stub macros and hopefully few prototypes,
5618 which can conflict with char res_query(); below. */
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_res_query) || defined (__stub___res_query)
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_func_res_query=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_func_res_query=no"
5651 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5655 echo "$ac_t""no" 1>&6
5658 if test $ac_cv_func_res_query = no ; then
5659 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5660 echo "configure:5661: checking for res_query in -lbind" >&5
5661 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 ac_save_LIBS="$LIBS"
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 eval "ac_cv_lib_$ac_lib_var=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_lib_$ac_lib_var=no"
5689 LIBS="$ac_save_LIBS"
5692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5693 echo "$ac_t""yes" 1>&6
5694 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5695 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5696 cat >> confdefs.h <<EOF
5697 #define $ac_tr_lib 1
5703 echo "$ac_t""no" 1>&6
5706 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5709 if test $ac_cv_func_res_query = no ; then
5710 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5711 echo "configure:5712: checking for __res_query in -lbind" >&5
5712 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5716 ac_save_LIBS="$LIBS"
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 eval "ac_cv_lib_$ac_lib_var=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 eval "ac_cv_lib_$ac_lib_var=no"
5740 LIBS="$ac_save_LIBS"
5743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5747 cat >> confdefs.h <<EOF
5748 #define $ac_tr_lib 1
5754 echo "$ac_t""no" 1>&6
5757 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5760 if test $ac_cv_func_res_query = no ; then
5761 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5762 echo "configure:5763: checking for res_query in -lresolv" >&5
5763 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5767 ac_save_LIBS="$LIBS"
5768 LIBS="-lresolv $LIBS"
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783 eval "ac_cv_lib_$ac_lib_var=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 eval "ac_cv_lib_$ac_lib_var=no"
5791 LIBS="$ac_save_LIBS"
5794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5795 echo "$ac_t""yes" 1>&6
5796 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5798 cat >> confdefs.h <<EOF
5799 #define $ac_tr_lib 1
5802 LIBS="-lresolv $LIBS"
5805 echo "$ac_t""no" 1>&6
5808 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5811 if test "$ac_cv_func_res_query" = yes ; then
5812 cat >> confdefs.h <<\EOF
5813 #define HAVE_RES_QUERY 1
5817 if test $ol_enable_dnssrv != no ; then
5822 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5823 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5826 for ac_func in getaddrinfo inet_ntop
5828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_func" >&5
5830 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func(); below. */
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5884 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5885 if test $ol_enable_ipv6 = yes ; then
5886 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5889 for ac_func in gai_strerror
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char $ac_func(); below. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923 eval "ac_cv_func_$ac_func=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_func_$ac_func=no"
5933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5936 cat >> confdefs.h <<EOF
5937 #define $ac_tr_func 1
5941 echo "$ac_t""no" 1>&6
5946 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5947 echo "configure:5948: checking INET6_ADDRSTRLEN" >&5
5948 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5956 # include <netinet/in.h>
5957 # ifdef INET6_ADDRSTRLEN
5958 __has_inet6_addrstrlen__;
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5965 ol_cv_inet6_addrstrlen=yes
5968 ol_cv_inet6_addrstrlen=no
5974 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5976 if test $ol_cv_inet6_addrstrlen = yes ; then
5978 elif test $ol_enable_ipv6 = yes ; then
5979 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5983 if test $ol_enable_local != no ; then
5984 for ac_hdr in sys/un.h
5986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_hdr" >&5
5989 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5998 { (eval echo configure:5999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6000 if test -z "$ac_err"; then
6002 eval "ac_cv_header_$ac_safe=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_header_$ac_safe=no"
6012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_hdr 1
6020 echo "$ac_t""no" 1>&6
6025 if test $ol_enable_local = auto ; then
6026 ol_enable_local=$ac_cv_header_sys_un_h
6027 elif test $ac_cv_header_sys_un_h = no ; then
6028 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6037 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6038 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6039 -o $ol_with_kerberos = k425 ; then
6041 for ac_hdr in krb5.h
6043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6045 echo "configure:6046: checking for $ac_hdr" >&5
6046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6055 { (eval echo configure:6056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6057 if test -z "$ac_err"; then
6059 eval "ac_cv_header_$ac_safe=yes"
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 eval "ac_cv_header_$ac_safe=no"
6069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6072 cat >> confdefs.h <<EOF
6073 #define $ac_tr_hdr 1
6077 echo "$ac_t""no" 1>&6
6082 if test $ac_cv_header_krb5_h = yes ; then
6083 for ac_hdr in heim_err.h
6085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_hdr" >&5
6088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6099 if test -z "$ac_err"; then
6101 eval "ac_cv_header_$ac_safe=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_header_$ac_safe=no"
6111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6114 cat >> confdefs.h <<EOF
6115 #define $ac_tr_hdr 1
6119 echo "$ac_t""no" 1>&6
6123 if test $ac_cv_header_heim_err_h = yes ; then
6129 if test $krb5_impl = mit; then
6130 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6131 echo "configure:6132: checking for main in -lkrb5" >&5
6132 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6136 ac_save_LIBS="$LIBS"
6137 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_lib_$ac_lib_var=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_lib_$ac_lib_var=no"
6156 LIBS="$ac_save_LIBS"
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6162 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6164 echo "$ac_t""no" 1>&6
6169 elif test $krb5_impl = heimdal; then
6170 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6171 echo "configure:6172: checking for main in -lkrb5" >&5
6172 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6173 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 ac_save_LIBS="$LIBS"
6177 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 eval "ac_cv_lib_$ac_lib_var=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_lib_$ac_lib_var=no"
6196 LIBS="$ac_save_LIBS"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6202 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6204 echo "$ac_t""no" 1>&6
6209 cat >> confdefs.h <<\EOF
6210 #define HAVE_HEIMDAL_KERBEROS 1
6215 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6218 if test $have_krb5 = yes ; then
6221 cat >> confdefs.h <<\EOF
6226 if test $ol_enable_kpasswd != no ; then
6227 ol_link_kpasswd=yes;
6230 if test $ol_with_kerberos = k5only ; then
6231 ol_with_kerberos=found
6234 elif test $ol_with_kerberos != auto ; then
6235 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6241 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6242 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6244 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_hdr" >&5
6249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6252 cat > conftest.$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6258 { (eval echo configure:6259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6260 if test -z "$ac_err"; then
6262 eval "ac_cv_header_$ac_safe=yes"
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 eval "ac_cv_header_$ac_safe=no"
6272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6273 echo "$ac_t""yes" 1>&6
6274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6275 cat >> confdefs.h <<EOF
6276 #define $ac_tr_hdr 1
6280 echo "$ac_t""no" 1>&6
6285 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6286 if test $krb5_impl = mit; then
6287 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6288 echo "configure:6289: checking for main in -lkrb4" >&5
6289 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 ac_save_LIBS="$LIBS"
6294 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 eval "ac_cv_lib_$ac_lib_var=yes"
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 eval "ac_cv_lib_$ac_lib_var=no"
6313 LIBS="$ac_save_LIBS"
6316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6319 KRB4_LIBS="-lkrb4 -ldes425"
6321 echo "$ac_t""no" 1>&6
6326 elif test $krb5_impl = heimdal; then
6327 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6328 echo "configure:6329: checking for main in -lkrb4" >&5
6329 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6330 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 ac_save_LIBS="$LIBS"
6334 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6345 eval "ac_cv_lib_$ac_lib_var=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_lib_$ac_lib_var=no"
6353 LIBS="$ac_save_LIBS"
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6361 echo "$ac_t""no" 1>&6
6368 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6371 if test $have_k425 = yes ; then
6372 ol_with_kerberos=found
6375 cat >> confdefs.h <<\EOF
6376 #define HAVE_KRB425 1
6379 cat >> confdefs.h <<\EOF
6384 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6385 echo "configure:6386: checking for des_debug in Kerberos libraries" >&5
6386 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6391 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6396 #include <kerberosIV/krb.h>
6397 #include <kerberosIV/des.h>
6398 extern int des_debug;
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6408 ol_cv_var_des_debug=yes
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6413 ol_cv_var_des_debug=no
6420 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6422 if test $ol_cv_var_des_debug = yes ; then
6423 cat >> confdefs.h <<\EOF
6424 #define HAVE_DES_DEBUG 1
6434 if test $ol_link_krb5 = yes ; then
6435 ol_with_kerberos=found
6438 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6439 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6441 for ac_hdr in krb.h des.h krb-archaeology.h
6443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6445 echo "configure:6446: checking for $ac_hdr" >&5
6446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6455 { (eval echo configure:6456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6457 if test -z "$ac_err"; then
6459 eval "ac_cv_header_$ac_safe=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_header_$ac_safe=no"
6469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6472 cat >> confdefs.h <<EOF
6473 #define $ac_tr_hdr 1
6477 echo "$ac_t""no" 1>&6
6482 if test $ac_cv_header_krb_h = yes ; then
6483 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6484 echo "configure:6485: checking for main in -lkrb" >&5
6485 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 ac_save_LIBS="$LIBS"
6490 LIBS="-lkrb -ldes $LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 eval "ac_cv_lib_$ac_lib_var=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 eval "ac_cv_lib_$ac_lib_var=no"
6509 LIBS="$ac_save_LIBS"
6512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6516 echo "$ac_t""no" 1>&6
6521 if test $have_k4 = yes ; then
6522 ol_with_kerberos=found
6525 cat >> confdefs.h <<\EOF
6530 KRB4_LIBS="-lkrb -ldes"
6532 if test $ac_cv_header_krb_archaeology_h = yes ; then
6533 cat >> confdefs.h <<\EOF
6534 #define HAVE_KTH_KERBEROS 1
6542 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6546 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6549 elif test $ol_enable_kbind = yes ; then
6550 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6553 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_KERBEROS 1
6559 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6560 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6564 if test $ol_with_tls != no ; then
6565 for ac_hdr in openssl/ssl.h ssl.h
6567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6569 echo "configure:6570: checking for $ac_hdr" >&5
6570 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6579 { (eval echo configure:6580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6581 if test -z "$ac_err"; then
6583 eval "ac_cv_header_$ac_safe=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 eval "ac_cv_header_$ac_safe=no"
6593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6596 cat >> confdefs.h <<EOF
6597 #define $ac_tr_hdr 1
6601 echo "$ac_t""no" 1>&6
6606 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6607 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6608 echo "configure:6609: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6609 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 ac_save_LIBS="$LIBS"
6614 LIBS="-lssl -lcrypto $LIBS"
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6621 char SSLeay_add_ssl_algorithms();
6624 SSLeay_add_ssl_algorithms()
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6629 eval "ac_cv_lib_$ac_lib_var=yes"
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 eval "ac_cv_lib_$ac_lib_var=no"
6637 LIBS="$ac_save_LIBS"
6640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6645 echo "$ac_t""no" 1>&6
6650 if test $have_ssleay = no ; then
6651 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6652 echo "configure:6653: checking for SSL_library_init in -lssl" >&5
6653 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6654 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 ac_save_LIBS="$LIBS"
6658 LIBS="-lssl -lcrypto $LIBS"
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char SSL_library_init();
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 eval "ac_cv_lib_$ac_lib_var=yes"
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 eval "ac_cv_lib_$ac_lib_var=no"
6681 LIBS="$ac_save_LIBS"
6684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6689 echo "$ac_t""no" 1>&6
6695 if test $have_ssleay = no ; then
6696 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6697 echo "configure:6698: checking for ssl3_accept in -lssl" >&5
6698 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6702 ac_save_LIBS="$LIBS"
6703 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* Override any gcc2 internal prototype to avoid an error. */
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6718 eval "ac_cv_lib_$ac_lib_var=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 eval "ac_cv_lib_$ac_lib_var=no"
6726 LIBS="$ac_save_LIBS"
6729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6734 echo "$ac_t""no" 1>&6
6740 if test $have_ssleay = yes ; then
6744 cat >> confdefs.h <<\EOF
6745 #define HAVE_SSLEAY 1
6749 if test $need_rsaref = yes; then
6750 cat >> confdefs.h <<\EOF
6751 #define HAVE_RSAREF 1
6755 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6757 TLS_LIBS="-lssl -lcrypto"
6763 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6766 if test $ol_link_tls = yes ; then
6767 cat >> confdefs.h <<\EOF
6772 elif test $ol_with_tls = auto ; then
6773 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6774 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6776 elif test $ol_with_tls != no ; then
6777 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6780 if test $ol_enable_lmpasswd != no; then
6781 if test $ol_link_tls != yes ; then
6782 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6785 cat >> confdefs.h <<\EOF
6786 #define SLAPD_LMHASH 1
6793 gethostbyname_r gethostbyaddr_r \
6796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6797 echo "configure:6798: checking for $ac_func" >&5
6798 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 /* System header to define __stub macros and hopefully few prototypes,
6805 which can conflict with char $ac_func(); below. */
6807 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6815 /* The GNU C library defines this for functions which it implements
6816 to always fail with ENOSYS. Some functions are actually named
6817 something starting with __ and the normal name is an alias. */
6818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 if { (eval echo configure:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6828 eval "ac_cv_func_$ac_func=yes"
6830 echo "configure: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6833 eval "ac_cv_func_$ac_func=no"
6838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6839 echo "$ac_t""yes" 1>&6
6840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6841 cat >> confdefs.h <<EOF
6842 #define $ac_tr_func 1
6846 echo "$ac_t""no" 1>&6
6851 if test "$ac_cv_func_ctime_r" = no ; then
6852 ol_cv_func_ctime_r_nargs=0
6854 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6855 echo "configure:6856: checking number of arguments of ctime_r" >&5
6856 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6864 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6867 if { (eval echo configure:6868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6869 ol_cv_func_ctime_r_nargs3=yes
6871 echo "configure: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6874 ol_cv_func_ctime_r_nargs3=no
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6883 time_t ti; char *buffer; ctime_r(&ti,buffer);
6886 if { (eval echo configure:6887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6888 ol_cv_func_ctime_r_nargs2=yes
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 ol_cv_func_ctime_r_nargs2=no
6897 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6898 $ol_cv_func_ctime_r_nargs2 = no ; then
6900 ol_cv_func_ctime_r_nargs=3
6902 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6903 $ol_cv_func_ctime_r_nargs2 = yes ; then
6905 ol_cv_func_ctime_r_nargs=2
6908 ol_cv_func_ctime_r_nargs=0
6913 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6915 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6916 cat >> confdefs.h <<EOF
6917 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6924 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6925 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6926 echo "configure:6927: checking number of arguments of gethostbyname_r" >&5
6927 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <sys/types.h>
6934 #include <sys/socket.h>
6935 #include <netinet/in.h>
6937 #define BUFSIZE (sizeof(struct hostent)+10)
6939 struct hostent hent; char buffer[BUFSIZE];
6940 int bufsize=BUFSIZE;int h_errno;
6941 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6942 buffer, bufsize, &h_errno);
6945 if { (eval echo configure:6946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6947 ol_cv_func_gethostbyname_r_nargs5=yes
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6952 ol_cv_func_gethostbyname_r_nargs5=no
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 #include <sys/types.h>
6960 #include <sys/socket.h>
6961 #include <netinet/in.h>
6963 #define BUFSIZE (sizeof(struct hostent)+10)
6965 struct hostent hent;struct hostent *rhent;
6966 char buffer[BUFSIZE];
6967 int bufsize=BUFSIZE;int h_errno;
6968 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6972 if { (eval echo configure:6973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6974 ol_cv_func_gethostbyname_r_nargs6=yes
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 ol_cv_func_gethostbyname_r_nargs6=no
6983 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6984 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6986 ol_cv_func_gethostbyname_r_nargs=5
6988 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6989 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6991 ol_cv_func_gethostbyname_r_nargs=6
6994 ol_cv_func_gethostbyname_r_nargs=0
6999 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7000 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7001 cat >> confdefs.h <<EOF
7002 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7008 ol_cv_func_gethostbyname_r_nargs=0
7011 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7012 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7013 echo "configure:7014: checking number of arguments of gethostbyaddr_r" >&5
7014 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 #include <sys/types.h>
7021 #include <sys/socket.h>
7022 #include <netinet/in.h>
7024 #define BUFSIZE (sizeof(struct hostent)+10)
7026 struct hostent hent; char buffer[BUFSIZE];
7028 size_t alen=sizeof(struct in_addr);
7029 int bufsize=BUFSIZE;int h_errno;
7030 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7031 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7034 if { (eval echo configure:7035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036 ol_cv_func_gethostbyaddr_r_nargs7=yes
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 ol_cv_func_gethostbyaddr_r_nargs7=no
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 #include <sys/types.h>
7049 #include <sys/socket.h>
7050 #include <netinet/in.h>
7052 #define BUFSIZE (sizeof(struct hostent)+10)
7054 struct hostent hent;
7055 struct hostent *rhent; char buffer[BUFSIZE];
7057 size_t alen=sizeof(struct in_addr);
7058 int bufsize=BUFSIZE;int h_errno;
7059 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7060 alen, AF_INET, &hent, buffer, bufsize,
7064 if { (eval echo configure:7065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7066 ol_cv_func_gethostbyaddr_r_nargs8=yes
7068 echo "configure: failed program was:" >&5
7069 cat conftest.$ac_ext >&5
7071 ol_cv_func_gethostbyaddr_r_nargs8=no
7075 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7076 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7078 ol_cv_func_gethostbyaddr_r_nargs=7
7080 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7081 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7083 ol_cv_func_gethostbyaddr_r_nargs=8
7086 ol_cv_func_gethostbyaddr_r_nargs=0
7091 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7092 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7093 cat >> confdefs.h <<EOF
7094 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7100 ol_cv_func_gethostbyaddr_r_nargs=0
7103 if test "$ac_cv_func_ctime_r" = yes \
7104 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7105 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7106 -a "$ac_cv_func_gethostbyname_r" = yes \
7107 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7108 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7109 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7110 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7111 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7114 cat >> confdefs.h <<\EOF
7115 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7122 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7123 -o $ol_with_threads = nt ; then
7126 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7127 echo "configure:7128: checking for _beginthread" >&5
7128 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* System header to define __stub macros and hopefully few prototypes,
7135 which can conflict with char _beginthread(); below. */
7137 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7140 char _beginthread();
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 eval "ac_cv_func__beginthread=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_func__beginthread=no"
7168 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7172 echo "$ac_t""no" 1>&6
7176 if test $ac_cv_func__beginthread = yes ; then
7177 cat >> confdefs.h <<\EOF
7178 #define HAVE_NT_THREADS 1
7184 if test "$ol_cv_nt_threads" = yes ; then
7186 ol_with_threads=found
7187 ol_with_yielding_select=yes
7189 cat >> confdefs.h <<\EOF
7190 #define HAVE_NT_SERVICE_MANAGER 1
7193 cat >> confdefs.h <<\EOF
7194 #define HAVE_NT_EVENT_LOG 1
7199 if test $ol_with_threads = nt ; then
7200 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7204 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7205 -o $ol_with_threads = posix ; then
7207 for ac_hdr in pthread.h
7209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_hdr" >&5
7212 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7221 { (eval echo configure:7222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7223 if test -z "$ac_err"; then
7225 eval "ac_cv_header_$ac_safe=yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7231 eval "ac_cv_header_$ac_safe=no"
7235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7236 echo "$ac_t""yes" 1>&6
7237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7238 cat >> confdefs.h <<EOF
7239 #define $ac_tr_hdr 1
7243 echo "$ac_t""no" 1>&6
7248 if test $ac_cv_header_pthread_h = yes ; then
7249 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7250 echo "configure:7251: checking POSIX thread version" >&5
7251 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7259 # include <pthread.h>
7260 /* this check could be improved */
7261 # ifdef PTHREAD_ONCE_INIT
7262 pthread_version_final;
7266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7267 egrep "pthread_version_final" >/dev/null 2>&1; then
7269 ol_pthread_final=yes
7277 cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7281 # include <pthread.h>
7282 /* this check could be improved */
7283 # ifdef pthread_once_init
7284 pthread_version_draft4;
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7291 ol_pthread_draft4=yes
7294 ol_pthread_draft4=no
7299 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7300 ol_cv_pthread_version=final
7301 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7302 ol_cv_pthread_version=draft4
7304 ol_cv_pthread_version=unknown
7309 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7312 if test $ol_cv_pthread_version = final ; then
7313 cat >> confdefs.h <<\EOF
7314 #define HAVE_PTHREADS_FINAL 1
7317 elif test $ol_cv_pthread_version = draft4 ; then
7318 cat >> confdefs.h <<\EOF
7319 #define HAVE_PTHREADS_D4 1
7323 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7326 # consider threads found
7327 ol_with_threads=found
7330 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7331 echo "configure:7332: checking for LinuxThreads pthread.h" >&5
7332 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 #include <pthread.h>
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7343 ol_cv_header_linux_threads=yes
7346 ol_cv_header_linux_threads=no
7353 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7354 if test $ol_cv_header_linux_threads = yes; then
7355 cat >> confdefs.h <<\EOF
7356 #define HAVE_LINUX_THREADS 1
7362 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7363 echo "configure:7364: checking for GNU Pth pthread.h" >&5
7364 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 #include <pthread.h>
7371 #ifdef _POSIX_THREAD_IS_GNU_PTH
7376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377 egrep "__gnu_pth__" >/dev/null 2>&1; then
7379 ol_cv_header_gnu_pth_pthread_h=yes
7382 ol_cv_header_gnu_pth_pthread_h=no
7389 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7392 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7393 for ac_hdr in sched.h
7395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_hdr" >&5
7398 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7407 { (eval echo configure:7408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7409 if test -z "$ac_err"; then
7411 eval "ac_cv_header_$ac_safe=yes"
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7417 eval "ac_cv_header_$ac_safe=no"
7421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7422 echo "$ac_t""yes" 1>&6
7423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7424 cat >> confdefs.h <<EOF
7425 #define $ac_tr_hdr 1
7429 echo "$ac_t""no" 1>&6
7436 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7437 echo "configure:7438: checking for pthread_create in default libraries" >&5
7438 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7439 echo $ac_n "(cached) $ac_c" 1>&6
7442 if test "$cross_compiling" = yes; then
7443 cat > conftest.$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 /* pthread test headers */
7447 #include <pthread.h>
7449 #define NULL (void*)0
7452 static void *task(p)
7455 return (void *) (p == NULL);
7460 /* pthread test function */
7463 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7464 /* This system (e.g. AIX) defaults detached; must override */
7465 pthread_attr_t attr;
7467 status = pthread_attr_init(&attr);
7468 if( status ) exit( status );
7470 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7471 if( status ) exit( status );
7474 #elif defined( HAVE_PTHREADS_D4 )
7475 # define ATTR pthread_attr_default
7480 /* make sure pthread_create() isn't just a stub */
7481 status = pthread_create(&t, ATTR, task, NULL);
7482 if( status ) exit( status );
7484 /* give the thread a chance to complete...
7485 * it should remain joinable and hence detachable
7489 /* make sure pthread_detach() isn't just a stub */
7490 #if HAVE_PTHREADS_D4
7491 status = pthread_detach( &t );
7493 status = pthread_detach( t );
7496 #ifdef HAVE_LINUX_THREADS
7497 pthread_kill_other_threads_np();
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 ol_cv_pthread_create=yes
7508 echo "configure: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7511 ol_cv_pthread_create=no
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* pthread test headers */
7519 #include <pthread.h>
7521 #define NULL (void*)0
7524 static void *task(p)
7527 return (void *) (p == NULL);
7531 int main(argc, argv)
7536 /* pthread test function */
7539 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7540 /* This system (e.g. AIX) defaults detached; must override */
7541 pthread_attr_t attr;
7543 status = pthread_attr_init(&attr);
7544 if( status ) exit( status );
7546 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7547 if( status ) exit( status );
7550 #elif defined( HAVE_PTHREADS_D4 )
7551 # define ATTR pthread_attr_default
7556 /* make sure pthread_create() isn't just a stub */
7557 status = pthread_create(&t, ATTR, task, NULL);
7558 if( status ) exit( status );
7560 /* give the thread a chance to complete...
7561 * it should remain joinable and hence detachable
7565 /* make sure pthread_detach() isn't just a stub */
7566 #if HAVE_PTHREADS_D4
7567 status = pthread_detach( &t );
7569 status = pthread_detach( t );
7572 #ifdef HAVE_LINUX_THREADS
7573 pthread_kill_other_threads_np();
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7583 ol_cv_pthread_create=yes
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 ol_cv_pthread_create=no
7595 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7597 if test $ol_cv_pthread_create != no ; then
7598 ol_link_threads=posix
7602 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7603 if test "$ol_link_threads" = no ; then
7605 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7606 echo "configure:7607: checking for pthread link with -kthread" >&5
7607 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7613 LIBS="-kthread $LIBS"
7615 if test "$cross_compiling" = yes; then
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* pthread test headers */
7620 #include <pthread.h>
7622 #define NULL (void*)0
7625 static void *task(p)
7628 return (void *) (p == NULL);
7633 /* pthread test function */
7636 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7637 /* This system (e.g. AIX) defaults detached; must override */
7638 pthread_attr_t attr;
7640 status = pthread_attr_init(&attr);
7641 if( status ) exit( status );
7643 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7644 if( status ) exit( status );
7647 #elif defined( HAVE_PTHREADS_D4 )
7648 # define ATTR pthread_attr_default
7653 /* make sure pthread_create() isn't just a stub */
7654 status = pthread_create(&t, ATTR, task, NULL);
7655 if( status ) exit( status );
7657 /* give the thread a chance to complete...
7658 * it should remain joinable and hence detachable
7662 /* make sure pthread_detach() isn't just a stub */
7663 #if HAVE_PTHREADS_D4
7664 status = pthread_detach( &t );
7666 status = pthread_detach( t );
7669 #ifdef HAVE_LINUX_THREADS
7670 pthread_kill_other_threads_np();
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7679 ol_cv_pthread_kthread=yes
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7684 ol_cv_pthread_kthread=no
7688 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 /* pthread test headers */
7692 #include <pthread.h>
7694 #define NULL (void*)0
7697 static void *task(p)
7700 return (void *) (p == NULL);
7704 int main(argc, argv)
7709 /* pthread test function */
7712 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7713 /* This system (e.g. AIX) defaults detached; must override */
7714 pthread_attr_t attr;
7716 status = pthread_attr_init(&attr);
7717 if( status ) exit( status );
7719 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7720 if( status ) exit( status );
7723 #elif defined( HAVE_PTHREADS_D4 )
7724 # define ATTR pthread_attr_default
7729 /* make sure pthread_create() isn't just a stub */
7730 status = pthread_create(&t, ATTR, task, NULL);
7731 if( status ) exit( status );
7733 /* give the thread a chance to complete...
7734 * it should remain joinable and hence detachable
7738 /* make sure pthread_detach() isn't just a stub */
7739 #if HAVE_PTHREADS_D4
7740 status = pthread_detach( &t );
7742 status = pthread_detach( t );
7745 #ifdef HAVE_LINUX_THREADS
7746 pthread_kill_other_threads_np();
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7756 ol_cv_pthread_kthread=yes
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7761 ol_cv_pthread_kthread=no
7772 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7774 if test $ol_cv_pthread_kthread = yes ; then
7775 ol_link_pthreads="-kthread"
7776 ol_link_threads=posix
7780 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7781 if test "$ol_link_threads" = no ; then
7783 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7784 echo "configure:7785: checking for pthread link with -pthread" >&5
7785 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7791 LIBS="-pthread $LIBS"
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 */
7814 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7815 /* This system (e.g. AIX) defaults detached; must override */
7816 pthread_attr_t attr;
7818 status = pthread_attr_init(&attr);
7819 if( status ) exit( status );
7821 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7822 if( status ) exit( status );
7825 #elif defined( HAVE_PTHREADS_D4 )
7826 # define ATTR pthread_attr_default
7831 /* make sure pthread_create() isn't just a stub */
7832 status = pthread_create(&t, ATTR, task, NULL);
7833 if( status ) exit( status );
7835 /* give the thread a chance to complete...
7836 * it should remain joinable and hence detachable
7840 /* make sure pthread_detach() isn't just a stub */
7841 #if HAVE_PTHREADS_D4
7842 status = pthread_detach( &t );
7844 status = pthread_detach( t );
7847 #ifdef HAVE_LINUX_THREADS
7848 pthread_kill_other_threads_np();
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7857 ol_cv_pthread_pthread=yes
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7862 ol_cv_pthread_pthread=no
7866 cat > conftest.$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7869 /* pthread test headers */
7870 #include <pthread.h>
7872 #define NULL (void*)0
7875 static void *task(p)
7878 return (void *) (p == NULL);
7882 int main(argc, argv)
7887 /* pthread test function */
7890 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7891 /* This system (e.g. AIX) defaults detached; must override */
7892 pthread_attr_t attr;
7894 status = pthread_attr_init(&attr);
7895 if( status ) exit( status );
7897 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7898 if( status ) exit( status );
7901 #elif defined( HAVE_PTHREADS_D4 )
7902 # define ATTR pthread_attr_default
7907 /* make sure pthread_create() isn't just a stub */
7908 status = pthread_create(&t, ATTR, task, NULL);
7909 if( status ) exit( status );
7911 /* give the thread a chance to complete...
7912 * it should remain joinable and hence detachable
7916 /* make sure pthread_detach() isn't just a stub */
7917 #if HAVE_PTHREADS_D4
7918 status = pthread_detach( &t );
7920 status = pthread_detach( t );
7923 #ifdef HAVE_LINUX_THREADS
7924 pthread_kill_other_threads_np();
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7934 ol_cv_pthread_pthread=yes
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 ol_cv_pthread_pthread=no
7950 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7952 if test $ol_cv_pthread_pthread = yes ; then
7953 ol_link_pthreads="-pthread"
7954 ol_link_threads=posix
7958 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7959 if test "$ol_link_threads" = no ; then
7961 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7962 echo "configure:7963: checking for pthread link with -pthreads" >&5
7963 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7969 LIBS="-pthreads $LIBS"
7971 if test "$cross_compiling" = yes; then
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7975 /* pthread test headers */
7976 #include <pthread.h>
7978 #define NULL (void*)0
7981 static void *task(p)
7984 return (void *) (p == NULL);
7989 /* pthread test function */
7992 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7993 /* This system (e.g. AIX) defaults detached; must override */
7994 pthread_attr_t attr;
7996 status = pthread_attr_init(&attr);
7997 if( status ) exit( status );
7999 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8000 if( status ) exit( status );
8003 #elif defined( HAVE_PTHREADS_D4 )
8004 # define ATTR pthread_attr_default
8009 /* make sure pthread_create() isn't just a stub */
8010 status = pthread_create(&t, ATTR, task, NULL);
8011 if( status ) exit( status );
8013 /* give the thread a chance to complete...
8014 * it should remain joinable and hence detachable
8018 /* make sure pthread_detach() isn't just a stub */
8019 #if HAVE_PTHREADS_D4
8020 status = pthread_detach( &t );
8022 status = pthread_detach( t );
8025 #ifdef HAVE_LINUX_THREADS
8026 pthread_kill_other_threads_np();
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8035 ol_cv_pthread_pthreads=yes
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8040 ol_cv_pthread_pthreads=no
8044 cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* pthread test headers */
8048 #include <pthread.h>
8050 #define NULL (void*)0
8053 static void *task(p)
8056 return (void *) (p == NULL);
8060 int main(argc, argv)
8065 /* pthread test function */
8068 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8069 /* This system (e.g. AIX) defaults detached; must override */
8070 pthread_attr_t attr;
8072 status = pthread_attr_init(&attr);
8073 if( status ) exit( status );
8075 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8076 if( status ) exit( status );
8079 #elif defined( HAVE_PTHREADS_D4 )
8080 # define ATTR pthread_attr_default
8085 /* make sure pthread_create() isn't just a stub */
8086 status = pthread_create(&t, ATTR, task, NULL);
8087 if( status ) exit( status );
8089 /* give the thread a chance to complete...
8090 * it should remain joinable and hence detachable
8094 /* make sure pthread_detach() isn't just a stub */
8095 #if HAVE_PTHREADS_D4
8096 status = pthread_detach( &t );
8098 status = pthread_detach( t );
8101 #ifdef HAVE_LINUX_THREADS
8102 pthread_kill_other_threads_np();
8110 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8112 ol_cv_pthread_pthreads=yes
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8117 ol_cv_pthread_pthreads=no
8128 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8130 if test $ol_cv_pthread_pthreads = yes ; then
8131 ol_link_pthreads="-pthreads"
8132 ol_link_threads=posix
8136 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8137 if test "$ol_link_threads" = no ; then
8139 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8140 echo "configure:8141: checking for pthread link with -mthreads" >&5
8141 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8147 LIBS="-mthreads $LIBS"
8149 if test "$cross_compiling" = yes; then
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8153 /* pthread test headers */
8154 #include <pthread.h>
8156 #define NULL (void*)0
8159 static void *task(p)
8162 return (void *) (p == NULL);
8167 /* pthread test function */
8170 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8171 /* This system (e.g. AIX) defaults detached; must override */
8172 pthread_attr_t attr;
8174 status = pthread_attr_init(&attr);
8175 if( status ) exit( status );
8177 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8178 if( status ) exit( status );
8181 #elif defined( HAVE_PTHREADS_D4 )
8182 # define ATTR pthread_attr_default
8187 /* make sure pthread_create() isn't just a stub */
8188 status = pthread_create(&t, ATTR, task, NULL);
8189 if( status ) exit( status );
8191 /* give the thread a chance to complete...
8192 * it should remain joinable and hence detachable
8196 /* make sure pthread_detach() isn't just a stub */
8197 #if HAVE_PTHREADS_D4
8198 status = pthread_detach( &t );
8200 status = pthread_detach( t );
8203 #ifdef HAVE_LINUX_THREADS
8204 pthread_kill_other_threads_np();
8211 if { (eval echo configure:8212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8213 ol_cv_pthread_mthreads=yes
8215 echo "configure: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8218 ol_cv_pthread_mthreads=no
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure"
8224 #include "confdefs.h"
8225 /* pthread test headers */
8226 #include <pthread.h>
8228 #define NULL (void*)0
8231 static void *task(p)
8234 return (void *) (p == NULL);
8238 int main(argc, argv)
8243 /* pthread test function */
8246 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8247 /* This system (e.g. AIX) defaults detached; must override */
8248 pthread_attr_t attr;
8250 status = pthread_attr_init(&attr);
8251 if( status ) exit( status );
8253 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8254 if( status ) exit( status );
8257 #elif defined( HAVE_PTHREADS_D4 )
8258 # define ATTR pthread_attr_default
8263 /* make sure pthread_create() isn't just a stub */
8264 status = pthread_create(&t, ATTR, task, NULL);
8265 if( status ) exit( status );
8267 /* give the thread a chance to complete...
8268 * it should remain joinable and hence detachable
8272 /* make sure pthread_detach() isn't just a stub */
8273 #if HAVE_PTHREADS_D4
8274 status = pthread_detach( &t );
8276 status = pthread_detach( t );
8279 #ifdef HAVE_LINUX_THREADS
8280 pthread_kill_other_threads_np();
8288 if { (eval echo configure:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8290 ol_cv_pthread_mthreads=yes
8292 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8295 ol_cv_pthread_mthreads=no
8306 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8308 if test $ol_cv_pthread_mthreads = yes ; then
8309 ol_link_pthreads="-mthreads"
8310 ol_link_threads=posix
8314 # Pthread try link: -thread (ol_cv_pthread_thread)
8315 if test "$ol_link_threads" = no ; then
8317 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8318 echo "configure:8319: checking for pthread link with -thread" >&5
8319 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8325 LIBS="-thread $LIBS"
8327 if test "$cross_compiling" = yes; then
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* pthread test headers */
8332 #include <pthread.h>
8334 #define NULL (void*)0
8337 static void *task(p)
8340 return (void *) (p == NULL);
8345 /* pthread test function */
8348 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8349 /* This system (e.g. AIX) defaults detached; must override */
8350 pthread_attr_t attr;
8352 status = pthread_attr_init(&attr);
8353 if( status ) exit( status );
8355 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8356 if( status ) exit( status );
8359 #elif defined( HAVE_PTHREADS_D4 )
8360 # define ATTR pthread_attr_default
8365 /* make sure pthread_create() isn't just a stub */
8366 status = pthread_create(&t, ATTR, task, NULL);
8367 if( status ) exit( status );
8369 /* give the thread a chance to complete...
8370 * it should remain joinable and hence detachable
8374 /* make sure pthread_detach() isn't just a stub */
8375 #if HAVE_PTHREADS_D4
8376 status = pthread_detach( &t );
8378 status = pthread_detach( t );
8381 #ifdef HAVE_LINUX_THREADS
8382 pthread_kill_other_threads_np();
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8391 ol_cv_pthread_thread=yes
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8396 ol_cv_pthread_thread=no
8400 cat > conftest.$ac_ext <<EOF
8401 #line 8402 "configure"
8402 #include "confdefs.h"
8403 /* pthread test headers */
8404 #include <pthread.h>
8406 #define NULL (void*)0
8409 static void *task(p)
8412 return (void *) (p == NULL);
8416 int main(argc, argv)
8421 /* pthread test function */
8424 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8425 /* This system (e.g. AIX) defaults detached; must override */
8426 pthread_attr_t attr;
8428 status = pthread_attr_init(&attr);
8429 if( status ) exit( status );
8431 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8432 if( status ) exit( status );
8435 #elif defined( HAVE_PTHREADS_D4 )
8436 # define ATTR pthread_attr_default
8441 /* make sure pthread_create() isn't just a stub */
8442 status = pthread_create(&t, ATTR, task, NULL);
8443 if( status ) exit( status );
8445 /* give the thread a chance to complete...
8446 * it should remain joinable and hence detachable
8450 /* make sure pthread_detach() isn't just a stub */
8451 #if HAVE_PTHREADS_D4
8452 status = pthread_detach( &t );
8454 status = pthread_detach( t );
8457 #ifdef HAVE_LINUX_THREADS
8458 pthread_kill_other_threads_np();
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8468 ol_cv_pthread_thread=yes
8470 echo "configure: failed program was:" >&5
8471 cat conftest.$ac_ext >&5
8473 ol_cv_pthread_thread=no
8484 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8486 if test $ol_cv_pthread_thread = yes ; then
8487 ol_link_pthreads="-thread"
8488 ol_link_threads=posix
8493 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8494 if test "$ol_link_threads" = no ; then
8495 # try -lpthread -lmach -lexc -lc_r
8496 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8497 echo "configure:8498: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8498 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8504 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8506 if test "$cross_compiling" = yes; then
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 /* pthread test headers */
8511 #include <pthread.h>
8513 #define NULL (void*)0
8516 static void *task(p)
8519 return (void *) (p == NULL);
8524 /* pthread test function */
8527 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8528 /* This system (e.g. AIX) defaults detached; must override */
8529 pthread_attr_t attr;
8531 status = pthread_attr_init(&attr);
8532 if( status ) exit( status );
8534 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8535 if( status ) exit( status );
8538 #elif defined( HAVE_PTHREADS_D4 )
8539 # define ATTR pthread_attr_default
8544 /* make sure pthread_create() isn't just a stub */
8545 status = pthread_create(&t, ATTR, task, NULL);
8546 if( status ) exit( status );
8548 /* give the thread a chance to complete...
8549 * it should remain joinable and hence detachable
8553 /* make sure pthread_detach() isn't just a stub */
8554 #if HAVE_PTHREADS_D4
8555 status = pthread_detach( &t );
8557 status = pthread_detach( t );
8560 #ifdef HAVE_LINUX_THREADS
8561 pthread_kill_other_threads_np();
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8570 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* pthread test headers */
8583 #include <pthread.h>
8585 #define NULL (void*)0
8588 static void *task(p)
8591 return (void *) (p == NULL);
8595 int main(argc, argv)
8600 /* pthread test function */
8603 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8604 /* This system (e.g. AIX) defaults detached; must override */
8605 pthread_attr_t attr;
8607 status = pthread_attr_init(&attr);
8608 if( status ) exit( status );
8610 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8611 if( status ) exit( status );
8614 #elif defined( HAVE_PTHREADS_D4 )
8615 # define ATTR pthread_attr_default
8620 /* make sure pthread_create() isn't just a stub */
8621 status = pthread_create(&t, ATTR, task, NULL);
8622 if( status ) exit( status );
8624 /* give the thread a chance to complete...
8625 * it should remain joinable and hence detachable
8629 /* make sure pthread_detach() isn't just a stub */
8630 #if HAVE_PTHREADS_D4
8631 status = pthread_detach( &t );
8633 status = pthread_detach( t );
8636 #ifdef HAVE_LINUX_THREADS
8637 pthread_kill_other_threads_np();
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8647 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8663 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8665 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8666 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8667 ol_link_threads=posix
8671 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8672 if test "$ol_link_threads" = no ; then
8673 # try -lpthread -lmach -lexc
8674 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8675 echo "configure:8676: checking for pthread link with -lpthread -lmach -lexc" >&5
8676 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8682 LIBS="-lpthread -lmach -lexc $LIBS"
8684 if test "$cross_compiling" = yes; then
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 /* pthread test headers */
8689 #include <pthread.h>
8691 #define NULL (void*)0
8694 static void *task(p)
8697 return (void *) (p == NULL);
8702 /* pthread test function */
8705 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8706 /* This system (e.g. AIX) defaults detached; must override */
8707 pthread_attr_t attr;
8709 status = pthread_attr_init(&attr);
8710 if( status ) exit( status );
8712 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8713 if( status ) exit( status );
8716 #elif defined( HAVE_PTHREADS_D4 )
8717 # define ATTR pthread_attr_default
8722 /* make sure pthread_create() isn't just a stub */
8723 status = pthread_create(&t, ATTR, task, NULL);
8724 if( status ) exit( status );
8726 /* give the thread a chance to complete...
8727 * it should remain joinable and hence detachable
8731 /* make sure pthread_detach() isn't just a stub */
8732 #if HAVE_PTHREADS_D4
8733 status = pthread_detach( &t );
8735 status = pthread_detach( t );
8738 #ifdef HAVE_LINUX_THREADS
8739 pthread_kill_other_threads_np();
8746 if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8748 ol_cv_pthread_lpthread_lmach_lexc=yes
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 ol_cv_pthread_lpthread_lmach_lexc=no
8757 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure"
8759 #include "confdefs.h"
8760 /* pthread test headers */
8761 #include <pthread.h>
8763 #define NULL (void*)0
8766 static void *task(p)
8769 return (void *) (p == NULL);
8773 int main(argc, argv)
8778 /* pthread test function */
8781 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8782 /* This system (e.g. AIX) defaults detached; must override */
8783 pthread_attr_t attr;
8785 status = pthread_attr_init(&attr);
8786 if( status ) exit( status );
8788 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8789 if( status ) exit( status );
8792 #elif defined( HAVE_PTHREADS_D4 )
8793 # define ATTR pthread_attr_default
8798 /* make sure pthread_create() isn't just a stub */
8799 status = pthread_create(&t, ATTR, task, NULL);
8800 if( status ) exit( status );
8802 /* give the thread a chance to complete...
8803 * it should remain joinable and hence detachable
8807 /* make sure pthread_detach() isn't just a stub */
8808 #if HAVE_PTHREADS_D4
8809 status = pthread_detach( &t );
8811 status = pthread_detach( t );
8814 #ifdef HAVE_LINUX_THREADS
8815 pthread_kill_other_threads_np();
8823 if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8825 ol_cv_pthread_lpthread_lmach_lexc=yes
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 ol_cv_pthread_lpthread_lmach_lexc=no
8841 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8843 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8844 ol_link_pthreads="-lpthread -lmach -lexc"
8845 ol_link_threads=posix
8850 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8851 if test "$ol_link_threads" = no ; then
8852 # try -lpthread -Wl,-woff,85
8853 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8854 echo "configure:8855: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8855 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8861 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8863 if test "$cross_compiling" = yes; then
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure"
8866 #include "confdefs.h"
8867 /* pthread test headers */
8868 #include <pthread.h>
8870 #define NULL (void*)0
8873 static void *task(p)
8876 return (void *) (p == NULL);
8881 /* pthread test function */
8884 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8885 /* This system (e.g. AIX) defaults detached; must override */
8886 pthread_attr_t attr;
8888 status = pthread_attr_init(&attr);
8889 if( status ) exit( status );
8891 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8892 if( status ) exit( status );
8895 #elif defined( HAVE_PTHREADS_D4 )
8896 # define ATTR pthread_attr_default
8901 /* make sure pthread_create() isn't just a stub */
8902 status = pthread_create(&t, ATTR, task, NULL);
8903 if( status ) exit( status );
8905 /* give the thread a chance to complete...
8906 * it should remain joinable and hence detachable
8910 /* make sure pthread_detach() isn't just a stub */
8911 #if HAVE_PTHREADS_D4
8912 status = pthread_detach( &t );
8914 status = pthread_detach( t );
8917 #ifdef HAVE_LINUX_THREADS
8918 pthread_kill_other_threads_np();
8925 if { (eval echo configure:8926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8927 ol_cv_pthread_lib_lpthread_woff=yes
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8932 ol_cv_pthread_lib_lpthread_woff=no
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 /* pthread test headers */
8940 #include <pthread.h>
8942 #define NULL (void*)0
8945 static void *task(p)
8948 return (void *) (p == NULL);
8952 int main(argc, argv)
8957 /* pthread test function */
8960 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8961 /* This system (e.g. AIX) defaults detached; must override */
8962 pthread_attr_t attr;
8964 status = pthread_attr_init(&attr);
8965 if( status ) exit( status );
8967 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8968 if( status ) exit( status );
8971 #elif defined( HAVE_PTHREADS_D4 )
8972 # define ATTR pthread_attr_default
8977 /* make sure pthread_create() isn't just a stub */
8978 status = pthread_create(&t, ATTR, task, NULL);
8979 if( status ) exit( status );
8981 /* give the thread a chance to complete...
8982 * it should remain joinable and hence detachable
8986 /* make sure pthread_detach() isn't just a stub */
8987 #if HAVE_PTHREADS_D4
8988 status = pthread_detach( &t );
8990 status = pthread_detach( t );
8993 #ifdef HAVE_LINUX_THREADS
8994 pthread_kill_other_threads_np();
9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9004 ol_cv_pthread_lib_lpthread_woff=yes
9006 echo "configure: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9009 ol_cv_pthread_lib_lpthread_woff=no
9020 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9022 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9023 ol_link_pthreads="-lpthread -Wl,-woff,85"
9024 ol_link_threads=posix
9029 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9030 if test "$ol_link_threads" = no ; then
9032 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9033 echo "configure:9034: checking for pthread link with -lpthread" >&5
9034 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9040 LIBS="-lpthread $LIBS"
9042 if test "$cross_compiling" = yes; then
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9046 /* pthread test headers */
9047 #include <pthread.h>
9049 #define NULL (void*)0
9052 static void *task(p)
9055 return (void *) (p == NULL);
9060 /* pthread test function */
9063 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9064 /* This system (e.g. AIX) defaults detached; must override */
9065 pthread_attr_t attr;
9067 status = pthread_attr_init(&attr);
9068 if( status ) exit( status );
9070 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9071 if( status ) exit( status );
9074 #elif defined( HAVE_PTHREADS_D4 )
9075 # define ATTR pthread_attr_default
9080 /* make sure pthread_create() isn't just a stub */
9081 status = pthread_create(&t, ATTR, task, NULL);
9082 if( status ) exit( status );
9084 /* give the thread a chance to complete...
9085 * it should remain joinable and hence detachable
9089 /* make sure pthread_detach() isn't just a stub */
9090 #if HAVE_PTHREADS_D4
9091 status = pthread_detach( &t );
9093 status = pthread_detach( t );
9096 #ifdef HAVE_LINUX_THREADS
9097 pthread_kill_other_threads_np();
9104 if { (eval echo configure:9105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9106 ol_cv_pthread_lpthread=yes
9108 echo "configure: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9111 ol_cv_pthread_lpthread=no
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 /* pthread test headers */
9119 #include <pthread.h>
9121 #define NULL (void*)0
9124 static void *task(p)
9127 return (void *) (p == NULL);
9131 int main(argc, argv)
9136 /* pthread test function */
9139 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9140 /* This system (e.g. AIX) defaults detached; must override */
9141 pthread_attr_t attr;
9143 status = pthread_attr_init(&attr);
9144 if( status ) exit( status );
9146 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9147 if( status ) exit( status );
9150 #elif defined( HAVE_PTHREADS_D4 )
9151 # define ATTR pthread_attr_default
9156 /* make sure pthread_create() isn't just a stub */
9157 status = pthread_create(&t, ATTR, task, NULL);
9158 if( status ) exit( status );
9160 /* give the thread a chance to complete...
9161 * it should remain joinable and hence detachable
9165 /* make sure pthread_detach() isn't just a stub */
9166 #if HAVE_PTHREADS_D4
9167 status = pthread_detach( &t );
9169 status = pthread_detach( t );
9172 #ifdef HAVE_LINUX_THREADS
9173 pthread_kill_other_threads_np();
9181 if { (eval echo configure:9182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9183 ol_cv_pthread_lpthread=yes
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 ol_cv_pthread_lpthread=no
9199 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9201 if test $ol_cv_pthread_lpthread = yes ; then
9202 ol_link_pthreads="-lpthread"
9203 ol_link_threads=posix
9207 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9208 if test "$ol_link_threads" = no ; then
9210 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9211 echo "configure:9212: checking for pthread link with -lc_r" >&5
9212 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9213 echo $ac_n "(cached) $ac_c" 1>&6
9220 if test "$cross_compiling" = yes; then
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* pthread test headers */
9225 #include <pthread.h>
9227 #define NULL (void*)0
9230 static void *task(p)
9233 return (void *) (p == NULL);
9238 /* pthread test function */
9241 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9242 /* This system (e.g. AIX) defaults detached; must override */
9243 pthread_attr_t attr;
9245 status = pthread_attr_init(&attr);
9246 if( status ) exit( status );
9248 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9249 if( status ) exit( status );
9252 #elif defined( HAVE_PTHREADS_D4 )
9253 # define ATTR pthread_attr_default
9258 /* make sure pthread_create() isn't just a stub */
9259 status = pthread_create(&t, ATTR, task, NULL);
9260 if( status ) exit( status );
9262 /* give the thread a chance to complete...
9263 * it should remain joinable and hence detachable
9267 /* make sure pthread_detach() isn't just a stub */
9268 #if HAVE_PTHREADS_D4
9269 status = pthread_detach( &t );
9271 status = pthread_detach( t );
9274 #ifdef HAVE_LINUX_THREADS
9275 pthread_kill_other_threads_np();
9282 if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9284 ol_cv_pthread_lc_r=yes
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9289 ol_cv_pthread_lc_r=no
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 /* pthread test headers */
9297 #include <pthread.h>
9299 #define NULL (void*)0
9302 static void *task(p)
9305 return (void *) (p == NULL);
9309 int main(argc, argv)
9314 /* pthread test function */
9317 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9318 /* This system (e.g. AIX) defaults detached; must override */
9319 pthread_attr_t attr;
9321 status = pthread_attr_init(&attr);
9322 if( status ) exit( status );
9324 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9325 if( status ) exit( status );
9328 #elif defined( HAVE_PTHREADS_D4 )
9329 # define ATTR pthread_attr_default
9334 /* make sure pthread_create() isn't just a stub */
9335 status = pthread_create(&t, ATTR, task, NULL);
9336 if( status ) exit( status );
9338 /* give the thread a chance to complete...
9339 * it should remain joinable and hence detachable
9343 /* make sure pthread_detach() isn't just a stub */
9344 #if HAVE_PTHREADS_D4
9345 status = pthread_detach( &t );
9347 status = pthread_detach( t );
9350 #ifdef HAVE_LINUX_THREADS
9351 pthread_kill_other_threads_np();
9359 if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9361 ol_cv_pthread_lc_r=yes
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9366 ol_cv_pthread_lc_r=no
9377 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9379 if test $ol_cv_pthread_lc_r = yes ; then
9380 ol_link_pthreads="-lc_r"
9381 ol_link_threads=posix
9386 # Pthread try link: -threads (ol_cv_pthread_threads)
9387 if test "$ol_link_threads" = no ; then
9389 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9390 echo "configure:9391: checking for pthread link with -threads" >&5
9391 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9392 echo $ac_n "(cached) $ac_c" 1>&6
9397 LIBS="-threads $LIBS"
9399 if test "$cross_compiling" = yes; then
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* pthread test headers */
9404 #include <pthread.h>
9406 #define NULL (void*)0
9409 static void *task(p)
9412 return (void *) (p == NULL);
9417 /* pthread test function */
9420 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9421 /* This system (e.g. AIX) defaults detached; must override */
9422 pthread_attr_t attr;
9424 status = pthread_attr_init(&attr);
9425 if( status ) exit( status );
9427 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9428 if( status ) exit( status );
9431 #elif defined( HAVE_PTHREADS_D4 )
9432 # define ATTR pthread_attr_default
9437 /* make sure pthread_create() isn't just a stub */
9438 status = pthread_create(&t, ATTR, task, NULL);
9439 if( status ) exit( status );
9441 /* give the thread a chance to complete...
9442 * it should remain joinable and hence detachable
9446 /* make sure pthread_detach() isn't just a stub */
9447 #if HAVE_PTHREADS_D4
9448 status = pthread_detach( &t );
9450 status = pthread_detach( t );
9453 #ifdef HAVE_LINUX_THREADS
9454 pthread_kill_other_threads_np();
9461 if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9463 ol_cv_pthread_threads=yes
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9468 ol_cv_pthread_threads=no
9472 cat > conftest.$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 /* pthread test headers */
9476 #include <pthread.h>
9478 #define NULL (void*)0
9481 static void *task(p)
9484 return (void *) (p == NULL);
9488 int main(argc, argv)
9493 /* pthread test function */
9496 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9497 /* This system (e.g. AIX) defaults detached; must override */
9498 pthread_attr_t attr;
9500 status = pthread_attr_init(&attr);
9501 if( status ) exit( status );
9503 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9504 if( status ) exit( status );
9507 #elif defined( HAVE_PTHREADS_D4 )
9508 # define ATTR pthread_attr_default
9513 /* make sure pthread_create() isn't just a stub */
9514 status = pthread_create(&t, ATTR, task, NULL);
9515 if( status ) exit( status );
9517 /* give the thread a chance to complete...
9518 * it should remain joinable and hence detachable
9522 /* make sure pthread_detach() isn't just a stub */
9523 #if HAVE_PTHREADS_D4
9524 status = pthread_detach( &t );
9526 status = pthread_detach( t );
9529 #ifdef HAVE_LINUX_THREADS
9530 pthread_kill_other_threads_np();
9538 if { (eval echo configure:9539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9540 ol_cv_pthread_threads=yes
9542 echo "configure: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 ol_cv_pthread_threads=no
9556 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9558 if test $ol_cv_pthread_threads = yes ; then
9559 ol_link_pthreads="-threads"
9560 ol_link_threads=posix
9565 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9566 if test "$ol_link_threads" = no ; then
9567 # try -lpthreads -lmach -lexc -lc_r
9568 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9569 echo "configure:9570: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9570 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9571 echo $ac_n "(cached) $ac_c" 1>&6
9576 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9578 if test "$cross_compiling" = yes; then
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 /* pthread test headers */
9583 #include <pthread.h>
9585 #define NULL (void*)0
9588 static void *task(p)
9591 return (void *) (p == NULL);
9596 /* pthread test function */
9599 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9600 /* This system (e.g. AIX) defaults detached; must override */
9601 pthread_attr_t attr;
9603 status = pthread_attr_init(&attr);
9604 if( status ) exit( status );
9606 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9607 if( status ) exit( status );
9610 #elif defined( HAVE_PTHREADS_D4 )
9611 # define ATTR pthread_attr_default
9616 /* make sure pthread_create() isn't just a stub */
9617 status = pthread_create(&t, ATTR, task, NULL);
9618 if( status ) exit( status );
9620 /* give the thread a chance to complete...
9621 * it should remain joinable and hence detachable
9625 /* make sure pthread_detach() isn't just a stub */
9626 #if HAVE_PTHREADS_D4
9627 status = pthread_detach( &t );
9629 status = pthread_detach( t );
9632 #ifdef HAVE_LINUX_THREADS
9633 pthread_kill_other_threads_np();
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9642 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9651 cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9654 /* pthread test headers */
9655 #include <pthread.h>
9657 #define NULL (void*)0
9660 static void *task(p)
9663 return (void *) (p == NULL);
9667 int main(argc, argv)
9672 /* pthread test function */
9675 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9676 /* This system (e.g. AIX) defaults detached; must override */
9677 pthread_attr_t attr;
9679 status = pthread_attr_init(&attr);
9680 if( status ) exit( status );
9682 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9683 if( status ) exit( status );
9686 #elif defined( HAVE_PTHREADS_D4 )
9687 # define ATTR pthread_attr_default
9692 /* make sure pthread_create() isn't just a stub */
9693 status = pthread_create(&t, ATTR, task, NULL);
9694 if( status ) exit( status );
9696 /* give the thread a chance to complete...
9697 * it should remain joinable and hence detachable
9701 /* make sure pthread_detach() isn't just a stub */
9702 #if HAVE_PTHREADS_D4
9703 status = pthread_detach( &t );
9705 status = pthread_detach( t );
9708 #ifdef HAVE_LINUX_THREADS
9709 pthread_kill_other_threads_np();
9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9719 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9724 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9735 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9737 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9738 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9739 ol_link_threads=posix
9743 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9744 if test "$ol_link_threads" = no ; then
9745 # try -lpthreads -lmach -lexc
9746 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9747 echo "configure:9748: checking for pthread link with -lpthreads -lmach -lexc" >&5
9748 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9754 LIBS="-lpthreads -lmach -lexc $LIBS"
9756 if test "$cross_compiling" = yes; then
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9760 /* pthread test headers */
9761 #include <pthread.h>
9763 #define NULL (void*)0
9766 static void *task(p)
9769 return (void *) (p == NULL);
9774 /* pthread test function */
9777 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9778 /* This system (e.g. AIX) defaults detached; must override */
9779 pthread_attr_t attr;
9781 status = pthread_attr_init(&attr);
9782 if( status ) exit( status );
9784 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9785 if( status ) exit( status );
9788 #elif defined( HAVE_PTHREADS_D4 )
9789 # define ATTR pthread_attr_default
9794 /* make sure pthread_create() isn't just a stub */
9795 status = pthread_create(&t, ATTR, task, NULL);
9796 if( status ) exit( status );
9798 /* give the thread a chance to complete...
9799 * it should remain joinable and hence detachable
9803 /* make sure pthread_detach() isn't just a stub */
9804 #if HAVE_PTHREADS_D4
9805 status = pthread_detach( &t );
9807 status = pthread_detach( t );
9810 #ifdef HAVE_LINUX_THREADS
9811 pthread_kill_other_threads_np();
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9820 ol_cv_pthread_lpthreads_lmach_lexc=yes
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9825 ol_cv_pthread_lpthreads_lmach_lexc=no
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 /* pthread test headers */
9833 #include <pthread.h>
9835 #define NULL (void*)0
9838 static void *task(p)
9841 return (void *) (p == NULL);
9845 int main(argc, argv)
9850 /* pthread test function */
9853 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9854 /* This system (e.g. AIX) defaults detached; must override */
9855 pthread_attr_t attr;
9857 status = pthread_attr_init(&attr);
9858 if( status ) exit( status );
9860 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9861 if( status ) exit( status );
9864 #elif defined( HAVE_PTHREADS_D4 )
9865 # define ATTR pthread_attr_default
9870 /* make sure pthread_create() isn't just a stub */
9871 status = pthread_create(&t, ATTR, task, NULL);
9872 if( status ) exit( status );
9874 /* give the thread a chance to complete...
9875 * it should remain joinable and hence detachable
9879 /* make sure pthread_detach() isn't just a stub */
9880 #if HAVE_PTHREADS_D4
9881 status = pthread_detach( &t );
9883 status = pthread_detach( t );
9886 #ifdef HAVE_LINUX_THREADS
9887 pthread_kill_other_threads_np();
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9897 ol_cv_pthread_lpthreads_lmach_lexc=yes
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9902 ol_cv_pthread_lpthreads_lmach_lexc=no
9913 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9915 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9916 ol_link_pthreads="-lpthreads -lmach -lexc"
9917 ol_link_threads=posix
9921 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9922 if test "$ol_link_threads" = no ; then
9923 # try -lpthreads -lexc
9924 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9925 echo "configure:9926: checking for pthread link with -lpthreads -lexc" >&5
9926 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9927 echo $ac_n "(cached) $ac_c" 1>&6
9932 LIBS="-lpthreads -lexc $LIBS"
9934 if test "$cross_compiling" = yes; then
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 /* pthread test headers */
9939 #include <pthread.h>
9941 #define NULL (void*)0
9944 static void *task(p)
9947 return (void *) (p == NULL);
9952 /* pthread test function */
9955 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9956 /* This system (e.g. AIX) defaults detached; must override */
9957 pthread_attr_t attr;
9959 status = pthread_attr_init(&attr);
9960 if( status ) exit( status );
9962 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9963 if( status ) exit( status );
9966 #elif defined( HAVE_PTHREADS_D4 )
9967 # define ATTR pthread_attr_default
9972 /* make sure pthread_create() isn't just a stub */
9973 status = pthread_create(&t, ATTR, task, NULL);
9974 if( status ) exit( status );
9976 /* give the thread a chance to complete...
9977 * it should remain joinable and hence detachable
9981 /* make sure pthread_detach() isn't just a stub */
9982 #if HAVE_PTHREADS_D4
9983 status = pthread_detach( &t );
9985 status = pthread_detach( t );
9988 #ifdef HAVE_LINUX_THREADS
9989 pthread_kill_other_threads_np();
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9998 ol_cv_pthread_lpthreads_lexc=yes
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10003 ol_cv_pthread_lpthreads_lexc=no
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 /* pthread test headers */
10011 #include <pthread.h>
10013 #define NULL (void*)0
10016 static void *task(p)
10019 return (void *) (p == NULL);
10023 int main(argc, argv)
10028 /* pthread test function */
10031 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10032 /* This system (e.g. AIX) defaults detached; must override */
10033 pthread_attr_t attr;
10035 status = pthread_attr_init(&attr);
10036 if( status ) exit( status );
10038 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10039 if( status ) exit( status );
10041 # define ATTR &attr
10042 #elif defined( HAVE_PTHREADS_D4 )
10043 # define ATTR pthread_attr_default
10048 /* make sure pthread_create() isn't just a stub */
10049 status = pthread_create(&t, ATTR, task, NULL);
10050 if( status ) exit( status );
10052 /* give the thread a chance to complete...
10053 * it should remain joinable and hence detachable
10057 /* make sure pthread_detach() isn't just a stub */
10058 #if HAVE_PTHREADS_D4
10059 status = pthread_detach( &t );
10061 status = pthread_detach( t );
10064 #ifdef HAVE_LINUX_THREADS
10065 pthread_kill_other_threads_np();
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10075 ol_cv_pthread_lpthreads_lexc=yes
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 ol_cv_pthread_lpthreads_lexc=no
10091 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10093 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10094 ol_link_pthreads="-lpthreads -lexc"
10095 ol_link_threads=posix
10100 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10101 if test "$ol_link_threads" = no ; then
10103 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10104 echo "configure:10105: checking for pthread link with -lpthreads" >&5
10105 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10111 LIBS="-lpthreads $LIBS"
10113 if test "$cross_compiling" = yes; then
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 /* pthread test headers */
10118 #include <pthread.h>
10120 #define NULL (void*)0
10123 static void *task(p)
10126 return (void *) (p == NULL);
10131 /* pthread test function */
10134 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10135 /* This system (e.g. AIX) defaults detached; must override */
10136 pthread_attr_t attr;
10138 status = pthread_attr_init(&attr);
10139 if( status ) exit( status );
10141 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10142 if( status ) exit( status );
10144 # define ATTR &attr
10145 #elif defined( HAVE_PTHREADS_D4 )
10146 # define ATTR pthread_attr_default
10151 /* make sure pthread_create() isn't just a stub */
10152 status = pthread_create(&t, ATTR, task, NULL);
10153 if( status ) exit( status );
10155 /* give the thread a chance to complete...
10156 * it should remain joinable and hence detachable
10160 /* make sure pthread_detach() isn't just a stub */
10161 #if HAVE_PTHREADS_D4
10162 status = pthread_detach( &t );
10164 status = pthread_detach( t );
10167 #ifdef HAVE_LINUX_THREADS
10168 pthread_kill_other_threads_np();
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 ol_cv_pthread_lib_lpthreads=yes
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 ol_cv_pthread_lib_lpthreads=no
10186 cat > conftest.$ac_ext <<EOF
10187 #line 10188 "configure"
10188 #include "confdefs.h"
10189 /* pthread test headers */
10190 #include <pthread.h>
10192 #define NULL (void*)0
10195 static void *task(p)
10198 return (void *) (p == NULL);
10202 int main(argc, argv)
10207 /* pthread test function */
10210 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10211 /* This system (e.g. AIX) defaults detached; must override */
10212 pthread_attr_t attr;
10214 status = pthread_attr_init(&attr);
10215 if( status ) exit( status );
10217 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10218 if( status ) exit( status );
10220 # define ATTR &attr
10221 #elif defined( HAVE_PTHREADS_D4 )
10222 # define ATTR pthread_attr_default
10227 /* make sure pthread_create() isn't just a stub */
10228 status = pthread_create(&t, ATTR, task, NULL);
10229 if( status ) exit( status );
10231 /* give the thread a chance to complete...
10232 * it should remain joinable and hence detachable
10236 /* make sure pthread_detach() isn't just a stub */
10237 #if HAVE_PTHREADS_D4
10238 status = pthread_detach( &t );
10240 status = pthread_detach( t );
10243 #ifdef HAVE_LINUX_THREADS
10244 pthread_kill_other_threads_np();
10252 if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10254 ol_cv_pthread_lib_lpthreads=yes
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10259 ol_cv_pthread_lib_lpthreads=no
10270 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10272 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10273 ol_link_pthreads="-lpthreads"
10274 ol_link_threads=posix
10279 if test $ol_link_threads != no ; then
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_PTHREADS 1
10285 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10287 save_CPPFLAGS="$CPPFLAGS"
10289 LIBS="$LTHREAD_LIBS $LIBS"
10291 for ac_func in sched_yield pthread_yield
10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10294 echo "configure:10295: checking for $ac_func" >&5
10295 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 /* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char $ac_func(); below. */
10303 #include <assert.h>
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10312 /* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10323 if { (eval echo configure:10324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10325 eval "ac_cv_func_$ac_func=yes"
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10330 eval "ac_cv_func_$ac_func=no"
10335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6
10337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10338 cat >> confdefs.h <<EOF
10339 #define $ac_tr_func 1
10343 echo "$ac_t""no" 1>&6
10348 if test $ac_cv_func_sched_yield = no -a \
10349 $ac_cv_func_pthread_yield = no ; then
10350 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10351 echo "configure:10352: checking for sched_yield in -lrt" >&5
10352 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10353 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10356 ac_save_LIBS="$LIBS"
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 /* Override any gcc2 internal prototype to avoid an error. */
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10364 char sched_yield();
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10372 eval "ac_cv_lib_$ac_lib_var=yes"
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10377 eval "ac_cv_lib_$ac_lib_var=no"
10380 LIBS="$ac_save_LIBS"
10383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_SCHED_YIELD 1
10390 ac_cv_func_sched_yield=yes
10392 echo "$ac_t""no" 1>&6
10393 ac_cv_func_sched_yield=no
10397 if test $ac_cv_func_sched_yield = no -a \
10398 $ac_cv_func_pthread_yield = no ; then
10399 for ac_func in thr_yield
10401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10402 echo "configure:10403: checking for $ac_func" >&5
10403 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func(); below. */
10411 #include <assert.h>
10412 /* Override any gcc2 internal prototype to avoid an error. */
10413 /* We use char because int might match the return type of a gcc2
10414 builtin and then its argument prototype would still apply. */
10420 /* The GNU C library defines this for functions which it implements
10421 to always fail with ENOSYS. Some functions are actually named
10422 something starting with __ and the normal name is an alias. */
10423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10433 eval "ac_cv_func_$ac_func=yes"
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10438 eval "ac_cv_func_$ac_func=no"
10443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10444 echo "$ac_t""yes" 1>&6
10445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10446 cat >> confdefs.h <<EOF
10447 #define $ac_tr_func 1
10451 echo "$ac_t""no" 1>&6
10456 if test $ac_cv_func_sched_yield = no -a \
10457 $ac_cv_func_pthread_yield = no -a \
10458 "$ac_cv_func_thr_yield" = no ; then
10459 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10462 for ac_func in pthread_kill pthread_rwlock_destroy
10464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10465 echo "configure:10466: checking for $ac_func" >&5
10466 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 /* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func(); below. */
10474 #include <assert.h>
10475 /* Override any gcc2 internal prototype to avoid an error. */
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10483 /* The GNU C library defines this for functions which it implements
10484 to always fail with ENOSYS. Some functions are actually named
10485 something starting with __ and the normal name is an alias. */
10486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10494 if { (eval echo configure:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10496 eval "ac_cv_func_$ac_func=yes"
10498 echo "configure: failed program was:" >&5
10499 cat conftest.$ac_ext >&5
10501 eval "ac_cv_func_$ac_func=no"
10506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10507 echo "$ac_t""yes" 1>&6
10508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10509 cat >> confdefs.h <<EOF
10510 #define $ac_tr_func 1
10514 echo "$ac_t""no" 1>&6
10519 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10520 echo "configure:10521: checking for pthread_detach with <pthread.h>" >&5
10521 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10529 #include <pthread.h>
10531 #define NULL (void*)0
10535 pthread_detach(NULL);
10538 if { (eval echo configure:10539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10540 ol_cv_func_pthread_detach=yes
10542 echo "configure: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10545 ol_cv_func_pthread_detach=no
10551 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10553 if test $ol_cv_func_pthread_detach = no ; then
10554 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10557 cat >> confdefs.h <<\EOF
10558 #define HAVE_PTHREAD_DETACH 1
10563 pthread_setconcurrency \
10564 pthread_getconcurrency \
10565 thr_setconcurrency \
10566 thr_getconcurrency \
10569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10570 echo "configure:10571: checking for $ac_func" >&5
10571 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char $ac_func(); below. */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10588 /* The GNU C library defines this for functions which it implements
10589 to always fail with ENOSYS. Some functions are actually named
10590 something starting with __ and the normal name is an alias. */
10591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10599 if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10601 eval "ac_cv_func_$ac_func=yes"
10603 echo "configure: failed program was:" >&5
10604 cat conftest.$ac_ext >&5
10606 eval "ac_cv_func_$ac_func=no"
10611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10612 echo "$ac_t""yes" 1>&6
10613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10614 cat >> confdefs.h <<EOF
10615 #define $ac_tr_func 1
10619 echo "$ac_t""no" 1>&6
10625 for ac_func in pthread_kill_other_threads_np
10627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10628 echo "configure:10629: checking for $ac_func" >&5
10629 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10630 echo $ac_n "(cached) $ac_c" 1>&6
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure"
10634 #include "confdefs.h"
10635 /* System header to define __stub macros and hopefully few prototypes,
10636 which can conflict with char $ac_func(); below. */
10637 #include <assert.h>
10638 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10646 /* The GNU C library defines this for functions which it implements
10647 to always fail with ENOSYS. Some functions are actually named
10648 something starting with __ and the normal name is an alias. */
10649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10657 if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 eval "ac_cv_func_$ac_func=yes"
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10664 eval "ac_cv_func_$ac_func=no"
10669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10670 echo "$ac_t""yes" 1>&6
10671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10672 cat >> confdefs.h <<EOF
10673 #define $ac_tr_func 1
10677 echo "$ac_t""no" 1>&6
10681 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10682 echo "configure:10683: checking for LinuxThreads implementation" >&5
10683 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10686 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10689 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10694 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10695 echo "configure:10696: checking for LinuxThreads consistency" >&5
10696 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10700 if test $ol_cv_header_linux_threads = yes -a \
10701 $ol_cv_sys_linux_threads = yes; then
10702 ol_cv_linux_threads=yes
10703 elif test $ol_cv_header_linux_threads = no -a \
10704 $ol_cv_sys_linux_threads = no; then
10705 ol_cv_linux_threads=no
10707 ol_cv_linux_threads=error
10712 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10715 if test $ol_cv_linux_threads = error; then
10716 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10719 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10720 echo "configure:10721: checking if pthread_create() works" >&5
10721 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10725 if test "$cross_compiling" = yes; then
10726 ol_cv_pthread_create_works=yes
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 /* pthread test headers */
10732 #include <pthread.h>
10734 #define NULL (void*)0
10737 static void *task(p)
10740 return (void *) (p == NULL);
10744 int main(argc, argv)
10749 /* pthread test function */
10752 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10753 /* This system (e.g. AIX) defaults detached; must override */
10754 pthread_attr_t attr;
10756 status = pthread_attr_init(&attr);
10757 if( status ) exit( status );
10759 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10760 if( status ) exit( status );
10762 # define ATTR &attr
10763 #elif defined( HAVE_PTHREADS_D4 )
10764 # define ATTR pthread_attr_default
10769 /* make sure pthread_create() isn't just a stub */
10770 status = pthread_create(&t, ATTR, task, NULL);
10771 if( status ) exit( status );
10773 /* give the thread a chance to complete...
10774 * it should remain joinable and hence detachable
10778 /* make sure pthread_detach() isn't just a stub */
10779 #if HAVE_PTHREADS_D4
10780 status = pthread_detach( &t );
10782 status = pthread_detach( t );
10785 #ifdef HAVE_LINUX_THREADS
10786 pthread_kill_other_threads_np();
10794 if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10796 ol_cv_pthread_create_works=yes
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10801 ol_cv_pthread_create_works=no
10808 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10810 if test $ol_cv_pthread_create_works = no ; then
10811 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10814 if test $ol_with_yielding_select = auto ; then
10815 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10816 echo "configure:10817: checking if select yields when using pthreads" >&5
10817 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10818 echo $ac_n "(cached) $ac_c" 1>&6
10821 if test "$cross_compiling" = yes; then
10822 ol_cv_pthread_select_yields=cross
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10828 #include <sys/types.h>
10829 #include <sys/time.h>
10830 #include <unistd.h>
10831 #include <pthread.h>
10833 #define NULL (void*) 0
10836 static int fildes[2];
10838 static void *task(p)
10850 FD_SET(fildes[0], &rfds);
10852 /* we're not interested in any fds */
10853 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10860 exit(0); /* if we exit here, the select blocked the whole process */
10863 int main(argc, argv)
10869 /* create a pipe to select */
10870 if(pipe(&fildes[0])) {
10875 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10876 (void) pthread_setconcurrency(2);
10878 #ifdef HAVE_THR_SETCONCURRENCY
10879 /* Set Solaris LWP concurrency to 2 */
10880 thr_setconcurrency(2);
10884 #if HAVE_PTHREADS_D4
10885 pthread_create(&t, pthread_attr_default, task, NULL);
10887 pthread_create(&t, NULL, task, NULL);
10890 #if HAVE_SCHED_YIELD
10891 sched_yield(); /* make sure task runs first */
10893 #ifdef HAVE_PTHREAD_YIELD
10894 pthread_yield(); /* make sure task runs first */
10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10903 ol_cv_pthread_select_yields=no
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10908 ol_cv_pthread_select_yields=yes
10915 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10917 if test $ol_cv_pthread_select_yields = cross ; then
10918 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10921 if test $ol_cv_pthread_select_yields = yes ; then
10922 ol_with_yielding_select=yes
10926 CPPFLAGS="$save_CPPFLAGS"
10929 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10933 if test $ol_with_threads = posix ; then
10934 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10938 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10939 -o $ol_with_threads = mach ; then
10941 for ac_hdr in mach/cthreads.h
10943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10945 echo "configure:10946: checking for $ac_hdr" >&5
10946 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10947 echo $ac_n "(cached) $ac_c" 1>&6
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10955 { (eval echo configure:10956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10957 if test -z "$ac_err"; then
10959 eval "ac_cv_header_$ac_safe=yes"
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10965 eval "ac_cv_header_$ac_safe=no"
10969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10970 echo "$ac_t""yes" 1>&6
10971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10972 cat >> confdefs.h <<EOF
10973 #define $ac_tr_hdr 1
10977 echo "$ac_t""no" 1>&6
10981 if test $ac_cv_header_mach_cthreads_h = yes ; then
10982 ol_with_threads=found
10984 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10985 echo "configure:10986: checking for cthread_fork" >&5
10986 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char cthread_fork(); below. */
10994 #include <assert.h>
10995 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char cthread_fork();
11003 /* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
11006 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11014 if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11016 eval "ac_cv_func_cthread_fork=yes"
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11021 eval "ac_cv_func_cthread_fork=no"
11026 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 ol_link_threads=yes
11030 echo "$ac_t""no" 1>&6
11034 if test $ol_link_threads = no ; then
11035 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11036 echo "configure:11037: checking for cthread_fork with -all_load" >&5
11037 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11042 LIBS="-all_load $LIBS"
11043 cat > conftest.$ac_ext <<EOF
11044 #line 11045 "configure"
11045 #include "confdefs.h"
11046 #include <mach/cthreads.h>
11049 cthread_fork((void *)0, (void *)0);
11053 if { (eval echo configure:11054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11055 ol_cv_cthread_all_load=yes
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 ol_cv_cthread_all_load=no
11067 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11069 if test $ol_cv_cthread_all_load = yes ; then
11070 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11071 ol_link_threads=mach
11075 if test $ol_link_threads != no ; then
11076 : check for cthread specific functionality here
11077 cat >> confdefs.h <<\EOF
11078 #define HAVE_MACH_CTHREADS 1
11082 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11086 if test $ol_with_threads = mach ; then
11087 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11091 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11092 -o $ol_with_threads = pth ; then
11094 for ac_hdr in pth.h
11096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11098 echo "configure:11099: checking for $ac_hdr" >&5
11099 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11102 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11108 { (eval echo configure:11109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11110 if test -z "$ac_err"; then
11112 eval "ac_cv_header_$ac_safe=yes"
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11118 eval "ac_cv_header_$ac_safe=no"
11122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11123 echo "$ac_t""yes" 1>&6
11124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11125 cat >> confdefs.h <<EOF
11126 #define $ac_tr_hdr 1
11130 echo "$ac_t""no" 1>&6
11135 if test $ac_cv_header_pth_h = yes ; then
11136 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11137 echo "configure:11138: checking for pth_version in -lpth" >&5
11138 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11142 ac_save_LIBS="$LIBS"
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150 char pth_version();
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11158 eval "ac_cv_lib_$ac_lib_var=yes"
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11163 eval "ac_cv_lib_$ac_lib_var=no"
11166 LIBS="$ac_save_LIBS"
11169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11173 echo "$ac_t""no" 1>&6
11178 if test $have_pth = yes ; then
11179 cat >> confdefs.h <<\EOF
11180 #define HAVE_GNU_PTH 1
11183 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11184 ol_link_threads=pth
11186 if test $ol_with_yielding_select = auto ; then
11187 ol_with_yielding_select=yes
11193 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11194 -o $ol_with_threads = lwp ; then
11196 for ac_hdr in thread.h synch.h
11198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11200 echo "configure:11201: checking for $ac_hdr" >&5
11201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11204 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11212 if test -z "$ac_err"; then
11214 eval "ac_cv_header_$ac_safe=yes"
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11220 eval "ac_cv_header_$ac_safe=no"
11224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11225 echo "$ac_t""yes" 1>&6
11226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11227 cat >> confdefs.h <<EOF
11228 #define $ac_tr_hdr 1
11232 echo "$ac_t""no" 1>&6
11236 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11237 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11238 echo "configure:11239: checking for thr_create in -lthread" >&5
11239 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11240 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11241 echo $ac_n "(cached) $ac_c" 1>&6
11243 ac_save_LIBS="$LIBS"
11244 LIBS="-lthread $LIBS"
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 /* Override any gcc2 internal prototype to avoid an error. */
11249 /* We use char because int might match the return type of a gcc2
11250 builtin and then its argument prototype would still apply. */
11257 if { (eval echo configure:11258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11259 eval "ac_cv_lib_$ac_lib_var=yes"
11261 echo "configure: failed program was:" >&5
11262 cat conftest.$ac_ext >&5
11264 eval "ac_cv_lib_$ac_lib_var=no"
11267 LIBS="$ac_save_LIBS"
11270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11271 echo "$ac_t""yes" 1>&6
11274 echo "$ac_t""no" 1>&6
11279 if test $have_thr = yes ; then
11280 cat >> confdefs.h <<\EOF
11284 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11285 ol_link_threads=thr
11287 if test $ol_with_yielding_select = auto ; then
11288 ol_with_yielding_select=yes
11292 thr_setconcurrency \
11293 thr_getconcurrency \
11296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11297 echo "configure:11298: checking for $ac_func" >&5
11298 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11301 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func(); below. */
11306 #include <assert.h>
11307 /* Override any gcc2 internal prototype to avoid an error. */
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11326 if { (eval echo configure:11327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11328 eval "ac_cv_func_$ac_func=yes"
11330 echo "configure: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11333 eval "ac_cv_func_$ac_func=no"
11338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11339 echo "$ac_t""yes" 1>&6
11340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11341 cat >> confdefs.h <<EOF
11342 #define $ac_tr_func 1
11346 echo "$ac_t""no" 1>&6
11353 for ac_hdr in lwp/lwp.h
11355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11357 echo "configure:11358: checking for $ac_hdr" >&5
11358 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11359 echo $ac_n "(cached) $ac_c" 1>&6
11361 cat > conftest.$ac_ext <<EOF
11362 #line 11363 "configure"
11363 #include "confdefs.h"
11366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11367 { (eval echo configure:11368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11369 if test -z "$ac_err"; then
11371 eval "ac_cv_header_$ac_safe=yes"
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11377 eval "ac_cv_header_$ac_safe=no"
11381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11382 echo "$ac_t""yes" 1>&6
11383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11384 cat >> confdefs.h <<EOF
11385 #define $ac_tr_hdr 1
11389 echo "$ac_t""no" 1>&6
11393 if test $ac_cv_header_lwp_lwp_h = yes ; then
11394 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11395 echo "configure:11396: checking for lwp_create in -llwp" >&5
11396 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11398 echo $ac_n "(cached) $ac_c" 1>&6
11400 ac_save_LIBS="$LIBS"
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 /* Override any gcc2 internal prototype to avoid an error. */
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11414 if { (eval echo configure:11415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11416 eval "ac_cv_lib_$ac_lib_var=yes"
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11421 eval "ac_cv_lib_$ac_lib_var=no"
11424 LIBS="$ac_save_LIBS"
11427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11428 echo "$ac_t""yes" 1>&6
11431 echo "$ac_t""no" 1>&6
11436 if test $have_lwp = yes ; then
11437 cat >> confdefs.h <<\EOF
11441 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11442 ol_link_threads=lwp
11444 if test $ol_with_yielding_select = auto ; then
11445 ol_with_yielding_select=no
11451 if test $ol_with_yielding_select = yes ; then
11452 cat >> confdefs.h <<\EOF
11453 #define HAVE_YIELDING_SELECT 1
11458 if test $ol_with_threads = manual ; then
11459 ol_link_threads=yes
11461 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11463 for ac_hdr in pthread.h sched.h
11465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11467 echo "configure:11468: checking for $ac_hdr" >&5
11468 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11469 echo $ac_n "(cached) $ac_c" 1>&6
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11477 { (eval echo configure:11478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11479 if test -z "$ac_err"; then
11481 eval "ac_cv_header_$ac_safe=yes"
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11487 eval "ac_cv_header_$ac_safe=no"
11491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11492 echo "$ac_t""yes" 1>&6
11493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11494 cat >> confdefs.h <<EOF
11495 #define $ac_tr_hdr 1
11499 echo "$ac_t""no" 1>&6
11503 for ac_func in sched_yield pthread_yield
11505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11506 echo "configure:11507: checking for $ac_func" >&5
11507 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func(); below. */
11515 #include <assert.h>
11516 /* Override any gcc2 internal prototype to avoid an error. */
11517 /* We use char because int might match the return type of a gcc2
11518 builtin and then its argument prototype would still apply. */
11524 /* The GNU C library defines this for functions which it implements
11525 to always fail with ENOSYS. Some functions are actually named
11526 something starting with __ and the normal name is an alias. */
11527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11535 if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11537 eval "ac_cv_func_$ac_func=yes"
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11542 eval "ac_cv_func_$ac_func=no"
11547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11548 echo "$ac_t""yes" 1>&6
11549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11550 cat >> confdefs.h <<EOF
11551 #define $ac_tr_func 1
11555 echo "$ac_t""no" 1>&6
11560 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11561 echo "configure:11562: checking for LinuxThreads pthread.h" >&5
11562 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11565 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11568 #include <pthread.h>
11570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11571 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11573 ol_cv_header_linux_threads=yes
11576 ol_cv_header_linux_threads=no
11583 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11584 if test $ol_cv_header_linux_threads = yes; then
11585 cat >> confdefs.h <<\EOF
11586 #define HAVE_LINUX_THREADS 1
11592 for ac_hdr in mach/cthreads.h
11594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11596 echo "configure:11597: checking for $ac_hdr" >&5
11597 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11598 echo $ac_n "(cached) $ac_c" 1>&6
11600 cat > conftest.$ac_ext <<EOF
11601 #line 11602 "configure"
11602 #include "confdefs.h"
11605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11606 { (eval echo configure:11607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11608 if test -z "$ac_err"; then
11610 eval "ac_cv_header_$ac_safe=yes"
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11616 eval "ac_cv_header_$ac_safe=no"
11620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11621 echo "$ac_t""yes" 1>&6
11622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11623 cat >> confdefs.h <<EOF
11624 #define $ac_tr_hdr 1
11628 echo "$ac_t""no" 1>&6
11632 for ac_hdr in lwp/lwp.h
11634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11636 echo "configure:11637: checking for $ac_hdr" >&5
11637 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11646 { (eval echo configure:11647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11648 if test -z "$ac_err"; then
11650 eval "ac_cv_header_$ac_safe=yes"
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 eval "ac_cv_header_$ac_safe=no"
11660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11661 echo "$ac_t""yes" 1>&6
11662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11663 cat >> confdefs.h <<EOF
11664 #define $ac_tr_hdr 1
11668 echo "$ac_t""no" 1>&6
11672 for ac_hdr in thread.h synch.h
11674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11676 echo "configure:11677: checking for $ac_hdr" >&5
11677 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11682 "configure"
11682 #include "confdefs.h"
11685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11686 { (eval echo configure:11687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11688 if test -z "$ac_err"; then
11690 eval "ac_cv_header_$ac_safe=yes"
11693 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11696 eval "ac_cv_header_$ac_safe=no"
11700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11701 echo "$ac_t""yes" 1>&6
11702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11703 cat >> confdefs.h <<EOF
11704 #define $ac_tr_hdr 1
11708 echo "$ac_t""no" 1>&6
11714 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11715 cat >> confdefs.h <<\EOF
11716 #define REENTRANT 1
11719 cat >> confdefs.h <<\EOF
11720 #define _REENTRANT 1
11723 cat >> confdefs.h <<\EOF
11724 #define THREAD_SAFE 1
11727 cat >> confdefs.h <<\EOF
11728 #define _THREAD_SAFE 1
11731 cat >> confdefs.h <<\EOF
11732 #define THREADSAFE 1
11735 cat >> confdefs.h <<\EOF
11736 #define _THREADSAFE 1
11739 cat >> confdefs.h <<\EOF
11740 #define _SGI_MP_SOURCE 1
11744 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11745 echo "configure:11746: checking for thread specific errno" >&5
11746 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11758 if { (eval echo configure:11759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11760 ol_cv_errno_thread_specific=yes
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11765 ol_cv_errno_thread_specific=no
11771 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11773 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11774 echo "configure:11775: checking for thread specific h_errno" >&5
11775 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11776 echo $ac_n "(cached) $ac_c" 1>&6
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11787 if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11789 ol_cv_h_errno_thread_specific=yes
11791 echo "configure: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11794 ol_cv_h_errno_thread_specific=no
11800 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11802 if test $ol_cv_errno_thread_specific != yes \
11803 -o $ol_cv_h_errno_thread_specific != yes ; then
11804 LIBS="$LTHREAD_LIBS $LIBS"
11810 if test $ol_link_threads = no ; then
11811 if test $ol_with_threads = yes ; then
11812 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11815 if test $ol_with_threads = auto ; then
11816 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11820 cat >> confdefs.h <<\EOF
11821 #define NO_THREADS 1
11827 if test $ol_link_threads != no ; then
11828 cat >> confdefs.h <<\EOF
11829 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11836 if test $ol_with_ldbm_api = auto \
11837 -o $ol_with_ldbm_api = berkeley \
11838 -o $ol_with_ldbm_api = bcompat ; then
11840 if test $ol_with_ldbm_api = bcompat; then \
11841 ol_cv_berkeley_db=no
11842 for ac_hdr in db_185.h db.h
11844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11846 echo "configure:11847: checking for $ac_hdr" >&5
11847 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11856 { (eval echo configure:11857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11858 if test -z "$ac_err"; then
11860 eval "ac_cv_header_$ac_safe=yes"
11863 echo "configure: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11866 eval "ac_cv_header_$ac_safe=no"
11870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11871 echo "$ac_t""yes" 1>&6
11872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11873 cat >> confdefs.h <<EOF
11874 #define $ac_tr_hdr 1
11878 echo "$ac_t""no" 1>&6
11882 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11883 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11884 echo "configure:11885: checking if Berkeley DB header compatibility" >&5
11885 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11894 # include <db_185.h>
11899 /* this check could be improved */
11900 #ifndef DB_VERSION_MAJOR
11901 # define DB_VERSION_MAJOR 1
11904 #if DB_VERSION_MAJOR == 1
11909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11910 egrep "__db_version_1" >/dev/null 2>&1; then
11912 ol_cv_header_db1=yes
11915 ol_cv_header_db1=no
11921 echo "$ac_t""$ol_cv_header_db1" 1>&6
11923 if test ol_cv_header_db1=yes ; then
11925 if test $ol_cv_lib_db = no ; then
11926 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11927 echo "configure:11928: checking for Berkeley DB link (default)" >&5
11928 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11934 LIBS="$ol_DB_LIB $LIBS"
11936 cat > conftest.$ac_ext <<EOF
11937 #line 11938 "configure"
11938 #include "confdefs.h"
11940 #ifdef HAVE_DB_185_H
11941 # include <db_185.h>
11946 #ifndef DB_VERSION_MAJOR
11947 # define DB_VERSION_MAJOR 1
11951 #define NULL ((void*)0)
11956 #if DB_VERSION_MAJOR > 2
11957 db_env_create( NULL, 0 );
11958 #elif DB_VERSION_MAJOR > 1
11959 db_appexit( NULL );
11961 (void) dbopen( NULL, 0, 0, 0, NULL);
11966 if { (eval echo configure:11967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11981 echo "$ac_t""$ol_cv_db_none" 1>&6
11983 if test $ol_cv_db_none = yes ; then
11988 if test $ol_cv_lib_db = no ; then
11989 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11990 echo "configure:11991: checking for Berkeley DB link (-ldb)" >&5
11991 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11992 echo $ac_n "(cached) $ac_c" 1>&6
11997 LIBS="$ol_DB_LIB $LIBS"
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12003 #ifdef HAVE_DB_185_H
12004 # include <db_185.h>
12009 #ifndef DB_VERSION_MAJOR
12010 # define DB_VERSION_MAJOR 1
12014 #define NULL ((void*)0)
12019 #if DB_VERSION_MAJOR > 2
12020 db_env_create( NULL, 0 );
12021 #elif DB_VERSION_MAJOR > 1
12022 db_appexit( NULL );
12024 (void) dbopen( NULL, 0, 0, 0, NULL);
12029 if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12044 echo "$ac_t""$ol_cv_db_db" 1>&6
12046 if test $ol_cv_db_db = yes ; then
12051 if test $ol_cv_lib_db = no ; then
12052 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12053 echo "configure:12054: checking for Berkeley DB link (-ldb3)" >&5
12054 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12055 echo $ac_n "(cached) $ac_c" 1>&6
12060 LIBS="$ol_DB_LIB $LIBS"
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12064 "configure"
12064 #include "confdefs.h"
12066 #ifdef HAVE_DB_185_H
12067 # include <db_185.h>
12072 #ifndef DB_VERSION_MAJOR
12073 # define DB_VERSION_MAJOR 1
12077 #define NULL ((void*)0)
12082 #if DB_VERSION_MAJOR > 2
12083 db_env_create( NULL, 0 );
12084 #elif DB_VERSION_MAJOR > 1
12085 db_appexit( NULL );
12087 (void) dbopen( NULL, 0, 0, 0, NULL);
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12107 echo "$ac_t""$ol_cv_db_db3" 1>&6
12109 if test $ol_cv_db_db3 = yes ; then
12114 if test $ol_cv_lib_db = no ; then
12115 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12116 echo "configure:12117: checking for Berkeley DB link (-ldb2)" >&5
12117 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12118 echo $ac_n "(cached) $ac_c" 1>&6
12123 LIBS="$ol_DB_LIB $LIBS"
12125 cat > conftest.$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12129 #ifdef HAVE_DB_185_H
12130 # include <db_185.h>
12135 #ifndef DB_VERSION_MAJOR
12136 # define DB_VERSION_MAJOR 1
12140 #define NULL ((void*)0)
12145 #if DB_VERSION_MAJOR > 2
12146 db_env_create( NULL, 0 );
12147 #elif DB_VERSION_MAJOR > 1
12148 db_appexit( NULL );
12150 (void) dbopen( NULL, 0, 0, 0, NULL);
12155 if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12170 echo "$ac_t""$ol_cv_db_db2" 1>&6
12172 if test $ol_cv_db_db2 = yes ; then
12177 if test $ol_cv_lib_db = no ; then
12178 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12179 echo "configure:12180: checking for Berkeley DB link (-ldb1)" >&5
12180 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12186 LIBS="$ol_DB_LIB $LIBS"
12188 cat > conftest.$ac_ext <<EOF
12189 #line 12190 "configure"
12190 #include "confdefs.h"
12192 #ifdef HAVE_DB_185_H
12193 # include <db_185.h>
12198 #ifndef DB_VERSION_MAJOR
12199 # define DB_VERSION_MAJOR 1
12203 #define NULL ((void*)0)
12208 #if DB_VERSION_MAJOR > 2
12209 db_env_create( NULL, 0 );
12210 #elif DB_VERSION_MAJOR > 1
12211 db_appexit( NULL );
12213 (void) dbopen( NULL, 0, 0, 0, NULL);
12218 if { (eval echo configure:12219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12233 echo "$ac_t""$ol_cv_db_db1" 1>&6
12235 if test $ol_cv_db_db1 = yes ; then
12241 if test "$ol_cv_lib_db" != no ; then
12242 ol_cv_berkeley_db=yes
12248 ol_cv_berkeley_db=no
12251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12253 echo "configure:12254: checking for $ac_hdr" >&5
12254 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12263 { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12265 if test -z "$ac_err"; then
12267 eval "ac_cv_header_$ac_safe=yes"
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12273 eval "ac_cv_header_$ac_safe=no"
12277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12278 echo "$ac_t""yes" 1>&6
12279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12280 cat >> confdefs.h <<EOF
12281 #define $ac_tr_hdr 1
12285 echo "$ac_t""no" 1>&6
12289 if test $ac_cv_header_db_h = yes; then
12291 if test $ol_cv_lib_db = no ; then
12292 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12293 echo "configure:12294: checking for Berkeley DB link (default)" >&5
12294 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12295 echo $ac_n "(cached) $ac_c" 1>&6
12300 LIBS="$ol_DB_LIB $LIBS"
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12306 #ifdef HAVE_DB_185_H
12307 # include <db_185.h>
12312 #ifndef DB_VERSION_MAJOR
12313 # define DB_VERSION_MAJOR 1
12317 #define NULL ((void*)0)
12322 #if DB_VERSION_MAJOR > 2
12323 db_env_create( NULL, 0 );
12324 #elif DB_VERSION_MAJOR > 1
12325 db_appexit( NULL );
12327 (void) dbopen( NULL, 0, 0, 0, NULL);
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12347 echo "$ac_t""$ol_cv_db_none" 1>&6
12349 if test $ol_cv_db_none = yes ; then
12354 if test $ol_cv_lib_db = no ; then
12355 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12356 echo "configure:12357: checking for Berkeley DB link (-ldb)" >&5
12357 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12363 LIBS="$ol_DB_LIB $LIBS"
12365 cat > conftest.$ac_ext <<EOF
12366 #line 12367 "configure"
12367 #include "confdefs.h"
12369 #ifdef HAVE_DB_185_H
12370 # include <db_185.h>
12375 #ifndef DB_VERSION_MAJOR
12376 # define DB_VERSION_MAJOR 1
12380 #define NULL ((void*)0)
12385 #if DB_VERSION_MAJOR > 2
12386 db_env_create( NULL, 0 );
12387 #elif DB_VERSION_MAJOR > 1
12388 db_appexit( NULL );
12390 (void) dbopen( NULL, 0, 0, 0, NULL);
12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12399 echo "configure: failed program was:" >&5
12400 cat conftest.$ac_ext >&5
12410 echo "$ac_t""$ol_cv_db_db" 1>&6
12412 if test $ol_cv_db_db = yes ; then
12417 if test $ol_cv_lib_db = no ; then
12418 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12419 echo "configure:12420: checking for Berkeley DB link (-ldb3)" >&5
12420 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12426 LIBS="$ol_DB_LIB $LIBS"
12428 cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12432 #ifdef HAVE_DB_185_H
12433 # include <db_185.h>
12438 #ifndef DB_VERSION_MAJOR
12439 # define DB_VERSION_MAJOR 1
12443 #define NULL ((void*)0)
12448 #if DB_VERSION_MAJOR > 2
12449 db_env_create( NULL, 0 );
12450 #elif DB_VERSION_MAJOR > 1
12451 db_appexit( NULL );
12453 (void) dbopen( NULL, 0, 0, 0, NULL);
12458 if { (eval echo configure:12459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 echo "configure: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12473 echo "$ac_t""$ol_cv_db_db3" 1>&6
12475 if test $ol_cv_db_db3 = yes ; then
12480 if test $ol_cv_lib_db = no ; then
12481 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12482 echo "configure:12483: checking for Berkeley DB link (-ldb2)" >&5
12483 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12484 echo $ac_n "(cached) $ac_c" 1>&6
12489 LIBS="$ol_DB_LIB $LIBS"
12491 cat > conftest.$ac_ext <<EOF
12492 #line 12493 "configure"
12493 #include "confdefs.h"
12495 #ifdef HAVE_DB_185_H
12496 # include <db_185.h>
12501 #ifndef DB_VERSION_MAJOR
12502 # define DB_VERSION_MAJOR 1
12506 #define NULL ((void*)0)
12511 #if DB_VERSION_MAJOR > 2
12512 db_env_create( NULL, 0 );
12513 #elif DB_VERSION_MAJOR > 1
12514 db_appexit( NULL );
12516 (void) dbopen( NULL, 0, 0, 0, NULL);
12521 if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12525 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12536 echo "$ac_t""$ol_cv_db_db2" 1>&6
12538 if test $ol_cv_db_db2 = yes ; then
12543 if test $ol_cv_lib_db = no ; then
12544 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12545 echo "configure:12546: checking for Berkeley DB link (-ldb1)" >&5
12546 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12547 echo $ac_n "(cached) $ac_c" 1>&6
12552 LIBS="$ol_DB_LIB $LIBS"
12554 cat > conftest.$ac_ext <<EOF
12555 #line 12556 "configure"
12556 #include "confdefs.h"
12558 #ifdef HAVE_DB_185_H
12559 # include <db_185.h>
12564 #ifndef DB_VERSION_MAJOR
12565 # define DB_VERSION_MAJOR 1
12569 #define NULL ((void*)0)
12574 #if DB_VERSION_MAJOR > 2
12575 db_env_create( NULL, 0 );
12576 #elif DB_VERSION_MAJOR > 1
12577 db_appexit( NULL );
12579 (void) dbopen( NULL, 0, 0, 0, NULL);
12584 if { (eval echo configure:12585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12588 echo "configure: failed program was:" >&5
12589 cat conftest.$ac_ext >&5
12599 echo "$ac_t""$ol_cv_db_db1" 1>&6
12601 if test $ol_cv_db_db1 = yes ; then
12607 if test "$ol_cv_lib_db" != no ; then
12608 ol_cv_berkeley_db=yes
12609 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12610 echo "configure:12611: checking for Berkeley DB thread support" >&5
12611 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12616 if test $ol_cv_lib_db != yes ; then
12617 LIBS="$ol_cv_lib_db"
12620 if test "$cross_compiling" = yes; then
12621 ol_cv_berkeley_db_thread=cross
12623 cat > conftest.$ac_ext <<EOF
12624 #line 12625 "configure"
12625 #include "confdefs.h"
12627 #ifdef HAVE_DB_185_H
12633 #define NULL ((void *)0)
12638 u_int32_t flags = DB_CREATE | DB_THREAD;
12640 #if DB_VERSION_MAJOR > 2
12641 DB_ENV *env = NULL;
12643 rc = db_env_create( &env, 0 );
12646 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12647 rc = env->open( env, NULL, flags, 0 );
12649 rc = env->open( env, NULL, NULL, flags, 0 );
12655 memset( &env, '\0', sizeof(env) );
12657 rc = db_appinit( NULL, NULL, &env, flags );
12660 db_appexit( &env );
12663 #if DB_VERSION_MAJOR > 2
12664 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12665 env->remove( env, NULL, DB_FORCE);
12667 env->remove( env, NULL, NULL, DB_FORCE);
12674 if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12676 ol_cv_berkeley_db_thread=yes
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12681 ol_cv_berkeley_db_thread=no
12689 if test $ol_cv_berkeley_db_thread != no ; then
12690 cat >> confdefs.h <<\EOF
12691 #define HAVE_BERKELEY_DB_THREAD 1
12698 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12704 if test $ol_cv_berkeley_db != no ; then
12705 cat >> confdefs.h <<\EOF
12706 #define HAVE_BERKELEY_DB 1
12710 ol_link_ldbm=berkeley
12711 ol_with_ldbm_api=db
12713 if test $ol_with_ldbm_type = hash ; then
12714 cat >> confdefs.h <<\EOF
12715 #define LDBM_USE_DBHASH 1
12719 cat >> confdefs.h <<\EOF
12720 #define LDBM_USE_DBBTREE 1
12725 if test $ol_cv_lib_db != yes ; then
12726 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12731 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12732 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12733 ol_with_ldbm_api=none
12736 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12737 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12738 echo "configure:12739: checking for MDBM library" >&5
12739 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12743 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12744 echo "configure:12745: checking for mdbm_set_chain" >&5
12745 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12748 cat > conftest.$ac_ext <<EOF
12749 #line 12750 "configure"
12750 #include "confdefs.h"
12751 /* System header to define __stub macros and hopefully few prototypes,
12752 which can conflict with char mdbm_set_chain(); below. */
12753 #include <assert.h>
12754 /* Override any gcc2 internal prototype to avoid an error. */
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757 char mdbm_set_chain();
12762 /* The GNU C library defines this for functions which it implements
12763 to always fail with ENOSYS. Some functions are actually named
12764 something starting with __ and the normal name is an alias. */
12765 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12768 f = mdbm_set_chain;
12773 if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12775 eval "ac_cv_func_mdbm_set_chain=yes"
12777 echo "configure: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12780 eval "ac_cv_func_mdbm_set_chain=no"
12785 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12786 echo "$ac_t""yes" 1>&6
12789 echo "$ac_t""no" 1>&6
12791 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12792 echo "configure:12793: checking for mdbm_set_chain in -lmdbm" >&5
12793 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12797 ac_save_LIBS="$LIBS"
12798 LIBS="-lmdbm $LIBS"
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 /* Override any gcc2 internal prototype to avoid an error. */
12803 /* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12805 char mdbm_set_chain();
12811 if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12813 eval "ac_cv_lib_$ac_lib_var=yes"
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12818 eval "ac_cv_lib_$ac_lib_var=no"
12821 LIBS="$ac_save_LIBS"
12824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12825 echo "$ac_t""yes" 1>&6
12826 ol_cv_lib_mdbm=-lmdbm
12828 echo "$ac_t""no" 1>&6
12839 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12842 for ac_hdr in mdbm.h
12844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12846 echo "configure:12847: checking for $ac_hdr" >&5
12847 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12848 echo $ac_n "(cached) $ac_c" 1>&6
12850 cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12856 { (eval echo configure:12857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12858 if test -z "$ac_err"; then
12860 eval "ac_cv_header_$ac_safe=yes"
12863 echo "configure: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12866 eval "ac_cv_header_$ac_safe=no"
12870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12871 echo "$ac_t""yes" 1>&6
12872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12873 cat >> confdefs.h <<EOF
12874 #define $ac_tr_hdr 1
12878 echo "$ac_t""no" 1>&6
12882 echo $ac_n "checking for db""... $ac_c" 1>&6
12883 echo "configure:12884: checking for db" >&5
12884 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12888 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12896 echo "$ac_t""$ol_cv_mdbm" 1>&6
12897 if test $ol_cv_mdbm = yes ; then
12898 cat >> confdefs.h <<\EOF
12899 #define HAVE_MDBM 1
12905 if test $ol_cv_mdbm = yes ; then
12907 ol_with_ldbm_api=mdbm
12908 if test $ol_cv_lib_mdbm != yes ; then
12909 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12914 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12915 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12916 echo "configure:12917: checking for GDBM library" >&5
12917 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12921 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12922 echo "configure:12923: checking for gdbm_open" >&5
12923 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12926 cat > conftest.$ac_ext <<EOF
12927 #line 12928 "configure"
12928 #include "confdefs.h"
12929 /* System header to define __stub macros and hopefully few prototypes,
12930 which can conflict with char gdbm_open(); below. */
12931 #include <assert.h>
12932 /* Override any gcc2 internal prototype to avoid an error. */
12933 /* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */
12940 /* The GNU C library defines this for functions which it implements
12941 to always fail with ENOSYS. Some functions are actually named
12942 something starting with __ and the normal name is an alias. */
12943 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12951 if { (eval echo configure:12952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12953 eval "ac_cv_func_gdbm_open=yes"
12955 echo "configure: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12958 eval "ac_cv_func_gdbm_open=no"
12963 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12964 echo "$ac_t""yes" 1>&6
12967 echo "$ac_t""no" 1>&6
12969 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12970 echo "configure:12971: checking for gdbm_open in -lgdbm" >&5
12971 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12972 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12975 ac_save_LIBS="$LIBS"
12976 LIBS="-lgdbm $LIBS"
12977 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 /* Override any gcc2 internal prototype to avoid an error. */
12981 /* We use char because int might match the return type of a gcc2
12982 builtin and then its argument prototype would still apply. */
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12991 eval "ac_cv_lib_$ac_lib_var=yes"
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12996 eval "ac_cv_lib_$ac_lib_var=no"
12999 LIBS="$ac_save_LIBS"
13002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13003 echo "$ac_t""yes" 1>&6
13004 ol_cv_lib_gdbm=-lgdbm
13006 echo "$ac_t""no" 1>&6
13017 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13020 for ac_hdr in gdbm.h
13022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13024 echo "configure:13025: checking for $ac_hdr" >&5
13025 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13034 { (eval echo configure:13035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13036 if test -z "$ac_err"; then
13038 eval "ac_cv_header_$ac_safe=yes"
13041 echo "configure: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13044 eval "ac_cv_header_$ac_safe=no"
13048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13051 cat >> confdefs.h <<EOF
13052 #define $ac_tr_hdr 1
13056 echo "$ac_t""no" 1>&6
13060 echo $ac_n "checking for db""... $ac_c" 1>&6
13061 echo "configure:13062: checking for db" >&5
13062 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13066 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13074 echo "$ac_t""$ol_cv_gdbm" 1>&6
13075 if test $ol_cv_gdbm = yes ; then
13076 cat >> confdefs.h <<\EOF
13077 #define HAVE_GDBM 1
13083 if test $ol_cv_gdbm = yes ; then
13085 ol_with_ldbm_api=gdbm
13087 if test $ol_cv_lib_gdbm != yes ; then
13088 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13093 if test $ol_with_ldbm_api = ndbm ; then
13094 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13095 echo "configure:13096: checking for NDBM library" >&5
13096 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13100 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13101 echo "configure:13102: checking for dbm_open" >&5
13102 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
13105 cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13108 /* System header to define __stub macros and hopefully few prototypes,
13109 which can conflict with char dbm_open(); below. */
13110 #include <assert.h>
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13119 /* The GNU C library defines this for functions which it implements
13120 to always fail with ENOSYS. Some functions are actually named
13121 something starting with __ and the normal name is an alias. */
13122 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13130 if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13132 eval "ac_cv_func_dbm_open=yes"
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13137 eval "ac_cv_func_dbm_open=no"
13142 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13143 echo "$ac_t""yes" 1>&6
13146 echo "$ac_t""no" 1>&6
13148 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13149 echo "configure:13150: checking for dbm_open in -lndbm" >&5
13150 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13151 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13154 ac_save_LIBS="$LIBS"
13155 LIBS="-lndbm $LIBS"
13156 cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure"
13158 #include "confdefs.h"
13159 /* Override any gcc2 internal prototype to avoid an error. */
13160 /* We use char because int might match the return type of a gcc2
13161 builtin and then its argument prototype would still apply. */
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13170 eval "ac_cv_lib_$ac_lib_var=yes"
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13175 eval "ac_cv_lib_$ac_lib_var=no"
13178 LIBS="$ac_save_LIBS"
13181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13182 echo "$ac_t""yes" 1>&6
13183 ol_cv_lib_ndbm=-lndbm
13185 echo "$ac_t""no" 1>&6
13187 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13188 echo "configure:13189: checking for dbm_open in -ldbm" >&5
13189 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13191 echo $ac_n "(cached) $ac_c" 1>&6
13193 ac_save_LIBS="$LIBS"
13195 cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 /* Override any gcc2 internal prototype to avoid an error. */
13199 /* We use char because int might match the return type of a gcc2
13200 builtin and then its argument prototype would still apply. */
13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13209 eval "ac_cv_lib_$ac_lib_var=yes"
13211 echo "configure: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13214 eval "ac_cv_lib_$ac_lib_var=no"
13217 LIBS="$ac_save_LIBS"
13220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13221 echo "$ac_t""yes" 1>&6
13222 ol_cv_lib_ndbm=-ldbm
13224 echo "$ac_t""no" 1>&6
13237 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13240 for ac_hdr in ndbm.h
13242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13244 echo "configure:13245: checking for $ac_hdr" >&5
13245 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13246 echo $ac_n "(cached) $ac_c" 1>&6
13248 cat > conftest.$ac_ext <<EOF
13249 #line 13250 "configure"
13250 #include "confdefs.h"
13253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13254 { (eval echo configure:13255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13256 if test -z "$ac_err"; then
13258 eval "ac_cv_header_$ac_safe=yes"
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13264 eval "ac_cv_header_$ac_safe=no"
13268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13269 echo "$ac_t""yes" 1>&6
13270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13271 cat >> confdefs.h <<EOF
13272 #define $ac_tr_hdr 1
13276 echo "$ac_t""no" 1>&6
13280 echo $ac_n "checking for db""... $ac_c" 1>&6
13281 echo "configure:13282: checking for db" >&5
13282 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13283 echo $ac_n "(cached) $ac_c" 1>&6
13286 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13294 echo "$ac_t""$ol_cv_ndbm" 1>&6
13295 if test $ol_cv_ndbm = yes ; then
13296 cat >> confdefs.h <<\EOF
13297 #define HAVE_NDBM 1
13303 if test $ol_cv_ndbm = yes ; then
13305 ol_with_ldbm_api=ndbm
13307 if test $ol_cv_lib_ndbm != yes ; then
13308 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13313 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13314 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13315 if test $ol_enable_ldbm = yes ; then
13316 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13319 echo "configure: warning: disabling LDBM" 1>&2
13323 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13324 LINK_BINS_DYNAMIC="yes"
13326 LINK_BINS_DYNAMIC="no"
13329 if test $ol_enable_wrappers != no ; then
13330 for ac_hdr in tcpd.h
13332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13334 echo "configure:13335: checking for $ac_hdr" >&5
13335 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13336 echo $ac_n "(cached) $ac_c" 1>&6
13338 cat > conftest.$ac_ext <<EOF
13339 #line 13340 "configure"
13340 #include "confdefs.h"
13343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13344 { (eval echo configure:13345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13346 if test -z "$ac_err"; then
13348 eval "ac_cv_header_$ac_safe=yes"
13351 echo "configure: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13354 eval "ac_cv_header_$ac_safe=no"
13358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13359 echo "$ac_t""yes" 1>&6
13360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13361 cat >> confdefs.h <<EOF
13362 #define $ac_tr_hdr 1
13366 echo "$ac_t""no" 1>&6
13371 if test $ac_cv_header_tcpd_h != yes ; then
13374 cat > conftest.$ac_ext <<EOF
13375 #line 13376 "configure"
13376 #include "confdefs.h"
13378 int allow_severity = 0;
13379 int deny_severity = 0;
13385 if { (eval echo configure:13386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13397 if test $have_wrappers = yes ; then
13398 cat >> confdefs.h <<\EOF
13399 #define HAVE_TCPD 1
13404 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13405 echo "configure:13406: checking for main in -lnsl" >&5
13406 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13407 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13408 echo $ac_n "(cached) $ac_c" 1>&6
13410 ac_save_LIBS="$LIBS"
13412 cat > conftest.$ac_ext <<EOF
13413 #line 13414 "configure"
13414 #include "confdefs.h"
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13422 eval "ac_cv_lib_$ac_lib_var=yes"
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13427 eval "ac_cv_lib_$ac_lib_var=no"
13430 LIBS="$ac_save_LIBS"
13433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13434 echo "$ac_t""yes" 1>&6
13435 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13437 cat >> confdefs.h <<EOF
13438 #define $ac_tr_lib 1
13444 echo "$ac_t""no" 1>&6
13448 echo "configure: warning: could not find -lwrap" 1>&2
13449 if test $ol_enable_wrappers = yes ; then
13450 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13453 echo "configure: warning: disabling wrappers support" 1>&2
13454 ol_enable_wrappers=no
13459 if test $ol_enable_syslog != no ; then
13460 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13461 echo "configure:13462: checking for openlog" >&5
13462 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13463 echo $ac_n "(cached) $ac_c" 1>&6
13465 cat > conftest.$ac_ext <<EOF
13466 #line 13467 "configure"
13467 #include "confdefs.h"
13468 /* System header to define __stub macros and hopefully few prototypes,
13469 which can conflict with char openlog(); below. */
13470 #include <assert.h>
13471 /* Override any gcc2 internal prototype to avoid an error. */
13472 /* We use char because int might match the return type of a gcc2
13473 builtin and then its argument prototype would still apply. */
13479 /* The GNU C library defines this for functions which it implements
13480 to always fail with ENOSYS. Some functions are actually named
13481 something starting with __ and the normal name is an alias. */
13482 #if defined (__stub_openlog) || defined (__stub___openlog)
13490 if { (eval echo configure:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13492 eval "ac_cv_func_openlog=yes"
13494 echo "configure: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
13497 eval "ac_cv_func_openlog=no"
13502 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13503 echo "$ac_t""yes" 1>&6
13506 echo "$ac_t""no" 1>&6
13509 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13510 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13512 ol_enable_syslog=$ac_cv_func_openlog
13517 if test $ol_enable_sql != no ; then
13518 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13519 echo "configure:13520: checking for SQLDriverConnect in -liodbc" >&5
13520 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13522 echo $ac_n "(cached) $ac_c" 1>&6
13524 ac_save_LIBS="$LIBS"
13525 LIBS="-liodbc $LIBS"
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 /* Override any gcc2 internal prototype to avoid an error. */
13530 /* We use char because int might match the return type of a gcc2
13531 builtin and then its argument prototype would still apply. */
13532 char SQLDriverConnect();
13538 if { (eval echo configure:13539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13540 eval "ac_cv_lib_$ac_lib_var=yes"
13542 echo "configure: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13545 eval "ac_cv_lib_$ac_lib_var=no"
13548 LIBS="$ac_save_LIBS"
13551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13552 echo "$ac_t""yes" 1>&6
13555 echo "$ac_t""no" 1>&6
13559 if test $have_iodbc = yes ; then
13560 ol_link_sql="-liodbc"
13562 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13563 echo "configure:13564: checking for SQLDriverConnect in -lodbc" >&5
13564 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
13568 ac_save_LIBS="$LIBS"
13569 LIBS="-lodbc $LIBS"
13570 cat > conftest.$ac_ext <<EOF
13571 #line 13572 "configure"
13572 #include "confdefs.h"
13573 /* Override any gcc2 internal prototype to avoid an error. */
13574 /* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13576 char SQLDriverConnect();
13582 if { (eval echo configure:13583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13584 eval "ac_cv_lib_$ac_lib_var=yes"
13586 echo "configure: failed program was:" >&5
13587 cat conftest.$ac_ext >&5
13589 eval "ac_cv_lib_$ac_lib_var=no"
13592 LIBS="$ac_save_LIBS"
13595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13596 echo "$ac_t""yes" 1>&6
13599 echo "$ac_t""no" 1>&6
13603 if test $have_odbc = yes ; then
13604 ol_link_sql="-lodbc"
13608 if test $ol_link_sql != no ; then
13609 SLAPD_SQL_LIBS="$ol_link_sql"
13611 elif test $ol_enable_sql != auto ; then
13612 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13616 if test $ol_enable_tcl != no ; then
13617 for ac_hdr in tcl.h
13619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13621 echo "configure:13622: checking for $ac_hdr" >&5
13622 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13623 echo $ac_n "(cached) $ac_c" 1>&6
13625 cat > conftest.$ac_ext <<EOF
13626 #line 13627 "configure"
13627 #include "confdefs.h"
13630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13631 { (eval echo configure:13632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13633 if test -z "$ac_err"; then
13635 eval "ac_cv_header_$ac_safe=yes"
13638 echo "configure: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13641 eval "ac_cv_header_$ac_safe=no"
13645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13646 echo "$ac_t""yes" 1>&6
13647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13648 cat >> confdefs.h <<EOF
13649 #define $ac_tr_hdr 1
13653 echo "$ac_t""no" 1>&6
13658 if test $ac_cv_header_tcl_h != yes ; then
13661 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13662 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13663 echo "configure:13664: checking for main in -l$lib" >&5
13664 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13665 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13666 echo $ac_n "(cached) $ac_c" 1>&6
13668 ac_save_LIBS="$LIBS"
13669 LIBS="-l$lib $LIBS"
13670 cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13680 eval "ac_cv_lib_$ac_lib_var=yes"
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13685 eval "ac_cv_lib_$ac_lib_var=no"
13688 LIBS="$ac_save_LIBS"
13691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13692 echo "$ac_t""yes" 1>&6
13694 if test x"$ol_with_tcl_module" = "xstatic" ; then
13695 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13697 MOD_TCL_LIB="-l${lib}"
13700 echo "$ac_t""no" 1>&6
13707 if test $have_tcl != yes ; then
13708 echo "configure: warning: could not find -ltcl" 1>&2
13709 if test $ol_enable_tcl = yes ; then
13710 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13718 for ac_hdr in termcap.h ncurses.h
13720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13722 echo "configure:13723: checking for $ac_hdr" >&5
13723 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13726 cat > conftest.$ac_ext <<EOF
13727 #line 13728 "configure"
13728 #include "confdefs.h"
13731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13732 { (eval echo configure:13733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13734 if test -z "$ac_err"; then
13736 eval "ac_cv_header_$ac_safe=yes"
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13742 eval "ac_cv_header_$ac_safe=no"
13746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13747 echo "$ac_t""yes" 1>&6
13748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13749 cat >> confdefs.h <<EOF
13750 #define $ac_tr_hdr 1
13754 echo "$ac_t""no" 1>&6
13759 if test $ol_link_termcap = no ; then
13760 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13761 echo "configure:13762: checking for tputs in -ltermcap" >&5
13762 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13764 echo $ac_n "(cached) $ac_c" 1>&6
13766 ac_save_LIBS="$LIBS"
13767 LIBS="-ltermcap $LIBS"
13768 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 /* Override any gcc2 internal prototype to avoid an error. */
13772 /* We use char because int might match the return type of a gcc2
13773 builtin and then its argument prototype would still apply. */
13780 if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782 eval "ac_cv_lib_$ac_lib_var=yes"
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13787 eval "ac_cv_lib_$ac_lib_var=no"
13790 LIBS="$ac_save_LIBS"
13793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13794 echo "$ac_t""yes" 1>&6
13797 echo "$ac_t""no" 1>&6
13801 if test $have_termcap = yes ; then
13802 cat >> confdefs.h <<\EOF
13803 #define HAVE_TERMCAP 1
13806 ol_link_termcap=yes
13807 TERMCAP_LIBS=-ltermcap
13811 if test $ol_link_termcap = no ; then
13812 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13813 echo "configure:13814: checking for initscr in -lncurses" >&5
13814 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13815 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13816 echo $ac_n "(cached) $ac_c" 1>&6
13818 ac_save_LIBS="$LIBS"
13819 LIBS="-lncurses $LIBS"
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13823 /* Override any gcc2 internal prototype to avoid an error. */
13824 /* We use char because int might match the return type of a gcc2
13825 builtin and then its argument prototype would still apply. */
13832 if { (eval echo configure:13833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 eval "ac_cv_lib_$ac_lib_var=yes"
13836 echo "configure: failed program was:" >&5
13837 cat conftest.$ac_ext >&5
13839 eval "ac_cv_lib_$ac_lib_var=no"
13842 LIBS="$ac_save_LIBS"
13845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13846 echo "$ac_t""yes" 1>&6
13849 echo "$ac_t""no" 1>&6
13853 if test $have_ncurses = yes ; then
13854 cat >> confdefs.h <<\EOF
13855 #define HAVE_NCURSES 1
13858 ol_link_termcap=yes
13859 TERMCAP_LIBS=-lncurses
13863 if test $ol_link_termcap = no ; then
13864 cat >> confdefs.h <<\EOF
13865 #define NO_TERMCAP 1
13873 if test $ol_with_cyrus_sasl != no ; then
13874 for ac_hdr in sasl.h
13876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13878 echo "configure:13879: checking for $ac_hdr" >&5
13879 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13882 cat > conftest.$ac_ext <<EOF
13883 #line 13884 "configure"
13884 #include "confdefs.h"
13887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13888 { (eval echo configure:13889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13890 if test -z "$ac_err"; then
13892 eval "ac_cv_header_$ac_safe=yes"
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13898 eval "ac_cv_header_$ac_safe=no"
13902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13903 echo "$ac_t""yes" 1>&6
13904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13905 cat >> confdefs.h <<EOF
13906 #define $ac_tr_hdr 1
13910 echo "$ac_t""no" 1>&6
13915 if test $ac_cv_header_sasl_h = yes ; then
13916 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13917 echo "configure:13918: checking for sasl_client_init in -lsasl" >&5
13918 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13922 ac_save_LIBS="$LIBS"
13923 LIBS="-lsasl $LIBS"
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 /* Override any gcc2 internal prototype to avoid an error. */
13928 /* We use char because int might match the return type of a gcc2
13929 builtin and then its argument prototype would still apply. */
13930 char sasl_client_init();
13936 if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13938 eval "ac_cv_lib_$ac_lib_var=yes"
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13943 eval "ac_cv_lib_$ac_lib_var=no"
13946 LIBS="$ac_save_LIBS"
13949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13950 echo "$ac_t""yes" 1>&6
13951 have_cyrus_sasl=yes
13953 echo "$ac_t""no" 1>&6
13958 if test $have_cyrus_sasl != no ; then
13960 cat >> confdefs.h <<\EOF
13961 #define HAVE_CYRUS_SASL 1
13968 if test $ol_link_sasl = no ; then
13969 if test $ol_with_cyrus_sasl != auto ; then
13970 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13972 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13973 echo "configure: warning: SASL authentication not supported!" 1>&2
13974 if test $ol_link_tls = no ; then
13975 echo "configure: warning: Strong authentication not supported!" 1>&2
13979 elif test $ol_enable_spasswd != no ; then
13980 ol_link_spasswd=yes
13984 echo "configure: warning: SASL authentication not supported!" 1>&2
13985 if test $ol_link_tls = no ; then
13986 echo "configure: warning: Strong authentication not supported!" 1>&2
13990 if test $cross_compiling != yes ; then
13992 if test -r /dev/urandom ; then
13993 dev="/dev/urandom";
13994 elif test -r /idev/urandom ; then
13995 dev="/idev/urandom";
13996 elif test -r /dev/srandom ; then
13997 dev="/dev/srandom";
13998 elif test -r /dev/random ; then
14000 elif test -r /idev/random ; then
14001 dev="/idev/random";
14004 if test $dev != no ; then
14005 cat >> confdefs.h <<EOF
14006 #define URANDOM_DEVICE "$dev"
14013 if test $ol_with_fetch != no ; then
14015 LIBS="-lfetch -lcom_err $LIBS"
14016 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14017 echo "configure:14018: checking fetch(3) library" >&5
14018 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
14022 cat > conftest.$ac_ext <<EOF
14023 #line 14024 "configure"
14024 #include "confdefs.h"
14026 #include <sys/param.h>
14030 struct url *u = fetchParseURL("file:///");
14033 if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14035 ol_cv_lib_fetch=yes
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14045 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14047 if test $ol_cv_lib_fetch != no ; then
14048 ol_link_fetch="-lfetch -lcom_err"
14049 cat >> confdefs.h <<\EOF
14050 #define HAVE_FETCH 1
14056 if test $ol_cv_lib_fetch != no ; then
14057 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14058 ol_link_fetch=freebsd
14060 elif test $ol_with_fetch != auto ; then
14061 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14065 ol_link_readline=no
14066 if test $ol_with_readline != no ; then
14067 for ac_hdr in readline/readline.h readline/history.h
14069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14071 echo "configure:14072: checking for $ac_hdr" >&5
14072 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14073 echo $ac_n "(cached) $ac_c" 1>&6
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14081 { (eval echo configure:14082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14083 if test -z "$ac_err"; then
14085 eval "ac_cv_header_$ac_safe=yes"
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14091 eval "ac_cv_header_$ac_safe=no"
14095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14096 echo "$ac_t""yes" 1>&6
14097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14098 cat >> confdefs.h <<EOF
14099 #define $ac_tr_hdr 1
14103 echo "$ac_t""no" 1>&6
14108 if test $ac_cv_header_readline_readline_h = yes ; then
14110 LIBS="$TERMCAP_LIBS $LIBS"
14111 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14112 echo "configure:14113: checking for readline in -lreadline" >&5
14113 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14115 echo $ac_n "(cached) $ac_c" 1>&6
14117 ac_save_LIBS="$LIBS"
14118 LIBS="-lreadline $LIBS"
14119 cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 /* Override any gcc2 internal prototype to avoid an error. */
14123 /* We use char because int might match the return type of a gcc2
14124 builtin and then its argument prototype would still apply. */
14131 if { (eval echo configure:14132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14133 eval "ac_cv_lib_$ac_lib_var=yes"
14135 echo "configure: failed program was:" >&5
14136 cat conftest.$ac_ext >&5
14138 eval "ac_cv_lib_$ac_lib_var=no"
14141 LIBS="$ac_save_LIBS"
14144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14145 echo "$ac_t""yes" 1>&6
14148 echo "$ac_t""no" 1>&6
14154 if test $have_readline = yes ; then
14155 ol_with_readline=found
14156 ol_link_readline=yes
14158 READLINE_LIBS="-lreadline"
14163 if test $ol_link_readline = yes ; then
14164 cat >> confdefs.h <<\EOF
14165 #define HAVE_READLINE 1
14171 if test $ol_enable_crypt != no ; then
14172 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14173 echo "configure:14174: checking for crypt" >&5
14174 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14177 cat > conftest.$ac_ext <<EOF
14178 #line 14179 "configure"
14179 #include "confdefs.h"
14180 /* System header to define __stub macros and hopefully few prototypes,
14181 which can conflict with char crypt(); below. */
14182 #include <assert.h>
14183 /* Override any gcc2 internal prototype to avoid an error. */
14184 /* We use char because int might match the return type of a gcc2
14185 builtin and then its argument prototype would still apply. */
14191 /* The GNU C library defines this for functions which it implements
14192 to always fail with ENOSYS. Some functions are actually named
14193 something starting with __ and the normal name is an alias. */
14194 #if defined (__stub_crypt) || defined (__stub___crypt)
14202 if { (eval echo configure:14203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14204 eval "ac_cv_func_crypt=yes"
14206 echo "configure: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14209 eval "ac_cv_func_crypt=no"
14214 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14215 echo "$ac_t""yes" 1>&6
14218 echo "$ac_t""no" 1>&6
14220 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14221 echo "configure:14222: checking for crypt in -lcrypt" >&5
14222 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14224 echo $ac_n "(cached) $ac_c" 1>&6
14226 ac_save_LIBS="$LIBS"
14227 LIBS="-lcrypt $LIBS"
14228 cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 /* Override any gcc2 internal prototype to avoid an error. */
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14240 if { (eval echo configure:14241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14242 eval "ac_cv_lib_$ac_lib_var=yes"
14244 echo "configure: failed program was:" >&5
14245 cat conftest.$ac_ext >&5
14247 eval "ac_cv_lib_$ac_lib_var=no"
14250 LIBS="$ac_save_LIBS"
14253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14254 echo "$ac_t""yes" 1>&6
14255 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14258 echo "$ac_t""no" 1>&6
14265 if test $have_crypt = yes ; then
14266 cat >> confdefs.h <<\EOF
14267 #define HAVE_CRYPT 1
14271 echo "configure: warning: could not find crypt" 1>&2
14272 if test $ol_enable_crypt = yes ; then
14273 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14276 echo "configure: warning: disabling crypt support" 1>&2
14281 if test $ol_enable_proctitle != no ; then
14282 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14283 echo "configure:14284: checking for setproctitle" >&5
14284 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14285 echo $ac_n "(cached) $ac_c" 1>&6
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14290 /* System header to define __stub macros and hopefully few prototypes,
14291 which can conflict with char setproctitle(); below. */
14292 #include <assert.h>
14293 /* Override any gcc2 internal prototype to avoid an error. */
14294 /* We use char because int might match the return type of a gcc2
14295 builtin and then its argument prototype would still apply. */
14296 char setproctitle();
14301 /* The GNU C library defines this for functions which it implements
14302 to always fail with ENOSYS. Some functions are actually named
14303 something starting with __ and the normal name is an alias. */
14304 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14312 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314 eval "ac_cv_func_setproctitle=yes"
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14319 eval "ac_cv_func_setproctitle=no"
14324 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14325 echo "$ac_t""yes" 1>&6
14326 have_setproctitle=yes
14328 echo "$ac_t""no" 1>&6
14330 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14331 echo "configure:14332: checking for setproctitle in -lutil" >&5
14332 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14334 echo $ac_n "(cached) $ac_c" 1>&6
14336 ac_save_LIBS="$LIBS"
14337 LIBS="-lutil $LIBS"
14338 cat > conftest.$ac_ext <<EOF
14339 #line 14340 "configure"
14340 #include "confdefs.h"
14341 /* Override any gcc2 internal prototype to avoid an error. */
14342 /* We use char because int might match the return type of a gcc2
14343 builtin and then its argument prototype would still apply. */
14344 char setproctitle();
14350 if { (eval echo configure:14351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14352 eval "ac_cv_lib_$ac_lib_var=yes"
14354 echo "configure: failed program was:" >&5
14355 cat conftest.$ac_ext >&5
14357 eval "ac_cv_lib_$ac_lib_var=no"
14360 LIBS="$ac_save_LIBS"
14363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14364 echo "$ac_t""yes" 1>&6
14365 have_setproctitle=yes
14366 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14368 echo "$ac_t""no" 1>&6
14369 have_setproctitle=no
14370 LIBOBJS="$LIBOBJS setproctitle.o"
14371 LIBSRCS="$LIBSRCS setproctitle.c"
14377 if test $have_setproctitle = yes ; then
14378 cat >> confdefs.h <<\EOF
14379 #define HAVE_SETPROCTITLE 1
14385 if test $ol_enable_slp != no ; then
14386 for ac_hdr in slp.h
14388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14390 echo "configure:14391: checking for $ac_hdr" >&5
14391 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14392 echo $ac_n "(cached) $ac_c" 1>&6
14394 cat > conftest.$ac_ext <<EOF
14395 #line 14396 "configure"
14396 #include "confdefs.h"
14399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14400 { (eval echo configure:14401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14402 if test -z "$ac_err"; then
14404 eval "ac_cv_header_$ac_safe=yes"
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14410 eval "ac_cv_header_$ac_safe=no"
14414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14415 echo "$ac_t""yes" 1>&6
14416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14417 cat >> confdefs.h <<EOF
14418 #define $ac_tr_hdr 1
14422 echo "$ac_t""no" 1>&6
14427 if test $ac_cv_header_slp_h = yes ; then
14428 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
14429 echo "configure:14430: checking for SLPOpen in -lslp" >&5
14430 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
14431 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14432 echo $ac_n "(cached) $ac_c" 1>&6
14434 ac_save_LIBS="$LIBS"
14436 cat > conftest.$ac_ext <<EOF
14437 #line 14438 "configure"
14438 #include "confdefs.h"
14439 /* Override any gcc2 internal prototype to avoid an error. */
14440 /* We use char because int might match the return type of a gcc2
14441 builtin and then its argument prototype would still apply. */
14448 if { (eval echo configure:14449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14450 eval "ac_cv_lib_$ac_lib_var=yes"
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14455 eval "ac_cv_lib_$ac_lib_var=no"
14458 LIBS="$ac_save_LIBS"
14461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14462 echo "$ac_t""yes" 1>&6
14465 echo "$ac_t""no" 1>&6
14469 if test $have_slp = yes ; then
14470 cat >> confdefs.h <<\EOF
14474 SLAPD_SLP_LIBS=-lslp
14477 elif test $ol_enable_slp = yes ; then
14478 { echo "configure: error: SLP not found" 1>&2; exit 1; }
14482 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14483 echo "configure:14484: checking for ANSI C header files" >&5
14484 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14485 echo $ac_n "(cached) $ac_c" 1>&6
14487 cat > conftest.$ac_ext <<EOF
14488 #line 14489 "configure"
14489 #include "confdefs.h"
14490 #include <stdlib.h>
14491 #include <stdarg.h>
14492 #include <string.h>
14495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14496 { (eval echo configure:14497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14498 if test -z "$ac_err"; then
14500 ac_cv_header_stdc=yes
14503 echo "configure: failed program was:" >&5
14504 cat conftest.$ac_ext >&5
14506 ac_cv_header_stdc=no
14510 if test $ac_cv_header_stdc = yes; then
14511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14512 cat > conftest.$ac_ext <<EOF
14513 #line 14514 "configure"
14514 #include "confdefs.h"
14515 #include <string.h>
14517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14518 egrep "memchr" >/dev/null 2>&1; then
14522 ac_cv_header_stdc=no
14528 if test $ac_cv_header_stdc = yes; then
14529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14530 cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure"
14532 #include "confdefs.h"
14533 #include <stdlib.h>
14535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14536 egrep "free" >/dev/null 2>&1; then
14540 ac_cv_header_stdc=no
14546 if test $ac_cv_header_stdc = yes; then
14547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14548 if test "$cross_compiling" = yes; then
14551 cat > conftest.$ac_ext <<EOF
14552 #line 14553 "configure"
14553 #include "confdefs.h"
14555 #if ((' ' & 0x0FF) == 0x020)
14556 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14557 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14559 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14560 || ('j' <= (c) && (c) <= 'r') \
14561 || ('s' <= (c) && (c) <= 'z'))
14562 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14565 int main () { int i; for (i = 0; i < 256; i++)
14566 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14570 if { (eval echo configure:14571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14577 ac_cv_header_stdc=no
14585 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14586 if test $ac_cv_header_stdc = yes; then
14587 cat >> confdefs.h <<\EOF
14588 #define STDC_HEADERS 1
14593 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14594 echo "configure:14595: checking for mode_t" >&5
14595 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14596 echo $ac_n "(cached) $ac_c" 1>&6
14598 cat > conftest.$ac_ext <<EOF
14599 #line 14600 "configure"
14600 #include "confdefs.h"
14601 #include <sys/types.h>
14603 #include <stdlib.h>
14604 #include <stddef.h>
14608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14609 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14611 eval "ac_cv_type_mode_t=yes"
14614 eval "ac_cv_type_mode_t=no"
14619 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14620 echo "$ac_t""yes" 1>&6
14622 echo "$ac_t""no" 1>&6
14623 cat >> confdefs.h <<EOF
14629 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14630 echo "configure:14631: checking for off_t" >&5
14631 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14632 echo $ac_n "(cached) $ac_c" 1>&6
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14637 #include <sys/types.h>
14639 #include <stdlib.h>
14640 #include <stddef.h>
14644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14645 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14647 eval "ac_cv_type_off_t=yes"
14650 eval "ac_cv_type_off_t=no"
14655 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14656 echo "$ac_t""yes" 1>&6
14658 echo "$ac_t""no" 1>&6
14659 cat >> confdefs.h <<EOF
14665 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14666 echo "configure:14667: checking for pid_t" >&5
14667 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14668 echo $ac_n "(cached) $ac_c" 1>&6
14670 cat > conftest.$ac_ext <<EOF
14671 #line 14672 "configure"
14672 #include "confdefs.h"
14673 #include <sys/types.h>
14675 #include <stdlib.h>
14676 #include <stddef.h>
14680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14681 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14683 eval "ac_cv_type_pid_t=yes"
14686 eval "ac_cv_type_pid_t=no"
14691 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14692 echo "$ac_t""yes" 1>&6
14694 echo "$ac_t""no" 1>&6
14695 cat >> confdefs.h <<EOF
14701 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14702 echo "configure:14703: checking for ptrdiff_t" >&5
14703 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14704 echo $ac_n "(cached) $ac_c" 1>&6
14706 cat > conftest.$ac_ext <<EOF
14707 #line 14708 "configure"
14708 #include "confdefs.h"
14709 #include <stddef.h>
14714 if { (eval echo configure:14715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14716 am_cv_type_ptrdiff_t=yes
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14721 am_cv_type_ptrdiff_t=no
14726 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14727 if test $am_cv_type_ptrdiff_t = yes; then
14728 cat >> confdefs.h <<\EOF
14729 #define HAVE_PTRDIFF_T 1
14734 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14735 echo "configure:14736: checking return type of signal handlers" >&5
14736 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
14739 cat > conftest.$ac_ext <<EOF
14740 #line 14741 "configure"
14741 #include "confdefs.h"
14742 #include <sys/types.h>
14743 #include <signal.h>
14748 extern "C" void (*signal (int, void (*)(int)))(int);
14750 void (*signal ()) ();
14757 if { (eval echo configure:14758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14759 ac_cv_type_signal=void
14761 echo "configure: failed program was:" >&5
14762 cat conftest.$ac_ext >&5
14764 ac_cv_type_signal=int
14769 echo "$ac_t""$ac_cv_type_signal" 1>&6
14770 cat >> confdefs.h <<EOF
14771 #define RETSIGTYPE $ac_cv_type_signal
14775 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14776 echo "configure:14777: checking for size_t" >&5
14777 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14778 echo $ac_n "(cached) $ac_c" 1>&6
14780 cat > conftest.$ac_ext <<EOF
14781 #line 14782 "configure"
14782 #include "confdefs.h"
14783 #include <sys/types.h>
14785 #include <stdlib.h>
14786 #include <stddef.h>
14790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14791 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14793 eval "ac_cv_type_size_t=yes"
14796 eval "ac_cv_type_size_t=no"
14801 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14802 echo "$ac_t""yes" 1>&6
14804 echo "$ac_t""no" 1>&6
14805 cat >> confdefs.h <<EOF
14806 #define size_t unsigned
14812 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14813 echo "configure:14814: checking for ssize_t" >&5
14814 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14815 echo $ac_n "(cached) $ac_c" 1>&6
14817 cat > conftest.$ac_ext <<EOF
14818 #line 14819 "configure"
14819 #include "confdefs.h"
14820 #include <sys/types.h>
14822 #include <stdlib.h>
14823 #include <stddef.h>
14827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14828 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14830 eval "ac_cv_type_ssize_t=yes"
14833 eval "ac_cv_type_ssize_t=no"
14838 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14839 echo "$ac_t""yes" 1>&6
14841 echo "$ac_t""no" 1>&6
14842 cat >> confdefs.h <<EOF
14843 #define ssize_t signed int
14848 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14849 echo "configure:14850: checking for caddr_t" >&5
14850 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14853 cat > conftest.$ac_ext <<EOF
14854 #line 14855 "configure"
14855 #include "confdefs.h"
14856 #include <sys/types.h>
14858 #include <stdlib.h>
14859 #include <stddef.h>
14863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14864 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14866 eval "ac_cv_type_caddr_t=yes"
14869 eval "ac_cv_type_caddr_t=no"
14874 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14875 echo "$ac_t""yes" 1>&6
14877 echo "$ac_t""no" 1>&6
14878 cat >> confdefs.h <<EOF
14879 #define caddr_t char *
14885 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14886 echo "configure:14887: checking for socklen_t" >&5
14887 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14888 echo $ac_n "(cached) $ac_c" 1>&6
14890 cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure"
14892 #include "confdefs.h"
14894 #ifdef HAVE_SYS_TYPES_H
14895 #include <sys/types.h>
14897 #ifdef HAVE_SYS_SOCKET_H
14898 #include <sys/socket.h>
14905 if { (eval echo configure:14906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14907 ol_cv_type_socklen_t=yes
14909 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14912 ol_cv_type_socklen_t=no
14917 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14918 if test $ol_cv_type_socklen_t = no; then
14919 cat >> confdefs.h <<\EOF
14920 #define socklen_t int
14925 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14926 echo "configure:14927: checking for member st_blksize in aggregate type struct stat" >&5
14927 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14928 echo $ac_n "(cached) $ac_c" 1>&6
14930 cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 #include <sys/types.h>
14934 #include <sys/stat.h>
14936 struct stat foo; foo.st_blksize;
14939 if { (eval echo configure:14940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14941 ac_cv_c_struct_member_st_blksize=yes
14943 echo "configure: failed program was:" >&5
14944 cat conftest.$ac_ext >&5
14946 ac_cv_c_struct_member_st_blksize=no
14951 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14952 st_blksize="$ac_cv_c_struct_member_st_blksize"
14953 if test $ac_cv_c_struct_member_st_blksize = yes; then
14954 cat >> confdefs.h <<\EOF
14955 #define HAVE_ST_BLKSIZE 1
14960 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14961 echo "configure:14962: checking whether time.h and sys/time.h may both be included" >&5
14962 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14963 echo $ac_n "(cached) $ac_c" 1>&6
14965 cat > conftest.$ac_ext <<EOF
14966 #line 14967 "configure"
14967 #include "confdefs.h"
14968 #include <sys/types.h>
14969 #include <sys/time.h>
14975 if { (eval echo configure:14976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14977 ac_cv_header_time=yes
14979 echo "configure: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14982 ac_cv_header_time=no
14987 echo "$ac_t""$ac_cv_header_time" 1>&6
14988 if test $ac_cv_header_time = yes; then
14989 cat >> confdefs.h <<\EOF
14990 #define TIME_WITH_SYS_TIME 1
14995 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14996 echo "configure:14997: checking whether struct tm is in sys/time.h or time.h" >&5
14997 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14998 echo $ac_n "(cached) $ac_c" 1>&6
15000 cat > conftest.$ac_ext <<EOF
15001 #line 15002 "configure"
15002 #include "confdefs.h"
15003 #include <sys/types.h>
15006 struct tm *tp; tp->tm_sec;
15009 if { (eval echo configure:15010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15011 ac_cv_struct_tm=time.h
15013 echo "configure: failed program was:" >&5
15014 cat conftest.$ac_ext >&5
15016 ac_cv_struct_tm=sys/time.h
15021 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15022 if test $ac_cv_struct_tm = sys/time.h; then
15023 cat >> confdefs.h <<\EOF
15024 #define TM_IN_SYS_TIME 1
15029 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15030 echo "configure:15031: checking for uid_t in sys/types.h" >&5
15031 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15032 echo $ac_n "(cached) $ac_c" 1>&6
15034 cat > conftest.$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15037 #include <sys/types.h>
15039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15040 egrep "uid_t" >/dev/null 2>&1; then
15042 ac_cv_type_uid_t=yes
15045 ac_cv_type_uid_t=no
15051 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15052 if test $ac_cv_type_uid_t = no; then
15053 cat >> confdefs.h <<\EOF
15057 cat >> confdefs.h <<\EOF
15063 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15064 echo "configure:15065: checking for sig_atomic_t" >&5
15065 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15066 echo $ac_n "(cached) $ac_c" 1>&6
15068 cat > conftest.$ac_ext <<EOF
15069 #line 15070 "configure"
15070 #include "confdefs.h"
15071 #include <signal.h>
15073 sig_atomic_t atomic;
15076 if { (eval echo configure:15077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15078 ol_cv_type_sig_atomic_t=yes
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15083 ol_cv_type_sig_atomic_t=no
15088 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15089 if test $ol_cv_type_sig_atomic_t = no; then
15090 cat >> confdefs.h <<\EOF
15091 #define sig_atomic_t int
15098 # test for pw_gecos in struct passwd
15099 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15100 echo "configure:15101: checking struct passwd for pw_gecos" >&5
15101 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15102 echo $ac_n "(cached) $ac_c" 1>&6
15105 cat > conftest.$ac_ext <<EOF
15106 #line 15107 "configure"
15107 #include "confdefs.h"
15112 pwd.pw_gecos = pwd.pw_name;
15116 if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15118 ol_cv_struct_passwd_pw_gecos=yes
15120 echo "configure: failed program was:" >&5
15121 cat conftest.$ac_ext >&5
15123 ol_cv_struct_passwd_pw_gecos=no
15128 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15129 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15130 cat >> confdefs.h <<\EOF
15131 #define HAVE_PW_GECOS 1
15136 # test for pw_passwd in struct passwd
15137 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15138 echo "configure:15139: checking struct passwd for pw_passwd" >&5
15139 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15143 cat > conftest.$ac_ext <<EOF
15144 #line 15145 "configure"
15145 #include "confdefs.h"
15150 pwd.pw_passwd = pwd.pw_name;
15154 if { (eval echo configure:15155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15156 ol_cv_struct_passwd_pw_passwd=yes
15158 echo "configure: failed program was:" >&5
15159 cat conftest.$ac_ext >&5
15161 ol_cv_struct_passwd_pw_passwd=no
15166 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15167 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15168 cat >> confdefs.h <<\EOF
15169 #define HAVE_PW_PASSWD 1
15175 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15176 echo "configure:15177: checking if toupper() requires islower()" >&5
15177 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15178 echo $ac_n "(cached) $ac_c" 1>&6
15181 if test "$cross_compiling" = yes; then
15182 ol_cv_c_upper_lower=safe
15184 cat > conftest.$ac_ext <<EOF
15185 #line 15186 "configure"
15186 #include "confdefs.h"
15191 if ('C' == toupper('C'))
15197 if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15199 ol_cv_c_upper_lower=no
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15204 ol_cv_c_upper_lower=yes
15211 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15212 if test $ol_cv_c_upper_lower != no ; then
15213 cat >> confdefs.h <<\EOF
15214 #define C_UPPER_LOWER 1
15219 echo $ac_n "checking for working const""... $ac_c" 1>&6
15220 echo "configure:15221: checking for working const" >&5
15221 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15222 echo $ac_n "(cached) $ac_c" 1>&6
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15230 /* Ultrix mips cc rejects this. */
15231 typedef int charset[2]; const charset x;
15232 /* SunOS 4.1.1 cc rejects this. */
15233 char const *const *ccp;
15235 /* NEC SVR4.0.2 mips cc rejects this. */
15236 struct point {int x, y;};
15237 static struct point const zero = {0,0};
15238 /* AIX XL C 1.02.0.0 rejects this.
15239 It does not let you subtract one const X* pointer from another in an arm
15240 of an if-expression whose if-part is not a constant expression */
15241 const char *g = "string";
15242 ccp = &g + (g ? g-g : 0);
15243 /* HPUX 7.0 cc rejects these. */
15246 ccp = (char const *const *) p;
15247 { /* SCO 3.2v4 cc rejects this. */
15249 char const *s = 0 ? (char *) 0 : (char const *) 0;
15253 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15254 int x[] = {25, 17};
15255 const int *foo = &x[0];
15258 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15259 typedef const int *iptr;
15263 { /* AIX XL C 1.02.0.0 rejects this saying
15264 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15265 struct s { int j; const int *ap[3]; };
15266 struct s *b; b->j = 5;
15268 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15269 const int foo = 10;
15274 if { (eval echo configure:15275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15286 echo "$ac_t""$ac_cv_c_const" 1>&6
15287 if test $ac_cv_c_const = no; then
15288 cat >> confdefs.h <<\EOF
15294 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15295 echo "configure:15296: checking if compiler understands volatile" >&5
15296 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15297 echo $ac_n "(cached) $ac_c" 1>&6
15299 cat > conftest.$ac_ext <<EOF
15300 #line 15301 "configure"
15301 #include "confdefs.h"
15304 volatile int a; int * volatile b = x ? &y : &z;
15305 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15309 if { (eval echo configure:15310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15311 ol_cv_c_volatile=yes
15313 echo "configure: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15316 ol_cv_c_volatile=no
15321 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15322 if test $ol_cv_c_volatile = yes; then
15325 cat >> confdefs.h <<\EOF
15332 if test $cross_compiling = yes ; then
15333 cat >> confdefs.h <<\EOF
15334 #define CROSS_COMPILING 1
15338 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15339 echo "configure:15340: checking whether byte ordering is bigendian" >&5
15340 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15341 echo $ac_n "(cached) $ac_c" 1>&6
15343 ac_cv_c_bigendian=unknown
15344 # See if sys/param.h defines the BYTE_ORDER macro.
15345 cat > conftest.$ac_ext <<EOF
15346 #line 15347 "configure"
15347 #include "confdefs.h"
15348 #include <sys/types.h>
15349 #include <sys/param.h>
15352 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15353 bogus endian macros
15357 if { (eval echo configure:15358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15359 # It does; now see whether it defined to BIG_ENDIAN or not.
15360 cat > conftest.$ac_ext <<EOF
15361 #line 15362 "configure"
15362 #include "confdefs.h"
15363 #include <sys/types.h>
15364 #include <sys/param.h>
15367 #if BYTE_ORDER != BIG_ENDIAN
15372 if { (eval echo configure:15373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15374 ac_cv_c_bigendian=yes
15376 echo "configure: failed program was:" >&5
15377 cat conftest.$ac_ext >&5
15379 ac_cv_c_bigendian=no
15383 echo "configure: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15387 if test $ac_cv_c_bigendian = unknown; then
15388 if test "$cross_compiling" = yes; then
15389 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15395 /* Are we little or big endian? From Harbison&Steele. */
15399 char c[sizeof (long)];
15402 exit (u.c[sizeof (long) - 1] == 1);
15405 if { (eval echo configure:15406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15407 ac_cv_c_bigendian=no
15409 echo "configure: failed program was:" >&5
15410 cat conftest.$ac_ext >&5
15412 ac_cv_c_bigendian=yes
15420 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15421 if test $ac_cv_c_bigendian = yes; then
15422 cat >> confdefs.h <<\EOF
15423 #define WORDS_BIGENDIAN 1
15430 echo $ac_n "checking size of short""... $ac_c" 1>&6
15431 echo "configure:15432: checking size of short" >&5
15432 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15433 echo $ac_n "(cached) $ac_c" 1>&6
15435 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15436 cat > conftest.$ac_ext <<EOF
15437 #line 15438 "configure"
15438 #include "confdefs.h"
15439 #include "confdefs.h"
15440 #include <sys/types.h>
15444 switch (0) case 0: case (sizeof (short) == $ac_size):;
15447 if { (eval echo configure:15448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15449 ac_cv_sizeof_short=$ac_size
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15455 if test x$ac_cv_sizeof_short != x ; then break; fi
15460 if test x$ac_cv_sizeof_short = x ; then
15461 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15463 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15464 cat >> confdefs.h <<EOF
15465 #define SIZEOF_SHORT $ac_cv_sizeof_short
15469 echo $ac_n "checking size of int""... $ac_c" 1>&6
15470 echo "configure:15471: checking size of int" >&5
15471 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15472 echo $ac_n "(cached) $ac_c" 1>&6
15474 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15478 #include "confdefs.h"
15479 #include <sys/types.h>
15483 switch (0) case 0: case (sizeof (int) == $ac_size):;
15486 if { (eval echo configure:15487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15488 ac_cv_sizeof_int=$ac_size
15490 echo "configure: failed program was:" >&5
15491 cat conftest.$ac_ext >&5
15494 if test x$ac_cv_sizeof_int != x ; then break; fi
15499 if test x$ac_cv_sizeof_int = x ; then
15500 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15502 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15503 cat >> confdefs.h <<EOF
15504 #define SIZEOF_INT $ac_cv_sizeof_int
15508 echo $ac_n "checking size of long""... $ac_c" 1>&6
15509 echo "configure:15510: checking size of long" >&5
15510 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15513 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15514 cat > conftest.$ac_ext <<EOF
15515 #line 15516 "configure"
15516 #include "confdefs.h"
15517 #include "confdefs.h"
15518 #include <sys/types.h>
15522 switch (0) case 0: case (sizeof (long) == $ac_size):;
15525 if { (eval echo configure:15526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15527 ac_cv_sizeof_long=$ac_size
15529 echo "configure: failed program was:" >&5
15530 cat conftest.$ac_ext >&5
15533 if test x$ac_cv_sizeof_long != x ; then break; fi
15538 if test x$ac_cv_sizeof_long = x ; then
15539 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15541 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15542 cat >> confdefs.h <<EOF
15543 #define SIZEOF_LONG $ac_cv_sizeof_long
15548 if test "$ac_cv_sizeof_int" -lt 4 ; then
15549 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15551 cat >> confdefs.h <<\EOF
15552 #define LBER_INT_T long
15556 cat >> confdefs.h <<\EOF
15557 #define LBER_INT_T int
15562 cat >> confdefs.h <<\EOF
15563 #define LBER_LEN_T long
15566 cat >> confdefs.h <<\EOF
15567 #define LBER_SOCKET_T int
15570 cat >> confdefs.h <<\EOF
15571 #define LBER_TAG_T long
15575 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15576 echo "configure:15577: checking for 8-bit clean memcmp" >&5
15577 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15578 echo $ac_n "(cached) $ac_c" 1>&6
15580 if test "$cross_compiling" = yes; then
15581 ac_cv_func_memcmp_clean=no
15583 cat > conftest.$ac_ext <<EOF
15584 #line 15585 "configure"
15585 #include "confdefs.h"
15589 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15590 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15594 if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15596 ac_cv_func_memcmp_clean=yes
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15601 ac_cv_func_memcmp_clean=no
15608 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15609 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15611 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15612 echo "configure:15613: checking for strftime" >&5
15613 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15614 echo $ac_n "(cached) $ac_c" 1>&6
15616 cat > conftest.$ac_ext <<EOF
15617 #line 15618 "configure"
15618 #include "confdefs.h"
15619 /* System header to define __stub macros and hopefully few prototypes,
15620 which can conflict with char strftime(); below. */
15621 #include <assert.h>
15622 /* Override any gcc2 internal prototype to avoid an error. */
15623 /* We use char because int might match the return type of a gcc2
15624 builtin and then its argument prototype would still apply. */
15630 /* The GNU C library defines this for functions which it implements
15631 to always fail with ENOSYS. Some functions are actually named
15632 something starting with __ and the normal name is an alias. */
15633 #if defined (__stub_strftime) || defined (__stub___strftime)
15641 if { (eval echo configure:15642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15643 eval "ac_cv_func_strftime=yes"
15645 echo "configure: failed program was:" >&5
15646 cat conftest.$ac_ext >&5
15648 eval "ac_cv_func_strftime=no"
15653 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15654 echo "$ac_t""yes" 1>&6
15655 cat >> confdefs.h <<\EOF
15656 #define HAVE_STRFTIME 1
15660 echo "$ac_t""no" 1>&6
15661 # strftime is in -lintl on SCO UNIX.
15662 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15663 echo "configure:15664: checking for strftime in -lintl" >&5
15664 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15665 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15666 echo $ac_n "(cached) $ac_c" 1>&6
15668 ac_save_LIBS="$LIBS"
15669 LIBS="-lintl $LIBS"
15670 cat > conftest.$ac_ext <<EOF
15671 #line 15672 "configure"
15672 #include "confdefs.h"
15673 /* Override any gcc2 internal prototype to avoid an error. */
15674 /* We use char because int might match the return type of a gcc2
15675 builtin and then its argument prototype would still apply. */
15682 if { (eval echo configure:15683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15684 eval "ac_cv_lib_$ac_lib_var=yes"
15686 echo "configure: failed program was:" >&5
15687 cat conftest.$ac_ext >&5
15689 eval "ac_cv_lib_$ac_lib_var=no"
15692 LIBS="$ac_save_LIBS"
15695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15696 echo "$ac_t""yes" 1>&6
15697 cat >> confdefs.h <<\EOF
15698 #define HAVE_STRFTIME 1
15701 LIBS="-lintl $LIBS"
15703 echo "$ac_t""no" 1>&6
15709 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15710 echo "configure:15711: checking for inet_aton()" >&5
15711 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15712 echo $ac_n "(cached) $ac_c" 1>&6
15714 cat > conftest.$ac_ext <<EOF
15715 #line 15716 "configure"
15716 #include "confdefs.h"
15718 #ifdef HAVE_SYS_TYPES_H
15719 # include <sys/types.h>
15721 #ifdef HAVE_SYS_SOCKET_H
15722 # include <sys/socket.h>
15723 # ifdef HAVE_SYS_SELECT_H
15724 # include <sys/select.h>
15726 # include <netinet/in.h>
15727 # ifdef HAVE_ARPA_INET_H
15728 # include <arpa/inet.h>
15734 int rc = inet_aton( "255.255.255.255", &in );
15737 if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15739 ol_cv_func_inet_aton=yes
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15744 ol_cv_func_inet_aton=no
15749 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15750 if test $ol_cv_func_inet_aton != no; then
15751 cat >> confdefs.h <<\EOF
15752 #define HAVE_INET_ATON 1
15758 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15759 echo "configure:15760: checking for _spawnlp" >&5
15760 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15761 echo $ac_n "(cached) $ac_c" 1>&6
15763 cat > conftest.$ac_ext <<EOF
15764 #line 15765 "configure"
15765 #include "confdefs.h"
15766 /* System header to define __stub macros and hopefully few prototypes,
15767 which can conflict with char _spawnlp(); below. */
15768 #include <assert.h>
15769 /* Override any gcc2 internal prototype to avoid an error. */
15770 /* We use char because int might match the return type of a gcc2
15771 builtin and then its argument prototype would still apply. */
15777 /* The GNU C library defines this for functions which it implements
15778 to always fail with ENOSYS. Some functions are actually named
15779 something starting with __ and the normal name is an alias. */
15780 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15788 if { (eval echo configure:15789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15790 eval "ac_cv_func__spawnlp=yes"
15792 echo "configure: failed program was:" >&5
15793 cat conftest.$ac_ext >&5
15795 eval "ac_cv_func__spawnlp=no"
15800 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15801 echo "$ac_t""yes" 1>&6
15802 cat >> confdefs.h <<\EOF
15803 #define HAVE_SPAWNLP 1
15807 echo "$ac_t""no" 1>&6
15811 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15812 echo "configure:15813: checking for _snprintf" >&5
15813 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15814 echo $ac_n "(cached) $ac_c" 1>&6
15816 cat > conftest.$ac_ext <<EOF
15817 #line 15818 "configure"
15818 #include "confdefs.h"
15819 /* System header to define __stub macros and hopefully few prototypes,
15820 which can conflict with char _snprintf(); below. */
15821 #include <assert.h>
15822 /* Override any gcc2 internal prototype to avoid an error. */
15823 /* We use char because int might match the return type of a gcc2
15824 builtin and then its argument prototype would still apply. */
15830 /* The GNU C library defines this for functions which it implements
15831 to always fail with ENOSYS. Some functions are actually named
15832 something starting with __ and the normal name is an alias. */
15833 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15841 if { (eval echo configure:15842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15843 eval "ac_cv_func__snprintf=yes"
15845 echo "configure: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15848 eval "ac_cv_func__snprintf=no"
15853 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15854 echo "$ac_t""yes" 1>&6
15855 ac_cv_func_snprintf=yes
15856 cat >> confdefs.h <<\EOF
15857 #define snprintf _snprintf
15862 echo "$ac_t""no" 1>&6
15866 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15867 echo "configure:15868: checking for _vsnprintf" >&5
15868 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15869 echo $ac_n "(cached) $ac_c" 1>&6
15871 cat > conftest.$ac_ext <<EOF
15872 #line 15873 "configure"
15873 #include "confdefs.h"
15874 /* System header to define __stub macros and hopefully few prototypes,
15875 which can conflict with char _vsnprintf(); below. */
15876 #include <assert.h>
15877 /* Override any gcc2 internal prototype to avoid an error. */
15878 /* We use char because int might match the return type of a gcc2
15879 builtin and then its argument prototype would still apply. */
15885 /* The GNU C library defines this for functions which it implements
15886 to always fail with ENOSYS. Some functions are actually named
15887 something starting with __ and the normal name is an alias. */
15888 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15896 if { (eval echo configure:15897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15898 eval "ac_cv_func__vsnprintf=yes"
15900 echo "configure: failed program was:" >&5
15901 cat conftest.$ac_ext >&5
15903 eval "ac_cv_func__vsnprintf=no"
15908 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15909 echo "$ac_t""yes" 1>&6
15910 ac_cv_func_vsnprintf=yes
15911 cat >> confdefs.h <<\EOF
15912 #define vsnprintf _vsnprintf
15917 echo "$ac_t""no" 1>&6
15921 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15922 echo "configure:15923: checking for vprintf" >&5
15923 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15924 echo $ac_n "(cached) $ac_c" 1>&6
15926 cat > conftest.$ac_ext <<EOF
15927 #line 15928 "configure"
15928 #include "confdefs.h"
15929 /* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char vprintf(); below. */
15931 #include <assert.h>
15932 /* Override any gcc2 internal prototype to avoid an error. */
15933 /* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15940 /* The GNU C library defines this for functions which it implements
15941 to always fail with ENOSYS. Some functions are actually named
15942 something starting with __ and the normal name is an alias. */
15943 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15951 if { (eval echo configure:15952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15953 eval "ac_cv_func_vprintf=yes"
15955 echo "configure: failed program was:" >&5
15956 cat conftest.$ac_ext >&5
15958 eval "ac_cv_func_vprintf=no"
15963 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15964 echo "$ac_t""yes" 1>&6
15965 cat >> confdefs.h <<\EOF
15966 #define HAVE_VPRINTF 1
15970 echo "$ac_t""no" 1>&6
15973 if test "$ac_cv_func_vprintf" != yes; then
15974 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15975 echo "configure:15976: checking for _doprnt" >&5
15976 if eval "test \"\${ac_cv_func__doprnt+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 /* System header to define __stub macros and hopefully few prototypes,
15983 which can conflict with char _doprnt(); below. */
15984 #include <assert.h>
15985 /* Override any gcc2 internal prototype to avoid an error. */
15986 /* We use char because int might match the return type of a gcc2
15987 builtin and then its argument prototype would still apply. */
15993 /* The GNU C library defines this for functions which it implements
15994 to always fail with ENOSYS. Some functions are actually named
15995 something starting with __ and the normal name is an alias. */
15996 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16004 if { (eval echo configure:16005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16006 eval "ac_cv_func__doprnt=yes"
16008 echo "configure: failed program was:" >&5
16009 cat conftest.$ac_ext >&5
16011 eval "ac_cv_func__doprnt=no"
16016 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16017 echo "$ac_t""yes" 1>&6
16018 cat >> confdefs.h <<\EOF
16019 #define HAVE_DOPRNT 1
16023 echo "$ac_t""no" 1>&6
16029 if test $ac_cv_func_vprintf = yes ; then
16030 for ac_func in vsnprintf vsprintf
16032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16033 echo "configure:16034: checking for $ac_func" >&5
16034 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16035 echo $ac_n "(cached) $ac_c" 1>&6
16037 cat > conftest.$ac_ext <<EOF
16038 #line 16039 "configure"
16039 #include "confdefs.h"
16040 /* System header to define __stub macros and hopefully few prototypes,
16041 which can conflict with char $ac_func(); below. */
16042 #include <assert.h>
16043 /* Override any gcc2 internal prototype to avoid an error. */
16044 /* We use char because int might match the return type of a gcc2
16045 builtin and then its argument prototype would still apply. */
16051 /* The GNU C library defines this for functions which it implements
16052 to always fail with ENOSYS. Some functions are actually named
16053 something starting with __ and the normal name is an alias. */
16054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16062 if { (eval echo configure:16063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16064 eval "ac_cv_func_$ac_func=yes"
16066 echo "configure: failed program was:" >&5
16067 cat conftest.$ac_ext >&5
16069 eval "ac_cv_func_$ac_func=no"
16074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16075 echo "$ac_t""yes" 1>&6
16076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16077 cat >> confdefs.h <<EOF
16078 #define $ac_tr_func 1
16082 echo "$ac_t""no" 1>&6
16141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16142 echo "configure:16143: checking for $ac_func" >&5
16143 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16144 echo $ac_n "(cached) $ac_c" 1>&6
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149 /* System header to define __stub macros and hopefully few prototypes,
16150 which can conflict with char $ac_func(); below. */
16151 #include <assert.h>
16152 /* Override any gcc2 internal prototype to avoid an error. */
16153 /* We use char because int might match the return type of a gcc2
16154 builtin and then its argument prototype would still apply. */
16160 /* The GNU C library defines this for functions which it implements
16161 to always fail with ENOSYS. Some functions are actually named
16162 something starting with __ and the normal name is an alias. */
16163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16171 if { (eval echo configure:16172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16173 eval "ac_cv_func_$ac_func=yes"
16175 echo "configure: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16178 eval "ac_cv_func_$ac_func=no"
16183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16184 echo "$ac_t""yes" 1>&6
16185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16186 cat >> confdefs.h <<EOF
16187 #define $ac_tr_func 1
16191 echo "$ac_t""no" 1>&6
16196 for ac_func in getopt tempnam
16198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16199 echo "configure:16200: checking for $ac_func" >&5
16200 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16201 echo $ac_n "(cached) $ac_c" 1>&6
16203 cat > conftest.$ac_ext <<EOF
16204 #line 16205 "configure"
16205 #include "confdefs.h"
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func(); below. */
16208 #include <assert.h>
16209 /* Override any gcc2 internal prototype to avoid an error. */
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16217 /* The GNU C library defines this for functions which it implements
16218 to always fail with ENOSYS. Some functions are actually named
16219 something starting with __ and the normal name is an alias. */
16220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16228 if { (eval echo configure:16229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16230 eval "ac_cv_func_$ac_func=yes"
16232 echo "configure: failed program was:" >&5
16233 cat conftest.$ac_ext >&5
16235 eval "ac_cv_func_$ac_func=no"
16240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16241 echo "$ac_t""yes" 1>&6
16242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16243 cat >> confdefs.h <<EOF
16244 #define $ac_tr_func 1
16248 echo "$ac_t""no" 1>&6
16249 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16255 if test "$ac_cv_func_getopt" != yes; then
16256 LIBSRCS="$LIBSRCS getopt.c"
16259 if test "$ac_cv_func_tempnam" != yes; then
16260 LIBSRCS="$LIBSRCS tempnam.c"
16263 # Check Configuration
16264 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16265 echo "configure:16266: checking declaration of sys_errlist" >&5
16266 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16267 echo $ac_n "(cached) $ac_c" 1>&6
16270 cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16275 #include <sys/types.h>
16278 #include <stdlib.h>
16281 char *c = (char *) *sys_errlist
16284 if { (eval echo configure:16285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16286 ol_cv_dcl_sys_errlist=yes
16287 ol_cv_have_sys_errlist=yes
16289 echo "configure: failed program was:" >&5
16290 cat conftest.$ac_ext >&5
16292 ol_cv_dcl_sys_errlist=no
16297 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16299 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16300 if test $ol_cv_dcl_sys_errlist = no ; then
16301 cat >> confdefs.h <<\EOF
16302 #define DECL_SYS_ERRLIST 1
16306 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16307 echo "configure:16308: checking existence of sys_errlist" >&5
16308 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16309 echo $ac_n "(cached) $ac_c" 1>&6
16312 cat > conftest.$ac_ext <<EOF
16313 #line 16314 "configure"
16314 #include "confdefs.h"
16317 char *c = (char *) *sys_errlist
16320 if { (eval echo configure:16321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16322 ol_cv_have_sys_errlist=yes
16324 echo "configure: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16327 ol_cv_have_sys_errlist=no
16332 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16334 if test $ol_cv_have_sys_errlist = yes ; then
16335 cat >> confdefs.h <<\EOF
16336 #define HAVE_SYS_ERRLIST 1
16343 if test "$ol_enable_debug" != no ; then
16344 cat >> confdefs.h <<\EOF
16345 #define LDAP_DEBUG 1
16349 if test "$ol_enable_syslog" = yes ; then
16350 cat >> confdefs.h <<\EOF
16351 #define LDAP_SYSLOG 1
16355 if test "$ol_enable_cache" = no ; then
16356 cat >> confdefs.h <<\EOF
16357 #define LDAP_NOCACHE 1
16361 if test "$ol_link_kbind" != no ; then
16362 cat >> confdefs.h <<\EOF
16363 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16367 if test "$ol_enable_proctitle" != no ; then
16368 cat >> confdefs.h <<\EOF
16369 #define LDAP_PROCTITLE 1
16373 if test "$ol_enable_referrals" != no ; then
16374 cat >> confdefs.h <<\EOF
16375 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16379 if test "$ol_enable_local" != no; then
16380 cat >> confdefs.h <<\EOF
16381 #define LDAP_PF_LOCAL 1
16385 if test "$ol_link_ipv6" != no; then
16386 cat >> confdefs.h <<\EOF
16387 #define LDAP_PF_INET6 1
16391 if test "$ol_enable_cleartext" != no ; then
16392 cat >> confdefs.h <<\EOF
16393 #define SLAPD_CLEARTEXT 1
16397 if test "$ol_enable_crypt" != no ; then
16398 cat >> confdefs.h <<\EOF
16399 #define SLAPD_CRYPT 1
16403 if test "$ol_link_kpasswd" != no ; then
16404 cat >> confdefs.h <<\EOF
16405 #define SLAPD_KPASSWD 1
16409 if test "$ol_link_spasswd" != no ; then
16410 cat >> confdefs.h <<\EOF
16411 #define SLAPD_SPASSWD 1
16415 if test "$ol_enable_phonetic" != no ; then
16416 cat >> confdefs.h <<\EOF
16417 #define SLAPD_PHONETIC 1
16421 if test "$ol_enable_rlookups" != no ; then
16422 cat >> confdefs.h <<\EOF
16423 #define SLAPD_RLOOKUPS 1
16427 if test "$ol_enable_aci" != no ; then
16428 cat >> confdefs.h <<\EOF
16429 #define SLAPD_ACI_ENABLED 1
16434 if test "$ol_link_modules" != no ; then
16435 cat >> confdefs.h <<\EOF
16436 #define SLAPD_MODULES 1
16440 SLAPD_MODULES_LDFLAGS="-dlopen self"
16443 if test "$ol_enable_bdb" != no ; then
16444 cat >> confdefs.h <<\EOF
16445 #define SLAPD_BDB 1
16450 if test "$ol_with_bdb_module" != static ; then
16451 cat >> confdefs.h <<\EOF
16452 #define SLAPD_BDB_DYNAMIC 1
16456 BUILD_BDB_DYNAMIC=shared
16457 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16461 if test "$ol_link_dnssrv" != no ; then
16462 cat >> confdefs.h <<\EOF
16463 #define SLAPD_DNSSRV 1
16468 if test "$ol_with_dnssrv_module" != static ; then
16469 cat >> confdefs.h <<\EOF
16470 #define SLAPD_DNSSRV_DYNAMIC 1
16474 BUILD_DNSSRV_DYNAMIC=shared
16475 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16479 if test "$ol_enable_ldap" != no ; then
16480 cat >> confdefs.h <<\EOF
16481 #define SLAPD_LDAP 1
16486 if test "$ol_with_ldap_module" != static ; then
16487 cat >> confdefs.h <<\EOF
16488 #define SLAPD_LDAP_DYNAMIC 1
16492 BUILD_LDAP_DYNAMIC=shared
16493 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16497 if test "$ol_link_ldbm" != no ; then
16498 cat >> confdefs.h <<\EOF
16499 #define SLAPD_LDBM 1
16504 if test "$ol_with_ldbm_module" != static ; then
16505 cat >> confdefs.h <<\EOF
16506 #define SLAPD_LDBM_DYNAMIC 1
16510 BUILD_LDBM_DYNAMIC=shared
16511 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16515 if test "$ol_enable_passwd" != no ; then
16516 cat >> confdefs.h <<\EOF
16517 #define SLAPD_PASSWD 1
16522 if test "$ol_with_passwd_module" != static ; then
16523 cat >> confdefs.h <<\EOF
16524 #define SLAPD_PASSWD_DYNAMIC 1
16528 BUILD_PASSWD_DYNAMIC=shared
16529 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16533 if test "$ol_link_perl" != no ; then
16534 cat >> confdefs.h <<\EOF
16535 #define SLAPD_PERL 1
16540 if test "$ol_with_perl_module" != static ; then
16541 cat >> confdefs.h <<\EOF
16542 #define SLAPD_PERL_DYNAMIC 1
16546 BUILD_PERL_DYNAMIC=shared
16547 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16551 if test "$ol_enable_shell" != no ; then
16552 cat >> confdefs.h <<\EOF
16553 #define SLAPD_SHELL 1
16558 if test "$ol_with_shell_module" != static ; then
16559 cat >> confdefs.h <<\EOF
16560 #define SLAPD_SHELL_DYNAMIC 1
16564 BUILD_SHELL_DYNAMIC=shared
16565 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16569 if test "$ol_enable_tcl" != no ; then
16570 cat >> confdefs.h <<\EOF
16571 #define SLAPD_TCL 1
16576 if test "$ol_with_tcl_module" != static; then
16577 cat >> confdefs.h <<\EOF
16578 #define SLAPD_TCL_DYNAMIC 1
16582 BUILD_TCL_DYNAMIC=shared
16583 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16587 if test "$ol_link_sql" != no ; then
16588 cat >> confdefs.h <<\EOF
16589 #define SLAPD_SQL 1
16594 if test "$ol_with_sql_module" != static; then
16595 cat >> confdefs.h <<\EOF
16596 #define SLAPD_SQL_DYNAMIC 1
16600 BUILD_SQL_DYNAMIC=shared
16601 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16605 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16606 $BUILD_SLAPD = yes ; then
16611 if test "$LINK_BINS_DYNAMIC" = yes; then
16613 LT_LIB_LINKAGE=shared
16616 LT_LIB_LINKAGE=static
16619 if test "$ac_cv_mingw32" = yes ; then
16692 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16695 # Let make expand exec_prefix.
16696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16698 # Any assignment to VPATH causes Sun make to only execute
16699 # the first set of double-colon rules, so remove it if not needed.
16700 # If there is a colon in the path, we need to keep it.
16701 if test "x$srcdir" = x.; then
16702 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16705 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16707 DEFS=-DHAVE_CONFIG_H
16709 # Without the "./", some shells look in PATH for config.status.
16710 : ${CONFIG_STATUS=./config.status}
16712 echo creating $CONFIG_STATUS
16713 rm -f $CONFIG_STATUS
16714 cat > $CONFIG_STATUS <<EOF
16716 # Generated automatically by configure.
16717 # Run this file to recreate the current configuration.
16718 # This directory was configured as follows,
16719 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16721 # $0 $ac_configure_args
16723 # Compiler output produced by configure, useful for debugging
16724 # configure, is in ./config.log if it exists.
16726 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16729 case "\$ac_option" in
16730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16731 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16732 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16733 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16734 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16736 -help | --help | --hel | --he | --h)
16737 echo "\$ac_cs_usage"; exit 0 ;;
16738 *) echo "\$ac_cs_usage"; exit 1 ;;
16742 ac_given_srcdir=$srcdir
16743 ac_given_INSTALL="$INSTALL"
16745 trap 'rm -fr `echo "\
16746 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16747 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16748 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16749 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16750 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16751 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16752 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16753 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16754 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16755 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16756 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16757 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16758 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16759 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16760 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16761 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16762 include/Makefile:build/top.mk:include/Makefile.in \
16763 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16764 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16765 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16766 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16767 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16768 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16769 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16770 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16771 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16772 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16773 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16774 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16775 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16776 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16777 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16778 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16779 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16780 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16781 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16782 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16783 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16784 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16785 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16786 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16787 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16788 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16789 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16790 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16791 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16793 cat >> $CONFIG_STATUS <<EOF
16795 # Protect against being on the right side of a sed subst in config.status.
16796 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16797 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16801 s%@CFLAGS@%$CFLAGS%g
16802 s%@CPPFLAGS@%$CPPFLAGS%g
16803 s%@CXXFLAGS@%$CXXFLAGS%g
16804 s%@FFLAGS@%$FFLAGS%g
16806 s%@LDFLAGS@%$LDFLAGS%g
16808 s%@exec_prefix@%$exec_prefix%g
16809 s%@prefix@%$prefix%g
16810 s%@program_transform_name@%$program_transform_name%g
16811 s%@bindir@%$bindir%g
16812 s%@sbindir@%$sbindir%g
16813 s%@libexecdir@%$libexecdir%g
16814 s%@datadir@%$datadir%g
16815 s%@sysconfdir@%$sysconfdir%g
16816 s%@sharedstatedir@%$sharedstatedir%g
16817 s%@localstatedir@%$localstatedir%g
16818 s%@libdir@%$libdir%g
16819 s%@includedir@%$includedir%g
16820 s%@oldincludedir@%$oldincludedir%g
16821 s%@infodir@%$infodir%g
16822 s%@mandir@%$mandir%g
16824 s%@host_alias@%$host_alias%g
16825 s%@host_cpu@%$host_cpu%g
16826 s%@host_vendor@%$host_vendor%g
16827 s%@host_os@%$host_os%g
16828 s%@target@%$target%g
16829 s%@target_alias@%$target_alias%g
16830 s%@target_cpu@%$target_cpu%g
16831 s%@target_vendor@%$target_vendor%g
16832 s%@target_os@%$target_os%g
16834 s%@build_alias@%$build_alias%g
16835 s%@build_cpu@%$build_cpu%g
16836 s%@build_vendor@%$build_vendor%g
16837 s%@build_os@%$build_os%g
16838 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16839 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16840 s%@INSTALL_DATA@%$INSTALL_DATA%g
16841 s%@PACKAGE@%$PACKAGE%g
16842 s%@VERSION@%$VERSION%g
16843 s%@ACLOCAL@%$ACLOCAL%g
16844 s%@AUTOCONF@%$AUTOCONF%g
16845 s%@AUTOMAKE@%$AUTOMAKE%g
16846 s%@AUTOHEADER@%$AUTOHEADER%g
16847 s%@MAKEINFO@%$MAKEINFO%g
16848 s%@install_sh@%$install_sh%g
16851 s%@AMTARFLAGS@%$AMTARFLAGS%g
16852 s%@SET_MAKE@%$SET_MAKE%g
16853 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16854 s%@top_builddir@%$top_builddir%g
16855 s%@ldap_subdir@%$ldap_subdir%g
16857 s%@RANLIB@%$RANLIB%g
16859 s%@DLLTOOL@%$DLLTOOL%g
16861 s%@OBJDUMP@%$OBJDUMP%g
16862 s%@LIBTOOL@%$LIBTOOL%g
16864 s%@SENDMAIL@%$SENDMAIL%g
16865 s%@EDITOR@%$EDITOR%g
16866 s%@FINGER@%$FINGER%g
16867 s%@PERLBIN@%$PERLBIN%g
16869 s%@EXEEXT@%$EXEEXT%g
16870 s%@OBJEXT@%$OBJEXT%g
16871 s%@OL_MKDEP@%$OL_MKDEP%g
16872 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16873 s%@LIBOBJS@%$LIBOBJS%g
16874 s%@LIBSRCS@%$LIBSRCS%g
16876 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16877 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16878 s%@DYN_EXT@%$DYN_EXT%g
16879 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16880 s%@BUILD_BDB@%$BUILD_BDB%g
16881 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16882 s%@BUILD_LDAP@%$BUILD_LDAP%g
16883 s%@BUILD_LDBM@%$BUILD_LDBM%g
16884 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16885 s%@BUILD_PERL@%$BUILD_PERL%g
16886 s%@BUILD_SHELL@%$BUILD_SHELL%g
16887 s%@BUILD_SQL@%$BUILD_SQL%g
16888 s%@BUILD_TCL@%$BUILD_TCL%g
16889 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
16890 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16891 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16892 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16893 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16894 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16895 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16896 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16897 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16898 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16899 s%@LDAP_LIBS@%$LDAP_LIBS%g
16900 s%@LDIF_LIBS@%$LDIF_LIBS%g
16901 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16902 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16903 s%@LDBM_LIBS@%$LDBM_LIBS%g
16904 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16905 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16906 s%@WRAP_LIBS@%$WRAP_LIBS%g
16907 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16908 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16909 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16910 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16911 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16912 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16913 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16914 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16915 s%@KRB4_LIBS@%$KRB4_LIBS%g
16916 s%@KRB5_LIBS@%$KRB5_LIBS%g
16917 s%@READLINE_LIBS@%$READLINE_LIBS%g
16918 s%@SASL_LIBS@%$SASL_LIBS%g
16919 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16920 s%@TLS_LIBS@%$TLS_LIBS%g
16921 s%@MODULES_LIBS@%$MODULES_LIBS%g
16922 s%@AUTH_LIBS@%$AUTH_LIBS%g
16923 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
16924 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16925 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16926 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16931 cat >> $CONFIG_STATUS <<\EOF
16933 # Split the substitutions into bite-sized pieces for seds with
16934 # small command number limits, like on Digital OSF/1 and HP-UX.
16935 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16936 ac_file=1 # Number of current file.
16937 ac_beg=1 # First line for current file.
16938 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16941 while $ac_more_lines; do
16942 if test $ac_beg -gt 1; then
16943 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16945 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16947 if test ! -s conftest.s$ac_file; then
16948 ac_more_lines=false
16949 rm -f conftest.s$ac_file
16951 if test -z "$ac_sed_cmds"; then
16952 ac_sed_cmds="sed -f conftest.s$ac_file"
16954 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16956 ac_file=`expr $ac_file + 1`
16958 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16961 if test -z "$ac_sed_cmds"; then
16966 cat >> $CONFIG_STATUS <<EOF
16968 CONFIG_FILES=\${CONFIG_FILES-"\
16969 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16970 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16971 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16972 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16973 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16974 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16975 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16976 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16977 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16978 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16979 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16980 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16981 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16982 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16983 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16984 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16985 include/Makefile:build/top.mk:include/Makefile.in \
16986 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16987 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16988 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16989 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16990 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16991 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16992 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16993 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16994 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16995 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16996 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16997 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16998 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16999 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17000 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17001 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17002 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17003 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17004 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17005 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17006 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17007 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17008 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17009 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17010 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17011 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17012 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17013 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
17016 cat >> $CONFIG_STATUS <<\EOF
17017 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17020 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17021 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17022 *) ac_file_in="${ac_file}.in" ;;
17025 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17027 # Remove last slash and all that follows it. Not all systems have dirname.
17028 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17030 # The file is in a subdirectory.
17031 test ! -d "$ac_dir" && mkdir "$ac_dir"
17032 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17033 # A "../" for each directory in $ac_dir_suffix.
17034 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17036 ac_dir_suffix= ac_dots=
17039 case "$ac_given_srcdir" in
17041 if test -z "$ac_dots"; then top_srcdir=.
17042 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17043 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17044 *) # Relative path.
17045 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17046 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17049 case "$ac_given_INSTALL" in
17050 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17051 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17054 echo creating "$ac_file"
17056 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17058 *[Mm]akefile*) ac_comsub="1i\\
17059 # $configure_input" ;;
17063 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17065 s%@configure_input@%$configure_input%g
17066 s%@srcdir@%$srcdir%g
17067 s%@top_srcdir@%$top_srcdir%g
17068 s%@INSTALL@%$INSTALL%g
17069 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17073 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17074 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17076 # ac_d sets the value in "#define NAME VALUE" lines.
17077 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17078 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17081 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17082 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17083 ac_uB='\([ ]\)%\1#\2define\3'
17086 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17087 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17088 ac_eB='$%\1#\2define\3'
17092 if test "${CONFIG_HEADERS+set}" != set; then
17094 cat >> $CONFIG_STATUS <<EOF
17095 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17097 cat >> $CONFIG_STATUS <<\EOF
17099 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17102 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17103 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17104 *) ac_file_in="${ac_file}.in" ;;
17107 echo creating $ac_file
17109 rm -f conftest.frag conftest.in conftest.out
17110 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17111 cat $ac_file_inputs > conftest.in
17115 # Transform confdefs.h into a sed script conftest.vals that substitutes
17116 # the proper values into config.h.in to produce config.h. And first:
17117 # Protect against being on the right side of a sed subst in config.status.
17118 # Protect against being in an unquoted here document in config.status.
17119 rm -f conftest.vals
17120 cat > conftest.hdr <<\EOF
17123 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17127 sed -n -f conftest.hdr confdefs.h > conftest.vals
17130 # This sed command replaces #undef with comments. This is necessary, for
17131 # example, in the case of _POSIX_SOURCE, which is predefined and required
17132 # on some systems where configure will not decide to define it.
17133 cat >> conftest.vals <<\EOF
17134 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17137 # Break up conftest.vals because some shells have a limit on
17138 # the size of here documents, and old seds have small limits too.
17140 rm -f conftest.tail
17143 ac_lines=`grep -c . conftest.vals`
17144 # grep -c gives empty output for an empty file on some AIX systems.
17145 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17146 # Write a limited-size here document to conftest.frag.
17147 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17148 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17150 sed -f conftest.frag conftest.in > conftest.out
17152 mv conftest.out conftest.in
17153 ' >> $CONFIG_STATUS
17154 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17155 rm -f conftest.vals
17156 mv conftest.tail conftest.vals
17158 rm -f conftest.vals
17160 cat >> $CONFIG_STATUS <<\EOF
17161 rm -f conftest.frag conftest.h
17162 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17163 cat conftest.in >> conftest.h
17165 if cmp -s $ac_file conftest.h 2>/dev/null; then
17166 echo "$ac_file is unchanged"
17169 # Remove last slash and all that follows it. Not all systems have dirname.
17170 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17171 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17172 # The file is in a subdirectory.
17173 test ! -d "$ac_dir" && mkdir "$ac_dir"
17176 mv conftest.h $ac_file
17181 cat >> $CONFIG_STATUS <<EOF
17184 cat >> $CONFIG_STATUS <<\EOF
17187 echo Please \"make depend\" to build dependencies
17191 chmod +x $CONFIG_STATUS
17192 rm -fr confdefs* $ac_clean_files
17193 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1