3 # from OpenLDAP: pkg/ldap/configure.in,v 1.329 2000/09/14 19:01:26 kurt Exp
5 # Copyright 1998-2000 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-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (no)"
42 --enable-ipv6 enable IPv6 support (auto)"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads with threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable Kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-rlookups enable reverse lookups (auto)"
82 --enable-aci enable per-object ACIs (no)"
84 --enable-wrappers enable tcp wrapper support (no)"
86 --enable-dynamic enable linking built binaries with dynamic libs (no)"
88 --enable-dnssrv enable dnssrv backend (no)"
90 --with-dnssrv-module module type (static)"
92 --enable-ldap enable ldap backend (no)"
94 --with-ldap-module module type (static)"
96 --enable-ldbm enable ldbm backend (yes)"
98 --with-ldbm-api with LDBM API (auto)"
100 --with-ldbm-module module type (static)"
102 --with-ldbm-type use LDBM type (auto)"
104 --enable-passwd enable passwd backend (no)"
106 --with-passwd-module module type (static)"
108 --enable-perl enable perl backend (no)"
110 --with-perl-module module type (static)"
112 --enable-shell enable shell backend (no)"
114 --with-shell-module module type (static)"
116 --enable-sql enable sql backend (no)"
118 --with-sql-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.sh
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 # set unset (borrowed from autoconf 2.14a)
643 if (unset FOO) >/dev/null 2>&1; then
649 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
652 for ac_dir in build $srcdir/build; do
653 if test -f $ac_dir/install-sh; then
655 ac_install_sh="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh; then
659 ac_install_sh="$ac_aux_dir/install.sh -c"
661 elif test -f $ac_dir/shtool; then
663 ac_install_sh="$ac_aux_dir/shtool install -c"
667 if test -z "$ac_aux_dir"; then
668 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
670 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
671 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
672 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
674 eval `$ac_aux_dir/version.sh`
675 if test -z "$OL_STRING"; then
676 { echo "configure: error: could not determine version" 1>&2; exit 1; }
679 echo "Configuring $OL_STRING ..."
682 echo $ac_n "checking host system type""... $ac_c" 1>&6
683 echo "configure:684: checking host system type" >&5
684 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
686 # Make sure we can run config.sub.
687 if $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 ac_cv_host_alias=$host
692 case "$ac_cv_host_alias" in
696 if ac_cv_host_alias=`$ac_config_guess`; then :
697 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
699 *) ac_cv_host_alias=$nonopt ;;
703 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
704 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo $ac_n "(cached) $ac_c" 1>&6
711 echo "$ac_t""$ac_cv_host" 1>&6
714 host_alias=$ac_cv_host_alias
715 host_cpu=$ac_cv_host_cpu
716 host_vendor=$ac_cv_host_vendor
717 host_os=$ac_cv_host_os
723 echo $ac_n "checking target system type""... $ac_c" 1>&6
724 echo "configure:725: checking target system type" >&5
725 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
727 # Make sure we can run config.sub.
728 if $ac_config_sub sun4 >/dev/null 2>&1; then :
729 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
732 ac_cv_target_alias=$target
733 case "$ac_cv_target_alias" in
737 ac_cv_target_alias=$host_alias ;;
739 *) ac_cv_target_alias=$nonopt ;;
743 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
744 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo $ac_n "(cached) $ac_c" 1>&6
751 echo "$ac_t""$ac_cv_target" 1>&6
754 target_alias=$ac_cv_target_alias
755 target_cpu=$ac_cv_target_cpu
756 target_vendor=$ac_cv_target_vendor
757 target_os=$ac_cv_target_os
763 echo $ac_n "checking build system type""... $ac_c" 1>&6
764 echo "configure:765: checking build system type" >&5
765 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
767 # Make sure we can run config.sub.
768 if $ac_config_sub sun4 >/dev/null 2>&1; then :
769 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
772 ac_cv_build_alias=$build
773 case "$ac_cv_build_alias" in
777 ac_cv_build_alias=$host_alias ;;
779 *) ac_cv_build_alias=$nonopt ;;
783 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
784 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
785 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
786 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788 echo $ac_n "(cached) $ac_c" 1>&6
791 echo "$ac_t""$ac_cv_build" 1>&6
794 build_alias=$ac_cv_build_alias
795 build_cpu=$ac_cv_build_cpu
796 build_vendor=$ac_cv_build_vendor
797 build_os=$ac_cv_build_os
803 # Do some error checking and defaulting for the host and target type.
805 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
808 # 1. You are not allowed to specify --host, --target, and nonopt at the
810 # 2. Host defaults to nonopt.
811 # 3. If nonopt is not specified, then host defaults to the current host,
812 # as determined by config.guess.
813 # 4. Target and build default to nonopt.
814 # 5. If nonopt is not specified, then target and build default to host.
816 # The aliases save the names the user supplied, while $host etc.
817 # will get canonicalized.
818 case $host---$target---$nonopt in
819 NONE---*---* | *---NONE---* | *---*---NONE) ;;
820 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
823 test "$host_alias" != "$target_alias" &&
824 test "$program_prefix$program_suffix$program_transform_name" = \
826 program_prefix=${target_alias}-
829 # Find a good install program. We prefer a C program (faster),
830 # so one script is as good as another. But avoid the broken or
831 # incompatible versions:
832 # SysV /etc/install, /usr/sbin/install
833 # SunOS /usr/etc/install
836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
837 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
838 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
839 # ./install, which can be erroneously created by make from ./install.sh.
840 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
841 echo "configure:842: checking for a BSD compatible install" >&5
842 if test -z "$INSTALL"; then
843 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
847 for ac_dir in $PATH; do
848 # Account for people who put trailing slashes in PATH elements.
850 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
852 # OSF1 and SCO ODT 3.0 have their own names for install.
853 # Don't use installbsd from OSF since it installs stuff as root
855 for ac_prog in ginstall scoinst install; do
856 if test -f $ac_dir/$ac_prog; then
857 if test $ac_prog = install &&
858 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
859 # AIX install. It has an incompatible calling convention.
861 elif test $ac_prog = install &&
862 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # program-specific install script used by HP pwplus--don't use.
866 ac_cv_path_install="$ac_dir/$ac_prog -c"
877 if test "${ac_cv_path_install+set}" = set; then
878 INSTALL="$ac_cv_path_install"
880 # As a last resort, use the slow shell script. We don't cache a
881 # path for INSTALL within a source directory, because that will
882 # break other packages using the cache if that directory is
883 # removed, or if the path is relative.
884 INSTALL="$ac_install_sh"
887 echo "$ac_t""$INSTALL" 1>&6
889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
890 # It thinks the first close brace ends the variable substitution.
891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
897 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
898 echo "configure:899: checking whether build environment is sane" >&5
901 echo timestamp > conftestfile
902 # Do `set' in a subshell so we don't clobber the current shell's
903 # arguments. Must try -L first in case configure is actually a
904 # symlink; some systems play weird games with the mod time of symlinks
905 # (eg FreeBSD returns the mod time of the symlink's containing
908 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
909 if test "$*" = "X"; then
911 set X `ls -t $srcdir/configure conftestfile`
913 if test "$*" != "X $srcdir/configure conftestfile" \
914 && test "$*" != "X conftestfile $srcdir/configure"; then
916 # If neither matched, then we have a broken ls. This can happen
917 # if, for instance, CONFIG_SHELL is bash and it inherits a
918 # broken ls alias from the environment. This has actually
919 # happened. Such a system could not be considered "sane".
920 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
921 alias in your environment" 1>&2; exit 1; }
924 test "$2" = conftestfile
930 { echo "configure: error: newly created file is older than distributed files!
931 Check your system clock" 1>&2; exit 1; }
934 echo "$ac_t""yes" 1>&6
935 if test "$program_transform_name" = s,x,x,; then
936 program_transform_name=
938 # Double any \ or $. echo might interpret backslashes.
939 cat <<\EOF_SED > conftestsed
940 s,\\,\\\\,g; s,\$,$$,g
942 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
945 test "$program_prefix" != NONE &&
946 program_transform_name="s,^,${program_prefix},;$program_transform_name"
947 # Use a double $ so make ignores it.
948 test "$program_suffix" != NONE &&
949 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
951 # sed with no file args requires a program.
952 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
954 for ac_prog in mawk gawk nawk awk
956 # Extract the first word of "$ac_prog", so it can be a program name with args.
957 set dummy $ac_prog; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 if test -n "$AWK"; then
964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 for ac_dir in $ac_dummy; do
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
971 ac_cv_prog_AWK="$ac_prog"
978 AWK="$ac_cv_prog_AWK"
979 if test -n "$AWK"; then
980 echo "$ac_t""$AWK" 1>&6
982 echo "$ac_t""no" 1>&6
985 test -n "$AWK" && break
988 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
989 echo "configure:990: checking whether ${MAKE-make} sets \${MAKE}" >&5
990 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
991 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 cat > conftestmake <<\EOF
996 @echo 'ac_maketemp="${MAKE}"'
998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
999 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1000 if test -n "$ac_maketemp"; then
1001 eval ac_cv_prog_make_${ac_make}_set=yes
1003 eval ac_cv_prog_make_${ac_make}_set=no
1007 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1008 echo "$ac_t""yes" 1>&6
1011 echo "$ac_t""no" 1>&6
1012 SET_MAKE="MAKE=${MAKE-make}"
1021 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1022 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1027 missing_dir=`cd $ac_aux_dir && pwd`
1028 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working aclocal" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1035 echo "$ac_t""found" 1>&6
1037 ACLOCAL="$missing_dir/missing aclocal"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working autoconf" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 AUTOCONF="$missing_dir/missing autoconf"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working automake" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (automake --version) < /dev/null > /dev/null 2>&1; then
1061 echo "$ac_t""found" 1>&6
1063 AUTOMAKE="$missing_dir/missing automake"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working autoheader" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1073 AUTOHEADER=autoheader
1074 echo "$ac_t""found" 1>&6
1076 AUTOHEADER="$missing_dir/missing autoheader"
1077 echo "$ac_t""missing" 1>&6
1080 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working makeinfo" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf. Sigh.
1085 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1087 echo "$ac_t""found" 1>&6
1089 MAKEINFO="$missing_dir/missing makeinfo"
1090 echo "$ac_t""missing" 1>&6
1093 install_sh="$missing_dir/install-sh"
1094 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1096 for ac_prog in gnutar gtar tar
1098 # Extract the first word of "$ac_prog", so it can be a program name with args.
1099 set dummy $ac_prog; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$AMTAR"; then
1106 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_AMTAR="$ac_prog"
1120 AMTAR="$ac_cv_prog_AMTAR"
1121 if test -n "$AMTAR"; then
1122 echo "$ac_t""$AMTAR" 1>&6
1124 echo "$ac_t""no" 1>&6
1127 test -n "$AMTAR" && break
1132 if test -n "$AMTAR"; then
1133 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1140 cat >> confdefs.h <<EOF
1141 #define OPENLDAP_PACKAGE "$PACKAGE"
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_VERSION "$VERSION"
1149 cat >> confdefs.h <<EOF
1150 #define LDAP_VENDOR_VERSION $OL_API_INC
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1166 OPENLDAP_LIBVERSION=$OL_API_LIB
1171 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1172 echo "configure:1173: checking configure arguments" >&5
1177 ldap_subdir="/openldap"
1179 # Check whether --with-subdir or --without-subdir was given.
1180 if test "${with_subdir+set}" = set; then
1181 withval="$with_subdir"
1188 ldap_subdir="$withval"
1191 ldap_subdir="/$withval"
1198 # OpenLDAP --enable-debug
1199 # Check whether --enable-debug or --disable-debug was given.
1200 if test "${enable_debug+set}" = set; then
1201 enableval="$enable_debug"
1204 for ol_val in auto yes no ; do
1205 if test "$enableval" = "$ol_val" ; then
1209 if test "$ol_arg" = "invalid" ; then
1210 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1212 ol_enable_debug="$ol_arg"
1215 ol_enable_debug="yes"
1217 # end --enable-debug
1218 # OpenLDAP --enable-syslog
1219 # Check whether --enable-syslog or --disable-syslog was given.
1220 if test "${enable_syslog+set}" = set; then
1221 enableval="$enable_syslog"
1224 for ol_val in auto yes no ; do
1225 if test "$enableval" = "$ol_val" ; then
1229 if test "$ol_arg" = "invalid" ; then
1230 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1232 ol_enable_syslog="$ol_arg"
1235 ol_enable_syslog="auto"
1237 # end --enable-syslog
1238 # OpenLDAP --enable-proctitle
1239 # Check whether --enable-proctitle or --disable-proctitle was given.
1240 if test "${enable_proctitle+set}" = set; then
1241 enableval="$enable_proctitle"
1244 for ol_val in auto yes no ; do
1245 if test "$enableval" = "$ol_val" ; then
1249 if test "$ol_arg" = "invalid" ; then
1250 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1252 ol_enable_proctitle="$ol_arg"
1255 ol_enable_proctitle="yes"
1257 # end --enable-proctitle
1258 # OpenLDAP --enable-cache
1259 # Check whether --enable-cache or --disable-cache was given.
1260 if test "${enable_cache+set}" = set; then
1261 enableval="$enable_cache"
1264 for ol_val in auto yes no ; do
1265 if test "$enableval" = "$ol_val" ; then
1269 if test "$ol_arg" = "invalid" ; then
1270 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1272 ol_enable_cache="$ol_arg"
1275 ol_enable_cache="yes"
1277 # end --enable-cache
1278 # OpenLDAP --enable-referrals
1279 # Check whether --enable-referrals or --disable-referrals was given.
1280 if test "${enable_referrals+set}" = set; then
1281 enableval="$enable_referrals"
1284 for ol_val in auto yes no ; do
1285 if test "$enableval" = "$ol_val" ; then
1289 if test "$ol_arg" = "invalid" ; then
1290 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1292 ol_enable_referrals="$ol_arg"
1295 ol_enable_referrals="yes"
1297 # end --enable-referrals
1298 # OpenLDAP --enable-kbind
1299 # Check whether --enable-kbind or --disable-kbind was given.
1300 if test "${enable_kbind+set}" = set; then
1301 enableval="$enable_kbind"
1304 for ol_val in auto yes no ; do
1305 if test "$enableval" = "$ol_val" ; then
1309 if test "$ol_arg" = "invalid" ; then
1310 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1312 ol_enable_kbind="$ol_arg"
1315 ol_enable_kbind="no"
1317 # end --enable-kbind
1318 # OpenLDAP --enable-ipv6
1319 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1320 if test "${enable_ipv6+set}" = set; then
1321 enableval="$enable_ipv6"
1324 for ol_val in auto yes no ; do
1325 if test "$enableval" = "$ol_val" ; then
1329 if test "$ol_arg" = "invalid" ; then
1330 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1332 ol_enable_ipv6="$ol_arg"
1335 ol_enable_ipv6="auto"
1338 # OpenLDAP --enable-local
1339 # Check whether --enable-local or --disable-local was given.
1340 if test "${enable_local+set}" = set; then
1341 enableval="$enable_local"
1344 for ol_val in auto yes no ; do
1345 if test "$enableval" = "$ol_val" ; then
1349 if test "$ol_arg" = "invalid" ; then
1350 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1352 ol_enable_local="$ol_arg"
1355 ol_enable_local="auto"
1357 # end --enable-local
1358 # OpenLDAP --enable-x_compile
1359 # Check whether --enable-x_compile or --disable-x_compile was given.
1360 if test "${enable_x_compile+set}" = set; then
1361 enableval="$enable_x_compile"
1364 for ol_val in yes no ; do
1365 if test "$enableval" = "$ol_val" ; then
1369 if test "$ol_arg" = "invalid" ; then
1370 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1372 ol_enable_x_compile="$ol_arg"
1375 ol_enable_x_compile="no"
1377 # end --enable-x_compile
1380 # OpenLDAP --with-cyrus_sasl
1381 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1382 if test "${with_cyrus_sasl+set}" = set; then
1383 withval="$with_cyrus_sasl"
1386 for ol_val in auto yes no ; do
1387 if test "$withval" = "$ol_val" ; then
1391 if test "$ol_arg" = "invalid" ; then
1392 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1394 ol_with_cyrus_sasl="$ol_arg"
1397 ol_with_cyrus_sasl="auto"
1399 # end --with-cyrus_sasl
1401 # OpenLDAP --with-fetch
1402 # Check whether --with-fetch or --without-fetch was given.
1403 if test "${with_fetch+set}" = set; then
1404 withval="$with_fetch"
1407 for ol_val in auto yes no ; do
1408 if test "$withval" = "$ol_val" ; then
1412 if test "$ol_arg" = "invalid" ; then
1413 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1415 ol_with_fetch="$ol_arg"
1418 ol_with_fetch="auto"
1422 # OpenLDAP --with-kerberos
1423 # Check whether --with-kerberos or --without-kerberos was given.
1424 if test "${with_kerberos+set}" = set; then
1425 withval="$with_kerberos"
1428 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1429 if test "$withval" = "$ol_val" ; then
1433 if test "$ol_arg" = "invalid" ; then
1434 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1436 ol_with_kerberos="$ol_arg"
1439 ol_with_kerberos="auto"
1441 # end --with-kerberos
1443 # OpenLDAP --with-readline
1444 # Check whether --with-readline or --without-readline was given.
1445 if test "${with_readline+set}" = set; then
1446 withval="$with_readline"
1449 for ol_val in auto yes no ; do
1450 if test "$withval" = "$ol_val" ; then
1454 if test "$ol_arg" = "invalid" ; then
1455 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1457 ol_with_readline="$ol_arg"
1460 ol_with_readline="auto"
1462 # end --with-readline
1464 # OpenLDAP --with-threads
1465 # Check whether --with-threads or --without-threads was given.
1466 if test "${with_threads+set}" = set; then
1467 withval="$with_threads"
1470 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1471 if test "$withval" = "$ol_val" ; then
1475 if test "$ol_arg" = "invalid" ; then
1476 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1478 ol_with_threads="$ol_arg"
1481 ol_with_threads="auto"
1483 # end --with-threads
1485 # OpenLDAP --with-tls
1486 # Check whether --with-tls or --without-tls was given.
1487 if test "${with_tls+set}" = set; then
1491 for ol_val in auto ssleay openssl yes no ; do
1492 if test "$withval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1499 ol_with_tls="$ol_arg"
1506 # OpenLDAP --with-yielding_select
1507 # Check whether --with-yielding_select or --without-yielding_select was given.
1508 if test "${with_yielding_select+set}" = set; then
1509 withval="$with_yielding_select"
1512 for ol_val in auto yes no manual ; do
1513 if test "$withval" = "$ol_val" ; then
1517 if test "$ol_arg" = "invalid" ; then
1518 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1520 ol_with_yielding_select="$ol_arg"
1523 ol_with_yielding_select="auto"
1525 # end --with-yielding_select
1529 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1530 if test "${with_xxslapdoptions+set}" = set; then
1531 withval="$with_xxslapdoptions"
1535 # OpenLDAP --enable-slapd
1536 # Check whether --enable-slapd or --disable-slapd was given.
1537 if test "${enable_slapd+set}" = set; then
1538 enableval="$enable_slapd"
1541 for ol_val in auto yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1549 ol_enable_slapd="$ol_arg"
1552 ol_enable_slapd="yes"
1554 # end --enable-slapd
1555 # OpenLDAP --enable-cleartext
1556 # Check whether --enable-cleartext or --disable-cleartext was given.
1557 if test "${enable_cleartext+set}" = set; then
1558 enableval="$enable_cleartext"
1561 for ol_val in auto yes no ; do
1562 if test "$enableval" = "$ol_val" ; then
1566 if test "$ol_arg" = "invalid" ; then
1567 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1569 ol_enable_cleartext="$ol_arg"
1572 ol_enable_cleartext="yes"
1574 # end --enable-cleartext
1575 # OpenLDAP --enable-crypt
1576 # Check whether --enable-crypt or --disable-crypt was given.
1577 if test "${enable_crypt+set}" = set; then
1578 enableval="$enable_crypt"
1581 for ol_val in auto yes no ; do
1582 if test "$enableval" = "$ol_val" ; then
1586 if test "$ol_arg" = "invalid" ; then
1587 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1589 ol_enable_crypt="$ol_arg"
1592 ol_enable_crypt="auto"
1594 # end --enable-crypt
1595 # OpenLDAP --enable-kpasswd
1596 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1597 if test "${enable_kpasswd+set}" = set; then
1598 enableval="$enable_kpasswd"
1601 for ol_val in auto yes no ; do
1602 if test "$enableval" = "$ol_val" ; then
1606 if test "$ol_arg" = "invalid" ; then
1607 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1609 ol_enable_kpasswd="$ol_arg"
1612 ol_enable_kpasswd="no"
1614 # end --enable-kpasswd
1615 # OpenLDAP --enable-spasswd
1616 # Check whether --enable-spasswd or --disable-spasswd was given.
1617 if test "${enable_spasswd+set}" = set; then
1618 enableval="$enable_spasswd"
1621 for ol_val in auto yes no ; do
1622 if test "$enableval" = "$ol_val" ; then
1626 if test "$ol_arg" = "invalid" ; then
1627 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1629 ol_enable_spasswd="$ol_arg"
1632 ol_enable_spasswd="no"
1634 # end --enable-spasswd
1635 # OpenLDAP --enable-modules
1636 # Check whether --enable-modules or --disable-modules was given.
1637 if test "${enable_modules+set}" = set; then
1638 enableval="$enable_modules"
1641 for ol_val in auto yes no ; do
1642 if test "$enableval" = "$ol_val" ; then
1646 if test "$ol_arg" = "invalid" ; then
1647 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1649 ol_enable_modules="$ol_arg"
1652 ol_enable_modules="no"
1654 # end --enable-modules
1655 # OpenLDAP --enable-multimaster
1656 # Check whether --enable-multimaster or --disable-multimaster was given.
1657 if test "${enable_multimaster+set}" = set; then
1658 enableval="$enable_multimaster"
1661 for ol_val in auto yes no ; do
1662 if test "$enableval" = "$ol_val" ; then
1666 if test "$ol_arg" = "invalid" ; then
1667 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1669 ol_enable_multimaster="$ol_arg"
1672 ol_enable_multimaster="no"
1674 # end --enable-multimaster
1675 # OpenLDAP --enable-phonetic
1676 # Check whether --enable-phonetic or --disable-phonetic was given.
1677 if test "${enable_phonetic+set}" = set; then
1678 enableval="$enable_phonetic"
1681 for ol_val in auto yes no ; do
1682 if test "$enableval" = "$ol_val" ; then
1686 if test "$ol_arg" = "invalid" ; then
1687 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1689 ol_enable_phonetic="$ol_arg"
1692 ol_enable_phonetic="no"
1694 # end --enable-phonetic
1695 # OpenLDAP --enable-rlookups
1696 # Check whether --enable-rlookups or --disable-rlookups was given.
1697 if test "${enable_rlookups+set}" = set; then
1698 enableval="$enable_rlookups"
1701 for ol_val in auto yes no ; do
1702 if test "$enableval" = "$ol_val" ; then
1706 if test "$ol_arg" = "invalid" ; then
1707 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1709 ol_enable_rlookups="$ol_arg"
1712 ol_enable_rlookups="auto"
1714 # end --enable-rlookups
1715 # OpenLDAP --enable-aci
1716 # Check whether --enable-aci or --disable-aci was given.
1717 if test "${enable_aci+set}" = set; then
1718 enableval="$enable_aci"
1721 for ol_val in auto yes no ; do
1722 if test "$enableval" = "$ol_val" ; then
1726 if test "$ol_arg" = "invalid" ; then
1727 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1729 ol_enable_aci="$ol_arg"
1735 # OpenLDAP --enable-wrappers
1736 # Check whether --enable-wrappers or --disable-wrappers was given.
1737 if test "${enable_wrappers+set}" = set; then
1738 enableval="$enable_wrappers"
1741 for ol_val in auto yes no ; do
1742 if test "$enableval" = "$ol_val" ; then
1746 if test "$ol_arg" = "invalid" ; then
1747 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1749 ol_enable_wrappers="$ol_arg"
1752 ol_enable_wrappers="no"
1754 # end --enable-wrappers
1755 # OpenLDAP --enable-dynamic
1756 # Check whether --enable-dynamic or --disable-dynamic was given.
1757 if test "${enable_dynamic+set}" = set; then
1758 enableval="$enable_dynamic"
1761 for ol_val in auto yes no ; do
1762 if test "$enableval" = "$ol_val" ; then
1766 if test "$ol_arg" = "invalid" ; then
1767 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1769 ol_enable_dynamic="$ol_arg"
1772 ol_enable_dynamic="no"
1774 # end --enable-dynamic
1776 # OpenLDAP --enable-dnssrv
1777 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1778 if test "${enable_dnssrv+set}" = set; then
1779 enableval="$enable_dnssrv"
1782 for ol_val in auto yes no ; do
1783 if test "$enableval" = "$ol_val" ; then
1787 if test "$ol_arg" = "invalid" ; then
1788 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1790 ol_enable_dnssrv="$ol_arg"
1793 ol_enable_dnssrv="no"
1795 # end --enable-dnssrv
1796 # OpenLDAP --with-dnssrv_module
1797 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1798 if test "${with_dnssrv_module+set}" = set; then
1799 withval="$with_dnssrv_module"
1802 for ol_val in static dynamic ; do
1803 if test "$withval" = "$ol_val" ; then
1807 if test "$ol_arg" = "invalid" ; then
1808 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1810 ol_with_dnssrv_module="$ol_arg"
1813 ol_with_dnssrv_module="static"
1815 # end --with-dnssrv_module
1817 # OpenLDAP --enable-ldap
1818 # Check whether --enable-ldap or --disable-ldap was given.
1819 if test "${enable_ldap+set}" = set; then
1820 enableval="$enable_ldap"
1823 for ol_val in auto yes no ; do
1824 if test "$enableval" = "$ol_val" ; then
1828 if test "$ol_arg" = "invalid" ; then
1829 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1831 ol_enable_ldap="$ol_arg"
1837 # OpenLDAP --with-ldap_module
1838 # Check whether --with-ldap_module or --without-ldap_module was given.
1839 if test "${with_ldap_module+set}" = set; then
1840 withval="$with_ldap_module"
1843 for ol_val in static dynamic ; do
1844 if test "$withval" = "$ol_val" ; then
1848 if test "$ol_arg" = "invalid" ; then
1849 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1851 ol_with_ldap_module="$ol_arg"
1854 ol_with_ldap_module="static"
1856 # end --with-ldap_module
1858 # OpenLDAP --enable-ldbm
1859 # Check whether --enable-ldbm or --disable-ldbm was given.
1860 if test "${enable_ldbm+set}" = set; then
1861 enableval="$enable_ldbm"
1864 for ol_val in auto yes no ; do
1865 if test "$enableval" = "$ol_val" ; then
1869 if test "$ol_arg" = "invalid" ; then
1870 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1872 ol_enable_ldbm="$ol_arg"
1875 ol_enable_ldbm="yes"
1878 # OpenLDAP --with-ldbm_api
1879 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1880 if test "${with_ldbm_api+set}" = set; then
1881 withval="$with_ldbm_api"
1884 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1885 if test "$withval" = "$ol_val" ; then
1889 if test "$ol_arg" = "invalid" ; then
1890 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1892 ol_with_ldbm_api="$ol_arg"
1895 ol_with_ldbm_api="auto"
1897 # end --with-ldbm_api
1899 # OpenLDAP --with-ldbm_module
1900 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1901 if test "${with_ldbm_module+set}" = set; then
1902 withval="$with_ldbm_module"
1905 for ol_val in static dynamic ; do
1906 if test "$withval" = "$ol_val" ; then
1910 if test "$ol_arg" = "invalid" ; then
1911 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1913 ol_with_ldbm_module="$ol_arg"
1916 ol_with_ldbm_module="static"
1918 # end --with-ldbm_module
1920 # OpenLDAP --with-ldbm_type
1921 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1922 if test "${with_ldbm_type+set}" = set; then
1923 withval="$with_ldbm_type"
1926 for ol_val in auto btree hash ; do
1927 if test "$withval" = "$ol_val" ; then
1931 if test "$ol_arg" = "invalid" ; then
1932 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1934 ol_with_ldbm_type="$ol_arg"
1937 ol_with_ldbm_type="auto"
1939 # end --with-ldbm_type
1941 # OpenLDAP --enable-passwd
1942 # Check whether --enable-passwd or --disable-passwd was given.
1943 if test "${enable_passwd+set}" = set; then
1944 enableval="$enable_passwd"
1947 for ol_val in auto yes no ; do
1948 if test "$enableval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1955 ol_enable_passwd="$ol_arg"
1958 ol_enable_passwd="no"
1960 # end --enable-passwd
1961 # OpenLDAP --with-passwd_module
1962 # Check whether --with-passwd_module or --without-passwd_module was given.
1963 if test "${with_passwd_module+set}" = set; then
1964 withval="$with_passwd_module"
1967 for ol_val in static dynamic ; do
1968 if test "$withval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1975 ol_with_passwd_module="$ol_arg"
1978 ol_with_passwd_module="static"
1980 # end --with-passwd_module
1982 # OpenLDAP --enable-perl
1983 # Check whether --enable-perl or --disable-perl was given.
1984 if test "${enable_perl+set}" = set; then
1985 enableval="$enable_perl"
1988 for ol_val in auto yes no ; do
1989 if test "$enableval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1996 ol_enable_perl="$ol_arg"
2002 # OpenLDAP --with-perl_module
2003 # Check whether --with-perl_module or --without-perl_module was given.
2004 if test "${with_perl_module+set}" = set; then
2005 withval="$with_perl_module"
2008 for ol_val in static dynamic ; do
2009 if test "$withval" = "$ol_val" ; then
2013 if test "$ol_arg" = "invalid" ; then
2014 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2016 ol_with_perl_module="$ol_arg"
2019 ol_with_perl_module="static"
2021 # end --with-perl_module
2023 # OpenLDAP --enable-shell
2024 # Check whether --enable-shell or --disable-shell was given.
2025 if test "${enable_shell+set}" = set; then
2026 enableval="$enable_shell"
2029 for ol_val in auto yes no ; do
2030 if test "$enableval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2037 ol_enable_shell="$ol_arg"
2040 ol_enable_shell="no"
2042 # end --enable-shell
2043 # OpenLDAP --with-shell_module
2044 # Check whether --with-shell_module or --without-shell_module was given.
2045 if test "${with_shell_module+set}" = set; then
2046 withval="$with_shell_module"
2049 for ol_val in static dynamic ; do
2050 if test "$withval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2057 ol_with_shell_module="$ol_arg"
2060 ol_with_shell_module="static"
2062 # end --with-shell_module
2064 # OpenLDAP --enable-sql
2065 # Check whether --enable-sql or --disable-sql was given.
2066 if test "${enable_sql+set}" = set; then
2067 enableval="$enable_sql"
2070 for ol_val in auto yes no ; do
2071 if test "$enableval" = "$ol_val" ; then
2075 if test "$ol_arg" = "invalid" ; then
2076 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2078 ol_enable_sql="$ol_arg"
2084 # OpenLDAP --with-sql_module
2085 # Check whether --with-sql_module or --without-sql_module was given.
2086 if test "${with_sql_module+set}" = set; then
2087 withval="$with_sql_module"
2090 for ol_val in static dynamic ; do
2091 if test "$withval" = "$ol_val" ; then
2095 if test "$ol_arg" = "invalid" ; then
2096 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2098 ol_with_sql_module="$ol_arg"
2101 ol_with_sql_module="static"
2103 # end --with-sql_module
2105 # OpenLDAP --enable-tcl
2106 # Check whether --enable-tcl or --disable-tcl was given.
2107 if test "${enable_tcl+set}" = set; then
2108 enableval="$enable_tcl"
2111 for ol_val in auto yes no ; do
2112 if test "$enableval" = "$ol_val" ; then
2116 if test "$ol_arg" = "invalid" ; then
2117 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2119 ol_enable_tcl="$ol_arg"
2125 # OpenLDAP --with-tcl_module
2126 # Check whether --with-tcl_module or --without-tcl_module was given.
2127 if test "${with_tcl_module+set}" = set; then
2128 withval="$with_tcl_module"
2131 for ol_val in static dynamic ; do
2132 if test "$withval" = "$ol_val" ; then
2136 if test "$ol_arg" = "invalid" ; then
2137 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2139 ol_with_tcl_module="$ol_arg"
2142 ol_with_tcl_module="static"
2144 # end --with-tcl_module
2147 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2148 if test "${with_xxslurpdoptions+set}" = set; then
2149 withval="$with_xxslurpdoptions"
2153 # OpenLDAP --enable-slurpd
2154 # Check whether --enable-slurpd or --disable-slurpd was given.
2155 if test "${enable_slurpd+set}" = set; then
2156 enableval="$enable_slurpd"
2159 for ol_val in auto yes no ; do
2160 if test "$enableval" = "$ol_val" ; then
2164 if test "$ol_arg" = "invalid" ; then
2165 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2167 ol_enable_slurpd="$ol_arg"
2170 ol_enable_slurpd="auto"
2172 # end --enable-slurpd
2174 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2175 if test "${with_xxliboptions+set}" = set; then
2176 withval="$with_xxliboptions"
2180 # Check whether --enable-static or --disable-static was given.
2181 if test "${enable_static+set}" = set; then
2182 enableval="$enable_static"
2183 p=${PACKAGE-default}
2184 case "$enableval" in
2185 yes) enable_static=yes ;;
2186 no) enable_static=no ;;
2189 # Look at the argument we got. We use all the common list separators.
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2191 for pkg in $enableval; do
2192 if test "X$pkg" = "X$p"; then
2203 # Check whether --enable-shared or --disable-shared was given.
2204 if test "${enable_shared+set}" = set; then
2205 enableval="$enable_shared"
2206 p=${PACKAGE-default}
2207 case "$enableval" in
2208 yes) enable_shared=yes ;;
2209 no) enable_shared=no ;;
2212 # Look at the argument we got. We use all the common list separators.
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2214 for pkg in $enableval; do
2215 if test "X$pkg" = "X$p"; then
2229 if test $ol_enable_slapd = no ; then
2230 if test $ol_enable_dnssrv = yes ; then
2231 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2233 if test $ol_enable_ldap = yes ; then
2234 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2236 if test $ol_enable_ldbm = yes ; then
2237 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2239 if test $ol_enable_passwd = yes ; then
2240 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2242 if test $ol_enable_perl = yes ; then
2243 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2245 if test $ol_enable_shell = yes ; then
2246 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2248 if test $ol_enable_tcl = yes ; then
2249 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2251 if test $ol_enable_sql = yes ; then
2252 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2254 if test $ol_enable_modules = yes ; then
2255 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2257 if test $ol_enable_multimaster = yes ; then
2258 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2260 if test $ol_enable_wrappers = yes ; then
2261 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2263 if test $ol_enable_phonetic = yes ; then
2264 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2266 if test $ol_enable_rlookups = yes ; then
2267 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2269 if test $ol_enable_aci = yes ; then
2270 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2272 if test $ol_with_ldbm_api != auto ; then
2273 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2275 if test $ol_with_ldbm_type != auto ; then
2276 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2278 if test $ol_with_dnssrv_module != static ; then
2279 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2281 if test $ol_with_ldap_module != static ; then
2282 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2284 if test $ol_with_ldbm_module != static ; then
2285 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2287 if test $ol_with_passwd_module != static ; then
2288 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2290 if test $ol_with_perl_module != static ; then
2291 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2293 if test $ol_with_shell_module != static ; then
2294 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2296 if test $ol_with_tcl_module != static ; then
2297 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2299 if test $ol_with_sql_module != static ; then
2300 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2302 if test $ol_enable_slurpd = yes ; then
2303 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2306 # force settings to no
2316 ol_enable_modules=no
2317 ol_enable_multimaster=no
2318 ol_enable_phonetic=no
2319 ol_enable_rlookups=no
2321 ol_enable_wrappers=no
2322 ol_enable_dynamic=no
2325 ol_with_ldbm_type=no
2327 ol_with_dnssrv_module=static
2328 ol_with_ldap_module=static
2329 ol_with_ldbm_module=static
2330 ol_with_passwd_module=static
2331 ol_with_perl_module=static
2332 ol_with_shell_module=static
2333 ol_with_tcl_module=static
2334 ol_with_sql_module=static
2338 elif test $ol_enable_ldbm = no ; then
2340 if test $ol_with_ldbm_api != auto ; then
2341 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2344 if test $ol_with_ldbm_type != auto ; then
2345 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2348 if test $ol_with_ldbm_module != static ; then
2349 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2352 if test $ol_enable_modules != yes -a \
2353 $ol_enable_dnssrv = no -a \
2354 $ol_enable_ldap = no -a \
2355 $ol_enable_passwd = no -a \
2356 $ol_enable_perl = no -a \
2357 $ol_enable_shell = no -a \
2358 $ol_enable_sql = no -a \
2359 $ol_enable_tcl = no ; then
2360 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2364 ol_with_ldbm_type=no
2365 ol_with_ldbm_module=static
2368 if test $ol_with_ldbm_api = gdbm -a \
2369 $ol_with_ldbm_type = btree ; then
2370 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2372 if test $ol_with_ldbm_api = mdbm -a \
2373 $ol_with_ldbm_type = btree ; then
2374 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2376 if test $ol_with_ldbm_api = ndbm -a \
2377 $ol_with_ldbm_type = btree ; then
2378 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2382 if test $ol_enable_slurpd = yes ; then
2383 if test $ol_with_threads = no ; then
2384 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2388 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2389 if test $ol_with_kerberos = no ; then
2390 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2392 ol_with_kerberos=yes
2393 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2394 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2395 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2400 if test $ol_enable_spasswd = yes ; then
2401 if test $ol_with_cyrus_sasl = no ; then
2402 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2407 echo "$ac_t""done" 1>&6
2432 BUILD_DNSSRV_DYNAMIC=static
2433 BUILD_LDAP_DYNAMIC=static
2434 BUILD_LDBM_DYNAMIC=static
2435 BUILD_PASSWD_DYNAMIC=static
2436 BUILD_PERL_DYNAMIC=static
2437 BUILD_SHELL_DYNAMIC=static
2438 BUILD_TCL_DYNAMIC=static
2439 BUILD_SQL_DYNAMIC=static
2441 SLAPD_MODULES_LDFLAGS=
2442 SLAPD_MODULES_CPPFLAGS=
2465 cat >> confdefs.h <<\EOF
2466 #define HAVE_MKVERSION 1
2474 *-*-aix*) if test -z "$CC" ; then
2475 case "$ol_with_threads" in
2476 auto | yes | posix) ol_aix_threads=yes ;;
2482 if test $ol_aix_threads = yes ; then
2483 if test -z "${CC}" ; then
2484 for ac_prog in cc_r xlc_r cc
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2498 for ac_dir in $ac_dummy; do
2499 test -z "$ac_dir" && ac_dir=.
2500 if test -f $ac_dir/$ac_word; then
2501 ac_cv_prog_CC="$ac_prog"
2509 if test -n "$CC"; then
2510 echo "$ac_t""$CC" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 test -n "$CC" && break
2519 if test "$CC" = cc ; then
2520 if test $ol_with_threads != auto ; then
2521 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2523 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2529 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2530 ol_with_threads=posix
2531 ol_cv_pthread_create=yes
2535 if test -z "${CC}"; then
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_word" >&5
2542 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2550 for ac_dir in $ac_dummy; do
2551 test -z "$ac_dir" && ac_dir=.
2552 if test -f $ac_dir/$ac_word; then
2553 ac_cv_prog_CC="$ac_prog"
2561 if test -n "$CC"; then
2562 echo "$ac_t""$CC" 1>&6
2564 echo "$ac_t""no" 1>&6
2567 test -n "$CC" && break
2575 # Check whether --enable-fast-install or --disable-fast-install was given.
2576 if test "${enable_fast_install+set}" = set; then
2577 enableval="$enable_fast_install"
2578 p=${PACKAGE-default}
2579 case "$enableval" in
2580 yes) enable_fast_install=yes ;;
2581 no) enable_fast_install=no ;;
2583 enable_fast_install=no
2584 # Look at the argument we got. We use all the common list separators.
2585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2586 for pkg in $enableval; do
2587 if test "X$pkg" = "X$p"; then
2588 enable_fast_install=yes
2595 enable_fast_install=yes
2598 # Extract the first word of "ranlib", so it can be a program name with args.
2599 set dummy ranlib; ac_word=$2
2600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2601 echo "configure:2602: checking for $ac_word" >&5
2602 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 if test -n "$RANLIB"; then
2606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2610 for ac_dir in $ac_dummy; do
2611 test -z "$ac_dir" && ac_dir=.
2612 if test -f $ac_dir/$ac_word; then
2613 ac_cv_prog_RANLIB="ranlib"
2618 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2621 RANLIB="$ac_cv_prog_RANLIB"
2622 if test -n "$RANLIB"; then
2623 echo "$ac_t""$RANLIB" 1>&6
2625 echo "$ac_t""no" 1>&6
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629 set dummy gcc; ac_word=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2651 if test -n "$CC"; then
2652 echo "$ac_t""$CC" 1>&6
2654 echo "$ac_t""no" 1>&6
2657 if test -z "$CC"; then
2658 # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2671 for ac_dir in $ac_dummy; do
2672 test -z "$ac_dir" && ac_dir=.
2673 if test -f $ac_dir/$ac_word; then
2674 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2675 ac_prog_rejected=yes
2683 if test $ac_prog_rejected = yes; then
2684 # We found a bogon in the path, so make sure we never use it.
2685 set dummy $ac_cv_prog_CC
2687 if test $# -gt 0; then
2688 # We chose a different compiler from the bogus one.
2689 # However, it has the same basename, so the bogon will be chosen
2690 # first if we set CC to just the basename; use the full file name.
2692 set dummy "$ac_dir/$ac_word" "$@"
2700 if test -n "$CC"; then
2701 echo "$ac_t""$CC" 1>&6
2703 echo "$ac_t""no" 1>&6
2706 if test -z "$CC"; then
2707 case "`uname -s`" in
2708 *win32* | *WIN32* | *CYGWIN*)
2709 # Extract the first word of "cl", so it can be a program name with args.
2710 set dummy cl; ac_word=$2
2711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_word" >&5
2713 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2721 for ac_dir in $ac_dummy; do
2722 test -z "$ac_dir" && ac_dir=.
2723 if test -f $ac_dir/$ac_word; then
2732 if test -n "$CC"; then
2733 echo "$ac_t""$CC" 1>&6
2735 echo "$ac_t""no" 1>&6
2740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2744 echo "configure:2745: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2751 cross_compiling=$ac_cv_prog_cc_cross
2753 cat > conftest.$ac_ext << EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2760 if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2761 ac_cv_prog_cc_works=yes
2762 # If we can't run a trivial program, we are probably using a cross compiler.
2763 if (./conftest; exit) 2>/dev/null; then
2764 ac_cv_prog_cc_cross=no
2766 ac_cv_prog_cc_cross=yes
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 ac_cv_prog_cc_works=no
2775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2779 cross_compiling=$ac_cv_prog_cc_cross
2781 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2782 if test $ac_cv_prog_cc_works = no; then
2783 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2786 echo "configure:2787: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2788 cross_compiling=$ac_cv_prog_cc_cross
2790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2791 echo "configure:2792: checking whether we are using GNU C" >&5
2792 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.c <<EOF
2800 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2807 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2809 if test $ac_cv_prog_gcc = yes; then
2815 ac_test_CFLAGS="${CFLAGS+set}"
2816 ac_save_CFLAGS="$CFLAGS"
2818 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether ${CC-cc} accepts -g" >&5
2820 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 echo 'void f(){}' > conftest.c
2824 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2833 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2834 if test "$ac_test_CFLAGS" = set; then
2835 CFLAGS="$ac_save_CFLAGS"
2836 elif test $ac_cv_prog_cc_g = yes; then
2837 if test "$GCC" = yes; then
2843 if test "$GCC" = yes; then
2850 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2851 if test "${with_gnu_ld+set}" = set; then
2852 withval="$with_gnu_ld"
2853 test "$withval" = no || with_gnu_ld=yes
2859 if test "$ac_cv_prog_gcc" = yes; then
2860 # Check if gcc -print-prog-name=ld gives a path.
2861 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2862 echo "configure:2863: checking for ld used by GCC" >&5
2863 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2865 # Accept absolute paths.
2866 [\\/]* | [A-Za-z]:[\\/]*)
2867 re_direlt='/[^/][^/]*/\.\./'
2868 # Canonicalize the path of ld
2869 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2870 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2871 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2873 test -z "$LD" && LD="$ac_prog"
2876 # If it fails, then pretend we aren't using GCC.
2880 # If it is relative, then search for the first ld in PATH.
2884 elif test "$with_gnu_ld" = yes; then
2885 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2886 echo "configure:2887: checking for GNU ld" >&5
2888 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2889 echo "configure:2890: checking for non-GNU ld" >&5
2891 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 if test -z "$LD"; then
2895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2896 for ac_dir in $PATH; do
2897 test -z "$ac_dir" && ac_dir=.
2898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2899 ac_cv_path_LD="$ac_dir/$ac_prog"
2900 # Check to see if the program is GNU ld. I'd rather use --version,
2901 # but apparently some GNU ld's only accept -v.
2902 # Break only if it was the GNU/non-GNU ld that we prefer.
2903 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2904 test "$with_gnu_ld" != no && break
2906 test "$with_gnu_ld" != yes && break
2912 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2917 if test -n "$LD"; then
2918 echo "$ac_t""$LD" 1>&6
2920 echo "$ac_t""no" 1>&6
2922 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2923 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2924 echo "configure:2925: checking if the linker ($LD) is GNU ld" >&5
2925 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2929 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2930 ac_cv_prog_gnu_ld=yes
2932 ac_cv_prog_gnu_ld=no
2936 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2939 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2940 echo "configure:2941: checking for BSD-compatible nm" >&5
2941 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 if test -n "$NM"; then
2945 # Let the user override the test.
2948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2949 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2950 test -z "$ac_dir" && ac_dir=.
2951 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2952 # Check to see if the nm accepts a BSD-compat flag.
2953 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2954 # nm: unknown option "B" ignored
2955 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2956 ac_cv_path_NM="$ac_dir/nm -B"
2958 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2959 ac_cv_path_NM="$ac_dir/nm -p"
2962 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2963 continue # so that we can try to find one that supports BSD flags
2968 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2973 echo "$ac_t""$NM" 1>&6
2975 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2976 echo "configure:2977: checking whether ln -s works" >&5
2977 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2981 if ln -s X conftestdata 2>/dev/null
2984 ac_cv_prog_LN_S="ln -s"
2989 LN_S="$ac_cv_prog_LN_S"
2990 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2991 echo "$ac_t""yes" 1>&6
2993 echo "$ac_t""no" 1>&6
2996 if test $host != $build; then
2997 ac_tool_prefix=${host_alias}-
3004 NONE) lt_target="$host" ;;
3005 *) lt_target="$target" ;;
3008 # Check for any special flags to pass to ltconfig.
3009 libtool_flags="--cache-file=$cache_file"
3010 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3011 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3012 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3013 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3014 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3015 libtool_flags="$libtool_flags --enable-dlopen"
3016 libtool_flags="$libtool_flags --enable-win32-dll"
3017 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3018 if test "${enable_libtool_lock+set}" = set; then
3019 enableval="$enable_libtool_lock"
3023 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3024 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3026 # Some flags need to be propagated to the compiler or linker for good
3028 case "$lt_target" in
3030 # Find out which ABI we are using.
3031 echo '#line 3032 "configure"' > conftest.$ac_ext
3032 if { (eval echo configure:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3033 case "`/usr/bin/file conftest.o`" in
3049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3050 SAVE_CFLAGS="$CFLAGS"
3051 CFLAGS="$CFLAGS -belf"
3052 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3053 echo "configure:3054: checking whether the C compiler needs -belf" >&5
3054 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3065 if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3067 lt_cv_cc_needs_belf=yes
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3072 lt_cv_cc_needs_belf=no
3077 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3078 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3079 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3080 CFLAGS="$SAVE_CFLAGS"
3084 *-*-cygwin* | *-*-mingw*)
3085 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_word" >&5
3089 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 if test -n "$DLLTOOL"; then
3093 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3097 for ac_dir in $ac_dummy; do
3098 test -z "$ac_dir" && ac_dir=.
3099 if test -f $ac_dir/$ac_word; then
3100 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3107 DLLTOOL="$ac_cv_prog_DLLTOOL"
3108 if test -n "$DLLTOOL"; then
3109 echo "$ac_t""$DLLTOOL" 1>&6
3111 echo "$ac_t""no" 1>&6
3115 if test -z "$ac_cv_prog_DLLTOOL"; then
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "dlltool", so it can be a program name with args.
3118 set dummy dlltool; ac_word=$2
3119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_word" >&5
3121 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 if test -n "$DLLTOOL"; then
3125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3129 for ac_dir in $ac_dummy; do
3130 test -z "$ac_dir" && ac_dir=.
3131 if test -f $ac_dir/$ac_word; then
3132 ac_cv_prog_DLLTOOL="dlltool"
3137 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3140 DLLTOOL="$ac_cv_prog_DLLTOOL"
3141 if test -n "$DLLTOOL"; then
3142 echo "$ac_t""$DLLTOOL" 1>&6
3144 echo "$ac_t""no" 1>&6
3152 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}as; ac_word=$2
3154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_word" >&5
3156 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 if test -n "$AS"; then
3160 ac_cv_prog_AS="$AS" # Let the user override the test.
3162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3164 for ac_dir in $ac_dummy; do
3165 test -z "$ac_dir" && ac_dir=.
3166 if test -f $ac_dir/$ac_word; then
3167 ac_cv_prog_AS="${ac_tool_prefix}as"
3175 if test -n "$AS"; then
3176 echo "$ac_t""$AS" 1>&6
3178 echo "$ac_t""no" 1>&6
3182 if test -z "$ac_cv_prog_AS"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "as", so it can be a program name with args.
3185 set dummy as; ac_word=$2
3186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3187 echo "configure:3188: checking for $ac_word" >&5
3188 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 if test -n "$AS"; then
3192 ac_cv_prog_AS="$AS" # Let the user override the test.
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3196 for ac_dir in $ac_dummy; do
3197 test -z "$ac_dir" && ac_dir=.
3198 if test -f $ac_dir/$ac_word; then
3204 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3208 if test -n "$AS"; then
3209 echo "$ac_t""$AS" 1>&6
3211 echo "$ac_t""no" 1>&6
3219 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 if test -n "$OBJDUMP"; then
3227 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3231 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if test -f $ac_dir/$ac_word; then
3234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3241 OBJDUMP="$ac_cv_prog_OBJDUMP"
3242 if test -n "$OBJDUMP"; then
3243 echo "$ac_t""$OBJDUMP" 1>&6
3245 echo "$ac_t""no" 1>&6
3249 if test -z "$ac_cv_prog_OBJDUMP"; then
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "objdump", so it can be a program name with args.
3252 set dummy objdump; ac_word=$2
3253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_word" >&5
3255 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 if test -n "$OBJDUMP"; then
3259 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3263 for ac_dir in $ac_dummy; do
3264 test -z "$ac_dir" && ac_dir=.
3265 if test -f $ac_dir/$ac_word; then
3266 ac_cv_prog_OBJDUMP="objdump"
3271 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3274 OBJDUMP="$ac_cv_prog_OBJDUMP"
3275 if test -n "$OBJDUMP"; then
3276 echo "$ac_t""$OBJDUMP" 1>&6
3278 echo "$ac_t""no" 1>&6
3291 # Save cache, so that ltconfig can load it
3294 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3295 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3296 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3297 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3298 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3299 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3300 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3301 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3303 # Reload cache, that may have been modified by ltconfig
3306 # This can be used to rebuild libtool when needed
3307 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3309 # Always use our own libtool.
3310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3312 # Redirect the config.log output again, so that the ltconfig log is not
3313 # clobbered by the next message.
3314 exec 5>>./config.log
3317 for ac_prog in mawk gawk nawk awk
3319 # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3322 echo "configure:3323: checking for $ac_word" >&5
3323 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 if test -n "$AWK"; then
3327 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3331 for ac_dir in $ac_dummy; do
3332 test -z "$ac_dir" && ac_dir=.
3333 if test -f $ac_dir/$ac_word; then
3334 ac_cv_prog_AWK="$ac_prog"
3341 AWK="$ac_cv_prog_AWK"
3342 if test -n "$AWK"; then
3343 echo "$ac_t""$AWK" 1>&6
3345 echo "$ac_t""no" 1>&6
3348 test -n "$AWK" && break
3351 # test for ln hardlink support
3352 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3353 echo "configure:3354: checking whether ln works" >&5
3354 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 rm -f conftest.src conftest.dst
3358 echo "conftest" > conftest.src
3359 if ln conftest.src conftest.dst 2>/dev/null
3361 ol_cv_prog_LN_H="ln"
3363 ol_cv_prog_LN_H="cp"
3365 rm -f conftest.src conftest.dst
3368 LN_H="$ol_cv_prog_LN_H"
3369 if test "$ol_cv_prog_LN_H" = "ln"; then
3370 echo "$ac_t""yes" 1>&6
3372 echo "$ac_t""no" 1>&6
3375 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3376 echo "configure:3377: checking whether ln -s works" >&5
3377 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3381 if ln -s X conftestdata 2>/dev/null
3384 ac_cv_prog_LN_S="ln -s"
3389 LN_S="$ac_cv_prog_LN_S"
3390 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3391 echo "$ac_t""yes" 1>&6
3393 echo "$ac_t""no" 1>&6
3397 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3401 # Extract the first word of "sendmail", so it can be a program name with args.
3402 set dummy sendmail; ac_word=$2
3403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3404 echo "configure:3405: checking for $ac_word" >&5
3405 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3410 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3413 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3418 for ac_dir in $ac_dummy; do
3419 test -z "$ac_dir" && ac_dir=.
3420 if test -f $ac_dir/$ac_word; then
3421 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3426 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3430 SENDMAIL="$ac_cv_path_SENDMAIL"
3431 if test -n "$SENDMAIL"; then
3432 echo "$ac_t""$SENDMAIL" 1>&6
3434 echo "$ac_t""no" 1>&6
3437 # Extract the first word of "vi", so it can be a program name with args.
3438 set dummy vi; ac_word=$2
3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_word" >&5
3441 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3446 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3449 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3453 ac_dummy="$PATH:/usr/ucb"
3454 for ac_dir in $ac_dummy; do
3455 test -z "$ac_dir" && ac_dir=.
3456 if test -f $ac_dir/$ac_word; then
3457 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3462 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3466 EDITOR="$ac_cv_path_EDITOR"
3467 if test -n "$EDITOR"; then
3468 echo "$ac_t""$EDITOR" 1>&6
3470 echo "$ac_t""no" 1>&6
3473 # Extract the first word of "finger", so it can be a program name with args.
3474 set dummy finger; ac_word=$2
3475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3476 echo "configure:3477: checking for $ac_word" >&5
3477 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3482 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3485 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3489 ac_dummy="$PATH:/usr/ucb"
3490 for ac_dir in $ac_dummy; do
3491 test -z "$ac_dir" && ac_dir=.
3492 if test -f $ac_dir/$ac_word; then
3493 ac_cv_path_FINGER="$ac_dir/$ac_word"
3498 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3502 FINGER="$ac_cv_path_FINGER"
3503 if test -n "$FINGER"; then
3504 echo "$ac_t""$FINGER" 1>&6
3506 echo "$ac_t""no" 1>&6
3511 if test $ol_enable_perl != no ; then
3512 # Extract the first word of "perl", so it can be a program name with args.
3513 set dummy perl; ac_word=$2
3514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_word" >&5
3516 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3521 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3524 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3529 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/$ac_word; then
3532 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3537 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3541 PERLBIN="$ac_cv_path_PERLBIN"
3542 if test -n "$PERLBIN"; then
3543 echo "$ac_t""$PERLBIN" 1>&6
3545 echo "$ac_t""no" 1>&6
3549 if test "no$PERLBIN" = "no" ; then
3550 if test $ol_enable_perl = yes ; then
3551 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3555 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3556 if test x"$ol_with_perl_module" = "xstatic" ; then
3557 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3559 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3565 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3566 echo "configure:3567: checking how to run the C preprocessor" >&5
3567 # On Suns, sometimes $CPP names a directory.
3568 if test -n "$CPP" && test -d "$CPP"; then
3571 if test -z "$CPP"; then
3572 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 # This must be in double quotes, not single quotes, because CPP may get
3576 # substituted into the Makefile and "${CC-cc}" will confuse make.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp.
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3587 { (eval echo configure:3588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3589 if test -z "$ac_err"; then
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 CPP="${CC-cc} -E -traditional-cpp"
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3604 { (eval echo configure:3605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3606 if test -z "$ac_err"; then
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3613 CPP="${CC-cc} -nologo -E"
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3621 { (eval echo configure:3622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3623 if test -z "$ac_err"; then
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3637 ac_cv_prog_CPP="$CPP"
3639 CPP="$ac_cv_prog_CPP"
3641 ac_cv_prog_CPP="$CPP"
3643 echo "$ac_t""$CPP" 1>&6
3646 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3647 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3649 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3650 echo "configure: warning: programs compiled here do run here..." 1>&2
3651 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3653 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3654 echo "configure: warning: programs compiled here do not run here..." 1>&2
3655 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3658 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3659 echo "configure:3660: checking for AIX" >&5
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669 egrep "yes" >/dev/null 2>&1; then
3671 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3672 #define _ALL_SOURCE 1
3677 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3683 echo "configure:3684: checking for POSIXized ISC" >&5
3684 if test -d /etc/conf/kconfig.d &&
3685 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3687 echo "$ac_t""yes" 1>&6
3688 ISC=yes # If later tests want to check for ISC.
3689 cat >> confdefs.h <<\EOF
3690 #define _POSIX_SOURCE 1
3693 if test "$GCC" = yes; then
3699 echo "$ac_t""no" 1>&6
3703 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3704 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3705 echo "configure:3706: checking for minix/config.h" >&5
3706 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <minix/config.h>
3714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3715 { (eval echo configure:3716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3717 if test -z "$ac_err"; then
3719 eval "ac_cv_header_$ac_safe=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_header_$ac_safe=no"
3729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3733 echo "$ac_t""no" 1>&6
3737 if test "$MINIX" = yes; then
3738 cat >> confdefs.h <<\EOF
3739 #define _POSIX_SOURCE 1
3742 cat >> confdefs.h <<\EOF
3743 #define _POSIX_1_SOURCE 2
3746 cat >> confdefs.h <<\EOF
3753 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3754 echo "configure:3755: checking for Cygwin environment" >&5
3755 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3765 #define __CYGWIN__ __CYGWIN32__
3770 if { (eval echo configure:3771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3782 echo "$ac_t""$ac_cv_cygwin" 1>&6
3784 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3785 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3786 echo "configure:3787: checking for mingw32 environment" >&5
3787 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3798 if { (eval echo configure:3799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3810 echo "$ac_t""$ac_cv_mingw32" 1>&6
3812 test "$ac_cv_mingw32" = yes && MINGW32=yes
3813 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3814 echo "configure:3815: checking for EMX OS/2 environment" >&5
3815 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3838 echo "$ac_t""$ac_cv_emxos2" 1>&6
3840 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3844 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3845 echo "configure:3846: checking for executable suffix" >&5
3846 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3853 echo 'int main () { return 0; }' > conftest.$ac_ext
3855 if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3856 for file in conftest.*; do
3858 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3859 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3863 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3866 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3871 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3872 echo "$ac_t""${ac_cv_exeext}" 1>&6
3875 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3876 echo "configure:3877: checking for object suffix" >&5
3877 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3881 echo 'int i = 1;' > conftest.$ac_ext
3882 if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 for ac_file in conftest.*; do
3886 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3890 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3895 echo "$ac_t""$ac_cv_objext" 1>&6
3896 OBJEXT=$ac_cv_objext
3897 ac_objext=$ac_cv_objext
3900 cat >> confdefs.h <<EOF
3901 #define EXEEXT "${EXEEXT}"
3905 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3906 echo "configure:3907: checking for be_app in -lbe" >&5
3907 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3908 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 ac_save_LIBS="$LIBS"
3912 LIBS="-lbe -lroot -lnet $LIBS"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 eval "ac_cv_lib_$ac_lib_var=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_lib_$ac_lib_var=no"
3935 LIBS="$ac_save_LIBS"
3938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3940 LIBS="$LIBS -lbe -lroot -lnet"
3942 echo "$ac_t""no" 1>&6
3950 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3951 echo "configure:3952: checking for ${CC-cc} option to accept ANSI C" >&5
3952 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 am_cv_prog_cc_stdc=no
3957 # Don't try gcc -ansi; that turns off useful extensions and
3958 # breaks some systems' header files.
3959 # AIX -qlanglvl=ansi
3960 # Ultrix and OSF/1 -std1
3961 # HP-UX 10.20 and later -Ae
3962 # HP-UX older versions -Aa -D_HPUX_SOURCE
3963 # SVR4 -Xc -D__EXTENSIONS__
3964 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3966 CC="$ac_save_CC $ac_arg"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3972 #include <sys/types.h>
3973 #include <sys/stat.h>
3974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3975 struct buf { int x; };
3976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3977 static char *e (p, i)
3983 static char *f (char * (*g) (char **, int), char **p, ...)
3988 s = g (p, va_arg (v,int));
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4005 if { (eval echo configure:4006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4007 am_cv_prog_cc_stdc="$ac_arg"; break
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4018 if test -z "$am_cv_prog_cc_stdc"; then
4019 echo "$ac_t""none needed" 1>&6
4021 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4023 case "x$am_cv_prog_cc_stdc" in
4025 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4028 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4029 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4032 # test for make depend flag
4035 if test -z "${MKDEP}"; then
4037 if test -z "${MKDEP_FLAGS}"; then
4038 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4039 echo "configure:4040: checking for ${OL_MKDEP} depend flag" >&5
4040 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4045 for flag in "-M" "-xM"; do
4046 cat > conftest.c <<EOF
4049 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4050 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4052 if test ! -f conftest."${ac_object}" ; then
4054 OL_MKDEP_FLAGS="$flag"
4063 echo "$ac_t""$ol_cv_mkdep" 1>&6
4066 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4071 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4076 if test "${ol_cv_mkdep}" = no ; then
4077 # this will soon become an error
4078 echo "configure: warning: do not know how to generate dependencies" 1>&2
4081 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4082 echo "configure:4083: checking for afopen in -ls" >&5
4083 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 ac_save_LIBS="$LIBS"
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4092 /* Override any gcc2 internal prototype to avoid an error. */
4093 /* We use char because int might match the return type of a gcc2
4094 builtin and then its argument prototype would still apply. */
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4103 eval "ac_cv_lib_$ac_lib_var=yes"
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 eval "ac_cv_lib_$ac_lib_var=no"
4111 LIBS="$ac_save_LIBS"
4114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4115 echo "$ac_t""yes" 1>&6
4118 cat >> confdefs.h <<\EOF
4119 #define HAVE_AIX_SECURITY 1
4124 echo "$ac_t""no" 1>&6
4129 for ac_func in getaddrinfo
4131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_func" >&5
4133 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 /* System header to define __stub macros and hopefully few prototypes,
4140 which can conflict with char $ac_func(); below. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4150 /* The GNU C library defines this for functions which it implements
4151 to always fail with ENOSYS. Some functions are actually named
4152 something starting with __ and the normal name is an alias. */
4153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4161 if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4163 eval "ac_cv_func_$ac_func=yes"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4168 eval "ac_cv_func_$ac_func=no"
4173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4174 echo "$ac_t""yes" 1>&6
4175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4176 cat >> confdefs.h <<EOF
4177 #define $ac_tr_func 1
4181 echo "$ac_t""no" 1>&6
4186 if test $ac_cv_func_getaddrinfo = no ; then
4187 if test $ol_enable_ipv6 = yes ; then
4188 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4193 if test $ol_enable_local != no ; then
4194 for ac_hdr in sys/un.h
4196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4198 echo "configure:4199: checking for $ac_hdr" >&5
4199 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4208 { (eval echo configure:4209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4210 if test -z "$ac_err"; then
4212 eval "ac_cv_header_$ac_safe=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 eval "ac_cv_header_$ac_safe=no"
4222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4223 echo "$ac_t""yes" 1>&6
4224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4225 cat >> confdefs.h <<EOF
4226 #define $ac_tr_hdr 1
4230 echo "$ac_t""no" 1>&6
4235 if test $ol_enable_local = auto ; then
4236 ol_enable_local=$ac_cv_header_sys_un_h
4237 elif test $ac_cv_header_sys_un_h = no ; then
4238 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
4243 if test $ol_enable_modules != no ; then
4244 for ac_hdr in ltdl.h
4246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4248 echo "configure:4249: checking for $ac_hdr" >&5
4249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4258 { (eval echo configure:4259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4260 if test -z "$ac_err"; then
4262 eval "ac_cv_header_$ac_safe=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_header_$ac_safe=no"
4272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4275 cat >> confdefs.h <<EOF
4276 #define $ac_tr_hdr 1
4280 echo "$ac_t""no" 1>&6
4285 if test $ac_cv_header_ltdl_h = no ; then
4286 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4289 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4290 echo "configure:4291: checking for lt_dlinit in -lltdl" >&5
4291 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4292 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 ac_save_LIBS="$LIBS"
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4311 eval "ac_cv_lib_$ac_lib_var=yes"
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4316 eval "ac_cv_lib_$ac_lib_var=no"
4319 LIBS="$ac_save_LIBS"
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4323 echo "$ac_t""yes" 1>&6
4326 cat >> confdefs.h <<\EOF
4327 #define HAVE_LIBLTDL 1
4332 echo "$ac_t""no" 1>&6
4336 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4337 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4341 ol_with_dnssrv_module=static
4342 ol_with_ldap_module=static
4343 ol_with_ldbm_module=static
4344 ol_with_passwd_module=static
4345 ol_with_perl_module=static
4346 ol_with_shell_module=static
4347 ol_with_tcl_module=static
4348 ol_with_sql_module=static
4352 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4353 echo "configure:4354: checking for EBCDIC" >&5
4354 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4363 #include <__ASCII__/generate_error.h>
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4370 if test -z "$ac_err"; then
4372 ol_cv_cpp_ebcdic=yes
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4383 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4384 if test $ol_cv_cpp_ebcdic = yes ; then
4385 cat >> confdefs.h <<\EOF
4386 #define HAVE_EBCDIC 1
4391 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4392 echo "configure:4393: checking for ANSI C header files" >&5
4393 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4405 { (eval echo configure:4406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4407 if test -z "$ac_err"; then
4409 ol_cv_header_stdc=yes
4412 echo "configure: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 ol_cv_header_stdc=no
4419 if test $ol_cv_header_stdc = yes; then
4420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 egrep "memchr" >/dev/null 2>&1; then
4431 ol_cv_header_stdc=no
4437 if test $ol_cv_header_stdc = yes; then
4438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 egrep "free" >/dev/null 2>&1; then
4449 ol_cv_header_stdc=no
4455 if test $ol_cv_header_stdc = yes; then
4456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4457 if test "$cross_compiling" = yes; then
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4468 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4469 || ('j' <= (c) && (c) <= 'r') \
4470 || ('s' <= (c) && (c) <= 'z'))
4471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 int main () { int i; for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4486 ol_cv_header_stdc=no
4494 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4495 if test $ol_cv_header_stdc = yes; then
4496 cat >> confdefs.h <<\EOF
4497 #define STDC_HEADERS 1
4501 ac_cv_header_stdc=disable
4504 if test $ol_cv_header_stdc != yes; then
4505 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4509 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4512 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4513 echo "configure:4514: checking for $ac_hdr that defines DIR" >&5
4514 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 #include <sys/types.h>
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4528 eval "ac_cv_header_dirent_$ac_safe=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 eval "ac_cv_header_dirent_$ac_safe=no"
4537 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4540 cat >> confdefs.h <<EOF
4541 #define $ac_tr_hdr 1
4543 ac_header_dirent=$ac_hdr; break
4545 echo "$ac_t""no" 1>&6
4548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4549 if test $ac_header_dirent = dirent.h; then
4550 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4551 echo "configure:4552: checking for opendir in -ldir" >&5
4552 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4553 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 ac_save_LIBS="$LIBS"
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* Override any gcc2 internal prototype to avoid an error. */
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4572 eval "ac_cv_lib_$ac_lib_var=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 eval "ac_cv_lib_$ac_lib_var=no"
4580 LIBS="$ac_save_LIBS"
4583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4587 echo "$ac_t""no" 1>&6
4591 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4592 echo "configure:4593: checking for opendir in -lx" >&5
4593 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 ac_save_LIBS="$LIBS"
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4618 eval "ac_cv_lib_$ac_lib_var=no"
4621 LIBS="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4628 echo "$ac_t""no" 1>&6
4633 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4634 echo "configure:4635: checking for sys/wait.h that is POSIX.1 compatible" >&5
4635 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <sys/types.h>
4642 #include <sys/wait.h>
4644 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4647 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4652 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4655 if { (eval echo configure:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4657 ac_cv_header_sys_wait_h=yes
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 ac_cv_header_sys_wait_h=no
4667 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4668 if test $ac_cv_header_sys_wait_h = yes; then
4669 cat >> confdefs.h <<\EOF
4670 #define HAVE_SYS_WAIT_H 1
4675 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4676 echo "configure:4677: checking POSIX termios" >&5
4677 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 #include <sys/types.h>
4685 #include <termios.h>
4687 /* SunOS 4.0.3 has termios.h but not the library calls. */
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 am_cv_sys_posix_termios=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 am_cv_sys_posix_termios=no
4703 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4706 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4707 echo "configure:4708: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4708 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4713 gwinsz_in_termios_h=no
4714 if test $am_cv_sys_posix_termios = yes; then
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <sys/types.h>
4719 # include <termios.h>
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 egrep "yes" >/dev/null 2>&1; then
4728 gwinsz_in_termios_h=yes
4734 if test $gwinsz_in_termios_h = no; then
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 #include <sys/types.h>
4739 # include <sys/ioctl.h>
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 egrep "yes" >/dev/null 2>&1; then
4748 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4756 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4757 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4758 cat >> confdefs.h <<\EOF
4759 #define GWINSZ_IN_SYS_IOCTL 1
4764 if test $am_cv_sys_posix_termios = yes ; then
4765 cat >> confdefs.h <<\EOF
4766 #define HAVE_POSIX_TERMIOS 1
4817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_hdr" >&5
4820 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4833 eval "ac_cv_header_$ac_safe=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 eval "ac_cv_header_$ac_safe=no"
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4846 cat >> confdefs.h <<EOF
4847 #define $ac_tr_hdr 1
4851 echo "$ac_t""no" 1>&6
4858 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4859 echo "configure:4860: checking for sigset in -lV3" >&5
4860 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 ac_save_LIBS="$LIBS"
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 /* Override any gcc2 internal prototype to avoid an error. */
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 eval "ac_cv_lib_$ac_lib_var=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_lib_$ac_lib_var=no"
4888 LIBS="$ac_save_LIBS"
4891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4895 cat >> confdefs.h <<EOF
4896 #define $ac_tr_lib 1
4902 echo "$ac_t""no" 1>&6
4906 if test $ac_cv_header_winsock_h = yes; then
4907 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4908 echo "configure:4909: checking for winsock" >&5
4909 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 #include <winsock.h>
4919 select(0,NULL,NULL,NULL,NULL);
4921 gethostname(NULL,0);
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4937 echo "$ac_t""$ol_cv_winsock" 1>&6
4939 if test $ol_cv_winsock = yes ; then
4940 cat >> confdefs.h <<\EOF
4941 #define HAVE_WINSOCK 1
4944 ac_cv_func_socket=yes
4945 ac_cv_func_select=yes
4946 ac_cv_func_closesocket=yes
4947 ac_cv_func_gethostname=yes
4952 echo $ac_n "checking for socket""... $ac_c" 1>&6
4953 echo "configure:4954: checking for socket" >&5
4954 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char socket(); below. */
4963 /* Override any gcc2 internal prototype to avoid an error. */
4964 /* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4971 /* The GNU C library defines this for functions which it implements
4972 to always fail with ENOSYS. Some functions are actually named
4973 something starting with __ and the normal name is an alias. */
4974 #if defined (__stub_socket) || defined (__stub___socket)
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4984 eval "ac_cv_func_socket=yes"
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4989 eval "ac_cv_func_socket=no"
4994 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4995 echo "$ac_t""yes" 1>&6
4998 echo "$ac_t""no" 1>&6
5000 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5001 echo "configure:5002: checking for main in -lsocket" >&5
5002 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5003 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 ac_save_LIBS="$LIBS"
5007 LIBS="-lsocket $LIBS"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018 eval "ac_cv_lib_$ac_lib_var=yes"
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 eval "ac_cv_lib_$ac_lib_var=no"
5026 LIBS="$ac_save_LIBS"
5029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5030 echo "$ac_t""yes" 1>&6
5031 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5033 cat >> confdefs.h <<EOF
5034 #define $ac_tr_lib 1
5037 LIBS="-lsocket $LIBS"
5040 echo "$ac_t""no" 1>&6
5043 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5044 echo "configure:5045: checking for main in -lnet" >&5
5045 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 ac_save_LIBS="$LIBS"
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_lib_$ac_lib_var=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_lib_$ac_lib_var=no"
5069 LIBS="$ac_save_LIBS"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5076 cat >> confdefs.h <<EOF
5077 #define $ac_tr_lib 1
5083 echo "$ac_t""no" 1>&6
5086 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5087 echo "configure:5088: checking for main in -lnsl_s" >&5
5088 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5089 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 ac_save_LIBS="$LIBS"
5093 LIBS="-lnsl_s $LIBS"
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 eval "ac_cv_lib_$ac_lib_var=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 eval "ac_cv_lib_$ac_lib_var=no"
5112 LIBS="$ac_save_LIBS"
5115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5119 cat >> confdefs.h <<EOF
5120 #define $ac_tr_lib 1
5123 LIBS="-lnsl_s $LIBS"
5126 echo "$ac_t""no" 1>&6
5129 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5130 echo "configure:5131: checking for main in -lnsl" >&5
5131 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 ac_save_LIBS="$LIBS"
5137 cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 eval "ac_cv_lib_$ac_lib_var=yes"
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5152 eval "ac_cv_lib_$ac_lib_var=no"
5155 LIBS="$ac_save_LIBS"
5158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5162 cat >> confdefs.h <<EOF
5163 #define $ac_tr_lib 1
5169 echo "$ac_t""no" 1>&6
5172 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5173 echo "configure:5174: checking for socket in -linet" >&5
5174 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5175 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 ac_save_LIBS="$LIBS"
5180 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 eval "ac_cv_lib_$ac_lib_var=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_lib_$ac_lib_var=no"
5202 LIBS="$ac_save_LIBS"
5205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5209 cat >> confdefs.h <<EOF
5210 #define $ac_tr_lib 1
5216 echo "$ac_t""no" 1>&6
5219 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5220 echo "configure:5221: checking for main in -lgen" >&5
5221 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 ac_save_LIBS="$LIBS"
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 eval "ac_cv_lib_$ac_lib_var=yes"
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 eval "ac_cv_lib_$ac_lib_var=no"
5245 LIBS="$ac_save_LIBS"
5248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5252 cat >> confdefs.h <<EOF
5253 #define $ac_tr_lib 1
5259 echo "$ac_t""no" 1>&6
5266 echo $ac_n "checking for select""... $ac_c" 1>&6
5267 echo "configure:5268: checking for select" >&5
5268 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 /* System header to define __stub macros and hopefully few prototypes,
5275 which can conflict with char select(); below. */
5277 /* Override any gcc2 internal prototype to avoid an error. */
5278 /* We use char because int might match the return type of a gcc2
5279 builtin and then its argument prototype would still apply. */
5285 /* The GNU C library defines this for functions which it implements
5286 to always fail with ENOSYS. Some functions are actually named
5287 something starting with __ and the normal name is an alias. */
5288 #if defined (__stub_select) || defined (__stub___select)
5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5298 eval "ac_cv_func_select=yes"
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5303 eval "ac_cv_func_select=no"
5308 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5309 echo "$ac_t""yes" 1>&6
5312 echo "$ac_t""no" 1>&6
5313 { echo "configure: error: select() required." 1>&2; exit 1; }
5317 if test "${ac_cv_header_winsock_h}" != yes; then
5318 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5319 echo "configure:5320: checking types of arguments for select()" >&5
5320 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5330 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5331 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335 #ifdef HAVE_SYS_TYPES_H
5336 #include <sys/types.h>
5338 #ifdef HAVE_SYS_TIME_H
5339 #include <sys/time.h>
5341 #ifdef HAVE_SYS_SELECT_H
5342 #include <sys/select.h>
5344 #ifdef HAVE_SYS_SOCKET_H
5345 #include <sys/socket.h>
5347 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);
5352 if { (eval echo configure:5353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5354 ac_not_found=no ; break 3
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5371 if test "$ac_not_found" = yes; then
5372 ac_cv_func_select_arg1=int
5373 ac_cv_func_select_arg234='int *'
5374 ac_cv_func_select_arg5='struct timeval *'
5376 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5377 cat >> confdefs.h <<EOF
5378 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5381 cat >> confdefs.h <<EOF
5382 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5385 cat >> confdefs.h <<EOF
5386 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5393 for ac_hdr in regex.h
5395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5397 echo "configure:5398: checking for $ac_hdr" >&5
5398 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5407 { (eval echo configure:5408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5409 if test -z "$ac_err"; then
5411 eval "ac_cv_header_$ac_safe=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_header_$ac_safe=no"
5421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5424 cat >> confdefs.h <<EOF
5425 #define $ac_tr_hdr 1
5429 echo "$ac_t""no" 1>&6
5433 if test "$ac_cv_header_regex_h" != yes ; then
5434 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5436 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5437 echo "configure:5438: checking for regfree" >&5
5438 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5444 /* System header to define __stub macros and hopefully few prototypes,
5445 which can conflict with char regfree(); below. */
5447 /* Override any gcc2 internal prototype to avoid an error. */
5448 /* We use char because int might match the return type of a gcc2
5449 builtin and then its argument prototype would still apply. */
5455 /* The GNU C library defines this for functions which it implements
5456 to always fail with ENOSYS. Some functions are actually named
5457 something starting with __ and the normal name is an alias. */
5458 #if defined (__stub_regfree) || defined (__stub___regfree)
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5468 eval "ac_cv_func_regfree=yes"
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 eval "ac_cv_func_regfree=no"
5478 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5479 echo "$ac_t""yes" 1>&6
5482 echo "$ac_t""no" 1>&6
5483 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5488 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5489 echo "configure:5490: checking for compatible POSIX regex" >&5
5490 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5494 if test "$cross_compiling" = yes; then
5495 ol_cv_c_posix_regex=cross
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5501 #include <sys/types.h>
5503 static char *pattern, *string;
5511 if(regcomp(&re, pattern, 0)) {
5515 string = "ALL MATCH";
5517 rc = regexec(&re, string, 0, (void*)0, 0);
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5526 ol_cv_c_posix_regex=yes
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5531 ol_cv_c_posix_regex=no
5538 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5540 if test "$ol_cv_c_posix_regex" = no ; then
5541 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5545 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5546 echo "configure:5547: checking for res_query" >&5
5547 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 /* System header to define __stub macros and hopefully few prototypes,
5554 which can conflict with char res_query(); below. */
5556 /* Override any gcc2 internal prototype to avoid an error. */
5557 /* We use char because int might match the return type of a gcc2
5558 builtin and then its argument prototype would still apply. */
5564 /* The GNU C library defines this for functions which it implements
5565 to always fail with ENOSYS. Some functions are actually named
5566 something starting with __ and the normal name is an alias. */
5567 #if defined (__stub_res_query) || defined (__stub___res_query)
5575 if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5577 eval "ac_cv_func_res_query=yes"
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 eval "ac_cv_func_res_query=no"
5587 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5588 echo "$ac_t""yes" 1>&6
5591 echo "$ac_t""no" 1>&6
5594 if test $ac_cv_func_res_query = no ; then
5595 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5596 echo "configure:5597: checking for res_query in -lbind" >&5
5597 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5598 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 ac_save_LIBS="$LIBS"
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 /* Override any gcc2 internal prototype to avoid an error. */
5607 /* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 eval "ac_cv_lib_$ac_lib_var=yes"
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 eval "ac_cv_lib_$ac_lib_var=no"
5625 LIBS="$ac_save_LIBS"
5628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5632 cat >> confdefs.h <<EOF
5633 #define $ac_tr_lib 1
5639 echo "$ac_t""no" 1>&6
5642 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5645 if test $ac_cv_func_res_query = no ; then
5646 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5647 echo "configure:5648: checking for __res_query in -lbind" >&5
5648 ac_lib_var=`echo bind'_'__res_query | 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"
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5668 eval "ac_cv_lib_$ac_lib_var=yes"
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 eval "ac_cv_lib_$ac_lib_var=no"
5676 LIBS="$ac_save_LIBS"
5679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5680 echo "$ac_t""yes" 1>&6
5681 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5683 cat >> confdefs.h <<EOF
5684 #define $ac_tr_lib 1
5690 echo "$ac_t""no" 1>&6
5693 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5696 if test $ac_cv_func_res_query = no ; then
5697 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5698 echo "configure:5699: checking for res_query in -lresolv" >&5
5699 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5700 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 ac_save_LIBS="$LIBS"
5704 LIBS="-lresolv $LIBS"
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5717 if { (eval echo configure:5718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5719 eval "ac_cv_lib_$ac_lib_var=yes"
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5724 eval "ac_cv_lib_$ac_lib_var=no"
5727 LIBS="$ac_save_LIBS"
5730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5731 echo "$ac_t""yes" 1>&6
5732 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5733 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5734 cat >> confdefs.h <<EOF
5735 #define $ac_tr_lib 1
5738 LIBS="-lresolv $LIBS"
5741 echo "$ac_t""no" 1>&6
5744 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5747 if test "$ac_cv_func_res_query" = yes ; then
5748 cat >> confdefs.h <<\EOF
5749 #define HAVE_RES_QUERY 1
5753 if test $ol_enable_dnssrv != no ; then
5758 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5759 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5767 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5768 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5769 -o $ol_with_kerberos = k425 ; then
5771 for ac_hdr in krb5.h
5773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5775 echo "configure:5776: checking for $ac_hdr" >&5
5776 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5785 { (eval echo configure:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5787 if test -z "$ac_err"; then
5789 eval "ac_cv_header_$ac_safe=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 eval "ac_cv_header_$ac_safe=no"
5799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5800 echo "$ac_t""yes" 1>&6
5801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5802 cat >> confdefs.h <<EOF
5803 #define $ac_tr_hdr 1
5807 echo "$ac_t""no" 1>&6
5812 if test $ac_cv_header_krb5_h = yes ; then
5813 for ac_hdr in heim_err.h
5815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5817 echo "configure:5818: checking for $ac_hdr" >&5
5818 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5827 { (eval echo configure:5828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5829 if test -z "$ac_err"; then
5831 eval "ac_cv_header_$ac_safe=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 eval "ac_cv_header_$ac_safe=no"
5841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5842 echo "$ac_t""yes" 1>&6
5843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5844 cat >> confdefs.h <<EOF
5845 #define $ac_tr_hdr 1
5849 echo "$ac_t""no" 1>&6
5853 if test $ac_cv_header_heim_err_h = yes ; then
5859 if test $krb5_impl = mit; then
5860 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5861 echo "configure:5862: checking for main in -lkrb5" >&5
5862 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5863 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5866 ac_save_LIBS="$LIBS"
5867 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5868 cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5878 eval "ac_cv_lib_$ac_lib_var=yes"
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5883 eval "ac_cv_lib_$ac_lib_var=no"
5886 LIBS="$ac_save_LIBS"
5889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5892 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5894 echo "$ac_t""no" 1>&6
5899 elif test $krb5_impl = heimdal; then
5900 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5901 echo "configure:5902: checking for main in -lkrb5" >&5
5902 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5903 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5906 ac_save_LIBS="$LIBS"
5907 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_lib_$ac_lib_var=no"
5926 LIBS="$ac_save_LIBS"
5929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5932 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5934 echo "$ac_t""no" 1>&6
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_HEIMDAL_KERBEROS 1
5945 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5948 if test $have_krb5 = yes ; then
5951 cat >> confdefs.h <<\EOF
5956 if test $ol_enable_kpasswd != no ; then
5957 ol_link_kpasswd=yes;
5960 if test $ol_with_kerberos = k5only ; then
5961 ol_with_kerberos=found
5964 elif test $ol_with_kerberos != auto ; then
5965 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5971 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5972 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5974 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5978 echo "configure:5979: checking for $ac_hdr" >&5
5979 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5982 cat > conftest.$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5988 { (eval echo configure:5989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5990 if test -z "$ac_err"; then
5992 eval "ac_cv_header_$ac_safe=yes"
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 eval "ac_cv_header_$ac_safe=no"
6002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6005 cat >> confdefs.h <<EOF
6006 #define $ac_tr_hdr 1
6010 echo "$ac_t""no" 1>&6
6015 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6016 if test $krb5_impl = mit; then
6017 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6018 echo "configure:6019: checking for main in -lkrb4" >&5
6019 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6020 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 ac_save_LIBS="$LIBS"
6024 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6035 eval "ac_cv_lib_$ac_lib_var=yes"
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6040 eval "ac_cv_lib_$ac_lib_var=no"
6043 LIBS="$ac_save_LIBS"
6046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6049 KRB4_LIBS="-lkrb4 -ldes425"
6051 echo "$ac_t""no" 1>&6
6056 elif test $krb5_impl = heimdal; then
6057 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6058 echo "configure:6059: checking for main in -lkrb4" >&5
6059 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6060 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6063 ac_save_LIBS="$LIBS"
6064 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6073 if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6075 eval "ac_cv_lib_$ac_lib_var=yes"
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 eval "ac_cv_lib_$ac_lib_var=no"
6083 LIBS="$ac_save_LIBS"
6086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6087 echo "$ac_t""yes" 1>&6
6091 echo "$ac_t""no" 1>&6
6098 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6101 if test $have_k425 = yes ; then
6102 ol_with_kerberos=found
6105 cat >> confdefs.h <<\EOF
6106 #define HAVE_KRB425 1
6109 cat >> confdefs.h <<\EOF
6114 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6115 echo "configure:6116: checking for des_debug in Kerberos libraries" >&5
6116 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6117 echo $ac_n "(cached) $ac_c" 1>&6
6121 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6126 #include <kerberosIV/krb.h>
6127 #include <kerberosIV/des.h>
6128 extern int des_debug;
6136 if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6138 ol_cv_var_des_debug=yes
6140 echo "configure: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6143 ol_cv_var_des_debug=no
6150 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6152 if test $ol_cv_var_des_debug = yes ; then
6153 cat >> confdefs.h <<\EOF
6154 #define HAVE_DES_DEBUG 1
6164 if test $ol_link_krb5 = yes ; then
6165 ol_with_kerberos=found
6168 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6169 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6171 for ac_hdr in krb.h des.h krb-archaeology.h
6173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_hdr" >&5
6176 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6185 { (eval echo configure:6186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6187 if test -z "$ac_err"; then
6189 eval "ac_cv_header_$ac_safe=yes"
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6195 eval "ac_cv_header_$ac_safe=no"
6199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6202 cat >> confdefs.h <<EOF
6203 #define $ac_tr_hdr 1
6207 echo "$ac_t""no" 1>&6
6212 if test $ac_cv_header_krb_h = yes ; then
6213 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6214 echo "configure:6215: checking for main in -lkrb" >&5
6215 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 ac_save_LIBS="$LIBS"
6220 LIBS="-lkrb -ldes $LIBS"
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
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
6246 echo "$ac_t""no" 1>&6
6251 if test $have_k4 = yes ; then
6252 ol_with_kerberos=found
6255 cat >> confdefs.h <<\EOF
6260 KRB4_LIBS="-lkrb -ldes"
6262 if test $ac_cv_header_krb_archaeology_h = yes ; then
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_KTH_KERBEROS 1
6272 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6276 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6279 elif test $ol_enable_kbind = yes ; then
6280 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6283 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6284 cat >> confdefs.h <<\EOF
6285 #define HAVE_KERBEROS 1
6289 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6290 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6294 if test $ol_with_tls != no ; then
6295 for ac_hdr in openssl/ssl.h ssl.h
6297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_hdr" >&5
6300 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6309 { (eval echo configure:6310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6311 if test -z "$ac_err"; then
6313 eval "ac_cv_header_$ac_safe=yes"
6316 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6319 eval "ac_cv_header_$ac_safe=no"
6323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6324 echo "$ac_t""yes" 1>&6
6325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6326 cat >> confdefs.h <<EOF
6327 #define $ac_tr_hdr 1
6331 echo "$ac_t""no" 1>&6
6336 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6337 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6338 echo "configure:6339: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6339 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6341 echo $ac_n "(cached) $ac_c" 1>&6
6343 ac_save_LIBS="$LIBS"
6344 LIBS="-lssl -lcrypto $LIBS"
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6351 char SSLeay_add_ssl_algorithms();
6354 SSLeay_add_ssl_algorithms()
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 eval "ac_cv_lib_$ac_lib_var=yes"
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6364 eval "ac_cv_lib_$ac_lib_var=no"
6367 LIBS="$ac_save_LIBS"
6370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6375 echo "$ac_t""no" 1>&6
6380 if test $have_ssleay = no ; then
6381 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6382 echo "configure:6383: checking for SSL_library_init in -lssl" >&5
6383 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6384 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 ac_save_LIBS="$LIBS"
6388 LIBS="-lssl -lcrypto $LIBS"
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6395 char SSL_library_init();
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6403 eval "ac_cv_lib_$ac_lib_var=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 eval "ac_cv_lib_$ac_lib_var=no"
6411 LIBS="$ac_save_LIBS"
6414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6419 echo "$ac_t""no" 1>&6
6425 if test $have_ssleay = no ; then
6426 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6427 echo "configure:6428: checking for ssl3_accept in -lssl" >&5
6428 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6429 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 ac_save_LIBS="$LIBS"
6433 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 eval "ac_cv_lib_$ac_lib_var=yes"
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 eval "ac_cv_lib_$ac_lib_var=no"
6456 LIBS="$ac_save_LIBS"
6459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6464 echo "$ac_t""no" 1>&6
6470 if test $have_ssleay = yes ; then
6474 cat >> confdefs.h <<\EOF
6475 #define HAVE_SSLEAY 1
6479 if test $need_rsaref = yes; then
6480 cat >> confdefs.h <<\EOF
6481 #define HAVE_RSAREF 1
6485 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6487 TLS_LIBS="-lssl -lcrypto"
6493 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6496 if test $ol_link_tls = yes ; then
6497 cat >> confdefs.h <<\EOF
6502 elif test $ol_with_tls = auto ; then
6503 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6504 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6506 elif test $ol_with_tls != no ; then
6507 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6512 gethostbyname_r gethostbyaddr_r \
6515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6516 echo "configure:6517: checking for $ac_func" >&5
6517 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 /* System header to define __stub macros and hopefully few prototypes,
6524 which can conflict with char $ac_func(); below. */
6526 /* Override any gcc2 internal prototype to avoid an error. */
6527 /* We use char because int might match the return type of a gcc2
6528 builtin and then its argument prototype would still apply. */
6534 /* The GNU C library defines this for functions which it implements
6535 to always fail with ENOSYS. Some functions are actually named
6536 something starting with __ and the normal name is an alias. */
6537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6545 if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 eval "ac_cv_func_$ac_func=yes"
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6552 eval "ac_cv_func_$ac_func=no"
6557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6558 echo "$ac_t""yes" 1>&6
6559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6560 cat >> confdefs.h <<EOF
6561 #define $ac_tr_func 1
6565 echo "$ac_t""no" 1>&6
6570 if test "$ac_cv_func_ctime_r" = no ; then
6571 ol_cv_func_ctime_r_nargs=0
6573 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6574 echo "configure:6575: checking number of arguments of ctime_r" >&5
6575 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6583 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6586 if { (eval echo configure:6587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6588 ol_cv_func_ctime_r_nargs3=yes
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 ol_cv_func_ctime_r_nargs3=no
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6602 time_t ti; char *buffer; ctime_r(&ti,buffer);
6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6607 ol_cv_func_ctime_r_nargs2=yes
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6612 ol_cv_func_ctime_r_nargs2=no
6616 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6617 $ol_cv_func_ctime_r_nargs2 = no ; then
6619 ol_cv_func_ctime_r_nargs=3
6621 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6622 $ol_cv_func_ctime_r_nargs2 = yes ; then
6624 ol_cv_func_ctime_r_nargs=2
6627 ol_cv_func_ctime_r_nargs=0
6632 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6634 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6635 cat >> confdefs.h <<EOF
6636 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6643 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6644 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6645 echo "configure:6646: checking number of arguments of gethostbyname_r" >&5
6646 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 #include <sys/types.h>
6653 #include <sys/socket.h>
6654 #include <netinet/in.h>
6656 #define BUFSIZE (sizeof(struct hostent)+10)
6658 struct hostent hent; char buffer[BUFSIZE];
6659 int bufsize=BUFSIZE;int h_errno;
6660 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6661 buffer, bufsize, &h_errno);
6664 if { (eval echo configure:6665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6666 ol_cv_func_gethostbyname_r_nargs5=yes
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6671 ol_cv_func_gethostbyname_r_nargs5=no
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 #include <sys/types.h>
6679 #include <sys/socket.h>
6680 #include <netinet/in.h>
6682 #define BUFSIZE (sizeof(struct hostent)+10)
6684 struct hostent hent;struct hostent *rhent;
6685 char buffer[BUFSIZE];
6686 int bufsize=BUFSIZE;int h_errno;
6687 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6691 if { (eval echo configure:6692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6693 ol_cv_func_gethostbyname_r_nargs6=yes
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 ol_cv_func_gethostbyname_r_nargs6=no
6702 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6703 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6705 ol_cv_func_gethostbyname_r_nargs=5
6707 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6708 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6710 ol_cv_func_gethostbyname_r_nargs=6
6713 ol_cv_func_gethostbyname_r_nargs=0
6718 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6719 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6720 cat >> confdefs.h <<EOF
6721 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6727 ol_cv_func_gethostbyname_r_nargs=0
6730 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6731 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6732 echo "configure:6733: checking number of arguments of gethostbyaddr_r" >&5
6733 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 #include <sys/types.h>
6740 #include <sys/socket.h>
6741 #include <netinet/in.h>
6743 #define BUFSIZE (sizeof(struct hostent)+10)
6745 struct hostent hent; char buffer[BUFSIZE];
6747 size_t alen=sizeof(struct in_addr);
6748 int bufsize=BUFSIZE;int h_errno;
6749 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6750 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6753 if { (eval echo configure:6754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6755 ol_cv_func_gethostbyaddr_r_nargs7=yes
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6760 ol_cv_func_gethostbyaddr_r_nargs7=no
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <sys/types.h>
6768 #include <sys/socket.h>
6769 #include <netinet/in.h>
6771 #define BUFSIZE (sizeof(struct hostent)+10)
6773 struct hostent hent;
6774 struct hostent *rhent; char buffer[BUFSIZE];
6776 size_t alen=sizeof(struct in_addr);
6777 int bufsize=BUFSIZE;int h_errno;
6778 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6779 alen, AF_INET, &hent, buffer, bufsize,
6783 if { (eval echo configure:6784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6785 ol_cv_func_gethostbyaddr_r_nargs8=yes
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6790 ol_cv_func_gethostbyaddr_r_nargs8=no
6794 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6795 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6797 ol_cv_func_gethostbyaddr_r_nargs=7
6799 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6800 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6802 ol_cv_func_gethostbyaddr_r_nargs=8
6805 ol_cv_func_gethostbyaddr_r_nargs=0
6810 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6811 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6812 cat >> confdefs.h <<EOF
6813 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6819 ol_cv_func_gethostbyaddr_r_nargs=0
6822 if test "$ac_cv_func_ctime_r" = yes \
6823 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6824 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6825 -a "$ac_cv_func_gethostbyname_r" = yes \
6826 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6827 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6828 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6829 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6830 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6833 cat >> confdefs.h <<\EOF
6834 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6841 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6842 -o $ol_with_threads = nt ; then
6845 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6846 echo "configure:6847: checking for NT Threads" >&5
6847 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6851 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6852 echo "configure:6853: checking for _beginthread" >&5
6853 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char _beginthread(); below. */
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6865 char _beginthread();
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 eval "ac_cv_func__beginthread=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_func__beginthread=no"
6893 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ol_cv_nt_threads=yes
6897 echo "$ac_t""no" 1>&6
6904 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6906 if test $ol_cv_nt_threads = yes ; then
6907 cat >> confdefs.h <<\EOF
6908 #define HAVE_NT_THREADS 1
6914 if test "$ol_cv_nt_threads" = yes ; then
6916 ol_with_threads=found
6917 ol_with_yielding_select=yes
6919 cat >> confdefs.h <<\EOF
6920 #define HAVE_NT_SERVICE_MANAGER 1
6923 cat >> confdefs.h <<\EOF
6924 #define HAVE_NT_EVENT_LOG 1
6929 if test $ol_with_threads = nt ; then
6930 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6934 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6935 -o $ol_with_threads = posix ; then
6937 for ac_hdr in pthread.h
6939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6941 echo "configure:6942: checking for $ac_hdr" >&5
6942 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6951 { (eval echo configure:6952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6953 if test -z "$ac_err"; then
6955 eval "ac_cv_header_$ac_safe=yes"
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6961 eval "ac_cv_header_$ac_safe=no"
6965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6968 cat >> confdefs.h <<EOF
6969 #define $ac_tr_hdr 1
6973 echo "$ac_t""no" 1>&6
6978 if test $ac_cv_header_pthread_h = yes ; then
6979 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6980 echo "configure:6981: checking POSIX thread version" >&5
6981 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6989 # include <pthread.h>
6990 /* this check could be improved */
6991 # ifdef PTHREAD_ONCE_INIT
6992 pthread_version_final;
6996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997 egrep "pthread_version_final" >/dev/null 2>&1; then
6999 ol_pthread_final=yes
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7011 # include <pthread.h>
7012 /* this check could be improved */
7013 # ifdef pthread_once_init
7014 pthread_version_draft4;
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7021 ol_pthread_draft4=yes
7024 ol_pthread_draft4=no
7029 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7030 ol_cv_pthread_version=final
7031 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7032 ol_cv_pthread_version=draft4
7034 ol_cv_pthread_version=unknown
7039 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7042 if test $ol_cv_pthread_version = final ; then
7043 cat >> confdefs.h <<\EOF
7044 #define HAVE_PTHREADS_FINAL 1
7047 elif test $ol_cv_pthread_version = draft4 ; then
7048 cat >> confdefs.h <<\EOF
7049 #define HAVE_PTHREADS_D4 1
7053 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7056 # consider threads found
7057 ol_with_threads=found
7060 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7061 echo "configure:7062: checking for LinuxThreads pthread.h" >&5
7062 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7065 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7068 #include <pthread.h>
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7073 ol_cv_header_linux_threads=yes
7076 ol_cv_header_linux_threads=no
7083 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7084 if test $ol_cv_header_linux_threads = yes; then
7085 cat >> confdefs.h <<\EOF
7086 #define HAVE_LINUX_THREADS 1
7092 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7093 echo "configure:7094: checking for GNU Pth pthread.h" >&5
7094 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 #include <pthread.h>
7101 #ifdef _POSIX_THREAD_IS_GNU_PTH
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 egrep "__gnu_pth__" >/dev/null 2>&1; then
7109 ol_cv_header_gnu_pth_pthread_h=yes
7112 ol_cv_header_gnu_pth_pthread_h=no
7119 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7122 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7123 for ac_hdr in sched.h
7125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7127 echo "configure:7128: checking for $ac_hdr" >&5
7128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7137 { (eval echo configure:7138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7139 if test -z "$ac_err"; then
7141 eval "ac_cv_header_$ac_safe=yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 eval "ac_cv_header_$ac_safe=no"
7151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7152 echo "$ac_t""yes" 1>&6
7153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7154 cat >> confdefs.h <<EOF
7155 #define $ac_tr_hdr 1
7159 echo "$ac_t""no" 1>&6
7166 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7167 echo "configure:7168: checking for pthread_create in default libraries" >&5
7168 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7172 if test "$cross_compiling" = yes; then
7173 cat > conftest.$ac_ext <<EOF
7174 #line 7175 "configure"
7175 #include "confdefs.h"
7176 /* pthread test headers */
7177 #include <pthread.h>
7179 #define NULL (void*)0
7182 static void *task(p)
7185 return (void *) (p == NULL);
7190 /* pthread test function */
7193 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7194 /* This system (e.g. AIX) defaults detached; must override */
7195 pthread_attr_t attr;
7197 status = pthread_attr_init(&attr);
7198 if( status ) exit( status );
7200 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7201 if( status ) exit( status );
7205 #if HAVE_PTHREADS_D4
7206 #define ATTR pthread_attr_default
7211 /* make sure pthread_create() isn't just a stub */
7212 status = pthread_create(&t, ATTR, task, NULL);
7213 if( status ) exit( status );
7215 /* make sure pthread_detach() isn't just a stub */
7216 #if HAVE_PTHREADS_D4
7217 status = pthread_detach( &t );
7219 status = pthread_detach( t );
7222 #ifdef HAVE_LINUX_THREADS
7223 pthread_kill_other_threads_np();
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232 ol_cv_pthread_create=yes
7234 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5
7237 ol_cv_pthread_create=no
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* pthread test headers */
7245 #include <pthread.h>
7247 #define NULL (void*)0
7250 static void *task(p)
7253 return (void *) (p == NULL);
7257 int main(argc, argv)
7262 /* pthread test function */
7265 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7266 /* This system (e.g. AIX) defaults detached; must override */
7267 pthread_attr_t attr;
7269 status = pthread_attr_init(&attr);
7270 if( status ) exit( status );
7272 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7273 if( status ) exit( status );
7277 #if HAVE_PTHREADS_D4
7278 #define ATTR pthread_attr_default
7283 /* make sure pthread_create() isn't just a stub */
7284 status = pthread_create(&t, ATTR, task, NULL);
7285 if( status ) exit( status );
7287 /* make sure pthread_detach() isn't just a stub */
7288 #if HAVE_PTHREADS_D4
7289 status = pthread_detach( &t );
7291 status = pthread_detach( t );
7294 #ifdef HAVE_LINUX_THREADS
7295 pthread_kill_other_threads_np();
7303 if { (eval echo configure:7304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7305 ol_cv_pthread_create=yes
7307 echo "configure: failed program was:" >&5
7308 cat conftest.$ac_ext >&5
7310 ol_cv_pthread_create=no
7317 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7319 if test $ol_cv_pthread_create != no ; then
7320 ol_link_threads=posix
7324 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7325 if test "$ol_link_threads" = no ; then
7327 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7328 echo "configure:7329: checking for pthread link with -kthread" >&5
7329 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7330 echo $ac_n "(cached) $ac_c" 1>&6
7335 LIBS="-kthread $LIBS"
7337 if test "$cross_compiling" = yes; then
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* pthread test headers */
7342 #include <pthread.h>
7344 #define NULL (void*)0
7347 static void *task(p)
7350 return (void *) (p == NULL);
7355 /* pthread test function */
7358 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7359 /* This system (e.g. AIX) defaults detached; must override */
7360 pthread_attr_t attr;
7362 status = pthread_attr_init(&attr);
7363 if( status ) exit( status );
7365 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7366 if( status ) exit( status );
7370 #if HAVE_PTHREADS_D4
7371 #define ATTR pthread_attr_default
7376 /* make sure pthread_create() isn't just a stub */
7377 status = pthread_create(&t, ATTR, task, NULL);
7378 if( status ) exit( status );
7380 /* make sure pthread_detach() isn't just a stub */
7381 #if HAVE_PTHREADS_D4
7382 status = pthread_detach( &t );
7384 status = pthread_detach( t );
7387 #ifdef HAVE_LINUX_THREADS
7388 pthread_kill_other_threads_np();
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7397 ol_cv_pthread_kthread=yes
7399 echo "configure: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 ol_cv_pthread_kthread=no
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* pthread test headers */
7410 #include <pthread.h>
7412 #define NULL (void*)0
7415 static void *task(p)
7418 return (void *) (p == NULL);
7422 int main(argc, argv)
7427 /* pthread test function */
7430 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7431 /* This system (e.g. AIX) defaults detached; must override */
7432 pthread_attr_t attr;
7434 status = pthread_attr_init(&attr);
7435 if( status ) exit( status );
7437 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7438 if( status ) exit( status );
7442 #if HAVE_PTHREADS_D4
7443 #define ATTR pthread_attr_default
7448 /* make sure pthread_create() isn't just a stub */
7449 status = pthread_create(&t, ATTR, task, NULL);
7450 if( status ) exit( status );
7452 /* make sure pthread_detach() isn't just a stub */
7453 #if HAVE_PTHREADS_D4
7454 status = pthread_detach( &t );
7456 status = pthread_detach( t );
7459 #ifdef HAVE_LINUX_THREADS
7460 pthread_kill_other_threads_np();
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7470 ol_cv_pthread_kthread=yes
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7475 ol_cv_pthread_kthread=no
7486 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7488 if test $ol_cv_pthread_kthread = yes ; then
7489 ol_link_pthreads="-kthread"
7490 ol_link_threads=posix
7494 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7495 if test "$ol_link_threads" = no ; then
7497 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7498 echo "configure:7499: checking for pthread link with -pthread" >&5
7499 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7505 LIBS="-pthread $LIBS"
7507 if test "$cross_compiling" = yes; then
7508 cat > conftest.$ac_ext <<EOF
7509 #line 7510 "configure"
7510 #include "confdefs.h"
7511 /* pthread test headers */
7512 #include <pthread.h>
7514 #define NULL (void*)0
7517 static void *task(p)
7520 return (void *) (p == NULL);
7525 /* pthread test function */
7528 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7529 /* This system (e.g. AIX) defaults detached; must override */
7530 pthread_attr_t attr;
7532 status = pthread_attr_init(&attr);
7533 if( status ) exit( status );
7535 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7536 if( status ) exit( status );
7540 #if HAVE_PTHREADS_D4
7541 #define ATTR pthread_attr_default
7546 /* make sure pthread_create() isn't just a stub */
7547 status = pthread_create(&t, ATTR, task, NULL);
7548 if( status ) exit( status );
7550 /* make sure pthread_detach() isn't just a stub */
7551 #if HAVE_PTHREADS_D4
7552 status = pthread_detach( &t );
7554 status = pthread_detach( t );
7557 #ifdef HAVE_LINUX_THREADS
7558 pthread_kill_other_threads_np();
7565 if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7567 ol_cv_pthread_pthread=yes
7569 echo "configure: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7572 ol_cv_pthread_pthread=no
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* pthread test headers */
7580 #include <pthread.h>
7582 #define NULL (void*)0
7585 static void *task(p)
7588 return (void *) (p == NULL);
7592 int main(argc, argv)
7597 /* pthread test function */
7600 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7601 /* This system (e.g. AIX) defaults detached; must override */
7602 pthread_attr_t attr;
7604 status = pthread_attr_init(&attr);
7605 if( status ) exit( status );
7607 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7608 if( status ) exit( status );
7612 #if HAVE_PTHREADS_D4
7613 #define ATTR pthread_attr_default
7618 /* make sure pthread_create() isn't just a stub */
7619 status = pthread_create(&t, ATTR, task, NULL);
7620 if( status ) exit( status );
7622 /* make sure pthread_detach() isn't just a stub */
7623 #if HAVE_PTHREADS_D4
7624 status = pthread_detach( &t );
7626 status = pthread_detach( t );
7629 #ifdef HAVE_LINUX_THREADS
7630 pthread_kill_other_threads_np();
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7640 ol_cv_pthread_pthread=yes
7642 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7645 ol_cv_pthread_pthread=no
7656 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7658 if test $ol_cv_pthread_pthread = yes ; then
7659 ol_link_pthreads="-pthread"
7660 ol_link_threads=posix
7664 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7665 if test "$ol_link_threads" = no ; then
7667 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7668 echo "configure:7669: checking for pthread link with -pthreads" >&5
7669 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7675 LIBS="-pthreads $LIBS"
7677 if test "$cross_compiling" = yes; then
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7681 /* pthread test headers */
7682 #include <pthread.h>
7684 #define NULL (void*)0
7687 static void *task(p)
7690 return (void *) (p == NULL);
7695 /* pthread test function */
7698 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7699 /* This system (e.g. AIX) defaults detached; must override */
7700 pthread_attr_t attr;
7702 status = pthread_attr_init(&attr);
7703 if( status ) exit( status );
7705 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7706 if( status ) exit( status );
7710 #if HAVE_PTHREADS_D4
7711 #define ATTR pthread_attr_default
7716 /* make sure pthread_create() isn't just a stub */
7717 status = pthread_create(&t, ATTR, task, NULL);
7718 if( status ) exit( status );
7720 /* make sure pthread_detach() isn't just a stub */
7721 #if HAVE_PTHREADS_D4
7722 status = pthread_detach( &t );
7724 status = pthread_detach( t );
7727 #ifdef HAVE_LINUX_THREADS
7728 pthread_kill_other_threads_np();
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 ol_cv_pthread_pthreads=yes
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 ol_cv_pthread_pthreads=no
7746 cat > conftest.$ac_ext <<EOF
7747 #line 7748 "configure"
7748 #include "confdefs.h"
7749 /* pthread test headers */
7750 #include <pthread.h>
7752 #define NULL (void*)0
7755 static void *task(p)
7758 return (void *) (p == NULL);
7762 int main(argc, argv)
7767 /* pthread test function */
7770 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7771 /* This system (e.g. AIX) defaults detached; must override */
7772 pthread_attr_t attr;
7774 status = pthread_attr_init(&attr);
7775 if( status ) exit( status );
7777 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7778 if( status ) exit( status );
7782 #if HAVE_PTHREADS_D4
7783 #define ATTR pthread_attr_default
7788 /* make sure pthread_create() isn't just a stub */
7789 status = pthread_create(&t, ATTR, task, NULL);
7790 if( status ) exit( status );
7792 /* make sure pthread_detach() isn't just a stub */
7793 #if HAVE_PTHREADS_D4
7794 status = pthread_detach( &t );
7796 status = pthread_detach( t );
7799 #ifdef HAVE_LINUX_THREADS
7800 pthread_kill_other_threads_np();
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7810 ol_cv_pthread_pthreads=yes
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 ol_cv_pthread_pthreads=no
7826 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7828 if test $ol_cv_pthread_pthreads = yes ; then
7829 ol_link_pthreads="-pthreads"
7830 ol_link_threads=posix
7834 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7835 if test "$ol_link_threads" = no ; then
7837 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7838 echo "configure:7839: checking for pthread link with -mthreads" >&5
7839 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7845 LIBS="-mthreads $LIBS"
7847 if test "$cross_compiling" = yes; then
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 /* pthread test headers */
7852 #include <pthread.h>
7854 #define NULL (void*)0
7857 static void *task(p)
7860 return (void *) (p == NULL);
7865 /* pthread test function */
7868 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7869 /* This system (e.g. AIX) defaults detached; must override */
7870 pthread_attr_t attr;
7872 status = pthread_attr_init(&attr);
7873 if( status ) exit( status );
7875 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7876 if( status ) exit( status );
7880 #if HAVE_PTHREADS_D4
7881 #define ATTR pthread_attr_default
7886 /* make sure pthread_create() isn't just a stub */
7887 status = pthread_create(&t, ATTR, task, NULL);
7888 if( status ) exit( status );
7890 /* make sure pthread_detach() isn't just a stub */
7891 #if HAVE_PTHREADS_D4
7892 status = pthread_detach( &t );
7894 status = pthread_detach( t );
7897 #ifdef HAVE_LINUX_THREADS
7898 pthread_kill_other_threads_np();
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907 ol_cv_pthread_mthreads=yes
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 ol_cv_pthread_mthreads=no
7916 cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7919 /* pthread test headers */
7920 #include <pthread.h>
7922 #define NULL (void*)0
7925 static void *task(p)
7928 return (void *) (p == NULL);
7932 int main(argc, argv)
7937 /* pthread test function */
7940 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7941 /* This system (e.g. AIX) defaults detached; must override */
7942 pthread_attr_t attr;
7944 status = pthread_attr_init(&attr);
7945 if( status ) exit( status );
7947 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7948 if( status ) exit( status );
7952 #if HAVE_PTHREADS_D4
7953 #define ATTR pthread_attr_default
7958 /* make sure pthread_create() isn't just a stub */
7959 status = pthread_create(&t, ATTR, task, NULL);
7960 if( status ) exit( status );
7962 /* make sure pthread_detach() isn't just a stub */
7963 #if HAVE_PTHREADS_D4
7964 status = pthread_detach( &t );
7966 status = pthread_detach( t );
7969 #ifdef HAVE_LINUX_THREADS
7970 pthread_kill_other_threads_np();
7978 if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7980 ol_cv_pthread_mthreads=yes
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 ol_cv_pthread_mthreads=no
7996 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7998 if test $ol_cv_pthread_mthreads = yes ; then
7999 ol_link_pthreads="-mthreads"
8000 ol_link_threads=posix
8004 # Pthread try link: -thread (ol_cv_pthread_thread)
8005 if test "$ol_link_threads" = no ; then
8007 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8008 echo "configure:8009: checking for pthread link with -thread" >&5
8009 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8015 LIBS="-thread $LIBS"
8017 if test "$cross_compiling" = yes; then
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* pthread test headers */
8022 #include <pthread.h>
8024 #define NULL (void*)0
8027 static void *task(p)
8030 return (void *) (p == NULL);
8035 /* pthread test function */
8038 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8039 /* This system (e.g. AIX) defaults detached; must override */
8040 pthread_attr_t attr;
8042 status = pthread_attr_init(&attr);
8043 if( status ) exit( status );
8045 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8046 if( status ) exit( status );
8050 #if HAVE_PTHREADS_D4
8051 #define ATTR pthread_attr_default
8056 /* make sure pthread_create() isn't just a stub */
8057 status = pthread_create(&t, ATTR, task, NULL);
8058 if( status ) exit( status );
8060 /* make sure pthread_detach() isn't just a stub */
8061 #if HAVE_PTHREADS_D4
8062 status = pthread_detach( &t );
8064 status = pthread_detach( t );
8067 #ifdef HAVE_LINUX_THREADS
8068 pthread_kill_other_threads_np();
8075 if { (eval echo configure:8076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8077 ol_cv_pthread_thread=yes
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8082 ol_cv_pthread_thread=no
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 /* pthread test headers */
8090 #include <pthread.h>
8092 #define NULL (void*)0
8095 static void *task(p)
8098 return (void *) (p == NULL);
8102 int main(argc, argv)
8107 /* pthread test function */
8110 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8111 /* This system (e.g. AIX) defaults detached; must override */
8112 pthread_attr_t attr;
8114 status = pthread_attr_init(&attr);
8115 if( status ) exit( status );
8117 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8118 if( status ) exit( status );
8122 #if HAVE_PTHREADS_D4
8123 #define ATTR pthread_attr_default
8128 /* make sure pthread_create() isn't just a stub */
8129 status = pthread_create(&t, ATTR, task, NULL);
8130 if( status ) exit( status );
8132 /* make sure pthread_detach() isn't just a stub */
8133 #if HAVE_PTHREADS_D4
8134 status = pthread_detach( &t );
8136 status = pthread_detach( t );
8139 #ifdef HAVE_LINUX_THREADS
8140 pthread_kill_other_threads_np();
8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8150 ol_cv_pthread_thread=yes
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8155 ol_cv_pthread_thread=no
8166 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8168 if test $ol_cv_pthread_thread = yes ; then
8169 ol_link_pthreads="-thread"
8170 ol_link_threads=posix
8175 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8176 if test "$ol_link_threads" = no ; then
8177 # try -lpthread -lmach -lexc -lc_r
8178 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8179 echo "configure:8180: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8180 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8186 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8188 if test "$cross_compiling" = yes; then
8189 cat > conftest.$ac_ext <<EOF
8190 #line 8191 "configure"
8191 #include "confdefs.h"
8192 /* pthread test headers */
8193 #include <pthread.h>
8195 #define NULL (void*)0
8198 static void *task(p)
8201 return (void *) (p == NULL);
8206 /* pthread test function */
8209 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8210 /* This system (e.g. AIX) defaults detached; must override */
8211 pthread_attr_t attr;
8213 status = pthread_attr_init(&attr);
8214 if( status ) exit( status );
8216 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8217 if( status ) exit( status );
8221 #if HAVE_PTHREADS_D4
8222 #define ATTR pthread_attr_default
8227 /* make sure pthread_create() isn't just a stub */
8228 status = pthread_create(&t, ATTR, task, NULL);
8229 if( status ) exit( status );
8231 /* make sure pthread_detach() isn't just a stub */
8232 #if HAVE_PTHREADS_D4
8233 status = pthread_detach( &t );
8235 status = pthread_detach( t );
8238 #ifdef HAVE_LINUX_THREADS
8239 pthread_kill_other_threads_np();
8246 if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8253 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* pthread test headers */
8261 #include <pthread.h>
8263 #define NULL (void*)0
8266 static void *task(p)
8269 return (void *) (p == NULL);
8273 int main(argc, argv)
8278 /* pthread test function */
8281 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8282 /* This system (e.g. AIX) defaults detached; must override */
8283 pthread_attr_t attr;
8285 status = pthread_attr_init(&attr);
8286 if( status ) exit( status );
8288 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8289 if( status ) exit( status );
8293 #if HAVE_PTHREADS_D4
8294 #define ATTR pthread_attr_default
8299 /* make sure pthread_create() isn't just a stub */
8300 status = pthread_create(&t, ATTR, task, NULL);
8301 if( status ) exit( status );
8303 /* make sure pthread_detach() isn't just a stub */
8304 #if HAVE_PTHREADS_D4
8305 status = pthread_detach( &t );
8307 status = pthread_detach( t );
8310 #ifdef HAVE_LINUX_THREADS
8311 pthread_kill_other_threads_np();
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8321 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8337 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8339 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8340 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8341 ol_link_threads=posix
8345 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8346 if test "$ol_link_threads" = no ; then
8347 # try -lpthread -lmach -lexc
8348 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8349 echo "configure:8350: checking for pthread link with -lpthread -lmach -lexc" >&5
8350 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8356 LIBS="-lpthread -lmach -lexc $LIBS"
8358 if test "$cross_compiling" = yes; then
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362 /* pthread test headers */
8363 #include <pthread.h>
8365 #define NULL (void*)0
8368 static void *task(p)
8371 return (void *) (p == NULL);
8376 /* pthread test function */
8379 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8380 /* This system (e.g. AIX) defaults detached; must override */
8381 pthread_attr_t attr;
8383 status = pthread_attr_init(&attr);
8384 if( status ) exit( status );
8386 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8387 if( status ) exit( status );
8391 #if HAVE_PTHREADS_D4
8392 #define ATTR pthread_attr_default
8397 /* make sure pthread_create() isn't just a stub */
8398 status = pthread_create(&t, ATTR, task, NULL);
8399 if( status ) exit( status );
8401 /* make sure pthread_detach() isn't just a stub */
8402 #if HAVE_PTHREADS_D4
8403 status = pthread_detach( &t );
8405 status = pthread_detach( t );
8408 #ifdef HAVE_LINUX_THREADS
8409 pthread_kill_other_threads_np();
8416 if { (eval echo configure:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8418 ol_cv_pthread_lpthread_lmach_lexc=yes
8420 echo "configure: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8423 ol_cv_pthread_lpthread_lmach_lexc=no
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 /* pthread test headers */
8431 #include <pthread.h>
8433 #define NULL (void*)0
8436 static void *task(p)
8439 return (void *) (p == NULL);
8443 int main(argc, argv)
8448 /* pthread test function */
8451 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8452 /* This system (e.g. AIX) defaults detached; must override */
8453 pthread_attr_t attr;
8455 status = pthread_attr_init(&attr);
8456 if( status ) exit( status );
8458 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8459 if( status ) exit( status );
8463 #if HAVE_PTHREADS_D4
8464 #define ATTR pthread_attr_default
8469 /* make sure pthread_create() isn't just a stub */
8470 status = pthread_create(&t, ATTR, task, NULL);
8471 if( status ) exit( status );
8473 /* make sure pthread_detach() isn't just a stub */
8474 #if HAVE_PTHREADS_D4
8475 status = pthread_detach( &t );
8477 status = pthread_detach( t );
8480 #ifdef HAVE_LINUX_THREADS
8481 pthread_kill_other_threads_np();
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8491 ol_cv_pthread_lpthread_lmach_lexc=yes
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 ol_cv_pthread_lpthread_lmach_lexc=no
8507 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8509 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8510 ol_link_pthreads="-lpthread -lmach -lexc"
8511 ol_link_threads=posix
8516 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8517 if test "$ol_link_threads" = no ; then
8518 # try -lpthread -Wl,-woff,85
8519 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8520 echo "configure:8521: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8521 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8527 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8529 if test "$cross_compiling" = yes; then
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* pthread test headers */
8534 #include <pthread.h>
8536 #define NULL (void*)0
8539 static void *task(p)
8542 return (void *) (p == NULL);
8547 /* pthread test function */
8550 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8551 /* This system (e.g. AIX) defaults detached; must override */
8552 pthread_attr_t attr;
8554 status = pthread_attr_init(&attr);
8555 if( status ) exit( status );
8557 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8558 if( status ) exit( status );
8562 #if HAVE_PTHREADS_D4
8563 #define ATTR pthread_attr_default
8568 /* make sure pthread_create() isn't just a stub */
8569 status = pthread_create(&t, ATTR, task, NULL);
8570 if( status ) exit( status );
8572 /* make sure pthread_detach() isn't just a stub */
8573 #if HAVE_PTHREADS_D4
8574 status = pthread_detach( &t );
8576 status = pthread_detach( t );
8579 #ifdef HAVE_LINUX_THREADS
8580 pthread_kill_other_threads_np();
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 ol_cv_pthread_lib_lpthread_woff=yes
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8594 ol_cv_pthread_lib_lpthread_woff=no
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8601 /* pthread test headers */
8602 #include <pthread.h>
8604 #define NULL (void*)0
8607 static void *task(p)
8610 return (void *) (p == NULL);
8614 int main(argc, argv)
8619 /* pthread test function */
8622 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8623 /* This system (e.g. AIX) defaults detached; must override */
8624 pthread_attr_t attr;
8626 status = pthread_attr_init(&attr);
8627 if( status ) exit( status );
8629 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8630 if( status ) exit( status );
8634 #if HAVE_PTHREADS_D4
8635 #define ATTR pthread_attr_default
8640 /* make sure pthread_create() isn't just a stub */
8641 status = pthread_create(&t, ATTR, task, NULL);
8642 if( status ) exit( status );
8644 /* make sure pthread_detach() isn't just a stub */
8645 #if HAVE_PTHREADS_D4
8646 status = pthread_detach( &t );
8648 status = pthread_detach( t );
8651 #ifdef HAVE_LINUX_THREADS
8652 pthread_kill_other_threads_np();
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8662 ol_cv_pthread_lib_lpthread_woff=yes
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8667 ol_cv_pthread_lib_lpthread_woff=no
8678 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8680 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8681 ol_link_pthreads="-lpthread -Wl,-woff,85"
8682 ol_link_threads=posix
8687 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8688 if test "$ol_link_threads" = no ; then
8690 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8691 echo "configure:8692: checking for pthread link with -lpthread" >&5
8692 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8698 LIBS="-lpthread $LIBS"
8700 if test "$cross_compiling" = yes; then
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 /* pthread test headers */
8705 #include <pthread.h>
8707 #define NULL (void*)0
8710 static void *task(p)
8713 return (void *) (p == NULL);
8718 /* pthread test function */
8721 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8722 /* This system (e.g. AIX) defaults detached; must override */
8723 pthread_attr_t attr;
8725 status = pthread_attr_init(&attr);
8726 if( status ) exit( status );
8728 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8729 if( status ) exit( status );
8733 #if HAVE_PTHREADS_D4
8734 #define ATTR pthread_attr_default
8739 /* make sure pthread_create() isn't just a stub */
8740 status = pthread_create(&t, ATTR, task, NULL);
8741 if( status ) exit( status );
8743 /* make sure pthread_detach() isn't just a stub */
8744 #if HAVE_PTHREADS_D4
8745 status = pthread_detach( &t );
8747 status = pthread_detach( t );
8750 #ifdef HAVE_LINUX_THREADS
8751 pthread_kill_other_threads_np();
8758 if { (eval echo configure:8759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8760 ol_cv_pthread_lpthread=yes
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8765 ol_cv_pthread_lpthread=no
8769 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8772 /* pthread test headers */
8773 #include <pthread.h>
8775 #define NULL (void*)0
8778 static void *task(p)
8781 return (void *) (p == NULL);
8785 int main(argc, argv)
8790 /* pthread test function */
8793 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8794 /* This system (e.g. AIX) defaults detached; must override */
8795 pthread_attr_t attr;
8797 status = pthread_attr_init(&attr);
8798 if( status ) exit( status );
8800 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8801 if( status ) exit( status );
8805 #if HAVE_PTHREADS_D4
8806 #define ATTR pthread_attr_default
8811 /* make sure pthread_create() isn't just a stub */
8812 status = pthread_create(&t, ATTR, task, NULL);
8813 if( status ) exit( status );
8815 /* make sure pthread_detach() isn't just a stub */
8816 #if HAVE_PTHREADS_D4
8817 status = pthread_detach( &t );
8819 status = pthread_detach( t );
8822 #ifdef HAVE_LINUX_THREADS
8823 pthread_kill_other_threads_np();
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8833 ol_cv_pthread_lpthread=yes
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 ol_cv_pthread_lpthread=no
8849 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8851 if test $ol_cv_pthread_lpthread = yes ; then
8852 ol_link_pthreads="-lpthread"
8853 ol_link_threads=posix
8857 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8858 if test "$ol_link_threads" = no ; then
8860 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8861 echo "configure:8862: checking for pthread link with -lc_r" >&5
8862 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8863 echo $ac_n "(cached) $ac_c" 1>&6
8870 if test "$cross_compiling" = yes; then
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8874 /* pthread test headers */
8875 #include <pthread.h>
8877 #define NULL (void*)0
8880 static void *task(p)
8883 return (void *) (p == NULL);
8888 /* pthread test function */
8891 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8892 /* This system (e.g. AIX) defaults detached; must override */
8893 pthread_attr_t attr;
8895 status = pthread_attr_init(&attr);
8896 if( status ) exit( status );
8898 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8899 if( status ) exit( status );
8903 #if HAVE_PTHREADS_D4
8904 #define ATTR pthread_attr_default
8909 /* make sure pthread_create() isn't just a stub */
8910 status = pthread_create(&t, ATTR, task, NULL);
8911 if( status ) exit( status );
8913 /* make sure pthread_detach() isn't just a stub */
8914 #if HAVE_PTHREADS_D4
8915 status = pthread_detach( &t );
8917 status = pthread_detach( t );
8920 #ifdef HAVE_LINUX_THREADS
8921 pthread_kill_other_threads_np();
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 ol_cv_pthread_lc_r=yes
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 ol_cv_pthread_lc_r=no
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 /* pthread test headers */
8943 #include <pthread.h>
8945 #define NULL (void*)0
8948 static void *task(p)
8951 return (void *) (p == NULL);
8955 int main(argc, argv)
8960 /* pthread test function */
8963 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8964 /* This system (e.g. AIX) defaults detached; must override */
8965 pthread_attr_t attr;
8967 status = pthread_attr_init(&attr);
8968 if( status ) exit( status );
8970 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8971 if( status ) exit( status );
8975 #if HAVE_PTHREADS_D4
8976 #define ATTR pthread_attr_default
8981 /* make sure pthread_create() isn't just a stub */
8982 status = pthread_create(&t, ATTR, task, NULL);
8983 if( status ) exit( status );
8985 /* make sure pthread_detach() isn't just a stub */
8986 #if HAVE_PTHREADS_D4
8987 status = pthread_detach( &t );
8989 status = pthread_detach( t );
8992 #ifdef HAVE_LINUX_THREADS
8993 pthread_kill_other_threads_np();
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9003 ol_cv_pthread_lc_r=yes
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9008 ol_cv_pthread_lc_r=no
9019 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9021 if test $ol_cv_pthread_lc_r = yes ; then
9022 ol_link_pthreads="-lc_r"
9023 ol_link_threads=posix
9028 # Pthread try link: -threads (ol_cv_pthread_threads)
9029 if test "$ol_link_threads" = no ; then
9031 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9032 echo "configure:9033: checking for pthread link with -threads" >&5
9033 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9039 LIBS="-threads $LIBS"
9041 if test "$cross_compiling" = yes; then
9042 cat > conftest.$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9045 /* pthread test headers */
9046 #include <pthread.h>
9048 #define NULL (void*)0
9051 static void *task(p)
9054 return (void *) (p == NULL);
9059 /* pthread test function */
9062 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9063 /* This system (e.g. AIX) defaults detached; must override */
9064 pthread_attr_t attr;
9066 status = pthread_attr_init(&attr);
9067 if( status ) exit( status );
9069 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9070 if( status ) exit( status );
9074 #if HAVE_PTHREADS_D4
9075 #define ATTR pthread_attr_default
9080 /* make sure pthread_create() isn't just a stub */
9081 status = pthread_create(&t, ATTR, task, NULL);
9082 if( status ) exit( status );
9084 /* make sure pthread_detach() isn't just a stub */
9085 #if HAVE_PTHREADS_D4
9086 status = pthread_detach( &t );
9088 status = pthread_detach( t );
9091 #ifdef HAVE_LINUX_THREADS
9092 pthread_kill_other_threads_np();
9099 if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9101 ol_cv_pthread_threads=yes
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9106 ol_cv_pthread_threads=no
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 /* pthread test headers */
9114 #include <pthread.h>
9116 #define NULL (void*)0
9119 static void *task(p)
9122 return (void *) (p == NULL);
9126 int main(argc, argv)
9131 /* pthread test function */
9134 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9135 /* This system (e.g. AIX) defaults detached; must override */
9136 pthread_attr_t attr;
9138 status = pthread_attr_init(&attr);
9139 if( status ) exit( status );
9141 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9142 if( status ) exit( status );
9146 #if HAVE_PTHREADS_D4
9147 #define ATTR pthread_attr_default
9152 /* make sure pthread_create() isn't just a stub */
9153 status = pthread_create(&t, ATTR, task, NULL);
9154 if( status ) exit( status );
9156 /* make sure pthread_detach() isn't just a stub */
9157 #if HAVE_PTHREADS_D4
9158 status = pthread_detach( &t );
9160 status = pthread_detach( t );
9163 #ifdef HAVE_LINUX_THREADS
9164 pthread_kill_other_threads_np();
9172 if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9174 ol_cv_pthread_threads=yes
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9179 ol_cv_pthread_threads=no
9190 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9192 if test $ol_cv_pthread_threads = yes ; then
9193 ol_link_pthreads="-threads"
9194 ol_link_threads=posix
9199 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9200 if test "$ol_link_threads" = no ; then
9201 # try -lpthreads -lmach -lexc -lc_r
9202 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9203 echo "configure:9204: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9204 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9210 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9212 if test "$cross_compiling" = yes; then
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 /* pthread test headers */
9217 #include <pthread.h>
9219 #define NULL (void*)0
9222 static void *task(p)
9225 return (void *) (p == NULL);
9230 /* pthread test function */
9233 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9234 /* This system (e.g. AIX) defaults detached; must override */
9235 pthread_attr_t attr;
9237 status = pthread_attr_init(&attr);
9238 if( status ) exit( status );
9240 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9241 if( status ) exit( status );
9245 #if HAVE_PTHREADS_D4
9246 #define ATTR pthread_attr_default
9251 /* make sure pthread_create() isn't just a stub */
9252 status = pthread_create(&t, ATTR, task, NULL);
9253 if( status ) exit( status );
9255 /* make sure pthread_detach() isn't just a stub */
9256 #if HAVE_PTHREADS_D4
9257 status = pthread_detach( &t );
9259 status = pthread_detach( t );
9262 #ifdef HAVE_LINUX_THREADS
9263 pthread_kill_other_threads_np();
9270 if { (eval echo configure:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9272 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9277 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 /* pthread test headers */
9285 #include <pthread.h>
9287 #define NULL (void*)0
9290 static void *task(p)
9293 return (void *) (p == NULL);
9297 int main(argc, argv)
9302 /* pthread test function */
9305 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9306 /* This system (e.g. AIX) defaults detached; must override */
9307 pthread_attr_t attr;
9309 status = pthread_attr_init(&attr);
9310 if( status ) exit( status );
9312 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9313 if( status ) exit( status );
9317 #if HAVE_PTHREADS_D4
9318 #define ATTR pthread_attr_default
9323 /* make sure pthread_create() isn't just a stub */
9324 status = pthread_create(&t, ATTR, task, NULL);
9325 if( status ) exit( status );
9327 /* make sure pthread_detach() isn't just a stub */
9328 #if HAVE_PTHREADS_D4
9329 status = pthread_detach( &t );
9331 status = pthread_detach( t );
9334 #ifdef HAVE_LINUX_THREADS
9335 pthread_kill_other_threads_np();
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9345 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9350 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9361 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9363 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9364 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9365 ol_link_threads=posix
9369 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9370 if test "$ol_link_threads" = no ; then
9371 # try -lpthreads -lmach -lexc
9372 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9373 echo "configure:9374: checking for pthread link with -lpthreads -lmach -lexc" >&5
9374 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9380 LIBS="-lpthreads -lmach -lexc $LIBS"
9382 if test "$cross_compiling" = yes; then
9383 cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure"
9385 #include "confdefs.h"
9386 /* pthread test headers */
9387 #include <pthread.h>
9389 #define NULL (void*)0
9392 static void *task(p)
9395 return (void *) (p == NULL);
9400 /* pthread test function */
9403 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9404 /* This system (e.g. AIX) defaults detached; must override */
9405 pthread_attr_t attr;
9407 status = pthread_attr_init(&attr);
9408 if( status ) exit( status );
9410 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9411 if( status ) exit( status );
9415 #if HAVE_PTHREADS_D4
9416 #define ATTR pthread_attr_default
9421 /* make sure pthread_create() isn't just a stub */
9422 status = pthread_create(&t, ATTR, task, NULL);
9423 if( status ) exit( status );
9425 /* make sure pthread_detach() isn't just a stub */
9426 #if HAVE_PTHREADS_D4
9427 status = pthread_detach( &t );
9429 status = pthread_detach( t );
9432 #ifdef HAVE_LINUX_THREADS
9433 pthread_kill_other_threads_np();
9440 if { (eval echo configure:9441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9442 ol_cv_pthread_lpthreads_lmach_lexc=yes
9444 echo "configure: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9447 ol_cv_pthread_lpthreads_lmach_lexc=no
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 /* pthread test headers */
9455 #include <pthread.h>
9457 #define NULL (void*)0
9460 static void *task(p)
9463 return (void *) (p == NULL);
9467 int main(argc, argv)
9472 /* pthread test function */
9475 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9476 /* This system (e.g. AIX) defaults detached; must override */
9477 pthread_attr_t attr;
9479 status = pthread_attr_init(&attr);
9480 if( status ) exit( status );
9482 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9483 if( status ) exit( status );
9487 #if HAVE_PTHREADS_D4
9488 #define ATTR pthread_attr_default
9493 /* make sure pthread_create() isn't just a stub */
9494 status = pthread_create(&t, ATTR, task, NULL);
9495 if( status ) exit( status );
9497 /* make sure pthread_detach() isn't just a stub */
9498 #if HAVE_PTHREADS_D4
9499 status = pthread_detach( &t );
9501 status = pthread_detach( t );
9504 #ifdef HAVE_LINUX_THREADS
9505 pthread_kill_other_threads_np();
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9515 ol_cv_pthread_lpthreads_lmach_lexc=yes
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9520 ol_cv_pthread_lpthreads_lmach_lexc=no
9531 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9533 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9534 ol_link_pthreads="-lpthreads -lmach -lexc"
9535 ol_link_threads=posix
9539 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9540 if test "$ol_link_threads" = no ; then
9541 # try -lpthreads -lexc
9542 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9543 echo "configure:9544: checking for pthread link with -lpthreads -lexc" >&5
9544 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9550 LIBS="-lpthreads -lexc $LIBS"
9552 if test "$cross_compiling" = yes; then
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 /* pthread test headers */
9557 #include <pthread.h>
9559 #define NULL (void*)0
9562 static void *task(p)
9565 return (void *) (p == NULL);
9570 /* pthread test function */
9573 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9574 /* This system (e.g. AIX) defaults detached; must override */
9575 pthread_attr_t attr;
9577 status = pthread_attr_init(&attr);
9578 if( status ) exit( status );
9580 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9581 if( status ) exit( status );
9585 #if HAVE_PTHREADS_D4
9586 #define ATTR pthread_attr_default
9591 /* make sure pthread_create() isn't just a stub */
9592 status = pthread_create(&t, ATTR, task, NULL);
9593 if( status ) exit( status );
9595 /* make sure pthread_detach() isn't just a stub */
9596 #if HAVE_PTHREADS_D4
9597 status = pthread_detach( &t );
9599 status = pthread_detach( t );
9602 #ifdef HAVE_LINUX_THREADS
9603 pthread_kill_other_threads_np();
9610 if { (eval echo configure:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9612 ol_cv_pthread_lpthreads_lexc=yes
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 ol_cv_pthread_lpthreads_lexc=no
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 /* pthread test headers */
9625 #include <pthread.h>
9627 #define NULL (void*)0
9630 static void *task(p)
9633 return (void *) (p == NULL);
9637 int main(argc, argv)
9642 /* pthread test function */
9645 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9646 /* This system (e.g. AIX) defaults detached; must override */
9647 pthread_attr_t attr;
9649 status = pthread_attr_init(&attr);
9650 if( status ) exit( status );
9652 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9653 if( status ) exit( status );
9657 #if HAVE_PTHREADS_D4
9658 #define ATTR pthread_attr_default
9663 /* make sure pthread_create() isn't just a stub */
9664 status = pthread_create(&t, ATTR, task, NULL);
9665 if( status ) exit( status );
9667 /* make sure pthread_detach() isn't just a stub */
9668 #if HAVE_PTHREADS_D4
9669 status = pthread_detach( &t );
9671 status = pthread_detach( t );
9674 #ifdef HAVE_LINUX_THREADS
9675 pthread_kill_other_threads_np();
9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 ol_cv_pthread_lpthreads_lexc=yes
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 ol_cv_pthread_lpthreads_lexc=no
9701 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9703 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9704 ol_link_pthreads="-lpthreads -lexc"
9705 ol_link_threads=posix
9710 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9711 if test "$ol_link_threads" = no ; then
9713 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9714 echo "configure:9715: checking for pthread link with -lpthreads" >&5
9715 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9721 LIBS="-lpthreads $LIBS"
9723 if test "$cross_compiling" = yes; then
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 /* pthread test headers */
9728 #include <pthread.h>
9730 #define NULL (void*)0
9733 static void *task(p)
9736 return (void *) (p == NULL);
9741 /* pthread test function */
9744 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9745 /* This system (e.g. AIX) defaults detached; must override */
9746 pthread_attr_t attr;
9748 status = pthread_attr_init(&attr);
9749 if( status ) exit( status );
9751 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9752 if( status ) exit( status );
9756 #if HAVE_PTHREADS_D4
9757 #define ATTR pthread_attr_default
9762 /* make sure pthread_create() isn't just a stub */
9763 status = pthread_create(&t, ATTR, task, NULL);
9764 if( status ) exit( status );
9766 /* make sure pthread_detach() isn't just a stub */
9767 #if HAVE_PTHREADS_D4
9768 status = pthread_detach( &t );
9770 status = pthread_detach( t );
9773 #ifdef HAVE_LINUX_THREADS
9774 pthread_kill_other_threads_np();
9781 if { (eval echo configure:9782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9783 ol_cv_pthread_lib_lpthreads=yes
9785 echo "configure: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9788 ol_cv_pthread_lib_lpthreads=no
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 /* pthread test headers */
9796 #include <pthread.h>
9798 #define NULL (void*)0
9801 static void *task(p)
9804 return (void *) (p == NULL);
9808 int main(argc, argv)
9813 /* pthread test function */
9816 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9817 /* This system (e.g. AIX) defaults detached; must override */
9818 pthread_attr_t attr;
9820 status = pthread_attr_init(&attr);
9821 if( status ) exit( status );
9823 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9824 if( status ) exit( status );
9828 #if HAVE_PTHREADS_D4
9829 #define ATTR pthread_attr_default
9834 /* make sure pthread_create() isn't just a stub */
9835 status = pthread_create(&t, ATTR, task, NULL);
9836 if( status ) exit( status );
9838 /* make sure pthread_detach() isn't just a stub */
9839 #if HAVE_PTHREADS_D4
9840 status = pthread_detach( &t );
9842 status = pthread_detach( t );
9845 #ifdef HAVE_LINUX_THREADS
9846 pthread_kill_other_threads_np();
9854 if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9856 ol_cv_pthread_lib_lpthreads=yes
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9861 ol_cv_pthread_lib_lpthreads=no
9872 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9874 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9875 ol_link_pthreads="-lpthreads"
9876 ol_link_threads=posix
9881 if test $ol_link_threads != no ; then
9882 cat >> confdefs.h <<\EOF
9883 #define HAVE_PTHREADS 1
9887 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9889 save_CPPFLAGS="$CPPFLAGS"
9891 LIBS="$LTHREAD_LIBS $LIBS"
9893 for ac_func in sched_yield pthread_yield
9895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9896 echo "configure:9897: checking for $ac_func" >&5
9897 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9898 echo $ac_n "(cached) $ac_c" 1>&6
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char $ac_func(); below. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925 if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9927 eval "ac_cv_func_$ac_func=yes"
9929 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9932 eval "ac_cv_func_$ac_func=no"
9937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
9939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9940 cat >> confdefs.h <<EOF
9941 #define $ac_tr_func 1
9945 echo "$ac_t""no" 1>&6
9950 if test $ac_cv_func_sched_yield = no -a \
9951 $ac_cv_func_pthread_yield = no ; then
9952 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9953 echo "configure:9954: checking for sched_yield in -lrt" >&5
9954 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9955 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9958 ac_save_LIBS="$LIBS"
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
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. */
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 eval "ac_cv_lib_$ac_lib_var=yes"
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9979 eval "ac_cv_lib_$ac_lib_var=no"
9982 LIBS="$ac_save_LIBS"
9985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9986 echo "$ac_t""yes" 1>&6
9987 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9988 cat >> confdefs.h <<\EOF
9989 #define HAVE_SCHED_YIELD 1
9992 ac_cv_func_sched_yield=yes
9994 echo "$ac_t""no" 1>&6
9995 ac_cv_func_sched_yield=no
9999 if test $ac_cv_func_sched_yield = no -a \
10000 $ac_cv_func_pthread_yield = no ; then
10001 for ac_func in thr_yield
10003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10004 echo "configure:10005: checking for $ac_func" >&5
10005 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 /* System header to define __stub macros and hopefully few prototypes,
10012 which can conflict with char $ac_func(); below. */
10013 #include <assert.h>
10014 /* Override any gcc2 internal prototype to avoid an error. */
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10033 if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10035 eval "ac_cv_func_$ac_func=yes"
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 eval "ac_cv_func_$ac_func=no"
10045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10046 echo "$ac_t""yes" 1>&6
10047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10048 cat >> confdefs.h <<EOF
10049 #define $ac_tr_func 1
10053 echo "$ac_t""no" 1>&6
10058 if test $ac_cv_func_sched_yield = no -a \
10059 $ac_cv_func_pthread_yield = no -a \
10060 "$ac_cv_func_thr_yield" = no ; then
10061 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10064 for ac_func in pthread_kill pthread_rwlock_destroy
10066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10067 echo "configure:10068: checking for $ac_func" >&5
10068 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char $ac_func(); below. */
10076 #include <assert.h>
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10085 /* The GNU C library defines this for functions which it implements
10086 to always fail with ENOSYS. Some functions are actually named
10087 something starting with __ and the normal name is an alias. */
10088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10098 eval "ac_cv_func_$ac_func=yes"
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 eval "ac_cv_func_$ac_func=no"
10108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10109 echo "$ac_t""yes" 1>&6
10110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10111 cat >> confdefs.h <<EOF
10112 #define $ac_tr_func 1
10116 echo "$ac_t""no" 1>&6
10121 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10122 echo "configure:10123: checking for pthread_detach with <pthread.h>" >&5
10123 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10124 echo $ac_n "(cached) $ac_c" 1>&6
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10131 #include <pthread.h>
10133 #define NULL (void*)0
10137 pthread_detach(NULL);
10140 if { (eval echo configure:10141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10142 ol_cv_func_pthread_detach=yes
10144 echo "configure: failed program was:" >&5
10145 cat conftest.$ac_ext >&5
10147 ol_cv_func_pthread_detach=no
10153 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10155 if test $ol_cv_func_pthread_detach = no ; then
10156 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10159 cat >> confdefs.h <<\EOF
10160 #define HAVE_PTHREAD_DETACH 1
10165 pthread_setconcurrency \
10166 pthread_getconcurrency \
10167 thr_setconcurrency \
10168 thr_getconcurrency \
10171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10172 echo "configure:10173: checking for $ac_func" >&5
10173 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10176 cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10179 /* System header to define __stub macros and hopefully few prototypes,
10180 which can conflict with char $ac_func(); below. */
10181 #include <assert.h>
10182 /* Override any gcc2 internal prototype to avoid an error. */
10183 /* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
10190 /* The GNU C library defines this for functions which it implements
10191 to always fail with ENOSYS. Some functions are actually named
10192 something starting with __ and the normal name is an alias. */
10193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10201 if { (eval echo configure:10202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10203 eval "ac_cv_func_$ac_func=yes"
10205 echo "configure: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10208 eval "ac_cv_func_$ac_func=no"
10213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10214 echo "$ac_t""yes" 1>&6
10215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10216 cat >> confdefs.h <<EOF
10217 #define $ac_tr_func 1
10221 echo "$ac_t""no" 1>&6
10227 for ac_func in pthread_kill_other_threads_np
10229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10230 echo "configure:10231: checking for $ac_func" >&5
10231 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10237 /* System header to define __stub macros and hopefully few prototypes,
10238 which can conflict with char $ac_func(); below. */
10239 #include <assert.h>
10240 /* Override any gcc2 internal prototype to avoid an error. */
10241 /* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10248 /* The GNU C library defines this for functions which it implements
10249 to always fail with ENOSYS. Some functions are actually named
10250 something starting with __ and the normal name is an alias. */
10251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 eval "ac_cv_func_$ac_func=yes"
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 eval "ac_cv_func_$ac_func=no"
10271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10274 cat >> confdefs.h <<EOF
10275 #define $ac_tr_func 1
10279 echo "$ac_t""no" 1>&6
10283 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10284 echo "configure:10285: checking for LinuxThreads implementation" >&5
10285 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10288 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10291 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10296 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10297 echo "configure:10298: checking for LinuxThreads consistency" >&5
10298 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10302 if test $ol_cv_header_linux_threads = yes -a \
10303 $ol_cv_sys_linux_threads = yes; then
10304 ol_cv_linux_threads=yes
10305 elif test $ol_cv_header_linux_threads = no -a \
10306 $ol_cv_sys_linux_threads = no; then
10307 ol_cv_linux_threads=no
10309 ol_cv_linux_threads=error
10314 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10317 if test $ol_cv_linux_threads = error; then
10318 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10321 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10322 echo "configure:10323: checking if pthread_create() works" >&5
10323 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10327 if test "$cross_compiling" = yes; then
10328 ol_cv_pthread_create_works=yes
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 /* pthread test headers */
10334 #include <pthread.h>
10336 #define NULL (void*)0
10339 static void *task(p)
10342 return (void *) (p == NULL);
10346 int main(argc, argv)
10351 /* pthread test function */
10354 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10355 /* This system (e.g. AIX) defaults detached; must override */
10356 pthread_attr_t attr;
10358 status = pthread_attr_init(&attr);
10359 if( status ) exit( status );
10361 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10362 if( status ) exit( status );
10366 #if HAVE_PTHREADS_D4
10367 #define ATTR pthread_attr_default
10372 /* make sure pthread_create() isn't just a stub */
10373 status = pthread_create(&t, ATTR, task, NULL);
10374 if( status ) exit( status );
10376 /* make sure pthread_detach() isn't just a stub */
10377 #if HAVE_PTHREADS_D4
10378 status = pthread_detach( &t );
10380 status = pthread_detach( t );
10383 #ifdef HAVE_LINUX_THREADS
10384 pthread_kill_other_threads_np();
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10394 ol_cv_pthread_create_works=yes
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 ol_cv_pthread_create_works=no
10406 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10408 if test $ol_cv_pthread_create_works = no ; then
10409 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10412 if test $ol_with_yielding_select = auto ; then
10413 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10414 echo "configure:10415: checking if select yields when using pthreads" >&5
10415 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10419 if test "$cross_compiling" = yes; then
10420 ol_cv_pthread_select_yields=cross
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10426 #include <sys/types.h>
10427 #include <sys/time.h>
10428 #include <unistd.h>
10429 #include <pthread.h>
10431 #define NULL (void*) 0
10434 static int fildes[2];
10436 static void *task(p)
10448 FD_SET(fildes[0], &rfds);
10450 /* we're not interested in any fds */
10451 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10458 exit(0); /* if we exit here, the select blocked the whole process */
10461 int main(argc, argv)
10467 /* create a pipe to select */
10468 if(pipe(&fildes[0])) {
10473 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10474 (void) pthread_setconcurrency(2);
10476 #ifdef HAVE_THR_SETCONCURRENCY
10477 /* Set Solaris LWP concurrency to 2 */
10478 thr_setconcurrency(2);
10482 #if HAVE_PTHREADS_D4
10483 pthread_create(&t, pthread_attr_default, task, NULL);
10485 pthread_create(&t, NULL, task, NULL);
10488 #if HAVE_SCHED_YIELD
10489 sched_yield(); /* make sure task runs first */
10491 #ifdef HAVE_PTHREAD_YIELD
10492 pthread_yield(); /* make sure task runs first */
10499 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10501 ol_cv_pthread_select_yields=no
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10506 ol_cv_pthread_select_yields=yes
10513 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10515 if test $ol_cv_pthread_select_yields = cross ; then
10516 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10519 if test $ol_cv_pthread_select_yields = yes ; then
10520 ol_with_yielding_select=yes
10524 CPPFLAGS="$save_CPPFLAGS"
10527 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10531 if test $ol_with_threads = posix ; then
10532 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10536 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10537 -o $ol_with_threads = mach ; then
10539 for ac_hdr in mach/cthreads.h
10541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10543 echo "configure:10544: checking for $ac_hdr" >&5
10544 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10553 { (eval echo configure:10554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10555 if test -z "$ac_err"; then
10557 eval "ac_cv_header_$ac_safe=yes"
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 eval "ac_cv_header_$ac_safe=no"
10567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
10569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10570 cat >> confdefs.h <<EOF
10571 #define $ac_tr_hdr 1
10575 echo "$ac_t""no" 1>&6
10579 if test $ac_cv_header_mach_cthreads_h = yes ; then
10580 ol_with_threads=found
10582 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10583 echo "configure:10584: checking for cthread_fork" >&5
10584 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10585 echo $ac_n "(cached) $ac_c" 1>&6
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 /* System header to define __stub macros and hopefully few prototypes,
10591 which can conflict with char cthread_fork(); below. */
10592 #include <assert.h>
10593 /* Override any gcc2 internal prototype to avoid an error. */
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char cthread_fork();
10601 /* The GNU C library defines this for functions which it implements
10602 to always fail with ENOSYS. Some functions are actually named
10603 something starting with __ and the normal name is an alias. */
10604 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 eval "ac_cv_func_cthread_fork=yes"
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 eval "ac_cv_func_cthread_fork=no"
10624 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 ol_link_threads=yes
10628 echo "$ac_t""no" 1>&6
10632 if test $ol_link_threads = no ; then
10633 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10634 echo "configure:10635: checking for cthread_fork with -all_load" >&5
10635 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10636 echo $ac_n "(cached) $ac_c" 1>&6
10640 LIBS="-all_load $LIBS"
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10644 #include <mach/cthreads.h>
10647 cthread_fork((void *)0, (void *)0);
10651 if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10653 ol_cv_cthread_all_load=yes
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10658 ol_cv_cthread_all_load=no
10665 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10667 if test $ol_cv_cthread_all_load = yes ; then
10668 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10669 ol_link_threads=mach
10673 if test $ol_link_threads != no ; then
10674 : check for cthread specific functionality here
10675 cat >> confdefs.h <<\EOF
10676 #define HAVE_MACH_CTHREADS 1
10680 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10684 if test $ol_with_threads = mach ; then
10685 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10689 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10690 -o $ol_with_threads = pth ; then
10692 for ac_hdr in pth.h
10694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10696 echo "configure:10697: checking for $ac_hdr" >&5
10697 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10706 { (eval echo configure:10707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10708 if test -z "$ac_err"; then
10710 eval "ac_cv_header_$ac_safe=yes"
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 eval "ac_cv_header_$ac_safe=no"
10720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10721 echo "$ac_t""yes" 1>&6
10722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10723 cat >> confdefs.h <<EOF
10724 #define $ac_tr_hdr 1
10728 echo "$ac_t""no" 1>&6
10733 if test $ac_cv_header_pth_h = yes ; then
10734 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10735 echo "configure:10736: checking for pth_version in -lpth" >&5
10736 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10740 ac_save_LIBS="$LIBS"
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10748 char pth_version();
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756 eval "ac_cv_lib_$ac_lib_var=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_lib_$ac_lib_var=no"
10764 LIBS="$ac_save_LIBS"
10767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10768 echo "$ac_t""yes" 1>&6
10771 echo "$ac_t""no" 1>&6
10776 if test $have_pth = yes ; then
10777 cat >> confdefs.h <<\EOF
10778 #define HAVE_GNU_PTH 1
10781 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10782 ol_link_threads=pth
10784 if test $ol_with_yielding_select = auto ; then
10785 ol_with_yielding_select=yes
10791 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10792 -o $ol_with_threads = lwp ; then
10794 for ac_hdr in thread.h synch.h
10796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10798 echo "configure:10799: checking for $ac_hdr" >&5
10799 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10802 cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10808 { (eval echo configure:10809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10810 if test -z "$ac_err"; then
10812 eval "ac_cv_header_$ac_safe=yes"
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10818 eval "ac_cv_header_$ac_safe=no"
10822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10823 echo "$ac_t""yes" 1>&6
10824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10825 cat >> confdefs.h <<EOF
10826 #define $ac_tr_hdr 1
10830 echo "$ac_t""no" 1>&6
10834 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10835 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10836 echo "configure:10837: checking for thr_create in -lthread" >&5
10837 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10841 ac_save_LIBS="$LIBS"
10842 LIBS="-lthread $LIBS"
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 /* Override any gcc2 internal prototype to avoid an error. */
10847 /* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10855 if { (eval echo configure:10856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10857 eval "ac_cv_lib_$ac_lib_var=yes"
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10862 eval "ac_cv_lib_$ac_lib_var=no"
10865 LIBS="$ac_save_LIBS"
10868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10869 echo "$ac_t""yes" 1>&6
10872 echo "$ac_t""no" 1>&6
10877 if test $have_thr = yes ; then
10878 cat >> confdefs.h <<\EOF
10882 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10883 ol_link_threads=thr
10885 if test $ol_with_yielding_select = auto ; then
10886 ol_with_yielding_select=yes
10890 thr_setconcurrency \
10891 thr_getconcurrency \
10894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10895 echo "configure:10896: checking for $ac_func" >&5
10896 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 /* System header to define __stub macros and hopefully few prototypes,
10903 which can conflict with char $ac_func(); below. */
10904 #include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10924 if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10926 eval "ac_cv_func_$ac_func=yes"
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10931 eval "ac_cv_func_$ac_func=no"
10936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10937 echo "$ac_t""yes" 1>&6
10938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10939 cat >> confdefs.h <<EOF
10940 #define $ac_tr_func 1
10944 echo "$ac_t""no" 1>&6
10951 for ac_hdr in lwp/lwp.h
10953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10955 echo "configure:10956: checking for $ac_hdr" >&5
10956 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10957 echo $ac_n "(cached) $ac_c" 1>&6
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10965 { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10967 if test -z "$ac_err"; then
10969 eval "ac_cv_header_$ac_safe=yes"
10972 echo "configure: failed program was:" >&5
10973 cat conftest.$ac_ext >&5
10975 eval "ac_cv_header_$ac_safe=no"
10979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10982 cat >> confdefs.h <<EOF
10983 #define $ac_tr_hdr 1
10987 echo "$ac_t""no" 1>&6
10991 if test $ac_cv_header_lwp_lwp_h = yes ; then
10992 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10993 echo "configure:10994: checking for lwp_create in -llwp" >&5
10994 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10995 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10996 echo $ac_n "(cached) $ac_c" 1>&6
10998 ac_save_LIBS="$LIBS"
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 eval "ac_cv_lib_$ac_lib_var=yes"
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11019 eval "ac_cv_lib_$ac_lib_var=no"
11022 LIBS="$ac_save_LIBS"
11025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11029 echo "$ac_t""no" 1>&6
11034 if test $have_lwp = yes ; then
11035 cat >> confdefs.h <<\EOF
11039 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11040 ol_link_threads=lwp
11042 if test $ol_with_yielding_select = auto ; then
11043 ol_with_yielding_select=no
11049 if test $ol_with_yielding_select = yes ; then
11050 cat >> confdefs.h <<\EOF
11051 #define HAVE_YIELDING_SELECT 1
11056 if test $ol_with_threads = manual ; then
11057 ol_link_threads=yes
11059 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11061 for ac_hdr in pthread.h sched.h
11063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11065 echo "configure:11066: checking for $ac_hdr" >&5
11066 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11075 { (eval echo configure:11076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11077 if test -z "$ac_err"; then
11079 eval "ac_cv_header_$ac_safe=yes"
11082 echo "configure: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11085 eval "ac_cv_header_$ac_safe=no"
11089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11092 cat >> confdefs.h <<EOF
11093 #define $ac_tr_hdr 1
11097 echo "$ac_t""no" 1>&6
11101 for ac_func in sched_yield pthread_yield
11103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11104 echo "configure:11105: checking for $ac_func" >&5
11105 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func(); below. */
11113 #include <assert.h>
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11122 /* The GNU C library defines this for functions which it implements
11123 to always fail with ENOSYS. Some functions are actually named
11124 something starting with __ and the normal name is an alias. */
11125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11135 eval "ac_cv_func_$ac_func=yes"
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11140 eval "ac_cv_func_$ac_func=no"
11145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11148 cat >> confdefs.h <<EOF
11149 #define $ac_tr_func 1
11153 echo "$ac_t""no" 1>&6
11158 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11159 echo "configure:11160: checking for LinuxThreads pthread.h" >&5
11160 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11166 #include <pthread.h>
11168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11169 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11171 ol_cv_header_linux_threads=yes
11174 ol_cv_header_linux_threads=no
11181 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11182 if test $ol_cv_header_linux_threads = yes; then
11183 cat >> confdefs.h <<\EOF
11184 #define HAVE_LINUX_THREADS 1
11190 for ac_hdr in mach/cthreads.h
11192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_hdr" >&5
11195 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11204 { (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11206 if test -z "$ac_err"; then
11208 eval "ac_cv_header_$ac_safe=yes"
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11214 eval "ac_cv_header_$ac_safe=no"
11218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11221 cat >> confdefs.h <<EOF
11222 #define $ac_tr_hdr 1
11226 echo "$ac_t""no" 1>&6
11230 for ac_hdr in lwp/lwp.h
11232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11234 echo "configure:11235: checking for $ac_hdr" >&5
11235 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11244 { (eval echo configure:11245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11246 if test -z "$ac_err"; then
11248 eval "ac_cv_header_$ac_safe=yes"
11251 echo "configure: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11254 eval "ac_cv_header_$ac_safe=no"
11258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11259 echo "$ac_t""yes" 1>&6
11260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11261 cat >> confdefs.h <<EOF
11262 #define $ac_tr_hdr 1
11266 echo "$ac_t""no" 1>&6
11270 for ac_hdr in thread.h synch.h
11272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11274 echo "configure:11275: checking for $ac_hdr" >&5
11275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11276 echo $ac_n "(cached) $ac_c" 1>&6
11278 cat > conftest.$ac_ext <<EOF
11279 #line 11280 "configure"
11280 #include "confdefs.h"
11283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11284 { (eval echo configure:11285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11286 if test -z "$ac_err"; then
11288 eval "ac_cv_header_$ac_safe=yes"
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11294 eval "ac_cv_header_$ac_safe=no"
11298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11299 echo "$ac_t""yes" 1>&6
11300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11301 cat >> confdefs.h <<EOF
11302 #define $ac_tr_hdr 1
11306 echo "$ac_t""no" 1>&6
11312 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11313 cat >> confdefs.h <<\EOF
11314 #define REENTRANT 1
11317 cat >> confdefs.h <<\EOF
11318 #define _REENTRANT 1
11321 cat >> confdefs.h <<\EOF
11322 #define THREAD_SAFE 1
11325 cat >> confdefs.h <<\EOF
11326 #define _THREAD_SAFE 1
11329 cat >> confdefs.h <<\EOF
11330 #define THREADSAFE 1
11333 cat >> confdefs.h <<\EOF
11334 #define _THREADSAFE 1
11337 cat >> confdefs.h <<\EOF
11338 #define _SGI_MP_SOURCE 1
11342 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11343 echo "configure:11344: checking for thread specific errno" >&5
11344 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11348 cat > conftest.$ac_ext <<EOF
11349 #line 11350 "configure"
11350 #include "confdefs.h"
11356 if { (eval echo configure:11357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11358 ol_cv_errno_thread_specific=yes
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 ol_cv_errno_thread_specific=no
11369 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11371 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11372 echo "configure:11373: checking for thread specific h_errno" >&5
11373 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11385 if { (eval echo configure:11386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387 ol_cv_h_errno_thread_specific=yes
11389 echo "configure: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11392 ol_cv_h_errno_thread_specific=no
11398 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11400 if test $ol_cv_errno_thread_specific != yes \
11401 -o $ol_cv_h_errno_thread_specific != yes ; then
11402 LIBS="$LTHREAD_LIBS $LIBS"
11408 if test $ol_link_threads = no ; then
11409 if test $ol_with_threads = yes ; then
11410 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11413 if test $ol_with_threads = auto ; then
11414 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11418 cat >> confdefs.h <<\EOF
11419 #define NO_THREADS 1
11425 if test $ol_link_threads != no ; then
11426 cat >> confdefs.h <<\EOF
11427 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11434 if test $ol_with_ldbm_api = auto \
11435 -o $ol_with_ldbm_api = berkeley \
11436 -o $ol_with_ldbm_api = bcompat ; then
11438 if test $ol_with_ldbm_api = bcompat; then \
11439 ol_cv_berkeley_db=no
11440 for ac_hdr in db_185.h db.h
11442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11444 echo "configure:11445: checking for $ac_hdr" >&5
11445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11446 echo $ac_n "(cached) $ac_c" 1>&6
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11454 { (eval echo configure:11455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11456 if test -z "$ac_err"; then
11458 eval "ac_cv_header_$ac_safe=yes"
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11464 eval "ac_cv_header_$ac_safe=no"
11468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11469 echo "$ac_t""yes" 1>&6
11470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11471 cat >> confdefs.h <<EOF
11472 #define $ac_tr_hdr 1
11476 echo "$ac_t""no" 1>&6
11480 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11481 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11482 echo "configure:11483: checking if Berkeley DB header compatibility" >&5
11483 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11492 # include <db_185.h>
11497 /* this check could be improved */
11498 #ifndef DB_VERSION_MAJOR
11499 # define DB_VERSION_MAJOR 1
11502 #if DB_VERSION_MAJOR == 1
11507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11508 egrep "__db_version_1" >/dev/null 2>&1; then
11510 ol_cv_header_db1=yes
11513 ol_cv_header_db1=no
11519 echo "$ac_t""$ol_cv_header_db1" 1>&6
11521 if test ol_cv_header_db1=yes ; then
11523 if test $ol_cv_lib_db = no ; then
11524 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11525 echo "configure:11526: checking for Berkeley DB link (default)" >&5
11526 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11527 echo $ac_n "(cached) $ac_c" 1>&6
11532 LIBS="$ol_DB_LIB $LIBS"
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11538 #ifdef HAVE_DB_185_H
11539 # include <db_185.h>
11544 #ifndef DB_VERSION_MAJOR
11545 # define DB_VERSION_MAJOR 1
11549 #define NULL ((void*)0)
11554 #if DB_VERSION_MAJOR > 2
11555 db_env_create( NULL, 0 );
11556 #elif DB_VERSION_MAJOR > 1
11557 db_appexit( NULL );
11559 (void) dbopen( NULL, 0, 0, 0, NULL);
11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11579 echo "$ac_t""$ol_cv_db_none" 1>&6
11581 if test $ol_cv_db_none = yes ; then
11586 if test $ol_cv_lib_db = no ; then
11587 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11588 echo "configure:11589: checking for Berkeley DB link (-ldb)" >&5
11589 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11595 LIBS="$ol_DB_LIB $LIBS"
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11601 #ifdef HAVE_DB_185_H
11602 # include <db_185.h>
11607 #ifndef DB_VERSION_MAJOR
11608 # define DB_VERSION_MAJOR 1
11612 #define NULL ((void*)0)
11617 #if DB_VERSION_MAJOR > 2
11618 db_env_create( NULL, 0 );
11619 #elif DB_VERSION_MAJOR > 1
11620 db_appexit( NULL );
11622 (void) dbopen( NULL, 0, 0, 0, NULL);
11627 if { (eval echo configure:11628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11631 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11642 echo "$ac_t""$ol_cv_db_db" 1>&6
11644 if test $ol_cv_db_db = yes ; then
11649 if test $ol_cv_lib_db = no ; then
11650 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11651 echo "configure:11652: checking for Berkeley DB link (-ldb3)" >&5
11652 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
11658 LIBS="$ol_DB_LIB $LIBS"
11660 cat > conftest.$ac_ext <<EOF
11661 #line 11662 "configure"
11662 #include "confdefs.h"
11664 #ifdef HAVE_DB_185_H
11665 # include <db_185.h>
11670 #ifndef DB_VERSION_MAJOR
11671 # define DB_VERSION_MAJOR 1
11675 #define NULL ((void*)0)
11680 #if DB_VERSION_MAJOR > 2
11681 db_env_create( NULL, 0 );
11682 #elif DB_VERSION_MAJOR > 1
11683 db_appexit( NULL );
11685 (void) dbopen( NULL, 0, 0, 0, NULL);
11690 if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11705 echo "$ac_t""$ol_cv_db_db3" 1>&6
11707 if test $ol_cv_db_db3 = yes ; then
11712 if test $ol_cv_lib_db = no ; then
11713 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11714 echo "configure:11715: checking for Berkeley DB link (-ldb2)" >&5
11715 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11721 LIBS="$ol_DB_LIB $LIBS"
11723 cat > conftest.$ac_ext <<EOF
11724 #line 11725 "configure"
11725 #include "confdefs.h"
11727 #ifdef HAVE_DB_185_H
11728 # include <db_185.h>
11733 #ifndef DB_VERSION_MAJOR
11734 # define DB_VERSION_MAJOR 1
11738 #define NULL ((void*)0)
11743 #if DB_VERSION_MAJOR > 2
11744 db_env_create( NULL, 0 );
11745 #elif DB_VERSION_MAJOR > 1
11746 db_appexit( NULL );
11748 (void) dbopen( NULL, 0, 0, 0, NULL);
11753 if { (eval echo configure:11754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11757 echo "configure: failed program was:" >&5
11758 cat conftest.$ac_ext >&5
11768 echo "$ac_t""$ol_cv_db_db2" 1>&6
11770 if test $ol_cv_db_db2 = yes ; then
11775 if test $ol_cv_lib_db = no ; then
11776 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11777 echo "configure:11778: checking for Berkeley DB link (-ldb1)" >&5
11778 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11784 LIBS="$ol_DB_LIB $LIBS"
11786 cat > conftest.$ac_ext <<EOF
11787 #line 11788 "configure"
11788 #include "confdefs.h"
11790 #ifdef HAVE_DB_185_H
11791 # include <db_185.h>
11796 #ifndef DB_VERSION_MAJOR
11797 # define DB_VERSION_MAJOR 1
11801 #define NULL ((void*)0)
11806 #if DB_VERSION_MAJOR > 2
11807 db_env_create( NULL, 0 );
11808 #elif DB_VERSION_MAJOR > 1
11809 db_appexit( NULL );
11811 (void) dbopen( NULL, 0, 0, 0, NULL);
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11831 echo "$ac_t""$ol_cv_db_db1" 1>&6
11833 if test $ol_cv_db_db1 = yes ; then
11839 if test "$ol_cv_lib_db" != no ; then
11840 ol_cv_berkeley_db=yes
11846 ol_cv_berkeley_db=no
11849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11851 echo "configure:11852: checking for $ac_hdr" >&5
11852 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11853 echo $ac_n "(cached) $ac_c" 1>&6
11855 cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11861 { (eval echo configure:11862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11863 if test -z "$ac_err"; then
11865 eval "ac_cv_header_$ac_safe=yes"
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11871 eval "ac_cv_header_$ac_safe=no"
11875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11876 echo "$ac_t""yes" 1>&6
11877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11878 cat >> confdefs.h <<EOF
11879 #define $ac_tr_hdr 1
11883 echo "$ac_t""no" 1>&6
11887 if test $ac_cv_header_db_h = yes; then
11889 if test $ol_cv_lib_db = no ; then
11890 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11891 echo "configure:11892: checking for Berkeley DB link (default)" >&5
11892 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11898 LIBS="$ol_DB_LIB $LIBS"
11900 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure"
11902 #include "confdefs.h"
11904 #ifdef HAVE_DB_185_H
11905 # include <db_185.h>
11910 #ifndef DB_VERSION_MAJOR
11911 # define DB_VERSION_MAJOR 1
11915 #define NULL ((void*)0)
11920 #if DB_VERSION_MAJOR > 2
11921 db_env_create( NULL, 0 );
11922 #elif DB_VERSION_MAJOR > 1
11923 db_appexit( NULL );
11925 (void) dbopen( NULL, 0, 0, 0, NULL);
11930 if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11934 echo "configure: failed program was:" >&5
11935 cat conftest.$ac_ext >&5
11945 echo "$ac_t""$ol_cv_db_none" 1>&6
11947 if test $ol_cv_db_none = yes ; then
11952 if test $ol_cv_lib_db = no ; then
11953 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11954 echo "configure:11955: checking for Berkeley DB link (-ldb)" >&5
11955 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11961 LIBS="$ol_DB_LIB $LIBS"
11963 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11967 #ifdef HAVE_DB_185_H
11968 # include <db_185.h>
11973 #ifndef DB_VERSION_MAJOR
11974 # define DB_VERSION_MAJOR 1
11978 #define NULL ((void*)0)
11983 #if DB_VERSION_MAJOR > 2
11984 db_env_create( NULL, 0 );
11985 #elif DB_VERSION_MAJOR > 1
11986 db_appexit( NULL );
11988 (void) dbopen( NULL, 0, 0, 0, NULL);
11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
12008 echo "$ac_t""$ol_cv_db_db" 1>&6
12010 if test $ol_cv_db_db = yes ; then
12015 if test $ol_cv_lib_db = no ; then
12016 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12017 echo "configure:12018: checking for Berkeley DB link (-ldb3)" >&5
12018 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12019 echo $ac_n "(cached) $ac_c" 1>&6
12024 LIBS="$ol_DB_LIB $LIBS"
12026 cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12030 #ifdef HAVE_DB_185_H
12031 # include <db_185.h>
12036 #ifndef DB_VERSION_MAJOR
12037 # define DB_VERSION_MAJOR 1
12041 #define NULL ((void*)0)
12046 #if DB_VERSION_MAJOR > 2
12047 db_env_create( NULL, 0 );
12048 #elif DB_VERSION_MAJOR > 1
12049 db_appexit( NULL );
12051 (void) dbopen( NULL, 0, 0, 0, NULL);
12056 if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12071 echo "$ac_t""$ol_cv_db_db3" 1>&6
12073 if test $ol_cv_db_db3 = yes ; then
12078 if test $ol_cv_lib_db = no ; then
12079 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12080 echo "configure:12081: checking for Berkeley DB link (-ldb2)" >&5
12081 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12087 LIBS="$ol_DB_LIB $LIBS"
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12093 #ifdef HAVE_DB_185_H
12094 # include <db_185.h>
12099 #ifndef DB_VERSION_MAJOR
12100 # define DB_VERSION_MAJOR 1
12104 #define NULL ((void*)0)
12109 #if DB_VERSION_MAJOR > 2
12110 db_env_create( NULL, 0 );
12111 #elif DB_VERSION_MAJOR > 1
12112 db_appexit( NULL );
12114 (void) dbopen( NULL, 0, 0, 0, NULL);
12119 if { (eval echo configure:12120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12134 echo "$ac_t""$ol_cv_db_db2" 1>&6
12136 if test $ol_cv_db_db2 = yes ; then
12141 if test $ol_cv_lib_db = no ; then
12142 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12143 echo "configure:12144: checking for Berkeley DB link (-ldb1)" >&5
12144 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12145 echo $ac_n "(cached) $ac_c" 1>&6
12150 LIBS="$ol_DB_LIB $LIBS"
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12156 #ifdef HAVE_DB_185_H
12157 # include <db_185.h>
12162 #ifndef DB_VERSION_MAJOR
12163 # define DB_VERSION_MAJOR 1
12167 #define NULL ((void*)0)
12172 #if DB_VERSION_MAJOR > 2
12173 db_env_create( NULL, 0 );
12174 #elif DB_VERSION_MAJOR > 1
12175 db_appexit( NULL );
12177 (void) dbopen( NULL, 0, 0, 0, NULL);
12182 if { (eval echo configure:12183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12197 echo "$ac_t""$ol_cv_db_db1" 1>&6
12199 if test $ol_cv_db_db1 = yes ; then
12205 if test "$ol_cv_lib_db" != no ; then
12206 ol_cv_berkeley_db=yes
12207 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12208 echo "configure:12209: checking for Berkeley DB thread support" >&5
12209 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12210 echo $ac_n "(cached) $ac_c" 1>&6
12214 if test $ol_cv_lib_db != yes ; then
12215 LIBS="$ol_cv_lib_db"
12218 if test "$cross_compiling" = yes; then
12219 ol_cv_berkeley_db_thread=cross
12221 cat > conftest.$ac_ext <<EOF
12222 #line 12223 "configure"
12223 #include "confdefs.h"
12225 #ifdef HAVE_DB_185_H
12231 #define NULL ((void *)0)
12236 u_int32_t flags = DB_CREATE | DB_THREAD;
12238 #if DB_VERSION_MAJOR > 2
12239 DB_ENV *env = NULL;
12241 rc = db_env_create( &env, 0 );
12244 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12245 rc = env->open( env, NULL, flags, 0 );
12247 rc = env->open( env, NULL, NULL, flags, 0 );
12253 memset( &env, '\0', sizeof(env) );
12255 rc = db_appinit( NULL, NULL, &env, flags );
12258 db_appexit( &env );
12261 #if DB_VERSION_MAJOR > 2
12262 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12263 env->remove( env, NULL, DB_FORCE);
12265 env->remove( env, NULL, NULL, DB_FORCE);
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12274 ol_cv_berkeley_db_thread=yes
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12279 ol_cv_berkeley_db_thread=no
12287 if test $ol_cv_berkeley_db_thread != no ; then
12288 cat >> confdefs.h <<\EOF
12289 #define HAVE_BERKELEY_DB_THREAD 1
12296 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12302 if test $ol_cv_berkeley_db != no ; then
12303 cat >> confdefs.h <<\EOF
12304 #define HAVE_BERKELEY_DB 1
12308 ol_link_ldbm=berkeley
12309 ol_with_ldbm_api=db
12311 if test $ol_with_ldbm_type = hash ; then
12312 cat >> confdefs.h <<\EOF
12313 #define LDBM_USE_DBHASH 1
12317 cat >> confdefs.h <<\EOF
12318 #define LDBM_USE_DBBTREE 1
12323 if test $ol_cv_lib_db != yes ; then
12324 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12329 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12330 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12331 ol_with_ldbm_api=none
12334 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12335 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12336 echo "configure:12337: checking for MDBM library" >&5
12337 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
12341 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12342 echo "configure:12343: checking for mdbm_set_chain" >&5
12343 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12344 echo $ac_n "(cached) $ac_c" 1>&6
12346 cat > conftest.$ac_ext <<EOF
12347 #line 12348 "configure"
12348 #include "confdefs.h"
12349 /* System header to define __stub macros and hopefully few prototypes,
12350 which can conflict with char mdbm_set_chain(); below. */
12351 #include <assert.h>
12352 /* Override any gcc2 internal prototype to avoid an error. */
12353 /* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */
12355 char mdbm_set_chain();
12360 /* The GNU C library defines this for functions which it implements
12361 to always fail with ENOSYS. Some functions are actually named
12362 something starting with __ and the normal name is an alias. */
12363 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12366 f = mdbm_set_chain;
12371 if { (eval echo configure:12372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12373 eval "ac_cv_func_mdbm_set_chain=yes"
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12378 eval "ac_cv_func_mdbm_set_chain=no"
12383 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12384 echo "$ac_t""yes" 1>&6
12387 echo "$ac_t""no" 1>&6
12389 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12390 echo "configure:12391: checking for mdbm_set_chain in -lmdbm" >&5
12391 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12392 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12393 echo $ac_n "(cached) $ac_c" 1>&6
12395 ac_save_LIBS="$LIBS"
12396 LIBS="-lmdbm $LIBS"
12397 cat > conftest.$ac_ext <<EOF
12398 #line 12399 "configure"
12399 #include "confdefs.h"
12400 /* Override any gcc2 internal prototype to avoid an error. */
12401 /* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12403 char mdbm_set_chain();
12409 if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12411 eval "ac_cv_lib_$ac_lib_var=yes"
12413 echo "configure: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12416 eval "ac_cv_lib_$ac_lib_var=no"
12419 LIBS="$ac_save_LIBS"
12422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12423 echo "$ac_t""yes" 1>&6
12424 ol_cv_lib_mdbm=-lmdbm
12426 echo "$ac_t""no" 1>&6
12437 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12440 for ac_hdr in mdbm.h
12442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12444 echo "configure:12445: checking for $ac_hdr" >&5
12445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12448 cat > conftest.$ac_ext <<EOF
12449 #line 12450 "configure"
12450 #include "confdefs.h"
12453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12454 { (eval echo configure:12455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12456 if test -z "$ac_err"; then
12458 eval "ac_cv_header_$ac_safe=yes"
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12464 eval "ac_cv_header_$ac_safe=no"
12468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12469 echo "$ac_t""yes" 1>&6
12470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12471 cat >> confdefs.h <<EOF
12472 #define $ac_tr_hdr 1
12476 echo "$ac_t""no" 1>&6
12480 echo $ac_n "checking for db""... $ac_c" 1>&6
12481 echo "configure:12482: checking for db" >&5
12482 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12483 echo $ac_n "(cached) $ac_c" 1>&6
12486 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12494 echo "$ac_t""$ol_cv_mdbm" 1>&6
12495 if test $ol_cv_mdbm = yes ; then
12496 cat >> confdefs.h <<\EOF
12497 #define HAVE_MDBM 1
12503 if test $ol_cv_mdbm = yes ; then
12505 ol_with_ldbm_api=mdbm
12506 if test $ol_cv_lib_mdbm != yes ; then
12507 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12512 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12513 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12514 echo "configure:12515: checking for GDBM library" >&5
12515 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12516 echo $ac_n "(cached) $ac_c" 1>&6
12519 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12520 echo "configure:12521: checking for gdbm_open" >&5
12521 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12524 cat > conftest.$ac_ext <<EOF
12525 #line 12526 "configure"
12526 #include "confdefs.h"
12527 /* System header to define __stub macros and hopefully few prototypes,
12528 which can conflict with char gdbm_open(); below. */
12529 #include <assert.h>
12530 /* Override any gcc2 internal prototype to avoid an error. */
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12538 /* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12549 if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12551 eval "ac_cv_func_gdbm_open=yes"
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12556 eval "ac_cv_func_gdbm_open=no"
12561 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12562 echo "$ac_t""yes" 1>&6
12565 echo "$ac_t""no" 1>&6
12567 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12568 echo "configure:12569: checking for gdbm_open in -lgdbm" >&5
12569 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12570 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12571 echo $ac_n "(cached) $ac_c" 1>&6
12573 ac_save_LIBS="$LIBS"
12574 LIBS="-lgdbm $LIBS"
12575 cat > conftest.$ac_ext <<EOF
12576 #line 12577 "configure"
12577 #include "confdefs.h"
12578 /* Override any gcc2 internal prototype to avoid an error. */
12579 /* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12587 if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12589 eval "ac_cv_lib_$ac_lib_var=yes"
12591 echo "configure: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12594 eval "ac_cv_lib_$ac_lib_var=no"
12597 LIBS="$ac_save_LIBS"
12600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12601 echo "$ac_t""yes" 1>&6
12602 ol_cv_lib_gdbm=-lgdbm
12604 echo "$ac_t""no" 1>&6
12615 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12618 for ac_hdr in gdbm.h
12620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12622 echo "configure:12623: checking for $ac_hdr" >&5
12623 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12632 { (eval echo configure:12633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12634 if test -z "$ac_err"; then
12636 eval "ac_cv_header_$ac_safe=yes"
12639 echo "configure: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12642 eval "ac_cv_header_$ac_safe=no"
12646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12647 echo "$ac_t""yes" 1>&6
12648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12649 cat >> confdefs.h <<EOF
12650 #define $ac_tr_hdr 1
12654 echo "$ac_t""no" 1>&6
12658 echo $ac_n "checking for db""... $ac_c" 1>&6
12659 echo "configure:12660: checking for db" >&5
12660 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12661 echo $ac_n "(cached) $ac_c" 1>&6
12664 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12672 echo "$ac_t""$ol_cv_gdbm" 1>&6
12673 if test $ol_cv_gdbm = yes ; then
12674 cat >> confdefs.h <<\EOF
12675 #define HAVE_GDBM 1
12681 if test $ol_cv_gdbm = yes ; then
12683 ol_with_ldbm_api=gdbm
12685 if test $ol_cv_lib_gdbm != yes ; then
12686 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12691 if test $ol_with_ldbm_api = ndbm ; then
12692 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12693 echo "configure:12694: checking for NDBM library" >&5
12694 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12695 echo $ac_n "(cached) $ac_c" 1>&6
12698 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12699 echo "configure:12700: checking for dbm_open" >&5
12700 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12703 cat > conftest.$ac_ext <<EOF
12704 #line 12705 "configure"
12705 #include "confdefs.h"
12706 /* System header to define __stub macros and hopefully few prototypes,
12707 which can conflict with char dbm_open(); below. */
12708 #include <assert.h>
12709 /* Override any gcc2 internal prototype to avoid an error. */
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12728 if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12730 eval "ac_cv_func_dbm_open=yes"
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12735 eval "ac_cv_func_dbm_open=no"
12740 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12741 echo "$ac_t""yes" 1>&6
12744 echo "$ac_t""no" 1>&6
12746 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12747 echo "configure:12748: checking for dbm_open in -lndbm" >&5
12748 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12749 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12750 echo $ac_n "(cached) $ac_c" 1>&6
12752 ac_save_LIBS="$LIBS"
12753 LIBS="-lndbm $LIBS"
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 /* Override any gcc2 internal prototype to avoid an error. */
12758 /* We use char because int might match the return type of a gcc2
12759 builtin and then its argument prototype would still apply. */
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12768 eval "ac_cv_lib_$ac_lib_var=yes"
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12773 eval "ac_cv_lib_$ac_lib_var=no"
12776 LIBS="$ac_save_LIBS"
12779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12780 echo "$ac_t""yes" 1>&6
12781 ol_cv_lib_ndbm=-lndbm
12783 echo "$ac_t""no" 1>&6
12785 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12786 echo "configure:12787: checking for dbm_open in -ldbm" >&5
12787 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12791 ac_save_LIBS="$LIBS"
12793 cat > conftest.$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12796 /* Override any gcc2 internal prototype to avoid an error. */
12797 /* We use char because int might match the return type of a gcc2
12798 builtin and then its argument prototype would still apply. */
12805 if { (eval echo configure:12806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12807 eval "ac_cv_lib_$ac_lib_var=yes"
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12812 eval "ac_cv_lib_$ac_lib_var=no"
12815 LIBS="$ac_save_LIBS"
12818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12819 echo "$ac_t""yes" 1>&6
12820 ol_cv_lib_ndbm=-ldbm
12822 echo "$ac_t""no" 1>&6
12835 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12838 for ac_hdr in ndbm.h
12840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12842 echo "configure:12843: checking for $ac_hdr" >&5
12843 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12844 echo $ac_n "(cached) $ac_c" 1>&6
12846 cat > conftest.$ac_ext <<EOF
12847 #line 12848 "configure"
12848 #include "confdefs.h"
12851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12852 { (eval echo configure:12853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12854 if test -z "$ac_err"; then
12856 eval "ac_cv_header_$ac_safe=yes"
12859 echo "configure: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12862 eval "ac_cv_header_$ac_safe=no"
12866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12867 echo "$ac_t""yes" 1>&6
12868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12869 cat >> confdefs.h <<EOF
12870 #define $ac_tr_hdr 1
12874 echo "$ac_t""no" 1>&6
12878 echo $ac_n "checking for db""... $ac_c" 1>&6
12879 echo "configure:12880: checking for db" >&5
12880 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12884 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12892 echo "$ac_t""$ol_cv_ndbm" 1>&6
12893 if test $ol_cv_ndbm = yes ; then
12894 cat >> confdefs.h <<\EOF
12895 #define HAVE_NDBM 1
12901 if test $ol_cv_ndbm = yes ; then
12903 ol_with_ldbm_api=ndbm
12905 if test $ol_cv_lib_ndbm != yes ; then
12906 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12911 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12912 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12913 if test $ol_enable_ldbm = yes ; then
12914 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12917 echo "configure: warning: disabling LDBM" 1>&2
12921 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12922 LINK_BINS_DYNAMIC="yes"
12924 LINK_BINS_DYNAMIC="no"
12927 if test $ol_enable_wrappers != no ; then
12928 for ac_hdr in tcpd.h
12930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12932 echo "configure:12933: checking for $ac_hdr" >&5
12933 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12934 echo $ac_n "(cached) $ac_c" 1>&6
12936 cat > conftest.$ac_ext <<EOF
12937 #line 12938 "configure"
12938 #include "confdefs.h"
12941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12942 { (eval echo configure:12943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12944 if test -z "$ac_err"; then
12946 eval "ac_cv_header_$ac_safe=yes"
12949 echo "configure: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12952 eval "ac_cv_header_$ac_safe=no"
12956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12957 echo "$ac_t""yes" 1>&6
12958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12959 cat >> confdefs.h <<EOF
12960 #define $ac_tr_hdr 1
12964 echo "$ac_t""no" 1>&6
12969 if test $ac_cv_header_tcpd_h != yes ; then
12972 cat > conftest.$ac_ext <<EOF
12973 #line 12974 "configure"
12974 #include "confdefs.h"
12976 int allow_severity = 0;
12977 int deny_severity = 0;
12983 if { (eval echo configure:12984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12995 if test $have_wrappers = yes ; then
12996 cat >> confdefs.h <<\EOF
12997 #define HAVE_TCPD 1
13002 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13003 echo "configure:13004: checking for main in -lnsl" >&5
13004 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13006 echo $ac_n "(cached) $ac_c" 1>&6
13008 ac_save_LIBS="$LIBS"
13010 cat > conftest.$ac_ext <<EOF
13011 #line 13012 "configure"
13012 #include "confdefs.h"
13018 if { (eval echo configure:13019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13020 eval "ac_cv_lib_$ac_lib_var=yes"
13022 echo "configure: failed program was:" >&5
13023 cat conftest.$ac_ext >&5
13025 eval "ac_cv_lib_$ac_lib_var=no"
13028 LIBS="$ac_save_LIBS"
13031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13032 echo "$ac_t""yes" 1>&6
13033 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13035 cat >> confdefs.h <<EOF
13036 #define $ac_tr_lib 1
13042 echo "$ac_t""no" 1>&6
13046 echo "configure: warning: could not find -lwrap" 1>&2
13047 if test $ol_enable_wrappers = yes ; then
13048 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13051 echo "configure: warning: disabling wrappers support" 1>&2
13052 ol_enable_wrappers=no
13057 if test $ol_enable_syslog != no ; then
13058 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13059 echo "configure:13060: checking for openlog" >&5
13060 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13061 echo $ac_n "(cached) $ac_c" 1>&6
13063 cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char openlog(); below. */
13068 #include <assert.h>
13069 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13077 /* The GNU C library defines this for functions which it implements
13078 to always fail with ENOSYS. Some functions are actually named
13079 something starting with __ and the normal name is an alias. */
13080 #if defined (__stub_openlog) || defined (__stub___openlog)
13088 if { (eval echo configure:13089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13090 eval "ac_cv_func_openlog=yes"
13092 echo "configure: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13095 eval "ac_cv_func_openlog=no"
13100 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13101 echo "$ac_t""yes" 1>&6
13104 echo "$ac_t""no" 1>&6
13107 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13108 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13110 ol_enable_syslog=$ac_cv_func_openlog
13115 if test $ol_enable_sql != no ; then
13116 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13117 echo "configure:13118: checking for SQLDriverConnect in -liodbc" >&5
13118 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13120 echo $ac_n "(cached) $ac_c" 1>&6
13122 ac_save_LIBS="$LIBS"
13123 LIBS="-liodbc $LIBS"
13124 cat > conftest.$ac_ext <<EOF
13125 #line 13126 "configure"
13126 #include "confdefs.h"
13127 /* Override any gcc2 internal prototype to avoid an error. */
13128 /* We use char because int might match the return type of a gcc2
13129 builtin and then its argument prototype would still apply. */
13130 char SQLDriverConnect();
13136 if { (eval echo configure:13137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13138 eval "ac_cv_lib_$ac_lib_var=yes"
13140 echo "configure: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13143 eval "ac_cv_lib_$ac_lib_var=no"
13146 LIBS="$ac_save_LIBS"
13149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13150 echo "$ac_t""yes" 1>&6
13153 echo "$ac_t""no" 1>&6
13157 if test $have_iodbc = yes ; then
13158 ol_link_sql="-liodbc"
13160 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13161 echo "configure:13162: checking for SQLDriverConnect in -lodbc" >&5
13162 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13164 echo $ac_n "(cached) $ac_c" 1>&6
13166 ac_save_LIBS="$LIBS"
13167 LIBS="-lodbc $LIBS"
13168 cat > conftest.$ac_ext <<EOF
13169 #line 13170 "configure"
13170 #include "confdefs.h"
13171 /* Override any gcc2 internal prototype to avoid an error. */
13172 /* We use char because int might match the return type of a gcc2
13173 builtin and then its argument prototype would still apply. */
13174 char SQLDriverConnect();
13180 if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 eval "ac_cv_lib_$ac_lib_var=yes"
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 eval "ac_cv_lib_$ac_lib_var=no"
13190 LIBS="$ac_save_LIBS"
13193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13194 echo "$ac_t""yes" 1>&6
13197 echo "$ac_t""no" 1>&6
13201 if test $have_odbc = yes ; then
13202 ol_link_sql="-lodbc"
13206 if test $ol_link_sql != no ; then
13207 SLAPD_SQL_LIBS="$ol_link_sql"
13209 elif test $ol_enable_sql != auto ; then
13210 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13214 if test $ol_enable_tcl != no ; then
13215 for ac_hdr in tcl.h
13217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13219 echo "configure:13220: checking for $ac_hdr" >&5
13220 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13221 echo $ac_n "(cached) $ac_c" 1>&6
13223 cat > conftest.$ac_ext <<EOF
13224 #line 13225 "configure"
13225 #include "confdefs.h"
13228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13229 { (eval echo configure:13230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13231 if test -z "$ac_err"; then
13233 eval "ac_cv_header_$ac_safe=yes"
13236 echo "configure: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13239 eval "ac_cv_header_$ac_safe=no"
13243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13244 echo "$ac_t""yes" 1>&6
13245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13246 cat >> confdefs.h <<EOF
13247 #define $ac_tr_hdr 1
13251 echo "$ac_t""no" 1>&6
13256 if test $ac_cv_header_tcl_h != yes ; then
13259 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13260 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13261 echo "configure:13262: checking for main in -l$lib" >&5
13262 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13263 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13264 echo $ac_n "(cached) $ac_c" 1>&6
13266 ac_save_LIBS="$LIBS"
13267 LIBS="-l$lib $LIBS"
13268 cat > conftest.$ac_ext <<EOF
13269 #line 13270 "configure"
13270 #include "confdefs.h"
13276 if { (eval echo configure:13277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13278 eval "ac_cv_lib_$ac_lib_var=yes"
13280 echo "configure: failed program was:" >&5
13281 cat conftest.$ac_ext >&5
13283 eval "ac_cv_lib_$ac_lib_var=no"
13286 LIBS="$ac_save_LIBS"
13289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13290 echo "$ac_t""yes" 1>&6
13292 if test x"$ol_with_tcl_module" = "xstatic" ; then
13293 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13295 MOD_TCL_LIB="-l${lib}"
13298 echo "$ac_t""no" 1>&6
13305 if test $have_tcl != yes ; then
13306 echo "configure: warning: could not find -ltcl" 1>&2
13307 if test $ol_enable_tcl = yes ; then
13308 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13316 for ac_hdr in termcap.h ncurses.h
13318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13320 echo "configure:13321: checking for $ac_hdr" >&5
13321 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13322 echo $ac_n "(cached) $ac_c" 1>&6
13324 cat > conftest.$ac_ext <<EOF
13325 #line 13326 "configure"
13326 #include "confdefs.h"
13329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13330 { (eval echo configure:13331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13332 if test -z "$ac_err"; then
13334 eval "ac_cv_header_$ac_safe=yes"
13337 echo "configure: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13340 eval "ac_cv_header_$ac_safe=no"
13344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13347 cat >> confdefs.h <<EOF
13348 #define $ac_tr_hdr 1
13352 echo "$ac_t""no" 1>&6
13357 if test $ol_link_termcap = no ; then
13358 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13359 echo "configure:13360: checking for tputs in -ltermcap" >&5
13360 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13361 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13362 echo $ac_n "(cached) $ac_c" 1>&6
13364 ac_save_LIBS="$LIBS"
13365 LIBS="-ltermcap $LIBS"
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 /* Override any gcc2 internal prototype to avoid an error. */
13370 /* We use char because int might match the return type of a gcc2
13371 builtin and then its argument prototype would still apply. */
13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13380 eval "ac_cv_lib_$ac_lib_var=yes"
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13385 eval "ac_cv_lib_$ac_lib_var=no"
13388 LIBS="$ac_save_LIBS"
13391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13392 echo "$ac_t""yes" 1>&6
13395 echo "$ac_t""no" 1>&6
13399 if test $have_termcap = yes ; then
13400 cat >> confdefs.h <<\EOF
13401 #define HAVE_TERMCAP 1
13404 ol_link_termcap=yes
13405 TERMCAP_LIBS=-ltermcap
13409 if test $ol_link_termcap = no ; then
13410 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13411 echo "configure:13412: checking for initscr in -lncurses" >&5
13412 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13413 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13414 echo $ac_n "(cached) $ac_c" 1>&6
13416 ac_save_LIBS="$LIBS"
13417 LIBS="-lncurses $LIBS"
13418 cat > conftest.$ac_ext <<EOF
13419 #line 13420 "configure"
13420 #include "confdefs.h"
13421 /* Override any gcc2 internal prototype to avoid an error. */
13422 /* We use char because int might match the return type of a gcc2
13423 builtin and then its argument prototype would still apply. */
13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13432 eval "ac_cv_lib_$ac_lib_var=yes"
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13437 eval "ac_cv_lib_$ac_lib_var=no"
13440 LIBS="$ac_save_LIBS"
13443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13444 echo "$ac_t""yes" 1>&6
13447 echo "$ac_t""no" 1>&6
13451 if test $have_ncurses = yes ; then
13452 cat >> confdefs.h <<\EOF
13453 #define HAVE_NCURSES 1
13456 ol_link_termcap=yes
13457 TERMCAP_LIBS=-lncurses
13461 if test $ol_link_termcap = no ; then
13462 cat >> confdefs.h <<\EOF
13463 #define NO_TERMCAP 1
13471 if test $ol_with_cyrus_sasl != no ; then
13472 for ac_hdr in sasl.h
13474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13476 echo "configure:13477: checking for $ac_hdr" >&5
13477 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13478 echo $ac_n "(cached) $ac_c" 1>&6
13480 cat > conftest.$ac_ext <<EOF
13481 #line 13482 "configure"
13482 #include "confdefs.h"
13485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13486 { (eval echo configure:13487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13488 if test -z "$ac_err"; then
13490 eval "ac_cv_header_$ac_safe=yes"
13493 echo "configure: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13496 eval "ac_cv_header_$ac_safe=no"
13500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13501 echo "$ac_t""yes" 1>&6
13502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13503 cat >> confdefs.h <<EOF
13504 #define $ac_tr_hdr 1
13508 echo "$ac_t""no" 1>&6
13513 if test $ac_cv_header_sasl_h = yes ; then
13514 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13515 echo "configure:13516: checking for sasl_client_init in -lsasl" >&5
13516 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13518 echo $ac_n "(cached) $ac_c" 1>&6
13520 ac_save_LIBS="$LIBS"
13521 LIBS="-lsasl $LIBS"
13522 cat > conftest.$ac_ext <<EOF
13523 #line 13524 "configure"
13524 #include "confdefs.h"
13525 /* Override any gcc2 internal prototype to avoid an error. */
13526 /* We use char because int might match the return type of a gcc2
13527 builtin and then its argument prototype would still apply. */
13528 char sasl_client_init();
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13536 eval "ac_cv_lib_$ac_lib_var=yes"
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13541 eval "ac_cv_lib_$ac_lib_var=no"
13544 LIBS="$ac_save_LIBS"
13547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13548 echo "$ac_t""yes" 1>&6
13549 have_cyrus_sasl=yes
13551 echo "$ac_t""no" 1>&6
13556 if test $have_cyrus_sasl != no ; then
13558 cat >> confdefs.h <<\EOF
13559 #define HAVE_CYRUS_SASL 1
13566 if test $ol_link_sasl = no ; then
13567 if test $ol_with_cyrus_sasl != auto ; then
13568 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13570 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13571 echo "configure: warning: SASL authentication not supported!" 1>&2
13572 if test $ol_link_tls = no ; then
13573 echo "configure: warning: Strong authentication not supported!" 1>&2
13578 echo "configure: warning: SASL authentication not supported!" 1>&2
13579 if test $ol_link_tls = no ; then
13580 echo "configure: warning: Strong authentication not supported!" 1>&2
13584 if test $cross_compiling != yes ; then
13586 if test -r /dev/urandom ; then
13587 dev="/dev/urandom";
13588 elif test -r /idev/urandom ; then
13589 dev="/idev/urandom";
13590 elif test -r /dev/srandom ; then
13591 dev="/dev/srandom";
13592 elif test -r /dev/random ; then
13594 elif test -r /idev/random ; then
13595 dev="/idev/random";
13598 if test $dev != no ; then
13599 cat >> confdefs.h <<EOF
13600 #define URANDOM_DEVICE "$dev"
13607 if test $ol_with_fetch != no ; then
13609 LIBS="-lfetch -lcom_err $LIBS"
13610 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13611 echo "configure:13612: checking fetch(3) library" >&5
13612 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13616 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure"
13618 #include "confdefs.h"
13620 #include <sys/param.h>
13624 struct url *u = fetchParseURL("file:///");
13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13629 ol_cv_lib_fetch=yes
13631 echo "configure: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13639 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13641 if test $ol_cv_lib_fetch != no ; then
13642 ol_link_fetch="-lfetch -lcom_err"
13643 cat >> confdefs.h <<\EOF
13644 #define HAVE_FETCH 1
13650 if test $ol_cv_lib_fetch != no ; then
13651 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13652 ol_link_fetch=freebsd
13654 elif test $ol_with_fetch != auto ; then
13655 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13659 ol_link_readline=no
13660 if test $ol_with_readline != no ; then
13661 for ac_hdr in readline/readline.h readline/history.h
13663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13665 echo "configure:13666: checking for $ac_hdr" >&5
13666 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13667 echo $ac_n "(cached) $ac_c" 1>&6
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13675 { (eval echo configure:13676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13677 if test -z "$ac_err"; then
13679 eval "ac_cv_header_$ac_safe=yes"
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13685 eval "ac_cv_header_$ac_safe=no"
13689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13690 echo "$ac_t""yes" 1>&6
13691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13692 cat >> confdefs.h <<EOF
13693 #define $ac_tr_hdr 1
13697 echo "$ac_t""no" 1>&6
13702 if test $ac_cv_header_readline_readline_h = yes ; then
13704 LIBS="$TERMCAP_LIBS $LIBS"
13705 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13706 echo "configure:13707: checking for readline in -lreadline" >&5
13707 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13711 ac_save_LIBS="$LIBS"
13712 LIBS="-lreadline $LIBS"
13713 cat > conftest.$ac_ext <<EOF
13714 #line 13715 "configure"
13715 #include "confdefs.h"
13716 /* Override any gcc2 internal prototype to avoid an error. */
13717 /* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13727 eval "ac_cv_lib_$ac_lib_var=yes"
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13732 eval "ac_cv_lib_$ac_lib_var=no"
13735 LIBS="$ac_save_LIBS"
13738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13739 echo "$ac_t""yes" 1>&6
13742 echo "$ac_t""no" 1>&6
13748 if test $have_readline = yes ; then
13749 ol_with_readline=found
13750 ol_link_readline=yes
13752 READLINE_LIBS="-lreadline"
13757 if test $ol_link_readline = yes ; then
13758 cat >> confdefs.h <<\EOF
13759 #define HAVE_READLINE 1
13765 if test $ol_enable_crypt != no ; then
13766 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13767 echo "configure:13768: checking for crypt" >&5
13768 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13769 echo $ac_n "(cached) $ac_c" 1>&6
13771 cat > conftest.$ac_ext <<EOF
13772 #line 13773 "configure"
13773 #include "confdefs.h"
13774 /* System header to define __stub macros and hopefully few prototypes,
13775 which can conflict with char crypt(); below. */
13776 #include <assert.h>
13777 /* Override any gcc2 internal prototype to avoid an error. */
13778 /* We use char because int might match the return type of a gcc2
13779 builtin and then its argument prototype would still apply. */
13785 /* The GNU C library defines this for functions which it implements
13786 to always fail with ENOSYS. Some functions are actually named
13787 something starting with __ and the normal name is an alias. */
13788 #if defined (__stub_crypt) || defined (__stub___crypt)
13796 if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13798 eval "ac_cv_func_crypt=yes"
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13803 eval "ac_cv_func_crypt=no"
13808 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13809 echo "$ac_t""yes" 1>&6
13812 echo "$ac_t""no" 1>&6
13814 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13815 echo "configure:13816: checking for crypt in -lcrypt" >&5
13816 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13817 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13818 echo $ac_n "(cached) $ac_c" 1>&6
13820 ac_save_LIBS="$LIBS"
13821 LIBS="-lcrypt $LIBS"
13822 cat > conftest.$ac_ext <<EOF
13823 #line 13824 "configure"
13824 #include "confdefs.h"
13825 /* Override any gcc2 internal prototype to avoid an error. */
13826 /* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13836 eval "ac_cv_lib_$ac_lib_var=yes"
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13841 eval "ac_cv_lib_$ac_lib_var=no"
13844 LIBS="$ac_save_LIBS"
13847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13848 echo "$ac_t""yes" 1>&6
13849 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13852 echo "$ac_t""no" 1>&6
13859 if test $have_crypt = yes ; then
13860 cat >> confdefs.h <<\EOF
13861 #define HAVE_CRYPT 1
13865 echo "configure: warning: could not find crypt" 1>&2
13866 if test $ol_enable_crypt = yes ; then
13867 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13870 echo "configure: warning: disabling crypt support" 1>&2
13875 if test $ol_enable_proctitle != no ; then
13876 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13877 echo "configure:13878: checking for setproctitle" >&5
13878 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13879 echo $ac_n "(cached) $ac_c" 1>&6
13881 cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13884 /* System header to define __stub macros and hopefully few prototypes,
13885 which can conflict with char setproctitle(); below. */
13886 #include <assert.h>
13887 /* Override any gcc2 internal prototype to avoid an error. */
13888 /* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890 char setproctitle();
13895 /* The GNU C library defines this for functions which it implements
13896 to always fail with ENOSYS. Some functions are actually named
13897 something starting with __ and the normal name is an alias. */
13898 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13906 if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13908 eval "ac_cv_func_setproctitle=yes"
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13913 eval "ac_cv_func_setproctitle=no"
13918 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13919 echo "$ac_t""yes" 1>&6
13920 have_setproctitle=yes
13922 echo "$ac_t""no" 1>&6
13924 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13925 echo "configure:13926: checking for setproctitle in -lutil" >&5
13926 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13927 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13928 echo $ac_n "(cached) $ac_c" 1>&6
13930 ac_save_LIBS="$LIBS"
13931 LIBS="-lutil $LIBS"
13932 cat > conftest.$ac_ext <<EOF
13933 #line 13934 "configure"
13934 #include "confdefs.h"
13935 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938 char setproctitle();
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13946 eval "ac_cv_lib_$ac_lib_var=yes"
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13951 eval "ac_cv_lib_$ac_lib_var=no"
13954 LIBS="$ac_save_LIBS"
13957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13958 echo "$ac_t""yes" 1>&6
13959 have_setproctitle=yes
13960 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13962 echo "$ac_t""no" 1>&6
13963 have_setproctitle=no
13964 LIBOBJS="$LIBOBJS setproctitle.o"
13965 LIBSRCS="$LIBSRCS setproctitle.c"
13971 if test $have_setproctitle = yes ; then
13972 cat >> confdefs.h <<\EOF
13973 #define HAVE_SETPROCTITLE 1
13979 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13980 echo "configure:13981: checking for ANSI C header files" >&5
13981 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13982 echo $ac_n "(cached) $ac_c" 1>&6
13984 cat > conftest.$ac_ext <<EOF
13985 #line 13986 "configure"
13986 #include "confdefs.h"
13987 #include <stdlib.h>
13988 #include <stdarg.h>
13989 #include <string.h>
13992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13993 { (eval echo configure:13994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13995 if test -z "$ac_err"; then
13997 ac_cv_header_stdc=yes
14000 echo "configure: failed program was:" >&5
14001 cat conftest.$ac_ext >&5
14003 ac_cv_header_stdc=no
14007 if test $ac_cv_header_stdc = yes; then
14008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 #include <string.h>
14014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14015 egrep "memchr" >/dev/null 2>&1; then
14019 ac_cv_header_stdc=no
14025 if test $ac_cv_header_stdc = yes; then
14026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14027 cat > conftest.$ac_ext <<EOF
14028 #line 14029 "configure"
14029 #include "confdefs.h"
14030 #include <stdlib.h>
14032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14033 egrep "free" >/dev/null 2>&1; then
14037 ac_cv_header_stdc=no
14043 if test $ac_cv_header_stdc = yes; then
14044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14045 if test "$cross_compiling" = yes; then
14048 cat > conftest.$ac_ext <<EOF
14049 #line 14050 "configure"
14050 #include "confdefs.h"
14052 #if ((' ' & 0x0FF) == 0x020)
14053 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14054 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14056 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14057 || ('j' <= (c) && (c) <= 'r') \
14058 || ('s' <= (c) && (c) <= 'z'))
14059 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14062 int main () { int i; for (i = 0; i < 256; i++)
14063 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14067 if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14071 echo "configure: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14074 ac_cv_header_stdc=no
14082 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14083 if test $ac_cv_header_stdc = yes; then
14084 cat >> confdefs.h <<\EOF
14085 #define STDC_HEADERS 1
14090 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14091 echo "configure:14092: checking for mode_t" >&5
14092 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14093 echo $ac_n "(cached) $ac_c" 1>&6
14095 cat > conftest.$ac_ext <<EOF
14096 #line 14097 "configure"
14097 #include "confdefs.h"
14098 #include <sys/types.h>
14100 #include <stdlib.h>
14101 #include <stddef.h>
14105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14106 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14108 eval "ac_cv_type_mode_t=yes"
14111 eval "ac_cv_type_mode_t=no"
14116 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14117 echo "$ac_t""yes" 1>&6
14119 echo "$ac_t""no" 1>&6
14120 cat >> confdefs.h <<EOF
14126 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14127 echo "configure:14128: checking for off_t" >&5
14128 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14131 cat > conftest.$ac_ext <<EOF
14132 #line 14133 "configure"
14133 #include "confdefs.h"
14134 #include <sys/types.h>
14136 #include <stdlib.h>
14137 #include <stddef.h>
14141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14142 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14144 eval "ac_cv_type_off_t=yes"
14147 eval "ac_cv_type_off_t=no"
14152 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14153 echo "$ac_t""yes" 1>&6
14155 echo "$ac_t""no" 1>&6
14156 cat >> confdefs.h <<EOF
14162 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14163 echo "configure:14164: checking for pid_t" >&5
14164 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14165 echo $ac_n "(cached) $ac_c" 1>&6
14167 cat > conftest.$ac_ext <<EOF
14168 #line 14169 "configure"
14169 #include "confdefs.h"
14170 #include <sys/types.h>
14172 #include <stdlib.h>
14173 #include <stddef.h>
14177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14178 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14180 eval "ac_cv_type_pid_t=yes"
14183 eval "ac_cv_type_pid_t=no"
14188 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14189 echo "$ac_t""yes" 1>&6
14191 echo "$ac_t""no" 1>&6
14192 cat >> confdefs.h <<EOF
14198 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14199 echo "configure:14200: checking for ptrdiff_t" >&5
14200 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 #include <stddef.h>
14211 if { (eval echo configure:14212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213 am_cv_type_ptrdiff_t=yes
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14218 am_cv_type_ptrdiff_t=no
14223 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14224 if test $am_cv_type_ptrdiff_t = yes; then
14225 cat >> confdefs.h <<\EOF
14226 #define HAVE_PTRDIFF_T 1
14231 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14232 echo "configure:14233: checking return type of signal handlers" >&5
14233 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14234 echo $ac_n "(cached) $ac_c" 1>&6
14236 cat > conftest.$ac_ext <<EOF
14237 #line 14238 "configure"
14238 #include "confdefs.h"
14239 #include <sys/types.h>
14240 #include <signal.h>
14245 extern "C" void (*signal (int, void (*)(int)))(int);
14247 void (*signal ()) ();
14254 if { (eval echo configure:14255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14256 ac_cv_type_signal=void
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 ac_cv_type_signal=int
14266 echo "$ac_t""$ac_cv_type_signal" 1>&6
14267 cat >> confdefs.h <<EOF
14268 #define RETSIGTYPE $ac_cv_type_signal
14272 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14273 echo "configure:14274: checking for size_t" >&5
14274 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14275 echo $ac_n "(cached) $ac_c" 1>&6
14277 cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure"
14279 #include "confdefs.h"
14280 #include <sys/types.h>
14282 #include <stdlib.h>
14283 #include <stddef.h>
14287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14290 eval "ac_cv_type_size_t=yes"
14293 eval "ac_cv_type_size_t=no"
14298 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14299 echo "$ac_t""yes" 1>&6
14301 echo "$ac_t""no" 1>&6
14302 cat >> confdefs.h <<EOF
14303 #define size_t unsigned
14309 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14310 echo "configure:14311: checking for ssize_t" >&5
14311 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14312 echo $ac_n "(cached) $ac_c" 1>&6
14314 cat > conftest.$ac_ext <<EOF
14315 #line 14316 "configure"
14316 #include "confdefs.h"
14317 #include <sys/types.h>
14319 #include <stdlib.h>
14320 #include <stddef.h>
14324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14325 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14327 eval "ac_cv_type_ssize_t=yes"
14330 eval "ac_cv_type_ssize_t=no"
14335 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14336 echo "$ac_t""yes" 1>&6
14338 echo "$ac_t""no" 1>&6
14339 cat >> confdefs.h <<EOF
14340 #define ssize_t signed int
14345 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14346 echo "configure:14347: checking for caddr_t" >&5
14347 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353 #include <sys/types.h>
14355 #include <stdlib.h>
14356 #include <stddef.h>
14360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14361 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14363 eval "ac_cv_type_caddr_t=yes"
14366 eval "ac_cv_type_caddr_t=no"
14371 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14372 echo "$ac_t""yes" 1>&6
14374 echo "$ac_t""no" 1>&6
14375 cat >> confdefs.h <<EOF
14376 #define caddr_t char *
14382 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14383 echo "configure:14384: checking for socklen_t" >&5
14384 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14385 echo $ac_n "(cached) $ac_c" 1>&6
14387 cat > conftest.$ac_ext <<EOF
14388 #line 14389 "configure"
14389 #include "confdefs.h"
14391 #ifdef HAVE_SYS_TYPES_H
14392 #include <sys/types.h>
14394 #ifdef HAVE_SYS_SOCKET_H
14395 #include <sys/socket.h>
14402 if { (eval echo configure:14403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14404 ol_cv_type_socklen_t=yes
14406 echo "configure: failed program was:" >&5
14407 cat conftest.$ac_ext >&5
14409 ol_cv_type_socklen_t=no
14414 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14415 if test $ol_cv_type_socklen_t = no; then
14416 cat >> confdefs.h <<\EOF
14417 #define socklen_t int
14422 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14423 echo "configure:14424: checking for member st_blksize in aggregate type struct stat" >&5
14424 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14425 echo $ac_n "(cached) $ac_c" 1>&6
14427 cat > conftest.$ac_ext <<EOF
14428 #line 14429 "configure"
14429 #include "confdefs.h"
14430 #include <sys/types.h>
14431 #include <sys/stat.h>
14433 struct stat foo; foo.st_blksize;
14436 if { (eval echo configure:14437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14438 ac_cv_c_struct_member_st_blksize=yes
14440 echo "configure: failed program was:" >&5
14441 cat conftest.$ac_ext >&5
14443 ac_cv_c_struct_member_st_blksize=no
14448 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14449 st_blksize="$ac_cv_c_struct_member_st_blksize"
14450 if test $ac_cv_c_struct_member_st_blksize = yes; then
14451 cat >> confdefs.h <<\EOF
14452 #define HAVE_ST_BLKSIZE 1
14457 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14458 echo "configure:14459: checking whether time.h and sys/time.h may both be included" >&5
14459 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14460 echo $ac_n "(cached) $ac_c" 1>&6
14462 cat > conftest.$ac_ext <<EOF
14463 #line 14464 "configure"
14464 #include "confdefs.h"
14465 #include <sys/types.h>
14466 #include <sys/time.h>
14472 if { (eval echo configure:14473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14474 ac_cv_header_time=yes
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14479 ac_cv_header_time=no
14484 echo "$ac_t""$ac_cv_header_time" 1>&6
14485 if test $ac_cv_header_time = yes; then
14486 cat >> confdefs.h <<\EOF
14487 #define TIME_WITH_SYS_TIME 1
14492 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14493 echo "configure:14494: checking whether struct tm is in sys/time.h or time.h" >&5
14494 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
14497 cat > conftest.$ac_ext <<EOF
14498 #line 14499 "configure"
14499 #include "confdefs.h"
14500 #include <sys/types.h>
14503 struct tm *tp; tp->tm_sec;
14506 if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14508 ac_cv_struct_tm=time.h
14510 echo "configure: failed program was:" >&5
14511 cat conftest.$ac_ext >&5
14513 ac_cv_struct_tm=sys/time.h
14518 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14519 if test $ac_cv_struct_tm = sys/time.h; then
14520 cat >> confdefs.h <<\EOF
14521 #define TM_IN_SYS_TIME 1
14526 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14527 echo "configure:14528: checking for uid_t in sys/types.h" >&5
14528 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14529 echo $ac_n "(cached) $ac_c" 1>&6
14531 cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 #include <sys/types.h>
14536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14537 egrep "uid_t" >/dev/null 2>&1; then
14539 ac_cv_type_uid_t=yes
14542 ac_cv_type_uid_t=no
14548 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14549 if test $ac_cv_type_uid_t = no; then
14550 cat >> confdefs.h <<\EOF
14554 cat >> confdefs.h <<\EOF
14560 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14561 echo "configure:14562: checking for sig_atomic_t" >&5
14562 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14563 echo $ac_n "(cached) $ac_c" 1>&6
14565 cat > conftest.$ac_ext <<EOF
14566 #line 14567 "configure"
14567 #include "confdefs.h"
14568 #include <signal.h>
14570 sig_atomic_t atomic;
14573 if { (eval echo configure:14574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14575 ol_cv_type_sig_atomic_t=yes
14577 echo "configure: failed program was:" >&5
14578 cat conftest.$ac_ext >&5
14580 ol_cv_type_sig_atomic_t=no
14585 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14586 if test $ol_cv_type_sig_atomic_t = no; then
14587 cat >> confdefs.h <<\EOF
14588 #define sig_atomic_t int
14595 # test for pw_gecos in struct passwd
14596 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14597 echo "configure:14598: checking struct passwd for pw_gecos" >&5
14598 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14599 echo $ac_n "(cached) $ac_c" 1>&6
14602 cat > conftest.$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14609 pwd.pw_gecos = pwd.pw_name;
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14615 ol_cv_struct_passwd_pw_gecos=yes
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14620 ol_cv_struct_passwd_pw_gecos=no
14625 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14626 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14627 cat >> confdefs.h <<\EOF
14628 #define HAVE_PW_GECOS 1
14633 # test for pw_passwd in struct passwd
14634 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14635 echo "configure:14636: checking struct passwd for pw_passwd" >&5
14636 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14637 echo $ac_n "(cached) $ac_c" 1>&6
14640 cat > conftest.$ac_ext <<EOF
14641 #line 14642 "configure"
14642 #include "confdefs.h"
14647 pwd.pw_passwd = pwd.pw_name;
14651 if { (eval echo configure:14652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14653 ol_cv_struct_passwd_pw_passwd=yes
14655 echo "configure: failed program was:" >&5
14656 cat conftest.$ac_ext >&5
14658 ol_cv_struct_passwd_pw_passwd=no
14663 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14664 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14665 cat >> confdefs.h <<\EOF
14666 #define HAVE_PW_PASSWD 1
14672 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14673 echo "configure:14674: checking if toupper() requires islower()" >&5
14674 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14675 echo $ac_n "(cached) $ac_c" 1>&6
14678 if test "$cross_compiling" = yes; then
14679 ol_cv_c_upper_lower=safe
14681 cat > conftest.$ac_ext <<EOF
14682 #line 14683 "configure"
14683 #include "confdefs.h"
14688 if ('C' == toupper('C'))
14694 if { (eval echo configure:14695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14696 ol_cv_c_upper_lower=no
14698 echo "configure: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14701 ol_cv_c_upper_lower=yes
14708 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14709 if test $ol_cv_c_upper_lower != no ; then
14710 cat >> confdefs.h <<\EOF
14711 #define C_UPPER_LOWER 1
14716 echo $ac_n "checking for working const""... $ac_c" 1>&6
14717 echo "configure:14718: checking for working const" >&5
14718 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14719 echo $ac_n "(cached) $ac_c" 1>&6
14721 cat > conftest.$ac_ext <<EOF
14722 #line 14723 "configure"
14723 #include "confdefs.h"
14727 /* Ultrix mips cc rejects this. */
14728 typedef int charset[2]; const charset x;
14729 /* SunOS 4.1.1 cc rejects this. */
14730 char const *const *ccp;
14732 /* NEC SVR4.0.2 mips cc rejects this. */
14733 struct point {int x, y;};
14734 static struct point const zero = {0,0};
14735 /* AIX XL C 1.02.0.0 rejects this.
14736 It does not let you subtract one const X* pointer from another in an arm
14737 of an if-expression whose if-part is not a constant expression */
14738 const char *g = "string";
14739 ccp = &g + (g ? g-g : 0);
14740 /* HPUX 7.0 cc rejects these. */
14743 ccp = (char const *const *) p;
14744 { /* SCO 3.2v4 cc rejects this. */
14746 char const *s = 0 ? (char *) 0 : (char const *) 0;
14750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14751 int x[] = {25, 17};
14752 const int *foo = &x[0];
14755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14756 typedef const int *iptr;
14760 { /* AIX XL C 1.02.0.0 rejects this saying
14761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14762 struct s { int j; const int *ap[3]; };
14763 struct s *b; b->j = 5;
14765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14766 const int foo = 10;
14771 if { (eval echo configure:14772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14775 echo "configure: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14783 echo "$ac_t""$ac_cv_c_const" 1>&6
14784 if test $ac_cv_c_const = no; then
14785 cat >> confdefs.h <<\EOF
14791 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14792 echo "configure:14793: checking if compiler understands volatile" >&5
14793 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14794 echo $ac_n "(cached) $ac_c" 1>&6
14796 cat > conftest.$ac_ext <<EOF
14797 #line 14798 "configure"
14798 #include "confdefs.h"
14801 volatile int a; int * volatile b = x ? &y : &z;
14802 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14806 if { (eval echo configure:14807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14808 ol_cv_c_volatile=yes
14810 echo "configure: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14813 ol_cv_c_volatile=no
14818 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14819 if test $ol_cv_c_volatile = yes; then
14822 cat >> confdefs.h <<\EOF
14829 if test $cross_compiling = yes ; then
14830 cat >> confdefs.h <<\EOF
14831 #define CROSS_COMPILING 1
14835 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14836 echo "configure:14837: checking whether byte ordering is bigendian" >&5
14837 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14838 echo $ac_n "(cached) $ac_c" 1>&6
14840 ac_cv_c_bigendian=unknown
14841 # See if sys/param.h defines the BYTE_ORDER macro.
14842 cat > conftest.$ac_ext <<EOF
14843 #line 14844 "configure"
14844 #include "confdefs.h"
14845 #include <sys/types.h>
14846 #include <sys/param.h>
14849 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14850 bogus endian macros
14854 if { (eval echo configure:14855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14856 # It does; now see whether it defined to BIG_ENDIAN or not.
14857 cat > conftest.$ac_ext <<EOF
14858 #line 14859 "configure"
14859 #include "confdefs.h"
14860 #include <sys/types.h>
14861 #include <sys/param.h>
14864 #if BYTE_ORDER != BIG_ENDIAN
14869 if { (eval echo configure:14870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14871 ac_cv_c_bigendian=yes
14873 echo "configure: failed program was:" >&5
14874 cat conftest.$ac_ext >&5
14876 ac_cv_c_bigendian=no
14880 echo "configure: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14884 if test $ac_cv_c_bigendian = unknown; then
14885 if test "$cross_compiling" = yes; then
14886 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14888 cat > conftest.$ac_ext <<EOF
14889 #line 14890 "configure"
14890 #include "confdefs.h"
14892 /* Are we little or big endian? From Harbison&Steele. */
14896 char c[sizeof (long)];
14899 exit (u.c[sizeof (long) - 1] == 1);
14902 if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14904 ac_cv_c_bigendian=no
14906 echo "configure: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14909 ac_cv_c_bigendian=yes
14917 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14918 if test $ac_cv_c_bigendian = yes; then
14919 cat >> confdefs.h <<\EOF
14920 #define WORDS_BIGENDIAN 1
14927 echo $ac_n "checking size of short""... $ac_c" 1>&6
14928 echo "configure:14929: checking size of short" >&5
14929 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14930 echo $ac_n "(cached) $ac_c" 1>&6
14932 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14933 cat > conftest.$ac_ext <<EOF
14934 #line 14935 "configure"
14935 #include "confdefs.h"
14936 #include "confdefs.h"
14937 #include <sys/types.h>
14941 switch (0) case 0: case (sizeof (short) == $ac_size):;
14944 if { (eval echo configure:14945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14946 ac_cv_sizeof_short=$ac_size
14948 echo "configure: failed program was:" >&5
14949 cat conftest.$ac_ext >&5
14952 if test x$ac_cv_sizeof_short != x ; then break; fi
14957 if test x$ac_cv_sizeof_short = x ; then
14958 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14960 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14961 cat >> confdefs.h <<EOF
14962 #define SIZEOF_SHORT $ac_cv_sizeof_short
14966 echo $ac_n "checking size of int""... $ac_c" 1>&6
14967 echo "configure:14968: checking size of int" >&5
14968 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14969 echo $ac_n "(cached) $ac_c" 1>&6
14971 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14972 cat > conftest.$ac_ext <<EOF
14973 #line 14974 "configure"
14974 #include "confdefs.h"
14975 #include "confdefs.h"
14976 #include <sys/types.h>
14980 switch (0) case 0: case (sizeof (int) == $ac_size):;
14983 if { (eval echo configure:14984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14985 ac_cv_sizeof_int=$ac_size
14987 echo "configure: failed program was:" >&5
14988 cat conftest.$ac_ext >&5
14991 if test x$ac_cv_sizeof_int != x ; then break; fi
14996 if test x$ac_cv_sizeof_int = x ; then
14997 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14999 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15000 cat >> confdefs.h <<EOF
15001 #define SIZEOF_INT $ac_cv_sizeof_int
15005 echo $ac_n "checking size of long""... $ac_c" 1>&6
15006 echo "configure:15007: checking size of long" >&5
15007 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15008 echo $ac_n "(cached) $ac_c" 1>&6
15010 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15011 cat > conftest.$ac_ext <<EOF
15012 #line 15013 "configure"
15013 #include "confdefs.h"
15014 #include "confdefs.h"
15015 #include <sys/types.h>
15019 switch (0) case 0: case (sizeof (long) == $ac_size):;
15022 if { (eval echo configure:15023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15024 ac_cv_sizeof_long=$ac_size
15026 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15030 if test x$ac_cv_sizeof_long != x ; then break; fi
15035 if test x$ac_cv_sizeof_long = x ; then
15036 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15038 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15039 cat >> confdefs.h <<EOF
15040 #define SIZEOF_LONG $ac_cv_sizeof_long
15045 if test "$ac_cv_sizeof_int" -lt 4 ; then
15046 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15048 cat >> confdefs.h <<\EOF
15049 #define LBER_INT_T long
15053 cat >> confdefs.h <<\EOF
15054 #define LBER_INT_T int
15059 cat >> confdefs.h <<\EOF
15060 #define LBER_LEN_T long
15063 cat >> confdefs.h <<\EOF
15064 #define LBER_SOCKET_T int
15067 cat >> confdefs.h <<\EOF
15068 #define LBER_TAG_T long
15072 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15073 echo "configure:15074: checking for 8-bit clean memcmp" >&5
15074 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15075 echo $ac_n "(cached) $ac_c" 1>&6
15077 if test "$cross_compiling" = yes; then
15078 ac_cv_func_memcmp_clean=no
15080 cat > conftest.$ac_ext <<EOF
15081 #line 15082 "configure"
15082 #include "confdefs.h"
15086 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15087 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15091 if { (eval echo configure:15092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15093 ac_cv_func_memcmp_clean=yes
15095 echo "configure: failed program was:" >&5
15096 cat conftest.$ac_ext >&5
15098 ac_cv_func_memcmp_clean=no
15105 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15106 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15108 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15109 echo "configure:15110: checking for strftime" >&5
15110 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15111 echo $ac_n "(cached) $ac_c" 1>&6
15113 cat > conftest.$ac_ext <<EOF
15114 #line 15115 "configure"
15115 #include "confdefs.h"
15116 /* System header to define __stub macros and hopefully few prototypes,
15117 which can conflict with char strftime(); below. */
15118 #include <assert.h>
15119 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15127 /* The GNU C library defines this for functions which it implements
15128 to always fail with ENOSYS. Some functions are actually named
15129 something starting with __ and the normal name is an alias. */
15130 #if defined (__stub_strftime) || defined (__stub___strftime)
15138 if { (eval echo configure:15139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15140 eval "ac_cv_func_strftime=yes"
15142 echo "configure: failed program was:" >&5
15143 cat conftest.$ac_ext >&5
15145 eval "ac_cv_func_strftime=no"
15150 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15151 echo "$ac_t""yes" 1>&6
15152 cat >> confdefs.h <<\EOF
15153 #define HAVE_STRFTIME 1
15157 echo "$ac_t""no" 1>&6
15158 # strftime is in -lintl on SCO UNIX.
15159 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15160 echo "configure:15161: checking for strftime in -lintl" >&5
15161 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15162 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15163 echo $ac_n "(cached) $ac_c" 1>&6
15165 ac_save_LIBS="$LIBS"
15166 LIBS="-lintl $LIBS"
15167 cat > conftest.$ac_ext <<EOF
15168 #line 15169 "configure"
15169 #include "confdefs.h"
15170 /* Override any gcc2 internal prototype to avoid an error. */
15171 /* We use char because int might match the return type of a gcc2
15172 builtin and then its argument prototype would still apply. */
15179 if { (eval echo configure:15180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 eval "ac_cv_lib_$ac_lib_var=yes"
15183 echo "configure: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15186 eval "ac_cv_lib_$ac_lib_var=no"
15189 LIBS="$ac_save_LIBS"
15192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 cat >> confdefs.h <<\EOF
15195 #define HAVE_STRFTIME 1
15198 LIBS="-lintl $LIBS"
15200 echo "$ac_t""no" 1>&6
15206 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15207 echo "configure:15208: checking for inet_aton()" >&5
15208 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15209 echo $ac_n "(cached) $ac_c" 1>&6
15211 cat > conftest.$ac_ext <<EOF
15212 #line 15213 "configure"
15213 #include "confdefs.h"
15215 #ifdef HAVE_SYS_TYPES_H
15216 # include <sys/types.h>
15218 #ifdef HAVE_SYS_SOCKET_H
15219 # include <sys/socket.h>
15220 # ifdef HAVE_SYS_SELECT_H
15221 # include <sys/select.h>
15223 # include <netinet/in.h>
15224 # ifdef HAVE_ARPA_INET_H
15225 # include <arpa/inet.h>
15231 int rc = inet_aton( "255.255.255.255", &in );
15234 if { (eval echo configure:15235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15236 ol_cv_func_inet_aton=yes
15238 echo "configure: failed program was:" >&5
15239 cat conftest.$ac_ext >&5
15241 ol_cv_func_inet_aton=no
15246 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15247 if test $ol_cv_func_inet_aton != no; then
15248 cat >> confdefs.h <<\EOF
15249 #define HAVE_INET_ATON 1
15255 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15256 echo "configure:15257: checking for _spawnlp" >&5
15257 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15258 echo $ac_n "(cached) $ac_c" 1>&6
15260 cat > conftest.$ac_ext <<EOF
15261 #line 15262 "configure"
15262 #include "confdefs.h"
15263 /* System header to define __stub macros and hopefully few prototypes,
15264 which can conflict with char _spawnlp(); below. */
15265 #include <assert.h>
15266 /* Override any gcc2 internal prototype to avoid an error. */
15267 /* We use char because int might match the return type of a gcc2
15268 builtin and then its argument prototype would still apply. */
15274 /* The GNU C library defines this for functions which it implements
15275 to always fail with ENOSYS. Some functions are actually named
15276 something starting with __ and the normal name is an alias. */
15277 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15285 if { (eval echo configure:15286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15287 eval "ac_cv_func__spawnlp=yes"
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15292 eval "ac_cv_func__spawnlp=no"
15297 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15298 echo "$ac_t""yes" 1>&6
15299 cat >> confdefs.h <<\EOF
15300 #define HAVE_SPAWNLP 1
15304 echo "$ac_t""no" 1>&6
15308 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15309 echo "configure:15310: checking for _snprintf" >&5
15310 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15311 echo $ac_n "(cached) $ac_c" 1>&6
15313 cat > conftest.$ac_ext <<EOF
15314 #line 15315 "configure"
15315 #include "confdefs.h"
15316 /* System header to define __stub macros and hopefully few prototypes,
15317 which can conflict with char _snprintf(); below. */
15318 #include <assert.h>
15319 /* Override any gcc2 internal prototype to avoid an error. */
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
15327 /* The GNU C library defines this for functions which it implements
15328 to always fail with ENOSYS. Some functions are actually named
15329 something starting with __ and the normal name is an alias. */
15330 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15338 if { (eval echo configure:15339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15340 eval "ac_cv_func__snprintf=yes"
15342 echo "configure: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15345 eval "ac_cv_func__snprintf=no"
15350 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15351 echo "$ac_t""yes" 1>&6
15352 ac_cv_func_snprintf=yes
15353 cat >> confdefs.h <<\EOF
15354 #define snprintf _snprintf
15359 echo "$ac_t""no" 1>&6
15363 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15364 echo "configure:15365: checking for _vsnprintf" >&5
15365 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
15368 cat > conftest.$ac_ext <<EOF
15369 #line 15370 "configure"
15370 #include "confdefs.h"
15371 /* System header to define __stub macros and hopefully few prototypes,
15372 which can conflict with char _vsnprintf(); below. */
15373 #include <assert.h>
15374 /* Override any gcc2 internal prototype to avoid an error. */
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15382 /* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15393 if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15395 eval "ac_cv_func__vsnprintf=yes"
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15400 eval "ac_cv_func__vsnprintf=no"
15405 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15406 echo "$ac_t""yes" 1>&6
15407 ac_cv_func_vsnprintf=yes
15408 cat >> confdefs.h <<\EOF
15409 #define vsnprintf _vsnprintf
15414 echo "$ac_t""no" 1>&6
15418 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15419 echo "configure:15420: checking for vprintf" >&5
15420 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15421 echo $ac_n "(cached) $ac_c" 1>&6
15423 cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15426 /* System header to define __stub macros and hopefully few prototypes,
15427 which can conflict with char vprintf(); below. */
15428 #include <assert.h>
15429 /* Override any gcc2 internal prototype to avoid an error. */
15430 /* We use char because int might match the return type of a gcc2
15431 builtin and then its argument prototype would still apply. */
15437 /* The GNU C library defines this for functions which it implements
15438 to always fail with ENOSYS. Some functions are actually named
15439 something starting with __ and the normal name is an alias. */
15440 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15448 if { (eval echo configure:15449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15450 eval "ac_cv_func_vprintf=yes"
15452 echo "configure: failed program was:" >&5
15453 cat conftest.$ac_ext >&5
15455 eval "ac_cv_func_vprintf=no"
15460 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15461 echo "$ac_t""yes" 1>&6
15462 cat >> confdefs.h <<\EOF
15463 #define HAVE_VPRINTF 1
15467 echo "$ac_t""no" 1>&6
15470 if test "$ac_cv_func_vprintf" != yes; then
15471 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15472 echo "configure:15473: checking for _doprnt" >&5
15473 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15474 echo $ac_n "(cached) $ac_c" 1>&6
15476 cat > conftest.$ac_ext <<EOF
15477 #line 15478 "configure"
15478 #include "confdefs.h"
15479 /* System header to define __stub macros and hopefully few prototypes,
15480 which can conflict with char _doprnt(); below. */
15481 #include <assert.h>
15482 /* Override any gcc2 internal prototype to avoid an error. */
15483 /* We use char because int might match the return type of a gcc2
15484 builtin and then its argument prototype would still apply. */
15490 /* The GNU C library defines this for functions which it implements
15491 to always fail with ENOSYS. Some functions are actually named
15492 something starting with __ and the normal name is an alias. */
15493 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15501 if { (eval echo configure:15502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15503 eval "ac_cv_func__doprnt=yes"
15505 echo "configure: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15508 eval "ac_cv_func__doprnt=no"
15513 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15514 echo "$ac_t""yes" 1>&6
15515 cat >> confdefs.h <<\EOF
15516 #define HAVE_DOPRNT 1
15520 echo "$ac_t""no" 1>&6
15526 if test $ac_cv_func_vprintf = yes ; then
15527 for ac_func in vsnprintf vsprintf
15529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15530 echo "configure:15531: checking for $ac_func" >&5
15531 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15532 echo $ac_n "(cached) $ac_c" 1>&6
15534 cat > conftest.$ac_ext <<EOF
15535 #line 15536 "configure"
15536 #include "confdefs.h"
15537 /* System header to define __stub macros and hopefully few prototypes,
15538 which can conflict with char $ac_func(); below. */
15539 #include <assert.h>
15540 /* Override any gcc2 internal prototype to avoid an error. */
15541 /* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 eval "ac_cv_func_$ac_func=yes"
15563 echo "configure: failed program was:" >&5
15564 cat conftest.$ac_ext >&5
15566 eval "ac_cv_func_$ac_func=no"
15571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15572 echo "$ac_t""yes" 1>&6
15573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15574 cat >> confdefs.h <<EOF
15575 #define $ac_tr_func 1
15579 echo "$ac_t""no" 1>&6
15637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15638 echo "configure:15639: checking for $ac_func" >&5
15639 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15640 echo $ac_n "(cached) $ac_c" 1>&6
15642 cat > conftest.$ac_ext <<EOF
15643 #line 15644 "configure"
15644 #include "confdefs.h"
15645 /* System header to define __stub macros and hopefully few prototypes,
15646 which can conflict with char $ac_func(); below. */
15647 #include <assert.h>
15648 /* Override any gcc2 internal prototype to avoid an error. */
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15656 /* The GNU C library defines this for functions which it implements
15657 to always fail with ENOSYS. Some functions are actually named
15658 something starting with __ and the normal name is an alias. */
15659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15667 if { (eval echo configure:15668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15669 eval "ac_cv_func_$ac_func=yes"
15671 echo "configure: failed program was:" >&5
15672 cat conftest.$ac_ext >&5
15674 eval "ac_cv_func_$ac_func=no"
15679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15680 echo "$ac_t""yes" 1>&6
15681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15682 cat >> confdefs.h <<EOF
15683 #define $ac_tr_func 1
15687 echo "$ac_t""no" 1>&6
15692 for ac_func in getopt tempnam
15694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15695 echo "configure:15696: checking for $ac_func" >&5
15696 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func(); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15713 /* The GNU C library defines this for functions which it implements
15714 to always fail with ENOSYS. Some functions are actually named
15715 something starting with __ and the normal name is an alias. */
15716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15726 eval "ac_cv_func_$ac_func=yes"
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15731 eval "ac_cv_func_$ac_func=no"
15736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15737 echo "$ac_t""yes" 1>&6
15738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15739 cat >> confdefs.h <<EOF
15740 #define $ac_tr_func 1
15744 echo "$ac_t""no" 1>&6
15745 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15751 if test "$ac_cv_func_getopt" != yes; then
15752 LIBSRCS="$LIBSRCS getopt.c"
15755 if test "$ac_cv_func_tempnam" != yes; then
15756 LIBSRCS="$LIBSRCS tempnam.c"
15759 # Check Configuration
15760 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15761 echo "configure:15762: checking declaration of sys_errlist" >&5
15762 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15763 echo $ac_n "(cached) $ac_c" 1>&6
15766 cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15771 #include <sys/types.h>
15774 #include <stdlib.h>
15777 char *c = (char *) *sys_errlist
15780 if { (eval echo configure:15781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15782 ol_cv_dcl_sys_errlist=yes
15783 ol_cv_have_sys_errlist=yes
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15788 ol_cv_dcl_sys_errlist=no
15793 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15795 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15796 if test $ol_cv_dcl_sys_errlist = no ; then
15797 cat >> confdefs.h <<\EOF
15798 #define DECL_SYS_ERRLIST 1
15802 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15803 echo "configure:15804: checking existence of sys_errlist" >&5
15804 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15805 echo $ac_n "(cached) $ac_c" 1>&6
15808 cat > conftest.$ac_ext <<EOF
15809 #line 15810 "configure"
15810 #include "confdefs.h"
15813 char *c = (char *) *sys_errlist
15816 if { (eval echo configure:15817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15818 ol_cv_have_sys_errlist=yes
15820 echo "configure: failed program was:" >&5
15821 cat conftest.$ac_ext >&5
15823 ol_cv_have_sys_errlist=no
15828 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15830 if test $ol_cv_have_sys_errlist = yes ; then
15831 cat >> confdefs.h <<\EOF
15832 #define HAVE_SYS_ERRLIST 1
15839 if test "$ol_enable_debug" != no ; then
15840 cat >> confdefs.h <<\EOF
15841 #define LDAP_DEBUG 1
15845 if test "$ol_enable_syslog" = yes ; then
15846 cat >> confdefs.h <<\EOF
15847 #define LDAP_SYSLOG 1
15851 if test "$ol_enable_cache" = no ; then
15852 cat >> confdefs.h <<\EOF
15853 #define LDAP_NOCACHE 1
15857 if test "$ol_link_kbind" != no ; then
15858 cat >> confdefs.h <<\EOF
15859 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15863 if test "$ol_enable_proctitle" != no ; then
15864 cat >> confdefs.h <<\EOF
15865 #define LDAP_PROCTITLE 1
15869 if test "$ol_enable_referrals" != no ; then
15870 cat >> confdefs.h <<\EOF
15871 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15875 if test "$ol_enable_local" != no; then
15876 cat >> confdefs.h <<\EOF
15877 #define LDAP_PF_LOCAL 1
15881 if test "$ol_enable_ipv6" != no; then
15882 cat >> confdefs.h <<\EOF
15883 #define LDAP_PF_INET6 1
15887 if test "$ol_enable_cleartext" != no ; then
15888 cat >> confdefs.h <<\EOF
15889 #define SLAPD_CLEARTEXT 1
15893 if test "$ol_enable_crypt" != no ; then
15894 cat >> confdefs.h <<\EOF
15895 #define SLAPD_CRYPT 1
15899 if test "$ol_link_kpasswd" != no ; then
15900 cat >> confdefs.h <<\EOF
15901 #define SLAPD_KPASSWD 1
15905 if test "$ol_link_spasswd" != no ; then
15906 cat >> confdefs.h <<\EOF
15907 #define SLAPD_SPASSWD 1
15911 if test "$ol_enable_multimaster" != no ; then
15912 cat >> confdefs.h <<\EOF
15913 #define SLAPD_MULTIMASTER 1
15917 if test "$ol_enable_phonetic" != no ; then
15918 cat >> confdefs.h <<\EOF
15919 #define SLAPD_PHONETIC 1
15923 if test "$ol_enable_rlookups" != no ; then
15924 cat >> confdefs.h <<\EOF
15925 #define SLAPD_RLOOKUPS 1
15929 if test "$ol_enable_aci" != no ; then
15930 cat >> confdefs.h <<\EOF
15931 #define SLAPD_ACI_ENABLED 1
15936 if test "$ol_link_modules" != no ; then
15937 cat >> confdefs.h <<\EOF
15938 #define SLAPD_MODULES 1
15942 SLAPD_MODULES_LDFLAGS="-dlopen self"
15945 if test "$ol_link_dnssrv" != no ; then
15946 cat >> confdefs.h <<\EOF
15947 #define SLAPD_DNSSRV 1
15952 if test "$ol_with_dnssrv_module" != static ; then
15953 cat >> confdefs.h <<\EOF
15954 #define SLAPD_DNSSRV_DYNAMIC 1
15958 BUILD_DNSSRV_DYNAMIC=shared
15959 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15963 if test "$ol_enable_ldap" != no ; then
15964 cat >> confdefs.h <<\EOF
15965 #define SLAPD_LDAP 1
15970 if test "$ol_with_ldap_module" != static ; then
15971 cat >> confdefs.h <<\EOF
15972 #define SLAPD_LDAP_DYNAMIC 1
15976 BUILD_LDAP_DYNAMIC=shared
15977 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15981 if test "$ol_link_ldbm" != no ; then
15982 cat >> confdefs.h <<\EOF
15983 #define SLAPD_LDBM 1
15988 if test "$ol_with_ldbm_module" != static ; then
15989 cat >> confdefs.h <<\EOF
15990 #define SLAPD_LDBM_DYNAMIC 1
15994 BUILD_LDBM_DYNAMIC=shared
15995 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15999 if test "$ol_enable_passwd" != no ; then
16000 cat >> confdefs.h <<\EOF
16001 #define SLAPD_PASSWD 1
16006 if test "$ol_with_passwd_module" != static ; then
16007 cat >> confdefs.h <<\EOF
16008 #define SLAPD_PASSWD_DYNAMIC 1
16012 BUILD_PASSWD_DYNAMIC=shared
16013 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16017 if test "$ol_link_perl" != no ; then
16018 cat >> confdefs.h <<\EOF
16019 #define SLAPD_PERL 1
16024 if test "$ol_with_perl_module" != static ; then
16025 cat >> confdefs.h <<\EOF
16026 #define SLAPD_PERL_DYNAMIC 1
16030 BUILD_PERL_DYNAMIC=shared
16031 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16035 if test "$ol_enable_shell" != no ; then
16036 cat >> confdefs.h <<\EOF
16037 #define SLAPD_SHELL 1
16042 if test "$ol_with_shell_module" != static ; then
16043 cat >> confdefs.h <<\EOF
16044 #define SLAPD_SHELL_DYNAMIC 1
16048 BUILD_SHELL_DYNAMIC=shared
16049 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16053 if test "$ol_enable_tcl" != no ; then
16054 cat >> confdefs.h <<\EOF
16055 #define SLAPD_TCL 1
16060 if test "$ol_with_tcl_module" != static; then
16061 cat >> confdefs.h <<\EOF
16062 #define SLAPD_TCL_DYNAMIC 1
16066 BUILD_TCL_DYNAMIC=shared
16067 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16071 if test "$ol_link_sql" != no ; then
16072 cat >> confdefs.h <<\EOF
16073 #define SLAPD_SQL 1
16078 if test "$ol_with_sql_module" != static; then
16079 cat >> confdefs.h <<\EOF
16080 #define SLAPD_SQL_DYNAMIC 1
16084 BUILD_SQL_DYNAMIC=shared
16085 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16089 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16090 $BUILD_SLAPD = yes ; then
16095 if test "$LINK_BINS_DYNAMIC" = yes; then
16097 LT_LIB_LINKAGE=shared
16100 LT_LIB_LINKAGE=static
16103 if test "$ac_cv_mingw32" = yes ; then
16172 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16175 # Let make expand exec_prefix.
16176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16178 # Any assignment to VPATH causes Sun make to only execute
16179 # the first set of double-colon rules, so remove it if not needed.
16180 # If there is a colon in the path, we need to keep it.
16181 if test "x$srcdir" = x.; then
16182 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16185 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16187 DEFS=-DHAVE_CONFIG_H
16189 # Without the "./", some shells look in PATH for config.status.
16190 : ${CONFIG_STATUS=./config.status}
16192 echo creating $CONFIG_STATUS
16193 rm -f $CONFIG_STATUS
16194 cat > $CONFIG_STATUS <<EOF
16196 # Generated automatically by configure.
16197 # Run this file to recreate the current configuration.
16198 # This directory was configured as follows,
16199 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16201 # $0 $ac_configure_args
16203 # Compiler output produced by configure, useful for debugging
16204 # configure, is in ./config.log if it exists.
16206 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16209 case "\$ac_option" in
16210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16211 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16212 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16213 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16214 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16216 -help | --help | --hel | --he | --h)
16217 echo "\$ac_cs_usage"; exit 0 ;;
16218 *) echo "\$ac_cs_usage"; exit 1 ;;
16222 ac_given_srcdir=$srcdir
16223 ac_given_INSTALL="$INSTALL"
16225 trap 'rm -fr `echo "\
16226 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16227 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16228 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16229 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16230 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16231 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16232 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16233 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16234 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16235 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16236 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16237 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16238 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16239 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16240 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16241 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16242 include/Makefile:build/top.mk:include/Makefile.in \
16243 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16244 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16245 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16246 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16247 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16248 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16249 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16250 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16251 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16252 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16253 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16254 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16255 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16256 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16257 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16258 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16259 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16260 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16261 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16262 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16263 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16264 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16265 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16266 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16267 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16268 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16269 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16270 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16272 cat >> $CONFIG_STATUS <<EOF
16274 # Protect against being on the right side of a sed subst in config.status.
16275 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16276 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16280 s%@CFLAGS@%$CFLAGS%g
16281 s%@CPPFLAGS@%$CPPFLAGS%g
16282 s%@CXXFLAGS@%$CXXFLAGS%g
16283 s%@FFLAGS@%$FFLAGS%g
16285 s%@LDFLAGS@%$LDFLAGS%g
16287 s%@exec_prefix@%$exec_prefix%g
16288 s%@prefix@%$prefix%g
16289 s%@program_transform_name@%$program_transform_name%g
16290 s%@bindir@%$bindir%g
16291 s%@sbindir@%$sbindir%g
16292 s%@libexecdir@%$libexecdir%g
16293 s%@datadir@%$datadir%g
16294 s%@sysconfdir@%$sysconfdir%g
16295 s%@sharedstatedir@%$sharedstatedir%g
16296 s%@localstatedir@%$localstatedir%g
16297 s%@libdir@%$libdir%g
16298 s%@includedir@%$includedir%g
16299 s%@oldincludedir@%$oldincludedir%g
16300 s%@infodir@%$infodir%g
16301 s%@mandir@%$mandir%g
16303 s%@host_alias@%$host_alias%g
16304 s%@host_cpu@%$host_cpu%g
16305 s%@host_vendor@%$host_vendor%g
16306 s%@host_os@%$host_os%g
16307 s%@target@%$target%g
16308 s%@target_alias@%$target_alias%g
16309 s%@target_cpu@%$target_cpu%g
16310 s%@target_vendor@%$target_vendor%g
16311 s%@target_os@%$target_os%g
16313 s%@build_alias@%$build_alias%g
16314 s%@build_cpu@%$build_cpu%g
16315 s%@build_vendor@%$build_vendor%g
16316 s%@build_os@%$build_os%g
16317 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16318 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16319 s%@INSTALL_DATA@%$INSTALL_DATA%g
16320 s%@PACKAGE@%$PACKAGE%g
16321 s%@VERSION@%$VERSION%g
16322 s%@ACLOCAL@%$ACLOCAL%g
16323 s%@AUTOCONF@%$AUTOCONF%g
16324 s%@AUTOMAKE@%$AUTOMAKE%g
16325 s%@AUTOHEADER@%$AUTOHEADER%g
16326 s%@MAKEINFO@%$MAKEINFO%g
16327 s%@install_sh@%$install_sh%g
16330 s%@AMTARFLAGS@%$AMTARFLAGS%g
16331 s%@SET_MAKE@%$SET_MAKE%g
16332 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16333 s%@top_builddir@%$top_builddir%g
16334 s%@ldap_subdir@%$ldap_subdir%g
16336 s%@RANLIB@%$RANLIB%g
16338 s%@DLLTOOL@%$DLLTOOL%g
16340 s%@OBJDUMP@%$OBJDUMP%g
16341 s%@LIBTOOL@%$LIBTOOL%g
16343 s%@SENDMAIL@%$SENDMAIL%g
16344 s%@EDITOR@%$EDITOR%g
16345 s%@FINGER@%$FINGER%g
16346 s%@PERLBIN@%$PERLBIN%g
16348 s%@EXEEXT@%$EXEEXT%g
16349 s%@OBJEXT@%$OBJEXT%g
16350 s%@OL_MKDEP@%$OL_MKDEP%g
16351 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16352 s%@LIBOBJS@%$LIBOBJS%g
16353 s%@LIBSRCS@%$LIBSRCS%g
16355 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16356 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16357 s%@DYN_EXT@%$DYN_EXT%g
16358 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16359 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16360 s%@BUILD_LDAP@%$BUILD_LDAP%g
16361 s%@BUILD_LDBM@%$BUILD_LDBM%g
16362 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16363 s%@BUILD_PERL@%$BUILD_PERL%g
16364 s%@BUILD_SHELL@%$BUILD_SHELL%g
16365 s%@BUILD_SQL@%$BUILD_SQL%g
16366 s%@BUILD_TCL@%$BUILD_TCL%g
16367 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16368 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16369 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16370 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16371 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16372 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16373 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16374 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16375 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16376 s%@LDAP_LIBS@%$LDAP_LIBS%g
16377 s%@LDIF_LIBS@%$LDIF_LIBS%g
16378 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16379 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16380 s%@LDBM_LIBS@%$LDBM_LIBS%g
16381 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16382 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16383 s%@WRAP_LIBS@%$WRAP_LIBS%g
16384 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16385 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16386 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16387 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16388 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16389 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16390 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16391 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16392 s%@KRB4_LIBS@%$KRB4_LIBS%g
16393 s%@KRB5_LIBS@%$KRB5_LIBS%g
16394 s%@READLINE_LIBS@%$READLINE_LIBS%g
16395 s%@SASL_LIBS@%$SASL_LIBS%g
16396 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16397 s%@TLS_LIBS@%$TLS_LIBS%g
16398 s%@MODULES_LIBS@%$MODULES_LIBS%g
16399 s%@AUTH_LIBS@%$AUTH_LIBS%g
16400 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16401 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16402 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16407 cat >> $CONFIG_STATUS <<\EOF
16409 # Split the substitutions into bite-sized pieces for seds with
16410 # small command number limits, like on Digital OSF/1 and HP-UX.
16411 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16412 ac_file=1 # Number of current file.
16413 ac_beg=1 # First line for current file.
16414 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16417 while $ac_more_lines; do
16418 if test $ac_beg -gt 1; then
16419 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16421 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16423 if test ! -s conftest.s$ac_file; then
16424 ac_more_lines=false
16425 rm -f conftest.s$ac_file
16427 if test -z "$ac_sed_cmds"; then
16428 ac_sed_cmds="sed -f conftest.s$ac_file"
16430 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16432 ac_file=`expr $ac_file + 1`
16434 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16437 if test -z "$ac_sed_cmds"; then
16442 cat >> $CONFIG_STATUS <<EOF
16444 CONFIG_FILES=\${CONFIG_FILES-"\
16445 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16446 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16447 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16448 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16449 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16450 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16451 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16452 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16453 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16454 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16455 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16456 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16457 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16458 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16459 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16460 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16461 include/Makefile:build/top.mk:include/Makefile.in \
16462 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16463 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16464 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16465 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16466 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16467 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16468 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16469 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16470 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16471 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16472 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16473 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16474 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16475 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16476 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16477 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16478 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16479 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16480 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16481 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16482 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16483 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16484 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16485 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16486 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16487 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16488 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16491 cat >> $CONFIG_STATUS <<\EOF
16492 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16495 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16496 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16497 *) ac_file_in="${ac_file}.in" ;;
16500 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16502 # Remove last slash and all that follows it. Not all systems have dirname.
16503 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16504 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16505 # The file is in a subdirectory.
16506 test ! -d "$ac_dir" && mkdir "$ac_dir"
16507 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16508 # A "../" for each directory in $ac_dir_suffix.
16509 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16511 ac_dir_suffix= ac_dots=
16514 case "$ac_given_srcdir" in
16516 if test -z "$ac_dots"; then top_srcdir=.
16517 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16518 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16519 *) # Relative path.
16520 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16521 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16524 case "$ac_given_INSTALL" in
16525 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16526 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16529 echo creating "$ac_file"
16531 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16533 *[Mm]akefile*) ac_comsub="1i\\
16534 # $configure_input" ;;
16538 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16540 s%@configure_input@%$configure_input%g
16541 s%@srcdir@%$srcdir%g
16542 s%@top_srcdir@%$top_srcdir%g
16543 s%@INSTALL@%$INSTALL%g
16544 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16548 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16549 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16551 # ac_d sets the value in "#define NAME VALUE" lines.
16552 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16553 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16556 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16557 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16558 ac_uB='\([ ]\)%\1#\2define\3'
16561 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16562 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16563 ac_eB='$%\1#\2define\3'
16567 if test "${CONFIG_HEADERS+set}" != set; then
16569 cat >> $CONFIG_STATUS <<EOF
16570 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16572 cat >> $CONFIG_STATUS <<\EOF
16574 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16575 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16577 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16578 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16579 *) ac_file_in="${ac_file}.in" ;;
16582 echo creating $ac_file
16584 rm -f conftest.frag conftest.in conftest.out
16585 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16586 cat $ac_file_inputs > conftest.in
16590 # Transform confdefs.h into a sed script conftest.vals that substitutes
16591 # the proper values into config.h.in to produce config.h. And first:
16592 # Protect against being on the right side of a sed subst in config.status.
16593 # Protect against being in an unquoted here document in config.status.
16594 rm -f conftest.vals
16595 cat > conftest.hdr <<\EOF
16598 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16602 sed -n -f conftest.hdr confdefs.h > conftest.vals
16605 # This sed command replaces #undef with comments. This is necessary, for
16606 # example, in the case of _POSIX_SOURCE, which is predefined and required
16607 # on some systems where configure will not decide to define it.
16608 cat >> conftest.vals <<\EOF
16609 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16612 # Break up conftest.vals because some shells have a limit on
16613 # the size of here documents, and old seds have small limits too.
16615 rm -f conftest.tail
16618 ac_lines=`grep -c . conftest.vals`
16619 # grep -c gives empty output for an empty file on some AIX systems.
16620 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16621 # Write a limited-size here document to conftest.frag.
16622 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16623 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16625 sed -f conftest.frag conftest.in > conftest.out
16627 mv conftest.out conftest.in
16628 ' >> $CONFIG_STATUS
16629 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16630 rm -f conftest.vals
16631 mv conftest.tail conftest.vals
16633 rm -f conftest.vals
16635 cat >> $CONFIG_STATUS <<\EOF
16636 rm -f conftest.frag conftest.h
16637 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16638 cat conftest.in >> conftest.h
16640 if cmp -s $ac_file conftest.h 2>/dev/null; then
16641 echo "$ac_file is unchanged"
16644 # Remove last slash and all that follows it. Not all systems have dirname.
16645 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16647 # The file is in a subdirectory.
16648 test ! -d "$ac_dir" && mkdir "$ac_dir"
16651 mv conftest.h $ac_file
16656 cat >> $CONFIG_STATUS <<EOF
16659 cat >> $CONFIG_STATUS <<\EOF
16662 echo Please \"make depend\" to build dependencies
16666 chmod +x $CONFIG_STATUS
16667 rm -fr confdefs* $ac_clean_files
16668 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1