3 # from OpenLDAP: pkg/ldap/configure.in,v 1.282 1999/11/26 22:32:19 kdz Exp
5 # Copyright 1998,1999 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-1999 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
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 (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-cldap enable connectionless ldap (no)"
44 --enable-x-compile enable cross compiling (no)"
46 --enable-dmalloc enable debug malloc support (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with Kerberos support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads use threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 LDAPD (X.500-to-LDAP Gateway) Options:"
64 --enable-ldapd enable building ldapd (no)"
66 SLAPD (Standalone LDAP Daemon) Options:"
68 --enable-slapd enable building slapd (yes)"
70 --enable-cleartext enable cleartext passwords (yes)"
72 --enable-crypt enable crypt(3) passwords (auto)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-quipu build quipu migration tools (no)"
82 --enable-rlookups enable reverse lookups (auto)"
84 --enable-aci enable per-object ACIs (no)"
86 --enable-discreteaci enable discrete rights in ACIs (no)"
88 --enable-wrappers enable tcp wrapper support (no)"
90 --enable-dynamic enable linking built binaries with dynamic libs (no)"
92 --enable-bdb2 enable bdb2 backend (no)"
94 --with-bdb2-module module type (static)"
96 --enable-ldap enable ldap backend (no)"
98 --with-ldap-module module type (static)"
100 --enable-ldbm enable ldbm backend (yes)"
102 --with-ldbm-api use LDBM API (auto)"
104 --with-ldbm-module module type (static)"
106 --with-ldbm-type use LDBM type (auto)"
108 --enable-passwd enable passwd backend (no)"
110 --with-passwd-module module type (static)"
112 --enable-perl enable perl backend (no)"
114 --with-perl-module module type (static)"
116 --enable-shell enable shell backend (no)"
118 --with-shell-module module type (static)"
120 --enable-tcl enable tcl backend (no)"
122 --with-tcl-module module type (static)"
124 SLURPD (Replication Daemon) Options:"
126 --enable-slurpd enable building slurpd (auto)"
128 Library Generation & Linking Options"
130 --enable-static[=PKGS] build static libraries [default=yes]"
132 --enable-shared[=PKGS] build shared libraries [default=yes]"
134 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
136 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
138 --disable-libtool-lock avoid locking (might break parallel builds)"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file=./config.cache
153 program_transform_name=s,x,x,
161 bindir='${exec_prefix}/bin'
162 sbindir='${exec_prefix}/sbin'
163 libexecdir='${exec_prefix}/libexec'
164 datadir='${prefix}/share'
165 sysconfdir='${prefix}/etc'
166 sharedstatedir='${prefix}/com'
167 localstatedir='${prefix}/var'
168 libdir='${exec_prefix}/lib'
169 includedir='${prefix}/include'
170 oldincludedir='/usr/include'
171 infodir='${prefix}/info'
172 mandir='${prefix}/man'
174 # Initialize some other variables.
177 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
193 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197 # Accept the important Cygnus configure options, so we can diagnose typos.
201 -bindir | --bindir | --bindi | --bind | --bin | --bi)
203 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204 bindir="$ac_optarg" ;;
206 -build | --build | --buil | --bui | --bu)
208 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209 build="$ac_optarg" ;;
211 -cache-file | --cache-file | --cache-fil | --cache-fi \
212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213 ac_prev=cache_file ;;
214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216 cache_file="$ac_optarg" ;;
218 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
220 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
222 datadir="$ac_optarg" ;;
224 -disable-* | --disable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
233 -enable-* | --enable-*)
234 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
239 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
246 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248 | --exec | --exe | --ex)
249 ac_prev=exec_prefix ;;
250 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252 | --exec=* | --exe=* | --ex=*)
253 exec_prefix="$ac_optarg" ;;
255 -gas | --gas | --ga | --g)
256 # Obsolete; use --with-gas.
259 -help | --help | --hel | --he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --version print the version of autoconf that created configure
271 Directory and file names:
272 --prefix=PREFIX install architecture-independent files in PREFIX
274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 --bindir=DIR user executables in DIR [EPREFIX/bin]
277 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
278 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
279 --datadir=DIR read-only architecture-independent data in DIR
281 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
282 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
285 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
286 --includedir=DIR C header files in DIR [PREFIX/include]
287 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
288 --infodir=DIR info documentation in DIR [PREFIX/info]
289 --mandir=DIR man documentation in DIR [PREFIX/man]
290 --srcdir=DIR find the sources in DIR [configure dir or ..]
291 --program-prefix=PREFIX prepend PREFIX to installed program names
292 --program-suffix=SUFFIX append SUFFIX to installed program names
293 --program-transform-name=PROGRAM
294 run sed PROGRAM on installed program names
298 --build=BUILD configure for building on BUILD [BUILD=HOST]
299 --host=HOST configure for HOST [guessed]
300 --target=TARGET configure for TARGET [TARGET=HOST]
301 Features and packages:
302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
306 --x-includes=DIR X include files are in DIR
307 --x-libraries=DIR X library files are in DIR
309 if test -n "$ac_help"; then
310 echo "--enable and --with options recognized:$ac_help"
314 -host | --host | --hos | --ho)
316 -host=* | --host=* | --hos=* | --ho=*)
319 -includedir | --includedir | --includedi | --included | --include \
320 | --includ | --inclu | --incl | --inc)
321 ac_prev=includedir ;;
322 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
323 | --includ=* | --inclu=* | --incl=* | --inc=*)
324 includedir="$ac_optarg" ;;
326 -infodir | --infodir | --infodi | --infod | --info | --inf)
328 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
329 infodir="$ac_optarg" ;;
331 -libdir | --libdir | --libdi | --libd)
333 -libdir=* | --libdir=* | --libdi=* | --libd=*)
334 libdir="$ac_optarg" ;;
336 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
337 | --libexe | --libex | --libe)
338 ac_prev=libexecdir ;;
339 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
340 | --libexe=* | --libex=* | --libe=*)
341 libexecdir="$ac_optarg" ;;
343 -localstatedir | --localstatedir | --localstatedi | --localstated \
344 | --localstate | --localstat | --localsta | --localst \
345 | --locals | --local | --loca | --loc | --lo)
346 ac_prev=localstatedir ;;
347 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
348 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
349 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
350 localstatedir="$ac_optarg" ;;
352 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
354 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
355 mandir="$ac_optarg" ;;
358 # Obsolete; use --without-fp.
361 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
365 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
366 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
370 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
371 | --oldin | --oldi | --old | --ol | --o)
372 ac_prev=oldincludedir ;;
373 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
374 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
375 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
376 oldincludedir="$ac_optarg" ;;
378 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
380 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
381 prefix="$ac_optarg" ;;
383 -program-prefix | --program-prefix | --program-prefi | --program-pref \
384 | --program-pre | --program-pr | --program-p)
385 ac_prev=program_prefix ;;
386 -program-prefix=* | --program-prefix=* | --program-prefi=* \
387 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
388 program_prefix="$ac_optarg" ;;
390 -program-suffix | --program-suffix | --program-suffi | --program-suff \
391 | --program-suf | --program-su | --program-s)
392 ac_prev=program_suffix ;;
393 -program-suffix=* | --program-suffix=* | --program-suffi=* \
394 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
395 program_suffix="$ac_optarg" ;;
397 -program-transform-name | --program-transform-name \
398 | --program-transform-nam | --program-transform-na \
399 | --program-transform-n | --program-transform- \
400 | --program-transform | --program-transfor \
401 | --program-transfo | --program-transf \
402 | --program-trans | --program-tran \
403 | --progr-tra | --program-tr | --program-t)
404 ac_prev=program_transform_name ;;
405 -program-transform-name=* | --program-transform-name=* \
406 | --program-transform-nam=* | --program-transform-na=* \
407 | --program-transform-n=* | --program-transform-=* \
408 | --program-transform=* | --program-transfor=* \
409 | --program-transfo=* | --program-transf=* \
410 | --program-trans=* | --program-tran=* \
411 | --progr-tra=* | --program-tr=* | --program-t=*)
412 program_transform_name="$ac_optarg" ;;
414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
415 | -silent | --silent | --silen | --sile | --sil)
418 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
420 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
422 sbindir="$ac_optarg" ;;
424 -sharedstatedir | --sharedstatedir | --sharedstatedi \
425 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
426 | --sharedst | --shareds | --shared | --share | --shar \
428 ac_prev=sharedstatedir ;;
429 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
430 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
431 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
433 sharedstatedir="$ac_optarg" ;;
435 -site | --site | --sit)
437 -site=* | --site=* | --sit=*)
440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
443 srcdir="$ac_optarg" ;;
445 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
446 | --syscon | --sysco | --sysc | --sys | --sy)
447 ac_prev=sysconfdir ;;
448 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
449 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
450 sysconfdir="$ac_optarg" ;;
452 -target | --target | --targe | --targ | --tar | --ta | --t)
454 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
455 target="$ac_optarg" ;;
457 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 -version | --version | --versio | --versi | --vers)
461 echo "configure generated by autoconf version 2.13.1"
465 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466 # Reject names that are not valid shell variable names.
467 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
470 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}='$ac_optarg'" ;;
477 -without-* | --without-*)
478 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}=no" ;;
487 # Obsolete; use --with-x.
490 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
491 | --x-incl | --x-inc | --x-in | --x-i)
492 ac_prev=x_includes ;;
493 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
494 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
495 x_includes="$ac_optarg" ;;
497 -x-libraries | --x-libraries | --x-librarie | --x-librari \
498 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
499 ac_prev=x_libraries ;;
500 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
501 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
502 x_libraries="$ac_optarg" ;;
504 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509 echo "configure: warning: $ac_option: invalid host type" 1>&2
511 if test "x$nonopt" != xNONE; then
512 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
520 if test -n "$ac_prev"; then
521 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
526 # File descriptor usage:
529 # 2 errors and warnings
530 # 3 some systems may open it to /dev/tty
531 # 4 used on the Kubota Titan
532 # 6 checking for... messages and results
533 # 5 compiler messages saved in config.log
534 if test "$silent" = yes; then
542 This file contains any messages produced by compilers while
543 running configure, to aid debugging if configure makes a mistake.
546 # Strip out --no-create and --no-recursion so they do not pile up.
547 # Also quote any args containing shell metacharacters.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 | --no-cr | --no-c) ;;
554 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
558 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
563 # Only set these to C if already set. These must not be set unconditionally
564 # because not all systems understand e.g. LANG=C (notably SCO).
565 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566 # Non-C LC_CTYPE values break the ctype check.
567 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
568 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
569 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
570 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
573 rm -rf conftest* confdefs.h
574 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
577 # A filename unique to this package, relative to the directory that
578 # configure is in, which we can look for to find out if srcdir is correct.
579 ac_unique_file=build/version
581 # Find the source files, if location was not specified.
582 if test -z "$srcdir"; then
583 ac_srcdir_defaulted=yes
584 # Try the directory containing this script, then its parent.
586 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
589 if test ! -r $srcdir/$ac_unique_file; then
593 ac_srcdir_defaulted=no
595 if test ! -r $srcdir/$ac_unique_file; then
596 if test "$ac_srcdir_defaulted" = yes; then
597 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
599 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
604 # Prefer explicitly selected file to automatically selected ones.
605 if test -z "$CONFIG_SITE"; then
606 if test "x$prefix" != xNONE; then
607 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
609 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 for ac_site_file in $CONFIG_SITE; do
613 if test -r "$ac_site_file"; then
614 echo "loading site script $ac_site_file"
621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
622 ac_cpp='$CPP $CPPFLAGS'
623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
625 cross_compiling=$ac_cv_prog_cc_cross
629 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
630 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
631 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
638 ac_n= ac_c='\c' ac_t=
642 for ac_dir in build $srcdir/build; do
643 if test -f $ac_dir/install-sh; then
645 ac_install_sh="$ac_aux_dir/install-sh -c"
647 elif test -f $ac_dir/install.sh; then
649 ac_install_sh="$ac_aux_dir/install.sh -c"
651 elif test -f $ac_dir/shtool; then
653 ac_install_sh="$ac_aux_dir/shtool install -c"
657 if test -z "$ac_aux_dir"; then
658 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
660 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
661 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
662 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
664 OL_VERSION=`cat $ac_aux_dir/version`
665 if test -z "$OL_VERSION"; then
666 { echo "configure: error: could not determine version" 1>&2; exit 1; }
669 echo "Configuring OpenLDAP $OL_VERSION ..."
672 echo $ac_n "checking host system type""... $ac_c" 1>&6
673 echo "configure:674: checking host system type" >&5
674 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
676 # Make sure we can run config.sub.
677 if $ac_config_sub sun4 >/dev/null 2>&1; then :
678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
681 ac_cv_host_alias=$host
682 case "$ac_cv_host_alias" in
686 if ac_cv_host_alias=`$ac_config_guess`; then :
687 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
689 *) ac_cv_host_alias=$nonopt ;;
693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
694 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
698 echo $ac_n "(cached) $ac_c" 1>&6
701 echo "$ac_t""$ac_cv_host" 1>&6
704 host_alias=$ac_cv_host_alias
705 host_cpu=$ac_cv_host_cpu
706 host_vendor=$ac_cv_host_vendor
707 host_os=$ac_cv_host_os
713 echo $ac_n "checking target system type""... $ac_c" 1>&6
714 echo "configure:715: checking target system type" >&5
715 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
717 # Make sure we can run config.sub.
718 if $ac_config_sub sun4 >/dev/null 2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 ac_cv_target_alias=$target
723 case "$ac_cv_target_alias" in
727 ac_cv_target_alias=$host_alias ;;
729 *) ac_cv_target_alias=$nonopt ;;
733 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
734 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo $ac_n "(cached) $ac_c" 1>&6
741 echo "$ac_t""$ac_cv_target" 1>&6
744 target_alias=$ac_cv_target_alias
745 target_cpu=$ac_cv_target_cpu
746 target_vendor=$ac_cv_target_vendor
747 target_os=$ac_cv_target_os
753 echo $ac_n "checking build system type""... $ac_c" 1>&6
754 echo "configure:755: checking build system type" >&5
755 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
757 # Make sure we can run config.sub.
758 if $ac_config_sub sun4 >/dev/null 2>&1; then :
759 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
762 ac_cv_build_alias=$build
763 case "$ac_cv_build_alias" in
767 ac_cv_build_alias=$host_alias ;;
769 *) ac_cv_build_alias=$nonopt ;;
773 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
774 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778 echo $ac_n "(cached) $ac_c" 1>&6
781 echo "$ac_t""$ac_cv_build" 1>&6
784 build_alias=$ac_cv_build_alias
785 build_cpu=$ac_cv_build_cpu
786 build_vendor=$ac_cv_build_vendor
787 build_os=$ac_cv_build_os
793 # Do some error checking and defaulting for the host and target type.
795 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
798 # 1. You are not allowed to specify --host, --target, and nonopt at the
800 # 2. Host defaults to nonopt.
801 # 3. If nonopt is not specified, then host defaults to the current host,
802 # as determined by config.guess.
803 # 4. Target and build default to nonopt.
804 # 5. If nonopt is not specified, then target and build default to host.
806 # The aliases save the names the user supplied, while $host etc.
807 # will get canonicalized.
808 case $host---$target---$nonopt in
809 NONE---*---* | *---NONE---* | *---*---NONE) ;;
810 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
813 test "$host_alias" != "$target_alias" &&
814 test "$program_prefix$program_suffix$program_transform_name" = \
816 program_prefix=${target_alias}-
819 # Find a good install program. We prefer a C program (faster),
820 # so one script is as good as another. But avoid the broken or
821 # incompatible versions:
822 # SysV /etc/install, /usr/sbin/install
823 # SunOS /usr/etc/install
826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
829 # ./install, which can be erroneously created by make from ./install.sh.
830 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
831 echo "configure:832: checking for a BSD compatible install" >&5
832 if test -z "$INSTALL"; then
833 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
837 for ac_dir in $PATH; do
838 # Account for people who put trailing slashes in PATH elements.
840 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
842 # OSF1 and SCO ODT 3.0 have their own names for install.
843 # Don't use installbsd from OSF since it installs stuff as root
845 for ac_prog in ginstall scoinst install; do
846 if test -f $ac_dir/$ac_prog; then
847 if test $ac_prog = install &&
848 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
849 # AIX install. It has an incompatible calling convention.
851 elif test $ac_prog = install &&
852 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
853 # program-specific install script used by HP pwplus--don't use.
856 ac_cv_path_install="$ac_dir/$ac_prog -c"
867 if test "${ac_cv_path_install+set}" = set; then
868 INSTALL="$ac_cv_path_install"
870 # As a last resort, use the slow shell script. We don't cache a
871 # path for INSTALL within a source directory, because that will
872 # break other packages using the cache if that directory is
873 # removed, or if the path is relative.
874 INSTALL="$ac_install_sh"
877 echo "$ac_t""$INSTALL" 1>&6
879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
880 # It thinks the first close brace ends the variable substitution.
881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
887 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
888 echo "configure:889: checking whether build environment is sane" >&5
891 echo timestamp > conftestfile
892 # Do `set' in a subshell so we don't clobber the current shell's
893 # arguments. Must try -L first in case configure is actually a
894 # symlink; some systems play weird games with the mod time of symlinks
895 # (eg FreeBSD returns the mod time of the symlink's containing
898 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
899 if test "$*" = "X"; then
901 set X `ls -t $srcdir/configure conftestfile`
903 if test "$*" != "X $srcdir/configure conftestfile" \
904 && test "$*" != "X conftestfile $srcdir/configure"; then
906 # If neither matched, then we have a broken ls. This can happen
907 # if, for instance, CONFIG_SHELL is bash and it inherits a
908 # broken ls alias from the environment. This has actually
909 # happened. Such a system could not be considered "sane".
910 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
911 alias in your environment" 1>&2; exit 1; }
914 test "$2" = conftestfile
920 { echo "configure: error: newly created file is older than distributed files!
921 Check your system clock" 1>&2; exit 1; }
924 echo "$ac_t""yes" 1>&6
925 if test "$program_transform_name" = s,x,x,; then
926 program_transform_name=
928 # Double any \ or $. echo might interpret backslashes.
929 cat <<\EOF_SED > conftestsed
930 s,\\,\\\\,g; s,\$,$$,g
932 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
935 test "$program_prefix" != NONE &&
936 program_transform_name="s,^,${program_prefix},;$program_transform_name"
937 # Use a double $ so make ignores it.
938 test "$program_suffix" != NONE &&
939 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
941 # sed with no file args requires a program.
942 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
944 for ac_prog in mawk gawk nawk awk
946 # Extract the first word of "$ac_prog", so it can be a program name with args.
947 set dummy $ac_prog; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 if test -n "$AWK"; then
954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 for ac_dir in $ac_dummy; do
959 test -z "$ac_dir" && ac_dir=.
960 if test -f $ac_dir/$ac_word; then
961 ac_cv_prog_AWK="$ac_prog"
968 AWK="$ac_cv_prog_AWK"
969 if test -n "$AWK"; then
970 echo "$ac_t""$AWK" 1>&6
972 echo "$ac_t""no" 1>&6
975 test -n "$AWK" && break
978 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
979 echo "configure:980: checking whether ${MAKE-make} sets \${MAKE}" >&5
980 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
981 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 cat > conftestmake <<\EOF
986 @echo 'ac_maketemp="${MAKE}"'
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
990 if test -n "$ac_maketemp"; then
991 eval ac_cv_prog_make_${ac_make}_set=yes
993 eval ac_cv_prog_make_${ac_make}_set=no
997 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
998 echo "$ac_t""yes" 1>&6
1001 echo "$ac_t""no" 1>&6
1002 SET_MAKE="MAKE=${MAKE-make}"
1011 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1012 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1017 missing_dir=`cd $ac_aux_dir && pwd`
1018 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1019 echo "configure:1020: checking for working aclocal" >&5
1020 # Run test in a subshell; some versions of sh will print an error if
1021 # an executable is not found, even if stderr is redirected.
1022 # Redirect stdin to placate older versions of autoconf. Sigh.
1023 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1025 echo "$ac_t""found" 1>&6
1027 ACLOCAL="$missing_dir/missing aclocal"
1028 echo "$ac_t""missing" 1>&6
1031 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1032 echo "configure:1033: checking for working autoconf" >&5
1033 # Run test in a subshell; some versions of sh will print an error if
1034 # an executable is not found, even if stderr is redirected.
1035 # Redirect stdin to placate older versions of autoconf. Sigh.
1036 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1038 echo "$ac_t""found" 1>&6
1040 AUTOCONF="$missing_dir/missing autoconf"
1041 echo "$ac_t""missing" 1>&6
1044 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1045 echo "configure:1046: checking for working automake" >&5
1046 # Run test in a subshell; some versions of sh will print an error if
1047 # an executable is not found, even if stderr is redirected.
1048 # Redirect stdin to placate older versions of autoconf. Sigh.
1049 if (automake --version) < /dev/null > /dev/null 2>&1; then
1051 echo "$ac_t""found" 1>&6
1053 AUTOMAKE="$missing_dir/missing automake"
1054 echo "$ac_t""missing" 1>&6
1057 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1058 echo "configure:1059: checking for working autoheader" >&5
1059 # Run test in a subshell; some versions of sh will print an error if
1060 # an executable is not found, even if stderr is redirected.
1061 # Redirect stdin to placate older versions of autoconf. Sigh.
1062 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1063 AUTOHEADER=autoheader
1064 echo "$ac_t""found" 1>&6
1066 AUTOHEADER="$missing_dir/missing autoheader"
1067 echo "$ac_t""missing" 1>&6
1070 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1071 echo "configure:1072: checking for working makeinfo" >&5
1072 # Run test in a subshell; some versions of sh will print an error if
1073 # an executable is not found, even if stderr is redirected.
1074 # Redirect stdin to placate older versions of autoconf. Sigh.
1075 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1077 echo "$ac_t""found" 1>&6
1079 MAKEINFO="$missing_dir/missing makeinfo"
1080 echo "$ac_t""missing" 1>&6
1083 install_sh="$missing_dir/install-sh"
1084 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1086 for ac_prog in gnutar gtar tar
1088 # Extract the first word of "$ac_prog", so it can be a program name with args.
1089 set dummy $ac_prog; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$AMTAR"; then
1096 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_AMTAR="$ac_prog"
1110 AMTAR="$ac_cv_prog_AMTAR"
1111 if test -n "$AMTAR"; then
1112 echo "$ac_t""$AMTAR" 1>&6
1114 echo "$ac_t""no" 1>&6
1117 test -n "$AMTAR" && break
1122 if test -n "$AMTAR"; then
1123 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1130 cat >> confdefs.h <<EOF
1131 #define OPENLDAP_PACKAGE "$PACKAGE"
1134 cat >> confdefs.h <<EOF
1135 #define OPENLDAP_VERSION "$VERSION"
1141 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1142 echo "configure:1143: checking configure arguments" >&5
1147 ldap_subdir="/openldap"
1149 # Check whether --with-subdir or --without-subdir was given.
1150 if test "${with_subdir+set}" = set; then
1151 withval="$with_subdir"
1158 ldap_subdir="$withval"
1161 ldap_subdir="/$withval"
1168 # OpenLDAP --enable-debug
1169 # Check whether --enable-debug or --disable-debug was given.
1170 if test "${enable_debug+set}" = set; then
1171 enableval="$enable_debug"
1174 for ol_val in auto yes no ; do
1175 if test "$enableval" = "$ol_val" ; then
1179 if test "$ol_arg" = "invalid" ; then
1180 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1182 ol_enable_debug="$ol_arg"
1185 ol_enable_debug="yes"
1187 # end --enable-debug
1188 # OpenLDAP --enable-syslog
1189 # Check whether --enable-syslog or --disable-syslog was given.
1190 if test "${enable_syslog+set}" = set; then
1191 enableval="$enable_syslog"
1194 for ol_val in auto yes no ; do
1195 if test "$enableval" = "$ol_val" ; then
1199 if test "$ol_arg" = "invalid" ; then
1200 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1202 ol_enable_syslog="$ol_arg"
1205 ol_enable_syslog="auto"
1207 # end --enable-syslog
1208 # OpenLDAP --enable-proctitle
1209 # Check whether --enable-proctitle or --disable-proctitle was given.
1210 if test "${enable_proctitle+set}" = set; then
1211 enableval="$enable_proctitle"
1214 for ol_val in auto yes no ; do
1215 if test "$enableval" = "$ol_val" ; then
1219 if test "$ol_arg" = "invalid" ; then
1220 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1222 ol_enable_proctitle="$ol_arg"
1225 ol_enable_proctitle="yes"
1227 # end --enable-proctitle
1228 # OpenLDAP --enable-cache
1229 # Check whether --enable-cache or --disable-cache was given.
1230 if test "${enable_cache+set}" = set; then
1231 enableval="$enable_cache"
1234 for ol_val in auto yes no ; do
1235 if test "$enableval" = "$ol_val" ; then
1239 if test "$ol_arg" = "invalid" ; then
1240 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1242 ol_enable_cache="$ol_arg"
1245 ol_enable_cache="yes"
1247 # end --enable-cache
1248 # OpenLDAP --enable-dns
1249 # Check whether --enable-dns or --disable-dns was given.
1250 if test "${enable_dns+set}" = set; then
1251 enableval="$enable_dns"
1254 for ol_val in auto yes no ; do
1255 if test "$enableval" = "$ol_val" ; then
1259 if test "$ol_arg" = "invalid" ; then
1260 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1262 ol_enable_dns="$ol_arg"
1268 # OpenLDAP --enable-referrals
1269 # Check whether --enable-referrals or --disable-referrals was given.
1270 if test "${enable_referrals+set}" = set; then
1271 enableval="$enable_referrals"
1274 for ol_val in auto yes no ; do
1275 if test "$enableval" = "$ol_val" ; then
1279 if test "$ol_arg" = "invalid" ; then
1280 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1282 ol_enable_referrals="$ol_arg"
1285 ol_enable_referrals="yes"
1287 # end --enable-referrals
1288 # OpenLDAP --enable-cldap
1289 # Check whether --enable-cldap or --disable-cldap was given.
1290 if test "${enable_cldap+set}" = set; then
1291 enableval="$enable_cldap"
1294 for ol_val in auto yes no ; do
1295 if test "$enableval" = "$ol_val" ; then
1299 if test "$ol_arg" = "invalid" ; then
1300 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1302 ol_enable_cldap="$ol_arg"
1305 ol_enable_cldap="no"
1307 # end --enable-cldap
1308 # OpenLDAP --enable-x_compile
1309 # Check whether --enable-x_compile or --disable-x_compile was given.
1310 if test "${enable_x_compile+set}" = set; then
1311 enableval="$enable_x_compile"
1314 for ol_val in yes no ; do
1315 if test "$enableval" = "$ol_val" ; then
1319 if test "$ol_arg" = "invalid" ; then
1320 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1322 ol_enable_x_compile="$ol_arg"
1325 ol_enable_x_compile="no"
1327 # end --enable-x_compile
1329 # OpenLDAP --enable-dmalloc
1330 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1331 if test "${enable_dmalloc+set}" = set; then
1332 enableval="$enable_dmalloc"
1335 for ol_val in auto yes no ; do
1336 if test "$enableval" = "$ol_val" ; then
1340 if test "$ol_arg" = "invalid" ; then
1341 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1343 ol_enable_dmalloc="$ol_arg"
1346 ol_enable_dmalloc="no"
1348 # end --enable-dmalloc
1350 # OpenLDAP --with-cyrus_sasl
1351 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1352 if test "${with_cyrus_sasl+set}" = set; then
1353 withval="$with_cyrus_sasl"
1356 for ol_val in auto yes no ; do
1357 if test "$withval" = "$ol_val" ; then
1361 if test "$ol_arg" = "invalid" ; then
1362 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1364 ol_with_cyrus_sasl="$ol_arg"
1367 ol_with_cyrus_sasl="auto"
1369 # end --with-cyrus_sasl
1371 # OpenLDAP --with-fetch
1372 # Check whether --with-fetch or --without-fetch was given.
1373 if test "${with_fetch+set}" = set; then
1374 withval="$with_fetch"
1377 for ol_val in auto yes no ; do
1378 if test "$withval" = "$ol_val" ; then
1382 if test "$ol_arg" = "invalid" ; then
1383 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1385 ol_with_fetch="$ol_arg"
1388 ol_with_fetch="auto"
1392 # OpenLDAP --with-kerberos
1393 # Check whether --with-kerberos or --without-kerberos was given.
1394 if test "${with_kerberos+set}" = set; then
1395 withval="$with_kerberos"
1398 for ol_val in auto k5 kth k4 afs yes no ; do
1399 if test "$withval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1406 ol_with_kerberos="$ol_arg"
1409 ol_with_kerberos="auto"
1411 # end --with-kerberos
1413 # OpenLDAP --with-readline
1414 # Check whether --with-readline or --without-readline was given.
1415 if test "${with_readline+set}" = set; then
1416 withval="$with_readline"
1419 for ol_val in auto yes no ; do
1420 if test "$withval" = "$ol_val" ; then
1424 if test "$ol_arg" = "invalid" ; then
1425 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1427 ol_with_readline="$ol_arg"
1430 ol_with_readline="auto"
1432 # end --with-readline
1434 # OpenLDAP --with-threads
1435 # Check whether --with-threads or --without-threads was given.
1436 if test "${with_threads+set}" = set; then
1437 withval="$with_threads"
1440 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1441 if test "$withval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1448 ol_with_threads="$ol_arg"
1451 ol_with_threads="auto"
1453 # end --with-threads
1455 # OpenLDAP --with-tls
1456 # Check whether --with-tls or --without-tls was given.
1457 if test "${with_tls+set}" = set; then
1461 for ol_val in auto ssleay openssl yes no ; do
1462 if test "$withval" = "$ol_val" ; then
1466 if test "$ol_arg" = "invalid" ; then
1467 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1469 ol_with_tls="$ol_arg"
1476 # OpenLDAP --with-yielding_select
1477 # Check whether --with-yielding_select or --without-yielding_select was given.
1478 if test "${with_yielding_select+set}" = set; then
1479 withval="$with_yielding_select"
1482 for ol_val in auto yes no manual ; do
1483 if test "$withval" = "$ol_val" ; then
1487 if test "$ol_arg" = "invalid" ; then
1488 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1490 ol_with_yielding_select="$ol_arg"
1493 ol_with_yielding_select="auto"
1495 # end --with-yielding_select
1498 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1499 if test "${with_xxldapdoptions+set}" = set; then
1500 withval="$with_xxldapdoptions"
1504 # OpenLDAP --enable-ldapd
1505 # Check whether --enable-ldapd or --disable-ldapd was given.
1506 if test "${enable_ldapd+set}" = set; then
1507 enableval="$enable_ldapd"
1510 for ol_val in auto yes no ; do
1511 if test "$enableval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1518 ol_enable_ldapd="$ol_arg"
1521 ol_enable_ldapd="no"
1523 # end --enable-ldapd
1525 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1526 if test "${with_xxslapdoptions+set}" = set; then
1527 withval="$with_xxslapdoptions"
1531 # OpenLDAP --enable-slapd
1532 # Check whether --enable-slapd or --disable-slapd was given.
1533 if test "${enable_slapd+set}" = set; then
1534 enableval="$enable_slapd"
1537 for ol_val in auto yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1545 ol_enable_slapd="$ol_arg"
1548 ol_enable_slapd="yes"
1550 # end --enable-slapd
1551 # OpenLDAP --enable-cleartext
1552 # Check whether --enable-cleartext or --disable-cleartext was given.
1553 if test "${enable_cleartext+set}" = set; then
1554 enableval="$enable_cleartext"
1557 for ol_val in auto yes no ; do
1558 if test "$enableval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1565 ol_enable_cleartext="$ol_arg"
1568 ol_enable_cleartext="yes"
1570 # end --enable-cleartext
1571 # OpenLDAP --enable-crypt
1572 # Check whether --enable-crypt or --disable-crypt was given.
1573 if test "${enable_crypt+set}" = set; then
1574 enableval="$enable_crypt"
1577 for ol_val in auto yes no ; do
1578 if test "$enableval" = "$ol_val" ; then
1582 if test "$ol_arg" = "invalid" ; then
1583 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1585 ol_enable_crypt="$ol_arg"
1588 ol_enable_crypt="auto"
1590 # end --enable-crypt
1591 # OpenLDAP --enable-modules
1592 # Check whether --enable-modules or --disable-modules was given.
1593 if test "${enable_modules+set}" = set; then
1594 enableval="$enable_modules"
1597 for ol_val in auto yes no ; do
1598 if test "$enableval" = "$ol_val" ; then
1602 if test "$ol_arg" = "invalid" ; then
1603 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1605 ol_enable_modules="$ol_arg"
1608 ol_enable_modules="no"
1610 # end --enable-modules
1611 # OpenLDAP --enable-multimaster
1612 # Check whether --enable-multimaster or --disable-multimaster was given.
1613 if test "${enable_multimaster+set}" = set; then
1614 enableval="$enable_multimaster"
1617 for ol_val in auto yes no ; do
1618 if test "$enableval" = "$ol_val" ; then
1622 if test "$ol_arg" = "invalid" ; then
1623 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1625 ol_enable_multimaster="$ol_arg"
1628 ol_enable_multimaster="no"
1630 # end --enable-multimaster
1631 # OpenLDAP --enable-phonetic
1632 # Check whether --enable-phonetic or --disable-phonetic was given.
1633 if test "${enable_phonetic+set}" = set; then
1634 enableval="$enable_phonetic"
1637 for ol_val in auto yes no ; do
1638 if test "$enableval" = "$ol_val" ; then
1642 if test "$ol_arg" = "invalid" ; then
1643 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1645 ol_enable_phonetic="$ol_arg"
1648 ol_enable_phonetic="no"
1650 # end --enable-phonetic
1651 # OpenLDAP --enable-quipu
1652 # Check whether --enable-quipu or --disable-quipu was given.
1653 if test "${enable_quipu+set}" = set; then
1654 enableval="$enable_quipu"
1657 for ol_val in auto yes no ; do
1658 if test "$enableval" = "$ol_val" ; then
1662 if test "$ol_arg" = "invalid" ; then
1663 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1665 ol_enable_quipu="$ol_arg"
1668 ol_enable_quipu="no"
1670 # end --enable-quipu
1671 # OpenLDAP --enable-rlookups
1672 # Check whether --enable-rlookups or --disable-rlookups was given.
1673 if test "${enable_rlookups+set}" = set; then
1674 enableval="$enable_rlookups"
1677 for ol_val in auto yes no ; do
1678 if test "$enableval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1685 ol_enable_rlookups="$ol_arg"
1688 ol_enable_rlookups="auto"
1690 # end --enable-rlookups
1691 # OpenLDAP --enable-aci
1692 # Check whether --enable-aci or --disable-aci was given.
1693 if test "${enable_aci+set}" = set; then
1694 enableval="$enable_aci"
1697 for ol_val in auto yes no ; do
1698 if test "$enableval" = "$ol_val" ; then
1702 if test "$ol_arg" = "invalid" ; then
1703 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1705 ol_enable_aci="$ol_arg"
1711 # OpenLDAP --enable-discreteaci
1712 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1713 if test "${enable_discreteaci+set}" = set; then
1714 enableval="$enable_discreteaci"
1717 for ol_val in auto yes no ; do
1718 if test "$enableval" = "$ol_val" ; then
1722 if test "$ol_arg" = "invalid" ; then
1723 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1725 ol_enable_discreteaci="$ol_arg"
1728 ol_enable_discreteaci="no"
1730 # end --enable-discreteaci
1731 # OpenLDAP --enable-wrappers
1732 # Check whether --enable-wrappers or --disable-wrappers was given.
1733 if test "${enable_wrappers+set}" = set; then
1734 enableval="$enable_wrappers"
1737 for ol_val in auto yes no ; do
1738 if test "$enableval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1745 ol_enable_wrappers="$ol_arg"
1748 ol_enable_wrappers="no"
1750 # end --enable-wrappers
1751 # OpenLDAP --enable-dynamic
1752 # Check whether --enable-dynamic or --disable-dynamic was given.
1753 if test "${enable_dynamic+set}" = set; then
1754 enableval="$enable_dynamic"
1757 for ol_val in auto yes no ; do
1758 if test "$enableval" = "$ol_val" ; then
1762 if test "$ol_arg" = "invalid" ; then
1763 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1765 ol_enable_dynamic="$ol_arg"
1768 ol_enable_dynamic="no"
1770 # end --enable-dynamic
1772 # OpenLDAP --enable-bdb2
1773 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1774 if test "${enable_bdb2+set}" = set; then
1775 enableval="$enable_bdb2"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1786 ol_enable_bdb2="$ol_arg"
1792 # OpenLDAP --with-bdb2_module
1793 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1794 if test "${with_bdb2_module+set}" = set; then
1795 withval="$with_bdb2_module"
1798 for ol_val in static dynamic ; do
1799 if test "$withval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1806 ol_with_bdb2_module="$ol_arg"
1809 ol_with_bdb2_module="static"
1811 # end --with-bdb2_module
1813 # OpenLDAP --enable-ldap
1814 # Check whether --enable-ldap or --disable-ldap was given.
1815 if test "${enable_ldap+set}" = set; then
1816 enableval="$enable_ldap"
1819 for ol_val in auto yes no ; do
1820 if test "$enableval" = "$ol_val" ; then
1824 if test "$ol_arg" = "invalid" ; then
1825 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1827 ol_enable_ldap="$ol_arg"
1833 # OpenLDAP --with-ldap_module
1834 # Check whether --with-ldap_module or --without-ldap_module was given.
1835 if test "${with_ldap_module+set}" = set; then
1836 withval="$with_ldap_module"
1839 for ol_val in static dynamic ; do
1840 if test "$withval" = "$ol_val" ; then
1844 if test "$ol_arg" = "invalid" ; then
1845 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1847 ol_with_ldap_module="$ol_arg"
1850 ol_with_ldap_module="static"
1852 # end --with-ldap_module
1854 # OpenLDAP --enable-ldbm
1855 # Check whether --enable-ldbm or --disable-ldbm was given.
1856 if test "${enable_ldbm+set}" = set; then
1857 enableval="$enable_ldbm"
1860 for ol_val in auto yes no ; do
1861 if test "$enableval" = "$ol_val" ; then
1865 if test "$ol_arg" = "invalid" ; then
1866 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1868 ol_enable_ldbm="$ol_arg"
1871 ol_enable_ldbm="yes"
1874 # OpenLDAP --with-ldbm_api
1875 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1876 if test "${with_ldbm_api+set}" = set; then
1877 withval="$with_ldbm_api"
1880 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1881 if test "$withval" = "$ol_val" ; then
1885 if test "$ol_arg" = "invalid" ; then
1886 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1888 ol_with_ldbm_api="$ol_arg"
1891 ol_with_ldbm_api="auto"
1893 # end --with-ldbm_api
1895 # OpenLDAP --with-ldbm_module
1896 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1897 if test "${with_ldbm_module+set}" = set; then
1898 withval="$with_ldbm_module"
1901 for ol_val in static dynamic ; do
1902 if test "$withval" = "$ol_val" ; then
1906 if test "$ol_arg" = "invalid" ; then
1907 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1909 ol_with_ldbm_module="$ol_arg"
1912 ol_with_ldbm_module="static"
1914 # end --with-ldbm_module
1916 # OpenLDAP --with-ldbm_type
1917 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1918 if test "${with_ldbm_type+set}" = set; then
1919 withval="$with_ldbm_type"
1922 for ol_val in auto btree hash ; do
1923 if test "$withval" = "$ol_val" ; then
1927 if test "$ol_arg" = "invalid" ; then
1928 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1930 ol_with_ldbm_type="$ol_arg"
1933 ol_with_ldbm_type="auto"
1935 # end --with-ldbm_type
1938 # OpenLDAP --enable-passwd
1939 # Check whether --enable-passwd or --disable-passwd was given.
1940 if test "${enable_passwd+set}" = set; then
1941 enableval="$enable_passwd"
1944 for ol_val in auto yes no ; do
1945 if test "$enableval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1952 ol_enable_passwd="$ol_arg"
1955 ol_enable_passwd="no"
1957 # end --enable-passwd
1958 # OpenLDAP --with-passwd_module
1959 # Check whether --with-passwd_module or --without-passwd_module was given.
1960 if test "${with_passwd_module+set}" = set; then
1961 withval="$with_passwd_module"
1964 for ol_val in static dynamic ; do
1965 if test "$withval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1972 ol_with_passwd_module="$ol_arg"
1975 ol_with_passwd_module="static"
1977 # end --with-passwd_module
1979 # OpenLDAP --enable-perl
1980 # Check whether --enable-perl or --disable-perl was given.
1981 if test "${enable_perl+set}" = set; then
1982 enableval="$enable_perl"
1985 for ol_val in auto yes no ; do
1986 if test "$enableval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1993 ol_enable_perl="$ol_arg"
1999 # OpenLDAP --with-perl_module
2000 # Check whether --with-perl_module or --without-perl_module was given.
2001 if test "${with_perl_module+set}" = set; then
2002 withval="$with_perl_module"
2005 for ol_val in static dynamic ; do
2006 if test "$withval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2013 ol_with_perl_module="$ol_arg"
2016 ol_with_perl_module="static"
2018 # end --with-perl_module
2020 # OpenLDAP --enable-shell
2021 # Check whether --enable-shell or --disable-shell was given.
2022 if test "${enable_shell+set}" = set; then
2023 enableval="$enable_shell"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2034 ol_enable_shell="$ol_arg"
2037 ol_enable_shell="no"
2039 # end --enable-shell
2040 # OpenLDAP --with-shell_module
2041 # Check whether --with-shell_module or --without-shell_module was given.
2042 if test "${with_shell_module+set}" = set; then
2043 withval="$with_shell_module"
2046 for ol_val in static dynamic ; do
2047 if test "$withval" = "$ol_val" ; then
2051 if test "$ol_arg" = "invalid" ; then
2052 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2054 ol_with_shell_module="$ol_arg"
2057 ol_with_shell_module="static"
2059 # end --with-shell_module
2061 # OpenLDAP --enable-tcl
2062 # Check whether --enable-tcl or --disable-tcl was given.
2063 if test "${enable_tcl+set}" = set; then
2064 enableval="$enable_tcl"
2067 for ol_val in auto yes no ; do
2068 if test "$enableval" = "$ol_val" ; then
2072 if test "$ol_arg" = "invalid" ; then
2073 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2075 ol_enable_tcl="$ol_arg"
2081 # OpenLDAP --with-tcl_module
2082 # Check whether --with-tcl_module or --without-tcl_module was given.
2083 if test "${with_tcl_module+set}" = set; then
2084 withval="$with_tcl_module"
2087 for ol_val in static dynamic ; do
2088 if test "$withval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2095 ol_with_tcl_module="$ol_arg"
2098 ol_with_tcl_module="static"
2100 # end --with-tcl_module
2103 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2104 if test "${with_xxslurpdoptions+set}" = set; then
2105 withval="$with_xxslurpdoptions"
2109 # OpenLDAP --enable-slurpd
2110 # Check whether --enable-slurpd or --disable-slurpd was given.
2111 if test "${enable_slurpd+set}" = set; then
2112 enableval="$enable_slurpd"
2115 for ol_val in auto yes no ; do
2116 if test "$enableval" = "$ol_val" ; then
2120 if test "$ol_arg" = "invalid" ; then
2121 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2123 ol_enable_slurpd="$ol_arg"
2126 ol_enable_slurpd="auto"
2128 # end --enable-slurpd
2130 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2131 if test "${with_xxliboptions+set}" = set; then
2132 withval="$with_xxliboptions"
2136 # Check whether --enable-static or --disable-static was given.
2137 if test "${enable_static+set}" = set; then
2138 enableval="$enable_static"
2139 p=${PACKAGE-default}
2140 case "$enableval" in
2141 yes) enable_static=yes ;;
2142 no) enable_static=no ;;
2145 # Look at the argument we got. We use all the common list separators.
2146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2147 for pkg in $enableval; do
2148 if test "X$pkg" = "X$p"; then
2159 # Check whether --enable-shared or --disable-shared was given.
2160 if test "${enable_shared+set}" = set; then
2161 enableval="$enable_shared"
2162 p=${PACKAGE-default}
2163 case "$enableval" in
2164 yes) enable_shared=yes ;;
2165 no) enable_shared=no ;;
2168 # Look at the argument we got. We use all the common list separators.
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2170 for pkg in $enableval; do
2171 if test "X$pkg" = "X$p"; then
2185 if test $ol_enable_dns = yes ; then
2186 if test $ol_enable_referrals = no ; then
2187 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2189 if test $ol_enable_referrals = auto ; then
2190 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2191 ol_enable_referrals=yes
2195 if test $ol_enable_slapd = no ; then
2196 if test $ol_enable_bdb2 = yes ; then
2197 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2199 if test $ol_enable_ldap = yes ; then
2200 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2202 if test $ol_enable_ldbm = yes ; then
2203 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2205 if test $ol_enable_passwd = yes ; then
2206 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2208 if test $ol_enable_perl = yes ; then
2209 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2211 if test $ol_enable_shell = yes ; then
2212 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2214 if test $ol_enable_tcl = yes ; then
2215 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2217 if test $ol_enable_modules = yes ; then
2218 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2220 if test $ol_enable_multimaster = yes ; then
2221 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2223 if test $ol_enable_wrappers = yes ; then
2224 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2226 if test $ol_enable_phonetic = yes ; then
2227 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2229 if test $ol_enable_quipu = yes ; then
2230 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2232 if test $ol_enable_rlookups = yes ; then
2233 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2235 if test $ol_enable_aci = yes ; then
2236 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2238 if test $ol_enable_discreteaci = yes ; then
2239 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2241 if test $ol_with_ldbm_api != auto ; then
2242 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2244 if test $ol_with_ldbm_type != auto ; then
2245 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2247 if test $ol_with_bdb2_module != static ; then
2248 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2250 if test $ol_with_ldap_module != static ; then
2251 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2253 if test $ol_with_ldbm_module != static ; then
2254 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2256 if test $ol_with_passwd_module != static ; then
2257 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2259 if test $ol_with_perl_module != static ; then
2260 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2262 if test $ol_with_shell_module != static ; then
2263 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2265 if test $ol_with_tcl_module != static ; then
2266 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2268 if test $ol_enable_slurpd = yes ; then
2269 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2272 # force settings to no
2281 ol_enable_modules=no
2282 ol_enable_multimaster=no
2283 ol_enable_phonetic=no
2285 ol_enable_rlookups=no
2287 ol_enable_discreteaci=no
2288 ol_enable_wrappers=no
2289 ol_enable_dynamic=no
2292 ol_with_ldbm_type=no
2294 ol_with_bdb2_module=static
2295 ol_with_ldap_module=static
2296 ol_with_ldbm_module=static
2297 ol_with_passwd_module=static
2298 ol_with_perl_module=static
2299 ol_with_shell_module=static
2300 ol_with_tcl_module=static
2304 elif test $ol_enable_ldbm = no ; then
2306 if test $ol_with_ldbm_api != auto ; then
2307 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2310 if test $ol_with_ldbm_type != auto ; then
2311 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2314 if test $ol_with_ldbm_module != static ; then
2315 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2318 if test $ol_enable_bdb2 = yes ; then
2319 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2322 if test $ol_enable_modules != yes -a \
2323 $ol_enable_ldap = no -a \
2324 $ol_enable_passwd = no -a \
2325 $ol_enable_perl = no -a \
2326 $ol_enable_shell = no -a \
2327 $ol_enable_tcl = no ; then
2328 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2332 ol_with_ldbm_type=no
2333 ol_with_ldbm_module=static
2335 elif test $ol_enable_bdb2 = yes ; then
2337 if test $ol_with_ldbm_api != auto -a \
2338 $ol_with_ldbm_api != db2 ; then
2339 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2342 ol_with_ldbm_api=db2
2346 if test $ol_enable_bdb2 != no ; then
2347 if test $ol_with_ldbm_api != auto -a \
2348 $ol_with_ldbm_api != db2 ; then
2349 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2354 if test $ol_with_ldbm_api = gdbm -a \
2355 $ol_with_ldbm_type = btree ; then
2356 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2358 if test $ol_with_ldbm_api = mdbm -a \
2359 $ol_with_ldbm_type = btree ; then
2360 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2362 if test $ol_with_ldbm_api = ndbm -a \
2363 $ol_with_ldbm_type = btree ; then
2364 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2368 if test $ol_enable_slurpd = yes ; then
2369 if test $ol_with_threads = no ; then
2370 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2374 echo "$ac_t""done" 1>&6
2400 BUILD_BDB2_DYNAMIC=static
2401 BUILD_LDAP_DYNAMIC=static
2402 BUILD_LDBM_DYNAMIC=static
2403 BUILD_PASSWD_DYNAMIC=static
2404 BUILD_PERL_DYNAMIC=static
2405 BUILD_SHELL_DYNAMIC=static
2406 BUILD_TCL_DYNAMIC=static
2408 SLAPD_MODULES_LDFLAGS=
2409 SLAPD_MODULES_CPPFLAGS=
2426 cat >> confdefs.h <<\EOF
2427 #define HAVE_MKVERSION 1
2435 *-*-aix*) if test -z "$CC" ; then
2436 case "$ol_with_threads" in
2437 auto | yes | posix) ol_aix_threads=yes ;;
2443 if test $ol_aix_threads = yes ; then
2444 if test -z "${CC}" ; then
2445 for ac_prog in cc_r xlc_r cc
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2459 for ac_dir in $ac_dummy; do
2460 test -z "$ac_dir" && ac_dir=.
2461 if test -f $ac_dir/$ac_word; then
2462 ac_cv_prog_CC="$ac_prog"
2470 if test -n "$CC"; then
2471 echo "$ac_t""$CC" 1>&6
2473 echo "$ac_t""no" 1>&6
2476 test -n "$CC" && break
2480 if test "$CC" = cc ; then
2481 if test $ol_with_threads != auto ; then
2482 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2484 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2490 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2491 ol_with_threads=posix
2492 ol_cv_pthread_create=yes
2496 if test -z "${CC}"; then
2499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_word" >&5
2503 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2511 for ac_dir in $ac_dummy; do
2512 test -z "$ac_dir" && ac_dir=.
2513 if test -f $ac_dir/$ac_word; then
2514 ac_cv_prog_CC="$ac_prog"
2522 if test -n "$CC"; then
2523 echo "$ac_t""$CC" 1>&6
2525 echo "$ac_t""no" 1>&6
2528 test -n "$CC" && break
2536 # Check whether --enable-fast-install or --disable-fast-install was given.
2537 if test "${enable_fast_install+set}" = set; then
2538 enableval="$enable_fast_install"
2539 p=${PACKAGE-default}
2540 case "$enableval" in
2541 yes) enable_fast_install=yes ;;
2542 no) enable_fast_install=no ;;
2544 enable_fast_install=no
2545 # Look at the argument we got. We use all the common list separators.
2546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2547 for pkg in $enableval; do
2548 if test "X$pkg" = "X$p"; then
2549 enable_fast_install=yes
2556 enable_fast_install=yes
2559 # Extract the first word of "ranlib", so it can be a program name with args.
2560 set dummy ranlib; ac_word=$2
2561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2562 echo "configure:2563: checking for $ac_word" >&5
2563 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 if test -n "$RANLIB"; then
2567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2571 for ac_dir in $ac_dummy; do
2572 test -z "$ac_dir" && ac_dir=.
2573 if test -f $ac_dir/$ac_word; then
2574 ac_cv_prog_RANLIB="ranlib"
2579 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2582 RANLIB="$ac_cv_prog_RANLIB"
2583 if test -n "$RANLIB"; then
2584 echo "$ac_t""$RANLIB" 1>&6
2586 echo "$ac_t""no" 1>&6
2589 # Extract the first word of "gcc", so it can be a program name with args.
2590 set dummy gcc; ac_word=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2601 for ac_dir in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir=.
2603 if test -f $ac_dir/$ac_word; then
2612 if test -n "$CC"; then
2613 echo "$ac_t""$CC" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 if test -z "$CC"; then
2619 # Extract the first word of "cc", so it can be a program name with args.
2620 set dummy cc; ac_word=$2
2621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_word" >&5
2623 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2632 for ac_dir in $ac_dummy; do
2633 test -z "$ac_dir" && ac_dir=.
2634 if test -f $ac_dir/$ac_word; then
2635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2644 if test $ac_prog_rejected = yes; then
2645 # We found a bogon in the path, so make sure we never use it.
2646 set dummy $ac_cv_prog_CC
2648 if test $# -gt 0; then
2649 # We chose a different compiler from the bogus one.
2650 # However, it has the same basename, so the bogon will be chosen
2651 # first if we set CC to just the basename; use the full file name.
2653 set dummy "$ac_dir/$ac_word" "$@"
2661 if test -n "$CC"; then
2662 echo "$ac_t""$CC" 1>&6
2664 echo "$ac_t""no" 1>&6
2667 if test -z "$CC"; then
2668 case "`uname -s`" in
2669 *win32* | *WIN32* | *CYGWIN*)
2670 # Extract the first word of "cl", so it can be a program name with args.
2671 set dummy cl; ac_word=$2
2672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_word" >&5
2674 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2682 for ac_dir in $ac_dummy; do
2683 test -z "$ac_dir" && ac_dir=.
2684 if test -f $ac_dir/$ac_word; then
2693 if test -n "$CC"; then
2694 echo "$ac_t""$CC" 1>&6
2696 echo "$ac_t""no" 1>&6
2701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2705 echo "configure:2706: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2709 ac_cpp='$CPP $CPPFLAGS'
2710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2712 cross_compiling=$ac_cv_prog_cc_cross
2714 cat > conftest.$ac_ext << EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722 ac_cv_prog_cc_works=yes
2723 # If we can't run a trivial program, we are probably using a cross compiler.
2724 if (./conftest; exit) 2>/dev/null; then
2725 ac_cv_prog_cc_cross=no
2727 ac_cv_prog_cc_cross=yes
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2732 ac_cv_prog_cc_works=no
2736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2740 cross_compiling=$ac_cv_prog_cc_cross
2742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2743 if test $ac_cv_prog_cc_works = no; then
2744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2747 echo "configure:2748: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2749 cross_compiling=$ac_cv_prog_cc_cross
2751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether we are using GNU C" >&5
2753 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.c <<EOF
2761 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2770 if test $ac_cv_prog_gcc = yes; then
2776 ac_test_CFLAGS="${CFLAGS+set}"
2777 ac_save_CFLAGS="$CFLAGS"
2779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2780 echo "configure:2781: checking whether ${CC-cc} accepts -g" >&5
2781 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 echo 'void f(){}' > conftest.c
2785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS="$ac_save_CFLAGS"
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2804 if test "$GCC" = yes; then
2811 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2812 if test "${with_gnu_ld+set}" = set; then
2813 withval="$with_gnu_ld"
2814 test "$withval" = no || with_gnu_ld=yes
2820 if test "$ac_cv_prog_gcc" = yes; then
2821 # Check if gcc -print-prog-name=ld gives a path.
2822 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2823 echo "configure:2824: checking for ld used by GCC" >&5
2824 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2826 # Accept absolute paths.
2827 [\\/]* | [A-Za-z]:[\\/]*)
2828 re_direlt='/[^/][^/]*/\.\./'
2829 # Canonicalize the path of ld
2830 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2831 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2832 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2834 test -z "$LD" && LD="$ac_prog"
2837 # If it fails, then pretend we aren't using GCC.
2841 # If it is relative, then search for the first ld in PATH.
2845 elif test "$with_gnu_ld" = yes; then
2846 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2847 echo "configure:2848: checking for GNU ld" >&5
2849 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2850 echo "configure:2851: checking for non-GNU ld" >&5
2852 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 if test -z "$LD"; then
2856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2857 for ac_dir in $PATH; do
2858 test -z "$ac_dir" && ac_dir=.
2859 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2860 ac_cv_path_LD="$ac_dir/$ac_prog"
2861 # Check to see if the program is GNU ld. I'd rather use --version,
2862 # but apparently some GNU ld's only accept -v.
2863 # Break only if it was the GNU/non-GNU ld that we prefer.
2864 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2865 test "$with_gnu_ld" != no && break
2867 test "$with_gnu_ld" != yes && break
2873 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2878 if test -n "$LD"; then
2879 echo "$ac_t""$LD" 1>&6
2881 echo "$ac_t""no" 1>&6
2883 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2885 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2886 echo "configure:2887: checking if the linker ($LD) is GNU ld" >&5
2887 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2891 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2892 ac_cv_prog_gnu_ld=yes
2894 ac_cv_prog_gnu_ld=no
2898 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2901 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2902 echo "configure:2903: checking for BSD-compatible nm" >&5
2903 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test -n "$NM"; then
2907 # Let the user override the test.
2910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2911 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2912 test -z "$ac_dir" && ac_dir=.
2913 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2914 # Check to see if the nm accepts a BSD-compat flag.
2915 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2916 # nm: unknown option "B" ignored
2917 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2918 ac_cv_path_NM="$ac_dir/nm -B"
2920 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2921 ac_cv_path_NM="$ac_dir/nm -p"
2924 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2925 continue # so that we can try to find one that supports BSD flags
2930 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2935 echo "$ac_t""$NM" 1>&6
2938 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2939 echo "configure:2940: checking whether ln -s works" >&5
2940 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2944 if ln -s X conftestdata 2>/dev/null
2947 ac_cv_prog_LN_S="ln -s"
2952 LN_S="$ac_cv_prog_LN_S"
2953 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2954 echo "$ac_t""yes" 1>&6
2956 echo "$ac_t""no" 1>&6
2959 if test $host != $build; then
2960 ac_tool_prefix=${host_alias}-
2966 # Check for any special flags to pass to ltconfig.
2967 libtool_flags="--cache-file=$cache_file"
2968 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2969 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2970 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2971 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2972 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2973 libtool_flags="$libtool_flags --enable-dlopen"
2974 libtool_flags="$libtool_flags --enable-win32-dll"
2975 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2976 if test "${enable_libtool_lock+set}" = set; then
2977 enableval="$enable_libtool_lock"
2981 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2982 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2984 # Some flags need to be propagated to the compiler or linker for good
2988 # Find out which ABI we are using.
2989 echo '#line 2990 "configure"' > conftest.$ac_ext
2990 if { (eval echo configure:2991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 case "`/usr/bin/file conftest.o`" in
3007 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3008 SAVE_CFLAGS="$CFLAGS"
3009 CFLAGS="$CFLAGS -belf"
3010 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3011 echo "configure:3012: checking whether the C compiler needs -belf" >&5
3012 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025 lt_cv_cc_needs_belf=yes
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3030 lt_cv_cc_needs_belf=no
3035 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3036 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3037 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3038 CFLAGS="$SAVE_CFLAGS"
3042 *-*-cygwin* | *-*-mingw*)
3043 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_word" >&5
3047 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 if test -n "$DLLTOOL"; then
3051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3055 for ac_dir in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir=.
3057 if test -f $ac_dir/$ac_word; then
3058 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3065 DLLTOOL="$ac_cv_prog_DLLTOOL"
3066 if test -n "$DLLTOOL"; then
3067 echo "$ac_t""$DLLTOOL" 1>&6
3069 echo "$ac_t""no" 1>&6
3073 if test -z "$ac_cv_prog_DLLTOOL"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "dlltool", so it can be a program name with args.
3076 set dummy dlltool; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$DLLTOOL"; then
3083 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3087 for ac_dir in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_DLLTOOL="dlltool"
3095 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3098 DLLTOOL="$ac_cv_prog_DLLTOOL"
3099 if test -n "$DLLTOOL"; then
3100 echo "$ac_t""$DLLTOOL" 1>&6
3102 echo "$ac_t""no" 1>&6
3110 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}as; ac_word=$2
3112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_word" >&5
3114 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 if test -n "$AS"; then
3118 ac_cv_prog_AS="$AS" # Let the user override the test.
3120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3122 for ac_dir in $ac_dummy; do
3123 test -z "$ac_dir" && ac_dir=.
3124 if test -f $ac_dir/$ac_word; then
3125 ac_cv_prog_AS="${ac_tool_prefix}as"
3133 if test -n "$AS"; then
3134 echo "$ac_t""$AS" 1>&6
3136 echo "$ac_t""no" 1>&6
3140 if test -z "$ac_cv_prog_AS"; then
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "as", so it can be a program name with args.
3143 set dummy as; ac_word=$2
3144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3145 echo "configure:3146: checking for $ac_word" >&5
3146 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 if test -n "$AS"; then
3150 ac_cv_prog_AS="$AS" # Let the user override the test.
3152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3154 for ac_dir in $ac_dummy; do
3155 test -z "$ac_dir" && ac_dir=.
3156 if test -f $ac_dir/$ac_word; then
3162 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3166 if test -n "$AS"; then
3167 echo "$ac_t""$AS" 1>&6
3169 echo "$ac_t""no" 1>&6
3177 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_word" >&5
3181 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3184 if test -n "$OBJDUMP"; then
3185 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3189 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 if test -f $ac_dir/$ac_word; then
3192 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3199 OBJDUMP="$ac_cv_prog_OBJDUMP"
3200 if test -n "$OBJDUMP"; then
3201 echo "$ac_t""$OBJDUMP" 1>&6
3203 echo "$ac_t""no" 1>&6
3207 if test -z "$ac_cv_prog_OBJDUMP"; then
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "objdump", so it can be a program name with args.
3210 set dummy objdump; ac_word=$2
3211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3212 echo "configure:3213: checking for $ac_word" >&5
3213 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 if test -n "$OBJDUMP"; then
3217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3221 for ac_dir in $ac_dummy; do
3222 test -z "$ac_dir" && ac_dir=.
3223 if test -f $ac_dir/$ac_word; then
3224 ac_cv_prog_OBJDUMP="objdump"
3229 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3232 OBJDUMP="$ac_cv_prog_OBJDUMP"
3233 if test -n "$OBJDUMP"; then
3234 echo "$ac_t""$OBJDUMP" 1>&6
3236 echo "$ac_t""no" 1>&6
3249 # Save cache, so that ltconfig can load it
3252 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3253 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3254 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3255 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3256 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3257 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3258 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3259 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3261 # Reload cache, that may have been modified by ltconfig
3264 # This can be used to rebuild libtool when needed
3265 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3267 # Always use our own libtool.
3268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3270 # Redirect the config.log output again, so that the ltconfig log is not
3271 # clobbered by the next message.
3272 exec 5>>./config.log
3275 for ac_prog in mawk gawk nawk awk
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_word" >&5
3281 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 if test -n "$AWK"; then
3285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3289 for ac_dir in $ac_dummy; do
3290 test -z "$ac_dir" && ac_dir=.
3291 if test -f $ac_dir/$ac_word; then
3292 ac_cv_prog_AWK="$ac_prog"
3299 AWK="$ac_cv_prog_AWK"
3300 if test -n "$AWK"; then
3301 echo "$ac_t""$AWK" 1>&6
3303 echo "$ac_t""no" 1>&6
3306 test -n "$AWK" && break
3309 # test for ln hardlink support
3310 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3311 echo "configure:3312: checking whether ln works" >&5
3312 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 rm -f conftest.src conftest.dst
3316 echo "conftest" > conftest.src
3317 if ln conftest.src conftest.dst 2>/dev/null
3319 ol_cv_prog_LN_H="ln"
3321 ol_cv_prog_LN_H="cp"
3323 rm -f conftest.src conftest.dst
3326 LN_H="$ol_cv_prog_LN_H"
3327 if test "$ol_cv_prog_LN_H" = "ln"; then
3328 echo "$ac_t""yes" 1>&6
3330 echo "$ac_t""no" 1>&6
3333 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3334 echo "configure:3335: checking whether ln -s works" >&5
3335 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3339 if ln -s X conftestdata 2>/dev/null
3342 ac_cv_prog_LN_S="ln -s"
3347 LN_S="$ac_cv_prog_LN_S"
3348 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3349 echo "$ac_t""yes" 1>&6
3351 echo "$ac_t""no" 1>&6
3355 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3359 # Extract the first word of "sendmail", so it can be a program name with args.
3360 set dummy sendmail; ac_word=$2
3361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3362 echo "configure:3363: checking for $ac_word" >&5
3363 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3368 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3371 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3375 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3376 for ac_dir in $ac_dummy; do
3377 test -z "$ac_dir" && ac_dir=.
3378 if test -f $ac_dir/$ac_word; then
3379 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3384 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3388 SENDMAIL="$ac_cv_path_SENDMAIL"
3389 if test -n "$SENDMAIL"; then
3390 echo "$ac_t""$SENDMAIL" 1>&6
3392 echo "$ac_t""no" 1>&6
3395 # Extract the first word of "vi", so it can be a program name with args.
3396 set dummy vi; ac_word=$2
3397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3398 echo "configure:3399: checking for $ac_word" >&5
3399 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3404 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3407 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3411 ac_dummy="$PATH:/usr/ucb"
3412 for ac_dir in $ac_dummy; do
3413 test -z "$ac_dir" && ac_dir=.
3414 if test -f $ac_dir/$ac_word; then
3415 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3420 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3424 EDITOR="$ac_cv_path_EDITOR"
3425 if test -n "$EDITOR"; then
3426 echo "$ac_t""$EDITOR" 1>&6
3428 echo "$ac_t""no" 1>&6
3431 # Extract the first word of "finger", so it can be a program name with args.
3432 set dummy finger; ac_word=$2
3433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3434 echo "configure:3435: checking for $ac_word" >&5
3435 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3440 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3443 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3447 ac_dummy="$PATH:/usr/ucb"
3448 for ac_dir in $ac_dummy; do
3449 test -z "$ac_dir" && ac_dir=.
3450 if test -f $ac_dir/$ac_word; then
3451 ac_cv_path_FINGER="$ac_dir/$ac_word"
3456 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3460 FINGER="$ac_cv_path_FINGER"
3461 if test -n "$FINGER"; then
3462 echo "$ac_t""$FINGER" 1>&6
3464 echo "$ac_t""no" 1>&6
3469 if test $ol_enable_perl != no ; then
3470 # Extract the first word of "perl", so it can be a program name with args.
3471 set dummy perl; ac_word=$2
3472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3473 echo "configure:3474: checking for $ac_word" >&5
3474 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3479 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3482 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3487 for ac_dir in $ac_dummy; do
3488 test -z "$ac_dir" && ac_dir=.
3489 if test -f $ac_dir/$ac_word; then
3490 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3495 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3499 PERLBIN="$ac_cv_path_PERLBIN"
3500 if test -n "$PERLBIN"; then
3501 echo "$ac_t""$PERLBIN" 1>&6
3503 echo "$ac_t""no" 1>&6
3507 if test "no$PERLBIN" = "no" ; then
3508 if test $ol_enable_perl = yes ; then
3509 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3513 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3514 if test x"$ol_with_perl_module" = "xstatic" ; then
3515 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3517 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3523 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3524 echo "configure:3525: checking how to run the C preprocessor" >&5
3525 # On Suns, sometimes $CPP names a directory.
3526 if test -n "$CPP" && test -d "$CPP"; then
3529 if test -z "$CPP"; then
3530 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 # This must be in double quotes, not single quotes, because CPP may get
3534 # substituted into the Makefile and "${CC-cc}" will confuse make.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp.
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3545 { (eval echo configure:3546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3547 if test -z "$ac_err"; then
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3554 CPP="${CC-cc} -E -traditional-cpp"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3562 { (eval echo configure:3563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3564 if test -z "$ac_err"; then
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 CPP="${CC-cc} -nologo -E"
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3579 { (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3581 if test -z "$ac_err"; then
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3595 ac_cv_prog_CPP="$CPP"
3597 CPP="$ac_cv_prog_CPP"
3599 ac_cv_prog_CPP="$CPP"
3601 echo "$ac_t""$CPP" 1>&6
3604 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3605 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3607 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3608 echo "configure: warning: programs compiled here do run here..." 1>&2
3609 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3611 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3612 echo "configure: warning: programs compiled here do not run here..." 1>&2
3613 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3616 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3617 echo "configure:3618: checking for AIX" >&5
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3627 egrep "yes" >/dev/null 2>&1; then
3629 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3630 #define _ALL_SOURCE 1
3635 echo "$ac_t""no" 1>&6
3640 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3641 echo "configure:3642: checking for POSIXized ISC" >&5
3642 if test -d /etc/conf/kconfig.d &&
3643 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3645 echo "$ac_t""yes" 1>&6
3646 ISC=yes # If later tests want to check for ISC.
3647 cat >> confdefs.h <<\EOF
3648 #define _POSIX_SOURCE 1
3651 if test "$GCC" = yes; then
3657 echo "$ac_t""no" 1>&6
3661 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3662 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3663 echo "configure:3664: checking for minix/config.h" >&5
3664 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <minix/config.h>
3672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3673 { (eval echo configure:3674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3675 if test -z "$ac_err"; then
3677 eval "ac_cv_header_$ac_safe=yes"
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_header_$ac_safe=no"
3687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3688 echo "$ac_t""yes" 1>&6
3691 echo "$ac_t""no" 1>&6
3695 if test "$MINIX" = yes; then
3696 cat >> confdefs.h <<\EOF
3697 #define _POSIX_SOURCE 1
3700 cat >> confdefs.h <<\EOF
3701 #define _POSIX_1_SOURCE 2
3704 cat >> confdefs.h <<\EOF
3711 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3712 echo "configure:3713: checking for Cygwin environment" >&5
3713 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3723 #define __CYGWIN__ __CYGWIN32__
3728 if { (eval echo configure:3729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3740 echo "$ac_t""$ac_cv_cygwin" 1>&6
3742 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3743 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3744 echo "configure:3745: checking for mingw32 environment" >&5
3745 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3756 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3768 echo "$ac_t""$ac_cv_mingw32" 1>&6
3770 test "$ac_cv_mingw32" = yes && MINGW32=yes
3771 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3772 echo "configure:3773: checking for EMX OS/2 environment" >&5
3773 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3784 if { (eval echo configure:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3796 echo "$ac_t""$ac_cv_emxos2" 1>&6
3798 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3802 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3803 echo "configure:3804: checking for executable suffix" >&5
3804 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3811 echo 'int main () { return 0; }' > conftest.$ac_ext
3813 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3814 for file in conftest.*; do
3816 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3817 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3821 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3824 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3829 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3830 echo "$ac_t""${ac_cv_exeext}" 1>&6
3833 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3834 echo "configure:3835: checking for object suffix" >&5
3835 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3839 echo 'int i = 1;' > conftest.$ac_ext
3840 if { (eval echo configure:3841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3841 for ac_file in conftest.*; do
3844 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3848 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3853 echo "$ac_t""$ac_cv_objext" 1>&6
3854 OBJEXT=$ac_cv_objext
3855 ac_objext=$ac_cv_objext
3858 cat >> confdefs.h <<EOF
3859 #define EXEEXT "${EXEEXT}"
3863 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3864 echo "configure:3865: checking for be_app in -lbe" >&5
3865 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3866 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3870 LIBS="-lbe -lroot -lnet $LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 LIBS="$LIBS -lbe -lroot -lnet"
3900 echo "$ac_t""no" 1>&6
3908 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3909 echo "configure:3910: checking for ${CC-cc} option to accept ANSI C" >&5
3910 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 am_cv_prog_cc_stdc=no
3915 # Don't try gcc -ansi; that turns off useful extensions and
3916 # breaks some systems' header files.
3917 # AIX -qlanglvl=ansi
3918 # Ultrix and OSF/1 -std1
3919 # HP-UX 10.20 and later -Ae
3920 # HP-UX older versions -Aa -D_HPUX_SOURCE
3921 # SVR4 -Xc -D__EXTENSIONS__
3922 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 CC="$ac_save_CC $ac_arg"
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3930 #include <sys/types.h>
3931 #include <sys/stat.h>
3932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933 struct buf { int x; };
3934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935 static char *e (p, i)
3941 static char *f (char * (*g) (char **, int), char **p, ...)
3946 s = g (p, va_arg (v,int));
3950 int test (int i, double x);
3951 struct s1 {int (*f) (int a);};
3952 struct s2 {int (*f) (double a);};
3953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3963 if { (eval echo configure:3964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 am_cv_prog_cc_stdc="$ac_arg"; break
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3976 if test -z "$am_cv_prog_cc_stdc"; then
3977 echo "$ac_t""none needed" 1>&6
3979 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3981 case "x$am_cv_prog_cc_stdc" in
3983 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3986 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3987 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3990 # test for make depend flag
3993 if test -z "${MKDEP}"; then
3995 if test -z "${MKDEP_FLAGS}"; then
3996 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3997 echo "configure:3998: checking for ${OL_MKDEP} depend flag" >&5
3998 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4003 for flag in "-M" "-xM"; do
4004 cat > conftest.c <<EOF
4007 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4008 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4010 if test ! -f conftest."${ac_object}" ; then
4012 OL_MKDEP_FLAGS="$flag"
4021 echo "$ac_t""$ol_cv_mkdep" 1>&6
4024 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4029 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4034 if test "${ol_cv_mkdep}" = no ; then
4035 # this will soon become an error
4036 echo "configure: warning: do not know how to generate dependencies" 1>&2
4040 if test $ol_enable_modules != no ; then
4041 for ac_hdr in ltdl.h
4043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4045 echo "configure:4046: checking for $ac_hdr" >&5
4046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4055 { (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4057 if test -z "$ac_err"; then
4059 eval "ac_cv_header_$ac_safe=yes"
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4065 eval "ac_cv_header_$ac_safe=no"
4069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4072 cat >> confdefs.h <<EOF
4073 #define $ac_tr_hdr 1
4077 echo "$ac_t""no" 1>&6
4082 if test $ac_cv_header_ltdl_h = no ; then
4083 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4086 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4087 echo "configure:4088: checking for lt_dlinit in -lltdl" >&5
4088 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4089 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 ac_save_LIBS="$LIBS"
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 eval "ac_cv_lib_$ac_lib_var=yes"
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 eval "ac_cv_lib_$ac_lib_var=no"
4116 LIBS="$ac_save_LIBS"
4119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4123 cat >> confdefs.h <<\EOF
4124 #define HAVE_LIBLTDL 1
4129 echo "$ac_t""no" 1>&6
4133 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4134 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4138 ol_with_bdb2_module=static
4139 ol_with_ldap_module=static
4140 ol_with_ldbm_module=static
4141 ol_with_passwd_module=static
4142 ol_with_perl_module=static
4143 ol_with_shell_module=static
4144 ol_with_tcl_module=static
4148 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4149 echo "configure:4150: checking for EBCDIC" >&5
4150 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4159 #include <__ASCII__/generate_error.h>
4163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4164 { (eval echo configure:4165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4166 if test -z "$ac_err"; then
4168 ol_cv_cpp_ebcdic=yes
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4179 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4180 if test $ol_cv_cpp_ebcdic = yes ; then
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_EBCDIC 1
4187 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4188 echo "configure:4189: checking for ANSI C header files" >&5
4189 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 ol_cv_header_stdc=yes
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 ol_cv_header_stdc=no
4215 if test $ol_cv_header_stdc = yes; then
4216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 egrep "memchr" >/dev/null 2>&1; then
4227 ol_cv_header_stdc=no
4233 if test $ol_cv_header_stdc = yes; then
4234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4241 egrep "free" >/dev/null 2>&1; then
4245 ol_cv_header_stdc=no
4251 if test $ol_cv_header_stdc = yes; then
4252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4253 if test "$cross_compiling" = yes; then
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4264 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4265 || ('j' <= (c) && (c) <= 'r') \
4266 || ('s' <= (c) && (c) <= 'z'))
4267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270 int main () { int i; for (i = 0; i < 256; i++)
4271 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 ol_cv_header_stdc=no
4290 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4291 if test $ol_cv_header_stdc = yes; then
4292 cat >> confdefs.h <<\EOF
4293 #define STDC_HEADERS 1
4297 ac_cv_header_stdc=disable
4300 if test $ol_cv_header_stdc != yes; then
4301 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4308 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4309 echo "configure:4310: checking for $ac_hdr that defines DIR" >&5
4310 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <sys/types.h>
4322 if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4324 eval "ac_cv_header_dirent_$ac_safe=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_header_dirent_$ac_safe=no"
4333 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4336 cat >> confdefs.h <<EOF
4337 #define $ac_tr_hdr 1
4339 ac_header_dirent=$ac_hdr; break
4341 echo "$ac_t""no" 1>&6
4344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4345 if test $ac_header_dirent = dirent.h; then
4346 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4347 echo "configure:4348: checking for opendir in -ldir" >&5
4348 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4349 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 ac_save_LIBS="$LIBS"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* Override any gcc2 internal prototype to avoid an error. */
4358 /* We use char because int might match the return type of a gcc2
4359 builtin and then its argument prototype would still apply. */
4366 if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4368 eval "ac_cv_lib_$ac_lib_var=yes"
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4373 eval "ac_cv_lib_$ac_lib_var=no"
4376 LIBS="$ac_save_LIBS"
4379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4383 echo "$ac_t""no" 1>&6
4387 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4388 echo "configure:4389: checking for opendir in -lx" >&5
4389 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS="$LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 /* We use char because int might match the return type of a gcc2
4400 builtin and then its argument prototype would still apply. */
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 eval "ac_cv_lib_$ac_lib_var=no"
4417 LIBS="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4424 echo "$ac_t""no" 1>&6
4429 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4430 echo "configure:4431: checking for sys/wait.h that is POSIX.1 compatible" >&5
4431 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 #include <sys/types.h>
4438 #include <sys/wait.h>
4440 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4443 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4448 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4451 if { (eval echo configure:4452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4453 ac_cv_header_sys_wait_h=yes
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4458 ac_cv_header_sys_wait_h=no
4463 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4464 if test $ac_cv_header_sys_wait_h = yes; then
4465 cat >> confdefs.h <<\EOF
4466 #define HAVE_SYS_WAIT_H 1
4471 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4472 echo "configure:4473: checking POSIX termios" >&5
4473 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 #include <sys/types.h>
4481 #include <termios.h>
4483 /* SunOS 4.0.3 has termios.h but not the library calls. */
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4489 am_cv_sys_posix_termios=yes
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 am_cv_sys_posix_termios=no
4499 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4502 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4503 echo "configure:4504: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4504 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4509 gwinsz_in_termios_h=no
4510 if test $am_cv_sys_posix_termios = yes; then
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 #include <sys/types.h>
4515 # include <termios.h>
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 egrep "yes" >/dev/null 2>&1; then
4524 gwinsz_in_termios_h=yes
4530 if test $gwinsz_in_termios_h = no; then
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 #include <sys/types.h>
4535 # include <sys/ioctl.h>
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 egrep "yes" >/dev/null 2>&1; then
4544 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4552 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4553 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4554 cat >> confdefs.h <<\EOF
4555 #define GWINSZ_IN_SYS_IOCTL 1
4560 if test $am_cv_sys_posix_termios = yes ; then
4561 cat >> confdefs.h <<\EOF
4562 #define HAVE_POSIX_TERMIOS 1
4613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_hdr" >&5
4616 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4625 { (eval echo configure:4626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4627 if test -z "$ac_err"; then
4629 eval "ac_cv_header_$ac_safe=yes"
4632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4635 eval "ac_cv_header_$ac_safe=no"
4639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4642 cat >> confdefs.h <<EOF
4643 #define $ac_tr_hdr 1
4647 echo "$ac_t""no" 1>&6
4654 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4655 echo "configure:4656: checking for sigset in -lV3" >&5
4656 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4657 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 ac_save_LIBS="$LIBS"
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676 eval "ac_cv_lib_$ac_lib_var=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4681 eval "ac_cv_lib_$ac_lib_var=no"
4684 LIBS="$ac_save_LIBS"
4687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4691 cat >> confdefs.h <<EOF
4692 #define $ac_tr_lib 1
4698 echo "$ac_t""no" 1>&6
4702 if test $ac_cv_header_winsock_h = yes; then
4703 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4704 echo "configure:4705: checking for winsock" >&5
4705 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 #include <winsock.h>
4715 select(0,NULL,NULL,NULL,NULL);
4717 gethostname(NULL,0);
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4733 echo "$ac_t""$ol_cv_winsock" 1>&6
4735 if test $ol_cv_winsock = yes ; then
4736 cat >> confdefs.h <<\EOF
4737 #define HAVE_WINSOCK 1
4740 ac_cv_func_socket=yes
4741 ac_cv_func_select=yes
4742 ac_cv_func_closesocket=yes
4743 ac_cv_func_gethostname=yes
4748 echo $ac_n "checking for socket""... $ac_c" 1>&6
4749 echo "configure:4750: checking for socket" >&5
4750 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 /* System header to define __stub macros and hopefully few prototypes,
4757 which can conflict with char socket(); below. */
4759 /* Override any gcc2 internal prototype to avoid an error. */
4760 /* We use char because int might match the return type of a gcc2
4761 builtin and then its argument prototype would still apply. */
4767 /* The GNU C library defines this for functions which it implements
4768 to always fail with ENOSYS. Some functions are actually named
4769 something starting with __ and the normal name is an alias. */
4770 #if defined (__stub_socket) || defined (__stub___socket)
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 eval "ac_cv_func_socket=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_func_socket=no"
4790 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4794 echo "$ac_t""no" 1>&6
4796 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4797 echo "configure:4798: checking for main in -lsocket" >&5
4798 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4799 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 ac_save_LIBS="$LIBS"
4803 LIBS="-lsocket $LIBS"
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 eval "ac_cv_lib_$ac_lib_var=yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_lib_$ac_lib_var=no"
4822 LIBS="$ac_save_LIBS"
4825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4827 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4828 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4829 cat >> confdefs.h <<EOF
4830 #define $ac_tr_lib 1
4833 LIBS="-lsocket $LIBS"
4836 echo "$ac_t""no" 1>&6
4839 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4840 echo "configure:4841: checking for main in -lnet" >&5
4841 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4842 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4845 ac_save_LIBS="$LIBS"
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
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_lib_$ac_lib_var=yes"
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 eval "ac_cv_lib_$ac_lib_var=no"
4865 LIBS="$ac_save_LIBS"
4868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4869 echo "$ac_t""yes" 1>&6
4870 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4871 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_lib 1
4879 echo "$ac_t""no" 1>&6
4882 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4883 echo "configure:4884: checking for main in -lnsl_s" >&5
4884 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4885 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 ac_save_LIBS="$LIBS"
4889 LIBS="-lnsl_s $LIBS"
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 eval "ac_cv_lib_$ac_lib_var=yes"
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 eval "ac_cv_lib_$ac_lib_var=no"
4908 LIBS="$ac_save_LIBS"
4911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4915 cat >> confdefs.h <<EOF
4916 #define $ac_tr_lib 1
4919 LIBS="-lnsl_s $LIBS"
4922 echo "$ac_t""no" 1>&6
4925 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4926 echo "configure:4927: checking for main in -lnsl" >&5
4927 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4928 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 ac_save_LIBS="$LIBS"
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 eval "ac_cv_lib_$ac_lib_var=yes"
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 eval "ac_cv_lib_$ac_lib_var=no"
4951 LIBS="$ac_save_LIBS"
4954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4956 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4957 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4958 cat >> confdefs.h <<EOF
4959 #define $ac_tr_lib 1
4965 echo "$ac_t""no" 1>&6
4968 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4969 echo "configure:4970: checking for socket in -linet" >&5
4970 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4971 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 ac_save_LIBS="$LIBS"
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4990 eval "ac_cv_lib_$ac_lib_var=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 eval "ac_cv_lib_$ac_lib_var=no"
4998 LIBS="$ac_save_LIBS"
5001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5004 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5005 cat >> confdefs.h <<EOF
5006 #define $ac_tr_lib 1
5012 echo "$ac_t""no" 1>&6
5015 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5016 echo "configure:5017: checking for main in -lgen" >&5
5017 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5018 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 ac_save_LIBS="$LIBS"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_lib_$ac_lib_var=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_lib_$ac_lib_var=no"
5041 LIBS="$ac_save_LIBS"
5044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5048 cat >> confdefs.h <<EOF
5049 #define $ac_tr_lib 1
5055 echo "$ac_t""no" 1>&6
5062 echo $ac_n "checking for select""... $ac_c" 1>&6
5063 echo "configure:5064: checking for select" >&5
5064 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char select(); below. */
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5081 /* The GNU C library defines this for functions which it implements
5082 to always fail with ENOSYS. Some functions are actually named
5083 something starting with __ and the normal name is an alias. */
5084 #if defined (__stub_select) || defined (__stub___select)
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5094 eval "ac_cv_func_select=yes"
5096 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5
5099 eval "ac_cv_func_select=no"
5104 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5105 echo "$ac_t""yes" 1>&6
5108 echo "$ac_t""no" 1>&6
5109 { echo "configure: error: select() required." 1>&2; exit 1; }
5113 if test "${ac_cv_header_winsock_h}" != yes; then
5114 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5115 echo "configure:5116: checking types of arguments for select()" >&5
5116 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5126 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5127 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 #ifdef HAVE_SYS_TYPES_H
5132 #include <sys/types.h>
5134 #ifdef HAVE_SYS_TIME_H
5135 #include <sys/time.h>
5137 #ifdef HAVE_SYS_SELECT_H
5138 #include <sys/select.h>
5140 #ifdef HAVE_SYS_SOCKET_H
5141 #include <sys/socket.h>
5143 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);
5148 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5150 ac_not_found=no ; break 3
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5167 if test "$ac_not_found" = yes; then
5168 ac_cv_func_select_arg1=int
5169 ac_cv_func_select_arg234='int *'
5170 ac_cv_func_select_arg5='struct timeval *'
5172 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5173 cat >> confdefs.h <<EOF
5174 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5177 cat >> confdefs.h <<EOF
5178 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5181 cat >> confdefs.h <<EOF
5182 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5189 for ac_hdr in regex.h
5191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_hdr" >&5
5194 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5203 { (eval echo configure:5204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5205 if test -z "$ac_err"; then
5207 eval "ac_cv_header_$ac_safe=yes"
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 eval "ac_cv_header_$ac_safe=no"
5217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5220 cat >> confdefs.h <<EOF
5221 #define $ac_tr_hdr 1
5225 echo "$ac_t""no" 1>&6
5229 if test "$ac_cv_header_regex_h" != yes ; then
5230 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5232 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5233 echo "configure:5234: checking for regfree" >&5
5234 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* System header to define __stub macros and hopefully few prototypes,
5241 which can conflict with char regfree(); below. */
5243 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5251 /* The GNU C library defines this for functions which it implements
5252 to always fail with ENOSYS. Some functions are actually named
5253 something starting with __ and the normal name is an alias. */
5254 #if defined (__stub_regfree) || defined (__stub___regfree)
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 eval "ac_cv_func_regfree=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_func_regfree=no"
5274 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5278 echo "$ac_t""no" 1>&6
5279 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5284 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5285 echo "configure:5286: checking for compatible POSIX regex" >&5
5286 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5290 if test "$cross_compiling" = yes; then
5291 ol_cv_c_posix_regex=cross
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5297 #include <sys/types.h>
5299 static char *pattern, *string;
5307 if(regcomp(&re, pattern, 0)) {
5311 string = "ALL MATCH";
5313 rc = regexec(&re, string, 0, (void*)0, 0);
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5322 ol_cv_c_posix_regex=yes
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 ol_cv_c_posix_regex=no
5334 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5336 if test "$ol_cv_c_posix_regex" = no ; then
5337 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5340 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5341 echo "configure:5342: checking for res_search" >&5
5342 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* System header to define __stub macros and hopefully few prototypes,
5349 which can conflict with char res_search(); below. */
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5359 /* The GNU C library defines this for functions which it implements
5360 to always fail with ENOSYS. Some functions are actually named
5361 something starting with __ and the normal name is an alias. */
5362 #if defined (__stub_res_search) || defined (__stub___res_search)
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5372 eval "ac_cv_func_res_search=yes"
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 eval "ac_cv_func_res_search=no"
5382 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5386 echo "$ac_t""no" 1>&6
5389 if test $ac_cv_func_res_search = no ; then
5390 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5391 echo "configure:5392: checking for res_search in -lbind" >&5
5392 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 ac_save_LIBS="$LIBS"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_lib_$ac_lib_var=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_lib_$ac_lib_var=no"
5420 LIBS="$ac_save_LIBS"
5423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5427 cat >> confdefs.h <<EOF
5428 #define $ac_tr_lib 1
5434 echo "$ac_t""no" 1>&6
5437 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5440 if test $ac_cv_func_res_search = no ; then
5441 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5442 echo "configure:5443: checking for __res_search in -lbind" >&5
5443 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5444 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 ac_save_LIBS="$LIBS"
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5455 char __res_search();
5461 if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5463 eval "ac_cv_lib_$ac_lib_var=yes"
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5468 eval "ac_cv_lib_$ac_lib_var=no"
5471 LIBS="$ac_save_LIBS"
5474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5478 cat >> confdefs.h <<EOF
5479 #define $ac_tr_lib 1
5485 echo "$ac_t""no" 1>&6
5488 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5491 if test $ac_cv_func_res_search = no ; then
5492 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5493 echo "configure:5494: checking for res_search in -lresolv" >&5
5494 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5495 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 ac_save_LIBS="$LIBS"
5499 LIBS="-lresolv $LIBS"
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5514 eval "ac_cv_lib_$ac_lib_var=yes"
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 eval "ac_cv_lib_$ac_lib_var=no"
5522 LIBS="$ac_save_LIBS"
5525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5527 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5528 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5529 cat >> confdefs.h <<EOF
5530 #define $ac_tr_lib 1
5533 LIBS="-lresolv $LIBS"
5536 echo "$ac_t""no" 1>&6
5539 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5542 if test "$ac_cv_func_res_search" = yes ; then
5543 cat >> confdefs.h <<\EOF
5544 #define HAVE_RES_SEARCH 1
5547 elif test $ol_enable_dns = yes ; then
5548 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5549 elif test $ol_enable_dns != no ; then
5550 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5555 if test $ol_enable_ldapd != no ; then
5556 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5558 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5559 echo "configure:5560: checking for main in -lxtpp" >&5
5560 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 ac_save_LIBS="$LIBS"
5565 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5576 eval "ac_cv_lib_$ac_lib_var=yes"
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 eval "ac_cv_lib_$ac_lib_var=no"
5584 LIBS="$ac_save_LIBS"
5587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5588 echo "$ac_t""yes" 1>&6
5591 cat >> confdefs.h <<\EOF
5595 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5598 echo "$ac_t""no" 1>&6
5602 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5603 echo "configure:5604: checking for main in -ldsap" >&5
5604 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 ac_save_LIBS="$LIBS"
5609 LIBS="-ldsap -lisode $LIBS"
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 eval "ac_cv_lib_$ac_lib_var=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 eval "ac_cv_lib_$ac_lib_var=no"
5628 LIBS="$ac_save_LIBS"
5631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5635 cat >> confdefs.h <<\EOF
5639 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5642 echo "$ac_t""no" 1>&6
5646 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5647 echo "configure:5648: checking for main in -lisode" >&5
5648 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5649 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 ac_save_LIBS="$LIBS"
5653 LIBS="-lisode $LIBS"
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 eval "ac_cv_lib_$ac_lib_var=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_lib_$ac_lib_var=no"
5672 LIBS="$ac_save_LIBS"
5675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5676 echo "$ac_t""yes" 1>&6
5679 cat >> confdefs.h <<\EOF
5680 #define HAVE_ISODE 1
5683 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5686 echo "$ac_t""no" 1>&6
5692 if test $ol_link_isode != no; then
5693 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5694 echo "configure:5695: checking for main in -lpp" >&5
5695 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 ac_save_LIBS="$LIBS"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711 eval "ac_cv_lib_$ac_lib_var=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 eval "ac_cv_lib_$ac_lib_var=no"
5719 LIBS="$ac_save_LIBS"
5722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5725 cat >> confdefs.h <<\EOF
5729 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5732 echo "$ac_t""no" 1>&6
5737 # Extract the first word of "pepsy", so it can be a program name with args.
5738 set dummy pepsy; ac_word=$2
5739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5740 echo "configure:5741: checking for $ac_word" >&5
5741 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5746 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5749 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5754 for ac_dir in $ac_dummy; do
5755 test -z "$ac_dir" && ac_dir=.
5756 if test -f $ac_dir/$ac_word; then
5757 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5765 PEPSY="$ac_cv_path_PEPSY"
5766 if test -n "$PEPSY"; then
5767 echo "$ac_t""$PEPSY" 1>&6
5769 echo "$ac_t""no" 1>&6
5774 if test $ol_enable_quipu != no ; then
5775 for ac_hdr in quipu/commonarg.h
5777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5779 echo "configure:5780: checking for $ac_hdr" >&5
5780 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5789 { (eval echo configure:5790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5791 if test -z "$ac_err"; then
5793 eval "ac_cv_header_$ac_safe=yes"
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 eval "ac_cv_header_$ac_safe=no"
5803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_hdr 1
5811 echo "$ac_t""no" 1>&6
5816 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5818 elif test $ol_enable_quipu = auto ; then
5819 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5821 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5827 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5828 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5832 echo "configure:5833: checking for $ac_hdr" >&5
5833 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5842 { (eval echo configure:5843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5844 if test -z "$ac_err"; then
5846 eval "ac_cv_header_$ac_safe=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_header_$ac_safe=no"
5856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5857 echo "$ac_t""yes" 1>&6
5858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5859 cat >> confdefs.h <<EOF
5860 #define $ac_tr_hdr 1
5864 echo "$ac_t""no" 1>&6
5869 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5870 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5871 echo "configure:5872: checking for main in -lkrb4" >&5
5872 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 ac_save_LIBS="$LIBS"
5877 LIBS="-lkrb4 -lkrb5 -ldes425 -lcrypto -lcom_err $LIBS"
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888 eval "ac_cv_lib_$ac_lib_var=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 eval "ac_cv_lib_$ac_lib_var=no"
5896 LIBS="$ac_save_LIBS"
5899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5900 echo "$ac_t""yes" 1>&6
5903 echo "$ac_t""no" 1>&6
5908 if test $have_k5 = yes ; then
5909 ol_with_kerberos=found
5910 ol_link_kerberos=yes
5912 KRB_LIBS="-lkrb4 -lkrb5 -ldes425 -lcrypto -lcom_err"
5914 LIBS="$KRB_LIBS $LIBS"
5916 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5917 echo "configure:5918: checking for des_debug in Kerberos libraries" >&5
5918 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5923 LIBS="$KRB_LIBS $LIBS"
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5928 #include <kerberosIV/krb.h>
5929 #include <kerberosIV/des.h>
5930 extern int des_debug;
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 ol_cv_var_des_debug=yes
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 ol_cv_var_des_debug=no
5952 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5954 if test $ol_cv_var_des_debug = yes ; then
5955 cat >> confdefs.h <<\EOF
5956 #define HAVE_DES_DEBUG 1
5966 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
5967 -o $ol_with_kerberos = kth ; then
5969 for ac_hdr in krb.h des.h krb-archaeology.h
5971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_hdr" >&5
5974 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5987 eval "ac_cv_header_$ac_safe=yes"
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 eval "ac_cv_header_$ac_safe=no"
5997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
5999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6000 cat >> confdefs.h <<EOF
6001 #define $ac_tr_hdr 1
6005 echo "$ac_t""no" 1>&6
6010 if test $ac_cv_header_krb_h = yes ; then
6011 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6012 echo "configure:6013: checking for main in -lkrb" >&5
6013 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 ac_save_LIBS="$LIBS"
6018 LIBS="-lkrb -ldes $LIBS"
6019 cat > conftest.$ac_ext <<EOF
6020 #line 6021 "configure"
6021 #include "confdefs.h"
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 eval "ac_cv_lib_$ac_lib_var=yes"
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 eval "ac_cv_lib_$ac_lib_var=no"
6037 LIBS="$ac_save_LIBS"
6040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6044 echo "$ac_t""no" 1>&6
6049 if test $have_k4 = yes ; then
6050 ol_with_kerberos=found
6051 ol_link_kerberos=yes
6053 KRB_LIBS="-lkrb -ldes"
6055 if test $ac_cv_header_krb_archaeology_h = yes ; then
6056 cat >> confdefs.h <<\EOF
6057 #define HAVE_KTH_KERBEROS 1
6065 if test $ol_link_kerberos = yes ; then
6066 cat >> confdefs.h <<\EOF
6067 #define HAVE_KERBEROS 1
6071 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6072 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6076 if test $ol_with_tls != no ; then
6078 for ac_hdr in openssl/ssl.h ssl.h
6080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6082 echo "configure:6083: checking for $ac_hdr" >&5
6083 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6092 { (eval echo configure:6093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6094 if test -z "$ac_err"; then
6096 eval "ac_cv_header_$ac_safe=yes"
6099 echo "configure: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6102 eval "ac_cv_header_$ac_safe=no"
6106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6107 echo "$ac_t""yes" 1>&6
6108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6109 cat >> confdefs.h <<EOF
6110 #define $ac_tr_hdr 1
6114 echo "$ac_t""no" 1>&6
6119 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6120 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6121 echo "configure:6122: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6122 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6123 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6126 ac_save_LIBS="$LIBS"
6127 LIBS="-lssl -lcrypto $LIBS"
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */
6134 char SSLeay_add_ssl_algorithms();
6137 SSLeay_add_ssl_algorithms()
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 eval "ac_cv_lib_$ac_lib_var=yes"
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 eval "ac_cv_lib_$ac_lib_var=no"
6150 LIBS="$ac_save_LIBS"
6153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6158 echo "$ac_t""no" 1>&6
6163 if test $have_ssleay = no ; then
6164 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6165 echo "configure:6166: checking for SSL_library_init in -lssl" >&5
6166 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 ac_save_LIBS="$LIBS"
6171 LIBS="-lssl -lcrypto $LIBS"
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6178 char SSL_library_init();
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 eval "ac_cv_lib_$ac_lib_var=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_lib_$ac_lib_var=no"
6194 LIBS="$ac_save_LIBS"
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6202 echo "$ac_t""no" 1>&6
6208 if test $have_ssleay = no ; then
6209 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6210 echo "configure:6211: checking for ssl3_accept in -lssl" >&5
6211 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6215 ac_save_LIBS="$LIBS"
6216 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 eval "ac_cv_lib_$ac_lib_var=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_lib_$ac_lib_var=no"
6239 LIBS="$ac_save_LIBS"
6242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6243 echo "$ac_t""yes" 1>&6
6247 echo "$ac_t""no" 1>&6
6253 if test $have_ssleay = yes ; then
6257 cat >> confdefs.h <<\EOF
6258 #define HAVE_SSLEAY 1
6262 if test $need_rsaref = yes; then
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_RSAREF 1
6268 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6270 TLS_LIBS="-lssl -lcrypto"
6276 if test $ol_link_tls = yes ; then
6277 cat >> confdefs.h <<\EOF
6285 gethostbyname_r gethostbyaddr_r \
6288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6289 echo "configure:6290: checking for $ac_func" >&5
6290 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 /* System header to define __stub macros and hopefully few prototypes,
6297 which can conflict with char $ac_func(); below. */
6299 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6307 /* The GNU C library defines this for functions which it implements
6308 to always fail with ENOSYS. Some functions are actually named
6309 something starting with __ and the normal name is an alias. */
6310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320 eval "ac_cv_func_$ac_func=yes"
6322 echo "configure: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6325 eval "ac_cv_func_$ac_func=no"
6330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6331 echo "$ac_t""yes" 1>&6
6332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6333 cat >> confdefs.h <<EOF
6334 #define $ac_tr_func 1
6338 echo "$ac_t""no" 1>&6
6343 if test "$ac_cv_func_ctime_r" = no ; then
6344 ol_cv_func_ctime_r_nargs=0
6346 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6347 echo "configure:6348: checking number of arguments of ctime_r" >&5
6348 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6356 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6359 if { (eval echo configure:6360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6361 ol_cv_func_ctime_r_nargs3=yes
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6366 ol_cv_func_ctime_r_nargs3=no
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6375 time_t ti; char *buffer; ctime_r(&ti,buffer);
6378 if { (eval echo configure:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380 ol_cv_func_ctime_r_nargs2=yes
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 ol_cv_func_ctime_r_nargs2=no
6389 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6390 $ol_cv_func_ctime_r_nargs2 = no ; then
6392 ol_cv_func_ctime_r_nargs=3
6394 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6395 $ol_cv_func_ctime_r_nargs2 = yes ; then
6397 ol_cv_func_ctime_r_nargs=2
6400 ol_cv_func_ctime_r_nargs=0
6405 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6407 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6408 cat >> confdefs.h <<EOF
6409 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6416 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6417 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6418 echo "configure:6419: checking number of arguments of gethostbyname_r" >&5
6419 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6422 cat > conftest.$ac_ext <<EOF
6423 #line 6424 "configure"
6424 #include "confdefs.h"
6425 #include <sys/types.h>
6426 #include <sys/socket.h>
6427 #include <netinet/in.h>
6429 #define BUFSIZE (sizeof(struct hostent)+10)
6431 struct hostent hent; char buffer[BUFSIZE];
6432 int bufsize=BUFSIZE;int h_errno;
6433 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6434 buffer, bufsize, &h_errno);
6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6439 ol_cv_func_gethostbyname_r_nargs5=yes
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6444 ol_cv_func_gethostbyname_r_nargs5=no
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6451 #include <sys/types.h>
6452 #include <sys/socket.h>
6453 #include <netinet/in.h>
6455 #define BUFSIZE (sizeof(struct hostent)+10)
6457 struct hostent hent;struct hostent *rhent;
6458 char buffer[BUFSIZE];
6459 int bufsize=BUFSIZE;int h_errno;
6460 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6464 if { (eval echo configure:6465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6466 ol_cv_func_gethostbyname_r_nargs6=yes
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 ol_cv_func_gethostbyname_r_nargs6=no
6475 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6476 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6478 ol_cv_func_gethostbyname_r_nargs=5
6480 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6481 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6483 ol_cv_func_gethostbyname_r_nargs=6
6486 ol_cv_func_gethostbyname_r_nargs=0
6491 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6492 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6493 cat >> confdefs.h <<EOF
6494 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6500 ol_cv_func_gethostbyname_r_nargs=0
6503 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6504 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6505 echo "configure:6506: checking number of arguments of gethostbyaddr_r" >&5
6506 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 #include <sys/types.h>
6513 #include <sys/socket.h>
6514 #include <netinet/in.h>
6516 #define BUFSIZE (sizeof(struct hostent)+10)
6518 struct hostent hent; char buffer[BUFSIZE];
6520 size_t alen=sizeof(struct in_addr);
6521 int bufsize=BUFSIZE;int h_errno;
6522 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6523 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6526 if { (eval echo configure:6527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6528 ol_cv_func_gethostbyaddr_r_nargs7=yes
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6533 ol_cv_func_gethostbyaddr_r_nargs7=no
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 #include <sys/types.h>
6541 #include <sys/socket.h>
6542 #include <netinet/in.h>
6544 #define BUFSIZE (sizeof(struct hostent)+10)
6546 struct hostent hent;
6547 struct hostent *rhent; char buffer[BUFSIZE];
6549 size_t alen=sizeof(struct in_addr);
6550 int bufsize=BUFSIZE;int h_errno;
6551 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6552 alen, AF_INET, &hent, buffer, bufsize,
6556 if { (eval echo configure:6557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6558 ol_cv_func_gethostbyaddr_r_nargs8=yes
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 ol_cv_func_gethostbyaddr_r_nargs8=no
6567 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6568 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6570 ol_cv_func_gethostbyaddr_r_nargs=7
6572 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6573 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6575 ol_cv_func_gethostbyaddr_r_nargs=8
6578 ol_cv_func_gethostbyaddr_r_nargs=0
6583 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6584 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6585 cat >> confdefs.h <<EOF
6586 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6592 ol_cv_func_gethostbyaddr_r_nargs=0
6595 if test "$ac_cv_func_ctime_r" = yes \
6596 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6597 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6598 -a "$ac_cv_func_gethostbyname_r" = yes \
6599 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6600 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6601 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6602 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6603 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6606 cat >> confdefs.h <<\EOF
6607 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6614 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6615 -o $ol_with_threads = nt ; then
6618 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6619 echo "configure:6620: checking for NT Threads" >&5
6620 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6624 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6625 echo "configure:6626: checking for _beginthread" >&5
6626 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char _beginthread(); below. */
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6638 char _beginthread();
6643 /* The GNU C library defines this for functions which it implements
6644 to always fail with ENOSYS. Some functions are actually named
6645 something starting with __ and the normal name is an alias. */
6646 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6654 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656 eval "ac_cv_func__beginthread=yes"
6658 echo "configure: failed program was:" >&5
6659 cat conftest.$ac_ext >&5
6661 eval "ac_cv_func__beginthread=no"
6666 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6667 echo "$ac_t""yes" 1>&6
6668 ol_cv_nt_threads=yes
6670 echo "$ac_t""no" 1>&6
6677 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6679 if test $ol_cv_nt_threads = yes ; then
6680 cat >> confdefs.h <<\EOF
6681 #define HAVE_NT_THREADS 1
6687 if test "$ol_cv_nt_threads" = yes ; then
6689 ol_with_threads=found
6690 ol_with_yielding_select=yes
6692 cat >> confdefs.h <<\EOF
6693 #define HAVE_NT_SERVICE_MANAGER 1
6696 cat >> confdefs.h <<\EOF
6697 #define HAVE_NT_EVENT_LOG 1
6702 if test $ol_with_threads = nt ; then
6703 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6707 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6708 -o $ol_with_threads = posix ; then
6710 for ac_hdr in pthread.h
6712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6714 echo "configure:6715: checking for $ac_hdr" >&5
6715 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6716 echo $ac_n "(cached) $ac_c" 1>&6
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6724 { (eval echo configure:6725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6726 if test -z "$ac_err"; then
6728 eval "ac_cv_header_$ac_safe=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 eval "ac_cv_header_$ac_safe=no"
6738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6739 echo "$ac_t""yes" 1>&6
6740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6741 cat >> confdefs.h <<EOF
6742 #define $ac_tr_hdr 1
6746 echo "$ac_t""no" 1>&6
6751 if test $ac_cv_header_pthread_h = yes ; then
6752 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6753 echo "configure:6754: checking POSIX thread version" >&5
6754 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6758 cat > conftest.$ac_ext <<EOF
6759 #line 6760 "configure"
6760 #include "confdefs.h"
6762 # include <pthread.h>
6763 /* this check could be improved */
6764 # ifdef PTHREAD_ONCE_INIT
6765 pthread_version_final;
6769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6770 egrep "pthread_version_final" >/dev/null 2>&1; then
6772 ol_pthread_final=yes
6780 cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure"
6782 #include "confdefs.h"
6784 # include <pthread.h>
6785 /* this check could be improved */
6786 # ifdef pthread_once_init
6787 pthread_version_draft4;
6791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6792 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6794 ol_pthread_draft4=yes
6797 ol_pthread_draft4=no
6802 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6803 ol_cv_pthread_version=final
6804 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6805 ol_cv_pthread_version=draft4
6807 ol_cv_pthread_version=unknown
6812 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6815 if test $ol_cv_pthread_version = final ; then
6816 cat >> confdefs.h <<\EOF
6817 #define HAVE_PTHREADS_FINAL 1
6820 elif test $ol_cv_pthread_version = draft4 ; then
6821 cat >> confdefs.h <<\EOF
6822 #define HAVE_PTHREADS_D4 1
6826 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6829 # consider threads found
6830 ol_with_threads=found
6833 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6834 echo "configure:6835: checking for LinuxThreads pthread.h" >&5
6835 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6836 echo $ac_n "(cached) $ac_c" 1>&6
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 #include <pthread.h>
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6846 ol_cv_header_linux_threads=yes
6849 ol_cv_header_linux_threads=no
6856 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6857 if test $ol_cv_header_linux_threads = yes; then
6858 cat >> confdefs.h <<\EOF
6859 #define HAVE_LINUX_THREADS 1
6865 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6866 echo "configure:6867: checking for GNU Pth pthread.h" >&5
6867 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 #include <pthread.h>
6874 #ifdef _POSIX_THREAD_IS_GNU_PTH
6879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880 egrep "__gnu_pth__" >/dev/null 2>&1; then
6882 ol_cv_header_gnu_pth_pthread_h=yes
6885 ol_cv_header_gnu_pth_pthread_h=no
6892 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6895 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6896 for ac_hdr in sched.h
6898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_hdr" >&5
6901 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6910 { (eval echo configure:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6912 if test -z "$ac_err"; then
6914 eval "ac_cv_header_$ac_safe=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 eval "ac_cv_header_$ac_safe=no"
6924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6925 echo "$ac_t""yes" 1>&6
6926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6927 cat >> confdefs.h <<EOF
6928 #define $ac_tr_hdr 1
6932 echo "$ac_t""no" 1>&6
6939 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6940 echo "configure:6941: checking for pthread_create in default libraries" >&5
6941 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6945 if test "$cross_compiling" = yes; then
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6949 /* pthread test headers */
6950 #include <pthread.h>
6952 #define NULL (void*)0
6955 static void *task(p)
6958 return (void *) (p == NULL);
6963 /* pthread test function */
6967 /* make sure pthread_create() isn't just a stub */
6968 #if HAVE_PTHREADS_D4
6969 status = pthread_create(&t, pthread_attr_default, task, NULL);
6971 status = pthread_create(&t, NULL, task, NULL);
6974 if( status ) exit( status );
6976 /* make sure pthread_detach() isn't just a stub */
6977 #if HAVE_PTHREADS_D4
6978 status = pthread_detach( &t );
6980 status = pthread_detach( t );
6983 #ifdef HAVE_LINUX_THREADS
6984 pthread_kill_other_threads_np();
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6993 ol_cv_pthread_create=yes
6995 echo "configure: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6998 ol_cv_pthread_create=no
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7005 /* pthread test headers */
7006 #include <pthread.h>
7008 #define NULL (void*)0
7011 static void *task(p)
7014 return (void *) (p == NULL);
7018 int main(argc, argv)
7023 /* pthread test function */
7027 /* make sure pthread_create() isn't just a stub */
7028 #if HAVE_PTHREADS_D4
7029 status = pthread_create(&t, pthread_attr_default, task, NULL);
7031 status = pthread_create(&t, NULL, task, NULL);
7034 if( status ) exit( status );
7036 /* make sure pthread_detach() isn't just a stub */
7037 #if HAVE_PTHREADS_D4
7038 status = pthread_detach( &t );
7040 status = pthread_detach( t );
7043 #ifdef HAVE_LINUX_THREADS
7044 pthread_kill_other_threads_np();
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7054 ol_cv_pthread_create=yes
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7059 ol_cv_pthread_create=no
7066 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7068 if test $ol_cv_pthread_create != no ; then
7069 ol_link_threads=posix
7073 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7074 if test "$ol_link_threads" = no ; then
7076 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7077 echo "configure:7078: checking for pthread link with -kthread" >&5
7078 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7084 LIBS="-kthread $LIBS"
7086 if test "$cross_compiling" = yes; then
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 /* pthread test headers */
7091 #include <pthread.h>
7093 #define NULL (void*)0
7096 static void *task(p)
7099 return (void *) (p == NULL);
7104 /* pthread test function */
7108 /* make sure pthread_create() isn't just a stub */
7109 #if HAVE_PTHREADS_D4
7110 status = pthread_create(&t, pthread_attr_default, task, NULL);
7112 status = pthread_create(&t, NULL, task, NULL);
7115 if( status ) exit( status );
7117 /* make sure pthread_detach() isn't just a stub */
7118 #if HAVE_PTHREADS_D4
7119 status = pthread_detach( &t );
7121 status = pthread_detach( t );
7124 #ifdef HAVE_LINUX_THREADS
7125 pthread_kill_other_threads_np();
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 ol_cv_pthread_kthread=yes
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 ol_cv_pthread_kthread=no
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 /* pthread test headers */
7147 #include <pthread.h>
7149 #define NULL (void*)0
7152 static void *task(p)
7155 return (void *) (p == NULL);
7159 int main(argc, argv)
7164 /* pthread test function */
7168 /* make sure pthread_create() isn't just a stub */
7169 #if HAVE_PTHREADS_D4
7170 status = pthread_create(&t, pthread_attr_default, task, NULL);
7172 status = pthread_create(&t, NULL, task, NULL);
7175 if( status ) exit( status );
7177 /* make sure pthread_detach() isn't just a stub */
7178 #if HAVE_PTHREADS_D4
7179 status = pthread_detach( &t );
7181 status = pthread_detach( t );
7184 #ifdef HAVE_LINUX_THREADS
7185 pthread_kill_other_threads_np();
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7195 ol_cv_pthread_kthread=yes
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7200 ol_cv_pthread_kthread=no
7211 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7213 if test $ol_cv_pthread_kthread = yes ; then
7214 ol_link_pthreads="-kthread"
7215 ol_link_threads=posix
7219 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7220 if test "$ol_link_threads" = no ; then
7222 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7223 echo "configure:7224: checking for pthread link with -pthread" >&5
7224 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7225 echo $ac_n "(cached) $ac_c" 1>&6
7230 LIBS="-pthread $LIBS"
7232 if test "$cross_compiling" = yes; then
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* pthread test headers */
7237 #include <pthread.h>
7239 #define NULL (void*)0
7242 static void *task(p)
7245 return (void *) (p == NULL);
7250 /* pthread test function */
7254 /* make sure pthread_create() isn't just a stub */
7255 #if HAVE_PTHREADS_D4
7256 status = pthread_create(&t, pthread_attr_default, task, NULL);
7258 status = pthread_create(&t, NULL, task, NULL);
7261 if( status ) exit( status );
7263 /* make sure pthread_detach() isn't just a stub */
7264 #if HAVE_PTHREADS_D4
7265 status = pthread_detach( &t );
7267 status = pthread_detach( t );
7270 #ifdef HAVE_LINUX_THREADS
7271 pthread_kill_other_threads_np();
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280 ol_cv_pthread_pthread=yes
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 ol_cv_pthread_pthread=no
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* pthread test headers */
7293 #include <pthread.h>
7295 #define NULL (void*)0
7298 static void *task(p)
7301 return (void *) (p == NULL);
7305 int main(argc, argv)
7310 /* pthread test function */
7314 /* make sure pthread_create() isn't just a stub */
7315 #if HAVE_PTHREADS_D4
7316 status = pthread_create(&t, pthread_attr_default, task, NULL);
7318 status = pthread_create(&t, NULL, task, NULL);
7321 if( status ) exit( status );
7323 /* make sure pthread_detach() isn't just a stub */
7324 #if HAVE_PTHREADS_D4
7325 status = pthread_detach( &t );
7327 status = pthread_detach( t );
7330 #ifdef HAVE_LINUX_THREADS
7331 pthread_kill_other_threads_np();
7339 if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7341 ol_cv_pthread_pthread=yes
7343 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7346 ol_cv_pthread_pthread=no
7357 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7359 if test $ol_cv_pthread_pthread = yes ; then
7360 ol_link_pthreads="-pthread"
7361 ol_link_threads=posix
7365 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7366 if test "$ol_link_threads" = no ; then
7368 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7369 echo "configure:7370: checking for pthread link with -pthreads" >&5
7370 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7376 LIBS="-pthreads $LIBS"
7378 if test "$cross_compiling" = yes; then
7379 cat > conftest.$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7382 /* pthread test headers */
7383 #include <pthread.h>
7385 #define NULL (void*)0
7388 static void *task(p)
7391 return (void *) (p == NULL);
7396 /* pthread test function */
7400 /* make sure pthread_create() isn't just a stub */
7401 #if HAVE_PTHREADS_D4
7402 status = pthread_create(&t, pthread_attr_default, task, NULL);
7404 status = pthread_create(&t, NULL, task, NULL);
7407 if( status ) exit( status );
7409 /* make sure pthread_detach() isn't just a stub */
7410 #if HAVE_PTHREADS_D4
7411 status = pthread_detach( &t );
7413 status = pthread_detach( t );
7416 #ifdef HAVE_LINUX_THREADS
7417 pthread_kill_other_threads_np();
7424 if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426 ol_cv_pthread_pthreads=yes
7428 echo "configure: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7431 ol_cv_pthread_pthreads=no
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* pthread test headers */
7439 #include <pthread.h>
7441 #define NULL (void*)0
7444 static void *task(p)
7447 return (void *) (p == NULL);
7451 int main(argc, argv)
7456 /* pthread test function */
7460 /* make sure pthread_create() isn't just a stub */
7461 #if HAVE_PTHREADS_D4
7462 status = pthread_create(&t, pthread_attr_default, task, NULL);
7464 status = pthread_create(&t, NULL, task, NULL);
7467 if( status ) exit( status );
7469 /* make sure pthread_detach() isn't just a stub */
7470 #if HAVE_PTHREADS_D4
7471 status = pthread_detach( &t );
7473 status = pthread_detach( t );
7476 #ifdef HAVE_LINUX_THREADS
7477 pthread_kill_other_threads_np();
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7487 ol_cv_pthread_pthreads=yes
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 ol_cv_pthread_pthreads=no
7503 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7505 if test $ol_cv_pthread_pthreads = yes ; then
7506 ol_link_pthreads="-pthreads"
7507 ol_link_threads=posix
7511 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7512 if test "$ol_link_threads" = no ; then
7514 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7515 echo "configure:7516: checking for pthread link with -mthreads" >&5
7516 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7522 LIBS="-mthreads $LIBS"
7524 if test "$cross_compiling" = yes; then
7525 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 /* pthread test headers */
7529 #include <pthread.h>
7531 #define NULL (void*)0
7534 static void *task(p)
7537 return (void *) (p == NULL);
7542 /* pthread test function */
7546 /* make sure pthread_create() isn't just a stub */
7547 #if HAVE_PTHREADS_D4
7548 status = pthread_create(&t, pthread_attr_default, task, NULL);
7550 status = pthread_create(&t, NULL, task, NULL);
7553 if( status ) exit( status );
7555 /* make sure pthread_detach() isn't just a stub */
7556 #if HAVE_PTHREADS_D4
7557 status = pthread_detach( &t );
7559 status = pthread_detach( t );
7562 #ifdef HAVE_LINUX_THREADS
7563 pthread_kill_other_threads_np();
7570 if { (eval echo configure:7571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7572 ol_cv_pthread_mthreads=yes
7574 echo "configure: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7577 ol_cv_pthread_mthreads=no
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7584 /* pthread test headers */
7585 #include <pthread.h>
7587 #define NULL (void*)0
7590 static void *task(p)
7593 return (void *) (p == NULL);
7597 int main(argc, argv)
7602 /* pthread test function */
7606 /* make sure pthread_create() isn't just a stub */
7607 #if HAVE_PTHREADS_D4
7608 status = pthread_create(&t, pthread_attr_default, task, NULL);
7610 status = pthread_create(&t, NULL, task, NULL);
7613 if( status ) exit( status );
7615 /* make sure pthread_detach() isn't just a stub */
7616 #if HAVE_PTHREADS_D4
7617 status = pthread_detach( &t );
7619 status = pthread_detach( t );
7622 #ifdef HAVE_LINUX_THREADS
7623 pthread_kill_other_threads_np();
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7633 ol_cv_pthread_mthreads=yes
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7638 ol_cv_pthread_mthreads=no
7649 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7651 if test $ol_cv_pthread_mthreads = yes ; then
7652 ol_link_pthreads="-mthreads"
7653 ol_link_threads=posix
7657 # Pthread try link: -thread (ol_cv_pthread_thread)
7658 if test "$ol_link_threads" = no ; then
7660 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7661 echo "configure:7662: checking for pthread link with -thread" >&5
7662 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7668 LIBS="-thread $LIBS"
7670 if test "$cross_compiling" = yes; then
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* pthread test headers */
7675 #include <pthread.h>
7677 #define NULL (void*)0
7680 static void *task(p)
7683 return (void *) (p == NULL);
7688 /* pthread test function */
7692 /* make sure pthread_create() isn't just a stub */
7693 #if HAVE_PTHREADS_D4
7694 status = pthread_create(&t, pthread_attr_default, task, NULL);
7696 status = pthread_create(&t, NULL, task, NULL);
7699 if( status ) exit( status );
7701 /* make sure pthread_detach() isn't just a stub */
7702 #if HAVE_PTHREADS_D4
7703 status = pthread_detach( &t );
7705 status = pthread_detach( t );
7708 #ifdef HAVE_LINUX_THREADS
7709 pthread_kill_other_threads_np();
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7718 ol_cv_pthread_thread=yes
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7723 ol_cv_pthread_thread=no
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* pthread test headers */
7731 #include <pthread.h>
7733 #define NULL (void*)0
7736 static void *task(p)
7739 return (void *) (p == NULL);
7743 int main(argc, argv)
7748 /* pthread test function */
7752 /* make sure pthread_create() isn't just a stub */
7753 #if HAVE_PTHREADS_D4
7754 status = pthread_create(&t, pthread_attr_default, task, NULL);
7756 status = pthread_create(&t, NULL, task, NULL);
7759 if( status ) exit( status );
7761 /* make sure pthread_detach() isn't just a stub */
7762 #if HAVE_PTHREADS_D4
7763 status = pthread_detach( &t );
7765 status = pthread_detach( t );
7768 #ifdef HAVE_LINUX_THREADS
7769 pthread_kill_other_threads_np();
7777 if { (eval echo configure:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7779 ol_cv_pthread_thread=yes
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 ol_cv_pthread_thread=no
7795 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7797 if test $ol_cv_pthread_thread = yes ; then
7798 ol_link_pthreads="-thread"
7799 ol_link_threads=posix
7804 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7805 if test "$ol_link_threads" = no ; then
7806 # try -lpthread -lmach -lexc -lc_r
7807 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7808 echo "configure:7809: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7809 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7810 echo $ac_n "(cached) $ac_c" 1>&6
7815 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7817 if test "$cross_compiling" = yes; then
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 /* pthread test headers */
7822 #include <pthread.h>
7824 #define NULL (void*)0
7827 static void *task(p)
7830 return (void *) (p == NULL);
7835 /* pthread test function */
7839 /* make sure pthread_create() isn't just a stub */
7840 #if HAVE_PTHREADS_D4
7841 status = pthread_create(&t, pthread_attr_default, task, NULL);
7843 status = pthread_create(&t, NULL, task, NULL);
7846 if( status ) exit( status );
7848 /* make sure pthread_detach() isn't just a stub */
7849 #if HAVE_PTHREADS_D4
7850 status = pthread_detach( &t );
7852 status = pthread_detach( t );
7855 #ifdef HAVE_LINUX_THREADS
7856 pthread_kill_other_threads_np();
7863 if { (eval echo configure:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7865 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7870 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* pthread test headers */
7878 #include <pthread.h>
7880 #define NULL (void*)0
7883 static void *task(p)
7886 return (void *) (p == NULL);
7890 int main(argc, argv)
7895 /* pthread test function */
7899 /* make sure pthread_create() isn't just a stub */
7900 #if HAVE_PTHREADS_D4
7901 status = pthread_create(&t, pthread_attr_default, task, NULL);
7903 status = pthread_create(&t, NULL, task, NULL);
7906 if( status ) exit( status );
7908 /* make sure pthread_detach() isn't just a stub */
7909 #if HAVE_PTHREADS_D4
7910 status = pthread_detach( &t );
7912 status = pthread_detach( t );
7915 #ifdef HAVE_LINUX_THREADS
7916 pthread_kill_other_threads_np();
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7926 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7942 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7944 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7945 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7946 ol_link_threads=posix
7950 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7951 if test "$ol_link_threads" = no ; then
7952 # try -lpthread -lmach -lexc
7953 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7954 echo "configure:7955: checking for pthread link with -lpthread -lmach -lexc" >&5
7955 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7961 LIBS="-lpthread -lmach -lexc $LIBS"
7963 if test "$cross_compiling" = yes; then
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7967 /* pthread test headers */
7968 #include <pthread.h>
7970 #define NULL (void*)0
7973 static void *task(p)
7976 return (void *) (p == NULL);
7981 /* pthread test function */
7985 /* make sure pthread_create() isn't just a stub */
7986 #if HAVE_PTHREADS_D4
7987 status = pthread_create(&t, pthread_attr_default, task, NULL);
7989 status = pthread_create(&t, NULL, task, NULL);
7992 if( status ) exit( status );
7994 /* make sure pthread_detach() isn't just a stub */
7995 #if HAVE_PTHREADS_D4
7996 status = pthread_detach( &t );
7998 status = pthread_detach( t );
8001 #ifdef HAVE_LINUX_THREADS
8002 pthread_kill_other_threads_np();
8009 if { (eval echo configure:8010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011 ol_cv_pthread_lpthread_lmach_lexc=yes
8013 echo "configure: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8016 ol_cv_pthread_lpthread_lmach_lexc=no
8020 cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 /* pthread test headers */
8024 #include <pthread.h>
8026 #define NULL (void*)0
8029 static void *task(p)
8032 return (void *) (p == NULL);
8036 int main(argc, argv)
8041 /* pthread test function */
8045 /* make sure pthread_create() isn't just a stub */
8046 #if HAVE_PTHREADS_D4
8047 status = pthread_create(&t, pthread_attr_default, task, NULL);
8049 status = pthread_create(&t, NULL, task, NULL);
8052 if( status ) exit( status );
8054 /* make sure pthread_detach() isn't just a stub */
8055 #if HAVE_PTHREADS_D4
8056 status = pthread_detach( &t );
8058 status = pthread_detach( t );
8061 #ifdef HAVE_LINUX_THREADS
8062 pthread_kill_other_threads_np();
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8072 ol_cv_pthread_lpthread_lmach_lexc=yes
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8077 ol_cv_pthread_lpthread_lmach_lexc=no
8088 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8090 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8091 ol_link_pthreads="-lpthread -lmach -lexc"
8092 ol_link_threads=posix
8097 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8098 if test "$ol_link_threads" = no ; then
8099 # try -lpthread -Wl,-woff,85
8100 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8101 echo "configure:8102: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8102 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8108 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8110 if test "$cross_compiling" = yes; then
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8114 /* pthread test headers */
8115 #include <pthread.h>
8117 #define NULL (void*)0
8120 static void *task(p)
8123 return (void *) (p == NULL);
8128 /* pthread test function */
8132 /* make sure pthread_create() isn't just a stub */
8133 #if HAVE_PTHREADS_D4
8134 status = pthread_create(&t, pthread_attr_default, task, NULL);
8136 status = pthread_create(&t, NULL, task, NULL);
8139 if( status ) exit( status );
8141 /* make sure pthread_detach() isn't just a stub */
8142 #if HAVE_PTHREADS_D4
8143 status = pthread_detach( &t );
8145 status = pthread_detach( t );
8148 #ifdef HAVE_LINUX_THREADS
8149 pthread_kill_other_threads_np();
8156 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8158 ol_cv_pthread_lib_lpthread_woff=yes
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8163 ol_cv_pthread_lib_lpthread_woff=no
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 /* pthread test headers */
8171 #include <pthread.h>
8173 #define NULL (void*)0
8176 static void *task(p)
8179 return (void *) (p == NULL);
8183 int main(argc, argv)
8188 /* pthread test function */
8192 /* make sure pthread_create() isn't just a stub */
8193 #if HAVE_PTHREADS_D4
8194 status = pthread_create(&t, pthread_attr_default, task, NULL);
8196 status = pthread_create(&t, NULL, task, NULL);
8199 if( status ) exit( status );
8201 /* make sure pthread_detach() isn't just a stub */
8202 #if HAVE_PTHREADS_D4
8203 status = pthread_detach( &t );
8205 status = pthread_detach( t );
8208 #ifdef HAVE_LINUX_THREADS
8209 pthread_kill_other_threads_np();
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8219 ol_cv_pthread_lib_lpthread_woff=yes
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8224 ol_cv_pthread_lib_lpthread_woff=no
8235 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8237 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8238 ol_link_pthreads="-lpthread -Wl,-woff,85"
8239 ol_link_threads=posix
8244 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8245 if test "$ol_link_threads" = no ; then
8247 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8248 echo "configure:8249: checking for pthread link with -lpthread" >&5
8249 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8255 LIBS="-lpthread $LIBS"
8257 if test "$cross_compiling" = yes; then
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261 /* pthread test headers */
8262 #include <pthread.h>
8264 #define NULL (void*)0
8267 static void *task(p)
8270 return (void *) (p == NULL);
8275 /* pthread test function */
8279 /* make sure pthread_create() isn't just a stub */
8280 #if HAVE_PTHREADS_D4
8281 status = pthread_create(&t, pthread_attr_default, task, NULL);
8283 status = pthread_create(&t, NULL, task, NULL);
8286 if( status ) exit( status );
8288 /* make sure pthread_detach() isn't just a stub */
8289 #if HAVE_PTHREADS_D4
8290 status = pthread_detach( &t );
8292 status = pthread_detach( t );
8295 #ifdef HAVE_LINUX_THREADS
8296 pthread_kill_other_threads_np();
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8305 ol_cv_pthread_lpthread=yes
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8310 ol_cv_pthread_lpthread=no
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* pthread test headers */
8318 #include <pthread.h>
8320 #define NULL (void*)0
8323 static void *task(p)
8326 return (void *) (p == NULL);
8330 int main(argc, argv)
8335 /* pthread test function */
8339 /* make sure pthread_create() isn't just a stub */
8340 #if HAVE_PTHREADS_D4
8341 status = pthread_create(&t, pthread_attr_default, task, NULL);
8343 status = pthread_create(&t, NULL, task, NULL);
8346 if( status ) exit( status );
8348 /* make sure pthread_detach() isn't just a stub */
8349 #if HAVE_PTHREADS_D4
8350 status = pthread_detach( &t );
8352 status = pthread_detach( t );
8355 #ifdef HAVE_LINUX_THREADS
8356 pthread_kill_other_threads_np();
8364 if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8366 ol_cv_pthread_lpthread=yes
8368 echo "configure: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8371 ol_cv_pthread_lpthread=no
8382 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8384 if test $ol_cv_pthread_lpthread = yes ; then
8385 ol_link_pthreads="-lpthread"
8386 ol_link_threads=posix
8390 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8391 if test "$ol_link_threads" = no ; then
8393 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8394 echo "configure:8395: checking for pthread link with -lc_r" >&5
8395 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8403 if test "$cross_compiling" = yes; then
8404 cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8407 /* pthread test headers */
8408 #include <pthread.h>
8410 #define NULL (void*)0
8413 static void *task(p)
8416 return (void *) (p == NULL);
8421 /* pthread test function */
8425 /* make sure pthread_create() isn't just a stub */
8426 #if HAVE_PTHREADS_D4
8427 status = pthread_create(&t, pthread_attr_default, task, NULL);
8429 status = pthread_create(&t, NULL, task, NULL);
8432 if( status ) exit( status );
8434 /* make sure pthread_detach() isn't just a stub */
8435 #if HAVE_PTHREADS_D4
8436 status = pthread_detach( &t );
8438 status = pthread_detach( t );
8441 #ifdef HAVE_LINUX_THREADS
8442 pthread_kill_other_threads_np();
8449 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 ol_cv_pthread_lc_r=yes
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 ol_cv_pthread_lc_r=no
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 /* pthread test headers */
8464 #include <pthread.h>
8466 #define NULL (void*)0
8469 static void *task(p)
8472 return (void *) (p == NULL);
8476 int main(argc, argv)
8481 /* pthread test function */
8485 /* make sure pthread_create() isn't just a stub */
8486 #if HAVE_PTHREADS_D4
8487 status = pthread_create(&t, pthread_attr_default, task, NULL);
8489 status = pthread_create(&t, NULL, task, NULL);
8492 if( status ) exit( status );
8494 /* make sure pthread_detach() isn't just a stub */
8495 #if HAVE_PTHREADS_D4
8496 status = pthread_detach( &t );
8498 status = pthread_detach( t );
8501 #ifdef HAVE_LINUX_THREADS
8502 pthread_kill_other_threads_np();
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8512 ol_cv_pthread_lc_r=yes
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 ol_cv_pthread_lc_r=no
8528 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8530 if test $ol_cv_pthread_lc_r = yes ; then
8531 ol_link_pthreads="-lc_r"
8532 ol_link_threads=posix
8537 # Pthread try link: -threads (ol_cv_pthread_threads)
8538 if test "$ol_link_threads" = no ; then
8540 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8541 echo "configure:8542: checking for pthread link with -threads" >&5
8542 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8543 echo $ac_n "(cached) $ac_c" 1>&6
8548 LIBS="-threads $LIBS"
8550 if test "$cross_compiling" = yes; then
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 /* pthread test headers */
8555 #include <pthread.h>
8557 #define NULL (void*)0
8560 static void *task(p)
8563 return (void *) (p == NULL);
8568 /* pthread test function */
8572 /* make sure pthread_create() isn't just a stub */
8573 #if HAVE_PTHREADS_D4
8574 status = pthread_create(&t, pthread_attr_default, task, NULL);
8576 status = pthread_create(&t, NULL, task, NULL);
8579 if( status ) exit( status );
8581 /* make sure pthread_detach() isn't just a stub */
8582 #if HAVE_PTHREADS_D4
8583 status = pthread_detach( &t );
8585 status = pthread_detach( t );
8588 #ifdef HAVE_LINUX_THREADS
8589 pthread_kill_other_threads_np();
8596 if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8598 ol_cv_pthread_threads=yes
8600 echo "configure: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8603 ol_cv_pthread_threads=no
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8610 /* pthread test headers */
8611 #include <pthread.h>
8613 #define NULL (void*)0
8616 static void *task(p)
8619 return (void *) (p == NULL);
8623 int main(argc, argv)
8628 /* pthread test function */
8632 /* make sure pthread_create() isn't just a stub */
8633 #if HAVE_PTHREADS_D4
8634 status = pthread_create(&t, pthread_attr_default, task, NULL);
8636 status = pthread_create(&t, NULL, task, NULL);
8639 if( status ) exit( status );
8641 /* make sure pthread_detach() isn't just a stub */
8642 #if HAVE_PTHREADS_D4
8643 status = pthread_detach( &t );
8645 status = pthread_detach( t );
8648 #ifdef HAVE_LINUX_THREADS
8649 pthread_kill_other_threads_np();
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8659 ol_cv_pthread_threads=yes
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 ol_cv_pthread_threads=no
8675 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8677 if test $ol_cv_pthread_threads = yes ; then
8678 ol_link_pthreads="-threads"
8679 ol_link_threads=posix
8684 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8685 if test "$ol_link_threads" = no ; then
8686 # try -lpthreads -lmach -lexc -lc_r
8687 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8688 echo "configure:8689: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8689 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8690 echo $ac_n "(cached) $ac_c" 1>&6
8695 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8697 if test "$cross_compiling" = yes; then
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 /* pthread test headers */
8702 #include <pthread.h>
8704 #define NULL (void*)0
8707 static void *task(p)
8710 return (void *) (p == NULL);
8715 /* pthread test function */
8719 /* make sure pthread_create() isn't just a stub */
8720 #if HAVE_PTHREADS_D4
8721 status = pthread_create(&t, pthread_attr_default, task, NULL);
8723 status = pthread_create(&t, NULL, task, NULL);
8726 if( status ) exit( status );
8728 /* make sure pthread_detach() isn't just a stub */
8729 #if HAVE_PTHREADS_D4
8730 status = pthread_detach( &t );
8732 status = pthread_detach( t );
8735 #ifdef HAVE_LINUX_THREADS
8736 pthread_kill_other_threads_np();
8743 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8745 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8747 echo "configure: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8750 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8757 /* pthread test headers */
8758 #include <pthread.h>
8760 #define NULL (void*)0
8763 static void *task(p)
8766 return (void *) (p == NULL);
8770 int main(argc, argv)
8775 /* pthread test function */
8779 /* make sure pthread_create() isn't just a stub */
8780 #if HAVE_PTHREADS_D4
8781 status = pthread_create(&t, pthread_attr_default, task, NULL);
8783 status = pthread_create(&t, NULL, task, NULL);
8786 if( status ) exit( status );
8788 /* make sure pthread_detach() isn't just a stub */
8789 #if HAVE_PTHREADS_D4
8790 status = pthread_detach( &t );
8792 status = pthread_detach( t );
8795 #ifdef HAVE_LINUX_THREADS
8796 pthread_kill_other_threads_np();
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8806 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8811 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8822 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8824 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8825 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8826 ol_link_threads=posix
8830 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8831 if test "$ol_link_threads" = no ; then
8832 # try -lpthreads -lmach -lexc
8833 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8834 echo "configure:8835: checking for pthread link with -lpthreads -lmach -lexc" >&5
8835 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8841 LIBS="-lpthreads -lmach -lexc $LIBS"
8843 if test "$cross_compiling" = yes; then
8844 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8847 /* pthread test headers */
8848 #include <pthread.h>
8850 #define NULL (void*)0
8853 static void *task(p)
8856 return (void *) (p == NULL);
8861 /* pthread test function */
8865 /* make sure pthread_create() isn't just a stub */
8866 #if HAVE_PTHREADS_D4
8867 status = pthread_create(&t, pthread_attr_default, task, NULL);
8869 status = pthread_create(&t, NULL, task, NULL);
8872 if( status ) exit( status );
8874 /* make sure pthread_detach() isn't just a stub */
8875 #if HAVE_PTHREADS_D4
8876 status = pthread_detach( &t );
8878 status = pthread_detach( t );
8881 #ifdef HAVE_LINUX_THREADS
8882 pthread_kill_other_threads_np();
8889 if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8891 ol_cv_pthread_lpthreads_lmach_lexc=yes
8893 echo "configure: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8896 ol_cv_pthread_lpthreads_lmach_lexc=no
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8903 /* pthread test headers */
8904 #include <pthread.h>
8906 #define NULL (void*)0
8909 static void *task(p)
8912 return (void *) (p == NULL);
8916 int main(argc, argv)
8921 /* pthread test function */
8925 /* make sure pthread_create() isn't just a stub */
8926 #if HAVE_PTHREADS_D4
8927 status = pthread_create(&t, pthread_attr_default, task, NULL);
8929 status = pthread_create(&t, NULL, task, NULL);
8932 if( status ) exit( status );
8934 /* make sure pthread_detach() isn't just a stub */
8935 #if HAVE_PTHREADS_D4
8936 status = pthread_detach( &t );
8938 status = pthread_detach( t );
8941 #ifdef HAVE_LINUX_THREADS
8942 pthread_kill_other_threads_np();
8950 if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8952 ol_cv_pthread_lpthreads_lmach_lexc=yes
8954 echo "configure: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8957 ol_cv_pthread_lpthreads_lmach_lexc=no
8968 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8970 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8971 ol_link_pthreads="-lpthreads -lmach -lexc"
8972 ol_link_threads=posix
8976 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8977 if test "$ol_link_threads" = no ; then
8978 # try -lpthreads -lexc
8979 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8980 echo "configure:8981: checking for pthread link with -lpthreads -lexc" >&5
8981 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8987 LIBS="-lpthreads -lexc $LIBS"
8989 if test "$cross_compiling" = yes; then
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8993 /* pthread test headers */
8994 #include <pthread.h>
8996 #define NULL (void*)0
8999 static void *task(p)
9002 return (void *) (p == NULL);
9007 /* pthread test function */
9011 /* make sure pthread_create() isn't just a stub */
9012 #if HAVE_PTHREADS_D4
9013 status = pthread_create(&t, pthread_attr_default, task, NULL);
9015 status = pthread_create(&t, NULL, task, NULL);
9018 if( status ) exit( status );
9020 /* make sure pthread_detach() isn't just a stub */
9021 #if HAVE_PTHREADS_D4
9022 status = pthread_detach( &t );
9024 status = pthread_detach( t );
9027 #ifdef HAVE_LINUX_THREADS
9028 pthread_kill_other_threads_np();
9035 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9037 ol_cv_pthread_lpthreads_lexc=yes
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9042 ol_cv_pthread_lpthreads_lexc=no
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 /* pthread test headers */
9050 #include <pthread.h>
9052 #define NULL (void*)0
9055 static void *task(p)
9058 return (void *) (p == NULL);
9062 int main(argc, argv)
9067 /* pthread test function */
9071 /* make sure pthread_create() isn't just a stub */
9072 #if HAVE_PTHREADS_D4
9073 status = pthread_create(&t, pthread_attr_default, task, NULL);
9075 status = pthread_create(&t, NULL, task, NULL);
9078 if( status ) exit( status );
9080 /* make sure pthread_detach() isn't just a stub */
9081 #if HAVE_PTHREADS_D4
9082 status = pthread_detach( &t );
9084 status = pthread_detach( t );
9087 #ifdef HAVE_LINUX_THREADS
9088 pthread_kill_other_threads_np();
9096 if { (eval echo configure:9097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9098 ol_cv_pthread_lpthreads_lexc=yes
9100 echo "configure: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9103 ol_cv_pthread_lpthreads_lexc=no
9114 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9116 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9117 ol_link_pthreads="-lpthreads -lexc"
9118 ol_link_threads=posix
9123 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9124 if test "$ol_link_threads" = no ; then
9126 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9127 echo "configure:9128: checking for pthread link with -lpthreads" >&5
9128 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9134 LIBS="-lpthreads $LIBS"
9136 if test "$cross_compiling" = yes; then
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 /* pthread test headers */
9141 #include <pthread.h>
9143 #define NULL (void*)0
9146 static void *task(p)
9149 return (void *) (p == NULL);
9154 /* pthread test function */
9158 /* make sure pthread_create() isn't just a stub */
9159 #if HAVE_PTHREADS_D4
9160 status = pthread_create(&t, pthread_attr_default, task, NULL);
9162 status = pthread_create(&t, NULL, task, NULL);
9165 if( status ) exit( status );
9167 /* make sure pthread_detach() isn't just a stub */
9168 #if HAVE_PTHREADS_D4
9169 status = pthread_detach( &t );
9171 status = pthread_detach( t );
9174 #ifdef HAVE_LINUX_THREADS
9175 pthread_kill_other_threads_np();
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9184 ol_cv_pthread_lib_lpthreads=yes
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9189 ol_cv_pthread_lib_lpthreads=no
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9196 /* pthread test headers */
9197 #include <pthread.h>
9199 #define NULL (void*)0
9202 static void *task(p)
9205 return (void *) (p == NULL);
9209 int main(argc, argv)
9214 /* pthread test function */
9218 /* make sure pthread_create() isn't just a stub */
9219 #if HAVE_PTHREADS_D4
9220 status = pthread_create(&t, pthread_attr_default, task, NULL);
9222 status = pthread_create(&t, NULL, task, NULL);
9225 if( status ) exit( status );
9227 /* make sure pthread_detach() isn't just a stub */
9228 #if HAVE_PTHREADS_D4
9229 status = pthread_detach( &t );
9231 status = pthread_detach( t );
9234 #ifdef HAVE_LINUX_THREADS
9235 pthread_kill_other_threads_np();
9243 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9245 ol_cv_pthread_lib_lpthreads=yes
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9250 ol_cv_pthread_lib_lpthreads=no
9261 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9263 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9264 ol_link_pthreads="-lpthreads"
9265 ol_link_threads=posix
9270 if test $ol_link_threads != no ; then
9271 cat >> confdefs.h <<\EOF
9272 #define HAVE_PTHREADS 1
9276 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9278 save_CPPFLAGS="$CPPFLAGS"
9280 LIBS="$LTHREAD_LIBS $LIBS"
9282 for ac_func in sched_yield pthread_yield
9284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9285 echo "configure:9286: checking for $ac_func" >&5
9286 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 /* System header to define __stub macros and hopefully few prototypes,
9293 which can conflict with char $ac_func(); below. */
9295 /* Override any gcc2 internal prototype to avoid an error. */
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9303 /* The GNU C library defines this for functions which it implements
9304 to always fail with ENOSYS. Some functions are actually named
9305 something starting with __ and the normal name is an alias. */
9306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9314 if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9316 eval "ac_cv_func_$ac_func=yes"
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9321 eval "ac_cv_func_$ac_func=no"
9326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9327 echo "$ac_t""yes" 1>&6
9328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9329 cat >> confdefs.h <<EOF
9330 #define $ac_tr_func 1
9334 echo "$ac_t""no" 1>&6
9339 if test $ac_cv_func_sched_yield = no -a \
9340 $ac_cv_func_pthread_yield = no ; then
9341 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9342 echo "configure:9343: checking for sched_yield in -lrt" >&5
9343 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9344 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9345 echo $ac_n "(cached) $ac_c" 1>&6
9347 ac_save_LIBS="$LIBS"
9349 cat > conftest.$ac_ext <<EOF
9350 #line 9351 "configure"
9351 #include "confdefs.h"
9352 /* Override any gcc2 internal prototype to avoid an error. */
9353 /* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9363 eval "ac_cv_lib_$ac_lib_var=yes"
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9368 eval "ac_cv_lib_$ac_lib_var=no"
9371 LIBS="$ac_save_LIBS"
9374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9375 echo "$ac_t""yes" 1>&6
9376 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9377 cat >> confdefs.h <<\EOF
9378 #define HAVE_SCHED_YIELD 1
9381 ac_cv_func_sched_yield=yes
9383 echo "$ac_t""no" 1>&6
9384 ac_cv_func_sched_yield=no
9388 if test $ac_cv_func_sched_yield = no -a \
9389 $ac_cv_func_pthread_yield = no ; then
9390 for ac_func in thr_yield
9392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9393 echo "configure:9394: checking for $ac_func" >&5
9394 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 /* System header to define __stub macros and hopefully few prototypes,
9401 which can conflict with char $ac_func(); below. */
9403 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9411 /* The GNU C library defines this for functions which it implements
9412 to always fail with ENOSYS. Some functions are actually named
9413 something starting with __ and the normal name is an alias. */
9414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9424 eval "ac_cv_func_$ac_func=yes"
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 eval "ac_cv_func_$ac_func=no"
9434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9435 echo "$ac_t""yes" 1>&6
9436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9437 cat >> confdefs.h <<EOF
9438 #define $ac_tr_func 1
9442 echo "$ac_t""no" 1>&6
9447 if test $ac_cv_func_sched_yield = no -a \
9448 $ac_cv_func_pthread_yield = no -a \
9449 "$ac_cv_func_thr_yield" = no ; then
9450 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9453 for ac_func in pthread_kill
9455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9456 echo "configure:9457: checking for $ac_func" >&5
9457 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9460 cat > conftest.$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 /* System header to define __stub macros and hopefully few prototypes,
9464 which can conflict with char $ac_func(); below. */
9466 /* Override any gcc2 internal prototype to avoid an error. */
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9474 /* The GNU C library defines this for functions which it implements
9475 to always fail with ENOSYS. Some functions are actually named
9476 something starting with __ and the normal name is an alias. */
9477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9485 if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9487 eval "ac_cv_func_$ac_func=yes"
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9492 eval "ac_cv_func_$ac_func=no"
9497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9498 echo "$ac_t""yes" 1>&6
9499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9500 cat >> confdefs.h <<EOF
9501 #define $ac_tr_func 1
9505 echo "$ac_t""no" 1>&6
9510 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9511 echo "configure:9512: checking for pthread_detach with <pthread.h>" >&5
9512 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9516 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure"
9518 #include "confdefs.h"
9520 #include <pthread.h>
9522 #define NULL (void*)0
9526 pthread_detach(NULL);
9529 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9531 ol_cv_func_pthread_detach=yes
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 ol_cv_func_pthread_detach=no
9542 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9544 if test $ol_cv_func_pthread_detach = no ; then
9545 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9548 cat >> confdefs.h <<\EOF
9549 #define HAVE_PTHREAD_DETACH 1
9554 pthread_setconcurrency \
9555 pthread_getconcurrency \
9556 thr_setconcurrency \
9557 thr_getconcurrency \
9560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9561 echo "configure:9562: checking for $ac_func" >&5
9562 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char $ac_func(); below. */
9571 /* Override any gcc2 internal prototype to avoid an error. */
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9592 eval "ac_cv_func_$ac_func=yes"
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9597 eval "ac_cv_func_$ac_func=no"
9602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9603 echo "$ac_t""yes" 1>&6
9604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9605 cat >> confdefs.h <<EOF
9606 #define $ac_tr_func 1
9610 echo "$ac_t""no" 1>&6
9616 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9617 echo "configure:9618: checking for pthread_kill_other_threads_np" >&5
9618 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char pthread_kill_other_threads_np(); below. */
9627 /* Override any gcc2 internal prototype to avoid an error. */
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630 char pthread_kill_other_threads_np();
9635 /* The GNU C library defines this for functions which it implements
9636 to always fail with ENOSYS. Some functions are actually named
9637 something starting with __ and the normal name is an alias. */
9638 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9641 f = pthread_kill_other_threads_np;
9646 if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9648 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9653 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9658 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9659 echo "$ac_t""yes" 1>&6
9662 echo "$ac_t""no" 1>&6
9665 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9666 echo "configure:9667: checking for LinuxThreads implementation" >&5
9667 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9670 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9673 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9678 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9679 echo "configure:9680: checking for LinuxThreads consistency" >&5
9680 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9684 if test $ol_cv_header_linux_threads = yes -a \
9685 $ol_cv_sys_linux_threads = yes; then
9686 ol_cv_linux_threads=yes
9687 elif test $ol_cv_header_linux_threads = no -a \
9688 $ol_cv_sys_linux_threads = no; then
9689 ol_cv_linux_threads=no
9691 ol_cv_linux_threads=error
9696 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9699 if test $ol_cv_linux_threads = error; then
9700 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9703 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9704 echo "configure:9705: checking if pthread_create() works" >&5
9705 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9709 if test "$cross_compiling" = yes; then
9710 ol_cv_pthread_create_works=yes
9712 cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9715 /* pthread test headers */
9716 #include <pthread.h>
9718 #define NULL (void*)0
9721 static void *task(p)
9724 return (void *) (p == NULL);
9728 int main(argc, argv)
9733 /* pthread test function */
9737 /* make sure pthread_create() isn't just a stub */
9738 #if HAVE_PTHREADS_D4
9739 status = pthread_create(&t, pthread_attr_default, task, NULL);
9741 status = pthread_create(&t, NULL, task, NULL);
9744 if( status ) exit( status );
9746 /* make sure pthread_detach() isn't just a stub */
9747 #if HAVE_PTHREADS_D4
9748 status = pthread_detach( &t );
9750 status = pthread_detach( t );
9753 #ifdef HAVE_LINUX_THREADS
9754 pthread_kill_other_threads_np();
9762 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9764 ol_cv_pthread_create_works=yes
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9769 ol_cv_pthread_create_works=no
9776 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9778 if test $ol_cv_pthread_create_works = no ; then
9779 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9782 if test $ol_with_yielding_select = auto ; then
9783 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9784 echo "configure:9785: checking if select yields when using pthreads" >&5
9785 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9786 echo $ac_n "(cached) $ac_c" 1>&6
9789 if test "$cross_compiling" = yes; then
9790 ol_cv_pthread_select_yields=cross
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9796 #include <sys/types.h>
9797 #include <sys/time.h>
9799 #include <pthread.h>
9801 #define NULL (void*) 0
9804 static int fildes[2];
9806 static void *task(p)
9818 FD_SET(fildes[0], &rfds);
9820 /* we're not interested in any fds */
9821 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9828 exit(0); /* if we exit here, the select blocked the whole process */
9831 int main(argc, argv)
9837 /* create a pipe to select */
9838 if(pipe(&fildes[0])) {
9843 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9844 (void) pthread_setconcurrency(2);
9846 #ifdef HAVE_THR_SETCONCURRENCY
9847 /* Set Solaris LWP concurrency to 2 */
9848 thr_setconcurrency(2);
9852 #if HAVE_PTHREADS_D4
9853 pthread_create(&t, pthread_attr_default, task, NULL);
9855 pthread_create(&t, NULL, task, NULL);
9858 #if HAVE_SCHED_YIELD
9859 sched_yield(); /* make sure task runs first */
9861 #ifdef HAVE_PTHREAD_YIELD
9862 pthread_yield(); /* make sure task runs first */
9869 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9871 ol_cv_pthread_select_yields=no
9873 echo "configure: failed program was:" >&5
9874 cat conftest.$ac_ext >&5
9876 ol_cv_pthread_select_yields=yes
9883 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9885 if test $ol_cv_pthread_select_yields = cross ; then
9886 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9889 if test $ol_cv_pthread_select_yields = yes ; then
9890 ol_with_yielding_select=yes
9894 CPPFLAGS="$save_CPPFLAGS"
9897 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9901 if test $ol_with_threads = posix ; then
9902 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9906 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9907 -o $ol_with_threads = mach ; then
9909 for ac_hdr in mach/cthreads.h
9911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9913 echo "configure:9914: checking for $ac_hdr" >&5
9914 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9923 { (eval echo configure:9924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9925 if test -z "$ac_err"; then
9927 eval "ac_cv_header_$ac_safe=yes"
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9933 eval "ac_cv_header_$ac_safe=no"
9937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
9939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9940 cat >> confdefs.h <<EOF
9941 #define $ac_tr_hdr 1
9945 echo "$ac_t""no" 1>&6
9949 if test $ac_cv_header_mach_cthreads_h = yes ; then
9950 ol_with_threads=found
9952 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9953 echo "configure:9954: checking for cthread_fork" >&5
9954 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char cthread_fork(); below. */
9963 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9966 char cthread_fork();
9971 /* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 eval "ac_cv_func_cthread_fork=yes"
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 eval "ac_cv_func_cthread_fork=no"
9994 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9995 echo "$ac_t""yes" 1>&6
9998 echo "$ac_t""no" 1>&6
10002 if test $ol_link_threads = no ; then
10003 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10004 echo "configure:10005: checking for cthread_fork with -all_load" >&5
10005 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10010 LIBS="-all_load $LIBS"
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10014 #include <mach/cthreads.h>
10017 cthread_fork((void *)0, (void *)0);
10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10023 ol_cv_cthread_all_load=yes
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10028 ol_cv_cthread_all_load=no
10035 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10037 if test $ol_cv_cthread_all_load = yes ; then
10038 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10039 ol_link_threads=mach
10043 if test $ol_link_threads != no ; then
10044 : check for cthread specific functionality here
10045 cat >> confdefs.h <<\EOF
10046 #define HAVE_MACH_CTHREADS 1
10050 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10054 if test $ol_with_threads = mach ; then
10055 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10059 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10060 -o $ol_with_threads = pth ; then
10062 for ac_hdr in pth.h
10064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10066 echo "configure:10067: checking for $ac_hdr" >&5
10067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10076 { (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10078 if test -z "$ac_err"; then
10080 eval "ac_cv_header_$ac_safe=yes"
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10086 eval "ac_cv_header_$ac_safe=no"
10090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10091 echo "$ac_t""yes" 1>&6
10092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10093 cat >> confdefs.h <<EOF
10094 #define $ac_tr_hdr 1
10098 echo "$ac_t""no" 1>&6
10103 if test $ac_cv_header_pth_h = yes ; then
10104 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10105 echo "configure:10106: checking for pth_version in -lpth" >&5
10106 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10110 ac_save_LIBS="$LIBS"
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118 char pth_version();
10124 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10126 eval "ac_cv_lib_$ac_lib_var=yes"
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10131 eval "ac_cv_lib_$ac_lib_var=no"
10134 LIBS="$ac_save_LIBS"
10137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10141 echo "$ac_t""no" 1>&6
10146 if test $have_pth = yes ; then
10147 cat >> confdefs.h <<\EOF
10148 #define HAVE_GNU_PTH 1
10151 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10152 ol_link_threads=pth
10154 if test $ol_with_yielding_select = auto ; then
10155 ol_with_yielding_select=yes
10161 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10162 -o $ol_with_threads = lwp ; then
10164 for ac_hdr in thread.h synch.h
10166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10168 echo "configure:10169: checking for $ac_hdr" >&5
10169 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10178 { (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180 if test -z "$ac_err"; then
10182 eval "ac_cv_header_$ac_safe=yes"
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10188 eval "ac_cv_header_$ac_safe=no"
10192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10195 cat >> confdefs.h <<EOF
10196 #define $ac_tr_hdr 1
10200 echo "$ac_t""no" 1>&6
10204 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10205 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10206 echo "configure:10207: checking for thr_create in -lthread" >&5
10207 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10208 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10211 ac_save_LIBS="$LIBS"
10212 LIBS="-lthread $LIBS"
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 /* Override any gcc2 internal prototype to avoid an error. */
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10225 if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10227 eval "ac_cv_lib_$ac_lib_var=yes"
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10232 eval "ac_cv_lib_$ac_lib_var=no"
10235 LIBS="$ac_save_LIBS"
10238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10242 echo "$ac_t""no" 1>&6
10247 if test $have_thr = yes ; then
10248 cat >> confdefs.h <<\EOF
10252 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10253 ol_link_threads=thr
10255 if test $ol_with_yielding_select = auto ; then
10256 ol_with_yielding_select=yes
10260 thr_setconcurrency \
10261 thr_getconcurrency \
10264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10265 echo "configure:10266: checking for $ac_func" >&5
10266 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10272 /* System header to define __stub macros and hopefully few prototypes,
10273 which can conflict with char $ac_func(); below. */
10274 #include <assert.h>
10275 /* Override any gcc2 internal prototype to avoid an error. */
10276 /* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10283 /* The GNU C library defines this for functions which it implements
10284 to always fail with ENOSYS. Some functions are actually named
10285 something starting with __ and the normal name is an alias. */
10286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10294 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10296 eval "ac_cv_func_$ac_func=yes"
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10301 eval "ac_cv_func_$ac_func=no"
10306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10307 echo "$ac_t""yes" 1>&6
10308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10309 cat >> confdefs.h <<EOF
10310 #define $ac_tr_func 1
10314 echo "$ac_t""no" 1>&6
10321 for ac_hdr in lwp/lwp.h
10323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10325 echo "configure:10326: checking for $ac_hdr" >&5
10326 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10335 { (eval echo configure:10336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10337 if test -z "$ac_err"; then
10339 eval "ac_cv_header_$ac_safe=yes"
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 eval "ac_cv_header_$ac_safe=no"
10349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10350 echo "$ac_t""yes" 1>&6
10351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10352 cat >> confdefs.h <<EOF
10353 #define $ac_tr_hdr 1
10357 echo "$ac_t""no" 1>&6
10361 if test $ac_cv_header_lwp_lwp_h = yes ; then
10362 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10363 echo "configure:10364: checking for lwp_create in -llwp" >&5
10364 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10365 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 ac_save_LIBS="$LIBS"
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10373 /* Override any gcc2 internal prototype to avoid an error. */
10374 /* We use char because int might match the return type of a gcc2
10375 builtin and then its argument prototype would still apply. */
10382 if { (eval echo configure:10383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10384 eval "ac_cv_lib_$ac_lib_var=yes"
10386 echo "configure: failed program was:" >&5
10387 cat conftest.$ac_ext >&5
10389 eval "ac_cv_lib_$ac_lib_var=no"
10392 LIBS="$ac_save_LIBS"
10395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10396 echo "$ac_t""yes" 1>&6
10399 echo "$ac_t""no" 1>&6
10404 if test $have_lwp = yes ; then
10405 cat >> confdefs.h <<\EOF
10409 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10410 ol_link_threads=lwp
10412 if test $ol_with_yielding_select = auto ; then
10413 ol_with_yielding_select=no
10419 if test $ol_with_yielding_select = yes ; then
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_YIELDING_SELECT 1
10426 if test $ol_with_threads = manual ; then
10427 ol_link_threads=yes
10429 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10431 for ac_hdr in pthread.h sched.h
10433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10435 echo "configure:10436: checking for $ac_hdr" >&5
10436 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10437 echo $ac_n "(cached) $ac_c" 1>&6
10439 cat > conftest.$ac_ext <<EOF
10440 #line 10441 "configure"
10441 #include "confdefs.h"
10444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10445 { (eval echo configure:10446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10447 if test -z "$ac_err"; then
10449 eval "ac_cv_header_$ac_safe=yes"
10452 echo "configure: failed program was:" >&5
10453 cat conftest.$ac_ext >&5
10455 eval "ac_cv_header_$ac_safe=no"
10459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10460 echo "$ac_t""yes" 1>&6
10461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10462 cat >> confdefs.h <<EOF
10463 #define $ac_tr_hdr 1
10467 echo "$ac_t""no" 1>&6
10471 for ac_func in sched_yield pthread_yield
10473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10474 echo "configure:10475: checking for $ac_func" >&5
10475 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 /* System header to define __stub macros and hopefully few prototypes,
10482 which can conflict with char $ac_func(); below. */
10483 #include <assert.h>
10484 /* Override any gcc2 internal prototype to avoid an error. */
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10492 /* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
10495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10503 if { (eval echo configure:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10505 eval "ac_cv_func_$ac_func=yes"
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10510 eval "ac_cv_func_$ac_func=no"
10515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10516 echo "$ac_t""yes" 1>&6
10517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10518 cat >> confdefs.h <<EOF
10519 #define $ac_tr_func 1
10523 echo "$ac_t""no" 1>&6
10528 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10529 echo "configure:10530: checking for LinuxThreads pthread.h" >&5
10530 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <pthread.h>
10538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10539 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10541 ol_cv_header_linux_threads=yes
10544 ol_cv_header_linux_threads=no
10551 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10552 if test $ol_cv_header_linux_threads = yes; then
10553 cat >> confdefs.h <<\EOF
10554 #define HAVE_LINUX_THREADS 1
10560 for ac_hdr in mach/cthreads.h
10562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10564 echo "configure:10565: checking for $ac_hdr" >&5
10565 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10574 { (eval echo configure:10575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10576 if test -z "$ac_err"; then
10578 eval "ac_cv_header_$ac_safe=yes"
10581 echo "configure: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10584 eval "ac_cv_header_$ac_safe=no"
10588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10589 echo "$ac_t""yes" 1>&6
10590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10591 cat >> confdefs.h <<EOF
10592 #define $ac_tr_hdr 1
10596 echo "$ac_t""no" 1>&6
10600 for ac_hdr in lwp/lwp.h
10602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10604 echo "configure:10605: checking for $ac_hdr" >&5
10605 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10608 cat > conftest.$ac_ext <<EOF
10609 #line 10610 "configure"
10610 #include "confdefs.h"
10613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10614 { (eval echo configure:10615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10616 if test -z "$ac_err"; then
10618 eval "ac_cv_header_$ac_safe=yes"
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10624 eval "ac_cv_header_$ac_safe=no"
10628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10631 cat >> confdefs.h <<EOF
10632 #define $ac_tr_hdr 1
10636 echo "$ac_t""no" 1>&6
10640 for ac_hdr in thread.h synch.h
10642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10644 echo "configure:10645: checking for $ac_hdr" >&5
10645 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10648 cat > conftest.$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10654 { (eval echo configure:10655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10656 if test -z "$ac_err"; then
10658 eval "ac_cv_header_$ac_safe=yes"
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10664 eval "ac_cv_header_$ac_safe=no"
10668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10669 echo "$ac_t""yes" 1>&6
10670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10671 cat >> confdefs.h <<EOF
10672 #define $ac_tr_hdr 1
10676 echo "$ac_t""no" 1>&6
10682 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
10683 cat >> confdefs.h <<\EOF
10684 #define REENTRANT 1
10687 cat >> confdefs.h <<\EOF
10688 #define _REENTRANT 1
10691 cat >> confdefs.h <<\EOF
10692 #define THREAD_SAFE 1
10695 cat >> confdefs.h <<\EOF
10696 #define _THREAD_SAFE 1
10699 cat >> confdefs.h <<\EOF
10700 #define THREADSAFE 1
10703 cat >> confdefs.h <<\EOF
10704 #define _THREADSAFE 1
10707 cat >> confdefs.h <<\EOF
10708 #define _SGI_MP_SOURCE 1
10712 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10713 echo "configure:10714: checking for thread specific errno" >&5
10714 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 ol_cv_errno_thread_specific=yes
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 ol_cv_errno_thread_specific=no
10739 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10741 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10742 echo "configure:10743: checking for thread specific h_errno" >&5
10743 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10757 ol_cv_h_errno_thread_specific=yes
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10762 ol_cv_h_errno_thread_specific=no
10768 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10770 if test $ol_cv_errno_thread_specific != yes \
10771 -o $ol_cv_h_errno_thread_specific != yes ; then
10772 LIBS="$LTHREAD_LIBS $LIBS"
10778 if test $ol_link_threads = no ; then
10779 if test $ol_with_threads = yes ; then
10780 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10783 if test $ol_with_threads = auto ; then
10784 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10788 cat >> confdefs.h <<\EOF
10789 #define NO_THREADS 1
10795 if test $ol_link_threads != no ; then
10796 cat >> confdefs.h <<\EOF
10797 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10804 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10805 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10806 echo "configure:10807: checking for DB2 library" >&5
10807 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10811 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
10812 echo "configure:10813: checking for db_appexit in -ldb" >&5
10813 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
10814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10815 echo $ac_n "(cached) $ac_c" 1>&6
10817 ac_save_LIBS="$LIBS"
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10822 /* Override any gcc2 internal prototype to avoid an error. */
10823 /* We use char because int might match the return type of a gcc2
10824 builtin and then its argument prototype would still apply. */
10831 if { (eval echo configure:10832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10833 eval "ac_cv_lib_$ac_lib_var=yes"
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10838 eval "ac_cv_lib_$ac_lib_var=no"
10841 LIBS="$ac_save_LIBS"
10844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10845 echo "$ac_t""yes" 1>&6
10848 echo "$ac_t""no" 1>&6
10856 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10862 echo "configure:10863: checking for $ac_hdr" >&5
10863 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10872 { (eval echo configure:10873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10874 if test -z "$ac_err"; then
10876 eval "ac_cv_header_$ac_safe=yes"
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 eval "ac_cv_header_$ac_safe=no"
10886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10889 cat >> confdefs.h <<EOF
10890 #define $ac_tr_hdr 1
10894 echo "$ac_t""no" 1>&6
10898 if test $ac_cv_header_db_h = yes ; then
10899 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10900 echo "configure:10901: checking if db.h is DB2" >&5
10901 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10910 /* this check could be improved */
10911 # ifdef DB_VERSION_MAJOR
10912 # if DB_VERSION_MAJOR == 2
10918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10919 egrep "__db_version_2" >/dev/null 2>&1; then
10921 ol_cv_header_db2=yes
10924 ol_cv_header_db2=no
10930 echo "$ac_t""$ol_cv_header_db2" 1>&6
10932 ol_cv_header_db2=no
10937 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10938 echo "configure:10939: checking for Berkeley DB2" >&5
10939 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10940 echo $ac_n "(cached) $ac_c" 1>&6
10943 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10944 ol_cv_berkeley_db2=no
10946 ol_cv_berkeley_db2=yes
10951 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10952 if test $ol_cv_berkeley_db2 = yes ; then
10953 cat >> confdefs.h <<\EOF
10954 #define HAVE_BERKELEY_DB2 1
10960 if test $ol_cv_berkeley_db2 = yes ; then
10962 ol_with_ldbm_api=db2
10964 if test $ol_with_ldbm_type = hash ; then
10965 cat >> confdefs.h <<\EOF
10966 #define LDBM_USE_DBHASH 1
10970 cat >> confdefs.h <<\EOF
10971 #define LDBM_USE_DBBTREE 1
10976 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
10977 echo "configure:10978: checking for DB_THREAD support" >&5
10978 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
10979 echo $ac_n "(cached) $ac_c" 1>&6
10983 if test $ol_cv_lib_db2 != yes ; then
10984 LIBS="$ol_cv_lib_db2"
10987 if test "$cross_compiling" = yes; then
10988 ol_cv_berkeley_db2_db_thread=cross
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10996 #define NULL ((void *)0)
11002 u_int32_t flags = DB_CREATE | DB_THREAD;
11004 memset( &env, '\0', sizeof(env) );
11006 rc = db_appinit( NULL, NULL, &env, flags );
11009 db_appexit( &env );
11015 if { (eval echo configure:11016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11017 ol_cv_berkeley_db2_db_thread=yes
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11022 ol_cv_berkeley_db2_db_thread=no
11030 if test $ol_cv_berkeley_db2_db_thread != no ; then
11031 cat >> confdefs.h <<\EOF
11032 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11039 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11041 if test $ol_cv_lib_db2 != yes ; then
11042 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11048 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11049 if test $ol_cv_berkeley_db2_db_thread != no ; then
11052 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11056 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11057 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11058 echo "configure:11059: checking for Berkeley DB library" >&5
11059 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11063 for ac_hdr in db1/db.h
11065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11067 echo "configure:11068: checking for $ac_hdr" >&5
11068 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11077 { (eval echo configure:11078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11079 if test -z "$ac_err"; then
11081 eval "ac_cv_header_$ac_safe=yes"
11084 echo "configure: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11087 eval "ac_cv_header_$ac_safe=no"
11091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11094 cat >> confdefs.h <<EOF
11095 #define $ac_tr_hdr 1
11099 echo "$ac_t""no" 1>&6
11104 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11105 echo "configure:11106: checking for dbopen" >&5
11106 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char dbopen(); below. */
11114 #include <assert.h>
11115 /* Override any gcc2 internal prototype to avoid an error. */
11116 /* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11123 /* The GNU C library defines this for functions which it implements
11124 to always fail with ENOSYS. Some functions are actually named
11125 something starting with __ and the normal name is an alias. */
11126 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11134 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11136 eval "ac_cv_func_dbopen=yes"
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11141 eval "ac_cv_func_dbopen=no"
11146 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11150 echo "$ac_t""no" 1>&6
11152 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11153 echo "configure:11154: checking for dbopen in -ldb1" >&5
11154 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11158 ac_save_LIBS="$LIBS"
11160 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure"
11162 #include "confdefs.h"
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 eval "ac_cv_lib_$ac_lib_var=yes"
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 eval "ac_cv_lib_$ac_lib_var=no"
11182 LIBS="$ac_save_LIBS"
11185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11186 echo "$ac_t""yes" 1>&6
11189 echo "$ac_t""no" 1>&6
11191 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11192 echo "configure:11193: checking for dbopen in -ldb" >&5
11193 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11197 ac_save_LIBS="$LIBS"
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 /* Override any gcc2 internal prototype to avoid an error. */
11203 /* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11211 if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11213 eval "ac_cv_lib_$ac_lib_var=yes"
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11218 eval "ac_cv_lib_$ac_lib_var=no"
11221 LIBS="$ac_save_LIBS"
11224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11225 echo "$ac_t""yes" 1>&6
11228 echo "$ac_t""no" 1>&6
11242 echo "$ac_t""$ol_cv_lib_db" 1>&6
11245 for ac_hdr in db_185.h
11247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11249 echo "configure:11250: checking for $ac_hdr" >&5
11250 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11259 { (eval echo configure:11260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11261 if test -z "$ac_err"; then
11263 eval "ac_cv_header_$ac_safe=yes"
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11269 eval "ac_cv_header_$ac_safe=no"
11273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11274 echo "$ac_t""yes" 1>&6
11275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11276 cat >> confdefs.h <<EOF
11277 #define $ac_tr_hdr 1
11281 echo "$ac_t""no" 1>&6
11285 if test "$ol_cv_header_db2" = yes ; then
11287 ol_cv_header_db=$ac_cv_header_db_185_h
11289 ol_cv_header_db=$ac_cv_header_db_h
11294 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11295 echo "configure:11296: checking for Berkeley DB" >&5
11296 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11300 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11301 ol_cv_berkeley_db=no
11303 ol_cv_berkeley_db=yes
11308 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11309 if test $ol_cv_berkeley_db = yes ; then
11310 cat >> confdefs.h <<\EOF
11311 #define HAVE_BERKELEY_DB 1
11317 if test $ol_cv_berkeley_db = yes ; then
11319 ol_with_ldbm_api=db
11321 if test $ol_with_ldbm_type = hash ; then
11322 cat >> confdefs.h <<\EOF
11323 #define LDBM_USE_DBHASH 1
11327 cat >> confdefs.h <<\EOF
11328 #define LDBM_USE_DBBTREE 1
11333 if test $ol_cv_lib_db != yes ; then
11334 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11339 if test $ol_with_ldbm_api = manual ; then
11342 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11344 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11348 echo "configure:11349: checking for $ac_hdr" >&5
11349 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11350 echo $ac_n "(cached) $ac_c" 1>&6
11352 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11358 { (eval echo configure:11359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11360 if test -z "$ac_err"; then
11362 eval "ac_cv_header_$ac_safe=yes"
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11368 eval "ac_cv_header_$ac_safe=no"
11372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11373 echo "$ac_t""yes" 1>&6
11374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11375 cat >> confdefs.h <<EOF
11376 #define $ac_tr_hdr 1
11380 echo "$ac_t""no" 1>&6
11386 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11387 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11388 ol_with_ldbm_api=none
11391 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11392 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11393 echo "configure:11394: checking for MDBM library" >&5
11394 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11398 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11399 echo "configure:11400: checking for mdbm_set_chain" >&5
11400 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11403 cat > conftest.$ac_ext <<EOF
11404 #line 11405 "configure"
11405 #include "confdefs.h"
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char mdbm_set_chain(); below. */
11408 #include <assert.h>
11409 /* Override any gcc2 internal prototype to avoid an error. */
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11412 char mdbm_set_chain();
11417 /* The GNU C library defines this for functions which it implements
11418 to always fail with ENOSYS. Some functions are actually named
11419 something starting with __ and the normal name is an alias. */
11420 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11423 f = mdbm_set_chain;
11428 if { (eval echo configure:11429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11430 eval "ac_cv_func_mdbm_set_chain=yes"
11432 echo "configure: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11435 eval "ac_cv_func_mdbm_set_chain=no"
11440 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11441 echo "$ac_t""yes" 1>&6
11444 echo "$ac_t""no" 1>&6
11446 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11447 echo "configure:11448: checking for mdbm_set_chain in -lmdbm" >&5
11448 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11450 echo $ac_n "(cached) $ac_c" 1>&6
11452 ac_save_LIBS="$LIBS"
11453 LIBS="-lmdbm $LIBS"
11454 cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11457 /* Override any gcc2 internal prototype to avoid an error. */
11458 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */
11460 char mdbm_set_chain();
11466 if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11468 eval "ac_cv_lib_$ac_lib_var=yes"
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11473 eval "ac_cv_lib_$ac_lib_var=no"
11476 LIBS="$ac_save_LIBS"
11479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11480 echo "$ac_t""yes" 1>&6
11481 ol_cv_lib_mdbm=-lmdbm
11483 echo "$ac_t""no" 1>&6
11494 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11497 for ac_hdr in mdbm.h
11499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_hdr" >&5
11502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11511 { (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11513 if test -z "$ac_err"; then
11515 eval "ac_cv_header_$ac_safe=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_header_$ac_safe=no"
11525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11528 cat >> confdefs.h <<EOF
11529 #define $ac_tr_hdr 1
11533 echo "$ac_t""no" 1>&6
11537 echo $ac_n "checking for db""... $ac_c" 1>&6
11538 echo "configure:11539: checking for db" >&5
11539 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11543 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11551 echo "$ac_t""$ol_cv_mdbm" 1>&6
11552 if test $ol_cv_mdbm = yes ; then
11553 cat >> confdefs.h <<\EOF
11554 #define HAVE_MDBM 1
11560 if test $ol_cv_mdbm = yes ; then
11562 ol_with_ldbm_api=mdbm
11563 if test $ol_cv_lib_mdbm != yes ; then
11564 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11569 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11570 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11571 echo "configure:11572: checking for GDBM library" >&5
11572 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11576 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11577 echo "configure:11578: checking for gdbm_open" >&5
11578 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 /* System header to define __stub macros and hopefully few prototypes,
11585 which can conflict with char gdbm_open(); below. */
11586 #include <assert.h>
11587 /* Override any gcc2 internal prototype to avoid an error. */
11588 /* We use char because int might match the return type of a gcc2
11589 builtin and then its argument prototype would still apply. */
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11608 eval "ac_cv_func_gdbm_open=yes"
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11613 eval "ac_cv_func_gdbm_open=no"
11618 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11619 echo "$ac_t""yes" 1>&6
11622 echo "$ac_t""no" 1>&6
11624 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11625 echo "configure:11626: checking for gdbm_open in -lgdbm" >&5
11626 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11627 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11630 ac_save_LIBS="$LIBS"
11631 LIBS="-lgdbm $LIBS"
11632 cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11635 /* Override any gcc2 internal prototype to avoid an error. */
11636 /* We use char because int might match the return type of a gcc2
11637 builtin and then its argument prototype would still apply. */
11644 if { (eval echo configure:11645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11646 eval "ac_cv_lib_$ac_lib_var=yes"
11648 echo "configure: failed program was:" >&5
11649 cat conftest.$ac_ext >&5
11651 eval "ac_cv_lib_$ac_lib_var=no"
11654 LIBS="$ac_save_LIBS"
11657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11658 echo "$ac_t""yes" 1>&6
11659 ol_cv_lib_gdbm=-lgdbm
11661 echo "$ac_t""no" 1>&6
11672 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11675 for ac_hdr in gdbm.h
11677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11679 echo "configure:11680: checking for $ac_hdr" >&5
11680 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11689 { (eval echo configure:11690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11691 if test -z "$ac_err"; then
11693 eval "ac_cv_header_$ac_safe=yes"
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11699 eval "ac_cv_header_$ac_safe=no"
11703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11706 cat >> confdefs.h <<EOF
11707 #define $ac_tr_hdr 1
11711 echo "$ac_t""no" 1>&6
11715 echo $ac_n "checking for db""... $ac_c" 1>&6
11716 echo "configure:11717: checking for db" >&5
11717 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11718 echo $ac_n "(cached) $ac_c" 1>&6
11721 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11729 echo "$ac_t""$ol_cv_gdbm" 1>&6
11730 if test $ol_cv_gdbm = yes ; then
11731 cat >> confdefs.h <<\EOF
11732 #define HAVE_GDBM 1
11738 if test $ol_cv_gdbm = yes ; then
11740 ol_with_ldbm_api=gdbm
11742 if test $ol_cv_lib_gdbm != yes ; then
11743 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11748 if test $ol_with_ldbm_api = auto ; then
11749 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11750 elif test $ol_with_ldbm_api = ndbm ; then
11751 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11752 echo "configure:11753: checking for NDBM library" >&5
11753 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11754 echo $ac_n "(cached) $ac_c" 1>&6
11757 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11758 echo "configure:11759: checking for dbm_open" >&5
11759 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11760 echo $ac_n "(cached) $ac_c" 1>&6
11762 cat > conftest.$ac_ext <<EOF
11763 #line 11764 "configure"
11764 #include "confdefs.h"
11765 /* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char dbm_open(); below. */
11767 #include <assert.h>
11768 /* Override any gcc2 internal prototype to avoid an error. */
11769 /* We use char because int might match the return type of a gcc2
11770 builtin and then its argument prototype would still apply. */
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11787 if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11789 eval "ac_cv_func_dbm_open=yes"
11791 echo "configure: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11794 eval "ac_cv_func_dbm_open=no"
11799 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11800 echo "$ac_t""yes" 1>&6
11803 echo "$ac_t""no" 1>&6
11805 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11806 echo "configure:11807: checking for dbm_open in -lndbm" >&5
11807 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11811 ac_save_LIBS="$LIBS"
11812 LIBS="-lndbm $LIBS"
11813 cat > conftest.$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11816 /* Override any gcc2 internal prototype to avoid an error. */
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11825 if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11827 eval "ac_cv_lib_$ac_lib_var=yes"
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11832 eval "ac_cv_lib_$ac_lib_var=no"
11835 LIBS="$ac_save_LIBS"
11838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11839 echo "$ac_t""yes" 1>&6
11840 ol_cv_lib_ndbm=-lndbm
11842 echo "$ac_t""no" 1>&6
11844 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11845 echo "configure:11846: checking for dbm_open in -ldbm" >&5
11846 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11850 ac_save_LIBS="$LIBS"
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11864 if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11866 eval "ac_cv_lib_$ac_lib_var=yes"
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11871 eval "ac_cv_lib_$ac_lib_var=no"
11874 LIBS="$ac_save_LIBS"
11877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11878 echo "$ac_t""yes" 1>&6
11879 ol_cv_lib_ndbm=-ldbm
11881 echo "$ac_t""no" 1>&6
11894 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11897 for ac_hdr in ndbm.h
11899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11901 echo "configure:11902: checking for $ac_hdr" >&5
11902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11903 echo $ac_n "(cached) $ac_c" 1>&6
11905 cat > conftest.$ac_ext <<EOF
11906 #line 11907 "configure"
11907 #include "confdefs.h"
11910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11911 { (eval echo configure:11912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11913 if test -z "$ac_err"; then
11915 eval "ac_cv_header_$ac_safe=yes"
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11921 eval "ac_cv_header_$ac_safe=no"
11925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11926 echo "$ac_t""yes" 1>&6
11927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11928 cat >> confdefs.h <<EOF
11929 #define $ac_tr_hdr 1
11933 echo "$ac_t""no" 1>&6
11937 echo $ac_n "checking for db""... $ac_c" 1>&6
11938 echo "configure:11939: checking for db" >&5
11939 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11943 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11951 echo "$ac_t""$ol_cv_ndbm" 1>&6
11952 if test $ol_cv_ndbm = yes ; then
11953 cat >> confdefs.h <<\EOF
11954 #define HAVE_NDBM 1
11960 if test $ol_cv_ndbm = yes ; then
11962 ol_with_ldbm_api=ndbm
11964 if test $ol_cv_lib_ndbm != yes ; then
11965 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11970 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11971 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11972 if test $ol_enable_ldbm = yes ; then
11973 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11976 echo "configure: warning: disabling LDBM" 1>&2
11980 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
11981 LINK_BINS_DYNAMIC="yes"
11983 LINK_BINS_DYNAMIC="no"
11986 if test $ol_enable_wrappers != no ; then
11987 for ac_hdr in tcpd.h
11989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11991 echo "configure:11992: checking for $ac_hdr" >&5
11992 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11995 cat > conftest.$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
12000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12001 { (eval echo configure:12002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12003 if test -z "$ac_err"; then
12005 eval "ac_cv_header_$ac_safe=yes"
12008 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12011 eval "ac_cv_header_$ac_safe=no"
12015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12016 echo "$ac_t""yes" 1>&6
12017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12018 cat >> confdefs.h <<EOF
12019 #define $ac_tr_hdr 1
12023 echo "$ac_t""no" 1>&6
12028 if test $ac_cv_header_tcpd_h != yes ; then
12031 cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12035 int allow_severity = 0;
12036 int deny_severity = 0;
12042 if { (eval echo configure:12043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12054 if test $have_wrappers = yes ; then
12055 cat >> confdefs.h <<\EOF
12056 #define HAVE_TCPD 1
12061 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12062 echo "configure:12063: checking for main in -lnsl" >&5
12063 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12067 ac_save_LIBS="$LIBS"
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12077 if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12079 eval "ac_cv_lib_$ac_lib_var=yes"
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12084 eval "ac_cv_lib_$ac_lib_var=no"
12087 LIBS="$ac_save_LIBS"
12090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12091 echo "$ac_t""yes" 1>&6
12092 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12094 cat >> confdefs.h <<EOF
12095 #define $ac_tr_lib 1
12101 echo "$ac_t""no" 1>&6
12105 echo "configure: warning: could not find -lwrap" 1>&2
12106 if test $ol_enable_wrappers = yes ; then
12107 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12110 echo "configure: warning: disabling wrappers support" 1>&2
12111 ol_enable_wrappers=no
12116 if test $ol_enable_syslog != no ; then
12117 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12118 echo "configure:12119: checking for openlog" >&5
12119 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12122 cat > conftest.$ac_ext <<EOF
12123 #line 12124 "configure"
12124 #include "confdefs.h"
12125 /* System header to define __stub macros and hopefully few prototypes,
12126 which can conflict with char openlog(); below. */
12127 #include <assert.h>
12128 /* Override any gcc2 internal prototype to avoid an error. */
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12136 /* The GNU C library defines this for functions which it implements
12137 to always fail with ENOSYS. Some functions are actually named
12138 something starting with __ and the normal name is an alias. */
12139 #if defined (__stub_openlog) || defined (__stub___openlog)
12147 if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12149 eval "ac_cv_func_openlog=yes"
12151 echo "configure: failed program was:" >&5
12152 cat conftest.$ac_ext >&5
12154 eval "ac_cv_func_openlog=no"
12159 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12160 echo "$ac_t""yes" 1>&6
12163 echo "$ac_t""no" 1>&6
12166 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12167 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12169 ol_enable_syslog=$ac_cv_func_openlog
12172 if test $ol_enable_dmalloc != no ; then
12173 for ac_hdr in dmalloc.h
12175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12177 echo "configure:12178: checking for $ac_hdr" >&5
12178 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12187 { (eval echo configure:12188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12189 if test -z "$ac_err"; then
12191 eval "ac_cv_header_$ac_safe=yes"
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12197 eval "ac_cv_header_$ac_safe=no"
12201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12202 echo "$ac_t""yes" 1>&6
12203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12204 cat >> confdefs.h <<EOF
12205 #define $ac_tr_hdr 1
12209 echo "$ac_t""no" 1>&6
12213 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12214 echo "configure:12215: checking for dmalloc_shutdown in -ldmalloc" >&5
12215 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12219 ac_save_LIBS="$LIBS"
12220 LIBS="-ldmalloc $LIBS"
12221 cat > conftest.$ac_ext <<EOF
12222 #line 12223 "configure"
12223 #include "confdefs.h"
12224 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12227 char dmalloc_shutdown();
12233 if { (eval echo configure:12234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12235 eval "ac_cv_lib_$ac_lib_var=yes"
12237 echo "configure: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12240 eval "ac_cv_lib_$ac_lib_var=no"
12243 LIBS="$ac_save_LIBS"
12246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12247 echo "$ac_t""yes" 1>&6
12248 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12250 cat >> confdefs.h <<EOF
12251 #define $ac_tr_lib 1
12254 LIBS="-ldmalloc $LIBS"
12257 echo "$ac_t""no" 1>&6
12262 if test $ol_enable_tcl != no ; then
12263 for ac_hdr in tcl.h
12265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12267 echo "configure:12268: checking for $ac_hdr" >&5
12268 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12271 cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12277 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12279 if test -z "$ac_err"; then
12281 eval "ac_cv_header_$ac_safe=yes"
12284 echo "configure: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12287 eval "ac_cv_header_$ac_safe=no"
12291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12294 cat >> confdefs.h <<EOF
12295 #define $ac_tr_hdr 1
12299 echo "$ac_t""no" 1>&6
12304 if test $ac_cv_header_tcl_h != yes ; then
12307 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12308 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12309 echo "configure:12310: checking for main in -l$lib" >&5
12310 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12312 echo $ac_n "(cached) $ac_c" 1>&6
12314 ac_save_LIBS="$LIBS"
12315 LIBS="-l$lib $LIBS"
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12324 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12326 eval "ac_cv_lib_$ac_lib_var=yes"
12328 echo "configure: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12331 eval "ac_cv_lib_$ac_lib_var=no"
12334 LIBS="$ac_save_LIBS"
12337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12338 echo "$ac_t""yes" 1>&6
12340 if test x"$ol_with_tcl_module" = "xstatic" ; then
12341 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12343 MOD_TCL_LIB="-l${lib}"
12346 echo "$ac_t""no" 1>&6
12353 if test $have_tcl != yes ; then
12354 echo "configure: warning: could not find -ltcl" 1>&2
12355 if test $ol_enable_tcl = yes ; then
12356 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12364 for ac_hdr in termcap.h ncurses.h
12366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12368 echo "configure:12369: checking for $ac_hdr" >&5
12369 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12370 echo $ac_n "(cached) $ac_c" 1>&6
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12378 { (eval echo configure:12379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12380 if test -z "$ac_err"; then
12382 eval "ac_cv_header_$ac_safe=yes"
12385 echo "configure: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12388 eval "ac_cv_header_$ac_safe=no"
12392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12393 echo "$ac_t""yes" 1>&6
12394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12395 cat >> confdefs.h <<EOF
12396 #define $ac_tr_hdr 1
12400 echo "$ac_t""no" 1>&6
12405 if test $ol_link_termcap = no ; then
12406 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12407 echo "configure:12408: checking for tputs in -ltermcap" >&5
12408 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12412 ac_save_LIBS="$LIBS"
12413 LIBS="-ltermcap $LIBS"
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* Override any gcc2 internal prototype to avoid an error. */
12418 /* We use char because int might match the return type of a gcc2
12419 builtin and then its argument prototype would still apply. */
12426 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12428 eval "ac_cv_lib_$ac_lib_var=yes"
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12433 eval "ac_cv_lib_$ac_lib_var=no"
12436 LIBS="$ac_save_LIBS"
12439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12443 echo "$ac_t""no" 1>&6
12447 if test $have_termcap = yes ; then
12448 cat >> confdefs.h <<\EOF
12449 #define HAVE_TERMCAP 1
12452 ol_link_termcap=yes
12453 TERMCAP_LIBS=-ltermcap
12457 if test $ol_link_termcap = no ; then
12458 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12459 echo "configure:12460: checking for initscr in -lncurses" >&5
12460 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12461 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12462 echo $ac_n "(cached) $ac_c" 1>&6
12464 ac_save_LIBS="$LIBS"
12465 LIBS="-lncurses $LIBS"
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469 /* Override any gcc2 internal prototype to avoid an error. */
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12480 eval "ac_cv_lib_$ac_lib_var=yes"
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12485 eval "ac_cv_lib_$ac_lib_var=no"
12488 LIBS="$ac_save_LIBS"
12491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6
12495 echo "$ac_t""no" 1>&6
12499 if test $have_ncurses = yes ; then
12500 cat >> confdefs.h <<\EOF
12501 #define HAVE_NCURSES 1
12504 ol_link_termcap=yes
12505 TERMCAP_LIBS=-lncurses
12509 if test $ol_link_termcap = no ; then
12510 cat >> confdefs.h <<\EOF
12511 #define NO_TERMCAP 1
12518 if test $ol_with_cyrus_sasl != no ; then
12519 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12520 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12521 echo "configure:12522: checking for sasl.h" >&5
12522 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12531 { (eval echo configure:12532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12533 if test -z "$ac_err"; then
12535 eval "ac_cv_header_$ac_safe=yes"
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12541 eval "ac_cv_header_$ac_safe=no"
12545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12549 echo "$ac_t""no" 1>&6
12553 if test $ac_cv_header_sasl_h = yes ; then
12554 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12555 echo "configure:12556: checking for sasl_client_init in -lsasl" >&5
12556 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12558 echo $ac_n "(cached) $ac_c" 1>&6
12560 ac_save_LIBS="$LIBS"
12561 LIBS="-lsasl $LIBS"
12562 cat > conftest.$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 /* Override any gcc2 internal prototype to avoid an error. */
12566 /* We use char because int might match the return type of a gcc2
12567 builtin and then its argument prototype would still apply. */
12568 char sasl_client_init();
12574 if { (eval echo configure:12575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12576 eval "ac_cv_lib_$ac_lib_var=yes"
12578 echo "configure: failed program was:" >&5
12579 cat conftest.$ac_ext >&5
12581 eval "ac_cv_lib_$ac_lib_var=no"
12584 LIBS="$ac_save_LIBS"
12587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12588 echo "$ac_t""yes" 1>&6
12589 have_cyrus_sasl=yes
12591 echo "$ac_t""no" 1>&6
12596 if test $have_cyrus_sasl != no ; then
12598 cat >> confdefs.h <<\EOF
12599 #define HAVE_CYRUS_SASL 1
12606 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12607 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12611 if test $cross_compiling != yes ; then
12613 if test -r /dev/urandom ; then
12614 dev="/dev/urandom";
12615 elif test -r /idev/urandom ; then
12616 dev="/idev/urandom";
12617 elif test -r /dev/srandom ; then
12618 dev="/dev/srandom";
12619 elif test -r /dev/random ; then
12621 elif test -r /idev/random ; then
12622 dev="/idev/random";
12625 if test $dev != no ; then
12626 cat >> confdefs.h <<EOF
12627 #define URANDOM_DEVICE "$dev"
12634 if test $ol_with_fetch != no ; then
12636 LIBS="-lfetch -lcom_err $LIBS"
12637 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12638 echo "configure:12639: checking fetch(3) library" >&5
12639 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12640 echo $ac_n "(cached) $ac_c" 1>&6
12643 cat > conftest.$ac_ext <<EOF
12644 #line 12645 "configure"
12645 #include "confdefs.h"
12647 #include <sys/param.h>
12651 struct url *u = fetchParseURL("file:///");
12654 if { (eval echo configure:12655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12656 ol_cv_lib_fetch=yes
12658 echo "configure: failed program was:" >&5
12659 cat conftest.$ac_ext >&5
12666 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12668 if test $ol_cv_lib_fetch != no ; then
12669 ol_link_fetch="-lfetch -lcom_err"
12670 cat >> confdefs.h <<\EOF
12671 #define HAVE_FETCH 1
12677 if test $ol_cv_lib_fetch != no ; then
12678 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12679 ol_link_fetch=freebsd
12681 elif test $ol_with_fetch != auto ; then
12682 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12686 ol_link_readline=no
12687 if test $ol_with_readline != no ; then
12688 for ac_hdr in readline/readline.h readline/history.h
12690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12692 echo "configure:12693: checking for $ac_hdr" >&5
12693 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12694 echo $ac_n "(cached) $ac_c" 1>&6
12696 cat > conftest.$ac_ext <<EOF
12697 #line 12698 "configure"
12698 #include "confdefs.h"
12701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12702 { (eval echo configure:12703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12704 if test -z "$ac_err"; then
12706 eval "ac_cv_header_$ac_safe=yes"
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 eval "ac_cv_header_$ac_safe=no"
12716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12717 echo "$ac_t""yes" 1>&6
12718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12719 cat >> confdefs.h <<EOF
12720 #define $ac_tr_hdr 1
12724 echo "$ac_t""no" 1>&6
12729 if test $ac_cv_header_readline_readline_h = yes ; then
12731 LIBS="$TERMCAP_LIBS $LIBS"
12732 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12733 echo "configure:12734: checking for readline in -lreadline" >&5
12734 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12735 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12736 echo $ac_n "(cached) $ac_c" 1>&6
12738 ac_save_LIBS="$LIBS"
12739 LIBS="-lreadline $LIBS"
12740 cat > conftest.$ac_ext <<EOF
12741 #line 12742 "configure"
12742 #include "confdefs.h"
12743 /* Override any gcc2 internal prototype to avoid an error. */
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12752 if { (eval echo configure:12753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12754 eval "ac_cv_lib_$ac_lib_var=yes"
12756 echo "configure: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12759 eval "ac_cv_lib_$ac_lib_var=no"
12762 LIBS="$ac_save_LIBS"
12765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12766 echo "$ac_t""yes" 1>&6
12769 echo "$ac_t""no" 1>&6
12775 if test $have_readline = yes ; then
12776 ol_with_readline=found
12777 ol_link_readline=yes
12779 READLINE_LIBS="-lreadline"
12784 if test $ol_link_readline = yes ; then
12785 cat >> confdefs.h <<\EOF
12786 #define HAVE_READLINE 1
12792 if test $ol_enable_crypt != no ; then
12793 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12794 echo "configure:12795: checking for crypt" >&5
12795 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12798 cat > conftest.$ac_ext <<EOF
12799 #line 12800 "configure"
12800 #include "confdefs.h"
12801 /* System header to define __stub macros and hopefully few prototypes,
12802 which can conflict with char crypt(); below. */
12803 #include <assert.h>
12804 /* Override any gcc2 internal prototype to avoid an error. */
12805 /* We use char because int might match the return type of a gcc2
12806 builtin and then its argument prototype would still apply. */
12812 /* The GNU C library defines this for functions which it implements
12813 to always fail with ENOSYS. Some functions are actually named
12814 something starting with __ and the normal name is an alias. */
12815 #if defined (__stub_crypt) || defined (__stub___crypt)
12823 if { (eval echo configure:12824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12825 eval "ac_cv_func_crypt=yes"
12827 echo "configure: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12830 eval "ac_cv_func_crypt=no"
12835 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12836 echo "$ac_t""yes" 1>&6
12839 echo "$ac_t""no" 1>&6
12841 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12842 echo "configure:12843: checking for crypt in -lcrypt" >&5
12843 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12844 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12847 ac_save_LIBS="$LIBS"
12848 LIBS="-lcrypt $LIBS"
12849 cat > conftest.$ac_ext <<EOF
12850 #line 12851 "configure"
12851 #include "confdefs.h"
12852 /* Override any gcc2 internal prototype to avoid an error. */
12853 /* We use char because int might match the return type of a gcc2
12854 builtin and then its argument prototype would still apply. */
12861 if { (eval echo configure:12862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12863 eval "ac_cv_lib_$ac_lib_var=yes"
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12868 eval "ac_cv_lib_$ac_lib_var=no"
12871 LIBS="$ac_save_LIBS"
12874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12875 echo "$ac_t""yes" 1>&6
12876 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12879 echo "$ac_t""no" 1>&6
12886 if test $have_crypt = yes ; then
12887 cat >> confdefs.h <<\EOF
12888 #define HAVE_CRYPT 1
12892 echo "configure: warning: could not find crypt" 1>&2
12893 if test $ol_enable_crypt = yes ; then
12894 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12897 echo "configure: warning: disabling crypt support" 1>&2
12902 if test $ol_enable_proctitle != no ; then
12903 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12904 echo "configure:12905: checking for setproctitle" >&5
12905 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 /* System header to define __stub macros and hopefully few prototypes,
12912 which can conflict with char setproctitle(); below. */
12913 #include <assert.h>
12914 /* Override any gcc2 internal prototype to avoid an error. */
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917 char setproctitle();
12922 /* The GNU C library defines this for functions which it implements
12923 to always fail with ENOSYS. Some functions are actually named
12924 something starting with __ and the normal name is an alias. */
12925 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12933 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12935 eval "ac_cv_func_setproctitle=yes"
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12940 eval "ac_cv_func_setproctitle=no"
12945 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12946 echo "$ac_t""yes" 1>&6
12947 have_setproctitle=yes
12949 echo "$ac_t""no" 1>&6
12951 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12952 echo "configure:12953: checking for setproctitle in -lutil" >&5
12953 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12954 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12955 echo $ac_n "(cached) $ac_c" 1>&6
12957 ac_save_LIBS="$LIBS"
12958 LIBS="-lutil $LIBS"
12959 cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12962 /* Override any gcc2 internal prototype to avoid an error. */
12963 /* We use char because int might match the return type of a gcc2
12964 builtin and then its argument prototype would still apply. */
12965 char setproctitle();
12971 if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12973 eval "ac_cv_lib_$ac_lib_var=yes"
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12978 eval "ac_cv_lib_$ac_lib_var=no"
12981 LIBS="$ac_save_LIBS"
12984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12985 echo "$ac_t""yes" 1>&6
12986 have_setproctitle=yes
12987 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12989 echo "$ac_t""no" 1>&6
12990 have_setproctitle=no
12991 LIBOBJS="$LIBOBJS setproctitle.o"
12992 LIBSRCS="$LIBSRCS setproctitle.c"
12998 if test $have_setproctitle = yes ; then
12999 cat >> confdefs.h <<\EOF
13000 #define HAVE_SETPROCTITLE 1
13006 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13007 echo "configure:13008: checking for ANSI C header files" >&5
13008 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13011 cat > conftest.$ac_ext <<EOF
13012 #line 13013 "configure"
13013 #include "confdefs.h"
13014 #include <stdlib.h>
13015 #include <stdarg.h>
13016 #include <string.h>
13019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13020 { (eval echo configure:13021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13022 if test -z "$ac_err"; then
13024 ac_cv_header_stdc=yes
13027 echo "configure: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13030 ac_cv_header_stdc=no
13034 if test $ac_cv_header_stdc = yes; then
13035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13036 cat > conftest.$ac_ext <<EOF
13037 #line 13038 "configure"
13038 #include "confdefs.h"
13039 #include <string.h>
13041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13042 egrep "memchr" >/dev/null 2>&1; then
13046 ac_cv_header_stdc=no
13052 if test $ac_cv_header_stdc = yes; then
13053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13054 cat > conftest.$ac_ext <<EOF
13055 #line 13056 "configure"
13056 #include "confdefs.h"
13057 #include <stdlib.h>
13059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13060 egrep "free" >/dev/null 2>&1; then
13064 ac_cv_header_stdc=no
13070 if test $ac_cv_header_stdc = yes; then
13071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13072 if test "$cross_compiling" = yes; then
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13079 #if ((' ' & 0x0FF) == 0x020)
13080 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13081 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13083 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13084 || ('j' <= (c) && (c) <= 'r') \
13085 || ('s' <= (c) && (c) <= 'z'))
13086 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13089 int main () { int i; for (i = 0; i < 256; i++)
13090 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13094 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13098 echo "configure: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13101 ac_cv_header_stdc=no
13109 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13110 if test $ac_cv_header_stdc = yes; then
13111 cat >> confdefs.h <<\EOF
13112 #define STDC_HEADERS 1
13117 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13118 echo "configure:13119: checking for mode_t" >&5
13119 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13120 echo $ac_n "(cached) $ac_c" 1>&6
13122 cat > conftest.$ac_ext <<EOF
13123 #line 13124 "configure"
13124 #include "confdefs.h"
13125 #include <sys/types.h>
13127 #include <stdlib.h>
13128 #include <stddef.h>
13132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13133 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13135 eval "ac_cv_type_mode_t=yes"
13138 eval "ac_cv_type_mode_t=no"
13143 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13146 echo "$ac_t""no" 1>&6
13147 cat >> confdefs.h <<EOF
13153 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13154 echo "configure:13155: checking for off_t" >&5
13155 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13156 echo $ac_n "(cached) $ac_c" 1>&6
13158 cat > conftest.$ac_ext <<EOF
13159 #line 13160 "configure"
13160 #include "confdefs.h"
13161 #include <sys/types.h>
13163 #include <stdlib.h>
13164 #include <stddef.h>
13168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13169 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13171 eval "ac_cv_type_off_t=yes"
13174 eval "ac_cv_type_off_t=no"
13179 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13180 echo "$ac_t""yes" 1>&6
13182 echo "$ac_t""no" 1>&6
13183 cat >> confdefs.h <<EOF
13189 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13190 echo "configure:13191: checking for pid_t" >&5
13191 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13192 echo $ac_n "(cached) $ac_c" 1>&6
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 #include <sys/types.h>
13199 #include <stdlib.h>
13200 #include <stddef.h>
13204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13205 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13207 eval "ac_cv_type_pid_t=yes"
13210 eval "ac_cv_type_pid_t=no"
13215 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13216 echo "$ac_t""yes" 1>&6
13218 echo "$ac_t""no" 1>&6
13219 cat >> confdefs.h <<EOF
13225 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13226 echo "configure:13227: checking for ptrdiff_t" >&5
13227 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13230 cat > conftest.$ac_ext <<EOF
13231 #line 13232 "configure"
13232 #include "confdefs.h"
13233 #include <stddef.h>
13238 if { (eval echo configure:13239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13240 am_cv_type_ptrdiff_t=yes
13242 echo "configure: failed program was:" >&5
13243 cat conftest.$ac_ext >&5
13245 am_cv_type_ptrdiff_t=no
13250 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13251 if test $am_cv_type_ptrdiff_t = yes; then
13252 cat >> confdefs.h <<\EOF
13253 #define HAVE_PTRDIFF_T 1
13258 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13259 echo "configure:13260: checking return type of signal handlers" >&5
13260 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13261 echo $ac_n "(cached) $ac_c" 1>&6
13263 cat > conftest.$ac_ext <<EOF
13264 #line 13265 "configure"
13265 #include "confdefs.h"
13266 #include <sys/types.h>
13267 #include <signal.h>
13272 extern "C" void (*signal (int, void (*)(int)))(int);
13274 void (*signal ()) ();
13281 if { (eval echo configure:13282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13283 ac_cv_type_signal=void
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13288 ac_cv_type_signal=int
13293 echo "$ac_t""$ac_cv_type_signal" 1>&6
13294 cat >> confdefs.h <<EOF
13295 #define RETSIGTYPE $ac_cv_type_signal
13299 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13300 echo "configure:13301: checking for size_t" >&5
13301 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13302 echo $ac_n "(cached) $ac_c" 1>&6
13304 cat > conftest.$ac_ext <<EOF
13305 #line 13306 "configure"
13306 #include "confdefs.h"
13307 #include <sys/types.h>
13309 #include <stdlib.h>
13310 #include <stddef.h>
13314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13315 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13317 eval "ac_cv_type_size_t=yes"
13320 eval "ac_cv_type_size_t=no"
13325 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13326 echo "$ac_t""yes" 1>&6
13328 echo "$ac_t""no" 1>&6
13329 cat >> confdefs.h <<EOF
13330 #define size_t unsigned
13336 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13337 echo "configure:13338: checking for ssize_t" >&5
13338 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13339 echo $ac_n "(cached) $ac_c" 1>&6
13341 cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13344 #include <sys/types.h>
13346 #include <stdlib.h>
13347 #include <stddef.h>
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13354 eval "ac_cv_type_ssize_t=yes"
13357 eval "ac_cv_type_ssize_t=no"
13362 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13363 echo "$ac_t""yes" 1>&6
13365 echo "$ac_t""no" 1>&6
13366 cat >> confdefs.h <<EOF
13367 #define ssize_t signed int
13372 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13373 echo "configure:13374: checking for caddr_t" >&5
13374 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13375 echo $ac_n "(cached) $ac_c" 1>&6
13377 cat > conftest.$ac_ext <<EOF
13378 #line 13379 "configure"
13379 #include "confdefs.h"
13380 #include <sys/types.h>
13382 #include <stdlib.h>
13383 #include <stddef.h>
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13390 eval "ac_cv_type_caddr_t=yes"
13393 eval "ac_cv_type_caddr_t=no"
13398 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13399 echo "$ac_t""yes" 1>&6
13401 echo "$ac_t""no" 1>&6
13402 cat >> confdefs.h <<EOF
13403 #define caddr_t char *
13409 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13410 echo "configure:13411: checking for socklen_t" >&5
13411 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
13414 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13418 #ifdef HAVE_SYS_TYPES_H
13419 #include <sys/types.h>
13421 #ifdef HAVE_SYS_SOCKET_H
13422 #include <sys/socket.h>
13429 if { (eval echo configure:13430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13431 ol_cv_type_socklen_t=yes
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13436 ol_cv_type_socklen_t=no
13441 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13442 if test $ol_cv_type_socklen_t = no; then
13443 cat >> confdefs.h <<\EOF
13444 #define socklen_t int
13449 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13450 echo "configure:13451: checking for member st_blksize in aggregate type struct stat" >&5
13451 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13457 #include <sys/types.h>
13458 #include <sys/stat.h>
13460 struct stat foo; foo.st_blksize;
13463 if { (eval echo configure:13464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13465 ac_cv_c_struct_member_st_blksize=yes
13467 echo "configure: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13470 ac_cv_c_struct_member_st_blksize=no
13475 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13476 st_blksize="$ac_cv_c_struct_member_st_blksize"
13477 if test $ac_cv_c_struct_member_st_blksize = yes; then
13478 cat >> confdefs.h <<\EOF
13479 #define HAVE_ST_BLKSIZE 1
13484 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13485 echo "configure:13486: checking whether time.h and sys/time.h may both be included" >&5
13486 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13487 echo $ac_n "(cached) $ac_c" 1>&6
13489 cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13492 #include <sys/types.h>
13493 #include <sys/time.h>
13499 if { (eval echo configure:13500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13501 ac_cv_header_time=yes
13503 echo "configure: failed program was:" >&5
13504 cat conftest.$ac_ext >&5
13506 ac_cv_header_time=no
13511 echo "$ac_t""$ac_cv_header_time" 1>&6
13512 if test $ac_cv_header_time = yes; then
13513 cat >> confdefs.h <<\EOF
13514 #define TIME_WITH_SYS_TIME 1
13519 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13520 echo "configure:13521: checking whether struct tm is in sys/time.h or time.h" >&5
13521 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13522 echo $ac_n "(cached) $ac_c" 1>&6
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 #include <sys/types.h>
13530 struct tm *tp; tp->tm_sec;
13533 if { (eval echo configure:13534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13535 ac_cv_struct_tm=time.h
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13540 ac_cv_struct_tm=sys/time.h
13545 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13546 if test $ac_cv_struct_tm = sys/time.h; then
13547 cat >> confdefs.h <<\EOF
13548 #define TM_IN_SYS_TIME 1
13553 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13554 echo "configure:13555: checking for uid_t in sys/types.h" >&5
13555 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13556 echo $ac_n "(cached) $ac_c" 1>&6
13558 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure"
13560 #include "confdefs.h"
13561 #include <sys/types.h>
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 egrep "uid_t" >/dev/null 2>&1; then
13566 ac_cv_type_uid_t=yes
13569 ac_cv_type_uid_t=no
13575 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13576 if test $ac_cv_type_uid_t = no; then
13577 cat >> confdefs.h <<\EOF
13581 cat >> confdefs.h <<\EOF
13587 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13588 echo "configure:13589: checking for sig_atomic_t" >&5
13589 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 #include <signal.h>
13597 sig_atomic_t atomic;
13600 if { (eval echo configure:13601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13602 ol_cv_type_sig_atomic_t=yes
13604 echo "configure: failed program was:" >&5
13605 cat conftest.$ac_ext >&5
13607 ol_cv_type_sig_atomic_t=no
13612 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13613 if test $ol_cv_type_sig_atomic_t = no; then
13614 cat >> confdefs.h <<\EOF
13615 #define sig_atomic_t int
13622 # test for pw_gecos in struct passwd
13623 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13624 echo "configure:13625: checking struct passwd for pw_gecos" >&5
13625 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13626 echo $ac_n "(cached) $ac_c" 1>&6
13629 cat > conftest.$ac_ext <<EOF
13630 #line 13631 "configure"
13631 #include "confdefs.h"
13636 pwd.pw_gecos = pwd.pw_name;
13640 if { (eval echo configure:13641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13642 ol_cv_struct_passwd_pw_gecos=yes
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 ol_cv_struct_passwd_pw_gecos=no
13652 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13653 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13654 cat >> confdefs.h <<\EOF
13655 #define HAVE_PW_GECOS 1
13660 # test for pw_passwd in struct passwd
13661 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13662 echo "configure:13663: checking struct passwd for pw_passwd" >&5
13663 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13664 echo $ac_n "(cached) $ac_c" 1>&6
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13674 pwd.pw_passwd = pwd.pw_name;
13678 if { (eval echo configure:13679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13680 ol_cv_struct_passwd_pw_passwd=yes
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13685 ol_cv_struct_passwd_pw_passwd=no
13690 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13691 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13692 cat >> confdefs.h <<\EOF
13693 #define HAVE_PW_PASSWD 1
13699 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13700 echo "configure:13701: checking if toupper() requires islower()" >&5
13701 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13702 echo $ac_n "(cached) $ac_c" 1>&6
13705 if test "$cross_compiling" = yes; then
13706 ol_cv_c_upper_lower=safe
13708 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13715 if ('C' == toupper('C'))
13721 if { (eval echo configure:13722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13723 ol_cv_c_upper_lower=no
13725 echo "configure: failed program was:" >&5
13726 cat conftest.$ac_ext >&5
13728 ol_cv_c_upper_lower=yes
13735 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13736 if test $ol_cv_c_upper_lower != no ; then
13737 cat >> confdefs.h <<\EOF
13738 #define C_UPPER_LOWER 1
13743 echo $ac_n "checking for working const""... $ac_c" 1>&6
13744 echo "configure:13745: checking for working const" >&5
13745 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13754 /* Ultrix mips cc rejects this. */
13755 typedef int charset[2]; const charset x;
13756 /* SunOS 4.1.1 cc rejects this. */
13757 char const *const *ccp;
13759 /* NEC SVR4.0.2 mips cc rejects this. */
13760 struct point {int x, y;};
13761 static struct point const zero = {0,0};
13762 /* AIX XL C 1.02.0.0 rejects this.
13763 It does not let you subtract one const X* pointer from another in an arm
13764 of an if-expression whose if-part is not a constant expression */
13765 const char *g = "string";
13766 ccp = &g + (g ? g-g : 0);
13767 /* HPUX 7.0 cc rejects these. */
13770 ccp = (char const *const *) p;
13771 { /* SCO 3.2v4 cc rejects this. */
13773 char const *s = 0 ? (char *) 0 : (char const *) 0;
13777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13778 int x[] = {25, 17};
13779 const int *foo = &x[0];
13782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13783 typedef const int *iptr;
13787 { /* AIX XL C 1.02.0.0 rejects this saying
13788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13789 struct s { int j; const int *ap[3]; };
13790 struct s *b; b->j = 5;
13792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13793 const int foo = 10;
13798 if { (eval echo configure:13799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13810 echo "$ac_t""$ac_cv_c_const" 1>&6
13811 if test $ac_cv_c_const = no; then
13812 cat >> confdefs.h <<\EOF
13818 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13819 echo "configure:13820: checking if compiler understands volatile" >&5
13820 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13821 echo $ac_n "(cached) $ac_c" 1>&6
13823 cat > conftest.$ac_ext <<EOF
13824 #line 13825 "configure"
13825 #include "confdefs.h"
13828 volatile int a; int * volatile b = x ? &y : &z;
13829 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13833 if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13835 ol_cv_c_volatile=yes
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13840 ol_cv_c_volatile=no
13845 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13846 if test $ol_cv_c_volatile = yes; then
13849 cat >> confdefs.h <<\EOF
13856 if test $cross_compiling = yes ; then
13857 cat >> confdefs.h <<\EOF
13858 #define CROSS_COMPILING 1
13862 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13863 echo "configure:13864: checking whether byte ordering is bigendian" >&5
13864 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13865 echo $ac_n "(cached) $ac_c" 1>&6
13867 ac_cv_c_bigendian=unknown
13868 # See if sys/param.h defines the BYTE_ORDER macro.
13869 cat > conftest.$ac_ext <<EOF
13870 #line 13871 "configure"
13871 #include "confdefs.h"
13872 #include <sys/types.h>
13873 #include <sys/param.h>
13876 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13877 bogus endian macros
13881 if { (eval echo configure:13882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13883 # It does; now see whether it defined to BIG_ENDIAN or not.
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 #include <sys/types.h>
13888 #include <sys/param.h>
13891 #if BYTE_ORDER != BIG_ENDIAN
13896 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13898 ac_cv_c_bigendian=yes
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13903 ac_cv_c_bigendian=no
13907 echo "configure: failed program was:" >&5
13908 cat conftest.$ac_ext >&5
13911 if test $ac_cv_c_bigendian = unknown; then
13912 if test "$cross_compiling" = yes; then
13913 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13915 cat > conftest.$ac_ext <<EOF
13916 #line 13917 "configure"
13917 #include "confdefs.h"
13919 /* Are we little or big endian? From Harbison&Steele. */
13923 char c[sizeof (long)];
13926 exit (u.c[sizeof (long) - 1] == 1);
13929 if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13931 ac_cv_c_bigendian=no
13933 echo "configure: failed program was:" >&5
13934 cat conftest.$ac_ext >&5
13936 ac_cv_c_bigendian=yes
13944 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13945 if test $ac_cv_c_bigendian = yes; then
13946 cat >> confdefs.h <<\EOF
13947 #define WORDS_BIGENDIAN 1
13954 echo $ac_n "checking size of short""... $ac_c" 1>&6
13955 echo "configure:13956: checking size of short" >&5
13956 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13959 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 #include "confdefs.h"
13964 #include <sys/types.h>
13968 switch (0) case 0: case (sizeof (short) == $ac_size):;
13971 if { (eval echo configure:13972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13973 ac_cv_sizeof_short=$ac_size
13975 echo "configure: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13979 if test x$ac_cv_sizeof_short != x ; then break; fi
13984 if test x$ac_cv_sizeof_short = x ; then
13985 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
13987 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13988 cat >> confdefs.h <<EOF
13989 #define SIZEOF_SHORT $ac_cv_sizeof_short
13993 echo $ac_n "checking size of int""... $ac_c" 1>&6
13994 echo "configure:13995: checking size of int" >&5
13995 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
13998 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
13999 cat > conftest.$ac_ext <<EOF
14000 #line 14001 "configure"
14001 #include "confdefs.h"
14002 #include "confdefs.h"
14003 #include <sys/types.h>
14007 switch (0) case 0: case (sizeof (int) == $ac_size):;
14010 if { (eval echo configure:14011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14012 ac_cv_sizeof_int=$ac_size
14014 echo "configure: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14018 if test x$ac_cv_sizeof_int != x ; then break; fi
14023 if test x$ac_cv_sizeof_int = x ; then
14024 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14026 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14027 cat >> confdefs.h <<EOF
14028 #define SIZEOF_INT $ac_cv_sizeof_int
14032 echo $ac_n "checking size of long""... $ac_c" 1>&6
14033 echo "configure:14034: checking size of long" >&5
14034 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14035 echo $ac_n "(cached) $ac_c" 1>&6
14037 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14038 cat > conftest.$ac_ext <<EOF
14039 #line 14040 "configure"
14040 #include "confdefs.h"
14041 #include "confdefs.h"
14042 #include <sys/types.h>
14046 switch (0) case 0: case (sizeof (long) == $ac_size):;
14049 if { (eval echo configure:14050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14051 ac_cv_sizeof_long=$ac_size
14053 echo "configure: failed program was:" >&5
14054 cat conftest.$ac_ext >&5
14057 if test x$ac_cv_sizeof_long != x ; then break; fi
14062 if test x$ac_cv_sizeof_long = x ; then
14063 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14065 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14066 cat >> confdefs.h <<EOF
14067 #define SIZEOF_LONG $ac_cv_sizeof_long
14072 if test "$ac_cv_sizeof_int" -lt 4 ; then
14073 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14075 cat >> confdefs.h <<\EOF
14076 #define LBER_INT_T long
14080 cat >> confdefs.h <<\EOF
14081 #define LBER_INT_T int
14086 cat >> confdefs.h <<\EOF
14087 #define LBER_LEN_T long
14090 cat >> confdefs.h <<\EOF
14091 #define LBER_SOCKET_T int
14094 cat >> confdefs.h <<\EOF
14095 #define LBER_TAG_T long
14099 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14100 echo "configure:14101: checking for 8-bit clean memcmp" >&5
14101 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14102 echo $ac_n "(cached) $ac_c" 1>&6
14104 if test "$cross_compiling" = yes; then
14105 ac_cv_func_memcmp_clean=no
14107 cat > conftest.$ac_ext <<EOF
14108 #line 14109 "configure"
14109 #include "confdefs.h"
14113 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14114 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14118 if { (eval echo configure:14119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14120 ac_cv_func_memcmp_clean=yes
14122 echo "configure: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14125 ac_cv_func_memcmp_clean=no
14132 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14133 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14135 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14136 echo "configure:14137: checking for strftime" >&5
14137 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14138 echo $ac_n "(cached) $ac_c" 1>&6
14140 cat > conftest.$ac_ext <<EOF
14141 #line 14142 "configure"
14142 #include "confdefs.h"
14143 /* System header to define __stub macros and hopefully few prototypes,
14144 which can conflict with char strftime(); below. */
14145 #include <assert.h>
14146 /* Override any gcc2 internal prototype to avoid an error. */
14147 /* We use char because int might match the return type of a gcc2
14148 builtin and then its argument prototype would still apply. */
14154 /* The GNU C library defines this for functions which it implements
14155 to always fail with ENOSYS. Some functions are actually named
14156 something starting with __ and the normal name is an alias. */
14157 #if defined (__stub_strftime) || defined (__stub___strftime)
14165 if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14167 eval "ac_cv_func_strftime=yes"
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14172 eval "ac_cv_func_strftime=no"
14177 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14178 echo "$ac_t""yes" 1>&6
14179 cat >> confdefs.h <<\EOF
14180 #define HAVE_STRFTIME 1
14184 echo "$ac_t""no" 1>&6
14185 # strftime is in -lintl on SCO UNIX.
14186 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14187 echo "configure:14188: checking for strftime in -lintl" >&5
14188 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14190 echo $ac_n "(cached) $ac_c" 1>&6
14192 ac_save_LIBS="$LIBS"
14193 LIBS="-lintl $LIBS"
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14197 /* Override any gcc2 internal prototype to avoid an error. */
14198 /* We use char because int might match the return type of a gcc2
14199 builtin and then its argument prototype would still apply. */
14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14208 eval "ac_cv_lib_$ac_lib_var=yes"
14210 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14213 eval "ac_cv_lib_$ac_lib_var=no"
14216 LIBS="$ac_save_LIBS"
14219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14220 echo "$ac_t""yes" 1>&6
14221 cat >> confdefs.h <<\EOF
14222 #define HAVE_STRFTIME 1
14225 LIBS="-lintl $LIBS"
14227 echo "$ac_t""no" 1>&6
14233 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14234 echo "configure:14235: checking for inet_aton()" >&5
14235 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14236 echo $ac_n "(cached) $ac_c" 1>&6
14238 cat > conftest.$ac_ext <<EOF
14239 #line 14240 "configure"
14240 #include "confdefs.h"
14242 #ifdef HAVE_SYS_TYPES_H
14243 # include <sys/types.h>
14245 #ifdef HAVE_SYS_SOCKET_H
14246 # include <sys/socket.h>
14247 # ifdef HAVE_SYS_SELECT_H
14248 # include <sys/select.h>
14250 # include <netinet/in.h>
14251 # ifdef HAVE_ARPA_INET_H
14252 # include <arpa/inet.h>
14258 int rc = inet_aton( "255.255.255.255", &in );
14261 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14263 ol_cv_func_inet_aton=yes
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14268 ol_cv_func_inet_aton=no
14273 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14274 if test $ol_cv_func_inet_aton != no; then
14275 cat >> confdefs.h <<\EOF
14276 #define HAVE_INET_ATON 1
14282 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14283 echo "configure:14284: checking for _spawnlp" >&5
14284 if eval "test \"\${ac_cv_func__spawnlp+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 _spawnlp(); 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. */
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__spawnlp) || defined (__stub____spawnlp)
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__spawnlp=yes"
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14319 eval "ac_cv_func__spawnlp=no"
14324 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14325 echo "$ac_t""yes" 1>&6
14326 cat >> confdefs.h <<\EOF
14327 #define HAVE_SPAWNLP 1
14331 echo "$ac_t""no" 1>&6
14335 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14336 echo "configure:14337: checking for _snprintf" >&5
14337 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14338 echo $ac_n "(cached) $ac_c" 1>&6
14340 cat > conftest.$ac_ext <<EOF
14341 #line 14342 "configure"
14342 #include "confdefs.h"
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char _snprintf(); below. */
14345 #include <assert.h>
14346 /* Override any gcc2 internal prototype to avoid an error. */
14347 /* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14354 /* The GNU C library defines this for functions which it implements
14355 to always fail with ENOSYS. Some functions are actually named
14356 something starting with __ and the normal name is an alias. */
14357 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14367 eval "ac_cv_func__snprintf=yes"
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14372 eval "ac_cv_func__snprintf=no"
14377 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
14379 ac_cv_func_snprintf=yes
14380 cat >> confdefs.h <<\EOF
14381 #define snprintf _snprintf
14386 echo "$ac_t""no" 1>&6
14390 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14391 echo "configure:14392: checking for _vsnprintf" >&5
14392 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14395 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 /* System header to define __stub macros and hopefully few prototypes,
14399 which can conflict with char _vsnprintf(); below. */
14400 #include <assert.h>
14401 /* Override any gcc2 internal prototype to avoid an error. */
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14420 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14422 eval "ac_cv_func__vsnprintf=yes"
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14427 eval "ac_cv_func__vsnprintf=no"
14432 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14433 echo "$ac_t""yes" 1>&6
14434 ac_cv_func_vsnprintf=yes
14435 cat >> confdefs.h <<\EOF
14436 #define vsnprintf _vsnprintf
14441 echo "$ac_t""no" 1>&6
14445 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14446 echo "configure:14447: checking for vprintf" >&5
14447 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14448 echo $ac_n "(cached) $ac_c" 1>&6
14450 cat > conftest.$ac_ext <<EOF
14451 #line 14452 "configure"
14452 #include "confdefs.h"
14453 /* System header to define __stub macros and hopefully few prototypes,
14454 which can conflict with char vprintf(); below. */
14455 #include <assert.h>
14456 /* Override any gcc2 internal prototype to avoid an error. */
14457 /* We use char because int might match the return type of a gcc2
14458 builtin and then its argument prototype would still apply. */
14464 /* The GNU C library defines this for functions which it implements
14465 to always fail with ENOSYS. Some functions are actually named
14466 something starting with __ and the normal name is an alias. */
14467 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14475 if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14477 eval "ac_cv_func_vprintf=yes"
14479 echo "configure: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14482 eval "ac_cv_func_vprintf=no"
14487 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14488 echo "$ac_t""yes" 1>&6
14489 cat >> confdefs.h <<\EOF
14490 #define HAVE_VPRINTF 1
14494 echo "$ac_t""no" 1>&6
14497 if test "$ac_cv_func_vprintf" != yes; then
14498 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14499 echo "configure:14500: checking for _doprnt" >&5
14500 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14501 echo $ac_n "(cached) $ac_c" 1>&6
14503 cat > conftest.$ac_ext <<EOF
14504 #line 14505 "configure"
14505 #include "confdefs.h"
14506 /* System header to define __stub macros and hopefully few prototypes,
14507 which can conflict with char _doprnt(); below. */
14508 #include <assert.h>
14509 /* Override any gcc2 internal prototype to avoid an error. */
14510 /* We use char because int might match the return type of a gcc2
14511 builtin and then its argument prototype would still apply. */
14517 /* The GNU C library defines this for functions which it implements
14518 to always fail with ENOSYS. Some functions are actually named
14519 something starting with __ and the normal name is an alias. */
14520 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14528 if { (eval echo configure:14529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14530 eval "ac_cv_func__doprnt=yes"
14532 echo "configure: failed program was:" >&5
14533 cat conftest.$ac_ext >&5
14535 eval "ac_cv_func__doprnt=no"
14540 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14541 echo "$ac_t""yes" 1>&6
14542 cat >> confdefs.h <<\EOF
14543 #define HAVE_DOPRNT 1
14547 echo "$ac_t""no" 1>&6
14553 if test $ac_cv_func_vprintf = yes ; then
14554 for ac_func in vsnprintf vsprintf
14556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14557 echo "configure:14558: checking for $ac_func" >&5
14558 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14559 echo $ac_n "(cached) $ac_c" 1>&6
14561 cat > conftest.$ac_ext <<EOF
14562 #line 14563 "configure"
14563 #include "confdefs.h"
14564 /* System header to define __stub macros and hopefully few prototypes,
14565 which can conflict with char $ac_func(); below. */
14566 #include <assert.h>
14567 /* Override any gcc2 internal prototype to avoid an error. */
14568 /* We use char because int might match the return type of a gcc2
14569 builtin and then its argument prototype would still apply. */
14575 /* The GNU C library defines this for functions which it implements
14576 to always fail with ENOSYS. Some functions are actually named
14577 something starting with __ and the normal name is an alias. */
14578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14586 if { (eval echo configure:14587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14588 eval "ac_cv_func_$ac_func=yes"
14590 echo "configure: failed program was:" >&5
14591 cat conftest.$ac_ext >&5
14593 eval "ac_cv_func_$ac_func=no"
14598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14599 echo "$ac_t""yes" 1>&6
14600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14601 cat >> confdefs.h <<EOF
14602 #define $ac_tr_func 1
14606 echo "$ac_t""no" 1>&6
14662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14663 echo "configure:14664: checking for $ac_func" >&5
14664 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
14667 cat > conftest.$ac_ext <<EOF
14668 #line 14669 "configure"
14669 #include "confdefs.h"
14670 /* System header to define __stub macros and hopefully few prototypes,
14671 which can conflict with char $ac_func(); below. */
14672 #include <assert.h>
14673 /* Override any gcc2 internal prototype to avoid an error. */
14674 /* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14681 /* The GNU C library defines this for functions which it implements
14682 to always fail with ENOSYS. Some functions are actually named
14683 something starting with __ and the normal name is an alias. */
14684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14692 if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14694 eval "ac_cv_func_$ac_func=yes"
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14699 eval "ac_cv_func_$ac_func=no"
14704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14705 echo "$ac_t""yes" 1>&6
14706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14707 cat >> confdefs.h <<EOF
14708 #define $ac_tr_func 1
14712 echo "$ac_t""no" 1>&6
14717 for ac_func in getopt tempnam
14719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14720 echo "configure:14721: checking for $ac_func" >&5
14721 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14722 echo $ac_n "(cached) $ac_c" 1>&6
14724 cat > conftest.$ac_ext <<EOF
14725 #line 14726 "configure"
14726 #include "confdefs.h"
14727 /* System header to define __stub macros and hopefully few prototypes,
14728 which can conflict with char $ac_func(); below. */
14729 #include <assert.h>
14730 /* Override any gcc2 internal prototype to avoid an error. */
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14738 /* The GNU C library defines this for functions which it implements
14739 to always fail with ENOSYS. Some functions are actually named
14740 something starting with __ and the normal name is an alias. */
14741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14749 if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14751 eval "ac_cv_func_$ac_func=yes"
14753 echo "configure: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14756 eval "ac_cv_func_$ac_func=no"
14761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14762 echo "$ac_t""yes" 1>&6
14763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14764 cat >> confdefs.h <<EOF
14765 #define $ac_tr_func 1
14769 echo "$ac_t""no" 1>&6
14770 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14776 if test "$ac_cv_func_getopt" != yes; then
14777 LIBSRCS="$LIBSRCS getopt.c"
14780 if test "$ac_cv_func_tempnam" != yes; then
14781 LIBSRCS="$LIBSRCS tempnam.c"
14784 # Check Configuration
14785 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14786 echo "configure:14787: checking declaration of sys_errlist" >&5
14787 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14791 cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14796 #include <sys/types.h>
14799 #include <stdlib.h>
14802 char *c = (char *) *sys_errlist
14805 if { (eval echo configure:14806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14807 ol_cv_dcl_sys_errlist=yes
14808 ol_cv_have_sys_errlist=yes
14810 echo "configure: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14813 ol_cv_dcl_sys_errlist=no
14818 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14820 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14821 if test $ol_cv_dcl_sys_errlist = no ; then
14822 cat >> confdefs.h <<\EOF
14823 #define DECL_SYS_ERRLIST 1
14827 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14828 echo "configure:14829: checking existence of sys_errlist" >&5
14829 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14830 echo $ac_n "(cached) $ac_c" 1>&6
14833 cat > conftest.$ac_ext <<EOF
14834 #line 14835 "configure"
14835 #include "confdefs.h"
14838 char *c = (char *) *sys_errlist
14841 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14843 ol_cv_have_sys_errlist=yes
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14848 ol_cv_have_sys_errlist=no
14853 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14855 if test $ol_cv_have_sys_errlist = yes ; then
14856 cat >> confdefs.h <<\EOF
14857 #define HAVE_SYS_ERRLIST 1
14864 if test "$ol_enable_debug" != no ; then
14865 cat >> confdefs.h <<\EOF
14866 #define LDAP_DEBUG 1
14870 if test "$ol_enable_syslog" = yes ; then
14871 cat >> confdefs.h <<\EOF
14872 #define LDAP_SYSLOG 1
14876 if test "$ol_enable_libui" = yes ; then
14877 cat >> confdefs.h <<\EOF
14878 #define LDAP_LIBUI 1
14882 if test "$ol_enable_cache" = no ; then
14883 cat >> confdefs.h <<\EOF
14884 #define LDAP_NOCACHE 1
14888 if test "$ol_enable_dns" != no ; then
14889 cat >> confdefs.h <<\EOF
14890 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14894 if test "$ol_enable_proctitle" != no ; then
14895 cat >> confdefs.h <<\EOF
14896 #define LDAP_PROCTITLE 1
14900 if test "$ol_enable_referrals" != no ; then
14901 cat >> confdefs.h <<\EOF
14902 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14906 if test "$ol_enable_cldap" != no ; then
14907 cat >> confdefs.h <<\EOF
14908 #define LDAP_CONNECTIONLESS 1
14913 if test "$ol_enable_crypt" != no ; then
14914 cat >> confdefs.h <<\EOF
14915 #define SLAPD_CRYPT 1
14919 if test "$ol_enable_cleartext" != no ; then
14920 cat >> confdefs.h <<\EOF
14921 #define SLAPD_CLEARTEXT 1
14925 if test "$ol_enable_multimaster" != no ; then
14926 cat >> confdefs.h <<\EOF
14927 #define SLAPD_MULTIMASTER 1
14931 if test "$ol_enable_phonetic" != no ; then
14932 cat >> confdefs.h <<\EOF
14933 #define SLAPD_PHONETIC 1
14937 if test "$ol_enable_rlookups" != no ; then
14938 cat >> confdefs.h <<\EOF
14939 #define SLAPD_RLOOKUPS 1
14943 if test "$ol_enable_aci" != no ; then
14944 cat >> confdefs.h <<\EOF
14945 #define SLAPD_ACI_ENABLED 1
14949 if test "$ol_enable_discreteaci" != no ; then
14950 cat >> confdefs.h <<\EOF
14951 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14956 if test "$ol_link_modules" != no ; then
14957 cat >> confdefs.h <<\EOF
14958 #define SLAPD_MODULES 1
14962 SLAPD_MODULES_LDFLAGS="-dlopen self"
14965 if test "$ol_link_bdb2" != no ; then
14966 cat >> confdefs.h <<\EOF
14967 #define SLAPD_BDB2 1
14972 if test "$ol_with_bdb2_module" != static ; then
14973 cat >> confdefs.h <<\EOF
14974 #define SLAPD_BDB2_DYNAMIC 1
14978 BUILD_BDB2_DYNAMIC=shared
14979 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14983 if test "$ol_enable_ldap" != no ; then
14984 cat >> confdefs.h <<\EOF
14985 #define SLAPD_LDAP 1
14990 if test "$ol_with_ldap_module" != static ; then
14991 cat >> confdefs.h <<\EOF
14992 #define SLAPD_LDAP_DYNAMIC 1
14996 BUILD_LDAP_DYNAMIC=shared
14997 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15001 if test "$ol_link_ldbm" != no ; then
15002 cat >> confdefs.h <<\EOF
15003 #define SLAPD_LDBM 1
15008 if test "$ol_with_ldbm_module" != static ; then
15009 cat >> confdefs.h <<\EOF
15010 #define SLAPD_LDBM_DYNAMIC 1
15014 BUILD_LDBM_DYNAMIC=shared
15015 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15019 if test "$ol_enable_passwd" != no ; then
15020 cat >> confdefs.h <<\EOF
15021 #define SLAPD_PASSWD 1
15026 if test "$ol_with_passwd_module" != static ; then
15027 cat >> confdefs.h <<\EOF
15028 #define SLAPD_PASSWD_DYNAMIC 1
15032 BUILD_PASSWD_DYNAMIC=shared
15033 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15037 if test "$ol_link_perl" != no ; then
15038 cat >> confdefs.h <<\EOF
15039 #define SLAPD_PERL 1
15044 if test "$ol_with_perl_module" != static ; then
15045 cat >> confdefs.h <<\EOF
15046 #define SLAPD_PERL_DYNAMIC 1
15050 BUILD_PERL_DYNAMIC=shared
15051 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15055 if test "$ol_enable_shell" != no ; then
15056 cat >> confdefs.h <<\EOF
15057 #define SLAPD_SHELL 1
15062 if test "$ol_with_shell_module" != static ; then
15063 cat >> confdefs.h <<\EOF
15064 #define SLAPD_SHELL_DYNAMIC 1
15068 BUILD_SHELL_DYNAMIC=shared
15069 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15073 if test "$ol_enable_tcl" != no ; then
15074 cat >> confdefs.h <<\EOF
15075 #define SLAPD_TCL 1
15080 if test "$ol_with_tcl_module" != static; then
15081 cat >> confdefs.h <<\EOF
15082 #define SLAPD_TCL_DYNAMIC 1
15086 BUILD_TCL_DYNAMIC=shared
15087 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15091 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15092 $BUILD_SLAPD = yes ; then
15096 if test "$ol_link_isode" != no ; then
15101 if test "$LINK_BINS_DYNAMIC" = yes; then
15103 LT_LIB_LINKAGE=shared
15106 LT_LIB_LINKAGE=static
15109 if test "$ac_cv_mingw32" = yes ; then
15173 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15175 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15176 # Let make expand exec_prefix.
15177 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15179 # Any assignment to VPATH causes Sun make to only execute
15180 # the first set of double-colon rules, so remove it if not needed.
15181 # If there is a colon in the path, we need to keep it.
15182 if test "x$srcdir" = x.; then
15183 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15186 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15188 DEFS=-DHAVE_CONFIG_H
15190 # Without the "./", some shells look in PATH for config.status.
15191 : ${CONFIG_STATUS=./config.status}
15193 echo creating $CONFIG_STATUS
15194 rm -f $CONFIG_STATUS
15195 cat > $CONFIG_STATUS <<EOF
15197 # Generated automatically by configure.
15198 # Run this file to recreate the current configuration.
15199 # This directory was configured as follows,
15200 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15202 # $0 $ac_configure_args
15204 # Compiler output produced by configure, useful for debugging
15205 # configure, is in ./config.log if it exists.
15207 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15210 case "\$ac_option" in
15211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15212 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15213 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15214 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15215 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15217 -help | --help | --hel | --he | --h)
15218 echo "\$ac_cs_usage"; exit 0 ;;
15219 *) echo "\$ac_cs_usage"; exit 1 ;;
15223 ac_given_srcdir=$srcdir
15224 ac_given_INSTALL="$INSTALL"
15226 trap 'rm -fr `echo "\
15227 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15228 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15229 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15230 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15231 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15232 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15233 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15234 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15235 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15236 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15237 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15238 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15239 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15240 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15241 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15242 include/Makefile:build/top.mk:include/Makefile.in \
15243 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15244 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15245 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15246 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15247 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15248 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15249 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15250 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15251 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15252 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15253 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15254 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15255 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15256 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15257 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15258 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15259 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15260 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15261 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15262 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15263 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15264 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15265 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15266 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15267 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15268 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15269 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15271 cat >> $CONFIG_STATUS <<EOF
15273 # Protect against being on the right side of a sed subst in config.status.
15274 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15275 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15279 s%@CFLAGS@%$CFLAGS%g
15280 s%@CPPFLAGS@%$CPPFLAGS%g
15281 s%@CXXFLAGS@%$CXXFLAGS%g
15282 s%@FFLAGS@%$FFLAGS%g
15284 s%@LDFLAGS@%$LDFLAGS%g
15286 s%@exec_prefix@%$exec_prefix%g
15287 s%@prefix@%$prefix%g
15288 s%@program_transform_name@%$program_transform_name%g
15289 s%@bindir@%$bindir%g
15290 s%@sbindir@%$sbindir%g
15291 s%@libexecdir@%$libexecdir%g
15292 s%@datadir@%$datadir%g
15293 s%@sysconfdir@%$sysconfdir%g
15294 s%@sharedstatedir@%$sharedstatedir%g
15295 s%@localstatedir@%$localstatedir%g
15296 s%@libdir@%$libdir%g
15297 s%@includedir@%$includedir%g
15298 s%@oldincludedir@%$oldincludedir%g
15299 s%@infodir@%$infodir%g
15300 s%@mandir@%$mandir%g
15302 s%@host_alias@%$host_alias%g
15303 s%@host_cpu@%$host_cpu%g
15304 s%@host_vendor@%$host_vendor%g
15305 s%@host_os@%$host_os%g
15306 s%@target@%$target%g
15307 s%@target_alias@%$target_alias%g
15308 s%@target_cpu@%$target_cpu%g
15309 s%@target_vendor@%$target_vendor%g
15310 s%@target_os@%$target_os%g
15312 s%@build_alias@%$build_alias%g
15313 s%@build_cpu@%$build_cpu%g
15314 s%@build_vendor@%$build_vendor%g
15315 s%@build_os@%$build_os%g
15316 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15317 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15318 s%@INSTALL_DATA@%$INSTALL_DATA%g
15319 s%@PACKAGE@%$PACKAGE%g
15320 s%@VERSION@%$VERSION%g
15321 s%@ACLOCAL@%$ACLOCAL%g
15322 s%@AUTOCONF@%$AUTOCONF%g
15323 s%@AUTOMAKE@%$AUTOMAKE%g
15324 s%@AUTOHEADER@%$AUTOHEADER%g
15325 s%@MAKEINFO@%$MAKEINFO%g
15326 s%@install_sh@%$install_sh%g
15329 s%@AMTARFLAGS@%$AMTARFLAGS%g
15330 s%@SET_MAKE@%$SET_MAKE%g
15331 s%@top_builddir@%$top_builddir%g
15332 s%@ldap_subdir@%$ldap_subdir%g
15334 s%@RANLIB@%$RANLIB%g
15338 s%@DLLTOOL@%$DLLTOOL%g
15340 s%@OBJDUMP@%$OBJDUMP%g
15341 s%@LIBTOOL@%$LIBTOOL%g
15343 s%@SENDMAIL@%$SENDMAIL%g
15344 s%@EDITOR@%$EDITOR%g
15345 s%@FINGER@%$FINGER%g
15346 s%@PERLBIN@%$PERLBIN%g
15348 s%@EXEEXT@%$EXEEXT%g
15349 s%@OBJEXT@%$OBJEXT%g
15350 s%@OL_MKDEP@%$OL_MKDEP%g
15351 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15353 s%@LIBOBJS@%$LIBOBJS%g
15354 s%@LIBSRCS@%$LIBSRCS%g
15356 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15357 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15358 s%@DYN_EXT@%$DYN_EXT%g
15359 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15360 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15361 s%@BUILD_BDB2@%$BUILD_BDB2%g
15362 s%@BUILD_LDAP@%$BUILD_LDAP%g
15363 s%@BUILD_LDBM@%$BUILD_LDBM%g
15364 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15365 s%@BUILD_PERL@%$BUILD_PERL%g
15366 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15367 s%@BUILD_SHELL@%$BUILD_SHELL%g
15368 s%@BUILD_TCL@%$BUILD_TCL%g
15369 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15370 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15371 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15372 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15373 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15374 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15375 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15376 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15377 s%@LDAP_LIBS@%$LDAP_LIBS%g
15378 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15379 s%@LDIF_LIBS@%$LDIF_LIBS%g
15380 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15381 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15382 s%@LDBM_LIBS@%$LDBM_LIBS%g
15383 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15384 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15385 s%@WRAP_LIBS@%$WRAP_LIBS%g
15386 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15387 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15388 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15389 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15390 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15391 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15392 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15393 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15394 s%@KRB_LIBS@%$KRB_LIBS%g
15395 s%@READLINE_LIBS@%$READLINE_LIBS%g
15396 s%@SASL_LIBS@%$SASL_LIBS%g
15397 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15398 s%@TLS_LIBS@%$TLS_LIBS%g
15399 s%@MODULES_LIBS@%$MODULES_LIBS%g
15404 cat >> $CONFIG_STATUS <<\EOF
15406 # Split the substitutions into bite-sized pieces for seds with
15407 # small command number limits, like on Digital OSF/1 and HP-UX.
15408 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15409 ac_file=1 # Number of current file.
15410 ac_beg=1 # First line for current file.
15411 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15414 while $ac_more_lines; do
15415 if test $ac_beg -gt 1; then
15416 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15418 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15420 if test ! -s conftest.s$ac_file; then
15421 ac_more_lines=false
15422 rm -f conftest.s$ac_file
15424 if test -z "$ac_sed_cmds"; then
15425 ac_sed_cmds="sed -f conftest.s$ac_file"
15427 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15429 ac_file=`expr $ac_file + 1`
15431 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15434 if test -z "$ac_sed_cmds"; then
15439 cat >> $CONFIG_STATUS <<EOF
15441 CONFIG_FILES=\${CONFIG_FILES-"\
15442 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15443 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15444 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15445 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15446 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15447 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15448 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15449 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15450 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15451 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15452 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15453 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15454 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15455 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15456 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15457 include/Makefile:build/top.mk:include/Makefile.in \
15458 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15459 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15460 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15461 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15462 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15463 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15464 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15465 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15466 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15467 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15468 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15469 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15470 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15471 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15472 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15473 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15474 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15475 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15476 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15477 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15478 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15479 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15480 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15481 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15482 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15483 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15486 cat >> $CONFIG_STATUS <<\EOF
15487 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15490 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15491 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15492 *) ac_file_in="${ac_file}.in" ;;
15495 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15497 # Remove last slash and all that follows it. Not all systems have dirname.
15498 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15499 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15500 # The file is in a subdirectory.
15501 test ! -d "$ac_dir" && mkdir "$ac_dir"
15502 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15503 # A "../" for each directory in $ac_dir_suffix.
15504 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15506 ac_dir_suffix= ac_dots=
15509 case "$ac_given_srcdir" in
15511 if test -z "$ac_dots"; then top_srcdir=.
15512 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15513 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15514 *) # Relative path.
15515 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15516 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15519 case "$ac_given_INSTALL" in
15520 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15521 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15524 echo creating "$ac_file"
15526 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15528 *[Mm]akefile*) ac_comsub="1i\\
15529 # $configure_input" ;;
15533 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15535 s%@configure_input@%$configure_input%g
15536 s%@srcdir@%$srcdir%g
15537 s%@top_srcdir@%$top_srcdir%g
15538 s%@INSTALL@%$INSTALL%g
15539 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15543 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15544 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15546 # ac_d sets the value in "#define NAME VALUE" lines.
15547 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15548 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15551 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15552 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15553 ac_uB='\([ ]\)%\1#\2define\3'
15556 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15557 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15558 ac_eB='$%\1#\2define\3'
15562 if test "${CONFIG_HEADERS+set}" != set; then
15564 cat >> $CONFIG_STATUS <<EOF
15565 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
15567 cat >> $CONFIG_STATUS <<\EOF
15569 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15572 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15573 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15574 *) ac_file_in="${ac_file}.in" ;;
15577 echo creating $ac_file
15579 rm -f conftest.frag conftest.in conftest.out
15580 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15581 cat $ac_file_inputs > conftest.in
15585 # Transform confdefs.h into a sed script conftest.vals that substitutes
15586 # the proper values into config.h.in to produce config.h. And first:
15587 # Protect against being on the right side of a sed subst in config.status.
15588 # Protect against being in an unquoted here document in config.status.
15589 rm -f conftest.vals
15590 cat > conftest.hdr <<\EOF
15593 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15597 sed -n -f conftest.hdr confdefs.h > conftest.vals
15600 # This sed command replaces #undef with comments. This is necessary, for
15601 # example, in the case of _POSIX_SOURCE, which is predefined and required
15602 # on some systems where configure will not decide to define it.
15603 cat >> conftest.vals <<\EOF
15604 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15607 # Break up conftest.vals because some shells have a limit on
15608 # the size of here documents, and old seds have small limits too.
15610 rm -f conftest.tail
15613 ac_lines=`grep -c . conftest.vals`
15614 # grep -c gives empty output for an empty file on some AIX systems.
15615 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15616 # Write a limited-size here document to conftest.frag.
15617 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15618 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15620 sed -f conftest.frag conftest.in > conftest.out
15622 mv conftest.out conftest.in
15623 ' >> $CONFIG_STATUS
15624 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15625 rm -f conftest.vals
15626 mv conftest.tail conftest.vals
15628 rm -f conftest.vals
15630 cat >> $CONFIG_STATUS <<\EOF
15631 rm -f conftest.frag conftest.h
15632 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15633 cat conftest.in >> conftest.h
15635 if cmp -s $ac_file conftest.h 2>/dev/null; then
15636 echo "$ac_file is unchanged"
15639 # Remove last slash and all that follows it. Not all systems have dirname.
15640 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15641 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15642 # The file is in a subdirectory.
15643 test ! -d "$ac_dir" && mkdir "$ac_dir"
15646 mv conftest.h $ac_file
15651 cat >> $CONFIG_STATUS <<EOF
15654 cat >> $CONFIG_STATUS <<\EOF
15657 echo Please \"make depend\" to build dependencies
15661 chmod +x $CONFIG_STATUS
15662 rm -fr confdefs* $ac_clean_files
15663 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1