3 # from OpenLDAP: pkg/ldap/configure.in,v 1.319 2000/07/24 23:11:11 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 (auto)"
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
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 OL_VERSION=`cat $ac_aux_dir/version`
675 if test -z "$OL_VERSION"; then
676 { echo "configure: error: could not determine version" 1>&2; exit 1; }
679 echo "Configuring OpenLDAP $OL_VERSION ..."
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"
1151 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1152 echo "configure:1153: checking configure arguments" >&5
1157 ldap_subdir="/openldap"
1159 # Check whether --with-subdir or --without-subdir was given.
1160 if test "${with_subdir+set}" = set; then
1161 withval="$with_subdir"
1168 ldap_subdir="$withval"
1171 ldap_subdir="/$withval"
1178 # OpenLDAP --enable-debug
1179 # Check whether --enable-debug or --disable-debug was given.
1180 if test "${enable_debug+set}" = set; then
1181 enableval="$enable_debug"
1184 for ol_val in auto yes no ; do
1185 if test "$enableval" = "$ol_val" ; then
1189 if test "$ol_arg" = "invalid" ; then
1190 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1192 ol_enable_debug="$ol_arg"
1195 ol_enable_debug="yes"
1197 # end --enable-debug
1198 # OpenLDAP --enable-syslog
1199 # Check whether --enable-syslog or --disable-syslog was given.
1200 if test "${enable_syslog+set}" = set; then
1201 enableval="$enable_syslog"
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-syslog" 1>&2; exit 1; }
1212 ol_enable_syslog="$ol_arg"
1215 ol_enable_syslog="auto"
1217 # end --enable-syslog
1218 # OpenLDAP --enable-proctitle
1219 # Check whether --enable-proctitle or --disable-proctitle was given.
1220 if test "${enable_proctitle+set}" = set; then
1221 enableval="$enable_proctitle"
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-proctitle" 1>&2; exit 1; }
1232 ol_enable_proctitle="$ol_arg"
1235 ol_enable_proctitle="yes"
1237 # end --enable-proctitle
1238 # OpenLDAP --enable-cache
1239 # Check whether --enable-cache or --disable-cache was given.
1240 if test "${enable_cache+set}" = set; then
1241 enableval="$enable_cache"
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-cache" 1>&2; exit 1; }
1252 ol_enable_cache="$ol_arg"
1255 ol_enable_cache="yes"
1257 # end --enable-cache
1258 # OpenLDAP --enable-referrals
1259 # Check whether --enable-referrals or --disable-referrals was given.
1260 if test "${enable_referrals+set}" = set; then
1261 enableval="$enable_referrals"
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-referrals" 1>&2; exit 1; }
1272 ol_enable_referrals="$ol_arg"
1275 ol_enable_referrals="yes"
1277 # end --enable-referrals
1278 # OpenLDAP --enable-kbind
1279 # Check whether --enable-kbind or --disable-kbind was given.
1280 if test "${enable_kbind+set}" = set; then
1281 enableval="$enable_kbind"
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-kbind" 1>&2; exit 1; }
1292 ol_enable_kbind="$ol_arg"
1295 ol_enable_kbind="auto"
1297 # end --enable-kbind
1298 # OpenLDAP --enable-ipv6
1299 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1300 if test "${enable_ipv6+set}" = set; then
1301 enableval="$enable_ipv6"
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-ipv6" 1>&2; exit 1; }
1312 ol_enable_ipv6="$ol_arg"
1315 ol_enable_ipv6="auto"
1318 # OpenLDAP --enable-local
1319 # Check whether --enable-local or --disable-local was given.
1320 if test "${enable_local+set}" = set; then
1321 enableval="$enable_local"
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-local" 1>&2; exit 1; }
1332 ol_enable_local="$ol_arg"
1335 ol_enable_local="auto"
1337 # end --enable-local
1338 # OpenLDAP --enable-x_compile
1339 # Check whether --enable-x_compile or --disable-x_compile was given.
1340 if test "${enable_x_compile+set}" = set; then
1341 enableval="$enable_x_compile"
1344 for ol_val in 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-x_compile" 1>&2; exit 1; }
1352 ol_enable_x_compile="$ol_arg"
1355 ol_enable_x_compile="no"
1357 # end --enable-x_compile
1360 # OpenLDAP --with-cyrus_sasl
1361 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1362 if test "${with_cyrus_sasl+set}" = set; then
1363 withval="$with_cyrus_sasl"
1366 for ol_val in auto yes no ; do
1367 if test "$withval" = "$ol_val" ; then
1371 if test "$ol_arg" = "invalid" ; then
1372 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1374 ol_with_cyrus_sasl="$ol_arg"
1377 ol_with_cyrus_sasl="auto"
1379 # end --with-cyrus_sasl
1381 # OpenLDAP --with-fetch
1382 # Check whether --with-fetch or --without-fetch was given.
1383 if test "${with_fetch+set}" = set; then
1384 withval="$with_fetch"
1387 for ol_val in auto yes no ; do
1388 if test "$withval" = "$ol_val" ; then
1392 if test "$ol_arg" = "invalid" ; then
1393 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1395 ol_with_fetch="$ol_arg"
1398 ol_with_fetch="auto"
1402 # OpenLDAP --with-kerberos
1403 # Check whether --with-kerberos or --without-kerberos was given.
1404 if test "${with_kerberos+set}" = set; then
1405 withval="$with_kerberos"
1408 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1409 if test "$withval" = "$ol_val" ; then
1413 if test "$ol_arg" = "invalid" ; then
1414 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1416 ol_with_kerberos="$ol_arg"
1419 ol_with_kerberos="auto"
1421 # end --with-kerberos
1423 # OpenLDAP --with-readline
1424 # Check whether --with-readline or --without-readline was given.
1425 if test "${with_readline+set}" = set; then
1426 withval="$with_readline"
1429 for ol_val in auto yes no ; do
1430 if test "$withval" = "$ol_val" ; then
1434 if test "$ol_arg" = "invalid" ; then
1435 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1437 ol_with_readline="$ol_arg"
1440 ol_with_readline="auto"
1442 # end --with-readline
1444 # OpenLDAP --with-threads
1445 # Check whether --with-threads or --without-threads was given.
1446 if test "${with_threads+set}" = set; then
1447 withval="$with_threads"
1450 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1451 if test "$withval" = "$ol_val" ; then
1455 if test "$ol_arg" = "invalid" ; then
1456 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1458 ol_with_threads="$ol_arg"
1461 ol_with_threads="auto"
1463 # end --with-threads
1465 # OpenLDAP --with-tls
1466 # Check whether --with-tls or --without-tls was given.
1467 if test "${with_tls+set}" = set; then
1471 for ol_val in auto ssleay openssl yes no ; do
1472 if test "$withval" = "$ol_val" ; then
1476 if test "$ol_arg" = "invalid" ; then
1477 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1479 ol_with_tls="$ol_arg"
1486 # OpenLDAP --with-yielding_select
1487 # Check whether --with-yielding_select or --without-yielding_select was given.
1488 if test "${with_yielding_select+set}" = set; then
1489 withval="$with_yielding_select"
1492 for ol_val in auto yes no manual ; do
1493 if test "$withval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1500 ol_with_yielding_select="$ol_arg"
1503 ol_with_yielding_select="auto"
1505 # end --with-yielding_select
1509 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1510 if test "${with_xxslapdoptions+set}" = set; then
1511 withval="$with_xxslapdoptions"
1515 # OpenLDAP --enable-slapd
1516 # Check whether --enable-slapd or --disable-slapd was given.
1517 if test "${enable_slapd+set}" = set; then
1518 enableval="$enable_slapd"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1529 ol_enable_slapd="$ol_arg"
1532 ol_enable_slapd="yes"
1534 # end --enable-slapd
1535 # OpenLDAP --enable-cleartext
1536 # Check whether --enable-cleartext or --disable-cleartext was given.
1537 if test "${enable_cleartext+set}" = set; then
1538 enableval="$enable_cleartext"
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-cleartext" 1>&2; exit 1; }
1549 ol_enable_cleartext="$ol_arg"
1552 ol_enable_cleartext="yes"
1554 # end --enable-cleartext
1555 # OpenLDAP --enable-crypt
1556 # Check whether --enable-crypt or --disable-crypt was given.
1557 if test "${enable_crypt+set}" = set; then
1558 enableval="$enable_crypt"
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-crypt" 1>&2; exit 1; }
1569 ol_enable_crypt="$ol_arg"
1572 ol_enable_crypt="auto"
1574 # end --enable-crypt
1575 # OpenLDAP --enable-kpasswd
1576 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1577 if test "${enable_kpasswd+set}" = set; then
1578 enableval="$enable_kpasswd"
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-kpasswd" 1>&2; exit 1; }
1589 ol_enable_kpasswd="$ol_arg"
1592 ol_enable_kpasswd="no"
1594 # end --enable-kpasswd
1595 # OpenLDAP --enable-spasswd
1596 # Check whether --enable-spasswd or --disable-spasswd was given.
1597 if test "${enable_spasswd+set}" = set; then
1598 enableval="$enable_spasswd"
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-spasswd" 1>&2; exit 1; }
1609 ol_enable_spasswd="$ol_arg"
1612 ol_enable_spasswd="no"
1614 # end --enable-spasswd
1615 # OpenLDAP --enable-modules
1616 # Check whether --enable-modules or --disable-modules was given.
1617 if test "${enable_modules+set}" = set; then
1618 enableval="$enable_modules"
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-modules" 1>&2; exit 1; }
1629 ol_enable_modules="$ol_arg"
1632 ol_enable_modules="no"
1634 # end --enable-modules
1635 # OpenLDAP --enable-multimaster
1636 # Check whether --enable-multimaster or --disable-multimaster was given.
1637 if test "${enable_multimaster+set}" = set; then
1638 enableval="$enable_multimaster"
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-multimaster" 1>&2; exit 1; }
1649 ol_enable_multimaster="$ol_arg"
1652 ol_enable_multimaster="no"
1654 # end --enable-multimaster
1655 # OpenLDAP --enable-phonetic
1656 # Check whether --enable-phonetic or --disable-phonetic was given.
1657 if test "${enable_phonetic+set}" = set; then
1658 enableval="$enable_phonetic"
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-phonetic" 1>&2; exit 1; }
1669 ol_enable_phonetic="$ol_arg"
1672 ol_enable_phonetic="no"
1674 # end --enable-phonetic
1675 # OpenLDAP --enable-rlookups
1676 # Check whether --enable-rlookups or --disable-rlookups was given.
1677 if test "${enable_rlookups+set}" = set; then
1678 enableval="$enable_rlookups"
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-rlookups" 1>&2; exit 1; }
1689 ol_enable_rlookups="$ol_arg"
1692 ol_enable_rlookups="auto"
1694 # end --enable-rlookups
1695 # OpenLDAP --enable-aci
1696 # Check whether --enable-aci or --disable-aci was given.
1697 if test "${enable_aci+set}" = set; then
1698 enableval="$enable_aci"
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-aci" 1>&2; exit 1; }
1709 ol_enable_aci="$ol_arg"
1715 # OpenLDAP --enable-wrappers
1716 # Check whether --enable-wrappers or --disable-wrappers was given.
1717 if test "${enable_wrappers+set}" = set; then
1718 enableval="$enable_wrappers"
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-wrappers" 1>&2; exit 1; }
1729 ol_enable_wrappers="$ol_arg"
1732 ol_enable_wrappers="no"
1734 # end --enable-wrappers
1735 # OpenLDAP --enable-dynamic
1736 # Check whether --enable-dynamic or --disable-dynamic was given.
1737 if test "${enable_dynamic+set}" = set; then
1738 enableval="$enable_dynamic"
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-dynamic" 1>&2; exit 1; }
1749 ol_enable_dynamic="$ol_arg"
1752 ol_enable_dynamic="no"
1754 # end --enable-dynamic
1756 # OpenLDAP --enable-dnssrv
1757 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1758 if test "${enable_dnssrv+set}" = set; then
1759 enableval="$enable_dnssrv"
1762 for ol_val in auto yes no ; do
1763 if test "$enableval" = "$ol_val" ; then
1767 if test "$ol_arg" = "invalid" ; then
1768 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1770 ol_enable_dnssrv="$ol_arg"
1773 ol_enable_dnssrv="no"
1775 # end --enable-dnssrv
1776 # OpenLDAP --with-dnssrv_module
1777 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1778 if test "${with_dnssrv_module+set}" = set; then
1779 withval="$with_dnssrv_module"
1782 for ol_val in static dynamic ; do
1783 if test "$withval" = "$ol_val" ; then
1787 if test "$ol_arg" = "invalid" ; then
1788 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1790 ol_with_dnssrv_module="$ol_arg"
1793 ol_with_dnssrv_module="static"
1795 # end --with-dnssrv_module
1797 # OpenLDAP --enable-ldap
1798 # Check whether --enable-ldap or --disable-ldap was given.
1799 if test "${enable_ldap+set}" = set; then
1800 enableval="$enable_ldap"
1803 for ol_val in auto yes no ; do
1804 if test "$enableval" = "$ol_val" ; then
1808 if test "$ol_arg" = "invalid" ; then
1809 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1811 ol_enable_ldap="$ol_arg"
1817 # OpenLDAP --with-ldap_module
1818 # Check whether --with-ldap_module or --without-ldap_module was given.
1819 if test "${with_ldap_module+set}" = set; then
1820 withval="$with_ldap_module"
1823 for ol_val in static dynamic ; do
1824 if test "$withval" = "$ol_val" ; then
1828 if test "$ol_arg" = "invalid" ; then
1829 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1831 ol_with_ldap_module="$ol_arg"
1834 ol_with_ldap_module="static"
1836 # end --with-ldap_module
1838 # OpenLDAP --enable-ldbm
1839 # Check whether --enable-ldbm or --disable-ldbm was given.
1840 if test "${enable_ldbm+set}" = set; then
1841 enableval="$enable_ldbm"
1844 for ol_val in auto yes no ; do
1845 if test "$enableval" = "$ol_val" ; then
1849 if test "$ol_arg" = "invalid" ; then
1850 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1852 ol_enable_ldbm="$ol_arg"
1855 ol_enable_ldbm="yes"
1858 # OpenLDAP --with-ldbm_api
1859 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1860 if test "${with_ldbm_api+set}" = set; then
1861 withval="$with_ldbm_api"
1864 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1865 if test "$withval" = "$ol_val" ; then
1869 if test "$ol_arg" = "invalid" ; then
1870 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1872 ol_with_ldbm_api="$ol_arg"
1875 ol_with_ldbm_api="auto"
1877 # end --with-ldbm_api
1879 # OpenLDAP --with-ldbm_module
1880 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1881 if test "${with_ldbm_module+set}" = set; then
1882 withval="$with_ldbm_module"
1885 for ol_val in static dynamic ; do
1886 if test "$withval" = "$ol_val" ; then
1890 if test "$ol_arg" = "invalid" ; then
1891 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1893 ol_with_ldbm_module="$ol_arg"
1896 ol_with_ldbm_module="static"
1898 # end --with-ldbm_module
1900 # OpenLDAP --with-ldbm_type
1901 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1902 if test "${with_ldbm_type+set}" = set; then
1903 withval="$with_ldbm_type"
1906 for ol_val in auto btree hash ; do
1907 if test "$withval" = "$ol_val" ; then
1911 if test "$ol_arg" = "invalid" ; then
1912 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1914 ol_with_ldbm_type="$ol_arg"
1917 ol_with_ldbm_type="auto"
1919 # end --with-ldbm_type
1921 # OpenLDAP --enable-passwd
1922 # Check whether --enable-passwd or --disable-passwd was given.
1923 if test "${enable_passwd+set}" = set; then
1924 enableval="$enable_passwd"
1927 for ol_val in auto yes no ; do
1928 if test "$enableval" = "$ol_val" ; then
1932 if test "$ol_arg" = "invalid" ; then
1933 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1935 ol_enable_passwd="$ol_arg"
1938 ol_enable_passwd="no"
1940 # end --enable-passwd
1941 # OpenLDAP --with-passwd_module
1942 # Check whether --with-passwd_module or --without-passwd_module was given.
1943 if test "${with_passwd_module+set}" = set; then
1944 withval="$with_passwd_module"
1947 for ol_val in static dynamic ; do
1948 if test "$withval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1955 ol_with_passwd_module="$ol_arg"
1958 ol_with_passwd_module="static"
1960 # end --with-passwd_module
1962 # OpenLDAP --enable-perl
1963 # Check whether --enable-perl or --disable-perl was given.
1964 if test "${enable_perl+set}" = set; then
1965 enableval="$enable_perl"
1968 for ol_val in auto yes no ; do
1969 if test "$enableval" = "$ol_val" ; then
1973 if test "$ol_arg" = "invalid" ; then
1974 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1976 ol_enable_perl="$ol_arg"
1982 # OpenLDAP --with-perl_module
1983 # Check whether --with-perl_module or --without-perl_module was given.
1984 if test "${with_perl_module+set}" = set; then
1985 withval="$with_perl_module"
1988 for ol_val in static dynamic ; do
1989 if test "$withval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1996 ol_with_perl_module="$ol_arg"
1999 ol_with_perl_module="static"
2001 # end --with-perl_module
2003 # OpenLDAP --enable-shell
2004 # Check whether --enable-shell or --disable-shell was given.
2005 if test "${enable_shell+set}" = set; then
2006 enableval="$enable_shell"
2009 for ol_val in auto yes no ; do
2010 if test "$enableval" = "$ol_val" ; then
2014 if test "$ol_arg" = "invalid" ; then
2015 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2017 ol_enable_shell="$ol_arg"
2020 ol_enable_shell="no"
2022 # end --enable-shell
2023 # OpenLDAP --with-shell_module
2024 # Check whether --with-shell_module or --without-shell_module was given.
2025 if test "${with_shell_module+set}" = set; then
2026 withval="$with_shell_module"
2029 for ol_val in static dynamic ; do
2030 if test "$withval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2037 ol_with_shell_module="$ol_arg"
2040 ol_with_shell_module="static"
2042 # end --with-shell_module
2044 # OpenLDAP --enable-sql
2045 # Check whether --enable-sql or --disable-sql was given.
2046 if test "${enable_sql+set}" = set; then
2047 enableval="$enable_sql"
2050 for ol_val in auto yes no ; do
2051 if test "$enableval" = "$ol_val" ; then
2055 if test "$ol_arg" = "invalid" ; then
2056 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2058 ol_enable_sql="$ol_arg"
2064 # OpenLDAP --with-sql_module
2065 # Check whether --with-sql_module or --without-sql_module was given.
2066 if test "${with_sql_module+set}" = set; then
2067 withval="$with_sql_module"
2070 for ol_val in static dynamic ; do
2071 if test "$withval" = "$ol_val" ; then
2075 if test "$ol_arg" = "invalid" ; then
2076 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2078 ol_with_sql_module="$ol_arg"
2081 ol_with_sql_module="static"
2083 # end --with-sql_module
2085 # OpenLDAP --enable-tcl
2086 # Check whether --enable-tcl or --disable-tcl was given.
2087 if test "${enable_tcl+set}" = set; then
2088 enableval="$enable_tcl"
2091 for ol_val in auto yes no ; do
2092 if test "$enableval" = "$ol_val" ; then
2096 if test "$ol_arg" = "invalid" ; then
2097 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2099 ol_enable_tcl="$ol_arg"
2105 # OpenLDAP --with-tcl_module
2106 # Check whether --with-tcl_module or --without-tcl_module was given.
2107 if test "${with_tcl_module+set}" = set; then
2108 withval="$with_tcl_module"
2111 for ol_val in static dynamic ; do
2112 if test "$withval" = "$ol_val" ; then
2116 if test "$ol_arg" = "invalid" ; then
2117 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2119 ol_with_tcl_module="$ol_arg"
2122 ol_with_tcl_module="static"
2124 # end --with-tcl_module
2127 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2128 if test "${with_xxslurpdoptions+set}" = set; then
2129 withval="$with_xxslurpdoptions"
2133 # OpenLDAP --enable-slurpd
2134 # Check whether --enable-slurpd or --disable-slurpd was given.
2135 if test "${enable_slurpd+set}" = set; then
2136 enableval="$enable_slurpd"
2139 for ol_val in auto yes no ; do
2140 if test "$enableval" = "$ol_val" ; then
2144 if test "$ol_arg" = "invalid" ; then
2145 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2147 ol_enable_slurpd="$ol_arg"
2150 ol_enable_slurpd="auto"
2152 # end --enable-slurpd
2154 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2155 if test "${with_xxliboptions+set}" = set; then
2156 withval="$with_xxliboptions"
2160 # Check whether --enable-static or --disable-static was given.
2161 if test "${enable_static+set}" = set; then
2162 enableval="$enable_static"
2163 p=${PACKAGE-default}
2164 case "$enableval" in
2165 yes) enable_static=yes ;;
2166 no) enable_static=no ;;
2169 # Look at the argument we got. We use all the common list separators.
2170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2171 for pkg in $enableval; do
2172 if test "X$pkg" = "X$p"; then
2183 # Check whether --enable-shared or --disable-shared was given.
2184 if test "${enable_shared+set}" = set; then
2185 enableval="$enable_shared"
2186 p=${PACKAGE-default}
2187 case "$enableval" in
2188 yes) enable_shared=yes ;;
2189 no) enable_shared=no ;;
2192 # Look at the argument we got. We use all the common list separators.
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2194 for pkg in $enableval; do
2195 if test "X$pkg" = "X$p"; then
2209 if test $ol_enable_slapd = no ; then
2210 if test $ol_enable_dnssrv = yes ; then
2211 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2213 if test $ol_enable_ldap = yes ; then
2214 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2216 if test $ol_enable_ldbm = yes ; then
2217 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2219 if test $ol_enable_passwd = yes ; then
2220 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2222 if test $ol_enable_perl = yes ; then
2223 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2225 if test $ol_enable_shell = yes ; then
2226 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2228 if test $ol_enable_tcl = yes ; then
2229 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2231 if test $ol_enable_sql = yes ; then
2232 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2234 if test $ol_enable_modules = yes ; then
2235 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2237 if test $ol_enable_multimaster = yes ; then
2238 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2240 if test $ol_enable_wrappers = yes ; then
2241 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2243 if test $ol_enable_phonetic = yes ; then
2244 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2246 if test $ol_enable_rlookups = yes ; then
2247 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2249 if test $ol_enable_aci = yes ; then
2250 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2252 if test $ol_with_ldbm_api != auto ; then
2253 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2255 if test $ol_with_ldbm_type != auto ; then
2256 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2258 if test $ol_with_dnssrv_module != static ; then
2259 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2261 if test $ol_with_ldap_module != static ; then
2262 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2264 if test $ol_with_ldbm_module != static ; then
2265 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2267 if test $ol_with_passwd_module != static ; then
2268 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2270 if test $ol_with_perl_module != static ; then
2271 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2273 if test $ol_with_shell_module != static ; then
2274 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2276 if test $ol_with_tcl_module != static ; then
2277 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2279 if test $ol_with_sql_module != static ; then
2280 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2282 if test $ol_enable_slurpd = yes ; then
2283 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2286 # force settings to no
2296 ol_enable_modules=no
2297 ol_enable_multimaster=no
2298 ol_enable_phonetic=no
2299 ol_enable_rlookups=no
2301 ol_enable_wrappers=no
2302 ol_enable_dynamic=no
2305 ol_with_ldbm_type=no
2307 ol_with_dnssrv_module=static
2308 ol_with_ldap_module=static
2309 ol_with_ldbm_module=static
2310 ol_with_passwd_module=static
2311 ol_with_perl_module=static
2312 ol_with_shell_module=static
2313 ol_with_tcl_module=static
2314 ol_with_sql_module=static
2318 elif test $ol_enable_ldbm = no ; then
2320 if test $ol_with_ldbm_api != auto ; then
2321 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2324 if test $ol_with_ldbm_type != auto ; then
2325 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2328 if test $ol_with_ldbm_module != static ; then
2329 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2332 if test $ol_enable_modules != yes -a \
2333 $ol_enable_dnssrv = no -a \
2334 $ol_enable_ldap = no -a \
2335 $ol_enable_passwd = no -a \
2336 $ol_enable_perl = no -a \
2337 $ol_enable_shell = no -a \
2338 $ol_enable_sql = no -a \
2339 $ol_enable_tcl = no ; then
2340 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2344 ol_with_ldbm_type=no
2345 ol_with_ldbm_module=static
2348 if test $ol_with_ldbm_api = gdbm -a \
2349 $ol_with_ldbm_type = btree ; then
2350 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2352 if test $ol_with_ldbm_api = mdbm -a \
2353 $ol_with_ldbm_type = btree ; then
2354 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2356 if test $ol_with_ldbm_api = ndbm -a \
2357 $ol_with_ldbm_type = btree ; then
2358 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2362 if test $ol_enable_slurpd = yes ; then
2363 if test $ol_with_threads = no ; then
2364 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2368 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2369 if test $ol_with_kerberos = no ; then
2370 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2372 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2373 if test $ol_with_kerberos != auto ; then
2374 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2380 if test $ol_enable_spasswd = yes ; then
2381 if test $ol_with_cyrus_sasl = no ; then
2382 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2387 echo "$ac_t""done" 1>&6
2412 BUILD_DNSSRV_DYNAMIC=static
2413 BUILD_LDAP_DYNAMIC=static
2414 BUILD_LDBM_DYNAMIC=static
2415 BUILD_PASSWD_DYNAMIC=static
2416 BUILD_PERL_DYNAMIC=static
2417 BUILD_SHELL_DYNAMIC=static
2418 BUILD_TCL_DYNAMIC=static
2419 BUILD_SQL_DYNAMIC=static
2421 SLAPD_MODULES_LDFLAGS=
2422 SLAPD_MODULES_CPPFLAGS=
2445 cat >> confdefs.h <<\EOF
2446 #define HAVE_MKVERSION 1
2454 *-*-aix*) if test -z "$CC" ; then
2455 case "$ol_with_threads" in
2456 auto | yes | posix) ol_aix_threads=yes ;;
2462 if test $ol_aix_threads = yes ; then
2463 if test -z "${CC}" ; then
2464 for ac_prog in cc_r xlc_r cc
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2481 ac_cv_prog_CC="$ac_prog"
2489 if test -n "$CC"; then
2490 echo "$ac_t""$CC" 1>&6
2492 echo "$ac_t""no" 1>&6
2495 test -n "$CC" && break
2499 if test "$CC" = cc ; then
2500 if test $ol_with_threads != auto ; then
2501 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2503 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2509 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2510 ol_with_threads=posix
2511 ol_cv_pthread_create=yes
2515 if test -z "${CC}"; then
2518 # Extract the first word of "$ac_prog", so it can be a program name with args.
2519 set dummy $ac_prog; ac_word=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2530 for ac_dir in $ac_dummy; do
2531 test -z "$ac_dir" && ac_dir=.
2532 if test -f $ac_dir/$ac_word; then
2533 ac_cv_prog_CC="$ac_prog"
2541 if test -n "$CC"; then
2542 echo "$ac_t""$CC" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 test -n "$CC" && break
2555 # Check whether --enable-fast-install or --disable-fast-install was given.
2556 if test "${enable_fast_install+set}" = set; then
2557 enableval="$enable_fast_install"
2558 p=${PACKAGE-default}
2559 case "$enableval" in
2560 yes) enable_fast_install=yes ;;
2561 no) enable_fast_install=no ;;
2563 enable_fast_install=no
2564 # Look at the argument we got. We use all the common list separators.
2565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2566 for pkg in $enableval; do
2567 if test "X$pkg" = "X$p"; then
2568 enable_fast_install=yes
2575 enable_fast_install=yes
2578 # Extract the first word of "ranlib", so it can be a program name with args.
2579 set dummy ranlib; ac_word=$2
2580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_word" >&5
2582 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 if test -n "$RANLIB"; then
2586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 ac_cv_prog_RANLIB="ranlib"
2598 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2601 RANLIB="$ac_cv_prog_RANLIB"
2602 if test -n "$RANLIB"; then
2603 echo "$ac_t""$RANLIB" 1>&6
2605 echo "$ac_t""no" 1>&6
2608 # Extract the first word of "gcc", so it can be a program name with args.
2609 set dummy gcc; ac_word=$2
2610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2611 echo "configure:2612: checking for $ac_word" >&5
2612 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2620 for ac_dir in $ac_dummy; do
2621 test -z "$ac_dir" && ac_dir=.
2622 if test -f $ac_dir/$ac_word; then
2631 if test -n "$CC"; then
2632 echo "$ac_t""$CC" 1>&6
2634 echo "$ac_t""no" 1>&6
2637 if test -z "$CC"; then
2638 # Extract the first word of "cc", so it can be a program name with args.
2639 set dummy cc; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2651 for ac_dir in $ac_dummy; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2655 ac_prog_rejected=yes
2663 if test $ac_prog_rejected = yes; then
2664 # We found a bogon in the path, so make sure we never use it.
2665 set dummy $ac_cv_prog_CC
2667 if test $# -gt 0; then
2668 # We chose a different compiler from the bogus one.
2669 # However, it has the same basename, so the bogon will be chosen
2670 # first if we set CC to just the basename; use the full file name.
2672 set dummy "$ac_dir/$ac_word" "$@"
2680 if test -n "$CC"; then
2681 echo "$ac_t""$CC" 1>&6
2683 echo "$ac_t""no" 1>&6
2686 if test -z "$CC"; then
2687 case "`uname -s`" in
2688 *win32* | *WIN32* | *CYGWIN*)
2689 # Extract the first word of "cl", so it can be a program name with args.
2690 set dummy cl; ac_word=$2
2691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2692 echo "configure:2693: checking for $ac_word" >&5
2693 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2701 for ac_dir in $ac_dummy; do
2702 test -z "$ac_dir" && ac_dir=.
2703 if test -f $ac_dir/$ac_word; then
2712 if test -n "$CC"; then
2713 echo "$ac_t""$CC" 1>&6
2715 echo "$ac_t""no" 1>&6
2720 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2723 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2724 echo "configure:2725: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2731 cross_compiling=$ac_cv_prog_cc_cross
2733 cat > conftest.$ac_ext << EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2741 ac_cv_prog_cc_works=yes
2742 # If we can't run a trivial program, we are probably using a cross compiler.
2743 if (./conftest; exit) 2>/dev/null; then
2744 ac_cv_prog_cc_cross=no
2746 ac_cv_prog_cc_cross=yes
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 ac_cv_prog_cc_works=no
2755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2759 cross_compiling=$ac_cv_prog_cc_cross
2761 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2762 if test $ac_cv_prog_cc_works = no; then
2763 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2766 echo "configure:2767: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2767 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2768 cross_compiling=$ac_cv_prog_cc_cross
2770 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2771 echo "configure:2772: checking whether we are using GNU C" >&5
2772 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.c <<EOF
2780 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2787 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2789 if test $ac_cv_prog_gcc = yes; then
2795 ac_test_CFLAGS="${CFLAGS+set}"
2796 ac_save_CFLAGS="$CFLAGS"
2798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2799 echo "configure:2800: checking whether ${CC-cc} accepts -g" >&5
2800 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 echo 'void f(){}' > conftest.c
2804 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2813 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2814 if test "$ac_test_CFLAGS" = set; then
2815 CFLAGS="$ac_save_CFLAGS"
2816 elif test $ac_cv_prog_cc_g = yes; then
2817 if test "$GCC" = yes; then
2823 if test "$GCC" = yes; then
2830 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2831 if test "${with_gnu_ld+set}" = set; then
2832 withval="$with_gnu_ld"
2833 test "$withval" = no || with_gnu_ld=yes
2839 if test "$ac_cv_prog_gcc" = yes; then
2840 # Check if gcc -print-prog-name=ld gives a path.
2841 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2842 echo "configure:2843: checking for ld used by GCC" >&5
2843 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2845 # Accept absolute paths.
2846 [\\/]* | [A-Za-z]:[\\/]*)
2847 re_direlt='/[^/][^/]*/\.\./'
2848 # Canonicalize the path of ld
2849 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2850 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2851 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2853 test -z "$LD" && LD="$ac_prog"
2856 # If it fails, then pretend we aren't using GCC.
2860 # If it is relative, then search for the first ld in PATH.
2864 elif test "$with_gnu_ld" = yes; then
2865 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2866 echo "configure:2867: checking for GNU ld" >&5
2868 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2869 echo "configure:2870: checking for non-GNU ld" >&5
2871 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 if test -z "$LD"; then
2875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2876 for ac_dir in $PATH; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2879 ac_cv_path_LD="$ac_dir/$ac_prog"
2880 # Check to see if the program is GNU ld. I'd rather use --version,
2881 # but apparently some GNU ld's only accept -v.
2882 # Break only if it was the GNU/non-GNU ld that we prefer.
2883 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2884 test "$with_gnu_ld" != no && break
2886 test "$with_gnu_ld" != yes && break
2892 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2897 if test -n "$LD"; then
2898 echo "$ac_t""$LD" 1>&6
2900 echo "$ac_t""no" 1>&6
2902 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2903 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2904 echo "configure:2905: checking if the linker ($LD) is GNU ld" >&5
2905 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2909 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2910 ac_cv_prog_gnu_ld=yes
2912 ac_cv_prog_gnu_ld=no
2916 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2919 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2920 echo "configure:2921: checking for BSD-compatible nm" >&5
2921 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 if test -n "$NM"; then
2925 # Let the user override the test.
2928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2929 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2930 test -z "$ac_dir" && ac_dir=.
2931 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2932 # Check to see if the nm accepts a BSD-compat flag.
2933 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2934 # nm: unknown option "B" ignored
2935 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2936 ac_cv_path_NM="$ac_dir/nm -B"
2938 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2939 ac_cv_path_NM="$ac_dir/nm -p"
2942 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2943 continue # so that we can try to find one that supports BSD flags
2948 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2953 echo "$ac_t""$NM" 1>&6
2955 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether ln -s works" >&5
2957 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2961 if ln -s X conftestdata 2>/dev/null
2964 ac_cv_prog_LN_S="ln -s"
2969 LN_S="$ac_cv_prog_LN_S"
2970 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2971 echo "$ac_t""yes" 1>&6
2973 echo "$ac_t""no" 1>&6
2976 if test $host != $build; then
2977 ac_tool_prefix=${host_alias}-
2984 NONE) lt_target="$host" ;;
2985 *) lt_target="$target" ;;
2988 # Check for any special flags to pass to ltconfig.
2989 libtool_flags="--cache-file=$cache_file"
2990 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2991 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2992 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2993 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2994 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2995 libtool_flags="$libtool_flags --enable-dlopen"
2996 libtool_flags="$libtool_flags --enable-win32-dll"
2997 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2998 if test "${enable_libtool_lock+set}" = set; then
2999 enableval="$enable_libtool_lock"
3003 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3004 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3006 # Some flags need to be propagated to the compiler or linker for good
3008 case "$lt_target" in
3010 # Find out which ABI we are using.
3011 echo '#line 3012 "configure"' > conftest.$ac_ext
3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3013 case "`/usr/bin/file conftest.o`" in
3029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3030 SAVE_CFLAGS="$CFLAGS"
3031 CFLAGS="$CFLAGS -belf"
3032 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3033 echo "configure:3034: checking whether the C compiler needs -belf" >&5
3034 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3047 lt_cv_cc_needs_belf=yes
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 lt_cv_cc_needs_belf=no
3057 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3060 CFLAGS="$SAVE_CFLAGS"
3064 *-*-cygwin* | *-*-mingw*)
3065 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3068 echo "configure:3069: checking for $ac_word" >&5
3069 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 if test -n "$DLLTOOL"; then
3073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3077 for ac_dir in $ac_dummy; do
3078 test -z "$ac_dir" && ac_dir=.
3079 if test -f $ac_dir/$ac_word; then
3080 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3087 DLLTOOL="$ac_cv_prog_DLLTOOL"
3088 if test -n "$DLLTOOL"; then
3089 echo "$ac_t""$DLLTOOL" 1>&6
3091 echo "$ac_t""no" 1>&6
3095 if test -z "$ac_cv_prog_DLLTOOL"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "dlltool", so it can be a program name with args.
3098 set dummy dlltool; ac_word=$2
3099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3100 echo "configure:3101: checking for $ac_word" >&5
3101 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test -n "$DLLTOOL"; then
3105 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3109 for ac_dir in $ac_dummy; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/$ac_word; then
3112 ac_cv_prog_DLLTOOL="dlltool"
3117 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3120 DLLTOOL="$ac_cv_prog_DLLTOOL"
3121 if test -n "$DLLTOOL"; then
3122 echo "$ac_t""$DLLTOOL" 1>&6
3124 echo "$ac_t""no" 1>&6
3132 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}as; ac_word=$2
3134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3135 echo "configure:3136: checking for $ac_word" >&5
3136 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 if test -n "$AS"; then
3140 ac_cv_prog_AS="$AS" # Let the user override the test.
3142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3144 for ac_dir in $ac_dummy; do
3145 test -z "$ac_dir" && ac_dir=.
3146 if test -f $ac_dir/$ac_word; then
3147 ac_cv_prog_AS="${ac_tool_prefix}as"
3155 if test -n "$AS"; then
3156 echo "$ac_t""$AS" 1>&6
3158 echo "$ac_t""no" 1>&6
3162 if test -z "$ac_cv_prog_AS"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "as", so it can be a program name with args.
3165 set dummy as; ac_word=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_word" >&5
3168 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$AS"; then
3172 ac_cv_prog_AS="$AS" # Let the user override the test.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3176 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 if test -f $ac_dir/$ac_word; then
3184 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3188 if test -n "$AS"; then
3189 echo "$ac_t""$AS" 1>&6
3191 echo "$ac_t""no" 1>&6
3199 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 if test -n "$OBJDUMP"; then
3207 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3211 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3221 OBJDUMP="$ac_cv_prog_OBJDUMP"
3222 if test -n "$OBJDUMP"; then
3223 echo "$ac_t""$OBJDUMP" 1>&6
3225 echo "$ac_t""no" 1>&6
3229 if test -z "$ac_cv_prog_OBJDUMP"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "objdump", so it can be a program name with args.
3232 set dummy objdump; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$OBJDUMP"; then
3239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_OBJDUMP="objdump"
3251 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3254 OBJDUMP="$ac_cv_prog_OBJDUMP"
3255 if test -n "$OBJDUMP"; then
3256 echo "$ac_t""$OBJDUMP" 1>&6
3258 echo "$ac_t""no" 1>&6
3271 # Save cache, so that ltconfig can load it
3274 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3275 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3276 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3277 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3278 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3280 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3281 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3283 # Reload cache, that may have been modified by ltconfig
3286 # This can be used to rebuild libtool when needed
3287 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3289 # Always use our own libtool.
3290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3292 # Redirect the config.log output again, so that the ltconfig log is not
3293 # clobbered by the next message.
3294 exec 5>>./config.log
3297 for ac_prog in mawk gawk nawk awk
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_word" >&5
3303 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 if test -n "$AWK"; then
3307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3311 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if test -f $ac_dir/$ac_word; then
3314 ac_cv_prog_AWK="$ac_prog"
3321 AWK="$ac_cv_prog_AWK"
3322 if test -n "$AWK"; then
3323 echo "$ac_t""$AWK" 1>&6
3325 echo "$ac_t""no" 1>&6
3328 test -n "$AWK" && break
3331 # test for ln hardlink support
3332 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3333 echo "configure:3334: checking whether ln works" >&5
3334 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 rm -f conftest.src conftest.dst
3338 echo "conftest" > conftest.src
3339 if ln conftest.src conftest.dst 2>/dev/null
3341 ol_cv_prog_LN_H="ln"
3343 ol_cv_prog_LN_H="cp"
3345 rm -f conftest.src conftest.dst
3348 LN_H="$ol_cv_prog_LN_H"
3349 if test "$ol_cv_prog_LN_H" = "ln"; then
3350 echo "$ac_t""yes" 1>&6
3352 echo "$ac_t""no" 1>&6
3355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3356 echo "configure:3357: checking whether ln -s works" >&5
3357 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3361 if ln -s X conftestdata 2>/dev/null
3364 ac_cv_prog_LN_S="ln -s"
3369 LN_S="$ac_cv_prog_LN_S"
3370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3371 echo "$ac_t""yes" 1>&6
3373 echo "$ac_t""no" 1>&6
3377 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3381 # Extract the first word of "sendmail", so it can be a program name with args.
3382 set dummy sendmail; ac_word=$2
3383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_word" >&5
3385 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3390 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3393 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3397 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3398 for ac_dir in $ac_dummy; do
3399 test -z "$ac_dir" && ac_dir=.
3400 if test -f $ac_dir/$ac_word; then
3401 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3406 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3410 SENDMAIL="$ac_cv_path_SENDMAIL"
3411 if test -n "$SENDMAIL"; then
3412 echo "$ac_t""$SENDMAIL" 1>&6
3414 echo "$ac_t""no" 1>&6
3417 # Extract the first word of "vi", so it can be a program name with args.
3418 set dummy vi; ac_word=$2
3419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3420 echo "configure:3421: checking for $ac_word" >&5
3421 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3429 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3433 ac_dummy="$PATH:/usr/ucb"
3434 for ac_dir in $ac_dummy; do
3435 test -z "$ac_dir" && ac_dir=.
3436 if test -f $ac_dir/$ac_word; then
3437 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3442 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3446 EDITOR="$ac_cv_path_EDITOR"
3447 if test -n "$EDITOR"; then
3448 echo "$ac_t""$EDITOR" 1>&6
3450 echo "$ac_t""no" 1>&6
3453 # Extract the first word of "finger", so it can be a program name with args.
3454 set dummy finger; ac_word=$2
3455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3456 echo "configure:3457: checking for $ac_word" >&5
3457 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3462 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3465 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3469 ac_dummy="$PATH:/usr/ucb"
3470 for ac_dir in $ac_dummy; do
3471 test -z "$ac_dir" && ac_dir=.
3472 if test -f $ac_dir/$ac_word; then
3473 ac_cv_path_FINGER="$ac_dir/$ac_word"
3478 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3482 FINGER="$ac_cv_path_FINGER"
3483 if test -n "$FINGER"; then
3484 echo "$ac_t""$FINGER" 1>&6
3486 echo "$ac_t""no" 1>&6
3491 if test $ol_enable_perl != no ; then
3492 # Extract the first word of "perl", so it can be a program name with args.
3493 set dummy perl; ac_word=$2
3494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_word" >&5
3496 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3501 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3504 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3509 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 if test -f $ac_dir/$ac_word; then
3512 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3517 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3521 PERLBIN="$ac_cv_path_PERLBIN"
3522 if test -n "$PERLBIN"; then
3523 echo "$ac_t""$PERLBIN" 1>&6
3525 echo "$ac_t""no" 1>&6
3529 if test "no$PERLBIN" = "no" ; then
3530 if test $ol_enable_perl = yes ; then
3531 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3535 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3536 if test x"$ol_with_perl_module" = "xstatic" ; then
3537 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3539 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3545 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3546 echo "configure:3547: checking how to run the C preprocessor" >&5
3547 # On Suns, sometimes $CPP names a directory.
3548 if test -n "$CPP" && test -d "$CPP"; then
3551 if test -z "$CPP"; then
3552 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 # This must be in double quotes, not single quotes, because CPP may get
3556 # substituted into the Makefile and "${CC-cc}" will confuse make.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp.
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3567 { (eval echo configure:3568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3569 if test -z "$ac_err"; then
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 CPP="${CC-cc} -E -traditional-cpp"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3584 { (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3586 if test -z "$ac_err"; then
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 CPP="${CC-cc} -nologo -E"
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601 { (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603 if test -z "$ac_err"; then
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3617 ac_cv_prog_CPP="$CPP"
3619 CPP="$ac_cv_prog_CPP"
3621 ac_cv_prog_CPP="$CPP"
3623 echo "$ac_t""$CPP" 1>&6
3626 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3627 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3629 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3630 echo "configure: warning: programs compiled here do run here..." 1>&2
3631 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3633 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3634 echo "configure: warning: programs compiled here do not run here..." 1>&2
3635 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3638 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3639 echo "configure:3640: checking for AIX" >&5
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 egrep "yes" >/dev/null 2>&1; then
3651 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3652 #define _ALL_SOURCE 1
3657 echo "$ac_t""no" 1>&6
3662 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3663 echo "configure:3664: checking for POSIXized ISC" >&5
3664 if test -d /etc/conf/kconfig.d &&
3665 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3667 echo "$ac_t""yes" 1>&6
3668 ISC=yes # If later tests want to check for ISC.
3669 cat >> confdefs.h <<\EOF
3670 #define _POSIX_SOURCE 1
3673 if test "$GCC" = yes; then
3679 echo "$ac_t""no" 1>&6
3683 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3684 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3685 echo "configure:3686: checking for minix/config.h" >&5
3686 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <minix/config.h>
3694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3695 { (eval echo configure:3696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3697 if test -z "$ac_err"; then
3699 eval "ac_cv_header_$ac_safe=yes"
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3705 eval "ac_cv_header_$ac_safe=no"
3709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3710 echo "$ac_t""yes" 1>&6
3713 echo "$ac_t""no" 1>&6
3717 if test "$MINIX" = yes; then
3718 cat >> confdefs.h <<\EOF
3719 #define _POSIX_SOURCE 1
3722 cat >> confdefs.h <<\EOF
3723 #define _POSIX_1_SOURCE 2
3726 cat >> confdefs.h <<\EOF
3733 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3734 echo "configure:3735: checking for Cygwin environment" >&5
3735 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3745 #define __CYGWIN__ __CYGWIN32__
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3762 echo "$ac_t""$ac_cv_cygwin" 1>&6
3764 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3765 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3766 echo "configure:3767: checking for mingw32 environment" >&5
3767 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3778 if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3790 echo "$ac_t""$ac_cv_mingw32" 1>&6
3792 test "$ac_cv_mingw32" = yes && MINGW32=yes
3793 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3794 echo "configure:3795: checking for EMX OS/2 environment" >&5
3795 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3806 if { (eval echo configure:3807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3818 echo "$ac_t""$ac_cv_emxos2" 1>&6
3820 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3824 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3825 echo "configure:3826: checking for executable suffix" >&5
3826 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3833 echo 'int main () { return 0; }' > conftest.$ac_ext
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3836 for file in conftest.*; do
3838 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3839 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3843 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3846 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3851 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3852 echo "$ac_t""${ac_cv_exeext}" 1>&6
3855 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3856 echo "configure:3857: checking for object suffix" >&5
3857 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3861 echo 'int i = 1;' > conftest.$ac_ext
3862 if { (eval echo configure:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 for ac_file in conftest.*; do
3866 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3870 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3875 echo "$ac_t""$ac_cv_objext" 1>&6
3876 OBJEXT=$ac_cv_objext
3877 ac_objext=$ac_cv_objext
3880 cat >> confdefs.h <<EOF
3881 #define EXEEXT "${EXEEXT}"
3885 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3886 echo "configure:3887: checking for be_app in -lbe" >&5
3887 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 ac_save_LIBS="$LIBS"
3892 LIBS="-lbe -lroot -lnet $LIBS"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3905 if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3907 eval "ac_cv_lib_$ac_lib_var=yes"
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3912 eval "ac_cv_lib_$ac_lib_var=no"
3915 LIBS="$ac_save_LIBS"
3918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 LIBS="$LIBS -lbe -lroot -lnet"
3922 echo "$ac_t""no" 1>&6
3930 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3931 echo "configure:3932: checking for ${CC-cc} option to accept ANSI C" >&5
3932 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 am_cv_prog_cc_stdc=no
3937 # Don't try gcc -ansi; that turns off useful extensions and
3938 # breaks some systems' header files.
3939 # AIX -qlanglvl=ansi
3940 # Ultrix and OSF/1 -std1
3941 # HP-UX 10.20 and later -Ae
3942 # HP-UX older versions -Aa -D_HPUX_SOURCE
3943 # SVR4 -Xc -D__EXTENSIONS__
3944 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3946 CC="$ac_save_CC $ac_arg"
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3952 #include <sys/types.h>
3953 #include <sys/stat.h>
3954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3955 struct buf { int x; };
3956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3957 static char *e (p, i)
3963 static char *f (char * (*g) (char **, int), char **p, ...)
3968 s = g (p, va_arg (v,int));
3972 int test (int i, double x);
3973 struct s1 {int (*f) (int a);};
3974 struct s2 {int (*f) (double a);};
3975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3985 if { (eval echo configure:3986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987 am_cv_prog_cc_stdc="$ac_arg"; break
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3998 if test -z "$am_cv_prog_cc_stdc"; then
3999 echo "$ac_t""none needed" 1>&6
4001 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4003 case "x$am_cv_prog_cc_stdc" in
4005 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4008 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4009 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4012 # test for make depend flag
4015 if test -z "${MKDEP}"; then
4017 if test -z "${MKDEP_FLAGS}"; then
4018 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4019 echo "configure:4020: checking for ${OL_MKDEP} depend flag" >&5
4020 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4025 for flag in "-M" "-xM"; do
4026 cat > conftest.c <<EOF
4029 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4030 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4032 if test ! -f conftest."${ac_object}" ; then
4034 OL_MKDEP_FLAGS="$flag"
4043 echo "$ac_t""$ol_cv_mkdep" 1>&6
4046 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4051 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4056 if test "${ol_cv_mkdep}" = no ; then
4057 # this will soon become an error
4058 echo "configure: warning: do not know how to generate dependencies" 1>&2
4061 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4062 echo "configure:4063: checking for afopen in -ls" >&5
4063 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 ac_save_LIBS="$LIBS"
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083 eval "ac_cv_lib_$ac_lib_var=yes"
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 eval "ac_cv_lib_$ac_lib_var=no"
4091 LIBS="$ac_save_LIBS"
4094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_AIX_SECURITY 1
4104 echo "$ac_t""no" 1>&6
4109 for ac_func in getaddrinfo
4111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4112 echo "configure:4113: checking for $ac_func" >&5
4113 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 /* System header to define __stub macros and hopefully few prototypes,
4120 which can conflict with char $ac_func(); below. */
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4143 eval "ac_cv_func_$ac_func=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4148 eval "ac_cv_func_$ac_func=no"
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4156 cat >> confdefs.h <<EOF
4157 #define $ac_tr_func 1
4161 echo "$ac_t""no" 1>&6
4166 if test $ac_cv_func_getaddrinfo = no ; then
4167 if test $ol_enable_ipv6 = yes ; then
4168 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4173 if test $ol_enable_local != no ; then
4174 for ac_hdr in sys/un.h
4176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_hdr" >&5
4179 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4188 { (eval echo configure:4189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4190 if test -z "$ac_err"; then
4192 eval "ac_cv_header_$ac_safe=yes"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 eval "ac_cv_header_$ac_safe=no"
4202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4203 echo "$ac_t""yes" 1>&6
4204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4205 cat >> confdefs.h <<EOF
4206 #define $ac_tr_hdr 1
4210 echo "$ac_t""no" 1>&6
4215 if test $ol_enable_local = auto ; then
4216 ol_enable_local=$ac_cv_header_sys_un_h
4217 elif test $ac_cv_header_sys_un_h = no ; then
4218 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
4223 if test $ol_enable_modules != no ; then
4224 for ac_hdr in ltdl.h
4226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4228 echo "configure:4229: checking for $ac_hdr" >&5
4229 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4238 { (eval echo configure:4239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4240 if test -z "$ac_err"; then
4242 eval "ac_cv_header_$ac_safe=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_header_$ac_safe=no"
4252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4255 cat >> confdefs.h <<EOF
4256 #define $ac_tr_hdr 1
4260 echo "$ac_t""no" 1>&6
4265 if test $ac_cv_header_ltdl_h = no ; then
4266 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4269 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4270 echo "configure:4271: checking for lt_dlinit in -lltdl" >&5
4271 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 ac_save_LIBS="$LIBS"
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_lib_$ac_lib_var=no"
4299 LIBS="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_LIBLTDL 1
4312 echo "$ac_t""no" 1>&6
4316 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4317 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4321 ol_with_dnssrv_module=static
4322 ol_with_ldap_module=static
4323 ol_with_ldbm_module=static
4324 ol_with_passwd_module=static
4325 ol_with_perl_module=static
4326 ol_with_shell_module=static
4327 ol_with_tcl_module=static
4328 ol_with_sql_module=static
4332 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4333 echo "configure:4334: checking for EBCDIC" >&5
4334 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 #include <__ASCII__/generate_error.h>
4347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4348 { (eval echo configure:4349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4350 if test -z "$ac_err"; then
4352 ol_cv_cpp_ebcdic=yes
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4363 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4364 if test $ol_cv_cpp_ebcdic = yes ; then
4365 cat >> confdefs.h <<\EOF
4366 #define HAVE_EBCDIC 1
4371 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4372 echo "configure:4373: checking for ANSI C header files" >&5
4373 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4387 if test -z "$ac_err"; then
4389 ol_cv_header_stdc=yes
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 ol_cv_header_stdc=no
4399 if test $ol_cv_header_stdc = yes; then
4400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 egrep "memchr" >/dev/null 2>&1; then
4411 ol_cv_header_stdc=no
4417 if test $ol_cv_header_stdc = yes; then
4418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 egrep "free" >/dev/null 2>&1; then
4429 ol_cv_header_stdc=no
4435 if test $ol_cv_header_stdc = yes; then
4436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4437 if test "$cross_compiling" = yes; then
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4449 || ('j' <= (c) && (c) <= 'r') \
4450 || ('s' <= (c) && (c) <= 'z'))
4451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4454 int main () { int i; for (i = 0; i < 256; i++)
4455 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 ol_cv_header_stdc=no
4474 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4475 if test $ol_cv_header_stdc = yes; then
4476 cat >> confdefs.h <<\EOF
4477 #define STDC_HEADERS 1
4481 ac_cv_header_stdc=disable
4484 if test $ol_cv_header_stdc != yes; then
4485 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4489 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4492 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4493 echo "configure:4494: checking for $ac_hdr that defines DIR" >&5
4494 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 #include <sys/types.h>
4506 if { (eval echo configure:4507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4508 eval "ac_cv_header_dirent_$ac_safe=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 eval "ac_cv_header_dirent_$ac_safe=no"
4517 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_hdr 1
4523 ac_header_dirent=$ac_hdr; break
4525 echo "$ac_t""no" 1>&6
4528 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4529 if test $ac_header_dirent = dirent.h; then
4530 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4531 echo "configure:4532: checking for opendir in -ldir" >&5
4532 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS="$LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4567 echo "$ac_t""no" 1>&6
4571 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4572 echo "configure:4573: checking for opendir in -lx" >&5
4573 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 ac_save_LIBS="$LIBS"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 eval "ac_cv_lib_$ac_lib_var=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_lib_$ac_lib_var=no"
4601 LIBS="$ac_save_LIBS"
4604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4608 echo "$ac_t""no" 1>&6
4613 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4614 echo "configure:4615: checking for sys/wait.h that is POSIX.1 compatible" >&5
4615 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 #include <sys/types.h>
4622 #include <sys/wait.h>
4624 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4627 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4635 if { (eval echo configure:4636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4637 ac_cv_header_sys_wait_h=yes
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 ac_cv_header_sys_wait_h=no
4647 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4648 if test $ac_cv_header_sys_wait_h = yes; then
4649 cat >> confdefs.h <<\EOF
4650 #define HAVE_SYS_WAIT_H 1
4655 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4656 echo "configure:4657: checking POSIX termios" >&5
4657 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <sys/types.h>
4665 #include <termios.h>
4667 /* SunOS 4.0.3 has termios.h but not the library calls. */
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673 am_cv_sys_posix_termios=yes
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 am_cv_sys_posix_termios=no
4683 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4686 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4687 echo "configure:4688: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4688 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4693 gwinsz_in_termios_h=no
4694 if test $am_cv_sys_posix_termios = yes; then
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <sys/types.h>
4699 # include <termios.h>
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 egrep "yes" >/dev/null 2>&1; then
4708 gwinsz_in_termios_h=yes
4714 if test $gwinsz_in_termios_h = no; then
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <sys/types.h>
4719 # include <sys/ioctl.h>
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 egrep "yes" >/dev/null 2>&1; then
4728 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4736 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4737 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4738 cat >> confdefs.h <<\EOF
4739 #define GWINSZ_IN_SYS_IOCTL 1
4744 if test $am_cv_sys_posix_termios = yes ; then
4745 cat >> confdefs.h <<\EOF
4746 #define HAVE_POSIX_TERMIOS 1
4797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4799 echo "configure:4800: checking for $ac_hdr" >&5
4800 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4809 { (eval echo configure:4810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4811 if test -z "$ac_err"; then
4813 eval "ac_cv_header_$ac_safe=yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_header_$ac_safe=no"
4823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4824 echo "$ac_t""yes" 1>&6
4825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4826 cat >> confdefs.h <<EOF
4827 #define $ac_tr_hdr 1
4831 echo "$ac_t""no" 1>&6
4838 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4839 echo "configure:4840: checking for sigset in -lV3" >&5
4840 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4841 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 ac_save_LIBS="$LIBS"
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4860 eval "ac_cv_lib_$ac_lib_var=yes"
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4865 eval "ac_cv_lib_$ac_lib_var=no"
4868 LIBS="$ac_save_LIBS"
4871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4875 cat >> confdefs.h <<EOF
4876 #define $ac_tr_lib 1
4882 echo "$ac_t""no" 1>&6
4886 if test $ac_cv_header_winsock_h = yes; then
4887 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4888 echo "configure:4889: checking for winsock" >&5
4889 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 #include <winsock.h>
4899 select(0,NULL,NULL,NULL,NULL);
4901 gethostname(NULL,0);
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4917 echo "$ac_t""$ol_cv_winsock" 1>&6
4919 if test $ol_cv_winsock = yes ; then
4920 cat >> confdefs.h <<\EOF
4921 #define HAVE_WINSOCK 1
4924 ac_cv_func_socket=yes
4925 ac_cv_func_select=yes
4926 ac_cv_func_closesocket=yes
4927 ac_cv_func_gethostname=yes
4932 echo $ac_n "checking for socket""... $ac_c" 1>&6
4933 echo "configure:4934: checking for socket" >&5
4934 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 /* System header to define __stub macros and hopefully few prototypes,
4941 which can conflict with char socket(); below. */
4943 /* Override any gcc2 internal prototype to avoid an error. */
4944 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */
4951 /* The GNU C library defines this for functions which it implements
4952 to always fail with ENOSYS. Some functions are actually named
4953 something starting with __ and the normal name is an alias. */
4954 #if defined (__stub_socket) || defined (__stub___socket)
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 eval "ac_cv_func_socket=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_func_socket=no"
4974 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4975 echo "$ac_t""yes" 1>&6
4978 echo "$ac_t""no" 1>&6
4980 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4981 echo "configure:4982: checking for main in -lsocket" >&5
4982 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 ac_save_LIBS="$LIBS"
4987 LIBS="-lsocket $LIBS"
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5006 LIBS="$ac_save_LIBS"
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5013 cat >> confdefs.h <<EOF
5014 #define $ac_tr_lib 1
5017 LIBS="-lsocket $LIBS"
5020 echo "$ac_t""no" 1>&6
5023 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5024 echo "configure:5025: checking for main in -lnet" >&5
5025 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5029 ac_save_LIBS="$LIBS"
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 eval "ac_cv_lib_$ac_lib_var=yes"
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 eval "ac_cv_lib_$ac_lib_var=no"
5049 LIBS="$ac_save_LIBS"
5052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5056 cat >> confdefs.h <<EOF
5057 #define $ac_tr_lib 1
5063 echo "$ac_t""no" 1>&6
5066 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5067 echo "configure:5068: checking for main in -lnsl_s" >&5
5068 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5069 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 ac_save_LIBS="$LIBS"
5073 LIBS="-lnsl_s $LIBS"
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5084 eval "ac_cv_lib_$ac_lib_var=yes"
5086 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5089 eval "ac_cv_lib_$ac_lib_var=no"
5092 LIBS="$ac_save_LIBS"
5095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5099 cat >> confdefs.h <<EOF
5100 #define $ac_tr_lib 1
5103 LIBS="-lnsl_s $LIBS"
5106 echo "$ac_t""no" 1>&6
5109 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5110 echo "configure:5111: checking for main in -lnsl" >&5
5111 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5112 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 ac_save_LIBS="$LIBS"
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127 eval "ac_cv_lib_$ac_lib_var=yes"
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5132 eval "ac_cv_lib_$ac_lib_var=no"
5135 LIBS="$ac_save_LIBS"
5138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5142 cat >> confdefs.h <<EOF
5143 #define $ac_tr_lib 1
5149 echo "$ac_t""no" 1>&6
5152 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5153 echo "configure:5154: checking for socket in -linet" >&5
5154 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 ac_save_LIBS="$LIBS"
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5172 if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5174 eval "ac_cv_lib_$ac_lib_var=yes"
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5179 eval "ac_cv_lib_$ac_lib_var=no"
5182 LIBS="$ac_save_LIBS"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5188 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5189 cat >> confdefs.h <<EOF
5190 #define $ac_tr_lib 1
5196 echo "$ac_t""no" 1>&6
5199 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5200 echo "configure:5201: checking for main in -lgen" >&5
5201 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 ac_save_LIBS="$LIBS"
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5215 if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5217 eval "ac_cv_lib_$ac_lib_var=yes"
5219 echo "configure: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5222 eval "ac_cv_lib_$ac_lib_var=no"
5225 LIBS="$ac_save_LIBS"
5228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5232 cat >> confdefs.h <<EOF
5233 #define $ac_tr_lib 1
5239 echo "$ac_t""no" 1>&6
5246 echo $ac_n "checking for select""... $ac_c" 1>&6
5247 echo "configure:5248: checking for select" >&5
5248 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254 /* System header to define __stub macros and hopefully few prototypes,
5255 which can conflict with char select(); below. */
5257 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5265 /* The GNU C library defines this for functions which it implements
5266 to always fail with ENOSYS. Some functions are actually named
5267 something starting with __ and the normal name is an alias. */
5268 #if defined (__stub_select) || defined (__stub___select)
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5278 eval "ac_cv_func_select=yes"
5280 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5283 eval "ac_cv_func_select=no"
5288 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5289 echo "$ac_t""yes" 1>&6
5292 echo "$ac_t""no" 1>&6
5293 { echo "configure: error: select() required." 1>&2; exit 1; }
5297 if test "${ac_cv_header_winsock_h}" != yes; then
5298 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5299 echo "configure:5300: checking types of arguments for select()" >&5
5300 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5303 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5306 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5310 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5311 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 #ifdef HAVE_SYS_TYPES_H
5316 #include <sys/types.h>
5318 #ifdef HAVE_SYS_TIME_H
5319 #include <sys/time.h>
5321 #ifdef HAVE_SYS_SELECT_H
5322 #include <sys/select.h>
5324 #ifdef HAVE_SYS_SOCKET_H
5325 #include <sys/socket.h>
5327 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);
5332 if { (eval echo configure:5333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5334 ac_not_found=no ; break 3
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5351 if test "$ac_not_found" = yes; then
5352 ac_cv_func_select_arg1=int
5353 ac_cv_func_select_arg234='int *'
5354 ac_cv_func_select_arg5='struct timeval *'
5356 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5357 cat >> confdefs.h <<EOF
5358 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5361 cat >> confdefs.h <<EOF
5362 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5365 cat >> confdefs.h <<EOF
5366 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5373 for ac_hdr in regex.h
5375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_hdr" >&5
5378 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5387 { (eval echo configure:5388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5389 if test -z "$ac_err"; then
5391 eval "ac_cv_header_$ac_safe=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 eval "ac_cv_header_$ac_safe=no"
5401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5402 echo "$ac_t""yes" 1>&6
5403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5404 cat >> confdefs.h <<EOF
5405 #define $ac_tr_hdr 1
5409 echo "$ac_t""no" 1>&6
5413 if test "$ac_cv_header_regex_h" != yes ; then
5414 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5416 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5417 echo "configure:5418: checking for regfree" >&5
5418 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char regfree(); below. */
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5435 /* The GNU C library defines this for functions which it implements
5436 to always fail with ENOSYS. Some functions are actually named
5437 something starting with __ and the normal name is an alias. */
5438 #if defined (__stub_regfree) || defined (__stub___regfree)
5446 if { (eval echo configure:5447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5448 eval "ac_cv_func_regfree=yes"
5450 echo "configure: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5453 eval "ac_cv_func_regfree=no"
5458 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5459 echo "$ac_t""yes" 1>&6
5462 echo "$ac_t""no" 1>&6
5463 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5468 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5469 echo "configure:5470: checking for compatible POSIX regex" >&5
5470 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5474 if test "$cross_compiling" = yes; then
5475 ol_cv_c_posix_regex=cross
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5481 #include <sys/types.h>
5483 static char *pattern, *string;
5491 if(regcomp(&re, pattern, 0)) {
5495 string = "ALL MATCH";
5497 rc = regexec(&re, string, 0, (void*)0, 0);
5504 if { (eval echo configure:5505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5506 ol_cv_c_posix_regex=yes
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5511 ol_cv_c_posix_regex=no
5518 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5520 if test "$ol_cv_c_posix_regex" = no ; then
5521 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5525 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5526 echo "configure:5527: checking for res_query" >&5
5527 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 /* System header to define __stub macros and hopefully few prototypes,
5534 which can conflict with char res_query(); below. */
5536 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5544 /* The GNU C library defines this for functions which it implements
5545 to always fail with ENOSYS. Some functions are actually named
5546 something starting with __ and the normal name is an alias. */
5547 #if defined (__stub_res_query) || defined (__stub___res_query)
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 eval "ac_cv_func_res_query=yes"
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 eval "ac_cv_func_res_query=no"
5567 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5571 echo "$ac_t""no" 1>&6
5574 if test $ac_cv_func_res_query = no ; then
5575 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5576 echo "configure:5577: checking for res_query in -lbind" >&5
5577 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 ac_save_LIBS="$LIBS"
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5597 eval "ac_cv_lib_$ac_lib_var=yes"
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5602 eval "ac_cv_lib_$ac_lib_var=no"
5605 LIBS="$ac_save_LIBS"
5608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5609 echo "$ac_t""yes" 1>&6
5610 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5611 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5612 cat >> confdefs.h <<EOF
5613 #define $ac_tr_lib 1
5619 echo "$ac_t""no" 1>&6
5622 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5625 if test $ac_cv_func_res_query = no ; then
5626 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5627 echo "configure:5628: checking for __res_query in -lbind" >&5
5628 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 ac_save_LIBS="$LIBS"
5634 cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5637 /* Override any gcc2 internal prototype to avoid an error. */
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5646 if { (eval echo configure:5647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5648 eval "ac_cv_lib_$ac_lib_var=yes"
5650 echo "configure: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5653 eval "ac_cv_lib_$ac_lib_var=no"
5656 LIBS="$ac_save_LIBS"
5659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5660 echo "$ac_t""yes" 1>&6
5661 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5662 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5663 cat >> confdefs.h <<EOF
5664 #define $ac_tr_lib 1
5670 echo "$ac_t""no" 1>&6
5673 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5676 if test $ac_cv_func_res_query = no ; then
5677 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5678 echo "configure:5679: checking for res_query in -lresolv" >&5
5679 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 ac_save_LIBS="$LIBS"
5684 LIBS="-lresolv $LIBS"
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 /* Override any gcc2 internal prototype to avoid an error. */
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5699 eval "ac_cv_lib_$ac_lib_var=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_lib_$ac_lib_var=no"
5707 LIBS="$ac_save_LIBS"
5710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5712 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5714 cat >> confdefs.h <<EOF
5715 #define $ac_tr_lib 1
5718 LIBS="-lresolv $LIBS"
5721 echo "$ac_t""no" 1>&6
5724 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5727 if test "$ac_cv_func_res_query" = yes ; then
5728 cat >> confdefs.h <<\EOF
5729 #define HAVE_RES_QUERY 1
5733 if test $ol_enable_dnssrv != no ; then
5738 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5739 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5747 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5748 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5750 for ac_hdr in krb5.h
5752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5754 echo "configure:5755: checking for $ac_hdr" >&5
5755 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5764 { (eval echo configure:5765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5766 if test -z "$ac_err"; then
5768 eval "ac_cv_header_$ac_safe=yes"
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5774 eval "ac_cv_header_$ac_safe=no"
5778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5779 echo "$ac_t""yes" 1>&6
5780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5781 cat >> confdefs.h <<EOF
5782 #define $ac_tr_hdr 1
5786 echo "$ac_t""no" 1>&6
5791 if test $ac_cv_header_krb5_h = yes ; then
5792 for ac_hdr in heim_err.h
5794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5796 echo "configure:5797: checking for $ac_hdr" >&5
5797 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5806 { (eval echo configure:5807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5808 if test -z "$ac_err"; then
5810 eval "ac_cv_header_$ac_safe=yes"
5813 echo "configure: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5816 eval "ac_cv_header_$ac_safe=no"
5820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5823 cat >> confdefs.h <<EOF
5824 #define $ac_tr_hdr 1
5828 echo "$ac_t""no" 1>&6
5832 if test $ac_cv_header_heim_err_h = yes ; then
5838 if test $krb5_impl = mit; then
5839 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5840 echo "configure:5841: checking for main in -lkrb5" >&5
5841 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5842 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 ac_save_LIBS="$LIBS"
5846 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5855 if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857 eval "ac_cv_lib_$ac_lib_var=yes"
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5862 eval "ac_cv_lib_$ac_lib_var=no"
5865 LIBS="$ac_save_LIBS"
5868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5871 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5873 echo "$ac_t""no" 1>&6
5878 elif test $krb5_impl = heimdal; then
5879 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5880 echo "configure:5881: checking for main in -lkrb5" >&5
5881 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5882 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 ac_save_LIBS="$LIBS"
5886 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5895 if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5897 eval "ac_cv_lib_$ac_lib_var=yes"
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5902 eval "ac_cv_lib_$ac_lib_var=no"
5905 LIBS="$ac_save_LIBS"
5908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5909 echo "$ac_t""yes" 1>&6
5911 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5913 echo "$ac_t""no" 1>&6
5918 cat >> confdefs.h <<\EOF
5919 #define HAVE_HEIMDAL_KERBEROS 1
5924 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5927 if test $have_krb5 = yes ; then
5930 cat >> confdefs.h <<\EOF
5935 if test $ol_enable_kpasswd != no ; then
5936 ol_link_kpasswd=yes;
5939 if test $ol_with_kerberos = k5only ; then
5940 ol_with_kerberos=found
5943 elif test $ol_with_kerberos != auto ; then
5944 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5950 if test $ol_link_krb5 = yes -a \
5951 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5953 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5957 echo "configure:5958: checking for $ac_hdr" >&5
5958 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5967 { (eval echo configure:5968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5969 if test -z "$ac_err"; then
5971 eval "ac_cv_header_$ac_safe=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_header_$ac_safe=no"
5981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_hdr 1
5989 echo "$ac_t""no" 1>&6
5994 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5995 if test $krb5_impl = mit; then
5996 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5997 echo "configure:5998: checking for main in -lkrb4" >&5
5998 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 ac_save_LIBS="$LIBS"
6003 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6014 eval "ac_cv_lib_$ac_lib_var=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6019 eval "ac_cv_lib_$ac_lib_var=no"
6022 LIBS="$ac_save_LIBS"
6025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6026 echo "$ac_t""yes" 1>&6
6028 KRB4_LIBS="-lkrb4 -ldes425"
6030 echo "$ac_t""no" 1>&6
6035 elif test $krb5_impl = heimdal; then
6036 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6037 echo "configure:6038: checking for main in -lkrb4" >&5
6038 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6039 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 ac_save_LIBS="$LIBS"
6043 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6054 eval "ac_cv_lib_$ac_lib_var=yes"
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 eval "ac_cv_lib_$ac_lib_var=no"
6062 LIBS="$ac_save_LIBS"
6065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6070 echo "$ac_t""no" 1>&6
6077 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6080 if test $have_k425 = yes ; then
6081 ol_with_kerberos=found
6084 cat >> confdefs.h <<\EOF
6085 #define HAVE_KRB425 1
6088 cat >> confdefs.h <<\EOF
6093 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6094 echo "configure:6095: checking for des_debug in Kerberos libraries" >&5
6095 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6100 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6105 #include <kerberosIV/krb.h>
6106 #include <kerberosIV/des.h>
6107 extern int des_debug;
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6117 ol_cv_var_des_debug=yes
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 ol_cv_var_des_debug=no
6129 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6131 if test $ol_cv_var_des_debug = yes ; then
6132 cat >> confdefs.h <<\EOF
6133 #define HAVE_DES_DEBUG 1
6143 if test $ol_link_krb5 = yes ; then
6144 ol_with_kerberos=found
6147 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6148 -o $ol_with_kerberos = kth ; then
6150 for ac_hdr in krb.h des.h krb-archaeology.h
6152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_hdr" >&5
6155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6164 { (eval echo configure:6165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6166 if test -z "$ac_err"; then
6168 eval "ac_cv_header_$ac_safe=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_header_$ac_safe=no"
6178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_hdr 1
6186 echo "$ac_t""no" 1>&6
6191 if test $ac_cv_header_krb_h = yes ; then
6192 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6193 echo "configure:6194: checking for main in -lkrb" >&5
6194 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6195 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 ac_save_LIBS="$LIBS"
6199 LIBS="-lkrb -ldes $LIBS"
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6208 if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6210 eval "ac_cv_lib_$ac_lib_var=yes"
6212 echo "configure: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 eval "ac_cv_lib_$ac_lib_var=no"
6218 LIBS="$ac_save_LIBS"
6221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6225 echo "$ac_t""no" 1>&6
6230 if test $have_k4 = yes ; then
6231 ol_with_kerberos=found
6234 cat >> confdefs.h <<\EOF
6239 KRB4_LIBS="-lkrb -ldes"
6241 if test $ac_cv_header_krb_archaeology_h = yes ; then
6242 cat >> confdefs.h <<\EOF
6243 #define HAVE_KTH_KERBEROS 1
6251 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6252 ol_link_kpasswd=yes;
6255 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE_KERBEROS 1
6261 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6262 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6266 if test $ol_with_tls != no ; then
6267 for ac_hdr in openssl/ssl.h ssl.h
6269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_hdr" >&5
6272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6281 { (eval echo configure:6282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6283 if test -z "$ac_err"; then
6285 eval "ac_cv_header_$ac_safe=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_header_$ac_safe=no"
6295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6298 cat >> confdefs.h <<EOF
6299 #define $ac_tr_hdr 1
6303 echo "$ac_t""no" 1>&6
6308 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6309 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6310 echo "configure:6311: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6311 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 ac_save_LIBS="$LIBS"
6316 LIBS="-lssl -lcrypto $LIBS"
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6323 char SSLeay_add_ssl_algorithms();
6326 SSLeay_add_ssl_algorithms()
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6331 eval "ac_cv_lib_$ac_lib_var=yes"
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6336 eval "ac_cv_lib_$ac_lib_var=no"
6339 LIBS="$ac_save_LIBS"
6342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6347 echo "$ac_t""no" 1>&6
6352 if test $have_ssleay = no ; then
6353 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6354 echo "configure:6355: checking for SSL_library_init in -lssl" >&5
6355 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6357 echo $ac_n "(cached) $ac_c" 1>&6
6359 ac_save_LIBS="$LIBS"
6360 LIBS="-lssl -lcrypto $LIBS"
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6367 char SSL_library_init();
6373 if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 eval "ac_cv_lib_$ac_lib_var=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 eval "ac_cv_lib_$ac_lib_var=no"
6383 LIBS="$ac_save_LIBS"
6386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6391 echo "$ac_t""no" 1>&6
6397 if test $have_ssleay = no ; then
6398 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6399 echo "configure:6400: checking for ssl3_accept in -lssl" >&5
6400 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6401 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 ac_save_LIBS="$LIBS"
6405 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420 eval "ac_cv_lib_$ac_lib_var=yes"
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 eval "ac_cv_lib_$ac_lib_var=no"
6428 LIBS="$ac_save_LIBS"
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6436 echo "$ac_t""no" 1>&6
6442 if test $have_ssleay = yes ; then
6446 cat >> confdefs.h <<\EOF
6447 #define HAVE_SSLEAY 1
6451 if test $need_rsaref = yes; then
6452 cat >> confdefs.h <<\EOF
6453 #define HAVE_RSAREF 1
6457 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6459 TLS_LIBS="-lssl -lcrypto"
6465 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6468 if test $ol_link_tls = yes ; then
6469 cat >> confdefs.h <<\EOF
6474 elif test $ol_with_tls = auto ; then
6475 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6476 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6478 elif test $ol_with_tls != no ; then
6479 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6484 gethostbyname_r gethostbyaddr_r \
6487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6488 echo "configure:6489: checking for $ac_func" >&5
6489 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6490 echo $ac_n "(cached) $ac_c" 1>&6
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 /* System header to define __stub macros and hopefully few prototypes,
6496 which can conflict with char $ac_func(); below. */
6498 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 eval "ac_cv_func_$ac_func=yes"
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6524 eval "ac_cv_func_$ac_func=no"
6529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6530 echo "$ac_t""yes" 1>&6
6531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6532 cat >> confdefs.h <<EOF
6533 #define $ac_tr_func 1
6537 echo "$ac_t""no" 1>&6
6542 if test "$ac_cv_func_ctime_r" = no ; then
6543 ol_cv_func_ctime_r_nargs=0
6545 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6546 echo "configure:6547: checking number of arguments of ctime_r" >&5
6547 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6555 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6558 if { (eval echo configure:6559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6560 ol_cv_func_ctime_r_nargs3=yes
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 ol_cv_func_ctime_r_nargs3=no
6569 cat > conftest.$ac_ext <<EOF
6570 #line 6571 "configure"
6571 #include "confdefs.h"
6574 time_t ti; char *buffer; ctime_r(&ti,buffer);
6577 if { (eval echo configure:6578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6579 ol_cv_func_ctime_r_nargs2=yes
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 ol_cv_func_ctime_r_nargs2=no
6588 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6589 $ol_cv_func_ctime_r_nargs2 = no ; then
6591 ol_cv_func_ctime_r_nargs=3
6593 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6594 $ol_cv_func_ctime_r_nargs2 = yes ; then
6596 ol_cv_func_ctime_r_nargs=2
6599 ol_cv_func_ctime_r_nargs=0
6604 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6606 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6607 cat >> confdefs.h <<EOF
6608 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6615 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6616 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6617 echo "configure:6618: checking number of arguments of gethostbyname_r" >&5
6618 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 #include <sys/types.h>
6625 #include <sys/socket.h>
6626 #include <netinet/in.h>
6628 #define BUFSIZE (sizeof(struct hostent)+10)
6630 struct hostent hent; char buffer[BUFSIZE];
6631 int bufsize=BUFSIZE;int h_errno;
6632 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6633 buffer, bufsize, &h_errno);
6636 if { (eval echo configure:6637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6638 ol_cv_func_gethostbyname_r_nargs5=yes
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 ol_cv_func_gethostbyname_r_nargs5=no
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 #include <sys/types.h>
6651 #include <sys/socket.h>
6652 #include <netinet/in.h>
6654 #define BUFSIZE (sizeof(struct hostent)+10)
6656 struct hostent hent;struct hostent *rhent;
6657 char buffer[BUFSIZE];
6658 int bufsize=BUFSIZE;int h_errno;
6659 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6663 if { (eval echo configure:6664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6665 ol_cv_func_gethostbyname_r_nargs6=yes
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6670 ol_cv_func_gethostbyname_r_nargs6=no
6674 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6675 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6677 ol_cv_func_gethostbyname_r_nargs=5
6679 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6680 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6682 ol_cv_func_gethostbyname_r_nargs=6
6685 ol_cv_func_gethostbyname_r_nargs=0
6690 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6691 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6692 cat >> confdefs.h <<EOF
6693 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6699 ol_cv_func_gethostbyname_r_nargs=0
6702 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6703 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6704 echo "configure:6705: checking number of arguments of gethostbyaddr_r" >&5
6705 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6712 #include <sys/socket.h>
6713 #include <netinet/in.h>
6715 #define BUFSIZE (sizeof(struct hostent)+10)
6717 struct hostent hent; char buffer[BUFSIZE];
6719 size_t alen=sizeof(struct in_addr);
6720 int bufsize=BUFSIZE;int h_errno;
6721 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6722 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6725 if { (eval echo configure:6726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6727 ol_cv_func_gethostbyaddr_r_nargs7=yes
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 ol_cv_func_gethostbyaddr_r_nargs7=no
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;
6746 struct hostent *rhent; char buffer[BUFSIZE];
6748 size_t alen=sizeof(struct in_addr);
6749 int bufsize=BUFSIZE;int h_errno;
6750 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6751 alen, AF_INET, &hent, buffer, bufsize,
6755 if { (eval echo configure:6756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6757 ol_cv_func_gethostbyaddr_r_nargs8=yes
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 ol_cv_func_gethostbyaddr_r_nargs8=no
6766 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6767 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6769 ol_cv_func_gethostbyaddr_r_nargs=7
6771 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6772 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6774 ol_cv_func_gethostbyaddr_r_nargs=8
6777 ol_cv_func_gethostbyaddr_r_nargs=0
6782 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6783 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6784 cat >> confdefs.h <<EOF
6785 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6791 ol_cv_func_gethostbyaddr_r_nargs=0
6794 if test "$ac_cv_func_ctime_r" = yes \
6795 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6796 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6797 -a "$ac_cv_func_gethostbyname_r" = yes \
6798 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6799 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6800 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6801 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6802 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6805 cat >> confdefs.h <<\EOF
6806 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6813 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6814 -o $ol_with_threads = nt ; then
6817 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6818 echo "configure:6819: checking for NT Threads" >&5
6819 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6823 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6824 echo "configure:6825: checking for _beginthread" >&5
6825 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char _beginthread(); below. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6837 char _beginthread();
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 eval "ac_cv_func__beginthread=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_func__beginthread=no"
6865 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ol_cv_nt_threads=yes
6869 echo "$ac_t""no" 1>&6
6876 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6878 if test $ol_cv_nt_threads = yes ; then
6879 cat >> confdefs.h <<\EOF
6880 #define HAVE_NT_THREADS 1
6886 if test "$ol_cv_nt_threads" = yes ; then
6888 ol_with_threads=found
6889 ol_with_yielding_select=yes
6891 cat >> confdefs.h <<\EOF
6892 #define HAVE_NT_SERVICE_MANAGER 1
6895 cat >> confdefs.h <<\EOF
6896 #define HAVE_NT_EVENT_LOG 1
6901 if test $ol_with_threads = nt ; then
6902 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6906 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6907 -o $ol_with_threads = posix ; then
6909 for ac_hdr in pthread.h
6911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6913 echo "configure:6914: checking for $ac_hdr" >&5
6914 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6923 { (eval echo configure:6924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6925 if test -z "$ac_err"; then
6927 eval "ac_cv_header_$ac_safe=yes"
6930 echo "configure: failed program was:" >&5
6931 cat conftest.$ac_ext >&5
6933 eval "ac_cv_header_$ac_safe=no"
6937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6938 echo "$ac_t""yes" 1>&6
6939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6940 cat >> confdefs.h <<EOF
6941 #define $ac_tr_hdr 1
6945 echo "$ac_t""no" 1>&6
6950 if test $ac_cv_header_pthread_h = yes ; then
6951 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6952 echo "configure:6953: checking POSIX thread version" >&5
6953 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6961 # include <pthread.h>
6962 /* this check could be improved */
6963 # ifdef PTHREAD_ONCE_INIT
6964 pthread_version_final;
6968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6969 egrep "pthread_version_final" >/dev/null 2>&1; then
6971 ol_pthread_final=yes
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6983 # include <pthread.h>
6984 /* this check could be improved */
6985 # ifdef pthread_once_init
6986 pthread_version_draft4;
6990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6991 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6993 ol_pthread_draft4=yes
6996 ol_pthread_draft4=no
7001 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7002 ol_cv_pthread_version=final
7003 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7004 ol_cv_pthread_version=draft4
7006 ol_cv_pthread_version=unknown
7011 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7014 if test $ol_cv_pthread_version = final ; then
7015 cat >> confdefs.h <<\EOF
7016 #define HAVE_PTHREADS_FINAL 1
7019 elif test $ol_cv_pthread_version = draft4 ; then
7020 cat >> confdefs.h <<\EOF
7021 #define HAVE_PTHREADS_D4 1
7025 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7028 # consider threads found
7029 ol_with_threads=found
7032 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7033 echo "configure:7034: checking for LinuxThreads pthread.h" >&5
7034 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 #include <pthread.h>
7042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7043 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7045 ol_cv_header_linux_threads=yes
7048 ol_cv_header_linux_threads=no
7055 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7056 if test $ol_cv_header_linux_threads = yes; then
7057 cat >> confdefs.h <<\EOF
7058 #define HAVE_LINUX_THREADS 1
7064 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7065 echo "configure:7066: checking for GNU Pth pthread.h" >&5
7066 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7072 #include <pthread.h>
7073 #ifdef _POSIX_THREAD_IS_GNU_PTH
7078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7079 egrep "__gnu_pth__" >/dev/null 2>&1; then
7081 ol_cv_header_gnu_pth_pthread_h=yes
7084 ol_cv_header_gnu_pth_pthread_h=no
7091 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7094 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7095 for ac_hdr in sched.h
7097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7099 echo "configure:7100: checking for $ac_hdr" >&5
7100 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7109 { (eval echo configure:7110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7111 if test -z "$ac_err"; then
7113 eval "ac_cv_header_$ac_safe=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 eval "ac_cv_header_$ac_safe=no"
7123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7124 echo "$ac_t""yes" 1>&6
7125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7126 cat >> confdefs.h <<EOF
7127 #define $ac_tr_hdr 1
7131 echo "$ac_t""no" 1>&6
7138 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7139 echo "configure:7140: checking for pthread_create in default libraries" >&5
7140 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7144 if test "$cross_compiling" = yes; then
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* pthread test headers */
7149 #include <pthread.h>
7151 #define NULL (void*)0
7154 static void *task(p)
7157 return (void *) (p == NULL);
7162 /* pthread test function */
7165 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7166 /* This system (e.g. AIX) defaults detached; must override */
7167 pthread_attr_t attr;
7169 status = pthread_attr_init(&attr);
7170 if( status ) exit( status );
7172 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7173 if( status ) exit( status );
7177 #if HAVE_PTHREADS_D4
7178 #define ATTR pthread_attr_default
7183 /* make sure pthread_create() isn't just a stub */
7184 status = pthread_create(&t, ATTR, task, NULL);
7185 if( status ) exit( status );
7187 /* make sure pthread_detach() isn't just a stub */
7188 #if HAVE_PTHREADS_D4
7189 status = pthread_detach( &t );
7191 status = pthread_detach( t );
7194 #ifdef HAVE_LINUX_THREADS
7195 pthread_kill_other_threads_np();
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 ol_cv_pthread_create=yes
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 ol_cv_pthread_create=no
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* pthread test headers */
7217 #include <pthread.h>
7219 #define NULL (void*)0
7222 static void *task(p)
7225 return (void *) (p == NULL);
7229 int main(argc, argv)
7234 /* pthread test function */
7237 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7238 /* This system (e.g. AIX) defaults detached; must override */
7239 pthread_attr_t attr;
7241 status = pthread_attr_init(&attr);
7242 if( status ) exit( status );
7244 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7245 if( status ) exit( status );
7249 #if HAVE_PTHREADS_D4
7250 #define ATTR pthread_attr_default
7255 /* make sure pthread_create() isn't just a stub */
7256 status = pthread_create(&t, ATTR, task, NULL);
7257 if( status ) exit( status );
7259 /* make sure pthread_detach() isn't just a stub */
7260 #if HAVE_PTHREADS_D4
7261 status = pthread_detach( &t );
7263 status = pthread_detach( t );
7266 #ifdef HAVE_LINUX_THREADS
7267 pthread_kill_other_threads_np();
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7277 ol_cv_pthread_create=yes
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7282 ol_cv_pthread_create=no
7289 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7291 if test $ol_cv_pthread_create != no ; then
7292 ol_link_threads=posix
7296 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7297 if test "$ol_link_threads" = no ; then
7299 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7300 echo "configure:7301: checking for pthread link with -kthread" >&5
7301 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7307 LIBS="-kthread $LIBS"
7309 if test "$cross_compiling" = yes; then
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 /* pthread test headers */
7314 #include <pthread.h>
7316 #define NULL (void*)0
7319 static void *task(p)
7322 return (void *) (p == NULL);
7327 /* pthread test function */
7330 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7331 /* This system (e.g. AIX) defaults detached; must override */
7332 pthread_attr_t attr;
7334 status = pthread_attr_init(&attr);
7335 if( status ) exit( status );
7337 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7338 if( status ) exit( status );
7342 #if HAVE_PTHREADS_D4
7343 #define ATTR pthread_attr_default
7348 /* make sure pthread_create() isn't just a stub */
7349 status = pthread_create(&t, ATTR, task, NULL);
7350 if( status ) exit( status );
7352 /* make sure pthread_detach() isn't just a stub */
7353 #if HAVE_PTHREADS_D4
7354 status = pthread_detach( &t );
7356 status = pthread_detach( t );
7359 #ifdef HAVE_LINUX_THREADS
7360 pthread_kill_other_threads_np();
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7369 ol_cv_pthread_kthread=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 ol_cv_pthread_kthread=no
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 /* pthread test headers */
7382 #include <pthread.h>
7384 #define NULL (void*)0
7387 static void *task(p)
7390 return (void *) (p == NULL);
7394 int main(argc, argv)
7399 /* pthread test function */
7402 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7403 /* This system (e.g. AIX) defaults detached; must override */
7404 pthread_attr_t attr;
7406 status = pthread_attr_init(&attr);
7407 if( status ) exit( status );
7409 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7410 if( status ) exit( status );
7414 #if HAVE_PTHREADS_D4
7415 #define ATTR pthread_attr_default
7420 /* make sure pthread_create() isn't just a stub */
7421 status = pthread_create(&t, ATTR, task, NULL);
7422 if( status ) exit( status );
7424 /* make sure pthread_detach() isn't just a stub */
7425 #if HAVE_PTHREADS_D4
7426 status = pthread_detach( &t );
7428 status = pthread_detach( t );
7431 #ifdef HAVE_LINUX_THREADS
7432 pthread_kill_other_threads_np();
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7442 ol_cv_pthread_kthread=yes
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 ol_cv_pthread_kthread=no
7458 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7460 if test $ol_cv_pthread_kthread = yes ; then
7461 ol_link_pthreads="-kthread"
7462 ol_link_threads=posix
7466 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7467 if test "$ol_link_threads" = no ; then
7469 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7470 echo "configure:7471: checking for pthread link with -pthread" >&5
7471 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7477 LIBS="-pthread $LIBS"
7479 if test "$cross_compiling" = yes; then
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* pthread test headers */
7484 #include <pthread.h>
7486 #define NULL (void*)0
7489 static void *task(p)
7492 return (void *) (p == NULL);
7497 /* pthread test function */
7500 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7501 /* This system (e.g. AIX) defaults detached; must override */
7502 pthread_attr_t attr;
7504 status = pthread_attr_init(&attr);
7505 if( status ) exit( status );
7507 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7508 if( status ) exit( status );
7512 #if HAVE_PTHREADS_D4
7513 #define ATTR pthread_attr_default
7518 /* make sure pthread_create() isn't just a stub */
7519 status = pthread_create(&t, ATTR, task, NULL);
7520 if( status ) exit( status );
7522 /* make sure pthread_detach() isn't just a stub */
7523 #if HAVE_PTHREADS_D4
7524 status = pthread_detach( &t );
7526 status = pthread_detach( t );
7529 #ifdef HAVE_LINUX_THREADS
7530 pthread_kill_other_threads_np();
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7539 ol_cv_pthread_pthread=yes
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7544 ol_cv_pthread_pthread=no
7548 cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 /* pthread test headers */
7552 #include <pthread.h>
7554 #define NULL (void*)0
7557 static void *task(p)
7560 return (void *) (p == NULL);
7564 int main(argc, argv)
7569 /* pthread test function */
7572 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7573 /* This system (e.g. AIX) defaults detached; must override */
7574 pthread_attr_t attr;
7576 status = pthread_attr_init(&attr);
7577 if( status ) exit( status );
7579 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7580 if( status ) exit( status );
7584 #if HAVE_PTHREADS_D4
7585 #define ATTR pthread_attr_default
7590 /* make sure pthread_create() isn't just a stub */
7591 status = pthread_create(&t, ATTR, task, NULL);
7592 if( status ) exit( status );
7594 /* make sure pthread_detach() isn't just a stub */
7595 #if HAVE_PTHREADS_D4
7596 status = pthread_detach( &t );
7598 status = pthread_detach( t );
7601 #ifdef HAVE_LINUX_THREADS
7602 pthread_kill_other_threads_np();
7610 if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7612 ol_cv_pthread_pthread=yes
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7617 ol_cv_pthread_pthread=no
7628 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7630 if test $ol_cv_pthread_pthread = yes ; then
7631 ol_link_pthreads="-pthread"
7632 ol_link_threads=posix
7636 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7637 if test "$ol_link_threads" = no ; then
7639 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7640 echo "configure:7641: checking for pthread link with -pthreads" >&5
7641 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7647 LIBS="-pthreads $LIBS"
7649 if test "$cross_compiling" = yes; then
7650 cat > conftest.$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 /* pthread test headers */
7654 #include <pthread.h>
7656 #define NULL (void*)0
7659 static void *task(p)
7662 return (void *) (p == NULL);
7667 /* pthread test function */
7670 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7671 /* This system (e.g. AIX) defaults detached; must override */
7672 pthread_attr_t attr;
7674 status = pthread_attr_init(&attr);
7675 if( status ) exit( status );
7677 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7678 if( status ) exit( status );
7682 #if HAVE_PTHREADS_D4
7683 #define ATTR pthread_attr_default
7688 /* make sure pthread_create() isn't just a stub */
7689 status = pthread_create(&t, ATTR, task, NULL);
7690 if( status ) exit( status );
7692 /* make sure pthread_detach() isn't just a stub */
7693 #if HAVE_PTHREADS_D4
7694 status = pthread_detach( &t );
7696 status = pthread_detach( t );
7699 #ifdef HAVE_LINUX_THREADS
7700 pthread_kill_other_threads_np();
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7709 ol_cv_pthread_pthreads=yes
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 ol_cv_pthread_pthreads=no
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 /* pthread test headers */
7722 #include <pthread.h>
7724 #define NULL (void*)0
7727 static void *task(p)
7730 return (void *) (p == NULL);
7734 int main(argc, argv)
7739 /* pthread test function */
7742 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7743 /* This system (e.g. AIX) defaults detached; must override */
7744 pthread_attr_t attr;
7746 status = pthread_attr_init(&attr);
7747 if( status ) exit( status );
7749 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7750 if( status ) exit( status );
7754 #if HAVE_PTHREADS_D4
7755 #define ATTR pthread_attr_default
7760 /* make sure pthread_create() isn't just a stub */
7761 status = pthread_create(&t, ATTR, task, NULL);
7762 if( status ) exit( status );
7764 /* make sure pthread_detach() isn't just a stub */
7765 #if HAVE_PTHREADS_D4
7766 status = pthread_detach( &t );
7768 status = pthread_detach( t );
7771 #ifdef HAVE_LINUX_THREADS
7772 pthread_kill_other_threads_np();
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7782 ol_cv_pthread_pthreads=yes
7784 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7787 ol_cv_pthread_pthreads=no
7798 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7800 if test $ol_cv_pthread_pthreads = yes ; then
7801 ol_link_pthreads="-pthreads"
7802 ol_link_threads=posix
7806 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7807 if test "$ol_link_threads" = no ; then
7809 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7810 echo "configure:7811: checking for pthread link with -mthreads" >&5
7811 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7817 LIBS="-mthreads $LIBS"
7819 if test "$cross_compiling" = yes; then
7820 cat > conftest.$ac_ext <<EOF
7821 #line 7822 "configure"
7822 #include "confdefs.h"
7823 /* pthread test headers */
7824 #include <pthread.h>
7826 #define NULL (void*)0
7829 static void *task(p)
7832 return (void *) (p == NULL);
7837 /* pthread test function */
7840 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7841 /* This system (e.g. AIX) defaults detached; must override */
7842 pthread_attr_t attr;
7844 status = pthread_attr_init(&attr);
7845 if( status ) exit( status );
7847 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7848 if( status ) exit( status );
7852 #if HAVE_PTHREADS_D4
7853 #define ATTR pthread_attr_default
7858 /* make sure pthread_create() isn't just a stub */
7859 status = pthread_create(&t, ATTR, task, NULL);
7860 if( status ) exit( status );
7862 /* make sure pthread_detach() isn't just a stub */
7863 #if HAVE_PTHREADS_D4
7864 status = pthread_detach( &t );
7866 status = pthread_detach( t );
7869 #ifdef HAVE_LINUX_THREADS
7870 pthread_kill_other_threads_np();
7877 if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7879 ol_cv_pthread_mthreads=yes
7881 echo "configure: failed program was:" >&5
7882 cat conftest.$ac_ext >&5
7884 ol_cv_pthread_mthreads=no
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 /* pthread test headers */
7892 #include <pthread.h>
7894 #define NULL (void*)0
7897 static void *task(p)
7900 return (void *) (p == NULL);
7904 int main(argc, argv)
7909 /* pthread test function */
7912 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7913 /* This system (e.g. AIX) defaults detached; must override */
7914 pthread_attr_t attr;
7916 status = pthread_attr_init(&attr);
7917 if( status ) exit( status );
7919 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7920 if( status ) exit( status );
7924 #if HAVE_PTHREADS_D4
7925 #define ATTR pthread_attr_default
7930 /* make sure pthread_create() isn't just a stub */
7931 status = pthread_create(&t, ATTR, task, NULL);
7932 if( status ) exit( status );
7934 /* make sure pthread_detach() isn't just a stub */
7935 #if HAVE_PTHREADS_D4
7936 status = pthread_detach( &t );
7938 status = pthread_detach( t );
7941 #ifdef HAVE_LINUX_THREADS
7942 pthread_kill_other_threads_np();
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7952 ol_cv_pthread_mthreads=yes
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7957 ol_cv_pthread_mthreads=no
7968 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7970 if test $ol_cv_pthread_mthreads = yes ; then
7971 ol_link_pthreads="-mthreads"
7972 ol_link_threads=posix
7976 # Pthread try link: -thread (ol_cv_pthread_thread)
7977 if test "$ol_link_threads" = no ; then
7979 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7980 echo "configure:7981: checking for pthread link with -thread" >&5
7981 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7987 LIBS="-thread $LIBS"
7989 if test "$cross_compiling" = yes; then
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* pthread test headers */
7994 #include <pthread.h>
7996 #define NULL (void*)0
7999 static void *task(p)
8002 return (void *) (p == NULL);
8007 /* pthread test function */
8010 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8011 /* This system (e.g. AIX) defaults detached; must override */
8012 pthread_attr_t attr;
8014 status = pthread_attr_init(&attr);
8015 if( status ) exit( status );
8017 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8018 if( status ) exit( status );
8022 #if HAVE_PTHREADS_D4
8023 #define ATTR pthread_attr_default
8028 /* make sure pthread_create() isn't just a stub */
8029 status = pthread_create(&t, ATTR, task, NULL);
8030 if( status ) exit( status );
8032 /* make sure pthread_detach() isn't just a stub */
8033 #if HAVE_PTHREADS_D4
8034 status = pthread_detach( &t );
8036 status = pthread_detach( t );
8039 #ifdef HAVE_LINUX_THREADS
8040 pthread_kill_other_threads_np();
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8049 ol_cv_pthread_thread=yes
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 ol_cv_pthread_thread=no
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* pthread test headers */
8062 #include <pthread.h>
8064 #define NULL (void*)0
8067 static void *task(p)
8070 return (void *) (p == NULL);
8074 int main(argc, argv)
8079 /* pthread test function */
8082 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8083 /* This system (e.g. AIX) defaults detached; must override */
8084 pthread_attr_t attr;
8086 status = pthread_attr_init(&attr);
8087 if( status ) exit( status );
8089 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8090 if( status ) exit( status );
8094 #if HAVE_PTHREADS_D4
8095 #define ATTR pthread_attr_default
8100 /* make sure pthread_create() isn't just a stub */
8101 status = pthread_create(&t, ATTR, task, NULL);
8102 if( status ) exit( status );
8104 /* make sure pthread_detach() isn't just a stub */
8105 #if HAVE_PTHREADS_D4
8106 status = pthread_detach( &t );
8108 status = pthread_detach( t );
8111 #ifdef HAVE_LINUX_THREADS
8112 pthread_kill_other_threads_np();
8120 if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8122 ol_cv_pthread_thread=yes
8124 echo "configure: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8127 ol_cv_pthread_thread=no
8138 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8140 if test $ol_cv_pthread_thread = yes ; then
8141 ol_link_pthreads="-thread"
8142 ol_link_threads=posix
8147 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8148 if test "$ol_link_threads" = no ; then
8149 # try -lpthread -lmach -lexc -lc_r
8150 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8151 echo "configure:8152: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8152 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8158 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8160 if test "$cross_compiling" = yes; then
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 /* pthread test headers */
8165 #include <pthread.h>
8167 #define NULL (void*)0
8170 static void *task(p)
8173 return (void *) (p == NULL);
8178 /* pthread test function */
8181 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8182 /* This system (e.g. AIX) defaults detached; must override */
8183 pthread_attr_t attr;
8185 status = pthread_attr_init(&attr);
8186 if( status ) exit( status );
8188 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8189 if( status ) exit( status );
8193 #if HAVE_PTHREADS_D4
8194 #define ATTR pthread_attr_default
8199 /* make sure pthread_create() isn't just a stub */
8200 status = pthread_create(&t, ATTR, task, NULL);
8201 if( status ) exit( status );
8203 /* make sure pthread_detach() isn't just a stub */
8204 #if HAVE_PTHREADS_D4
8205 status = pthread_detach( &t );
8207 status = pthread_detach( t );
8210 #ifdef HAVE_LINUX_THREADS
8211 pthread_kill_other_threads_np();
8218 if { (eval echo configure:8219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8220 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8222 echo "configure: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8225 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 /* pthread test headers */
8233 #include <pthread.h>
8235 #define NULL (void*)0
8238 static void *task(p)
8241 return (void *) (p == NULL);
8245 int main(argc, argv)
8250 /* pthread test function */
8253 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8254 /* This system (e.g. AIX) defaults detached; must override */
8255 pthread_attr_t attr;
8257 status = pthread_attr_init(&attr);
8258 if( status ) exit( status );
8260 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8261 if( status ) exit( status );
8265 #if HAVE_PTHREADS_D4
8266 #define ATTR pthread_attr_default
8271 /* make sure pthread_create() isn't just a stub */
8272 status = pthread_create(&t, ATTR, task, NULL);
8273 if( status ) exit( status );
8275 /* make sure pthread_detach() isn't just a stub */
8276 #if HAVE_PTHREADS_D4
8277 status = pthread_detach( &t );
8279 status = pthread_detach( t );
8282 #ifdef HAVE_LINUX_THREADS
8283 pthread_kill_other_threads_np();
8291 if { (eval echo configure:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8293 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8295 echo "configure: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8298 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8309 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8311 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8312 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8313 ol_link_threads=posix
8317 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8318 if test "$ol_link_threads" = no ; then
8319 # try -lpthread -lmach -lexc
8320 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8321 echo "configure:8322: checking for pthread link with -lpthread -lmach -lexc" >&5
8322 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8328 LIBS="-lpthread -lmach -lexc $LIBS"
8330 if test "$cross_compiling" = yes; then
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 /* pthread test headers */
8335 #include <pthread.h>
8337 #define NULL (void*)0
8340 static void *task(p)
8343 return (void *) (p == NULL);
8348 /* pthread test function */
8351 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8352 /* This system (e.g. AIX) defaults detached; must override */
8353 pthread_attr_t attr;
8355 status = pthread_attr_init(&attr);
8356 if( status ) exit( status );
8358 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8359 if( status ) exit( status );
8363 #if HAVE_PTHREADS_D4
8364 #define ATTR pthread_attr_default
8369 /* make sure pthread_create() isn't just a stub */
8370 status = pthread_create(&t, ATTR, task, NULL);
8371 if( status ) exit( status );
8373 /* make sure pthread_detach() isn't just a stub */
8374 #if HAVE_PTHREADS_D4
8375 status = pthread_detach( &t );
8377 status = pthread_detach( t );
8380 #ifdef HAVE_LINUX_THREADS
8381 pthread_kill_other_threads_np();
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 ol_cv_pthread_lpthread_lmach_lexc=yes
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 ol_cv_pthread_lpthread_lmach_lexc=no
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* pthread test headers */
8403 #include <pthread.h>
8405 #define NULL (void*)0
8408 static void *task(p)
8411 return (void *) (p == NULL);
8415 int main(argc, argv)
8420 /* pthread test function */
8423 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8424 /* This system (e.g. AIX) defaults detached; must override */
8425 pthread_attr_t attr;
8427 status = pthread_attr_init(&attr);
8428 if( status ) exit( status );
8430 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8431 if( status ) exit( status );
8435 #if HAVE_PTHREADS_D4
8436 #define ATTR pthread_attr_default
8441 /* make sure pthread_create() isn't just a stub */
8442 status = pthread_create(&t, ATTR, task, NULL);
8443 if( status ) exit( status );
8445 /* make sure pthread_detach() isn't just a stub */
8446 #if HAVE_PTHREADS_D4
8447 status = pthread_detach( &t );
8449 status = pthread_detach( t );
8452 #ifdef HAVE_LINUX_THREADS
8453 pthread_kill_other_threads_np();
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8463 ol_cv_pthread_lpthread_lmach_lexc=yes
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8468 ol_cv_pthread_lpthread_lmach_lexc=no
8479 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8481 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8482 ol_link_pthreads="-lpthread -lmach -lexc"
8483 ol_link_threads=posix
8488 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8489 if test "$ol_link_threads" = no ; then
8490 # try -lpthread -Wl,-woff,85
8491 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8492 echo "configure:8493: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8493 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8499 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8501 if test "$cross_compiling" = yes; then
8502 cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 /* pthread test headers */
8506 #include <pthread.h>
8508 #define NULL (void*)0
8511 static void *task(p)
8514 return (void *) (p == NULL);
8519 /* pthread test function */
8522 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8523 /* This system (e.g. AIX) defaults detached; must override */
8524 pthread_attr_t attr;
8526 status = pthread_attr_init(&attr);
8527 if( status ) exit( status );
8529 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8530 if( status ) exit( status );
8534 #if HAVE_PTHREADS_D4
8535 #define ATTR pthread_attr_default
8540 /* make sure pthread_create() isn't just a stub */
8541 status = pthread_create(&t, ATTR, task, NULL);
8542 if( status ) exit( status );
8544 /* make sure pthread_detach() isn't just a stub */
8545 #if HAVE_PTHREADS_D4
8546 status = pthread_detach( &t );
8548 status = pthread_detach( t );
8551 #ifdef HAVE_LINUX_THREADS
8552 pthread_kill_other_threads_np();
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8561 ol_cv_pthread_lib_lpthread_woff=yes
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 ol_cv_pthread_lib_lpthread_woff=no
8570 cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 /* pthread test headers */
8574 #include <pthread.h>
8576 #define NULL (void*)0
8579 static void *task(p)
8582 return (void *) (p == NULL);
8586 int main(argc, argv)
8591 /* pthread test function */
8594 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8595 /* This system (e.g. AIX) defaults detached; must override */
8596 pthread_attr_t attr;
8598 status = pthread_attr_init(&attr);
8599 if( status ) exit( status );
8601 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8602 if( status ) exit( status );
8606 #if HAVE_PTHREADS_D4
8607 #define ATTR pthread_attr_default
8612 /* make sure pthread_create() isn't just a stub */
8613 status = pthread_create(&t, ATTR, task, NULL);
8614 if( status ) exit( status );
8616 /* make sure pthread_detach() isn't just a stub */
8617 #if HAVE_PTHREADS_D4
8618 status = pthread_detach( &t );
8620 status = pthread_detach( t );
8623 #ifdef HAVE_LINUX_THREADS
8624 pthread_kill_other_threads_np();
8632 if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8634 ol_cv_pthread_lib_lpthread_woff=yes
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 ol_cv_pthread_lib_lpthread_woff=no
8650 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8652 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8653 ol_link_pthreads="-lpthread -Wl,-woff,85"
8654 ol_link_threads=posix
8659 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8660 if test "$ol_link_threads" = no ; then
8662 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8663 echo "configure:8664: checking for pthread link with -lpthread" >&5
8664 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8670 LIBS="-lpthread $LIBS"
8672 if test "$cross_compiling" = yes; then
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* pthread test headers */
8677 #include <pthread.h>
8679 #define NULL (void*)0
8682 static void *task(p)
8685 return (void *) (p == NULL);
8690 /* pthread test function */
8693 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8694 /* This system (e.g. AIX) defaults detached; must override */
8695 pthread_attr_t attr;
8697 status = pthread_attr_init(&attr);
8698 if( status ) exit( status );
8700 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8701 if( status ) exit( status );
8705 #if HAVE_PTHREADS_D4
8706 #define ATTR pthread_attr_default
8711 /* make sure pthread_create() isn't just a stub */
8712 status = pthread_create(&t, ATTR, task, NULL);
8713 if( status ) exit( status );
8715 /* make sure pthread_detach() isn't just a stub */
8716 #if HAVE_PTHREADS_D4
8717 status = pthread_detach( &t );
8719 status = pthread_detach( t );
8722 #ifdef HAVE_LINUX_THREADS
8723 pthread_kill_other_threads_np();
8730 if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8732 ol_cv_pthread_lpthread=yes
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 ol_cv_pthread_lpthread=no
8741 cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8744 /* pthread test headers */
8745 #include <pthread.h>
8747 #define NULL (void*)0
8750 static void *task(p)
8753 return (void *) (p == NULL);
8757 int main(argc, argv)
8762 /* pthread test function */
8765 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8766 /* This system (e.g. AIX) defaults detached; must override */
8767 pthread_attr_t attr;
8769 status = pthread_attr_init(&attr);
8770 if( status ) exit( status );
8772 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8773 if( status ) exit( status );
8777 #if HAVE_PTHREADS_D4
8778 #define ATTR pthread_attr_default
8783 /* make sure pthread_create() isn't just a stub */
8784 status = pthread_create(&t, ATTR, task, NULL);
8785 if( status ) exit( status );
8787 /* make sure pthread_detach() isn't just a stub */
8788 #if HAVE_PTHREADS_D4
8789 status = pthread_detach( &t );
8791 status = pthread_detach( t );
8794 #ifdef HAVE_LINUX_THREADS
8795 pthread_kill_other_threads_np();
8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8805 ol_cv_pthread_lpthread=yes
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8810 ol_cv_pthread_lpthread=no
8821 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8823 if test $ol_cv_pthread_lpthread = yes ; then
8824 ol_link_pthreads="-lpthread"
8825 ol_link_threads=posix
8829 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8830 if test "$ol_link_threads" = no ; then
8832 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8833 echo "configure:8834: checking for pthread link with -lc_r" >&5
8834 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8835 echo $ac_n "(cached) $ac_c" 1>&6
8842 if test "$cross_compiling" = yes; then
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 /* pthread test headers */
8847 #include <pthread.h>
8849 #define NULL (void*)0
8852 static void *task(p)
8855 return (void *) (p == NULL);
8860 /* pthread test function */
8863 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8864 /* This system (e.g. AIX) defaults detached; must override */
8865 pthread_attr_t attr;
8867 status = pthread_attr_init(&attr);
8868 if( status ) exit( status );
8870 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8871 if( status ) exit( status );
8875 #if HAVE_PTHREADS_D4
8876 #define ATTR pthread_attr_default
8881 /* make sure pthread_create() isn't just a stub */
8882 status = pthread_create(&t, ATTR, task, NULL);
8883 if( status ) exit( status );
8885 /* make sure pthread_detach() isn't just a stub */
8886 #if HAVE_PTHREADS_D4
8887 status = pthread_detach( &t );
8889 status = pthread_detach( t );
8892 #ifdef HAVE_LINUX_THREADS
8893 pthread_kill_other_threads_np();
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 ol_cv_pthread_lc_r=yes
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 ol_cv_pthread_lc_r=no
8911 cat > conftest.$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8914 /* pthread test headers */
8915 #include <pthread.h>
8917 #define NULL (void*)0
8920 static void *task(p)
8923 return (void *) (p == NULL);
8927 int main(argc, argv)
8932 /* pthread test function */
8935 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8936 /* This system (e.g. AIX) defaults detached; must override */
8937 pthread_attr_t attr;
8939 status = pthread_attr_init(&attr);
8940 if( status ) exit( status );
8942 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8943 if( status ) exit( status );
8947 #if HAVE_PTHREADS_D4
8948 #define ATTR pthread_attr_default
8953 /* make sure pthread_create() isn't just a stub */
8954 status = pthread_create(&t, ATTR, task, NULL);
8955 if( status ) exit( status );
8957 /* make sure pthread_detach() isn't just a stub */
8958 #if HAVE_PTHREADS_D4
8959 status = pthread_detach( &t );
8961 status = pthread_detach( t );
8964 #ifdef HAVE_LINUX_THREADS
8965 pthread_kill_other_threads_np();
8973 if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8975 ol_cv_pthread_lc_r=yes
8977 echo "configure: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8980 ol_cv_pthread_lc_r=no
8991 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8993 if test $ol_cv_pthread_lc_r = yes ; then
8994 ol_link_pthreads="-lc_r"
8995 ol_link_threads=posix
9000 # Pthread try link: -threads (ol_cv_pthread_threads)
9001 if test "$ol_link_threads" = no ; then
9003 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9004 echo "configure:9005: checking for pthread link with -threads" >&5
9005 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9011 LIBS="-threads $LIBS"
9013 if test "$cross_compiling" = yes; then
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 /* pthread test headers */
9018 #include <pthread.h>
9020 #define NULL (void*)0
9023 static void *task(p)
9026 return (void *) (p == NULL);
9031 /* pthread test function */
9034 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9035 /* This system (e.g. AIX) defaults detached; must override */
9036 pthread_attr_t attr;
9038 status = pthread_attr_init(&attr);
9039 if( status ) exit( status );
9041 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9042 if( status ) exit( status );
9046 #if HAVE_PTHREADS_D4
9047 #define ATTR pthread_attr_default
9052 /* make sure pthread_create() isn't just a stub */
9053 status = pthread_create(&t, ATTR, task, NULL);
9054 if( status ) exit( status );
9056 /* make sure pthread_detach() isn't just a stub */
9057 #if HAVE_PTHREADS_D4
9058 status = pthread_detach( &t );
9060 status = pthread_detach( t );
9063 #ifdef HAVE_LINUX_THREADS
9064 pthread_kill_other_threads_np();
9071 if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9073 ol_cv_pthread_threads=yes
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9078 ol_cv_pthread_threads=no
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9085 /* pthread test headers */
9086 #include <pthread.h>
9088 #define NULL (void*)0
9091 static void *task(p)
9094 return (void *) (p == NULL);
9098 int main(argc, argv)
9103 /* pthread test function */
9106 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9107 /* This system (e.g. AIX) defaults detached; must override */
9108 pthread_attr_t attr;
9110 status = pthread_attr_init(&attr);
9111 if( status ) exit( status );
9113 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9114 if( status ) exit( status );
9118 #if HAVE_PTHREADS_D4
9119 #define ATTR pthread_attr_default
9124 /* make sure pthread_create() isn't just a stub */
9125 status = pthread_create(&t, ATTR, task, NULL);
9126 if( status ) exit( status );
9128 /* make sure pthread_detach() isn't just a stub */
9129 #if HAVE_PTHREADS_D4
9130 status = pthread_detach( &t );
9132 status = pthread_detach( t );
9135 #ifdef HAVE_LINUX_THREADS
9136 pthread_kill_other_threads_np();
9144 if { (eval echo configure:9145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9146 ol_cv_pthread_threads=yes
9148 echo "configure: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9151 ol_cv_pthread_threads=no
9162 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9164 if test $ol_cv_pthread_threads = yes ; then
9165 ol_link_pthreads="-threads"
9166 ol_link_threads=posix
9171 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9172 if test "$ol_link_threads" = no ; then
9173 # try -lpthreads -lmach -lexc -lc_r
9174 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9175 echo "configure:9176: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9176 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9182 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9184 if test "$cross_compiling" = yes; then
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9188 /* pthread test headers */
9189 #include <pthread.h>
9191 #define NULL (void*)0
9194 static void *task(p)
9197 return (void *) (p == NULL);
9202 /* pthread test function */
9205 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9206 /* This system (e.g. AIX) defaults detached; must override */
9207 pthread_attr_t attr;
9209 status = pthread_attr_init(&attr);
9210 if( status ) exit( status );
9212 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9213 if( status ) exit( status );
9217 #if HAVE_PTHREADS_D4
9218 #define ATTR pthread_attr_default
9223 /* make sure pthread_create() isn't just a stub */
9224 status = pthread_create(&t, ATTR, task, NULL);
9225 if( status ) exit( status );
9227 /* make sure pthread_detach() isn't just a stub */
9228 #if HAVE_PTHREADS_D4
9229 status = pthread_detach( &t );
9231 status = pthread_detach( t );
9234 #ifdef HAVE_LINUX_THREADS
9235 pthread_kill_other_threads_np();
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9244 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 /* pthread test headers */
9257 #include <pthread.h>
9259 #define NULL (void*)0
9262 static void *task(p)
9265 return (void *) (p == NULL);
9269 int main(argc, argv)
9274 /* pthread test function */
9277 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9278 /* This system (e.g. AIX) defaults detached; must override */
9279 pthread_attr_t attr;
9281 status = pthread_attr_init(&attr);
9282 if( status ) exit( status );
9284 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9285 if( status ) exit( status );
9289 #if HAVE_PTHREADS_D4
9290 #define ATTR pthread_attr_default
9295 /* make sure pthread_create() isn't just a stub */
9296 status = pthread_create(&t, ATTR, task, NULL);
9297 if( status ) exit( status );
9299 /* make sure pthread_detach() isn't just a stub */
9300 #if HAVE_PTHREADS_D4
9301 status = pthread_detach( &t );
9303 status = pthread_detach( t );
9306 #ifdef HAVE_LINUX_THREADS
9307 pthread_kill_other_threads_np();
9315 if { (eval echo configure:9316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9317 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9319 echo "configure: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9322 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9333 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9335 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9336 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9337 ol_link_threads=posix
9341 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9342 if test "$ol_link_threads" = no ; then
9343 # try -lpthreads -lmach -lexc
9344 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9345 echo "configure:9346: checking for pthread link with -lpthreads -lmach -lexc" >&5
9346 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9347 echo $ac_n "(cached) $ac_c" 1>&6
9352 LIBS="-lpthreads -lmach -lexc $LIBS"
9354 if test "$cross_compiling" = yes; then
9355 cat > conftest.$ac_ext <<EOF
9356 #line 9357 "configure"
9357 #include "confdefs.h"
9358 /* pthread test headers */
9359 #include <pthread.h>
9361 #define NULL (void*)0
9364 static void *task(p)
9367 return (void *) (p == NULL);
9372 /* pthread test function */
9375 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9376 /* This system (e.g. AIX) defaults detached; must override */
9377 pthread_attr_t attr;
9379 status = pthread_attr_init(&attr);
9380 if( status ) exit( status );
9382 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9383 if( status ) exit( status );
9387 #if HAVE_PTHREADS_D4
9388 #define ATTR pthread_attr_default
9393 /* make sure pthread_create() isn't just a stub */
9394 status = pthread_create(&t, ATTR, task, NULL);
9395 if( status ) exit( status );
9397 /* make sure pthread_detach() isn't just a stub */
9398 #if HAVE_PTHREADS_D4
9399 status = pthread_detach( &t );
9401 status = pthread_detach( t );
9404 #ifdef HAVE_LINUX_THREADS
9405 pthread_kill_other_threads_np();
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 ol_cv_pthread_lpthreads_lmach_lexc=yes
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 ol_cv_pthread_lpthreads_lmach_lexc=no
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 /* pthread test headers */
9427 #include <pthread.h>
9429 #define NULL (void*)0
9432 static void *task(p)
9435 return (void *) (p == NULL);
9439 int main(argc, argv)
9444 /* pthread test function */
9447 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9448 /* This system (e.g. AIX) defaults detached; must override */
9449 pthread_attr_t attr;
9451 status = pthread_attr_init(&attr);
9452 if( status ) exit( status );
9454 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9455 if( status ) exit( status );
9459 #if HAVE_PTHREADS_D4
9460 #define ATTR pthread_attr_default
9465 /* make sure pthread_create() isn't just a stub */
9466 status = pthread_create(&t, ATTR, task, NULL);
9467 if( status ) exit( status );
9469 /* make sure pthread_detach() isn't just a stub */
9470 #if HAVE_PTHREADS_D4
9471 status = pthread_detach( &t );
9473 status = pthread_detach( t );
9476 #ifdef HAVE_LINUX_THREADS
9477 pthread_kill_other_threads_np();
9485 if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9487 ol_cv_pthread_lpthreads_lmach_lexc=yes
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9492 ol_cv_pthread_lpthreads_lmach_lexc=no
9503 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9505 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9506 ol_link_pthreads="-lpthreads -lmach -lexc"
9507 ol_link_threads=posix
9511 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9512 if test "$ol_link_threads" = no ; then
9513 # try -lpthreads -lexc
9514 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9515 echo "configure:9516: checking for pthread link with -lpthreads -lexc" >&5
9516 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9517 echo $ac_n "(cached) $ac_c" 1>&6
9522 LIBS="-lpthreads -lexc $LIBS"
9524 if test "$cross_compiling" = yes; then
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 /* pthread test headers */
9529 #include <pthread.h>
9531 #define NULL (void*)0
9534 static void *task(p)
9537 return (void *) (p == NULL);
9542 /* pthread test function */
9545 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9546 /* This system (e.g. AIX) defaults detached; must override */
9547 pthread_attr_t attr;
9549 status = pthread_attr_init(&attr);
9550 if( status ) exit( status );
9552 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9553 if( status ) exit( status );
9557 #if HAVE_PTHREADS_D4
9558 #define ATTR pthread_attr_default
9563 /* make sure pthread_create() isn't just a stub */
9564 status = pthread_create(&t, ATTR, task, NULL);
9565 if( status ) exit( status );
9567 /* make sure pthread_detach() isn't just a stub */
9568 #if HAVE_PTHREADS_D4
9569 status = pthread_detach( &t );
9571 status = pthread_detach( t );
9574 #ifdef HAVE_LINUX_THREADS
9575 pthread_kill_other_threads_np();
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9584 ol_cv_pthread_lpthreads_lexc=yes
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9589 ol_cv_pthread_lpthreads_lexc=no
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 /* pthread test headers */
9597 #include <pthread.h>
9599 #define NULL (void*)0
9602 static void *task(p)
9605 return (void *) (p == NULL);
9609 int main(argc, argv)
9614 /* pthread test function */
9617 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9618 /* This system (e.g. AIX) defaults detached; must override */
9619 pthread_attr_t attr;
9621 status = pthread_attr_init(&attr);
9622 if( status ) exit( status );
9624 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9625 if( status ) exit( status );
9629 #if HAVE_PTHREADS_D4
9630 #define ATTR pthread_attr_default
9635 /* make sure pthread_create() isn't just a stub */
9636 status = pthread_create(&t, ATTR, task, NULL);
9637 if( status ) exit( status );
9639 /* make sure pthread_detach() isn't just a stub */
9640 #if HAVE_PTHREADS_D4
9641 status = pthread_detach( &t );
9643 status = pthread_detach( t );
9646 #ifdef HAVE_LINUX_THREADS
9647 pthread_kill_other_threads_np();
9655 if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9657 ol_cv_pthread_lpthreads_lexc=yes
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9662 ol_cv_pthread_lpthreads_lexc=no
9673 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9675 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9676 ol_link_pthreads="-lpthreads -lexc"
9677 ol_link_threads=posix
9682 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9683 if test "$ol_link_threads" = no ; then
9685 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9686 echo "configure:9687: checking for pthread link with -lpthreads" >&5
9687 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
9693 LIBS="-lpthreads $LIBS"
9695 if test "$cross_compiling" = yes; then
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9699 /* pthread test headers */
9700 #include <pthread.h>
9702 #define NULL (void*)0
9705 static void *task(p)
9708 return (void *) (p == NULL);
9713 /* pthread test function */
9716 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9717 /* This system (e.g. AIX) defaults detached; must override */
9718 pthread_attr_t attr;
9720 status = pthread_attr_init(&attr);
9721 if( status ) exit( status );
9723 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9724 if( status ) exit( status );
9728 #if HAVE_PTHREADS_D4
9729 #define ATTR pthread_attr_default
9734 /* make sure pthread_create() isn't just a stub */
9735 status = pthread_create(&t, ATTR, task, NULL);
9736 if( status ) exit( status );
9738 /* make sure pthread_detach() isn't just a stub */
9739 #if HAVE_PTHREADS_D4
9740 status = pthread_detach( &t );
9742 status = pthread_detach( t );
9745 #ifdef HAVE_LINUX_THREADS
9746 pthread_kill_other_threads_np();
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755 ol_cv_pthread_lib_lpthreads=yes
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9760 ol_cv_pthread_lib_lpthreads=no
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 /* pthread test headers */
9768 #include <pthread.h>
9770 #define NULL (void*)0
9773 static void *task(p)
9776 return (void *) (p == NULL);
9780 int main(argc, argv)
9785 /* pthread test function */
9788 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9789 /* This system (e.g. AIX) defaults detached; must override */
9790 pthread_attr_t attr;
9792 status = pthread_attr_init(&attr);
9793 if( status ) exit( status );
9795 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9796 if( status ) exit( status );
9800 #if HAVE_PTHREADS_D4
9801 #define ATTR pthread_attr_default
9806 /* make sure pthread_create() isn't just a stub */
9807 status = pthread_create(&t, ATTR, task, NULL);
9808 if( status ) exit( status );
9810 /* make sure pthread_detach() isn't just a stub */
9811 #if HAVE_PTHREADS_D4
9812 status = pthread_detach( &t );
9814 status = pthread_detach( t );
9817 #ifdef HAVE_LINUX_THREADS
9818 pthread_kill_other_threads_np();
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9828 ol_cv_pthread_lib_lpthreads=yes
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9833 ol_cv_pthread_lib_lpthreads=no
9844 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9846 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9847 ol_link_pthreads="-lpthreads"
9848 ol_link_threads=posix
9853 if test $ol_link_threads != no ; then
9854 cat >> confdefs.h <<\EOF
9855 #define HAVE_PTHREADS 1
9859 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9861 save_CPPFLAGS="$CPPFLAGS"
9863 LIBS="$LTHREAD_LIBS $LIBS"
9865 for ac_func in sched_yield pthread_yield
9867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9868 echo "configure:9869: checking for $ac_func" >&5
9869 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9875 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char $ac_func(); below. */
9878 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9886 /* The GNU C library defines this for functions which it implements
9887 to always fail with ENOSYS. Some functions are actually named
9888 something starting with __ and the normal name is an alias. */
9889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 eval "ac_cv_func_$ac_func=yes"
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 eval "ac_cv_func_$ac_func=no"
9909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9910 echo "$ac_t""yes" 1>&6
9911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9912 cat >> confdefs.h <<EOF
9913 #define $ac_tr_func 1
9917 echo "$ac_t""no" 1>&6
9922 if test $ac_cv_func_sched_yield = no -a \
9923 $ac_cv_func_pthread_yield = no ; then
9924 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9925 echo "configure:9926: checking for sched_yield in -lrt" >&5
9926 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9927 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9930 ac_save_LIBS="$LIBS"
9932 cat > conftest.$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9935 /* Override any gcc2 internal prototype to avoid an error. */
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9944 if { (eval echo configure:9945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9946 eval "ac_cv_lib_$ac_lib_var=yes"
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9951 eval "ac_cv_lib_$ac_lib_var=no"
9954 LIBS="$ac_save_LIBS"
9957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9958 echo "$ac_t""yes" 1>&6
9959 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9960 cat >> confdefs.h <<\EOF
9961 #define HAVE_SCHED_YIELD 1
9964 ac_cv_func_sched_yield=yes
9966 echo "$ac_t""no" 1>&6
9967 ac_cv_func_sched_yield=no
9971 if test $ac_cv_func_sched_yield = no -a \
9972 $ac_cv_func_pthread_yield = no ; then
9973 for ac_func in thr_yield
9975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9976 echo "configure:9977: checking for $ac_func" >&5
9977 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9978 echo $ac_n "(cached) $ac_c" 1>&6
9980 cat > conftest.$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9983 /* System header to define __stub macros and hopefully few prototypes,
9984 which can conflict with char $ac_func(); below. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005 if { (eval echo configure:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10007 eval "ac_cv_func_$ac_func=yes"
10009 echo "configure: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10012 eval "ac_cv_func_$ac_func=no"
10017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10018 echo "$ac_t""yes" 1>&6
10019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10020 cat >> confdefs.h <<EOF
10021 #define $ac_tr_func 1
10025 echo "$ac_t""no" 1>&6
10030 if test $ac_cv_func_sched_yield = no -a \
10031 $ac_cv_func_pthread_yield = no -a \
10032 "$ac_cv_func_thr_yield" = no ; then
10033 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10036 for ac_func in pthread_kill pthread_rwlock_destroy
10038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10039 echo "configure:10040: checking for $ac_func" >&5
10040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char $ac_func(); below. */
10048 #include <assert.h>
10049 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10057 /* The GNU C library defines this for functions which it implements
10058 to always fail with ENOSYS. Some functions are actually named
10059 something starting with __ and the normal name is an alias. */
10060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10068 if { (eval echo configure:10069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10070 eval "ac_cv_func_$ac_func=yes"
10072 echo "configure: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10075 eval "ac_cv_func_$ac_func=no"
10080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10081 echo "$ac_t""yes" 1>&6
10082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10083 cat >> confdefs.h <<EOF
10084 #define $ac_tr_func 1
10088 echo "$ac_t""no" 1>&6
10093 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10094 echo "configure:10095: checking for pthread_detach with <pthread.h>" >&5
10095 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10103 #include <pthread.h>
10105 #define NULL (void*)0
10109 pthread_detach(NULL);
10112 if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10114 ol_cv_func_pthread_detach=yes
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10119 ol_cv_func_pthread_detach=no
10125 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10127 if test $ol_cv_func_pthread_detach = no ; then
10128 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10131 cat >> confdefs.h <<\EOF
10132 #define HAVE_PTHREAD_DETACH 1
10137 pthread_setconcurrency \
10138 pthread_getconcurrency \
10139 thr_setconcurrency \
10140 thr_getconcurrency \
10143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10144 echo "configure:10145: checking for $ac_func" >&5
10145 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10148 cat > conftest.$ac_ext <<EOF
10149 #line 10150 "configure"
10150 #include "confdefs.h"
10151 /* System header to define __stub macros and hopefully few prototypes,
10152 which can conflict with char $ac_func(); below. */
10153 #include <assert.h>
10154 /* Override any gcc2 internal prototype to avoid an error. */
10155 /* We use char because int might match the return type of a gcc2
10156 builtin and then its argument prototype would still apply. */
10162 /* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10173 if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10175 eval "ac_cv_func_$ac_func=yes"
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10180 eval "ac_cv_func_$ac_func=no"
10185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10188 cat >> confdefs.h <<EOF
10189 #define $ac_tr_func 1
10193 echo "$ac_t""no" 1>&6
10199 for ac_func in pthread_kill_other_threads_np
10201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10202 echo "configure:10203: checking for $ac_func" >&5
10203 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10206 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure"
10208 #include "confdefs.h"
10209 /* System header to define __stub macros and hopefully few prototypes,
10210 which can conflict with char $ac_func(); below. */
10211 #include <assert.h>
10212 /* Override any gcc2 internal prototype to avoid an error. */
10213 /* We use char because int might match the return type of a gcc2
10214 builtin and then its argument prototype would still apply. */
10220 /* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10231 if { (eval echo configure:10232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10233 eval "ac_cv_func_$ac_func=yes"
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10238 eval "ac_cv_func_$ac_func=no"
10243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10244 echo "$ac_t""yes" 1>&6
10245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10246 cat >> confdefs.h <<EOF
10247 #define $ac_tr_func 1
10251 echo "$ac_t""no" 1>&6
10255 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10256 echo "configure:10257: checking for LinuxThreads implementation" >&5
10257 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10260 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10263 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10268 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10269 echo "configure:10270: checking for LinuxThreads consistency" >&5
10270 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10274 if test $ol_cv_header_linux_threads = yes -a \
10275 $ol_cv_sys_linux_threads = yes; then
10276 ol_cv_linux_threads=yes
10277 elif test $ol_cv_header_linux_threads = no -a \
10278 $ol_cv_sys_linux_threads = no; then
10279 ol_cv_linux_threads=no
10281 ol_cv_linux_threads=error
10286 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10289 if test $ol_cv_linux_threads = error; then
10290 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10293 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10294 echo "configure:10295: checking if pthread_create() works" >&5
10295 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10299 if test "$cross_compiling" = yes; then
10300 ol_cv_pthread_create_works=yes
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10305 /* pthread test headers */
10306 #include <pthread.h>
10308 #define NULL (void*)0
10311 static void *task(p)
10314 return (void *) (p == NULL);
10318 int main(argc, argv)
10323 /* pthread test function */
10326 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10327 /* This system (e.g. AIX) defaults detached; must override */
10328 pthread_attr_t attr;
10330 status = pthread_attr_init(&attr);
10331 if( status ) exit( status );
10333 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10334 if( status ) exit( status );
10338 #if HAVE_PTHREADS_D4
10339 #define ATTR pthread_attr_default
10344 /* make sure pthread_create() isn't just a stub */
10345 status = pthread_create(&t, ATTR, task, NULL);
10346 if( status ) exit( status );
10348 /* make sure pthread_detach() isn't just a stub */
10349 #if HAVE_PTHREADS_D4
10350 status = pthread_detach( &t );
10352 status = pthread_detach( t );
10355 #ifdef HAVE_LINUX_THREADS
10356 pthread_kill_other_threads_np();
10364 if { (eval echo configure:10365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10366 ol_cv_pthread_create_works=yes
10368 echo "configure: failed program was:" >&5
10369 cat conftest.$ac_ext >&5
10371 ol_cv_pthread_create_works=no
10378 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10380 if test $ol_cv_pthread_create_works = no ; then
10381 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10384 if test $ol_with_yielding_select = auto ; then
10385 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10386 echo "configure:10387: checking if select yields when using pthreads" >&5
10387 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10388 echo $ac_n "(cached) $ac_c" 1>&6
10391 if test "$cross_compiling" = yes; then
10392 ol_cv_pthread_select_yields=cross
10394 cat > conftest.$ac_ext <<EOF
10395 #line 10396 "configure"
10396 #include "confdefs.h"
10398 #include <sys/types.h>
10399 #include <sys/time.h>
10400 #include <unistd.h>
10401 #include <pthread.h>
10403 #define NULL (void*) 0
10406 static int fildes[2];
10408 static void *task(p)
10420 FD_SET(fildes[0], &rfds);
10422 /* we're not interested in any fds */
10423 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10430 exit(0); /* if we exit here, the select blocked the whole process */
10433 int main(argc, argv)
10439 /* create a pipe to select */
10440 if(pipe(&fildes[0])) {
10445 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10446 (void) pthread_setconcurrency(2);
10448 #ifdef HAVE_THR_SETCONCURRENCY
10449 /* Set Solaris LWP concurrency to 2 */
10450 thr_setconcurrency(2);
10454 #if HAVE_PTHREADS_D4
10455 pthread_create(&t, pthread_attr_default, task, NULL);
10457 pthread_create(&t, NULL, task, NULL);
10460 #if HAVE_SCHED_YIELD
10461 sched_yield(); /* make sure task runs first */
10463 #ifdef HAVE_PTHREAD_YIELD
10464 pthread_yield(); /* make sure task runs first */
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10473 ol_cv_pthread_select_yields=no
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10478 ol_cv_pthread_select_yields=yes
10485 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10487 if test $ol_cv_pthread_select_yields = cross ; then
10488 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10491 if test $ol_cv_pthread_select_yields = yes ; then
10492 ol_with_yielding_select=yes
10496 CPPFLAGS="$save_CPPFLAGS"
10499 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10503 if test $ol_with_threads = posix ; then
10504 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10508 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10509 -o $ol_with_threads = mach ; then
10511 for ac_hdr in mach/cthreads.h
10513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10515 echo "configure:10516: checking for $ac_hdr" >&5
10516 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10517 echo $ac_n "(cached) $ac_c" 1>&6
10519 cat > conftest.$ac_ext <<EOF
10520 #line 10521 "configure"
10521 #include "confdefs.h"
10524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10525 { (eval echo configure:10526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10527 if test -z "$ac_err"; then
10529 eval "ac_cv_header_$ac_safe=yes"
10532 echo "configure: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10535 eval "ac_cv_header_$ac_safe=no"
10539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10540 echo "$ac_t""yes" 1>&6
10541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10542 cat >> confdefs.h <<EOF
10543 #define $ac_tr_hdr 1
10547 echo "$ac_t""no" 1>&6
10551 if test $ac_cv_header_mach_cthreads_h = yes ; then
10552 ol_with_threads=found
10554 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10555 echo "configure:10556: checking for cthread_fork" >&5
10556 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10562 /* System header to define __stub macros and hopefully few prototypes,
10563 which can conflict with char cthread_fork(); below. */
10564 #include <assert.h>
10565 /* Override any gcc2 internal prototype to avoid an error. */
10566 /* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10568 char cthread_fork();
10573 /* The GNU C library defines this for functions which it implements
10574 to always fail with ENOSYS. Some functions are actually named
10575 something starting with __ and the normal name is an alias. */
10576 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10586 eval "ac_cv_func_cthread_fork=yes"
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10591 eval "ac_cv_func_cthread_fork=no"
10596 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10597 echo "$ac_t""yes" 1>&6
10598 ol_link_threads=yes
10600 echo "$ac_t""no" 1>&6
10604 if test $ol_link_threads = no ; then
10605 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10606 echo "configure:10607: checking for cthread_fork with -all_load" >&5
10607 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10612 LIBS="-all_load $LIBS"
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10616 #include <mach/cthreads.h>
10619 cthread_fork((void *)0, (void *)0);
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10625 ol_cv_cthread_all_load=yes
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10630 ol_cv_cthread_all_load=no
10637 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10639 if test $ol_cv_cthread_all_load = yes ; then
10640 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10641 ol_link_threads=mach
10645 if test $ol_link_threads != no ; then
10646 : check for cthread specific functionality here
10647 cat >> confdefs.h <<\EOF
10648 #define HAVE_MACH_CTHREADS 1
10652 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10656 if test $ol_with_threads = mach ; then
10657 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10661 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10662 -o $ol_with_threads = pth ; then
10664 for ac_hdr in pth.h
10666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10668 echo "configure:10669: checking for $ac_hdr" >&5
10669 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10670 echo $ac_n "(cached) $ac_c" 1>&6
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10678 { (eval echo configure:10679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10680 if test -z "$ac_err"; then
10682 eval "ac_cv_header_$ac_safe=yes"
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 eval "ac_cv_header_$ac_safe=no"
10692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10693 echo "$ac_t""yes" 1>&6
10694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10695 cat >> confdefs.h <<EOF
10696 #define $ac_tr_hdr 1
10700 echo "$ac_t""no" 1>&6
10705 if test $ac_cv_header_pth_h = yes ; then
10706 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10707 echo "configure:10708: checking for pth_version in -lpth" >&5
10708 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10709 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10710 echo $ac_n "(cached) $ac_c" 1>&6
10712 ac_save_LIBS="$LIBS"
10714 cat > conftest.$ac_ext <<EOF
10715 #line 10716 "configure"
10716 #include "confdefs.h"
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10720 char pth_version();
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10736 LIBS="$ac_save_LIBS"
10739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10743 echo "$ac_t""no" 1>&6
10748 if test $have_pth = yes ; then
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_GNU_PTH 1
10753 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10754 ol_link_threads=pth
10756 if test $ol_with_yielding_select = auto ; then
10757 ol_with_yielding_select=yes
10763 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10764 -o $ol_with_threads = lwp ; then
10766 for ac_hdr in thread.h synch.h
10768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10770 echo "configure:10771: checking for $ac_hdr" >&5
10771 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10772 echo $ac_n "(cached) $ac_c" 1>&6
10774 cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure"
10776 #include "confdefs.h"
10779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10780 { (eval echo configure:10781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10782 if test -z "$ac_err"; then
10784 eval "ac_cv_header_$ac_safe=yes"
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10790 eval "ac_cv_header_$ac_safe=no"
10794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10795 echo "$ac_t""yes" 1>&6
10796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10797 cat >> confdefs.h <<EOF
10798 #define $ac_tr_hdr 1
10802 echo "$ac_t""no" 1>&6
10806 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10807 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10808 echo "configure:10809: checking for thr_create in -lthread" >&5
10809 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10810 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10813 ac_save_LIBS="$LIBS"
10814 LIBS="-lthread $LIBS"
10815 cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10818 /* Override any gcc2 internal prototype to avoid an error. */
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10827 if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10829 eval "ac_cv_lib_$ac_lib_var=yes"
10831 echo "configure: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10834 eval "ac_cv_lib_$ac_lib_var=no"
10837 LIBS="$ac_save_LIBS"
10840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10841 echo "$ac_t""yes" 1>&6
10844 echo "$ac_t""no" 1>&6
10849 if test $have_thr = yes ; then
10850 cat >> confdefs.h <<\EOF
10854 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10855 ol_link_threads=thr
10857 if test $ol_with_yielding_select = auto ; then
10858 ol_with_yielding_select=yes
10862 thr_setconcurrency \
10863 thr_getconcurrency \
10866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10867 echo "configure:10868: checking for $ac_func" >&5
10868 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10869 echo $ac_n "(cached) $ac_c" 1>&6
10871 cat > conftest.$ac_ext <<EOF
10872 #line 10873 "configure"
10873 #include "confdefs.h"
10874 /* System header to define __stub macros and hopefully few prototypes,
10875 which can conflict with char $ac_func(); below. */
10876 #include <assert.h>
10877 /* Override any gcc2 internal prototype to avoid an error. */
10878 /* We use char because int might match the return type of a gcc2
10879 builtin and then its argument prototype would still apply. */
10885 /* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10898 eval "ac_cv_func_$ac_func=yes"
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10903 eval "ac_cv_func_$ac_func=no"
10908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10909 echo "$ac_t""yes" 1>&6
10910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10911 cat >> confdefs.h <<EOF
10912 #define $ac_tr_func 1
10916 echo "$ac_t""no" 1>&6
10923 for ac_hdr in lwp/lwp.h
10925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10927 echo "configure:10928: checking for $ac_hdr" >&5
10928 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10937 { (eval echo configure:10938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10939 if test -z "$ac_err"; then
10941 eval "ac_cv_header_$ac_safe=yes"
10944 echo "configure: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10947 eval "ac_cv_header_$ac_safe=no"
10951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10952 echo "$ac_t""yes" 1>&6
10953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10954 cat >> confdefs.h <<EOF
10955 #define $ac_tr_hdr 1
10959 echo "$ac_t""no" 1>&6
10963 if test $ac_cv_header_lwp_lwp_h = yes ; then
10964 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10965 echo "configure:10966: checking for lwp_create in -llwp" >&5
10966 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10967 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10970 ac_save_LIBS="$LIBS"
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 /* Override any gcc2 internal prototype to avoid an error. */
10976 /* We use char because int might match the return type of a gcc2
10977 builtin and then its argument prototype would still apply. */
10984 if { (eval echo configure:10985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10986 eval "ac_cv_lib_$ac_lib_var=yes"
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10991 eval "ac_cv_lib_$ac_lib_var=no"
10994 LIBS="$ac_save_LIBS"
10997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10998 echo "$ac_t""yes" 1>&6
11001 echo "$ac_t""no" 1>&6
11006 if test $have_lwp = yes ; then
11007 cat >> confdefs.h <<\EOF
11011 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11012 ol_link_threads=lwp
11014 if test $ol_with_yielding_select = auto ; then
11015 ol_with_yielding_select=no
11021 if test $ol_with_yielding_select = yes ; then
11022 cat >> confdefs.h <<\EOF
11023 #define HAVE_YIELDING_SELECT 1
11028 if test $ol_with_threads = manual ; then
11029 ol_link_threads=yes
11031 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11033 for ac_hdr in pthread.h sched.h
11035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11037 echo "configure:11038: checking for $ac_hdr" >&5
11038 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11041 cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11047 { (eval echo configure:11048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11049 if test -z "$ac_err"; then
11051 eval "ac_cv_header_$ac_safe=yes"
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 eval "ac_cv_header_$ac_safe=no"
11061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11062 echo "$ac_t""yes" 1>&6
11063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11064 cat >> confdefs.h <<EOF
11065 #define $ac_tr_hdr 1
11069 echo "$ac_t""no" 1>&6
11073 for ac_func in sched_yield pthread_yield
11075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11076 echo "configure:11077: checking for $ac_func" >&5
11077 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char $ac_func(); below. */
11085 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error. */
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11105 if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11107 eval "ac_cv_func_$ac_func=yes"
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11112 eval "ac_cv_func_$ac_func=no"
11117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11118 echo "$ac_t""yes" 1>&6
11119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11120 cat >> confdefs.h <<EOF
11121 #define $ac_tr_func 1
11125 echo "$ac_t""no" 1>&6
11130 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11131 echo "configure:11132: checking for LinuxThreads pthread.h" >&5
11132 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <pthread.h>
11140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11141 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11143 ol_cv_header_linux_threads=yes
11146 ol_cv_header_linux_threads=no
11153 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11154 if test $ol_cv_header_linux_threads = yes; then
11155 cat >> confdefs.h <<\EOF
11156 #define HAVE_LINUX_THREADS 1
11162 for ac_hdr in mach/cthreads.h
11164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11166 echo "configure:11167: checking for $ac_hdr" >&5
11167 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11176 { (eval echo configure:11177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11178 if test -z "$ac_err"; then
11180 eval "ac_cv_header_$ac_safe=yes"
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 eval "ac_cv_header_$ac_safe=no"
11190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11193 cat >> confdefs.h <<EOF
11194 #define $ac_tr_hdr 1
11198 echo "$ac_t""no" 1>&6
11202 for ac_hdr in lwp/lwp.h
11204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11206 echo "configure:11207: checking for $ac_hdr" >&5
11207 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11210 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11216 { (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11218 if test -z "$ac_err"; then
11220 eval "ac_cv_header_$ac_safe=yes"
11223 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11226 eval "ac_cv_header_$ac_safe=no"
11230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11231 echo "$ac_t""yes" 1>&6
11232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11233 cat >> confdefs.h <<EOF
11234 #define $ac_tr_hdr 1
11238 echo "$ac_t""no" 1>&6
11242 for ac_hdr in thread.h synch.h
11244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11246 echo "configure:11247: checking for $ac_hdr" >&5
11247 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11250 cat > conftest.$ac_ext <<EOF
11251 #line 11252 "configure"
11252 #include "confdefs.h"
11255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11256 { (eval echo configure:11257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11258 if test -z "$ac_err"; then
11260 eval "ac_cv_header_$ac_safe=yes"
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11266 eval "ac_cv_header_$ac_safe=no"
11270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11271 echo "$ac_t""yes" 1>&6
11272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11273 cat >> confdefs.h <<EOF
11274 #define $ac_tr_hdr 1
11278 echo "$ac_t""no" 1>&6
11284 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11285 cat >> confdefs.h <<\EOF
11286 #define REENTRANT 1
11289 cat >> confdefs.h <<\EOF
11290 #define _REENTRANT 1
11293 cat >> confdefs.h <<\EOF
11294 #define THREAD_SAFE 1
11297 cat >> confdefs.h <<\EOF
11298 #define _THREAD_SAFE 1
11301 cat >> confdefs.h <<\EOF
11302 #define THREADSAFE 1
11305 cat >> confdefs.h <<\EOF
11306 #define _THREADSAFE 1
11309 cat >> confdefs.h <<\EOF
11310 #define _SGI_MP_SOURCE 1
11314 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11315 echo "configure:11316: checking for thread specific errno" >&5
11316 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11328 if { (eval echo configure:11329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11330 ol_cv_errno_thread_specific=yes
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11335 ol_cv_errno_thread_specific=no
11341 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11343 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11344 echo "configure:11345: checking for thread specific h_errno" >&5
11345 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11359 ol_cv_h_errno_thread_specific=yes
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 ol_cv_h_errno_thread_specific=no
11370 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11372 if test $ol_cv_errno_thread_specific != yes \
11373 -o $ol_cv_h_errno_thread_specific != yes ; then
11374 LIBS="$LTHREAD_LIBS $LIBS"
11380 if test $ol_link_threads = no ; then
11381 if test $ol_with_threads = yes ; then
11382 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11385 if test $ol_with_threads = auto ; then
11386 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11390 cat >> confdefs.h <<\EOF
11391 #define NO_THREADS 1
11397 if test $ol_link_threads != no ; then
11398 cat >> confdefs.h <<\EOF
11399 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11406 if test $ol_with_ldbm_api = auto \
11407 -o $ol_with_ldbm_api = berkeley \
11408 -o $ol_with_ldbm_api = bcompat ; then
11410 if test $ol_with_ldbm_api = bcompat; then \
11411 ol_cv_berkeley_db=no
11412 for ac_hdr in db_185.h db.h
11414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11416 echo "configure:11417: checking for $ac_hdr" >&5
11417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11426 { (eval echo configure:11427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11428 if test -z "$ac_err"; then
11430 eval "ac_cv_header_$ac_safe=yes"
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11436 eval "ac_cv_header_$ac_safe=no"
11440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11441 echo "$ac_t""yes" 1>&6
11442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11443 cat >> confdefs.h <<EOF
11444 #define $ac_tr_hdr 1
11448 echo "$ac_t""no" 1>&6
11452 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11453 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11454 echo "configure:11455: checking if Berkeley DB header compatibility" >&5
11455 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11459 cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11464 # include <db_185.h>
11469 /* this check could be improved */
11470 #ifndef DB_VERSION_MAJOR
11471 # define DB_VERSION_MAJOR 1
11474 #if DB_VERSION_MAJOR == 1
11479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480 egrep "__db_version_1" >/dev/null 2>&1; then
11482 ol_cv_header_db1=yes
11485 ol_cv_header_db1=no
11491 echo "$ac_t""$ol_cv_header_db1" 1>&6
11493 if test ol_cv_header_db1=yes ; then
11495 if test $ol_cv_lib_db = no ; then
11496 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11497 echo "configure:11498: checking for Berkeley DB link (default)" >&5
11498 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11504 LIBS="$ol_DB_LIB $LIBS"
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11508 "configure"
11508 #include "confdefs.h"
11510 #ifdef HAVE_DB_185_H
11511 # include <db_185.h>
11516 #ifndef DB_VERSION_MAJOR
11517 # define DB_VERSION_MAJOR 1
11521 #define NULL ((void*)0)
11526 #if DB_VERSION_MAJOR > 2
11527 db_env_create( NULL, 0 );
11528 #elif DB_VERSION_MAJOR > 1
11529 db_appexit( NULL );
11531 (void) dbopen( NULL, 0, 0, 0, NULL);
11536 if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11551 echo "$ac_t""$ol_cv_db_none" 1>&6
11553 if test $ol_cv_db_none = yes ; then
11558 if test $ol_cv_lib_db = no ; then
11559 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11560 echo "configure:11561: checking for Berkeley DB link (-ldb)" >&5
11561 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11567 LIBS="$ol_DB_LIB $LIBS"
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11573 #ifdef HAVE_DB_185_H
11574 # include <db_185.h>
11579 #ifndef DB_VERSION_MAJOR
11580 # define DB_VERSION_MAJOR 1
11584 #define NULL ((void*)0)
11589 #if DB_VERSION_MAJOR > 2
11590 db_env_create( NULL, 0 );
11591 #elif DB_VERSION_MAJOR > 1
11592 db_appexit( NULL );
11594 (void) dbopen( NULL, 0, 0, 0, NULL);
11599 if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11614 echo "$ac_t""$ol_cv_db_db" 1>&6
11616 if test $ol_cv_db_db = yes ; then
11621 if test $ol_cv_lib_db = no ; then
11622 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11623 echo "configure:11624: checking for Berkeley DB link (-ldb3)" >&5
11624 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11625 echo $ac_n "(cached) $ac_c" 1>&6
11630 LIBS="$ol_DB_LIB $LIBS"
11632 cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11636 #ifdef HAVE_DB_185_H
11637 # include <db_185.h>
11642 #ifndef DB_VERSION_MAJOR
11643 # define DB_VERSION_MAJOR 1
11647 #define NULL ((void*)0)
11652 #if DB_VERSION_MAJOR > 2
11653 db_env_create( NULL, 0 );
11654 #elif DB_VERSION_MAJOR > 1
11655 db_appexit( NULL );
11657 (void) dbopen( NULL, 0, 0, 0, NULL);
11662 if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11677 echo "$ac_t""$ol_cv_db_db3" 1>&6
11679 if test $ol_cv_db_db3 = yes ; then
11684 if test $ol_cv_lib_db = no ; then
11685 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11686 echo "configure:11687: checking for Berkeley DB link (-ldb2)" >&5
11687 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11693 LIBS="$ol_DB_LIB $LIBS"
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11699 #ifdef HAVE_DB_185_H
11700 # include <db_185.h>
11705 #ifndef DB_VERSION_MAJOR
11706 # define DB_VERSION_MAJOR 1
11710 #define NULL ((void*)0)
11715 #if DB_VERSION_MAJOR > 2
11716 db_env_create( NULL, 0 );
11717 #elif DB_VERSION_MAJOR > 1
11718 db_appexit( NULL );
11720 (void) dbopen( NULL, 0, 0, 0, NULL);
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11740 echo "$ac_t""$ol_cv_db_db2" 1>&6
11742 if test $ol_cv_db_db2 = yes ; then
11747 if test $ol_cv_lib_db = no ; then
11748 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11749 echo "configure:11750: checking for Berkeley DB link (-ldb1)" >&5
11750 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11756 LIBS="$ol_DB_LIB $LIBS"
11758 cat > conftest.$ac_ext <<EOF
11759 #line 11760 "configure"
11760 #include "confdefs.h"
11762 #ifdef HAVE_DB_185_H
11763 # include <db_185.h>
11768 #ifndef DB_VERSION_MAJOR
11769 # define DB_VERSION_MAJOR 1
11773 #define NULL ((void*)0)
11778 #if DB_VERSION_MAJOR > 2
11779 db_env_create( NULL, 0 );
11780 #elif DB_VERSION_MAJOR > 1
11781 db_appexit( NULL );
11783 (void) dbopen( NULL, 0, 0, 0, NULL);
11788 if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11792 echo "configure: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11803 echo "$ac_t""$ol_cv_db_db1" 1>&6
11805 if test $ol_cv_db_db1 = yes ; then
11811 if test "$ol_cv_lib_db" != no ; then
11812 ol_cv_berkeley_db=yes
11818 ol_cv_berkeley_db=no
11821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11823 echo "configure:11824: checking for $ac_hdr" >&5
11824 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11827 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11833 { (eval echo configure:11834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11835 if test -z "$ac_err"; then
11837 eval "ac_cv_header_$ac_safe=yes"
11840 echo "configure: failed program was:" >&5
11841 cat conftest.$ac_ext >&5
11843 eval "ac_cv_header_$ac_safe=no"
11847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11850 cat >> confdefs.h <<EOF
11851 #define $ac_tr_hdr 1
11855 echo "$ac_t""no" 1>&6
11859 if test $ac_cv_header_db_h = yes; then
11861 if test $ol_cv_lib_db = no ; then
11862 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11863 echo "configure:11864: checking for Berkeley DB link (default)" >&5
11864 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11870 LIBS="$ol_DB_LIB $LIBS"
11872 cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11876 #ifdef HAVE_DB_185_H
11877 # include <db_185.h>
11882 #ifndef DB_VERSION_MAJOR
11883 # define DB_VERSION_MAJOR 1
11887 #define NULL ((void*)0)
11892 #if DB_VERSION_MAJOR > 2
11893 db_env_create( NULL, 0 );
11894 #elif DB_VERSION_MAJOR > 1
11895 db_appexit( NULL );
11897 (void) dbopen( NULL, 0, 0, 0, NULL);
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11917 echo "$ac_t""$ol_cv_db_none" 1>&6
11919 if test $ol_cv_db_none = yes ; then
11924 if test $ol_cv_lib_db = no ; then
11925 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11926 echo "configure:11927: checking for Berkeley DB link (-ldb)" >&5
11927 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11928 echo $ac_n "(cached) $ac_c" 1>&6
11933 LIBS="$ol_DB_LIB $LIBS"
11935 cat > conftest.$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11939 #ifdef HAVE_DB_185_H
11940 # include <db_185.h>
11945 #ifndef DB_VERSION_MAJOR
11946 # define DB_VERSION_MAJOR 1
11950 #define NULL ((void*)0)
11955 #if DB_VERSION_MAJOR > 2
11956 db_env_create( NULL, 0 );
11957 #elif DB_VERSION_MAJOR > 1
11958 db_appexit( NULL );
11960 (void) dbopen( NULL, 0, 0, 0, NULL);
11965 if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11969 echo "configure: failed program was:" >&5
11970 cat conftest.$ac_ext >&5
11980 echo "$ac_t""$ol_cv_db_db" 1>&6
11982 if test $ol_cv_db_db = yes ; then
11987 if test $ol_cv_lib_db = no ; then
11988 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11989 echo "configure:11990: checking for Berkeley DB link (-ldb3)" >&5
11990 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11991 echo $ac_n "(cached) $ac_c" 1>&6
11996 LIBS="$ol_DB_LIB $LIBS"
11998 cat > conftest.$ac_ext <<EOF
11999 #line 12000 "configure"
12000 #include "confdefs.h"
12002 #ifdef HAVE_DB_185_H
12003 # include <db_185.h>
12008 #ifndef DB_VERSION_MAJOR
12009 # define DB_VERSION_MAJOR 1
12013 #define NULL ((void*)0)
12018 #if DB_VERSION_MAJOR > 2
12019 db_env_create( NULL, 0 );
12020 #elif DB_VERSION_MAJOR > 1
12021 db_appexit( NULL );
12023 (void) dbopen( NULL, 0, 0, 0, NULL);
12028 if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12032 echo "configure: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12043 echo "$ac_t""$ol_cv_db_db3" 1>&6
12045 if test $ol_cv_db_db3 = yes ; then
12050 if test $ol_cv_lib_db = no ; then
12051 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12052 echo "configure:12053: checking for Berkeley DB link (-ldb2)" >&5
12053 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12059 LIBS="$ol_DB_LIB $LIBS"
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12065 #ifdef HAVE_DB_185_H
12066 # include <db_185.h>
12071 #ifndef DB_VERSION_MAJOR
12072 # define DB_VERSION_MAJOR 1
12076 #define NULL ((void*)0)
12081 #if DB_VERSION_MAJOR > 2
12082 db_env_create( NULL, 0 );
12083 #elif DB_VERSION_MAJOR > 1
12084 db_appexit( NULL );
12086 (void) dbopen( NULL, 0, 0, 0, NULL);
12091 if { (eval echo configure:12092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12095 echo "configure: failed program was:" >&5
12096 cat conftest.$ac_ext >&5
12106 echo "$ac_t""$ol_cv_db_db2" 1>&6
12108 if test $ol_cv_db_db2 = yes ; then
12113 if test $ol_cv_lib_db = no ; then
12114 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12115 echo "configure:12116: checking for Berkeley DB link (-ldb1)" >&5
12116 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12117 echo $ac_n "(cached) $ac_c" 1>&6
12122 LIBS="$ol_DB_LIB $LIBS"
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12128 #ifdef HAVE_DB_185_H
12129 # include <db_185.h>
12134 #ifndef DB_VERSION_MAJOR
12135 # define DB_VERSION_MAJOR 1
12139 #define NULL ((void*)0)
12144 #if DB_VERSION_MAJOR > 2
12145 db_env_create( NULL, 0 );
12146 #elif DB_VERSION_MAJOR > 1
12147 db_appexit( NULL );
12149 (void) dbopen( NULL, 0, 0, 0, NULL);
12154 if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12169 echo "$ac_t""$ol_cv_db_db1" 1>&6
12171 if test $ol_cv_db_db1 = yes ; then
12177 if test "$ol_cv_lib_db" != no ; then
12178 ol_cv_berkeley_db=yes
12179 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12180 echo "configure:12181: checking for Berkeley DB thread support" >&5
12181 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12182 echo $ac_n "(cached) $ac_c" 1>&6
12186 if test $ol_cv_lib_db != yes ; then
12187 LIBS="$ol_cv_lib_db"
12190 if test "$cross_compiling" = yes; then
12191 ol_cv_berkeley_db_thread=cross
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure"
12195 #include "confdefs.h"
12197 #ifdef HAVE_DB_185_H
12203 #define NULL ((void *)0)
12208 u_int32_t flags = DB_CREATE | DB_THREAD;
12210 #if DB_VERSION_MAJOR > 2
12211 DB_ENV *env = NULL;
12213 rc = db_env_create( &env, 0 );
12216 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12217 rc = env->open( env, NULL, flags, 0 );
12219 rc = env->open( env, NULL, NULL, flags, 0 );
12225 memset( &env, '\0', sizeof(env) );
12227 rc = db_appinit( NULL, NULL, &env, flags );
12230 db_appexit( &env );
12233 #if DB_VERSION_MAJOR > 2
12234 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12235 env->remove( env, NULL, DB_FORCE);
12237 env->remove( env, NULL, NULL, DB_FORCE);
12244 if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12246 ol_cv_berkeley_db_thread=yes
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 ol_cv_berkeley_db_thread=no
12259 if test $ol_cv_berkeley_db_thread != no ; then
12260 cat >> confdefs.h <<\EOF
12261 #define HAVE_BERKELEY_DB_THREAD 1
12268 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12274 if test $ol_cv_berkeley_db != no ; then
12275 cat >> confdefs.h <<\EOF
12276 #define HAVE_BERKELEY_DB 1
12280 ol_link_ldbm=berkeley
12281 ol_with_ldbm_api=db
12283 if test $ol_with_ldbm_type = hash ; then
12284 cat >> confdefs.h <<\EOF
12285 #define LDBM_USE_DBHASH 1
12289 cat >> confdefs.h <<\EOF
12290 #define LDBM_USE_DBBTREE 1
12295 if test $ol_cv_lib_db != yes ; then
12296 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12301 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12302 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12303 ol_with_ldbm_api=none
12306 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12307 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12308 echo "configure:12309: checking for MDBM library" >&5
12309 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12310 echo $ac_n "(cached) $ac_c" 1>&6
12313 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12314 echo "configure:12315: checking for mdbm_set_chain" >&5
12315 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12318 cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12321 /* System header to define __stub macros and hopefully few prototypes,
12322 which can conflict with char mdbm_set_chain(); below. */
12323 #include <assert.h>
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char mdbm_set_chain();
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12338 f = mdbm_set_chain;
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12345 eval "ac_cv_func_mdbm_set_chain=yes"
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12350 eval "ac_cv_func_mdbm_set_chain=no"
12355 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12356 echo "$ac_t""yes" 1>&6
12359 echo "$ac_t""no" 1>&6
12361 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12362 echo "configure:12363: checking for mdbm_set_chain in -lmdbm" >&5
12363 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12365 echo $ac_n "(cached) $ac_c" 1>&6
12367 ac_save_LIBS="$LIBS"
12368 LIBS="-lmdbm $LIBS"
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 /* Override any gcc2 internal prototype to avoid an error. */
12373 /* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12375 char mdbm_set_chain();
12381 if { (eval echo configure:12382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12383 eval "ac_cv_lib_$ac_lib_var=yes"
12385 echo "configure: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12388 eval "ac_cv_lib_$ac_lib_var=no"
12391 LIBS="$ac_save_LIBS"
12394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396 ol_cv_lib_mdbm=-lmdbm
12398 echo "$ac_t""no" 1>&6
12409 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12412 for ac_hdr in mdbm.h
12414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12416 echo "configure:12417: checking for $ac_hdr" >&5
12417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12426 { (eval echo configure:12427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12428 if test -z "$ac_err"; then
12430 eval "ac_cv_header_$ac_safe=yes"
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12436 eval "ac_cv_header_$ac_safe=no"
12440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12441 echo "$ac_t""yes" 1>&6
12442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12443 cat >> confdefs.h <<EOF
12444 #define $ac_tr_hdr 1
12448 echo "$ac_t""no" 1>&6
12452 echo $ac_n "checking for db""... $ac_c" 1>&6
12453 echo "configure:12454: checking for db" >&5
12454 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12455 echo $ac_n "(cached) $ac_c" 1>&6
12458 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12466 echo "$ac_t""$ol_cv_mdbm" 1>&6
12467 if test $ol_cv_mdbm = yes ; then
12468 cat >> confdefs.h <<\EOF
12469 #define HAVE_MDBM 1
12475 if test $ol_cv_mdbm = yes ; then
12477 ol_with_ldbm_api=mdbm
12478 if test $ol_cv_lib_mdbm != yes ; then
12479 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12484 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12485 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12486 echo "configure:12487: checking for GDBM library" >&5
12487 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12488 echo $ac_n "(cached) $ac_c" 1>&6
12491 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12492 echo "configure:12493: checking for gdbm_open" >&5
12493 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12494 echo $ac_n "(cached) $ac_c" 1>&6
12496 cat > conftest.$ac_ext <<EOF
12497 #line 12498 "configure"
12498 #include "confdefs.h"
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char gdbm_open(); below. */
12501 #include <assert.h>
12502 /* Override any gcc2 internal prototype to avoid an error. */
12503 /* We use char because int might match the return type of a gcc2
12504 builtin and then its argument prototype would still apply. */
12510 /* The GNU C library defines this for functions which it implements
12511 to always fail with ENOSYS. Some functions are actually named
12512 something starting with __ and the normal name is an alias. */
12513 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12521 if { (eval echo configure:12522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12523 eval "ac_cv_func_gdbm_open=yes"
12525 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12528 eval "ac_cv_func_gdbm_open=no"
12533 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12534 echo "$ac_t""yes" 1>&6
12537 echo "$ac_t""no" 1>&6
12539 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12540 echo "configure:12541: checking for gdbm_open in -lgdbm" >&5
12541 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12543 echo $ac_n "(cached) $ac_c" 1>&6
12545 ac_save_LIBS="$LIBS"
12546 LIBS="-lgdbm $LIBS"
12547 cat > conftest.$ac_ext <<EOF
12548 #line 12549 "configure"
12549 #include "confdefs.h"
12550 /* Override any gcc2 internal prototype to avoid an error. */
12551 /* We use char because int might match the return type of a gcc2
12552 builtin and then its argument prototype would still apply. */
12559 if { (eval echo configure:12560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12561 eval "ac_cv_lib_$ac_lib_var=yes"
12563 echo "configure: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12566 eval "ac_cv_lib_$ac_lib_var=no"
12569 LIBS="$ac_save_LIBS"
12572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12573 echo "$ac_t""yes" 1>&6
12574 ol_cv_lib_gdbm=-lgdbm
12576 echo "$ac_t""no" 1>&6
12587 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12590 for ac_hdr in gdbm.h
12592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12594 echo "configure:12595: checking for $ac_hdr" >&5
12595 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12596 echo $ac_n "(cached) $ac_c" 1>&6
12598 cat > conftest.$ac_ext <<EOF
12599 #line 12600 "configure"
12600 #include "confdefs.h"
12603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12604 { (eval echo configure:12605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12606 if test -z "$ac_err"; then
12608 eval "ac_cv_header_$ac_safe=yes"
12611 echo "configure: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12614 eval "ac_cv_header_$ac_safe=no"
12618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12619 echo "$ac_t""yes" 1>&6
12620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12621 cat >> confdefs.h <<EOF
12622 #define $ac_tr_hdr 1
12626 echo "$ac_t""no" 1>&6
12630 echo $ac_n "checking for db""... $ac_c" 1>&6
12631 echo "configure:12632: checking for db" >&5
12632 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12633 echo $ac_n "(cached) $ac_c" 1>&6
12636 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12644 echo "$ac_t""$ol_cv_gdbm" 1>&6
12645 if test $ol_cv_gdbm = yes ; then
12646 cat >> confdefs.h <<\EOF
12647 #define HAVE_GDBM 1
12653 if test $ol_cv_gdbm = yes ; then
12655 ol_with_ldbm_api=gdbm
12657 if test $ol_cv_lib_gdbm != yes ; then
12658 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12663 if test $ol_with_ldbm_api = ndbm ; then
12664 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12665 echo "configure:12666: checking for NDBM library" >&5
12666 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12667 echo $ac_n "(cached) $ac_c" 1>&6
12670 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12671 echo "configure:12672: checking for dbm_open" >&5
12672 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12673 echo $ac_n "(cached) $ac_c" 1>&6
12675 cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12678 /* System header to define __stub macros and hopefully few prototypes,
12679 which can conflict with char dbm_open(); below. */
12680 #include <assert.h>
12681 /* Override any gcc2 internal prototype to avoid an error. */
12682 /* We use char because int might match the return type of a gcc2
12683 builtin and then its argument prototype would still apply. */
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12700 if { (eval echo configure:12701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12702 eval "ac_cv_func_dbm_open=yes"
12704 echo "configure: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12707 eval "ac_cv_func_dbm_open=no"
12712 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12713 echo "$ac_t""yes" 1>&6
12716 echo "$ac_t""no" 1>&6
12718 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12719 echo "configure:12720: checking for dbm_open in -lndbm" >&5
12720 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12721 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12724 ac_save_LIBS="$LIBS"
12725 LIBS="-lndbm $LIBS"
12726 cat > conftest.$ac_ext <<EOF
12727 #line 12728 "configure"
12728 #include "confdefs.h"
12729 /* Override any gcc2 internal prototype to avoid an error. */
12730 /* We use char because int might match the return type of a gcc2
12731 builtin and then its argument prototype would still apply. */
12738 if { (eval echo configure:12739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12740 eval "ac_cv_lib_$ac_lib_var=yes"
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12745 eval "ac_cv_lib_$ac_lib_var=no"
12748 LIBS="$ac_save_LIBS"
12751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12752 echo "$ac_t""yes" 1>&6
12753 ol_cv_lib_ndbm=-lndbm
12755 echo "$ac_t""no" 1>&6
12757 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12758 echo "configure:12759: checking for dbm_open in -ldbm" >&5
12759 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12760 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12763 ac_save_LIBS="$LIBS"
12765 cat > conftest.$ac_ext <<EOF
12766 #line 12767 "configure"
12767 #include "confdefs.h"
12768 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12777 if { (eval echo configure:12778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12779 eval "ac_cv_lib_$ac_lib_var=yes"
12781 echo "configure: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12784 eval "ac_cv_lib_$ac_lib_var=no"
12787 LIBS="$ac_save_LIBS"
12790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12791 echo "$ac_t""yes" 1>&6
12792 ol_cv_lib_ndbm=-ldbm
12794 echo "$ac_t""no" 1>&6
12807 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12810 for ac_hdr in ndbm.h
12812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12814 echo "configure:12815: checking for $ac_hdr" >&5
12815 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12818 cat > conftest.$ac_ext <<EOF
12819 #line 12820 "configure"
12820 #include "confdefs.h"
12823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12824 { (eval echo configure:12825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12826 if test -z "$ac_err"; then
12828 eval "ac_cv_header_$ac_safe=yes"
12831 echo "configure: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12834 eval "ac_cv_header_$ac_safe=no"
12838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12839 echo "$ac_t""yes" 1>&6
12840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12841 cat >> confdefs.h <<EOF
12842 #define $ac_tr_hdr 1
12846 echo "$ac_t""no" 1>&6
12850 echo $ac_n "checking for db""... $ac_c" 1>&6
12851 echo "configure:12852: checking for db" >&5
12852 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12853 echo $ac_n "(cached) $ac_c" 1>&6
12856 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12864 echo "$ac_t""$ol_cv_ndbm" 1>&6
12865 if test $ol_cv_ndbm = yes ; then
12866 cat >> confdefs.h <<\EOF
12867 #define HAVE_NDBM 1
12873 if test $ol_cv_ndbm = yes ; then
12875 ol_with_ldbm_api=ndbm
12877 if test $ol_cv_lib_ndbm != yes ; then
12878 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12883 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12884 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12885 if test $ol_enable_ldbm = yes ; then
12886 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12889 echo "configure: warning: disabling LDBM" 1>&2
12893 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12894 LINK_BINS_DYNAMIC="yes"
12896 LINK_BINS_DYNAMIC="no"
12899 if test $ol_enable_wrappers != no ; then
12900 for ac_hdr in tcpd.h
12902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12904 echo "configure:12905: checking for $ac_hdr" >&5
12905 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12914 { (eval echo configure:12915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12916 if test -z "$ac_err"; then
12918 eval "ac_cv_header_$ac_safe=yes"
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 eval "ac_cv_header_$ac_safe=no"
12928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12931 cat >> confdefs.h <<EOF
12932 #define $ac_tr_hdr 1
12936 echo "$ac_t""no" 1>&6
12941 if test $ac_cv_header_tcpd_h != yes ; then
12944 cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12948 int allow_severity = 0;
12949 int deny_severity = 0;
12955 if { (eval echo configure:12956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12967 if test $have_wrappers = yes ; then
12968 cat >> confdefs.h <<\EOF
12969 #define HAVE_TCPD 1
12974 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12975 echo "configure:12976: checking for main in -lnsl" >&5
12976 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12978 echo $ac_n "(cached) $ac_c" 1>&6
12980 ac_save_LIBS="$LIBS"
12982 cat > conftest.$ac_ext <<EOF
12983 #line 12984 "configure"
12984 #include "confdefs.h"
12990 if { (eval echo configure:12991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12992 eval "ac_cv_lib_$ac_lib_var=yes"
12994 echo "configure: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12997 eval "ac_cv_lib_$ac_lib_var=no"
13000 LIBS="$ac_save_LIBS"
13003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13004 echo "$ac_t""yes" 1>&6
13005 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13007 cat >> confdefs.h <<EOF
13008 #define $ac_tr_lib 1
13014 echo "$ac_t""no" 1>&6
13018 echo "configure: warning: could not find -lwrap" 1>&2
13019 if test $ol_enable_wrappers = yes ; then
13020 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13023 echo "configure: warning: disabling wrappers support" 1>&2
13024 ol_enable_wrappers=no
13029 if test $ol_enable_syslog != no ; then
13030 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13031 echo "configure:13032: checking for openlog" >&5
13032 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13033 echo $ac_n "(cached) $ac_c" 1>&6
13035 cat > conftest.$ac_ext <<EOF
13036 #line 13037 "configure"
13037 #include "confdefs.h"
13038 /* System header to define __stub macros and hopefully few prototypes,
13039 which can conflict with char openlog(); below. */
13040 #include <assert.h>
13041 /* Override any gcc2 internal prototype to avoid an error. */
13042 /* We use char because int might match the return type of a gcc2
13043 builtin and then its argument prototype would still apply. */
13049 /* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052 #if defined (__stub_openlog) || defined (__stub___openlog)
13060 if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13062 eval "ac_cv_func_openlog=yes"
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13067 eval "ac_cv_func_openlog=no"
13072 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13073 echo "$ac_t""yes" 1>&6
13076 echo "$ac_t""no" 1>&6
13079 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13080 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13082 ol_enable_syslog=$ac_cv_func_openlog
13085 if test $ol_enable_tcl != no ; then
13086 for ac_hdr in tcl.h
13088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13090 echo "configure:13091: checking for $ac_hdr" >&5
13091 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13092 echo $ac_n "(cached) $ac_c" 1>&6
13094 cat > conftest.$ac_ext <<EOF
13095 #line 13096 "configure"
13096 #include "confdefs.h"
13099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13100 { (eval echo configure:13101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13102 if test -z "$ac_err"; then
13104 eval "ac_cv_header_$ac_safe=yes"
13107 echo "configure: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13110 eval "ac_cv_header_$ac_safe=no"
13114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13117 cat >> confdefs.h <<EOF
13118 #define $ac_tr_hdr 1
13122 echo "$ac_t""no" 1>&6
13127 if test $ac_cv_header_tcl_h != yes ; then
13130 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13131 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13132 echo "configure:13133: checking for main in -l$lib" >&5
13133 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
13137 ac_save_LIBS="$LIBS"
13138 LIBS="-l$lib $LIBS"
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13147 if { (eval echo configure:13148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13149 eval "ac_cv_lib_$ac_lib_var=yes"
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13154 eval "ac_cv_lib_$ac_lib_var=no"
13157 LIBS="$ac_save_LIBS"
13160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13161 echo "$ac_t""yes" 1>&6
13163 if test x"$ol_with_tcl_module" = "xstatic" ; then
13164 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13166 MOD_TCL_LIB="-l${lib}"
13169 echo "$ac_t""no" 1>&6
13176 if test $have_tcl != yes ; then
13177 echo "configure: warning: could not find -ltcl" 1>&2
13178 if test $ol_enable_tcl = yes ; then
13179 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13187 for ac_hdr in termcap.h ncurses.h
13189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13191 echo "configure:13192: checking for $ac_hdr" >&5
13192 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13193 echo $ac_n "(cached) $ac_c" 1>&6
13195 cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13201 { (eval echo configure:13202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13203 if test -z "$ac_err"; then
13205 eval "ac_cv_header_$ac_safe=yes"
13208 echo "configure: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13211 eval "ac_cv_header_$ac_safe=no"
13215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13216 echo "$ac_t""yes" 1>&6
13217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13218 cat >> confdefs.h <<EOF
13219 #define $ac_tr_hdr 1
13223 echo "$ac_t""no" 1>&6
13228 if test $ol_link_termcap = no ; then
13229 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13230 echo "configure:13231: checking for tputs in -ltermcap" >&5
13231 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13233 echo $ac_n "(cached) $ac_c" 1>&6
13235 ac_save_LIBS="$LIBS"
13236 LIBS="-ltermcap $LIBS"
13237 cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240 /* Override any gcc2 internal prototype to avoid an error. */
13241 /* We use char because int might match the return type of a gcc2
13242 builtin and then its argument prototype would still apply. */
13249 if { (eval echo configure:13250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13251 eval "ac_cv_lib_$ac_lib_var=yes"
13253 echo "configure: failed program was:" >&5
13254 cat conftest.$ac_ext >&5
13256 eval "ac_cv_lib_$ac_lib_var=no"
13259 LIBS="$ac_save_LIBS"
13262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13263 echo "$ac_t""yes" 1>&6
13266 echo "$ac_t""no" 1>&6
13270 if test $have_termcap = yes ; then
13271 cat >> confdefs.h <<\EOF
13272 #define HAVE_TERMCAP 1
13275 ol_link_termcap=yes
13276 TERMCAP_LIBS=-ltermcap
13280 if test $ol_link_termcap = no ; then
13281 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13282 echo "configure:13283: checking for initscr in -lncurses" >&5
13283 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13284 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13287 ac_save_LIBS="$LIBS"
13288 LIBS="-lncurses $LIBS"
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 /* Override any gcc2 internal prototype to avoid an error. */
13293 /* We use char because int might match the return type of a gcc2
13294 builtin and then its argument prototype would still apply. */
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303 eval "ac_cv_lib_$ac_lib_var=yes"
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13308 eval "ac_cv_lib_$ac_lib_var=no"
13311 LIBS="$ac_save_LIBS"
13314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13315 echo "$ac_t""yes" 1>&6
13318 echo "$ac_t""no" 1>&6
13322 if test $have_ncurses = yes ; then
13323 cat >> confdefs.h <<\EOF
13324 #define HAVE_NCURSES 1
13327 ol_link_termcap=yes
13328 TERMCAP_LIBS=-lncurses
13332 if test $ol_link_termcap = no ; then
13333 cat >> confdefs.h <<\EOF
13334 #define NO_TERMCAP 1
13342 if test $ol_with_cyrus_sasl != no ; then
13343 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13344 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13345 echo "configure:13346: checking for sasl.h" >&5
13346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13355 { (eval echo configure:13356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13357 if test -z "$ac_err"; then
13359 eval "ac_cv_header_$ac_safe=yes"
13362 echo "configure: failed program was:" >&5
13363 cat conftest.$ac_ext >&5
13365 eval "ac_cv_header_$ac_safe=no"
13369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13370 echo "$ac_t""yes" 1>&6
13373 echo "$ac_t""no" 1>&6
13377 if test $ac_cv_header_sasl_h = yes ; then
13378 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13379 echo "configure:13380: checking for sasl_client_init in -lsasl" >&5
13380 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13381 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13382 echo $ac_n "(cached) $ac_c" 1>&6
13384 ac_save_LIBS="$LIBS"
13385 LIBS="-lsasl $LIBS"
13386 cat > conftest.$ac_ext <<EOF
13387 #line 13388 "configure"
13388 #include "confdefs.h"
13389 /* Override any gcc2 internal prototype to avoid an error. */
13390 /* We use char because int might match the return type of a gcc2
13391 builtin and then its argument prototype would still apply. */
13392 char sasl_client_init();
13398 if { (eval echo configure:13399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13400 eval "ac_cv_lib_$ac_lib_var=yes"
13402 echo "configure: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13405 eval "ac_cv_lib_$ac_lib_var=no"
13408 LIBS="$ac_save_LIBS"
13411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13412 echo "$ac_t""yes" 1>&6
13413 have_cyrus_sasl=yes
13415 echo "$ac_t""no" 1>&6
13420 if test $have_cyrus_sasl != no ; then
13422 cat >> confdefs.h <<\EOF
13423 #define HAVE_CYRUS_SASL 1
13430 if test $ol_link_sasl = no ; then
13431 if test $ol_with_cyrus_sasl != auto ; then
13432 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13434 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13435 echo "configure: warning: SASL authentication not supported!" 1>&2
13436 if test $ol_link_tls = no ; then
13437 echo "configure: warning: Strong authentication not supported!" 1>&2
13442 echo "configure: warning: SASL authentication not supported!" 1>&2
13443 if test $ol_link_tls = no ; then
13444 echo "configure: warning: Strong authentication not supported!" 1>&2
13448 if test $cross_compiling != yes ; then
13450 if test -r /dev/urandom ; then
13451 dev="/dev/urandom";
13452 elif test -r /idev/urandom ; then
13453 dev="/idev/urandom";
13454 elif test -r /dev/srandom ; then
13455 dev="/dev/srandom";
13456 elif test -r /dev/random ; then
13458 elif test -r /idev/random ; then
13459 dev="/idev/random";
13462 if test $dev != no ; then
13463 cat >> confdefs.h <<EOF
13464 #define URANDOM_DEVICE "$dev"
13471 if test $ol_with_fetch != no ; then
13473 LIBS="-lfetch -lcom_err $LIBS"
13474 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13475 echo "configure:13476: checking fetch(3) library" >&5
13476 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13480 cat > conftest.$ac_ext <<EOF
13481 #line 13482 "configure"
13482 #include "confdefs.h"
13484 #include <sys/param.h>
13488 struct url *u = fetchParseURL("file:///");
13491 if { (eval echo configure:13492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13493 ol_cv_lib_fetch=yes
13495 echo "configure: failed program was:" >&5
13496 cat conftest.$ac_ext >&5
13503 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13505 if test $ol_cv_lib_fetch != no ; then
13506 ol_link_fetch="-lfetch -lcom_err"
13507 cat >> confdefs.h <<\EOF
13508 #define HAVE_FETCH 1
13514 if test $ol_cv_lib_fetch != no ; then
13515 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13516 ol_link_fetch=freebsd
13518 elif test $ol_with_fetch != auto ; then
13519 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13523 ol_link_readline=no
13524 if test $ol_with_readline != no ; then
13525 for ac_hdr in readline/readline.h readline/history.h
13527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13529 echo "configure:13530: checking for $ac_hdr" >&5
13530 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13531 echo $ac_n "(cached) $ac_c" 1>&6
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13539 { (eval echo configure:13540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13541 if test -z "$ac_err"; then
13543 eval "ac_cv_header_$ac_safe=yes"
13546 echo "configure: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13549 eval "ac_cv_header_$ac_safe=no"
13553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13554 echo "$ac_t""yes" 1>&6
13555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13556 cat >> confdefs.h <<EOF
13557 #define $ac_tr_hdr 1
13561 echo "$ac_t""no" 1>&6
13566 if test $ac_cv_header_readline_readline_h = yes ; then
13568 LIBS="$TERMCAP_LIBS $LIBS"
13569 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13570 echo "configure:13571: checking for readline in -lreadline" >&5
13571 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13572 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13573 echo $ac_n "(cached) $ac_c" 1>&6
13575 ac_save_LIBS="$LIBS"
13576 LIBS="-lreadline $LIBS"
13577 cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13580 /* Override any gcc2 internal prototype to avoid an error. */
13581 /* We use char because int might match the return type of a gcc2
13582 builtin and then its argument prototype would still apply. */
13589 if { (eval echo configure:13590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13591 eval "ac_cv_lib_$ac_lib_var=yes"
13593 echo "configure: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13596 eval "ac_cv_lib_$ac_lib_var=no"
13599 LIBS="$ac_save_LIBS"
13602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13603 echo "$ac_t""yes" 1>&6
13606 echo "$ac_t""no" 1>&6
13612 if test $have_readline = yes ; then
13613 ol_with_readline=found
13614 ol_link_readline=yes
13616 READLINE_LIBS="-lreadline"
13621 if test $ol_link_readline = yes ; then
13622 cat >> confdefs.h <<\EOF
13623 #define HAVE_READLINE 1
13629 if test $ol_enable_crypt != no ; then
13630 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13631 echo "configure:13632: checking for crypt" >&5
13632 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13633 echo $ac_n "(cached) $ac_c" 1>&6
13635 cat > conftest.$ac_ext <<EOF
13636 #line 13637 "configure"
13637 #include "confdefs.h"
13638 /* System header to define __stub macros and hopefully few prototypes,
13639 which can conflict with char crypt(); below. */
13640 #include <assert.h>
13641 /* Override any gcc2 internal prototype to avoid an error. */
13642 /* We use char because int might match the return type of a gcc2
13643 builtin and then its argument prototype would still apply. */
13649 /* The GNU C library defines this for functions which it implements
13650 to always fail with ENOSYS. Some functions are actually named
13651 something starting with __ and the normal name is an alias. */
13652 #if defined (__stub_crypt) || defined (__stub___crypt)
13660 if { (eval echo configure:13661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13662 eval "ac_cv_func_crypt=yes"
13664 echo "configure: failed program was:" >&5
13665 cat conftest.$ac_ext >&5
13667 eval "ac_cv_func_crypt=no"
13672 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13673 echo "$ac_t""yes" 1>&6
13676 echo "$ac_t""no" 1>&6
13678 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13679 echo "configure:13680: checking for crypt in -lcrypt" >&5
13680 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13684 ac_save_LIBS="$LIBS"
13685 LIBS="-lcrypt $LIBS"
13686 cat > conftest.$ac_ext <<EOF
13687 #line 13688 "configure"
13688 #include "confdefs.h"
13689 /* Override any gcc2 internal prototype to avoid an error. */
13690 /* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13698 if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13700 eval "ac_cv_lib_$ac_lib_var=yes"
13702 echo "configure: failed program was:" >&5
13703 cat conftest.$ac_ext >&5
13705 eval "ac_cv_lib_$ac_lib_var=no"
13708 LIBS="$ac_save_LIBS"
13711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13712 echo "$ac_t""yes" 1>&6
13713 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13716 echo "$ac_t""no" 1>&6
13723 if test $have_crypt = yes ; then
13724 cat >> confdefs.h <<\EOF
13725 #define HAVE_CRYPT 1
13729 echo "configure: warning: could not find crypt" 1>&2
13730 if test $ol_enable_crypt = yes ; then
13731 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13734 echo "configure: warning: disabling crypt support" 1>&2
13739 if test $ol_enable_proctitle != no ; then
13740 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13741 echo "configure:13742: checking for setproctitle" >&5
13742 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13743 echo $ac_n "(cached) $ac_c" 1>&6
13745 cat > conftest.$ac_ext <<EOF
13746 #line 13747 "configure"
13747 #include "confdefs.h"
13748 /* System header to define __stub macros and hopefully few prototypes,
13749 which can conflict with char setproctitle(); below. */
13750 #include <assert.h>
13751 /* Override any gcc2 internal prototype to avoid an error. */
13752 /* We use char because int might match the return type of a gcc2
13753 builtin and then its argument prototype would still apply. */
13754 char setproctitle();
13759 /* The GNU C library defines this for functions which it implements
13760 to always fail with ENOSYS. Some functions are actually named
13761 something starting with __ and the normal name is an alias. */
13762 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13770 if { (eval echo configure:13771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13772 eval "ac_cv_func_setproctitle=yes"
13774 echo "configure: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13777 eval "ac_cv_func_setproctitle=no"
13782 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13783 echo "$ac_t""yes" 1>&6
13784 have_setproctitle=yes
13786 echo "$ac_t""no" 1>&6
13788 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13789 echo "configure:13790: checking for setproctitle in -lutil" >&5
13790 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
13794 ac_save_LIBS="$LIBS"
13795 LIBS="-lutil $LIBS"
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* Override any gcc2 internal prototype to avoid an error. */
13800 /* We use char because int might match the return type of a gcc2
13801 builtin and then its argument prototype would still apply. */
13802 char setproctitle();
13808 if { (eval echo configure:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13810 eval "ac_cv_lib_$ac_lib_var=yes"
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13815 eval "ac_cv_lib_$ac_lib_var=no"
13818 LIBS="$ac_save_LIBS"
13821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13822 echo "$ac_t""yes" 1>&6
13823 have_setproctitle=yes
13824 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13826 echo "$ac_t""no" 1>&6
13827 have_setproctitle=no
13828 LIBOBJS="$LIBOBJS setproctitle.o"
13829 LIBSRCS="$LIBSRCS setproctitle.c"
13835 if test $have_setproctitle = yes ; then
13836 cat >> confdefs.h <<\EOF
13837 #define HAVE_SETPROCTITLE 1
13843 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13844 echo "configure:13845: checking for ANSI C header files" >&5
13845 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13846 echo $ac_n "(cached) $ac_c" 1>&6
13848 cat > conftest.$ac_ext <<EOF
13849 #line 13850 "configure"
13850 #include "confdefs.h"
13851 #include <stdlib.h>
13852 #include <stdarg.h>
13853 #include <string.h>
13856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13857 { (eval echo configure:13858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13859 if test -z "$ac_err"; then
13861 ac_cv_header_stdc=yes
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13867 ac_cv_header_stdc=no
13871 if test $ac_cv_header_stdc = yes; then
13872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13873 cat > conftest.$ac_ext <<EOF
13874 #line 13875 "configure"
13875 #include "confdefs.h"
13876 #include <string.h>
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 egrep "memchr" >/dev/null 2>&1; then
13883 ac_cv_header_stdc=no
13889 if test $ac_cv_header_stdc = yes; then
13890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13891 cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 #include <stdlib.h>
13896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13897 egrep "free" >/dev/null 2>&1; then
13901 ac_cv_header_stdc=no
13907 if test $ac_cv_header_stdc = yes; then
13908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13909 if test "$cross_compiling" = yes; then
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13916 #if ((' ' & 0x0FF) == 0x020)
13917 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13918 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13920 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13921 || ('j' <= (c) && (c) <= 'r') \
13922 || ('s' <= (c) && (c) <= 'z'))
13923 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13926 int main () { int i; for (i = 0; i < 256; i++)
13927 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13931 if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13935 echo "configure: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13938 ac_cv_header_stdc=no
13946 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13947 if test $ac_cv_header_stdc = yes; then
13948 cat >> confdefs.h <<\EOF
13949 #define STDC_HEADERS 1
13954 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13955 echo "configure:13956: checking for mode_t" >&5
13956 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 #include <sys/types.h>
13964 #include <stdlib.h>
13965 #include <stddef.h>
13969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13970 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13972 eval "ac_cv_type_mode_t=yes"
13975 eval "ac_cv_type_mode_t=no"
13980 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6
13983 echo "$ac_t""no" 1>&6
13984 cat >> confdefs.h <<EOF
13990 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13991 echo "configure:13992: checking for off_t" >&5
13992 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13993 echo $ac_n "(cached) $ac_c" 1>&6
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13997 "configure"
13997 #include "confdefs.h"
13998 #include <sys/types.h>
14000 #include <stdlib.h>
14001 #include <stddef.h>
14005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14006 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14008 eval "ac_cv_type_off_t=yes"
14011 eval "ac_cv_type_off_t=no"
14016 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14017 echo "$ac_t""yes" 1>&6
14019 echo "$ac_t""no" 1>&6
14020 cat >> confdefs.h <<EOF
14026 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14027 echo "configure:14028: checking for pid_t" >&5
14028 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14031 cat > conftest.$ac_ext <<EOF
14032 #line 14033 "configure"
14033 #include "confdefs.h"
14034 #include <sys/types.h>
14036 #include <stdlib.h>
14037 #include <stddef.h>
14041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14042 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14044 eval "ac_cv_type_pid_t=yes"
14047 eval "ac_cv_type_pid_t=no"
14052 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14053 echo "$ac_t""yes" 1>&6
14055 echo "$ac_t""no" 1>&6
14056 cat >> confdefs.h <<EOF
14062 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14063 echo "configure:14064: checking for ptrdiff_t" >&5
14064 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14065 echo $ac_n "(cached) $ac_c" 1>&6
14067 cat > conftest.$ac_ext <<EOF
14068 #line 14069 "configure"
14069 #include "confdefs.h"
14070 #include <stddef.h>
14075 if { (eval echo configure:14076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14077 am_cv_type_ptrdiff_t=yes
14079 echo "configure: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14082 am_cv_type_ptrdiff_t=no
14087 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14088 if test $am_cv_type_ptrdiff_t = yes; then
14089 cat >> confdefs.h <<\EOF
14090 #define HAVE_PTRDIFF_T 1
14095 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14096 echo "configure:14097: checking return type of signal handlers" >&5
14097 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14098 echo $ac_n "(cached) $ac_c" 1>&6
14100 cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103 #include <sys/types.h>
14104 #include <signal.h>
14109 extern "C" void (*signal (int, void (*)(int)))(int);
14111 void (*signal ()) ();
14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14120 ac_cv_type_signal=void
14122 echo "configure: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14125 ac_cv_type_signal=int
14130 echo "$ac_t""$ac_cv_type_signal" 1>&6
14131 cat >> confdefs.h <<EOF
14132 #define RETSIGTYPE $ac_cv_type_signal
14136 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14137 echo "configure:14138: checking for size_t" >&5
14138 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14139 echo $ac_n "(cached) $ac_c" 1>&6
14141 cat > conftest.$ac_ext <<EOF
14142 #line 14143 "configure"
14143 #include "confdefs.h"
14144 #include <sys/types.h>
14146 #include <stdlib.h>
14147 #include <stddef.h>
14151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14152 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14154 eval "ac_cv_type_size_t=yes"
14157 eval "ac_cv_type_size_t=no"
14162 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14163 echo "$ac_t""yes" 1>&6
14165 echo "$ac_t""no" 1>&6
14166 cat >> confdefs.h <<EOF
14167 #define size_t unsigned
14173 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14174 echo "configure:14175: checking for ssize_t" >&5
14175 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14176 echo $ac_n "(cached) $ac_c" 1>&6
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 #include <sys/types.h>
14183 #include <stdlib.h>
14184 #include <stddef.h>
14188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14189 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14191 eval "ac_cv_type_ssize_t=yes"
14194 eval "ac_cv_type_ssize_t=no"
14199 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14200 echo "$ac_t""yes" 1>&6
14202 echo "$ac_t""no" 1>&6
14203 cat >> confdefs.h <<EOF
14204 #define ssize_t signed int
14209 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14210 echo "configure:14211: checking for caddr_t" >&5
14211 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14212 echo $ac_n "(cached) $ac_c" 1>&6
14214 cat > conftest.$ac_ext <<EOF
14215 #line 14216 "configure"
14216 #include "confdefs.h"
14217 #include <sys/types.h>
14219 #include <stdlib.h>
14220 #include <stddef.h>
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14227 eval "ac_cv_type_caddr_t=yes"
14230 eval "ac_cv_type_caddr_t=no"
14235 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14236 echo "$ac_t""yes" 1>&6
14238 echo "$ac_t""no" 1>&6
14239 cat >> confdefs.h <<EOF
14240 #define caddr_t char *
14246 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14247 echo "configure:14248: checking for socklen_t" >&5
14248 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14249 echo $ac_n "(cached) $ac_c" 1>&6
14251 cat > conftest.$ac_ext <<EOF
14252 #line 14253 "configure"
14253 #include "confdefs.h"
14255 #ifdef HAVE_SYS_TYPES_H
14256 #include <sys/types.h>
14258 #ifdef HAVE_SYS_SOCKET_H
14259 #include <sys/socket.h>
14266 if { (eval echo configure:14267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14268 ol_cv_type_socklen_t=yes
14270 echo "configure: failed program was:" >&5
14271 cat conftest.$ac_ext >&5
14273 ol_cv_type_socklen_t=no
14278 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14279 if test $ol_cv_type_socklen_t = no; then
14280 cat >> confdefs.h <<\EOF
14281 #define socklen_t int
14286 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14287 echo "configure:14288: checking for member st_blksize in aggregate type struct stat" >&5
14288 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
14291 cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14294 #include <sys/types.h>
14295 #include <sys/stat.h>
14297 struct stat foo; foo.st_blksize;
14300 if { (eval echo configure:14301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14302 ac_cv_c_struct_member_st_blksize=yes
14304 echo "configure: failed program was:" >&5
14305 cat conftest.$ac_ext >&5
14307 ac_cv_c_struct_member_st_blksize=no
14312 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14313 st_blksize="$ac_cv_c_struct_member_st_blksize"
14314 if test $ac_cv_c_struct_member_st_blksize = yes; then
14315 cat >> confdefs.h <<\EOF
14316 #define HAVE_ST_BLKSIZE 1
14321 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14322 echo "configure:14323: checking whether time.h and sys/time.h may both be included" >&5
14323 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14324 echo $ac_n "(cached) $ac_c" 1>&6
14326 cat > conftest.$ac_ext <<EOF
14327 #line 14328 "configure"
14328 #include "confdefs.h"
14329 #include <sys/types.h>
14330 #include <sys/time.h>
14336 if { (eval echo configure:14337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14338 ac_cv_header_time=yes
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14343 ac_cv_header_time=no
14348 echo "$ac_t""$ac_cv_header_time" 1>&6
14349 if test $ac_cv_header_time = yes; then
14350 cat >> confdefs.h <<\EOF
14351 #define TIME_WITH_SYS_TIME 1
14356 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14357 echo "configure:14358: checking whether struct tm is in sys/time.h or time.h" >&5
14358 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14359 echo $ac_n "(cached) $ac_c" 1>&6
14361 cat > conftest.$ac_ext <<EOF
14362 #line 14363 "configure"
14363 #include "confdefs.h"
14364 #include <sys/types.h>
14367 struct tm *tp; tp->tm_sec;
14370 if { (eval echo configure:14371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14372 ac_cv_struct_tm=time.h
14374 echo "configure: failed program was:" >&5
14375 cat conftest.$ac_ext >&5
14377 ac_cv_struct_tm=sys/time.h
14382 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14383 if test $ac_cv_struct_tm = sys/time.h; then
14384 cat >> confdefs.h <<\EOF
14385 #define TM_IN_SYS_TIME 1
14390 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14391 echo "configure:14392: checking for uid_t in sys/types.h" >&5
14392 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14395 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 #include <sys/types.h>
14400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14401 egrep "uid_t" >/dev/null 2>&1; then
14403 ac_cv_type_uid_t=yes
14406 ac_cv_type_uid_t=no
14412 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14413 if test $ac_cv_type_uid_t = no; then
14414 cat >> confdefs.h <<\EOF
14418 cat >> confdefs.h <<\EOF
14424 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14425 echo "configure:14426: checking for sig_atomic_t" >&5
14426 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14427 echo $ac_n "(cached) $ac_c" 1>&6
14429 cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure"
14431 #include "confdefs.h"
14432 #include <signal.h>
14434 sig_atomic_t atomic;
14437 if { (eval echo configure:14438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14439 ol_cv_type_sig_atomic_t=yes
14441 echo "configure: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14444 ol_cv_type_sig_atomic_t=no
14449 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14450 if test $ol_cv_type_sig_atomic_t = no; then
14451 cat >> confdefs.h <<\EOF
14452 #define sig_atomic_t int
14459 # test for pw_gecos in struct passwd
14460 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14461 echo "configure:14462: checking struct passwd for pw_gecos" >&5
14462 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14463 echo $ac_n "(cached) $ac_c" 1>&6
14466 cat > conftest.$ac_ext <<EOF
14467 #line 14468 "configure"
14468 #include "confdefs.h"
14473 pwd.pw_gecos = pwd.pw_name;
14477 if { (eval echo configure:14478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14479 ol_cv_struct_passwd_pw_gecos=yes
14481 echo "configure: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14484 ol_cv_struct_passwd_pw_gecos=no
14489 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14490 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14491 cat >> confdefs.h <<\EOF
14492 #define HAVE_PW_GECOS 1
14497 # test for pw_passwd in struct passwd
14498 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14499 echo "configure:14500: checking struct passwd for pw_passwd" >&5
14500 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14501 echo $ac_n "(cached) $ac_c" 1>&6
14504 cat > conftest.$ac_ext <<EOF
14505 #line 14506 "configure"
14506 #include "confdefs.h"
14511 pwd.pw_passwd = pwd.pw_name;
14515 if { (eval echo configure:14516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14517 ol_cv_struct_passwd_pw_passwd=yes
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14522 ol_cv_struct_passwd_pw_passwd=no
14527 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14528 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14529 cat >> confdefs.h <<\EOF
14530 #define HAVE_PW_PASSWD 1
14536 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14537 echo "configure:14538: checking if toupper() requires islower()" >&5
14538 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14539 echo $ac_n "(cached) $ac_c" 1>&6
14542 if test "$cross_compiling" = yes; then
14543 ol_cv_c_upper_lower=safe
14545 cat > conftest.$ac_ext <<EOF
14546 #line 14547 "configure"
14547 #include "confdefs.h"
14552 if ('C' == toupper('C'))
14558 if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14560 ol_cv_c_upper_lower=no
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14565 ol_cv_c_upper_lower=yes
14572 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14573 if test $ol_cv_c_upper_lower != no ; then
14574 cat >> confdefs.h <<\EOF
14575 #define C_UPPER_LOWER 1
14580 echo $ac_n "checking for working const""... $ac_c" 1>&6
14581 echo "configure:14582: checking for working const" >&5
14582 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14583 echo $ac_n "(cached) $ac_c" 1>&6
14585 cat > conftest.$ac_ext <<EOF
14586 #line 14587 "configure"
14587 #include "confdefs.h"
14591 /* Ultrix mips cc rejects this. */
14592 typedef int charset[2]; const charset x;
14593 /* SunOS 4.1.1 cc rejects this. */
14594 char const *const *ccp;
14596 /* NEC SVR4.0.2 mips cc rejects this. */
14597 struct point {int x, y;};
14598 static struct point const zero = {0,0};
14599 /* AIX XL C 1.02.0.0 rejects this.
14600 It does not let you subtract one const X* pointer from another in an arm
14601 of an if-expression whose if-part is not a constant expression */
14602 const char *g = "string";
14603 ccp = &g + (g ? g-g : 0);
14604 /* HPUX 7.0 cc rejects these. */
14607 ccp = (char const *const *) p;
14608 { /* SCO 3.2v4 cc rejects this. */
14610 char const *s = 0 ? (char *) 0 : (char const *) 0;
14614 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14615 int x[] = {25, 17};
14616 const int *foo = &x[0];
14619 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14620 typedef const int *iptr;
14624 { /* AIX XL C 1.02.0.0 rejects this saying
14625 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14626 struct s { int j; const int *ap[3]; };
14627 struct s *b; b->j = 5;
14629 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14630 const int foo = 10;
14635 if { (eval echo configure:14636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14647 echo "$ac_t""$ac_cv_c_const" 1>&6
14648 if test $ac_cv_c_const = no; then
14649 cat >> confdefs.h <<\EOF
14655 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14656 echo "configure:14657: checking if compiler understands volatile" >&5
14657 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14658 echo $ac_n "(cached) $ac_c" 1>&6
14660 cat > conftest.$ac_ext <<EOF
14661 #line 14662 "configure"
14662 #include "confdefs.h"
14665 volatile int a; int * volatile b = x ? &y : &z;
14666 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14670 if { (eval echo configure:14671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14672 ol_cv_c_volatile=yes
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14677 ol_cv_c_volatile=no
14682 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14683 if test $ol_cv_c_volatile = yes; then
14686 cat >> confdefs.h <<\EOF
14693 if test $cross_compiling = yes ; then
14694 cat >> confdefs.h <<\EOF
14695 #define CROSS_COMPILING 1
14699 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14700 echo "configure:14701: checking whether byte ordering is bigendian" >&5
14701 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14702 echo $ac_n "(cached) $ac_c" 1>&6
14704 ac_cv_c_bigendian=unknown
14705 # See if sys/param.h defines the BYTE_ORDER macro.
14706 cat > conftest.$ac_ext <<EOF
14707 #line 14708 "configure"
14708 #include "confdefs.h"
14709 #include <sys/types.h>
14710 #include <sys/param.h>
14713 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14714 bogus endian macros
14718 if { (eval echo configure:14719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14720 # It does; now see whether it defined to BIG_ENDIAN or not.
14721 cat > conftest.$ac_ext <<EOF
14722 #line 14723 "configure"
14723 #include "confdefs.h"
14724 #include <sys/types.h>
14725 #include <sys/param.h>
14728 #if BYTE_ORDER != BIG_ENDIAN
14733 if { (eval echo configure:14734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14735 ac_cv_c_bigendian=yes
14737 echo "configure: failed program was:" >&5
14738 cat conftest.$ac_ext >&5
14740 ac_cv_c_bigendian=no
14744 echo "configure: failed program was:" >&5
14745 cat conftest.$ac_ext >&5
14748 if test $ac_cv_c_bigendian = unknown; then
14749 if test "$cross_compiling" = yes; then
14750 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14752 cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14756 /* Are we little or big endian? From Harbison&Steele. */
14760 char c[sizeof (long)];
14763 exit (u.c[sizeof (long) - 1] == 1);
14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14768 ac_cv_c_bigendian=no
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14773 ac_cv_c_bigendian=yes
14781 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14782 if test $ac_cv_c_bigendian = yes; then
14783 cat >> confdefs.h <<\EOF
14784 #define WORDS_BIGENDIAN 1
14791 echo $ac_n "checking size of short""... $ac_c" 1>&6
14792 echo "configure:14793: checking size of short" >&5
14793 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14794 echo $ac_n "(cached) $ac_c" 1>&6
14796 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14797 cat > conftest.$ac_ext <<EOF
14798 #line 14799 "configure"
14799 #include "confdefs.h"
14800 #include "confdefs.h"
14801 #include <sys/types.h>
14805 switch (0) case 0: case (sizeof (short) == $ac_size):;
14808 if { (eval echo configure:14809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14810 ac_cv_sizeof_short=$ac_size
14812 echo "configure: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14816 if test x$ac_cv_sizeof_short != x ; then break; fi
14821 if test x$ac_cv_sizeof_short = x ; then
14822 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14824 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14825 cat >> confdefs.h <<EOF
14826 #define SIZEOF_SHORT $ac_cv_sizeof_short
14830 echo $ac_n "checking size of int""... $ac_c" 1>&6
14831 echo "configure:14832: checking size of int" >&5
14832 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14833 echo $ac_n "(cached) $ac_c" 1>&6
14835 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 #include "confdefs.h"
14840 #include <sys/types.h>
14844 switch (0) case 0: case (sizeof (int) == $ac_size):;
14847 if { (eval echo configure:14848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14849 ac_cv_sizeof_int=$ac_size
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14855 if test x$ac_cv_sizeof_int != x ; then break; fi
14860 if test x$ac_cv_sizeof_int = x ; then
14861 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14863 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14864 cat >> confdefs.h <<EOF
14865 #define SIZEOF_INT $ac_cv_sizeof_int
14869 echo $ac_n "checking size of long""... $ac_c" 1>&6
14870 echo "configure:14871: checking size of long" >&5
14871 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
14874 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14875 cat > conftest.$ac_ext <<EOF
14876 #line 14877 "configure"
14877 #include "confdefs.h"
14878 #include "confdefs.h"
14879 #include <sys/types.h>
14883 switch (0) case 0: case (sizeof (long) == $ac_size):;
14886 if { (eval echo configure:14887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14888 ac_cv_sizeof_long=$ac_size
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14894 if test x$ac_cv_sizeof_long != x ; then break; fi
14899 if test x$ac_cv_sizeof_long = x ; then
14900 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14902 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14903 cat >> confdefs.h <<EOF
14904 #define SIZEOF_LONG $ac_cv_sizeof_long
14909 if test "$ac_cv_sizeof_int" -lt 4 ; then
14910 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14912 cat >> confdefs.h <<\EOF
14913 #define LBER_INT_T long
14917 cat >> confdefs.h <<\EOF
14918 #define LBER_INT_T int
14923 cat >> confdefs.h <<\EOF
14924 #define LBER_LEN_T long
14927 cat >> confdefs.h <<\EOF
14928 #define LBER_SOCKET_T int
14931 cat >> confdefs.h <<\EOF
14932 #define LBER_TAG_T long
14936 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14937 echo "configure:14938: checking for 8-bit clean memcmp" >&5
14938 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14941 if test "$cross_compiling" = yes; then
14942 ac_cv_func_memcmp_clean=no
14944 cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14950 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14951 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14955 if { (eval echo configure:14956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14957 ac_cv_func_memcmp_clean=yes
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14962 ac_cv_func_memcmp_clean=no
14969 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14970 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14972 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14973 echo "configure:14974: checking for strftime" >&5
14974 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14975 echo $ac_n "(cached) $ac_c" 1>&6
14977 cat > conftest.$ac_ext <<EOF
14978 #line 14979 "configure"
14979 #include "confdefs.h"
14980 /* System header to define __stub macros and hopefully few prototypes,
14981 which can conflict with char strftime(); below. */
14982 #include <assert.h>
14983 /* Override any gcc2 internal prototype to avoid an error. */
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14991 /* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994 #if defined (__stub_strftime) || defined (__stub___strftime)
15002 if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15004 eval "ac_cv_func_strftime=yes"
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15009 eval "ac_cv_func_strftime=no"
15014 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15015 echo "$ac_t""yes" 1>&6
15016 cat >> confdefs.h <<\EOF
15017 #define HAVE_STRFTIME 1
15021 echo "$ac_t""no" 1>&6
15022 # strftime is in -lintl on SCO UNIX.
15023 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15024 echo "configure:15025: checking for strftime in -lintl" >&5
15025 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15027 echo $ac_n "(cached) $ac_c" 1>&6
15029 ac_save_LIBS="$LIBS"
15030 LIBS="-lintl $LIBS"
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 /* Override any gcc2 internal prototype to avoid an error. */
15035 /* We use char because int might match the return type of a gcc2
15036 builtin and then its argument prototype would still apply. */
15043 if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15045 eval "ac_cv_lib_$ac_lib_var=yes"
15047 echo "configure: failed program was:" >&5
15048 cat conftest.$ac_ext >&5
15050 eval "ac_cv_lib_$ac_lib_var=no"
15053 LIBS="$ac_save_LIBS"
15056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15057 echo "$ac_t""yes" 1>&6
15058 cat >> confdefs.h <<\EOF
15059 #define HAVE_STRFTIME 1
15062 LIBS="-lintl $LIBS"
15064 echo "$ac_t""no" 1>&6
15070 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15071 echo "configure:15072: checking for inet_aton()" >&5
15072 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15073 echo $ac_n "(cached) $ac_c" 1>&6
15075 cat > conftest.$ac_ext <<EOF
15076 #line 15077 "configure"
15077 #include "confdefs.h"
15079 #ifdef HAVE_SYS_TYPES_H
15080 # include <sys/types.h>
15082 #ifdef HAVE_SYS_SOCKET_H
15083 # include <sys/socket.h>
15084 # ifdef HAVE_SYS_SELECT_H
15085 # include <sys/select.h>
15087 # include <netinet/in.h>
15088 # ifdef HAVE_ARPA_INET_H
15089 # include <arpa/inet.h>
15095 int rc = inet_aton( "255.255.255.255", &in );
15098 if { (eval echo configure:15099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15100 ol_cv_func_inet_aton=yes
15102 echo "configure: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15105 ol_cv_func_inet_aton=no
15110 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15111 if test $ol_cv_func_inet_aton != no; then
15112 cat >> confdefs.h <<\EOF
15113 #define HAVE_INET_ATON 1
15119 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15120 echo "configure:15121: checking for _spawnlp" >&5
15121 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15122 echo $ac_n "(cached) $ac_c" 1>&6
15124 cat > conftest.$ac_ext <<EOF
15125 #line 15126 "configure"
15126 #include "confdefs.h"
15127 /* System header to define __stub macros and hopefully few prototypes,
15128 which can conflict with char _spawnlp(); below. */
15129 #include <assert.h>
15130 /* Override any gcc2 internal prototype to avoid an error. */
15131 /* We use char because int might match the return type of a gcc2
15132 builtin and then its argument prototype would still apply. */
15138 /* The GNU C library defines this for functions which it implements
15139 to always fail with ENOSYS. Some functions are actually named
15140 something starting with __ and the normal name is an alias. */
15141 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15149 if { (eval echo configure:15150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15151 eval "ac_cv_func__spawnlp=yes"
15153 echo "configure: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15156 eval "ac_cv_func__spawnlp=no"
15161 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15162 echo "$ac_t""yes" 1>&6
15163 cat >> confdefs.h <<\EOF
15164 #define HAVE_SPAWNLP 1
15168 echo "$ac_t""no" 1>&6
15172 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15173 echo "configure:15174: checking for _snprintf" >&5
15174 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
15177 cat > conftest.$ac_ext <<EOF
15178 #line 15179 "configure"
15179 #include "confdefs.h"
15180 /* System header to define __stub macros and hopefully few prototypes,
15181 which can conflict with char _snprintf(); below. */
15182 #include <assert.h>
15183 /* Override any gcc2 internal prototype to avoid an error. */
15184 /* We use char because int might match the return type of a gcc2
15185 builtin and then its argument prototype would still apply. */
15191 /* The GNU C library defines this for functions which it implements
15192 to always fail with ENOSYS. Some functions are actually named
15193 something starting with __ and the normal name is an alias. */
15194 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15202 if { (eval echo configure:15203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15204 eval "ac_cv_func__snprintf=yes"
15206 echo "configure: failed program was:" >&5
15207 cat conftest.$ac_ext >&5
15209 eval "ac_cv_func__snprintf=no"
15214 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15215 echo "$ac_t""yes" 1>&6
15216 ac_cv_func_snprintf=yes
15217 cat >> confdefs.h <<\EOF
15218 #define snprintf _snprintf
15223 echo "$ac_t""no" 1>&6
15227 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15228 echo "configure:15229: checking for _vsnprintf" >&5
15229 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15232 cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 /* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char _vsnprintf(); below. */
15237 #include <assert.h>
15238 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15246 /* The GNU C library defines this for functions which it implements
15247 to always fail with ENOSYS. Some functions are actually named
15248 something starting with __ and the normal name is an alias. */
15249 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15257 if { (eval echo configure:15258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15259 eval "ac_cv_func__vsnprintf=yes"
15261 echo "configure: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15264 eval "ac_cv_func__vsnprintf=no"
15269 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15270 echo "$ac_t""yes" 1>&6
15271 ac_cv_func_vsnprintf=yes
15272 cat >> confdefs.h <<\EOF
15273 #define vsnprintf _vsnprintf
15278 echo "$ac_t""no" 1>&6
15282 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15283 echo "configure:15284: checking for vprintf" >&5
15284 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15285 echo $ac_n "(cached) $ac_c" 1>&6
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char vprintf(); below. */
15292 #include <assert.h>
15293 /* Override any gcc2 internal prototype to avoid an error. */
15294 /* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15301 /* The GNU C library defines this for functions which it implements
15302 to always fail with ENOSYS. Some functions are actually named
15303 something starting with __ and the normal name is an alias. */
15304 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15312 if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15314 eval "ac_cv_func_vprintf=yes"
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15319 eval "ac_cv_func_vprintf=no"
15324 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15325 echo "$ac_t""yes" 1>&6
15326 cat >> confdefs.h <<\EOF
15327 #define HAVE_VPRINTF 1
15331 echo "$ac_t""no" 1>&6
15334 if test "$ac_cv_func_vprintf" != yes; then
15335 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15336 echo "configure:15337: checking for _doprnt" >&5
15337 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15338 echo $ac_n "(cached) $ac_c" 1>&6
15340 cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15343 /* System header to define __stub macros and hopefully few prototypes,
15344 which can conflict with char _doprnt(); below. */
15345 #include <assert.h>
15346 /* Override any gcc2 internal prototype to avoid an error. */
15347 /* We use char because int might match the return type of a gcc2
15348 builtin and then its argument prototype would still apply. */
15354 /* The GNU C library defines this for functions which it implements
15355 to always fail with ENOSYS. Some functions are actually named
15356 something starting with __ and the normal name is an alias. */
15357 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15365 if { (eval echo configure:15366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15367 eval "ac_cv_func__doprnt=yes"
15369 echo "configure: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15372 eval "ac_cv_func__doprnt=no"
15377 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15378 echo "$ac_t""yes" 1>&6
15379 cat >> confdefs.h <<\EOF
15380 #define HAVE_DOPRNT 1
15384 echo "$ac_t""no" 1>&6
15390 if test $ac_cv_func_vprintf = yes ; then
15391 for ac_func in vsnprintf vsprintf
15393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15394 echo "configure:15395: checking for $ac_func" >&5
15395 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15396 echo $ac_n "(cached) $ac_c" 1>&6
15398 cat > conftest.$ac_ext <<EOF
15399 #line 15400 "configure"
15400 #include "confdefs.h"
15401 /* System header to define __stub macros and hopefully few prototypes,
15402 which can conflict with char $ac_func(); below. */
15403 #include <assert.h>
15404 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 if { (eval echo configure:15424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15425 eval "ac_cv_func_$ac_func=yes"
15427 echo "configure: failed program was:" >&5
15428 cat conftest.$ac_ext >&5
15430 eval "ac_cv_func_$ac_func=no"
15435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15436 echo "$ac_t""yes" 1>&6
15437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15438 cat >> confdefs.h <<EOF
15439 #define $ac_tr_func 1
15443 echo "$ac_t""no" 1>&6
15501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15502 echo "configure:15503: checking for $ac_func" >&5
15503 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15506 cat > conftest.$ac_ext <<EOF
15507 #line 15508 "configure"
15508 #include "confdefs.h"
15509 /* System header to define __stub macros and hopefully few prototypes,
15510 which can conflict with char $ac_func(); below. */
15511 #include <assert.h>
15512 /* Override any gcc2 internal prototype to avoid an error. */
15513 /* We use char because int might match the return type of a gcc2
15514 builtin and then its argument prototype would still apply. */
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15533 eval "ac_cv_func_$ac_func=yes"
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15538 eval "ac_cv_func_$ac_func=no"
15543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15544 echo "$ac_t""yes" 1>&6
15545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15546 cat >> confdefs.h <<EOF
15547 #define $ac_tr_func 1
15551 echo "$ac_t""no" 1>&6
15556 for ac_func in getopt tempnam
15558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15559 echo "configure:15560: checking for $ac_func" >&5
15560 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15566 /* System header to define __stub macros and hopefully few prototypes,
15567 which can conflict with char $ac_func(); below. */
15568 #include <assert.h>
15569 /* Override any gcc2 internal prototype to avoid an error. */
15570 /* We use char because int might match the return type of a gcc2
15571 builtin and then its argument prototype would still apply. */
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15588 if { (eval echo configure:15589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15590 eval "ac_cv_func_$ac_func=yes"
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15595 eval "ac_cv_func_$ac_func=no"
15600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15601 echo "$ac_t""yes" 1>&6
15602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15603 cat >> confdefs.h <<EOF
15604 #define $ac_tr_func 1
15608 echo "$ac_t""no" 1>&6
15609 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15615 if test "$ac_cv_func_getopt" != yes; then
15616 LIBSRCS="$LIBSRCS getopt.c"
15619 if test "$ac_cv_func_tempnam" != yes; then
15620 LIBSRCS="$LIBSRCS tempnam.c"
15623 # Check Configuration
15624 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15625 echo "configure:15626: checking declaration of sys_errlist" >&5
15626 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15627 echo $ac_n "(cached) $ac_c" 1>&6
15630 cat > conftest.$ac_ext <<EOF
15631 #line 15632 "configure"
15632 #include "confdefs.h"
15635 #include <sys/types.h>
15638 #include <stdlib.h>
15641 char *c = (char *) *sys_errlist
15644 if { (eval echo configure:15645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15646 ol_cv_dcl_sys_errlist=yes
15647 ol_cv_have_sys_errlist=yes
15649 echo "configure: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15652 ol_cv_dcl_sys_errlist=no
15657 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15659 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15660 if test $ol_cv_dcl_sys_errlist = no ; then
15661 cat >> confdefs.h <<\EOF
15662 #define DECL_SYS_ERRLIST 1
15666 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15667 echo "configure:15668: checking existence of sys_errlist" >&5
15668 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15669 echo $ac_n "(cached) $ac_c" 1>&6
15672 cat > conftest.$ac_ext <<EOF
15673 #line 15674 "configure"
15674 #include "confdefs.h"
15677 char *c = (char *) *sys_errlist
15680 if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15682 ol_cv_have_sys_errlist=yes
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15687 ol_cv_have_sys_errlist=no
15692 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15694 if test $ol_cv_have_sys_errlist = yes ; then
15695 cat >> confdefs.h <<\EOF
15696 #define HAVE_SYS_ERRLIST 1
15703 if test "$ol_enable_debug" != no ; then
15704 cat >> confdefs.h <<\EOF
15705 #define LDAP_DEBUG 1
15709 if test "$ol_enable_syslog" = yes ; then
15710 cat >> confdefs.h <<\EOF
15711 #define LDAP_SYSLOG 1
15715 if test "$ol_enable_libui" = yes ; then
15716 cat >> confdefs.h <<\EOF
15717 #define LDAP_LIBUI 1
15721 if test "$ol_enable_cache" = no ; then
15722 cat >> confdefs.h <<\EOF
15723 #define LDAP_NOCACHE 1
15727 if test "$ol_link_kbind" != no ; then
15728 cat >> confdefs.h <<\EOF
15729 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15733 if test "$ol_enable_proctitle" != no ; then
15734 cat >> confdefs.h <<\EOF
15735 #define LDAP_PROCTITLE 1
15739 if test "$ol_enable_referrals" != no ; then
15740 cat >> confdefs.h <<\EOF
15741 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15745 if test "$ol_enable_local" != no; then
15746 cat >> confdefs.h <<\EOF
15747 #define LDAP_PF_LOCAL 1
15751 if test "$ol_enable_ipv6" != no; then
15752 cat >> confdefs.h <<\EOF
15753 #define LDAP_PF_INET6 1
15757 if test "$ol_enable_cleartext" != no ; then
15758 cat >> confdefs.h <<\EOF
15759 #define SLAPD_CLEARTEXT 1
15763 if test "$ol_enable_crypt" != no ; then
15764 cat >> confdefs.h <<\EOF
15765 #define SLAPD_CRYPT 1
15769 if test "$ol_link_kpasswd" != no ; then
15770 cat >> confdefs.h <<\EOF
15771 #define SLAPD_KPASSWD 1
15775 if test "$ol_link_spasswd" != no ; then
15776 cat >> confdefs.h <<\EOF
15777 #define SLAPD_SPASSWD 1
15781 if test "$ol_enable_multimaster" != no ; then
15782 cat >> confdefs.h <<\EOF
15783 #define SLAPD_MULTIMASTER 1
15787 if test "$ol_enable_phonetic" != no ; then
15788 cat >> confdefs.h <<\EOF
15789 #define SLAPD_PHONETIC 1
15793 if test "$ol_enable_rlookups" != no ; then
15794 cat >> confdefs.h <<\EOF
15795 #define SLAPD_RLOOKUPS 1
15799 if test "$ol_enable_aci" != no ; then
15800 cat >> confdefs.h <<\EOF
15801 #define SLAPD_ACI_ENABLED 1
15806 if test "$ol_link_modules" != no ; then
15807 cat >> confdefs.h <<\EOF
15808 #define SLAPD_MODULES 1
15812 SLAPD_MODULES_LDFLAGS="-dlopen self"
15815 if test "$ol_link_dnssrv" != no ; then
15816 cat >> confdefs.h <<\EOF
15817 #define SLAPD_DNSSRV 1
15822 if test "$ol_with_dnssrv_module" != static ; then
15823 cat >> confdefs.h <<\EOF
15824 #define SLAPD_DNSSRV_DYNAMIC 1
15828 BUILD_DNSSRV_DYNAMIC=shared
15829 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15833 if test "$ol_enable_ldap" != no ; then
15834 cat >> confdefs.h <<\EOF
15835 #define SLAPD_LDAP 1
15840 if test "$ol_with_ldap_module" != static ; then
15841 cat >> confdefs.h <<\EOF
15842 #define SLAPD_LDAP_DYNAMIC 1
15846 BUILD_LDAP_DYNAMIC=shared
15847 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15851 if test "$ol_link_ldbm" != no ; then
15852 cat >> confdefs.h <<\EOF
15853 #define SLAPD_LDBM 1
15858 if test "$ol_with_ldbm_module" != static ; then
15859 cat >> confdefs.h <<\EOF
15860 #define SLAPD_LDBM_DYNAMIC 1
15864 BUILD_LDBM_DYNAMIC=shared
15865 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15869 if test "$ol_enable_passwd" != no ; then
15870 cat >> confdefs.h <<\EOF
15871 #define SLAPD_PASSWD 1
15876 if test "$ol_with_passwd_module" != static ; then
15877 cat >> confdefs.h <<\EOF
15878 #define SLAPD_PASSWD_DYNAMIC 1
15882 BUILD_PASSWD_DYNAMIC=shared
15883 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15887 if test "$ol_link_perl" != no ; then
15888 cat >> confdefs.h <<\EOF
15889 #define SLAPD_PERL 1
15894 if test "$ol_with_perl_module" != static ; then
15895 cat >> confdefs.h <<\EOF
15896 #define SLAPD_PERL_DYNAMIC 1
15900 BUILD_PERL_DYNAMIC=shared
15901 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15905 if test "$ol_enable_shell" != no ; then
15906 cat >> confdefs.h <<\EOF
15907 #define SLAPD_SHELL 1
15912 if test "$ol_with_shell_module" != static ; then
15913 cat >> confdefs.h <<\EOF
15914 #define SLAPD_SHELL_DYNAMIC 1
15918 BUILD_SHELL_DYNAMIC=shared
15919 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15923 if test "$ol_enable_tcl" != no ; then
15924 cat >> confdefs.h <<\EOF
15925 #define SLAPD_TCL 1
15930 if test "$ol_with_tcl_module" != static; then
15931 cat >> confdefs.h <<\EOF
15932 #define SLAPD_TCL_DYNAMIC 1
15936 BUILD_TCL_DYNAMIC=shared
15937 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15941 if test "$ol_enable_sql" != no ; then
15942 cat >> confdefs.h <<\EOF
15943 #define SLAPD_SQL 1
15948 SLAPD_SQL_LIBS=-liodbc
15949 if test "$ol_with_sql_module" != static; then
15950 cat >> confdefs.h <<\EOF
15951 #define SLAPD_SQL_DYNAMIC 1
15955 BUILD_SQL_DYNAMIC=shared
15956 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15960 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15961 $BUILD_SLAPD = yes ; then
15966 if test "$LINK_BINS_DYNAMIC" = yes; then
15968 LT_LIB_LINKAGE=shared
15971 LT_LIB_LINKAGE=static
15974 if test "$ac_cv_mingw32" = yes ; then
16043 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16046 # Let make expand exec_prefix.
16047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16049 # Any assignment to VPATH causes Sun make to only execute
16050 # the first set of double-colon rules, so remove it if not needed.
16051 # If there is a colon in the path, we need to keep it.
16052 if test "x$srcdir" = x.; then
16053 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16056 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16058 DEFS=-DHAVE_CONFIG_H
16060 # Without the "./", some shells look in PATH for config.status.
16061 : ${CONFIG_STATUS=./config.status}
16063 echo creating $CONFIG_STATUS
16064 rm -f $CONFIG_STATUS
16065 cat > $CONFIG_STATUS <<EOF
16067 # Generated automatically by configure.
16068 # Run this file to recreate the current configuration.
16069 # This directory was configured as follows,
16070 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16072 # $0 $ac_configure_args
16074 # Compiler output produced by configure, useful for debugging
16075 # configure, is in ./config.log if it exists.
16077 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16080 case "\$ac_option" in
16081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16082 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16083 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16084 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16085 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16087 -help | --help | --hel | --he | --h)
16088 echo "\$ac_cs_usage"; exit 0 ;;
16089 *) echo "\$ac_cs_usage"; exit 1 ;;
16093 ac_given_srcdir=$srcdir
16094 ac_given_INSTALL="$INSTALL"
16096 trap 'rm -fr `echo "\
16097 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16098 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16099 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16100 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16101 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16102 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16103 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16104 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16105 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16106 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16107 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16108 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16109 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16110 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16111 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16112 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16113 include/Makefile:build/top.mk:include/Makefile.in \
16114 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16115 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16116 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16117 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16118 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16119 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16120 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16121 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16122 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16123 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16124 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16125 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16126 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16127 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16128 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16129 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16130 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16131 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16132 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16133 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16134 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16135 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16136 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16137 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16138 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16139 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16140 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16141 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16143 cat >> $CONFIG_STATUS <<EOF
16145 # Protect against being on the right side of a sed subst in config.status.
16146 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16147 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16151 s%@CFLAGS@%$CFLAGS%g
16152 s%@CPPFLAGS@%$CPPFLAGS%g
16153 s%@CXXFLAGS@%$CXXFLAGS%g
16154 s%@FFLAGS@%$FFLAGS%g
16156 s%@LDFLAGS@%$LDFLAGS%g
16158 s%@exec_prefix@%$exec_prefix%g
16159 s%@prefix@%$prefix%g
16160 s%@program_transform_name@%$program_transform_name%g
16161 s%@bindir@%$bindir%g
16162 s%@sbindir@%$sbindir%g
16163 s%@libexecdir@%$libexecdir%g
16164 s%@datadir@%$datadir%g
16165 s%@sysconfdir@%$sysconfdir%g
16166 s%@sharedstatedir@%$sharedstatedir%g
16167 s%@localstatedir@%$localstatedir%g
16168 s%@libdir@%$libdir%g
16169 s%@includedir@%$includedir%g
16170 s%@oldincludedir@%$oldincludedir%g
16171 s%@infodir@%$infodir%g
16172 s%@mandir@%$mandir%g
16174 s%@host_alias@%$host_alias%g
16175 s%@host_cpu@%$host_cpu%g
16176 s%@host_vendor@%$host_vendor%g
16177 s%@host_os@%$host_os%g
16178 s%@target@%$target%g
16179 s%@target_alias@%$target_alias%g
16180 s%@target_cpu@%$target_cpu%g
16181 s%@target_vendor@%$target_vendor%g
16182 s%@target_os@%$target_os%g
16184 s%@build_alias@%$build_alias%g
16185 s%@build_cpu@%$build_cpu%g
16186 s%@build_vendor@%$build_vendor%g
16187 s%@build_os@%$build_os%g
16188 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16189 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16190 s%@INSTALL_DATA@%$INSTALL_DATA%g
16191 s%@PACKAGE@%$PACKAGE%g
16192 s%@VERSION@%$VERSION%g
16193 s%@ACLOCAL@%$ACLOCAL%g
16194 s%@AUTOCONF@%$AUTOCONF%g
16195 s%@AUTOMAKE@%$AUTOMAKE%g
16196 s%@AUTOHEADER@%$AUTOHEADER%g
16197 s%@MAKEINFO@%$MAKEINFO%g
16198 s%@install_sh@%$install_sh%g
16201 s%@AMTARFLAGS@%$AMTARFLAGS%g
16202 s%@SET_MAKE@%$SET_MAKE%g
16203 s%@top_builddir@%$top_builddir%g
16204 s%@ldap_subdir@%$ldap_subdir%g
16206 s%@RANLIB@%$RANLIB%g
16208 s%@DLLTOOL@%$DLLTOOL%g
16210 s%@OBJDUMP@%$OBJDUMP%g
16211 s%@LIBTOOL@%$LIBTOOL%g
16213 s%@SENDMAIL@%$SENDMAIL%g
16214 s%@EDITOR@%$EDITOR%g
16215 s%@FINGER@%$FINGER%g
16216 s%@PERLBIN@%$PERLBIN%g
16218 s%@EXEEXT@%$EXEEXT%g
16219 s%@OBJEXT@%$OBJEXT%g
16220 s%@OL_MKDEP@%$OL_MKDEP%g
16221 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16222 s%@LIBOBJS@%$LIBOBJS%g
16223 s%@LIBSRCS@%$LIBSRCS%g
16225 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16226 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16227 s%@DYN_EXT@%$DYN_EXT%g
16228 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16229 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16230 s%@BUILD_LDAP@%$BUILD_LDAP%g
16231 s%@BUILD_LDBM@%$BUILD_LDBM%g
16232 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16233 s%@BUILD_PERL@%$BUILD_PERL%g
16234 s%@BUILD_SHELL@%$BUILD_SHELL%g
16235 s%@BUILD_SQL@%$BUILD_SQL%g
16236 s%@BUILD_TCL@%$BUILD_TCL%g
16237 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16238 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16239 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16240 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16241 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16242 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16243 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16244 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16245 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16246 s%@LDAP_LIBS@%$LDAP_LIBS%g
16247 s%@LDIF_LIBS@%$LDIF_LIBS%g
16248 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16249 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16250 s%@LDBM_LIBS@%$LDBM_LIBS%g
16251 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16252 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16253 s%@WRAP_LIBS@%$WRAP_LIBS%g
16254 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16255 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16256 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16257 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16258 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16259 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16260 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16261 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16262 s%@KRB4_LIBS@%$KRB4_LIBS%g
16263 s%@KRB5_LIBS@%$KRB5_LIBS%g
16264 s%@READLINE_LIBS@%$READLINE_LIBS%g
16265 s%@SASL_LIBS@%$SASL_LIBS%g
16266 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16267 s%@TLS_LIBS@%$TLS_LIBS%g
16268 s%@MODULES_LIBS@%$MODULES_LIBS%g
16269 s%@AUTH_LIBS@%$AUTH_LIBS%g
16270 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16271 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16272 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16277 cat >> $CONFIG_STATUS <<\EOF
16279 # Split the substitutions into bite-sized pieces for seds with
16280 # small command number limits, like on Digital OSF/1 and HP-UX.
16281 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16282 ac_file=1 # Number of current file.
16283 ac_beg=1 # First line for current file.
16284 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16287 while $ac_more_lines; do
16288 if test $ac_beg -gt 1; then
16289 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16291 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16293 if test ! -s conftest.s$ac_file; then
16294 ac_more_lines=false
16295 rm -f conftest.s$ac_file
16297 if test -z "$ac_sed_cmds"; then
16298 ac_sed_cmds="sed -f conftest.s$ac_file"
16300 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16302 ac_file=`expr $ac_file + 1`
16304 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16307 if test -z "$ac_sed_cmds"; then
16312 cat >> $CONFIG_STATUS <<EOF
16314 CONFIG_FILES=\${CONFIG_FILES-"\
16315 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16316 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16317 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16318 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16319 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16320 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16321 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16322 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16323 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16324 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16325 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16326 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16327 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16328 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16329 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16330 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16331 include/Makefile:build/top.mk:include/Makefile.in \
16332 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16333 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16334 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16335 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16336 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16337 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16338 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16339 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16340 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16341 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16342 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16343 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16344 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16345 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16346 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16347 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16348 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16349 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16350 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16351 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16352 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16353 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16354 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16355 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16356 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16357 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16358 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16361 cat >> $CONFIG_STATUS <<\EOF
16362 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16363 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16365 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16366 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16367 *) ac_file_in="${ac_file}.in" ;;
16370 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16372 # Remove last slash and all that follows it. Not all systems have dirname.
16373 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16374 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16375 # The file is in a subdirectory.
16376 test ! -d "$ac_dir" && mkdir "$ac_dir"
16377 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16378 # A "../" for each directory in $ac_dir_suffix.
16379 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16381 ac_dir_suffix= ac_dots=
16384 case "$ac_given_srcdir" in
16386 if test -z "$ac_dots"; then top_srcdir=.
16387 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16388 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16389 *) # Relative path.
16390 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16391 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16394 case "$ac_given_INSTALL" in
16395 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16396 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16399 echo creating "$ac_file"
16401 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16403 *[Mm]akefile*) ac_comsub="1i\\
16404 # $configure_input" ;;
16408 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16410 s%@configure_input@%$configure_input%g
16411 s%@srcdir@%$srcdir%g
16412 s%@top_srcdir@%$top_srcdir%g
16413 s%@INSTALL@%$INSTALL%g
16414 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16418 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16419 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16421 # ac_d sets the value in "#define NAME VALUE" lines.
16422 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16423 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16426 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16427 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16428 ac_uB='\([ ]\)%\1#\2define\3'
16431 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16432 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16433 ac_eB='$%\1#\2define\3'
16437 if test "${CONFIG_HEADERS+set}" != set; then
16439 cat >> $CONFIG_STATUS <<EOF
16440 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16442 cat >> $CONFIG_STATUS <<\EOF
16444 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16447 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16448 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16449 *) ac_file_in="${ac_file}.in" ;;
16452 echo creating $ac_file
16454 rm -f conftest.frag conftest.in conftest.out
16455 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16456 cat $ac_file_inputs > conftest.in
16460 # Transform confdefs.h into a sed script conftest.vals that substitutes
16461 # the proper values into config.h.in to produce config.h. And first:
16462 # Protect against being on the right side of a sed subst in config.status.
16463 # Protect against being in an unquoted here document in config.status.
16464 rm -f conftest.vals
16465 cat > conftest.hdr <<\EOF
16468 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16472 sed -n -f conftest.hdr confdefs.h > conftest.vals
16475 # This sed command replaces #undef with comments. This is necessary, for
16476 # example, in the case of _POSIX_SOURCE, which is predefined and required
16477 # on some systems where configure will not decide to define it.
16478 cat >> conftest.vals <<\EOF
16479 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16482 # Break up conftest.vals because some shells have a limit on
16483 # the size of here documents, and old seds have small limits too.
16485 rm -f conftest.tail
16488 ac_lines=`grep -c . conftest.vals`
16489 # grep -c gives empty output for an empty file on some AIX systems.
16490 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16491 # Write a limited-size here document to conftest.frag.
16492 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16493 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16495 sed -f conftest.frag conftest.in > conftest.out
16497 mv conftest.out conftest.in
16498 ' >> $CONFIG_STATUS
16499 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16500 rm -f conftest.vals
16501 mv conftest.tail conftest.vals
16503 rm -f conftest.vals
16505 cat >> $CONFIG_STATUS <<\EOF
16506 rm -f conftest.frag conftest.h
16507 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16508 cat conftest.in >> conftest.h
16510 if cmp -s $ac_file conftest.h 2>/dev/null; then
16511 echo "$ac_file is unchanged"
16514 # Remove last slash and all that follows it. Not all systems have dirname.
16515 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16516 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16517 # The file is in a subdirectory.
16518 test ! -d "$ac_dir" && mkdir "$ac_dir"
16521 mv conftest.h $ac_file
16526 cat >> $CONFIG_STATUS <<EOF
16529 cat >> $CONFIG_STATUS <<\EOF
16532 echo Please \"make depend\" to build dependencies
16536 chmod +x $CONFIG_STATUS
16537 rm -fr confdefs* $ac_clean_files
16538 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1