3 # from OpenLDAP: pkg/ldap/configure.in,v 1.318 2000/07/13 20:54:45 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-cldap enable connectionless ldap (no)"
44 --enable-ipv6 enable IPv6 support (auto)"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
48 --enable-x-compile enable cross compiling (no)"
50 --with-cyrus-sasl with Cyrus SASL support (auto)"
52 --with-fetch with fetch URL support (auto)"
54 --with-kerberos with support (auto)"
56 --with-readline with readline support (auto)"
58 --with-threads with threads (auto)"
60 --with-tls with TLS/SSL support (auto)"
62 --with-yielding-select with implicitly yielding select (auto)"
64 SLAPD (Standalone LDAP Daemon) Options:"
66 --enable-slapd enable building slapd (yes)"
68 --enable-cleartext enable cleartext passwords (yes)"
70 --enable-crypt enable crypt(3) passwords (auto)"
72 --enable-kpasswd enable kerberos password verification (no)"
74 --enable-spasswd enable (Cyrus) SASL password verification (no)"
76 --enable-modules enable dynamic module support (no)"
78 --enable-multimaster enable multimaster replication (no)"
80 --enable-phonetic enable phonetic/soundex (no)"
82 --enable-rlookups enable reverse lookups (auto)"
84 --enable-aci enable per-object ACIs (no)"
86 --enable-wrappers enable tcp wrapper support (no)"
88 --enable-dynamic enable linking built binaries with dynamic libs (no)"
90 --enable-dnssrv enable dnssrv backend (no)"
92 --with-dnssrv-module module type (static)"
94 --enable-ldap enable ldap backend (no)"
96 --with-ldap-module module type (static)"
98 --enable-ldbm enable ldbm backend (yes)"
100 --with-ldbm-api with LDBM API (auto)"
102 --with-ldbm-module module type (static)"
104 --with-ldbm-type use LDBM type (auto)"
106 --enable-passwd enable passwd backend (no)"
108 --with-passwd-module module type (static)"
110 --enable-perl enable perl backend (no)"
112 --with-perl-module module type (static)"
114 --enable-shell enable shell backend (no)"
116 --with-shell-module module type (static)"
118 --enable-sql enable sql backend (no)"
120 --with-sql-module module type (static)"
122 --enable-tcl enable tcl backend (no)"
124 --with-tcl-module module type (static)"
126 SLURPD (Replication Daemon) Options:"
128 --enable-slurpd enable building slurpd (auto)"
130 Library Generation & Linking Options"
132 --enable-static[=PKGS] build static libraries [default=yes]"
134 --enable-shared[=PKGS] build shared libraries [default=yes]"
136 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
138 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
140 --disable-libtool-lock avoid locking (might break parallel builds)"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13.1"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=build/version
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
624 ac_cpp='$CPP $CPPFLAGS'
625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
627 cross_compiling=$ac_cv_prog_cc_cross
631 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
632 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
633 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
640 ac_n= ac_c='\c' ac_t=
644 # set unset (borrowed from autoconf 2.14a)
645 if (unset FOO) >/dev/null 2>&1; then
651 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
654 for ac_dir in build $srcdir/build; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
663 elif test -f $ac_dir/shtool; then
665 ac_install_sh="$ac_aux_dir/shtool install -c"
669 if test -z "$ac_aux_dir"; then
670 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
674 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
676 OL_VERSION=`cat $ac_aux_dir/version`
677 if test -z "$OL_VERSION"; then
678 { echo "configure: error: could not determine version" 1>&2; exit 1; }
681 echo "Configuring OpenLDAP $OL_VERSION ..."
684 echo $ac_n "checking host system type""... $ac_c" 1>&6
685 echo "configure:686: checking host system type" >&5
686 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
688 # Make sure we can run config.sub.
689 if $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 ac_cv_host_alias=$host
694 case "$ac_cv_host_alias" in
698 if ac_cv_host_alias=`$ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
701 *) ac_cv_host_alias=$nonopt ;;
705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
706 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_host" 1>&6
716 host_alias=$ac_cv_host_alias
717 host_cpu=$ac_cv_host_cpu
718 host_vendor=$ac_cv_host_vendor
719 host_os=$ac_cv_host_os
725 echo $ac_n "checking target system type""... $ac_c" 1>&6
726 echo "configure:727: checking target system type" >&5
727 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_target_alias=$target
735 case "$ac_cv_target_alias" in
739 ac_cv_target_alias=$host_alias ;;
741 *) ac_cv_target_alias=$nonopt ;;
745 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
746 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_target" 1>&6
756 target_alias=$ac_cv_target_alias
757 target_cpu=$ac_cv_target_cpu
758 target_vendor=$ac_cv_target_vendor
759 target_os=$ac_cv_target_os
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
767 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
769 # Make sure we can run config.sub.
770 if $ac_config_sub sun4 >/dev/null 2>&1; then :
771 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
774 ac_cv_build_alias=$build
775 case "$ac_cv_build_alias" in
779 ac_cv_build_alias=$host_alias ;;
781 *) ac_cv_build_alias=$nonopt ;;
785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
786 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo $ac_n "(cached) $ac_c" 1>&6
793 echo "$ac_t""$ac_cv_build" 1>&6
796 build_alias=$ac_cv_build_alias
797 build_cpu=$ac_cv_build_cpu
798 build_vendor=$ac_cv_build_vendor
799 build_os=$ac_cv_build_os
805 # Do some error checking and defaulting for the host and target type.
807 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
810 # 1. You are not allowed to specify --host, --target, and nonopt at the
812 # 2. Host defaults to nonopt.
813 # 3. If nonopt is not specified, then host defaults to the current host,
814 # as determined by config.guess.
815 # 4. Target and build default to nonopt.
816 # 5. If nonopt is not specified, then target and build default to host.
818 # The aliases save the names the user supplied, while $host etc.
819 # will get canonicalized.
820 case $host---$target---$nonopt in
821 NONE---*---* | *---NONE---* | *---*---NONE) ;;
822 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
825 test "$host_alias" != "$target_alias" &&
826 test "$program_prefix$program_suffix$program_transform_name" = \
828 program_prefix=${target_alias}-
831 # Find a good install program. We prefer a C program (faster),
832 # so one script is as good as another. But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
841 # ./install, which can be erroneously created by make from ./install.sh.
842 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
843 echo "configure:844: checking for a BSD compatible install" >&5
844 if test -z "$INSTALL"; then
845 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
849 for ac_dir in $PATH; do
850 # Account for people who put trailing slashes in PATH elements.
852 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
854 # OSF1 and SCO ODT 3.0 have their own names for install.
855 # Don't use installbsd from OSF since it installs stuff as root
857 for ac_prog in ginstall scoinst install; do
858 if test -f $ac_dir/$ac_prog; then
859 if test $ac_prog = install &&
860 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
861 # AIX install. It has an incompatible calling convention.
863 elif test $ac_prog = install &&
864 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # program-specific install script used by HP pwplus--don't use.
868 ac_cv_path_install="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
900 echo "configure:901: checking whether build environment is sane" >&5
903 echo timestamp > conftestfile
904 # Do `set' in a subshell so we don't clobber the current shell's
905 # arguments. Must try -L first in case configure is actually a
906 # symlink; some systems play weird games with the mod time of symlinks
907 # (eg FreeBSD returns the mod time of the symlink's containing
910 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
911 if test "$*" = "X"; then
913 set X `ls -t $srcdir/configure conftestfile`
915 if test "$*" != "X $srcdir/configure conftestfile" \
916 && test "$*" != "X conftestfile $srcdir/configure"; then
918 # If neither matched, then we have a broken ls. This can happen
919 # if, for instance, CONFIG_SHELL is bash and it inherits a
920 # broken ls alias from the environment. This has actually
921 # happened. Such a system could not be considered "sane".
922 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
923 alias in your environment" 1>&2; exit 1; }
926 test "$2" = conftestfile
932 { echo "configure: error: newly created file is older than distributed files!
933 Check your system clock" 1>&2; exit 1; }
936 echo "$ac_t""yes" 1>&6
937 if test "$program_transform_name" = s,x,x,; then
938 program_transform_name=
940 # Double any \ or $. echo might interpret backslashes.
941 cat <<\EOF_SED > conftestsed
942 s,\\,\\\\,g; s,\$,$$,g
944 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
947 test "$program_prefix" != NONE &&
948 program_transform_name="s,^,${program_prefix},;$program_transform_name"
949 # Use a double $ so make ignores it.
950 test "$program_suffix" != NONE &&
951 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
953 # sed with no file args requires a program.
954 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
956 for ac_prog in mawk gawk nawk awk
958 # Extract the first word of "$ac_prog", so it can be a program name with args.
959 set dummy $ac_prog; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$AWK"; then
966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_AWK="$ac_prog"
980 AWK="$ac_cv_prog_AWK"
981 if test -n "$AWK"; then
982 echo "$ac_t""$AWK" 1>&6
984 echo "$ac_t""no" 1>&6
987 test -n "$AWK" && break
990 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${MAKE-make} sets \${MAKE}" >&5
992 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
993 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 cat > conftestmake <<\EOF
998 @echo 'ac_maketemp="${MAKE}"'
1000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1001 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1002 if test -n "$ac_maketemp"; then
1003 eval ac_cv_prog_make_${ac_make}_set=yes
1005 eval ac_cv_prog_make_${ac_make}_set=no
1009 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1010 echo "$ac_t""yes" 1>&6
1013 echo "$ac_t""no" 1>&6
1014 SET_MAKE="MAKE=${MAKE-make}"
1023 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1024 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1029 missing_dir=`cd $ac_aux_dir && pwd`
1030 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working aclocal" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1037 echo "$ac_t""found" 1>&6
1039 ACLOCAL="$missing_dir/missing aclocal"
1040 echo "$ac_t""missing" 1>&6
1043 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1044 echo "configure:1045: checking for working autoconf" >&5
1045 # Run test in a subshell; some versions of sh will print an error if
1046 # an executable is not found, even if stderr is redirected.
1047 # Redirect stdin to placate older versions of autoconf. Sigh.
1048 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1050 echo "$ac_t""found" 1>&6
1052 AUTOCONF="$missing_dir/missing autoconf"
1053 echo "$ac_t""missing" 1>&6
1056 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1057 echo "configure:1058: checking for working automake" >&5
1058 # Run test in a subshell; some versions of sh will print an error if
1059 # an executable is not found, even if stderr is redirected.
1060 # Redirect stdin to placate older versions of autoconf. Sigh.
1061 if (automake --version) < /dev/null > /dev/null 2>&1; then
1063 echo "$ac_t""found" 1>&6
1065 AUTOMAKE="$missing_dir/missing automake"
1066 echo "$ac_t""missing" 1>&6
1069 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working autoheader" >&5
1071 # Run test in a subshell; some versions of sh will print an error if
1072 # an executable is not found, even if stderr is redirected.
1073 # Redirect stdin to placate older versions of autoconf. Sigh.
1074 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1075 AUTOHEADER=autoheader
1076 echo "$ac_t""found" 1>&6
1078 AUTOHEADER="$missing_dir/missing autoheader"
1079 echo "$ac_t""missing" 1>&6
1082 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working makeinfo" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 MAKEINFO="$missing_dir/missing makeinfo"
1092 echo "$ac_t""missing" 1>&6
1095 install_sh="$missing_dir/install-sh"
1096 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1098 for ac_prog in gnutar gtar tar
1100 # Extract the first word of "$ac_prog", so it can be a program name with args.
1101 set dummy $ac_prog; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$AMTAR"; then
1108 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_AMTAR="$ac_prog"
1122 AMTAR="$ac_cv_prog_AMTAR"
1123 if test -n "$AMTAR"; then
1124 echo "$ac_t""$AMTAR" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 test -n "$AMTAR" && break
1134 if test -n "$AMTAR"; then
1135 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1142 cat >> confdefs.h <<EOF
1143 #define OPENLDAP_PACKAGE "$PACKAGE"
1146 cat >> confdefs.h <<EOF
1147 #define OPENLDAP_VERSION "$VERSION"
1153 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1154 echo "configure:1155: checking configure arguments" >&5
1159 ldap_subdir="/openldap"
1161 # Check whether --with-subdir or --without-subdir was given.
1162 if test "${with_subdir+set}" = set; then
1163 withval="$with_subdir"
1170 ldap_subdir="$withval"
1173 ldap_subdir="/$withval"
1180 # OpenLDAP --enable-debug
1181 # Check whether --enable-debug or --disable-debug was given.
1182 if test "${enable_debug+set}" = set; then
1183 enableval="$enable_debug"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1194 ol_enable_debug="$ol_arg"
1197 ol_enable_debug="yes"
1199 # end --enable-debug
1200 # OpenLDAP --enable-syslog
1201 # Check whether --enable-syslog or --disable-syslog was given.
1202 if test "${enable_syslog+set}" = set; then
1203 enableval="$enable_syslog"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1214 ol_enable_syslog="$ol_arg"
1217 ol_enable_syslog="auto"
1219 # end --enable-syslog
1220 # OpenLDAP --enable-proctitle
1221 # Check whether --enable-proctitle or --disable-proctitle was given.
1222 if test "${enable_proctitle+set}" = set; then
1223 enableval="$enable_proctitle"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1234 ol_enable_proctitle="$ol_arg"
1237 ol_enable_proctitle="yes"
1239 # end --enable-proctitle
1240 # OpenLDAP --enable-cache
1241 # Check whether --enable-cache or --disable-cache was given.
1242 if test "${enable_cache+set}" = set; then
1243 enableval="$enable_cache"
1246 for ol_val in auto yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1254 ol_enable_cache="$ol_arg"
1257 ol_enable_cache="yes"
1259 # end --enable-cache
1260 # OpenLDAP --enable-referrals
1261 # Check whether --enable-referrals or --disable-referrals was given.
1262 if test "${enable_referrals+set}" = set; then
1263 enableval="$enable_referrals"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1274 ol_enable_referrals="$ol_arg"
1277 ol_enable_referrals="yes"
1279 # end --enable-referrals
1280 # OpenLDAP --enable-kbind
1281 # Check whether --enable-kbind or --disable-kbind was given.
1282 if test "${enable_kbind+set}" = set; then
1283 enableval="$enable_kbind"
1286 for ol_val in auto yes no ; do
1287 if test "$enableval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1294 ol_enable_kbind="$ol_arg"
1297 ol_enable_kbind="auto"
1299 # end --enable-kbind
1300 # OpenLDAP --enable-cldap
1301 # Check whether --enable-cldap or --disable-cldap was given.
1302 if test "${enable_cldap+set}" = set; then
1303 enableval="$enable_cldap"
1306 for ol_val in auto yes no ; do
1307 if test "$enableval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1314 ol_enable_cldap="$ol_arg"
1317 ol_enable_cldap="no"
1319 # end --enable-cldap
1320 # OpenLDAP --enable-ipv6
1321 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1322 if test "${enable_ipv6+set}" = set; then
1323 enableval="$enable_ipv6"
1326 for ol_val in auto yes no ; do
1327 if test "$enableval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1334 ol_enable_ipv6="$ol_arg"
1337 ol_enable_ipv6="auto"
1340 # OpenLDAP --enable-local
1341 # Check whether --enable-local or --disable-local was given.
1342 if test "${enable_local+set}" = set; then
1343 enableval="$enable_local"
1346 for ol_val in auto yes no ; do
1347 if test "$enableval" = "$ol_val" ; then
1351 if test "$ol_arg" = "invalid" ; then
1352 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1354 ol_enable_local="$ol_arg"
1357 ol_enable_local="auto"
1359 # end --enable-local
1360 # OpenLDAP --enable-x_compile
1361 # Check whether --enable-x_compile or --disable-x_compile was given.
1362 if test "${enable_x_compile+set}" = set; then
1363 enableval="$enable_x_compile"
1366 for ol_val in yes no ; do
1367 if test "$enableval" = "$ol_val" ; then
1371 if test "$ol_arg" = "invalid" ; then
1372 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1374 ol_enable_x_compile="$ol_arg"
1377 ol_enable_x_compile="no"
1379 # end --enable-x_compile
1382 # OpenLDAP --with-cyrus_sasl
1383 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1384 if test "${with_cyrus_sasl+set}" = set; then
1385 withval="$with_cyrus_sasl"
1388 for ol_val in auto yes no ; do
1389 if test "$withval" = "$ol_val" ; then
1393 if test "$ol_arg" = "invalid" ; then
1394 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1396 ol_with_cyrus_sasl="$ol_arg"
1399 ol_with_cyrus_sasl="auto"
1401 # end --with-cyrus_sasl
1403 # OpenLDAP --with-fetch
1404 # Check whether --with-fetch or --without-fetch was given.
1405 if test "${with_fetch+set}" = set; then
1406 withval="$with_fetch"
1409 for ol_val in auto yes no ; do
1410 if test "$withval" = "$ol_val" ; then
1414 if test "$ol_arg" = "invalid" ; then
1415 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1417 ol_with_fetch="$ol_arg"
1420 ol_with_fetch="auto"
1424 # OpenLDAP --with-kerberos
1425 # Check whether --with-kerberos or --without-kerberos was given.
1426 if test "${with_kerberos+set}" = set; then
1427 withval="$with_kerberos"
1430 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1431 if test "$withval" = "$ol_val" ; then
1435 if test "$ol_arg" = "invalid" ; then
1436 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1438 ol_with_kerberos="$ol_arg"
1441 ol_with_kerberos="auto"
1443 # end --with-kerberos
1445 # OpenLDAP --with-readline
1446 # Check whether --with-readline or --without-readline was given.
1447 if test "${with_readline+set}" = set; then
1448 withval="$with_readline"
1451 for ol_val in auto yes no ; do
1452 if test "$withval" = "$ol_val" ; then
1456 if test "$ol_arg" = "invalid" ; then
1457 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1459 ol_with_readline="$ol_arg"
1462 ol_with_readline="auto"
1464 # end --with-readline
1466 # OpenLDAP --with-threads
1467 # Check whether --with-threads or --without-threads was given.
1468 if test "${with_threads+set}" = set; then
1469 withval="$with_threads"
1472 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1473 if test "$withval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1480 ol_with_threads="$ol_arg"
1483 ol_with_threads="auto"
1485 # end --with-threads
1487 # OpenLDAP --with-tls
1488 # Check whether --with-tls or --without-tls was given.
1489 if test "${with_tls+set}" = set; then
1493 for ol_val in auto ssleay openssl yes no ; do
1494 if test "$withval" = "$ol_val" ; then
1498 if test "$ol_arg" = "invalid" ; then
1499 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1501 ol_with_tls="$ol_arg"
1508 # OpenLDAP --with-yielding_select
1509 # Check whether --with-yielding_select or --without-yielding_select was given.
1510 if test "${with_yielding_select+set}" = set; then
1511 withval="$with_yielding_select"
1514 for ol_val in auto yes no manual ; do
1515 if test "$withval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1522 ol_with_yielding_select="$ol_arg"
1525 ol_with_yielding_select="auto"
1527 # end --with-yielding_select
1531 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1532 if test "${with_xxslapdoptions+set}" = set; then
1533 withval="$with_xxslapdoptions"
1537 # OpenLDAP --enable-slapd
1538 # Check whether --enable-slapd or --disable-slapd was given.
1539 if test "${enable_slapd+set}" = set; then
1540 enableval="$enable_slapd"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1551 ol_enable_slapd="$ol_arg"
1554 ol_enable_slapd="yes"
1556 # end --enable-slapd
1557 # OpenLDAP --enable-cleartext
1558 # Check whether --enable-cleartext or --disable-cleartext was given.
1559 if test "${enable_cleartext+set}" = set; then
1560 enableval="$enable_cleartext"
1563 for ol_val in auto yes no ; do
1564 if test "$enableval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1571 ol_enable_cleartext="$ol_arg"
1574 ol_enable_cleartext="yes"
1576 # end --enable-cleartext
1577 # OpenLDAP --enable-crypt
1578 # Check whether --enable-crypt or --disable-crypt was given.
1579 if test "${enable_crypt+set}" = set; then
1580 enableval="$enable_crypt"
1583 for ol_val in auto yes no ; do
1584 if test "$enableval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1591 ol_enable_crypt="$ol_arg"
1594 ol_enable_crypt="auto"
1596 # end --enable-crypt
1597 # OpenLDAP --enable-kpasswd
1598 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1599 if test "${enable_kpasswd+set}" = set; then
1600 enableval="$enable_kpasswd"
1603 for ol_val in auto yes no ; do
1604 if test "$enableval" = "$ol_val" ; then
1608 if test "$ol_arg" = "invalid" ; then
1609 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1611 ol_enable_kpasswd="$ol_arg"
1614 ol_enable_kpasswd="no"
1616 # end --enable-kpasswd
1617 # OpenLDAP --enable-spasswd
1618 # Check whether --enable-spasswd or --disable-spasswd was given.
1619 if test "${enable_spasswd+set}" = set; then
1620 enableval="$enable_spasswd"
1623 for ol_val in auto yes no ; do
1624 if test "$enableval" = "$ol_val" ; then
1628 if test "$ol_arg" = "invalid" ; then
1629 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1631 ol_enable_spasswd="$ol_arg"
1634 ol_enable_spasswd="no"
1636 # end --enable-spasswd
1637 # OpenLDAP --enable-modules
1638 # Check whether --enable-modules or --disable-modules was given.
1639 if test "${enable_modules+set}" = set; then
1640 enableval="$enable_modules"
1643 for ol_val in auto yes no ; do
1644 if test "$enableval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1651 ol_enable_modules="$ol_arg"
1654 ol_enable_modules="no"
1656 # end --enable-modules
1657 # OpenLDAP --enable-multimaster
1658 # Check whether --enable-multimaster or --disable-multimaster was given.
1659 if test "${enable_multimaster+set}" = set; then
1660 enableval="$enable_multimaster"
1663 for ol_val in auto yes no ; do
1664 if test "$enableval" = "$ol_val" ; then
1668 if test "$ol_arg" = "invalid" ; then
1669 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1671 ol_enable_multimaster="$ol_arg"
1674 ol_enable_multimaster="no"
1676 # end --enable-multimaster
1677 # OpenLDAP --enable-phonetic
1678 # Check whether --enable-phonetic or --disable-phonetic was given.
1679 if test "${enable_phonetic+set}" = set; then
1680 enableval="$enable_phonetic"
1683 for ol_val in auto yes no ; do
1684 if test "$enableval" = "$ol_val" ; then
1688 if test "$ol_arg" = "invalid" ; then
1689 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1691 ol_enable_phonetic="$ol_arg"
1694 ol_enable_phonetic="no"
1696 # end --enable-phonetic
1697 # OpenLDAP --enable-rlookups
1698 # Check whether --enable-rlookups or --disable-rlookups was given.
1699 if test "${enable_rlookups+set}" = set; then
1700 enableval="$enable_rlookups"
1703 for ol_val in auto yes no ; do
1704 if test "$enableval" = "$ol_val" ; then
1708 if test "$ol_arg" = "invalid" ; then
1709 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1711 ol_enable_rlookups="$ol_arg"
1714 ol_enable_rlookups="auto"
1716 # end --enable-rlookups
1717 # OpenLDAP --enable-aci
1718 # Check whether --enable-aci or --disable-aci was given.
1719 if test "${enable_aci+set}" = set; then
1720 enableval="$enable_aci"
1723 for ol_val in auto yes no ; do
1724 if test "$enableval" = "$ol_val" ; then
1728 if test "$ol_arg" = "invalid" ; then
1729 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1731 ol_enable_aci="$ol_arg"
1737 # OpenLDAP --enable-wrappers
1738 # Check whether --enable-wrappers or --disable-wrappers was given.
1739 if test "${enable_wrappers+set}" = set; then
1740 enableval="$enable_wrappers"
1743 for ol_val in auto yes no ; do
1744 if test "$enableval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1751 ol_enable_wrappers="$ol_arg"
1754 ol_enable_wrappers="no"
1756 # end --enable-wrappers
1757 # OpenLDAP --enable-dynamic
1758 # Check whether --enable-dynamic or --disable-dynamic was given.
1759 if test "${enable_dynamic+set}" = set; then
1760 enableval="$enable_dynamic"
1763 for ol_val in auto yes no ; do
1764 if test "$enableval" = "$ol_val" ; then
1768 if test "$ol_arg" = "invalid" ; then
1769 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1771 ol_enable_dynamic="$ol_arg"
1774 ol_enable_dynamic="no"
1776 # end --enable-dynamic
1778 # OpenLDAP --enable-dnssrv
1779 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1780 if test "${enable_dnssrv+set}" = set; then
1781 enableval="$enable_dnssrv"
1784 for ol_val in auto yes no ; do
1785 if test "$enableval" = "$ol_val" ; then
1789 if test "$ol_arg" = "invalid" ; then
1790 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1792 ol_enable_dnssrv="$ol_arg"
1795 ol_enable_dnssrv="no"
1797 # end --enable-dnssrv
1798 # OpenLDAP --with-dnssrv_module
1799 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1800 if test "${with_dnssrv_module+set}" = set; then
1801 withval="$with_dnssrv_module"
1804 for ol_val in static dynamic ; do
1805 if test "$withval" = "$ol_val" ; then
1809 if test "$ol_arg" = "invalid" ; then
1810 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1812 ol_with_dnssrv_module="$ol_arg"
1815 ol_with_dnssrv_module="static"
1817 # end --with-dnssrv_module
1819 # OpenLDAP --enable-ldap
1820 # Check whether --enable-ldap or --disable-ldap was given.
1821 if test "${enable_ldap+set}" = set; then
1822 enableval="$enable_ldap"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1833 ol_enable_ldap="$ol_arg"
1839 # OpenLDAP --with-ldap_module
1840 # Check whether --with-ldap_module or --without-ldap_module was given.
1841 if test "${with_ldap_module+set}" = set; then
1842 withval="$with_ldap_module"
1845 for ol_val in static dynamic ; do
1846 if test "$withval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1853 ol_with_ldap_module="$ol_arg"
1856 ol_with_ldap_module="static"
1858 # end --with-ldap_module
1860 # OpenLDAP --enable-ldbm
1861 # Check whether --enable-ldbm or --disable-ldbm was given.
1862 if test "${enable_ldbm+set}" = set; then
1863 enableval="$enable_ldbm"
1866 for ol_val in auto yes no ; do
1867 if test "$enableval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1874 ol_enable_ldbm="$ol_arg"
1877 ol_enable_ldbm="yes"
1880 # OpenLDAP --with-ldbm_api
1881 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1882 if test "${with_ldbm_api+set}" = set; then
1883 withval="$with_ldbm_api"
1886 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1887 if test "$withval" = "$ol_val" ; then
1891 if test "$ol_arg" = "invalid" ; then
1892 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1894 ol_with_ldbm_api="$ol_arg"
1897 ol_with_ldbm_api="auto"
1899 # end --with-ldbm_api
1901 # OpenLDAP --with-ldbm_module
1902 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1903 if test "${with_ldbm_module+set}" = set; then
1904 withval="$with_ldbm_module"
1907 for ol_val in static dynamic ; do
1908 if test "$withval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1915 ol_with_ldbm_module="$ol_arg"
1918 ol_with_ldbm_module="static"
1920 # end --with-ldbm_module
1922 # OpenLDAP --with-ldbm_type
1923 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1924 if test "${with_ldbm_type+set}" = set; then
1925 withval="$with_ldbm_type"
1928 for ol_val in auto btree hash ; do
1929 if test "$withval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1936 ol_with_ldbm_type="$ol_arg"
1939 ol_with_ldbm_type="auto"
1941 # end --with-ldbm_type
1943 # OpenLDAP --enable-passwd
1944 # Check whether --enable-passwd or --disable-passwd was given.
1945 if test "${enable_passwd+set}" = set; then
1946 enableval="$enable_passwd"
1949 for ol_val in auto yes no ; do
1950 if test "$enableval" = "$ol_val" ; then
1954 if test "$ol_arg" = "invalid" ; then
1955 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1957 ol_enable_passwd="$ol_arg"
1960 ol_enable_passwd="no"
1962 # end --enable-passwd
1963 # OpenLDAP --with-passwd_module
1964 # Check whether --with-passwd_module or --without-passwd_module was given.
1965 if test "${with_passwd_module+set}" = set; then
1966 withval="$with_passwd_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1977 ol_with_passwd_module="$ol_arg"
1980 ol_with_passwd_module="static"
1982 # end --with-passwd_module
1984 # OpenLDAP --enable-perl
1985 # Check whether --enable-perl or --disable-perl was given.
1986 if test "${enable_perl+set}" = set; then
1987 enableval="$enable_perl"
1990 for ol_val in auto yes no ; do
1991 if test "$enableval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1998 ol_enable_perl="$ol_arg"
2004 # OpenLDAP --with-perl_module
2005 # Check whether --with-perl_module or --without-perl_module was given.
2006 if test "${with_perl_module+set}" = set; then
2007 withval="$with_perl_module"
2010 for ol_val in static dynamic ; do
2011 if test "$withval" = "$ol_val" ; then
2015 if test "$ol_arg" = "invalid" ; then
2016 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2018 ol_with_perl_module="$ol_arg"
2021 ol_with_perl_module="static"
2023 # end --with-perl_module
2025 # OpenLDAP --enable-shell
2026 # Check whether --enable-shell or --disable-shell was given.
2027 if test "${enable_shell+set}" = set; then
2028 enableval="$enable_shell"
2031 for ol_val in auto yes no ; do
2032 if test "$enableval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2039 ol_enable_shell="$ol_arg"
2042 ol_enable_shell="no"
2044 # end --enable-shell
2045 # OpenLDAP --with-shell_module
2046 # Check whether --with-shell_module or --without-shell_module was given.
2047 if test "${with_shell_module+set}" = set; then
2048 withval="$with_shell_module"
2051 for ol_val in static dynamic ; do
2052 if test "$withval" = "$ol_val" ; then
2056 if test "$ol_arg" = "invalid" ; then
2057 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2059 ol_with_shell_module="$ol_arg"
2062 ol_with_shell_module="static"
2064 # end --with-shell_module
2066 # OpenLDAP --enable-sql
2067 # Check whether --enable-sql or --disable-sql was given.
2068 if test "${enable_sql+set}" = set; then
2069 enableval="$enable_sql"
2072 for ol_val in auto yes no ; do
2073 if test "$enableval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2080 ol_enable_sql="$ol_arg"
2086 # OpenLDAP --with-sql_module
2087 # Check whether --with-sql_module or --without-sql_module was given.
2088 if test "${with_sql_module+set}" = set; then
2089 withval="$with_sql_module"
2092 for ol_val in static dynamic ; do
2093 if test "$withval" = "$ol_val" ; then
2097 if test "$ol_arg" = "invalid" ; then
2098 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2100 ol_with_sql_module="$ol_arg"
2103 ol_with_sql_module="static"
2105 # end --with-sql_module
2107 # OpenLDAP --enable-tcl
2108 # Check whether --enable-tcl or --disable-tcl was given.
2109 if test "${enable_tcl+set}" = set; then
2110 enableval="$enable_tcl"
2113 for ol_val in auto yes no ; do
2114 if test "$enableval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2121 ol_enable_tcl="$ol_arg"
2127 # OpenLDAP --with-tcl_module
2128 # Check whether --with-tcl_module or --without-tcl_module was given.
2129 if test "${with_tcl_module+set}" = set; then
2130 withval="$with_tcl_module"
2133 for ol_val in static dynamic ; do
2134 if test "$withval" = "$ol_val" ; then
2138 if test "$ol_arg" = "invalid" ; then
2139 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2141 ol_with_tcl_module="$ol_arg"
2144 ol_with_tcl_module="static"
2146 # end --with-tcl_module
2149 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2150 if test "${with_xxslurpdoptions+set}" = set; then
2151 withval="$with_xxslurpdoptions"
2155 # OpenLDAP --enable-slurpd
2156 # Check whether --enable-slurpd or --disable-slurpd was given.
2157 if test "${enable_slurpd+set}" = set; then
2158 enableval="$enable_slurpd"
2161 for ol_val in auto yes no ; do
2162 if test "$enableval" = "$ol_val" ; then
2166 if test "$ol_arg" = "invalid" ; then
2167 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2169 ol_enable_slurpd="$ol_arg"
2172 ol_enable_slurpd="auto"
2174 # end --enable-slurpd
2176 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2177 if test "${with_xxliboptions+set}" = set; then
2178 withval="$with_xxliboptions"
2182 # Check whether --enable-static or --disable-static was given.
2183 if test "${enable_static+set}" = set; then
2184 enableval="$enable_static"
2185 p=${PACKAGE-default}
2186 case "$enableval" in
2187 yes) enable_static=yes ;;
2188 no) enable_static=no ;;
2191 # Look at the argument we got. We use all the common list separators.
2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2193 for pkg in $enableval; do
2194 if test "X$pkg" = "X$p"; then
2205 # Check whether --enable-shared or --disable-shared was given.
2206 if test "${enable_shared+set}" = set; then
2207 enableval="$enable_shared"
2208 p=${PACKAGE-default}
2209 case "$enableval" in
2210 yes) enable_shared=yes ;;
2211 no) enable_shared=no ;;
2214 # Look at the argument we got. We use all the common list separators.
2215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2216 for pkg in $enableval; do
2217 if test "X$pkg" = "X$p"; then
2231 if test $ol_enable_slapd = no ; then
2232 if test $ol_enable_dnssrv = yes ; then
2233 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2235 if test $ol_enable_ldap = yes ; then
2236 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2238 if test $ol_enable_ldbm = yes ; then
2239 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2241 if test $ol_enable_passwd = yes ; then
2242 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2244 if test $ol_enable_perl = yes ; then
2245 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2247 if test $ol_enable_shell = yes ; then
2248 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2250 if test $ol_enable_tcl = yes ; then
2251 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2253 if test $ol_enable_sql = yes ; then
2254 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2256 if test $ol_enable_modules = yes ; then
2257 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2259 if test $ol_enable_multimaster = yes ; then
2260 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2262 if test $ol_enable_wrappers = yes ; then
2263 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2265 if test $ol_enable_phonetic = yes ; then
2266 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2268 if test $ol_enable_rlookups = yes ; then
2269 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2271 if test $ol_enable_aci = yes ; then
2272 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2274 if test $ol_with_ldbm_api != auto ; then
2275 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2277 if test $ol_with_ldbm_type != auto ; then
2278 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2280 if test $ol_with_dnssrv_module != static ; then
2281 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2283 if test $ol_with_ldap_module != static ; then
2284 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2286 if test $ol_with_ldbm_module != static ; then
2287 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2289 if test $ol_with_passwd_module != static ; then
2290 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2292 if test $ol_with_perl_module != static ; then
2293 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2295 if test $ol_with_shell_module != static ; then
2296 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2298 if test $ol_with_tcl_module != static ; then
2299 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2301 if test $ol_with_sql_module != static ; then
2302 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2304 if test $ol_enable_slurpd = yes ; then
2305 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2308 # force settings to no
2318 ol_enable_modules=no
2319 ol_enable_multimaster=no
2320 ol_enable_phonetic=no
2321 ol_enable_rlookups=no
2323 ol_enable_wrappers=no
2324 ol_enable_dynamic=no
2327 ol_with_ldbm_type=no
2329 ol_with_dnssrv_module=static
2330 ol_with_ldap_module=static
2331 ol_with_ldbm_module=static
2332 ol_with_passwd_module=static
2333 ol_with_perl_module=static
2334 ol_with_shell_module=static
2335 ol_with_tcl_module=static
2336 ol_with_sql_module=static
2340 elif test $ol_enable_ldbm = no ; then
2342 if test $ol_with_ldbm_api != auto ; then
2343 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2346 if test $ol_with_ldbm_type != auto ; then
2347 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2350 if test $ol_with_ldbm_module != static ; then
2351 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2354 if test $ol_enable_modules != yes -a \
2355 $ol_enable_dnssrv = no -a \
2356 $ol_enable_ldap = no -a \
2357 $ol_enable_passwd = no -a \
2358 $ol_enable_perl = no -a \
2359 $ol_enable_shell = no -a \
2360 $ol_enable_sql = no -a \
2361 $ol_enable_tcl = no ; then
2362 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2366 ol_with_ldbm_type=no
2367 ol_with_ldbm_module=static
2370 if test $ol_with_ldbm_api = gdbm -a \
2371 $ol_with_ldbm_type = btree ; then
2372 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2374 if test $ol_with_ldbm_api = mdbm -a \
2375 $ol_with_ldbm_type = btree ; then
2376 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2378 if test $ol_with_ldbm_api = ndbm -a \
2379 $ol_with_ldbm_type = btree ; then
2380 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2384 if test $ol_enable_slurpd = yes ; then
2385 if test $ol_with_threads = no ; then
2386 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2390 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2391 if test $ol_with_kerberos = no ; then
2392 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2394 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2395 if test $ol_with_kerberos != auto ; then
2396 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2402 if test $ol_enable_spasswd = yes ; then
2403 if test $ol_with_cyrus_sasl = no ; then
2404 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2409 echo "$ac_t""done" 1>&6
2434 BUILD_DNSSRV_DYNAMIC=static
2435 BUILD_LDAP_DYNAMIC=static
2436 BUILD_LDBM_DYNAMIC=static
2437 BUILD_PASSWD_DYNAMIC=static
2438 BUILD_PERL_DYNAMIC=static
2439 BUILD_SHELL_DYNAMIC=static
2440 BUILD_TCL_DYNAMIC=static
2441 BUILD_SQL_DYNAMIC=static
2443 SLAPD_MODULES_LDFLAGS=
2444 SLAPD_MODULES_CPPFLAGS=
2467 cat >> confdefs.h <<\EOF
2468 #define HAVE_MKVERSION 1
2476 *-*-aix*) if test -z "$CC" ; then
2477 case "$ol_with_threads" in
2478 auto | yes | posix) ol_aix_threads=yes ;;
2484 if test $ol_aix_threads = yes ; then
2485 if test -z "${CC}" ; then
2486 for ac_prog in cc_r xlc_r cc
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_word" >&5
2492 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2500 for ac_dir in $ac_dummy; do
2501 test -z "$ac_dir" && ac_dir=.
2502 if test -f $ac_dir/$ac_word; then
2503 ac_cv_prog_CC="$ac_prog"
2511 if test -n "$CC"; then
2512 echo "$ac_t""$CC" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 test -n "$CC" && break
2521 if test "$CC" = cc ; then
2522 if test $ol_with_threads != auto ; then
2523 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2525 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2531 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2532 ol_with_threads=posix
2533 ol_cv_pthread_create=yes
2537 if test -z "${CC}"; then
2540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2541 set dummy $ac_prog; ac_word=$2
2542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_word" >&5
2544 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2552 for ac_dir in $ac_dummy; do
2553 test -z "$ac_dir" && ac_dir=.
2554 if test -f $ac_dir/$ac_word; then
2555 ac_cv_prog_CC="$ac_prog"
2563 if test -n "$CC"; then
2564 echo "$ac_t""$CC" 1>&6
2566 echo "$ac_t""no" 1>&6
2569 test -n "$CC" && break
2577 # Check whether --enable-fast-install or --disable-fast-install was given.
2578 if test "${enable_fast_install+set}" = set; then
2579 enableval="$enable_fast_install"
2580 p=${PACKAGE-default}
2581 case "$enableval" in
2582 yes) enable_fast_install=yes ;;
2583 no) enable_fast_install=no ;;
2585 enable_fast_install=no
2586 # Look at the argument we got. We use all the common list separators.
2587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2588 for pkg in $enableval; do
2589 if test "X$pkg" = "X$p"; then
2590 enable_fast_install=yes
2597 enable_fast_install=yes
2600 # Extract the first word of "ranlib", so it can be a program name with args.
2601 set dummy ranlib; ac_word=$2
2602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_word" >&5
2604 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 if test -n "$RANLIB"; then
2608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2612 for ac_dir in $ac_dummy; do
2613 test -z "$ac_dir" && ac_dir=.
2614 if test -f $ac_dir/$ac_word; then
2615 ac_cv_prog_RANLIB="ranlib"
2620 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2623 RANLIB="$ac_cv_prog_RANLIB"
2624 if test -n "$RANLIB"; then
2625 echo "$ac_t""$RANLIB" 1>&6
2627 echo "$ac_t""no" 1>&6
2630 # Extract the first word of "gcc", so it can be a program name with args.
2631 set dummy gcc; ac_word=$2
2632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2633 echo "configure:2634: checking for $ac_word" >&5
2634 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2642 for ac_dir in $ac_dummy; do
2643 test -z "$ac_dir" && ac_dir=.
2644 if test -f $ac_dir/$ac_word; then
2653 if test -n "$CC"; then
2654 echo "$ac_t""$CC" 1>&6
2656 echo "$ac_t""no" 1>&6
2659 if test -z "$CC"; then
2660 # Extract the first word of "cc", so it can be a program name with args.
2661 set dummy cc; ac_word=$2
2662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2663 echo "configure:2664: checking for $ac_word" >&5
2664 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2673 for ac_dir in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir=.
2675 if test -f $ac_dir/$ac_word; then
2676 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2677 ac_prog_rejected=yes
2685 if test $ac_prog_rejected = yes; then
2686 # We found a bogon in the path, so make sure we never use it.
2687 set dummy $ac_cv_prog_CC
2689 if test $# -gt 0; then
2690 # We chose a different compiler from the bogus one.
2691 # However, it has the same basename, so the bogon will be chosen
2692 # first if we set CC to just the basename; use the full file name.
2694 set dummy "$ac_dir/$ac_word" "$@"
2702 if test -n "$CC"; then
2703 echo "$ac_t""$CC" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 if test -z "$CC"; then
2709 case "`uname -s`" in
2710 *win32* | *WIN32* | *CYGWIN*)
2711 # Extract the first word of "cl", so it can be a program name with args.
2712 set dummy cl; ac_word=$2
2713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_word" >&5
2715 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2723 for ac_dir in $ac_dummy; do
2724 test -z "$ac_dir" && ac_dir=.
2725 if test -f $ac_dir/$ac_word; then
2734 if test -n "$CC"; then
2735 echo "$ac_t""$CC" 1>&6
2737 echo "$ac_t""no" 1>&6
2742 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2746 echo "configure:2747: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cc_cross
2755 cat > conftest.$ac_ext << EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2763 ac_cv_prog_cc_works=yes
2764 # If we can't run a trivial program, we are probably using a cross compiler.
2765 if (./conftest; exit) 2>/dev/null; then
2766 ac_cv_prog_cc_cross=no
2768 ac_cv_prog_cc_cross=yes
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2773 ac_cv_prog_cc_works=no
2777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2781 cross_compiling=$ac_cv_prog_cc_cross
2783 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2784 if test $ac_cv_prog_cc_works = no; then
2785 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2787 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2788 echo "configure:2789: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2789 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2790 cross_compiling=$ac_cv_prog_cc_cross
2792 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2793 echo "configure:2794: checking whether we are using GNU C" >&5
2794 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.c <<EOF
2802 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2809 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2811 if test $ac_cv_prog_gcc = yes; then
2817 ac_test_CFLAGS="${CFLAGS+set}"
2818 ac_save_CFLAGS="$CFLAGS"
2820 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether ${CC-cc} accepts -g" >&5
2822 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 echo 'void f(){}' > conftest.c
2826 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2836 if test "$ac_test_CFLAGS" = set; then
2837 CFLAGS="$ac_save_CFLAGS"
2838 elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2845 if test "$GCC" = yes; then
2852 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2853 if test "${with_gnu_ld+set}" = set; then
2854 withval="$with_gnu_ld"
2855 test "$withval" = no || with_gnu_ld=yes
2861 if test "$ac_cv_prog_gcc" = yes; then
2862 # Check if gcc -print-prog-name=ld gives a path.
2863 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2864 echo "configure:2865: checking for ld used by GCC" >&5
2865 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2867 # Accept absolute paths.
2868 [\\/]* | [A-Za-z]:[\\/]*)
2869 re_direlt='/[^/][^/]*/\.\./'
2870 # Canonicalize the path of ld
2871 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2872 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2873 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2875 test -z "$LD" && LD="$ac_prog"
2878 # If it fails, then pretend we aren't using GCC.
2882 # If it is relative, then search for the first ld in PATH.
2886 elif test "$with_gnu_ld" = yes; then
2887 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2888 echo "configure:2889: checking for GNU ld" >&5
2890 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2891 echo "configure:2892: checking for non-GNU ld" >&5
2893 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 if test -z "$LD"; then
2897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2898 for ac_dir in $PATH; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2901 ac_cv_path_LD="$ac_dir/$ac_prog"
2902 # Check to see if the program is GNU ld. I'd rather use --version,
2903 # but apparently some GNU ld's only accept -v.
2904 # Break only if it was the GNU/non-GNU ld that we prefer.
2905 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2906 test "$with_gnu_ld" != no && break
2908 test "$with_gnu_ld" != yes && break
2914 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2919 if test -n "$LD"; then
2920 echo "$ac_t""$LD" 1>&6
2922 echo "$ac_t""no" 1>&6
2924 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2925 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2926 echo "configure:2927: checking if the linker ($LD) is GNU ld" >&5
2927 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2931 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2932 ac_cv_prog_gnu_ld=yes
2934 ac_cv_prog_gnu_ld=no
2938 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2941 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2942 echo "configure:2943: checking for BSD-compatible nm" >&5
2943 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 if test -n "$NM"; then
2947 # Let the user override the test.
2950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2951 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2952 test -z "$ac_dir" && ac_dir=.
2953 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2954 # Check to see if the nm accepts a BSD-compat flag.
2955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2956 # nm: unknown option "B" ignored
2957 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2958 ac_cv_path_NM="$ac_dir/nm -B"
2960 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2961 ac_cv_path_NM="$ac_dir/nm -p"
2964 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2965 continue # so that we can try to find one that supports BSD flags
2970 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2975 echo "$ac_t""$NM" 1>&6
2977 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2978 echo "configure:2979: checking whether ln -s works" >&5
2979 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2983 if ln -s X conftestdata 2>/dev/null
2986 ac_cv_prog_LN_S="ln -s"
2991 LN_S="$ac_cv_prog_LN_S"
2992 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2993 echo "$ac_t""yes" 1>&6
2995 echo "$ac_t""no" 1>&6
2998 if test $host != $build; then
2999 ac_tool_prefix=${host_alias}-
3006 NONE) lt_target="$host" ;;
3007 *) lt_target="$target" ;;
3010 # Check for any special flags to pass to ltconfig.
3011 libtool_flags="--cache-file=$cache_file"
3012 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3013 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3014 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3015 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3016 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3017 libtool_flags="$libtool_flags --enable-dlopen"
3018 libtool_flags="$libtool_flags --enable-win32-dll"
3019 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3020 if test "${enable_libtool_lock+set}" = set; then
3021 enableval="$enable_libtool_lock"
3025 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3026 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3028 # Some flags need to be propagated to the compiler or linker for good
3030 case "$lt_target" in
3032 # Find out which ABI we are using.
3033 echo '#line 3034 "configure"' > conftest.$ac_ext
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 case "`/usr/bin/file conftest.o`" in
3051 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3052 SAVE_CFLAGS="$CFLAGS"
3053 CFLAGS="$CFLAGS -belf"
3054 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether the C compiler needs -belf" >&5
3056 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3069 lt_cv_cc_needs_belf=yes
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 lt_cv_cc_needs_belf=no
3079 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3080 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3081 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3082 CFLAGS="$SAVE_CFLAGS"
3086 *-*-cygwin* | *-*-mingw*)
3087 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3090 echo "configure:3091: checking for $ac_word" >&5
3091 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 if test -n "$DLLTOOL"; then
3095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3099 for ac_dir in $ac_dummy; do
3100 test -z "$ac_dir" && ac_dir=.
3101 if test -f $ac_dir/$ac_word; then
3102 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3109 DLLTOOL="$ac_cv_prog_DLLTOOL"
3110 if test -n "$DLLTOOL"; then
3111 echo "$ac_t""$DLLTOOL" 1>&6
3113 echo "$ac_t""no" 1>&6
3117 if test -z "$ac_cv_prog_DLLTOOL"; then
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "dlltool", so it can be a program name with args.
3120 set dummy dlltool; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 if test -n "$DLLTOOL"; then
3127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3131 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_prog_DLLTOOL="dlltool"
3139 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3142 DLLTOOL="$ac_cv_prog_DLLTOOL"
3143 if test -n "$DLLTOOL"; then
3144 echo "$ac_t""$DLLTOOL" 1>&6
3146 echo "$ac_t""no" 1>&6
3154 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}as; ac_word=$2
3156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_word" >&5
3158 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 if test -n "$AS"; then
3162 ac_cv_prog_AS="$AS" # Let the user override the test.
3164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3166 for ac_dir in $ac_dummy; do
3167 test -z "$ac_dir" && ac_dir=.
3168 if test -f $ac_dir/$ac_word; then
3169 ac_cv_prog_AS="${ac_tool_prefix}as"
3177 if test -n "$AS"; then
3178 echo "$ac_t""$AS" 1>&6
3180 echo "$ac_t""no" 1>&6
3184 if test -z "$ac_cv_prog_AS"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "as", so it can be a program name with args.
3187 set dummy as; ac_word=$2
3188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_word" >&5
3190 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 if test -n "$AS"; then
3194 ac_cv_prog_AS="$AS" # Let the user override the test.
3196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3198 for ac_dir in $ac_dummy; do
3199 test -z "$ac_dir" && ac_dir=.
3200 if test -f $ac_dir/$ac_word; then
3206 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3210 if test -n "$AS"; then
3211 echo "$ac_t""$AS" 1>&6
3213 echo "$ac_t""no" 1>&6
3221 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_word" >&5
3225 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 if test -n "$OBJDUMP"; then
3229 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3233 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/$ac_word; then
3236 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3243 OBJDUMP="$ac_cv_prog_OBJDUMP"
3244 if test -n "$OBJDUMP"; then
3245 echo "$ac_t""$OBJDUMP" 1>&6
3247 echo "$ac_t""no" 1>&6
3251 if test -z "$ac_cv_prog_OBJDUMP"; then
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "objdump", so it can be a program name with args.
3254 set dummy objdump; ac_word=$2
3255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3256 echo "configure:3257: checking for $ac_word" >&5
3257 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 if test -n "$OBJDUMP"; then
3261 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3265 for ac_dir in $ac_dummy; do
3266 test -z "$ac_dir" && ac_dir=.
3267 if test -f $ac_dir/$ac_word; then
3268 ac_cv_prog_OBJDUMP="objdump"
3273 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3276 OBJDUMP="$ac_cv_prog_OBJDUMP"
3277 if test -n "$OBJDUMP"; then
3278 echo "$ac_t""$OBJDUMP" 1>&6
3280 echo "$ac_t""no" 1>&6
3293 # Save cache, so that ltconfig can load it
3296 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3297 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3298 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3299 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3300 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3301 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3302 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3303 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3305 # Reload cache, that may have been modified by ltconfig
3308 # This can be used to rebuild libtool when needed
3309 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3311 # Always use our own libtool.
3312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3314 # Redirect the config.log output again, so that the ltconfig log is not
3315 # clobbered by the next message.
3316 exec 5>>./config.log
3319 for ac_prog in mawk gawk nawk awk
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3324 echo "configure:3325: checking for $ac_word" >&5
3325 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 if test -n "$AWK"; then
3329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3333 for ac_dir in $ac_dummy; do
3334 test -z "$ac_dir" && ac_dir=.
3335 if test -f $ac_dir/$ac_word; then
3336 ac_cv_prog_AWK="$ac_prog"
3343 AWK="$ac_cv_prog_AWK"
3344 if test -n "$AWK"; then
3345 echo "$ac_t""$AWK" 1>&6
3347 echo "$ac_t""no" 1>&6
3350 test -n "$AWK" && break
3353 # test for ln hardlink support
3354 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3355 echo "configure:3356: checking whether ln works" >&5
3356 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 rm -f conftest.src conftest.dst
3360 echo "conftest" > conftest.src
3361 if ln conftest.src conftest.dst 2>/dev/null
3363 ol_cv_prog_LN_H="ln"
3365 ol_cv_prog_LN_H="cp"
3367 rm -f conftest.src conftest.dst
3370 LN_H="$ol_cv_prog_LN_H"
3371 if test "$ol_cv_prog_LN_H" = "ln"; then
3372 echo "$ac_t""yes" 1>&6
3374 echo "$ac_t""no" 1>&6
3377 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3378 echo "configure:3379: checking whether ln -s works" >&5
3379 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3383 if ln -s X conftestdata 2>/dev/null
3386 ac_cv_prog_LN_S="ln -s"
3391 LN_S="$ac_cv_prog_LN_S"
3392 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3393 echo "$ac_t""yes" 1>&6
3395 echo "$ac_t""no" 1>&6
3399 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3403 # Extract the first word of "sendmail", so it can be a program name with args.
3404 set dummy sendmail; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3407 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3412 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3415 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3420 for ac_dir in $ac_dummy; do
3421 test -z "$ac_dir" && ac_dir=.
3422 if test -f $ac_dir/$ac_word; then
3423 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3428 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3432 SENDMAIL="$ac_cv_path_SENDMAIL"
3433 if test -n "$SENDMAIL"; then
3434 echo "$ac_t""$SENDMAIL" 1>&6
3436 echo "$ac_t""no" 1>&6
3439 # Extract the first word of "vi", so it can be a program name with args.
3440 set dummy vi; ac_word=$2
3441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3442 echo "configure:3443: checking for $ac_word" >&5
3443 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3448 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3451 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 ac_dummy="$PATH:/usr/ucb"
3456 for ac_dir in $ac_dummy; do
3457 test -z "$ac_dir" && ac_dir=.
3458 if test -f $ac_dir/$ac_word; then
3459 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3464 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3468 EDITOR="$ac_cv_path_EDITOR"
3469 if test -n "$EDITOR"; then
3470 echo "$ac_t""$EDITOR" 1>&6
3472 echo "$ac_t""no" 1>&6
3475 # Extract the first word of "finger", so it can be a program name with args.
3476 set dummy finger; ac_word=$2
3477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3478 echo "configure:3479: checking for $ac_word" >&5
3479 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3484 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3487 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3491 ac_dummy="$PATH:/usr/ucb"
3492 for ac_dir in $ac_dummy; do
3493 test -z "$ac_dir" && ac_dir=.
3494 if test -f $ac_dir/$ac_word; then
3495 ac_cv_path_FINGER="$ac_dir/$ac_word"
3500 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3504 FINGER="$ac_cv_path_FINGER"
3505 if test -n "$FINGER"; then
3506 echo "$ac_t""$FINGER" 1>&6
3508 echo "$ac_t""no" 1>&6
3513 if test $ol_enable_perl != no ; then
3514 # Extract the first word of "perl", so it can be a program name with args.
3515 set dummy perl; ac_word=$2
3516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3517 echo "configure:3518: checking for $ac_word" >&5
3518 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3526 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3531 for ac_dir in $ac_dummy; do
3532 test -z "$ac_dir" && ac_dir=.
3533 if test -f $ac_dir/$ac_word; then
3534 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3539 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3543 PERLBIN="$ac_cv_path_PERLBIN"
3544 if test -n "$PERLBIN"; then
3545 echo "$ac_t""$PERLBIN" 1>&6
3547 echo "$ac_t""no" 1>&6
3551 if test "no$PERLBIN" = "no" ; then
3552 if test $ol_enable_perl = yes ; then
3553 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3557 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3558 if test x"$ol_with_perl_module" = "xstatic" ; then
3559 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3561 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3567 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3568 echo "configure:3569: checking how to run the C preprocessor" >&5
3569 # On Suns, sometimes $CPP names a directory.
3570 if test -n "$CPP" && test -d "$CPP"; then
3573 if test -z "$CPP"; then
3574 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 # This must be in double quotes, not single quotes, because CPP may get
3578 # substituted into the Makefile and "${CC-cc}" will confuse make.
3580 # On the NeXT, cc -E runs the code through the compiler's parser,
3581 # not just through cpp.
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3589 { (eval echo configure:3590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3591 if test -z "$ac_err"; then
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 CPP="${CC-cc} -E -traditional-cpp"
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3606 { (eval echo configure:3607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3608 if test -z "$ac_err"; then
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 CPP="${CC-cc} -nologo -E"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3625 if test -z "$ac_err"; then
3629 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3639 ac_cv_prog_CPP="$CPP"
3641 CPP="$ac_cv_prog_CPP"
3643 ac_cv_prog_CPP="$CPP"
3645 echo "$ac_t""$CPP" 1>&6
3648 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3649 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3651 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3652 echo "configure: warning: programs compiled here do run here..." 1>&2
3653 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3655 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3656 echo "configure: warning: programs compiled here do not run here..." 1>&2
3657 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3660 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3661 echo "configure:3662: checking for AIX" >&5
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 egrep "yes" >/dev/null 2>&1; then
3673 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3674 #define _ALL_SOURCE 1
3679 echo "$ac_t""no" 1>&6
3684 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3685 echo "configure:3686: checking for POSIXized ISC" >&5
3686 if test -d /etc/conf/kconfig.d &&
3687 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3689 echo "$ac_t""yes" 1>&6
3690 ISC=yes # If later tests want to check for ISC.
3691 cat >> confdefs.h <<\EOF
3692 #define _POSIX_SOURCE 1
3695 if test "$GCC" = yes; then
3701 echo "$ac_t""no" 1>&6
3705 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3706 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3707 echo "configure:3708: checking for minix/config.h" >&5
3708 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 #include <minix/config.h>
3716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3717 { (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3719 if test -z "$ac_err"; then
3721 eval "ac_cv_header_$ac_safe=yes"
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 eval "ac_cv_header_$ac_safe=no"
3731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3735 echo "$ac_t""no" 1>&6
3739 if test "$MINIX" = yes; then
3740 cat >> confdefs.h <<\EOF
3741 #define _POSIX_SOURCE 1
3744 cat >> confdefs.h <<\EOF
3745 #define _POSIX_1_SOURCE 2
3748 cat >> confdefs.h <<\EOF
3755 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3756 echo "configure:3757: checking for Cygwin environment" >&5
3757 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3767 #define __CYGWIN__ __CYGWIN32__
3772 if { (eval echo configure:3773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3784 echo "$ac_t""$ac_cv_cygwin" 1>&6
3786 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3787 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3788 echo "configure:3789: checking for mingw32 environment" >&5
3789 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3800 if { (eval echo configure:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3812 echo "$ac_t""$ac_cv_mingw32" 1>&6
3814 test "$ac_cv_mingw32" = yes && MINGW32=yes
3815 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3816 echo "configure:3817: checking for EMX OS/2 environment" >&5
3817 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3828 if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3840 echo "$ac_t""$ac_cv_emxos2" 1>&6
3842 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3846 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3847 echo "configure:3848: checking for executable suffix" >&5
3848 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3855 echo 'int main () { return 0; }' > conftest.$ac_ext
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3858 for file in conftest.*; do
3860 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3861 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3865 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3868 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3873 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3874 echo "$ac_t""${ac_cv_exeext}" 1>&6
3877 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3878 echo "configure:3879: checking for object suffix" >&5
3879 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 echo 'int i = 1;' > conftest.$ac_ext
3884 if { (eval echo configure:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885 for ac_file in conftest.*; do
3888 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3892 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3897 echo "$ac_t""$ac_cv_objext" 1>&6
3898 OBJEXT=$ac_cv_objext
3899 ac_objext=$ac_cv_objext
3902 cat >> confdefs.h <<EOF
3903 #define EXEEXT "${EXEEXT}"
3907 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3908 echo "configure:3909: checking for be_app in -lbe" >&5
3909 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3910 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 ac_save_LIBS="$LIBS"
3914 LIBS="-lbe -lroot -lnet $LIBS"
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3929 eval "ac_cv_lib_$ac_lib_var=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_lib_$ac_lib_var=no"
3937 LIBS="$ac_save_LIBS"
3940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 LIBS="$LIBS -lbe -lroot -lnet"
3944 echo "$ac_t""no" 1>&6
3952 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3953 echo "configure:3954: checking for ${CC-cc} option to accept ANSI C" >&5
3954 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 am_cv_prog_cc_stdc=no
3959 # Don't try gcc -ansi; that turns off useful extensions and
3960 # breaks some systems' header files.
3961 # AIX -qlanglvl=ansi
3962 # Ultrix and OSF/1 -std1
3963 # HP-UX 10.20 and later -Ae
3964 # HP-UX older versions -Aa -D_HPUX_SOURCE
3965 # SVR4 -Xc -D__EXTENSIONS__
3966 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3968 CC="$ac_save_CC $ac_arg"
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3974 #include <sys/types.h>
3975 #include <sys/stat.h>
3976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3977 struct buf { int x; };
3978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3979 static char *e (p, i)
3985 static char *f (char * (*g) (char **, int), char **p, ...)
3990 s = g (p, va_arg (v,int));
3994 int test (int i, double x);
3995 struct s1 {int (*f) (int a);};
3996 struct s2 {int (*f) (double a);};
3997 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4007 if { (eval echo configure:4008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4009 am_cv_prog_cc_stdc="$ac_arg"; break
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4020 if test -z "$am_cv_prog_cc_stdc"; then
4021 echo "$ac_t""none needed" 1>&6
4023 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4025 case "x$am_cv_prog_cc_stdc" in
4027 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4030 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4031 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4034 # test for make depend flag
4037 if test -z "${MKDEP}"; then
4039 if test -z "${MKDEP_FLAGS}"; then
4040 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4041 echo "configure:4042: checking for ${OL_MKDEP} depend flag" >&5
4042 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4047 for flag in "-M" "-xM"; do
4048 cat > conftest.c <<EOF
4051 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4052 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4054 if test ! -f conftest."${ac_object}" ; then
4056 OL_MKDEP_FLAGS="$flag"
4065 echo "$ac_t""$ol_cv_mkdep" 1>&6
4068 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4073 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4078 if test "${ol_cv_mkdep}" = no ; then
4079 # this will soon become an error
4080 echo "configure: warning: do not know how to generate dependencies" 1>&2
4083 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4084 echo "configure:4085: checking for afopen in -ls" >&5
4085 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4086 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 ac_save_LIBS="$LIBS"
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* Override any gcc2 internal prototype to avoid an error. */
4095 /* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 eval "ac_cv_lib_$ac_lib_var=yes"
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 eval "ac_cv_lib_$ac_lib_var=no"
4113 LIBS="$ac_save_LIBS"
4116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_AIX_SECURITY 1
4126 echo "$ac_t""no" 1>&6
4131 for ac_func in getaddrinfo
4133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4134 echo "configure:4135: checking for $ac_func" >&5
4135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4141 /* System header to define __stub macros and hopefully few prototypes,
4142 which can conflict with char $ac_func(); below. */
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4152 /* The GNU C library defines this for functions which it implements
4153 to always fail with ENOSYS. Some functions are actually named
4154 something starting with __ and the normal name is an alias. */
4155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 eval "ac_cv_func_$ac_func=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_func_$ac_func=no"
4175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4178 cat >> confdefs.h <<EOF
4179 #define $ac_tr_func 1
4183 echo "$ac_t""no" 1>&6
4188 if test $ac_cv_func_getaddrinfo = no ; then
4189 if test $ol_enable_ipv6 = yes ; then
4190 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4195 if test $ol_enable_local != no ; then
4196 for ac_hdr in sys/un.h
4198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4200 echo "configure:4201: checking for $ac_hdr" >&5
4201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4210 { (eval echo configure:4211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4212 if test -z "$ac_err"; then
4214 eval "ac_cv_header_$ac_safe=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 eval "ac_cv_header_$ac_safe=no"
4224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4227 cat >> confdefs.h <<EOF
4228 #define $ac_tr_hdr 1
4232 echo "$ac_t""no" 1>&6
4237 if test $ol_enable_local = auto ; then
4238 ol_enable_local=$ac_cv_header_sys_un_h
4239 elif test $ac_cv_header_sys_un_h = no ; then
4240 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
4245 if test $ol_enable_modules != no ; then
4246 for ac_hdr in ltdl.h
4248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_hdr" >&5
4251 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4264 eval "ac_cv_header_$ac_safe=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_header_$ac_safe=no"
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_hdr 1
4282 echo "$ac_t""no" 1>&6
4287 if test $ac_cv_header_ltdl_h = no ; then
4288 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4291 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4292 echo "configure:4293: checking for lt_dlinit in -lltdl" >&5
4293 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4294 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4297 ac_save_LIBS="$LIBS"
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 eval "ac_cv_lib_$ac_lib_var=yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 eval "ac_cv_lib_$ac_lib_var=no"
4321 LIBS="$ac_save_LIBS"
4324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4328 cat >> confdefs.h <<\EOF
4329 #define HAVE_LIBLTDL 1
4334 echo "$ac_t""no" 1>&6
4338 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4339 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4343 ol_with_dnssrv_module=static
4344 ol_with_ldap_module=static
4345 ol_with_ldbm_module=static
4346 ol_with_passwd_module=static
4347 ol_with_perl_module=static
4348 ol_with_shell_module=static
4349 ol_with_tcl_module=static
4350 ol_with_sql_module=static
4354 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4355 echo "configure:4356: checking for EBCDIC" >&5
4356 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4365 #include <__ASCII__/generate_error.h>
4369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4370 { (eval echo configure:4371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4372 if test -z "$ac_err"; then
4374 ol_cv_cpp_ebcdic=yes
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4385 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4386 if test $ol_cv_cpp_ebcdic = yes ; then
4387 cat >> confdefs.h <<\EOF
4388 #define HAVE_EBCDIC 1
4393 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4394 echo "configure:4395: checking for ANSI C header files" >&5
4395 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4407 { (eval echo configure:4408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4409 if test -z "$ac_err"; then
4411 ol_cv_header_stdc=yes
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 ol_cv_header_stdc=no
4421 if test $ol_cv_header_stdc = yes; then
4422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 egrep "memchr" >/dev/null 2>&1; then
4433 ol_cv_header_stdc=no
4439 if test $ol_cv_header_stdc = yes; then
4440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4447 egrep "free" >/dev/null 2>&1; then
4451 ol_cv_header_stdc=no
4457 if test $ol_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4470 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4471 || ('j' <= (c) && (c) <= 'r') \
4472 || ('s' <= (c) && (c) <= 'z'))
4473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4476 int main () { int i; for (i = 0; i < 256; i++)
4477 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 ol_cv_header_stdc=no
4496 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4497 if test $ol_cv_header_stdc = yes; then
4498 cat >> confdefs.h <<\EOF
4499 #define STDC_HEADERS 1
4503 ac_cv_header_stdc=disable
4506 if test $ol_cv_header_stdc != yes; then
4507 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4511 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr that defines DIR" >&5
4516 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 #include <sys/types.h>
4528 if { (eval echo configure:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4530 eval "ac_cv_header_dirent_$ac_safe=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_header_dirent_$ac_safe=no"
4539 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_hdr 1
4545 ac_header_dirent=$ac_hdr; break
4547 echo "$ac_t""no" 1>&6
4550 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4551 if test $ac_header_dirent = dirent.h; then
4552 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4553 echo "configure:4554: checking for opendir in -ldir" >&5
4554 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_save_LIBS="$LIBS"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 eval "ac_cv_lib_$ac_lib_var=no"
4582 LIBS="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4589 echo "$ac_t""no" 1>&6
4593 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4594 echo "configure:4595: checking for opendir in -lx" >&5
4595 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4596 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 ac_save_LIBS="$LIBS"
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4604 /* Override any gcc2 internal prototype to avoid an error. */
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4615 eval "ac_cv_lib_$ac_lib_var=yes"
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 eval "ac_cv_lib_$ac_lib_var=no"
4623 LIBS="$ac_save_LIBS"
4626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4630 echo "$ac_t""no" 1>&6
4635 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4636 echo "configure:4637: checking for sys/wait.h that is POSIX.1 compatible" >&5
4637 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 #include <sys/types.h>
4644 #include <sys/wait.h>
4646 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4649 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4657 if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4659 ac_cv_header_sys_wait_h=yes
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 ac_cv_header_sys_wait_h=no
4669 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4670 if test $ac_cv_header_sys_wait_h = yes; then
4671 cat >> confdefs.h <<\EOF
4672 #define HAVE_SYS_WAIT_H 1
4677 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4678 echo "configure:4679: checking POSIX termios" >&5
4679 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4687 #include <termios.h>
4689 /* SunOS 4.0.3 has termios.h but not the library calls. */
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4695 am_cv_sys_posix_termios=yes
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 am_cv_sys_posix_termios=no
4705 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4708 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4709 echo "configure:4710: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4710 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4715 gwinsz_in_termios_h=no
4716 if test $am_cv_sys_posix_termios = yes; then
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 #include <sys/types.h>
4721 # include <termios.h>
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 egrep "yes" >/dev/null 2>&1; then
4730 gwinsz_in_termios_h=yes
4736 if test $gwinsz_in_termios_h = no; then
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 #include <sys/types.h>
4741 # include <sys/ioctl.h>
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 egrep "yes" >/dev/null 2>&1; then
4750 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4758 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4759 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4760 cat >> confdefs.h <<\EOF
4761 #define GWINSZ_IN_SYS_IOCTL 1
4766 if test $am_cv_sys_posix_termios = yes ; then
4767 cat >> confdefs.h <<\EOF
4768 #define HAVE_POSIX_TERMIOS 1
4819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4821 echo "configure:4822: checking for $ac_hdr" >&5
4822 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4831 { (eval echo configure:4832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4833 if test -z "$ac_err"; then
4835 eval "ac_cv_header_$ac_safe=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4841 eval "ac_cv_header_$ac_safe=no"
4845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4848 cat >> confdefs.h <<EOF
4849 #define $ac_tr_hdr 1
4853 echo "$ac_t""no" 1>&6
4860 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4861 echo "configure:4862: checking for sigset in -lV3" >&5
4862 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4863 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4866 ac_save_LIBS="$LIBS"
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 /* Override any gcc2 internal prototype to avoid an error. */
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 eval "ac_cv_lib_$ac_lib_var=yes"
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4887 eval "ac_cv_lib_$ac_lib_var=no"
4890 LIBS="$ac_save_LIBS"
4893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4897 cat >> confdefs.h <<EOF
4898 #define $ac_tr_lib 1
4904 echo "$ac_t""no" 1>&6
4908 if test $ac_cv_header_winsock_h = yes; then
4909 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4910 echo "configure:4911: checking for winsock" >&5
4911 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4917 #include <winsock.h>
4921 select(0,NULL,NULL,NULL,NULL);
4923 gethostname(NULL,0);
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4939 echo "$ac_t""$ol_cv_winsock" 1>&6
4941 if test $ol_cv_winsock = yes ; then
4942 cat >> confdefs.h <<\EOF
4943 #define HAVE_WINSOCK 1
4946 ac_cv_func_socket=yes
4947 ac_cv_func_select=yes
4948 ac_cv_func_closesocket=yes
4949 ac_cv_func_gethostname=yes
4954 echo $ac_n "checking for socket""... $ac_c" 1>&6
4955 echo "configure:4956: checking for socket" >&5
4956 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char socket(); below. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4973 /* The GNU C library defines this for functions which it implements
4974 to always fail with ENOSYS. Some functions are actually named
4975 something starting with __ and the normal name is an alias. */
4976 #if defined (__stub_socket) || defined (__stub___socket)
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4986 eval "ac_cv_func_socket=yes"
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4991 eval "ac_cv_func_socket=no"
4996 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
5000 echo "$ac_t""no" 1>&6
5002 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5003 echo "configure:5004: checking for main in -lsocket" >&5
5004 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 ac_save_LIBS="$LIBS"
5009 LIBS="-lsocket $LIBS"
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020 eval "ac_cv_lib_$ac_lib_var=yes"
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5025 eval "ac_cv_lib_$ac_lib_var=no"
5028 LIBS="$ac_save_LIBS"
5031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5035 cat >> confdefs.h <<EOF
5036 #define $ac_tr_lib 1
5039 LIBS="-lsocket $LIBS"
5042 echo "$ac_t""no" 1>&6
5045 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5046 echo "configure:5047: checking for main in -lnet" >&5
5047 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5048 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 ac_save_LIBS="$LIBS"
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5061 if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 eval "ac_cv_lib_$ac_lib_var=yes"
5065 echo "configure: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5068 eval "ac_cv_lib_$ac_lib_var=no"
5071 LIBS="$ac_save_LIBS"
5074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5078 cat >> confdefs.h <<EOF
5079 #define $ac_tr_lib 1
5085 echo "$ac_t""no" 1>&6
5088 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5089 echo "configure:5090: checking for main in -lnsl_s" >&5
5090 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5091 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 ac_save_LIBS="$LIBS"
5095 LIBS="-lnsl_s $LIBS"
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_lib 1
5125 LIBS="-lnsl_s $LIBS"
5128 echo "$ac_t""no" 1>&6
5131 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5132 echo "configure:5133: checking for main in -lnsl" >&5
5133 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 ac_save_LIBS="$LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 eval "ac_cv_lib_$ac_lib_var=yes"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_lib_$ac_lib_var=no"
5157 LIBS="$ac_save_LIBS"
5160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5162 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5164 cat >> confdefs.h <<EOF
5165 #define $ac_tr_lib 1
5171 echo "$ac_t""no" 1>&6
5174 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5175 echo "configure:5176: checking for socket in -linet" >&5
5176 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5177 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 ac_save_LIBS="$LIBS"
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 /* Override any gcc2 internal prototype to avoid an error. */
5186 /* We use char because int might match the return type of a gcc2
5187 builtin and then its argument prototype would still apply. */
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 eval "ac_cv_lib_$ac_lib_var=yes"
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5201 eval "ac_cv_lib_$ac_lib_var=no"
5204 LIBS="$ac_save_LIBS"
5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5209 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5211 cat >> confdefs.h <<EOF
5212 #define $ac_tr_lib 1
5218 echo "$ac_t""no" 1>&6
5221 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5222 echo "configure:5223: checking for main in -lgen" >&5
5223 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5224 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 ac_save_LIBS="$LIBS"
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 eval "ac_cv_lib_$ac_lib_var=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_lib_$ac_lib_var=no"
5247 LIBS="$ac_save_LIBS"
5250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5254 cat >> confdefs.h <<EOF
5255 #define $ac_tr_lib 1
5261 echo "$ac_t""no" 1>&6
5268 echo $ac_n "checking for select""... $ac_c" 1>&6
5269 echo "configure:5270: checking for select" >&5
5270 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* System header to define __stub macros and hopefully few prototypes,
5277 which can conflict with char select(); below. */
5279 /* Override any gcc2 internal prototype to avoid an error. */
5280 /* We use char because int might match the return type of a gcc2
5281 builtin and then its argument prototype would still apply. */
5287 /* The GNU C library defines this for functions which it implements
5288 to always fail with ENOSYS. Some functions are actually named
5289 something starting with __ and the normal name is an alias. */
5290 #if defined (__stub_select) || defined (__stub___select)
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300 eval "ac_cv_func_select=yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 eval "ac_cv_func_select=no"
5310 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5311 echo "$ac_t""yes" 1>&6
5314 echo "$ac_t""no" 1>&6
5315 { echo "configure: error: select() required." 1>&2; exit 1; }
5319 if test "${ac_cv_header_winsock_h}" != yes; then
5320 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5321 echo "configure:5322: checking types of arguments for select()" >&5
5322 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5331 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5332 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5333 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5337 #ifdef HAVE_SYS_TYPES_H
5338 #include <sys/types.h>
5340 #ifdef HAVE_SYS_TIME_H
5341 #include <sys/time.h>
5343 #ifdef HAVE_SYS_SELECT_H
5344 #include <sys/select.h>
5346 #ifdef HAVE_SYS_SOCKET_H
5347 #include <sys/socket.h>
5349 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);
5354 if { (eval echo configure:5355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5356 ac_not_found=no ; break 3
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5373 if test "$ac_not_found" = yes; then
5374 ac_cv_func_select_arg1=int
5375 ac_cv_func_select_arg234='int *'
5376 ac_cv_func_select_arg5='struct timeval *'
5378 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5379 cat >> confdefs.h <<EOF
5380 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5383 cat >> confdefs.h <<EOF
5384 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5387 cat >> confdefs.h <<EOF
5388 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5395 for ac_hdr in regex.h
5397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5399 echo "configure:5400: checking for $ac_hdr" >&5
5400 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5409 { (eval echo configure:5410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5411 if test -z "$ac_err"; then
5413 eval "ac_cv_header_$ac_safe=yes"
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5419 eval "ac_cv_header_$ac_safe=no"
5423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5426 cat >> confdefs.h <<EOF
5427 #define $ac_tr_hdr 1
5431 echo "$ac_t""no" 1>&6
5435 if test "$ac_cv_header_regex_h" != yes ; then
5436 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5438 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5439 echo "configure:5440: checking for regfree" >&5
5440 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 /* System header to define __stub macros and hopefully few prototypes,
5447 which can conflict with char regfree(); below. */
5449 /* Override any gcc2 internal prototype to avoid an error. */
5450 /* We use char because int might match the return type of a gcc2
5451 builtin and then its argument prototype would still apply. */
5457 /* The GNU C library defines this for functions which it implements
5458 to always fail with ENOSYS. Some functions are actually named
5459 something starting with __ and the normal name is an alias. */
5460 #if defined (__stub_regfree) || defined (__stub___regfree)
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5470 eval "ac_cv_func_regfree=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 eval "ac_cv_func_regfree=no"
5480 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5481 echo "$ac_t""yes" 1>&6
5484 echo "$ac_t""no" 1>&6
5485 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5490 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5491 echo "configure:5492: checking for compatible POSIX regex" >&5
5492 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5496 if test "$cross_compiling" = yes; then
5497 ol_cv_c_posix_regex=cross
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5503 #include <sys/types.h>
5505 static char *pattern, *string;
5513 if(regcomp(&re, pattern, 0)) {
5517 string = "ALL MATCH";
5519 rc = regexec(&re, string, 0, (void*)0, 0);
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5528 ol_cv_c_posix_regex=yes
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5533 ol_cv_c_posix_regex=no
5540 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5542 if test "$ol_cv_c_posix_regex" = no ; then
5543 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5547 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5548 echo "configure:5549: checking for res_query" >&5
5549 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 /* System header to define __stub macros and hopefully few prototypes,
5556 which can conflict with char res_query(); below. */
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_res_query) || defined (__stub___res_query)
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 eval "ac_cv_func_res_query=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_func_res_query=no"
5589 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5593 echo "$ac_t""no" 1>&6
5596 if test $ac_cv_func_res_query = no ; then
5597 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5598 echo "configure:5599: checking for res_query in -lbind" >&5
5599 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5600 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 ac_save_LIBS="$LIBS"
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5608 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5619 eval "ac_cv_lib_$ac_lib_var=yes"
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 eval "ac_cv_lib_$ac_lib_var=no"
5627 LIBS="$ac_save_LIBS"
5630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5633 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5634 cat >> confdefs.h <<EOF
5635 #define $ac_tr_lib 1
5641 echo "$ac_t""no" 1>&6
5644 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5647 if test $ac_cv_func_res_query = no ; then
5648 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5649 echo "configure:5650: checking for __res_query in -lbind" >&5
5650 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 ac_save_LIBS="$LIBS"
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5670 eval "ac_cv_lib_$ac_lib_var=yes"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 eval "ac_cv_lib_$ac_lib_var=no"
5678 LIBS="$ac_save_LIBS"
5681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5684 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5685 cat >> confdefs.h <<EOF
5686 #define $ac_tr_lib 1
5692 echo "$ac_t""no" 1>&6
5695 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5698 if test $ac_cv_func_res_query = no ; then
5699 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5700 echo "configure:5701: checking for res_query in -lresolv" >&5
5701 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5702 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 ac_save_LIBS="$LIBS"
5706 LIBS="-lresolv $LIBS"
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5719 if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5721 eval "ac_cv_lib_$ac_lib_var=yes"
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5726 eval "ac_cv_lib_$ac_lib_var=no"
5729 LIBS="$ac_save_LIBS"
5732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5735 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5736 cat >> confdefs.h <<EOF
5737 #define $ac_tr_lib 1
5740 LIBS="-lresolv $LIBS"
5743 echo "$ac_t""no" 1>&6
5746 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5749 if test "$ac_cv_func_res_query" = yes ; then
5750 cat >> confdefs.h <<\EOF
5751 #define HAVE_RES_QUERY 1
5755 if test $ol_enable_dnssrv != no ; then
5760 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5761 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5769 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5770 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5772 for ac_hdr in krb5.h
5774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_hdr" >&5
5777 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5786 { (eval echo configure:5787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5788 if test -z "$ac_err"; then
5790 eval "ac_cv_header_$ac_safe=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 eval "ac_cv_header_$ac_safe=no"
5800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5803 cat >> confdefs.h <<EOF
5804 #define $ac_tr_hdr 1
5808 echo "$ac_t""no" 1>&6
5813 if test $ac_cv_header_krb5_h = yes ; then
5814 for ac_hdr in heim_err.h
5816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_hdr" >&5
5819 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5828 { (eval echo configure:5829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5830 if test -z "$ac_err"; then
5832 eval "ac_cv_header_$ac_safe=yes"
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5838 eval "ac_cv_header_$ac_safe=no"
5842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5843 echo "$ac_t""yes" 1>&6
5844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5845 cat >> confdefs.h <<EOF
5846 #define $ac_tr_hdr 1
5850 echo "$ac_t""no" 1>&6
5854 if test $ac_cv_header_heim_err_h = yes ; then
5860 if test $krb5_impl = mit; then
5861 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5862 echo "configure:5863: checking for main in -lkrb5" >&5
5863 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5864 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 ac_save_LIBS="$LIBS"
5868 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5877 if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5879 eval "ac_cv_lib_$ac_lib_var=yes"
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5884 eval "ac_cv_lib_$ac_lib_var=no"
5887 LIBS="$ac_save_LIBS"
5890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5893 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5895 echo "$ac_t""no" 1>&6
5900 elif test $krb5_impl = heimdal; then
5901 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5902 echo "configure:5903: checking for main in -lkrb5" >&5
5903 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5904 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5907 ac_save_LIBS="$LIBS"
5908 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5919 eval "ac_cv_lib_$ac_lib_var=yes"
5921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5924 eval "ac_cv_lib_$ac_lib_var=no"
5927 LIBS="$ac_save_LIBS"
5930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5933 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5935 echo "$ac_t""no" 1>&6
5940 cat >> confdefs.h <<\EOF
5941 #define HAVE_HEIMDAL_KERBEROS 1
5946 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5949 if test $have_krb5 = yes ; then
5952 cat >> confdefs.h <<\EOF
5957 if test $ol_enable_kpasswd != no ; then
5958 ol_link_kpasswd=yes;
5961 if test $ol_with_kerberos = k5only ; then
5962 ol_with_kerberos=found
5965 elif test $ol_with_kerberos != auto ; then
5966 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5972 if test $ol_link_krb5 = yes -a \
5973 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5975 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_hdr" >&5
5980 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5989 { (eval echo configure:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5991 if test -z "$ac_err"; then
5993 eval "ac_cv_header_$ac_safe=yes"
5996 echo "configure: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5999 eval "ac_cv_header_$ac_safe=no"
6003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6006 cat >> confdefs.h <<EOF
6007 #define $ac_tr_hdr 1
6011 echo "$ac_t""no" 1>&6
6016 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6017 if test $krb5_impl = mit; then
6018 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6019 echo "configure:6020: checking for main in -lkrb4" >&5
6020 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 ac_save_LIBS="$LIBS"
6025 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 eval "ac_cv_lib_$ac_lib_var=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_lib_$ac_lib_var=no"
6044 LIBS="$ac_save_LIBS"
6047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6048 echo "$ac_t""yes" 1>&6
6050 KRB4_LIBS="-lkrb4 -ldes425"
6052 echo "$ac_t""no" 1>&6
6057 elif test $krb5_impl = heimdal; then
6058 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6059 echo "configure:6060: checking for main in -lkrb4" >&5
6060 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6061 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6064 ac_save_LIBS="$LIBS"
6065 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6074 if { (eval echo configure:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6076 eval "ac_cv_lib_$ac_lib_var=yes"
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6081 eval "ac_cv_lib_$ac_lib_var=no"
6084 LIBS="$ac_save_LIBS"
6087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6092 echo "$ac_t""no" 1>&6
6099 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6102 if test $have_k425 = yes ; then
6103 ol_with_kerberos=found
6106 cat >> confdefs.h <<\EOF
6107 #define HAVE_KRB425 1
6110 cat >> confdefs.h <<\EOF
6115 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6116 echo "configure:6117: checking for des_debug in Kerberos libraries" >&5
6117 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6122 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6127 #include <kerberosIV/krb.h>
6128 #include <kerberosIV/des.h>
6129 extern int des_debug;
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 ol_cv_var_des_debug=yes
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 ol_cv_var_des_debug=no
6151 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6153 if test $ol_cv_var_des_debug = yes ; then
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_DES_DEBUG 1
6165 if test $ol_link_krb5 = yes ; then
6166 ol_with_kerberos=found
6169 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6170 -o $ol_with_kerberos = kth ; then
6172 for ac_hdr in krb.h des.h krb-archaeology.h
6174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6176 echo "configure:6177: checking for $ac_hdr" >&5
6177 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6178 echo $ac_n "(cached) $ac_c" 1>&6
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6186 { (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6188 if test -z "$ac_err"; then
6190 eval "ac_cv_header_$ac_safe=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_header_$ac_safe=no"
6200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6203 cat >> confdefs.h <<EOF
6204 #define $ac_tr_hdr 1
6208 echo "$ac_t""no" 1>&6
6213 if test $ac_cv_header_krb_h = yes ; then
6214 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6215 echo "configure:6216: checking for main in -lkrb" >&5
6216 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6217 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 ac_save_LIBS="$LIBS"
6221 LIBS="-lkrb -ldes $LIBS"
6222 cat > conftest.$ac_ext <<EOF
6223 #line 6224 "configure"
6224 #include "confdefs.h"
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 eval "ac_cv_lib_$ac_lib_var=yes"
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 eval "ac_cv_lib_$ac_lib_var=no"
6240 LIBS="$ac_save_LIBS"
6243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6247 echo "$ac_t""no" 1>&6
6252 if test $have_k4 = yes ; then
6253 ol_with_kerberos=found
6256 cat >> confdefs.h <<\EOF
6261 KRB4_LIBS="-lkrb -ldes"
6263 if test $ac_cv_header_krb_archaeology_h = yes ; then
6264 cat >> confdefs.h <<\EOF
6265 #define HAVE_KTH_KERBEROS 1
6273 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6274 ol_link_kpasswd=yes;
6277 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6278 cat >> confdefs.h <<\EOF
6279 #define HAVE_KERBEROS 1
6283 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6284 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6288 if test $ol_with_tls != no ; then
6289 for ac_hdr in openssl/ssl.h ssl.h
6291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6293 echo "configure:6294: checking for $ac_hdr" >&5
6294 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6303 { (eval echo configure:6304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6305 if test -z "$ac_err"; then
6307 eval "ac_cv_header_$ac_safe=yes"
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 eval "ac_cv_header_$ac_safe=no"
6317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6318 echo "$ac_t""yes" 1>&6
6319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6320 cat >> confdefs.h <<EOF
6321 #define $ac_tr_hdr 1
6325 echo "$ac_t""no" 1>&6
6330 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6331 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6332 echo "configure:6333: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6333 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6337 ac_save_LIBS="$LIBS"
6338 LIBS="-lssl -lcrypto $LIBS"
6339 cat > conftest.$ac_ext <<EOF
6340 #line 6341 "configure"
6341 #include "confdefs.h"
6342 /* Override any gcc2 internal prototype to avoid an error. */
6343 /* We use char because int might match the return type of a gcc2
6344 builtin and then its argument prototype would still apply. */
6345 char SSLeay_add_ssl_algorithms();
6348 SSLeay_add_ssl_algorithms()
6351 if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6353 eval "ac_cv_lib_$ac_lib_var=yes"
6355 echo "configure: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6358 eval "ac_cv_lib_$ac_lib_var=no"
6361 LIBS="$ac_save_LIBS"
6364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6369 echo "$ac_t""no" 1>&6
6374 if test $have_ssleay = no ; then
6375 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6376 echo "configure:6377: checking for SSL_library_init in -lssl" >&5
6377 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6378 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 ac_save_LIBS="$LIBS"
6382 LIBS="-lssl -lcrypto $LIBS"
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389 char SSL_library_init();
6395 if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6397 eval "ac_cv_lib_$ac_lib_var=yes"
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6402 eval "ac_cv_lib_$ac_lib_var=no"
6405 LIBS="$ac_save_LIBS"
6408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6413 echo "$ac_t""no" 1>&6
6419 if test $have_ssleay = no ; then
6420 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6421 echo "configure:6422: checking for ssl3_accept in -lssl" >&5
6422 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 ac_save_LIBS="$LIBS"
6427 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6442 eval "ac_cv_lib_$ac_lib_var=yes"
6444 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6447 eval "ac_cv_lib_$ac_lib_var=no"
6450 LIBS="$ac_save_LIBS"
6453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6454 echo "$ac_t""yes" 1>&6
6458 echo "$ac_t""no" 1>&6
6464 if test $have_ssleay = yes ; then
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_SSLEAY 1
6473 if test $need_rsaref = yes; then
6474 cat >> confdefs.h <<\EOF
6475 #define HAVE_RSAREF 1
6479 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6481 TLS_LIBS="-lssl -lcrypto"
6487 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6490 if test $ol_link_tls = yes ; then
6491 cat >> confdefs.h <<\EOF
6496 elif test $ol_with_tls = auto ; then
6497 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6498 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6500 elif test $ol_with_tls != no ; then
6501 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6506 gethostbyname_r gethostbyaddr_r \
6509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_func" >&5
6511 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func(); below. */
6520 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6528 /* The GNU C library defines this for functions which it implements
6529 to always fail with ENOSYS. Some functions are actually named
6530 something starting with __ and the normal name is an alias. */
6531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 eval "ac_cv_func_$ac_func=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_func_$ac_func=no"
6551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6552 echo "$ac_t""yes" 1>&6
6553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6554 cat >> confdefs.h <<EOF
6555 #define $ac_tr_func 1
6559 echo "$ac_t""no" 1>&6
6564 if test "$ac_cv_func_ctime_r" = no ; then
6565 ol_cv_func_ctime_r_nargs=0
6567 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6568 echo "configure:6569: checking number of arguments of ctime_r" >&5
6569 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6577 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6580 if { (eval echo configure:6581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6582 ol_cv_func_ctime_r_nargs3=yes
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6587 ol_cv_func_ctime_r_nargs3=no
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6596 time_t ti; char *buffer; ctime_r(&ti,buffer);
6599 if { (eval echo configure:6600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6601 ol_cv_func_ctime_r_nargs2=yes
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 ol_cv_func_ctime_r_nargs2=no
6610 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6611 $ol_cv_func_ctime_r_nargs2 = no ; then
6613 ol_cv_func_ctime_r_nargs=3
6615 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6616 $ol_cv_func_ctime_r_nargs2 = yes ; then
6618 ol_cv_func_ctime_r_nargs=2
6621 ol_cv_func_ctime_r_nargs=0
6626 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6628 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6629 cat >> confdefs.h <<EOF
6630 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6637 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6638 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6639 echo "configure:6640: checking number of arguments of gethostbyname_r" >&5
6640 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 #include <sys/types.h>
6647 #include <sys/socket.h>
6648 #include <netinet/in.h>
6650 #define BUFSIZE (sizeof(struct hostent)+10)
6652 struct hostent hent; char buffer[BUFSIZE];
6653 int bufsize=BUFSIZE;int h_errno;
6654 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6655 buffer, bufsize, &h_errno);
6658 if { (eval echo configure:6659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6660 ol_cv_func_gethostbyname_r_nargs5=yes
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6665 ol_cv_func_gethostbyname_r_nargs5=no
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 #include <sys/types.h>
6673 #include <sys/socket.h>
6674 #include <netinet/in.h>
6676 #define BUFSIZE (sizeof(struct hostent)+10)
6678 struct hostent hent;struct hostent *rhent;
6679 char buffer[BUFSIZE];
6680 int bufsize=BUFSIZE;int h_errno;
6681 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6685 if { (eval echo configure:6686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6687 ol_cv_func_gethostbyname_r_nargs6=yes
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 ol_cv_func_gethostbyname_r_nargs6=no
6696 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6697 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6699 ol_cv_func_gethostbyname_r_nargs=5
6701 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6702 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6704 ol_cv_func_gethostbyname_r_nargs=6
6707 ol_cv_func_gethostbyname_r_nargs=0
6712 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6713 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6714 cat >> confdefs.h <<EOF
6715 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6721 ol_cv_func_gethostbyname_r_nargs=0
6724 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6725 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6726 echo "configure:6727: checking number of arguments of gethostbyaddr_r" >&5
6727 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <sys/types.h>
6734 #include <sys/socket.h>
6735 #include <netinet/in.h>
6737 #define BUFSIZE (sizeof(struct hostent)+10)
6739 struct hostent hent; char buffer[BUFSIZE];
6741 size_t alen=sizeof(struct in_addr);
6742 int bufsize=BUFSIZE;int h_errno;
6743 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6744 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6747 if { (eval echo configure:6748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6749 ol_cv_func_gethostbyaddr_r_nargs7=yes
6751 echo "configure: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 ol_cv_func_gethostbyaddr_r_nargs7=no
6758 cat > conftest.$ac_ext <<EOF
6759 #line 6760 "configure"
6760 #include "confdefs.h"
6761 #include <sys/types.h>
6762 #include <sys/socket.h>
6763 #include <netinet/in.h>
6765 #define BUFSIZE (sizeof(struct hostent)+10)
6767 struct hostent hent;
6768 struct hostent *rhent; char buffer[BUFSIZE];
6770 size_t alen=sizeof(struct in_addr);
6771 int bufsize=BUFSIZE;int h_errno;
6772 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6773 alen, AF_INET, &hent, buffer, bufsize,
6777 if { (eval echo configure:6778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6779 ol_cv_func_gethostbyaddr_r_nargs8=yes
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 ol_cv_func_gethostbyaddr_r_nargs8=no
6788 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6789 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6791 ol_cv_func_gethostbyaddr_r_nargs=7
6793 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6794 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6796 ol_cv_func_gethostbyaddr_r_nargs=8
6799 ol_cv_func_gethostbyaddr_r_nargs=0
6804 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6805 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6806 cat >> confdefs.h <<EOF
6807 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6813 ol_cv_func_gethostbyaddr_r_nargs=0
6816 if test "$ac_cv_func_ctime_r" = yes \
6817 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6818 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6819 -a "$ac_cv_func_gethostbyname_r" = yes \
6820 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6821 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6822 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6823 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6824 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6827 cat >> confdefs.h <<\EOF
6828 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6835 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6836 -o $ol_with_threads = nt ; then
6839 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6840 echo "configure:6841: checking for NT Threads" >&5
6841 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6845 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6846 echo "configure:6847: checking for _beginthread" >&5
6847 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 /* System header to define __stub macros and hopefully few prototypes,
6854 which can conflict with char _beginthread(); below. */
6856 /* Override any gcc2 internal prototype to avoid an error. */
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6859 char _beginthread();
6864 /* The GNU C library defines this for functions which it implements
6865 to always fail with ENOSYS. Some functions are actually named
6866 something starting with __ and the normal name is an alias. */
6867 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 eval "ac_cv_func__beginthread=yes"
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 eval "ac_cv_func__beginthread=no"
6887 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 ol_cv_nt_threads=yes
6891 echo "$ac_t""no" 1>&6
6898 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6900 if test $ol_cv_nt_threads = yes ; then
6901 cat >> confdefs.h <<\EOF
6902 #define HAVE_NT_THREADS 1
6908 if test "$ol_cv_nt_threads" = yes ; then
6910 ol_with_threads=found
6911 ol_with_yielding_select=yes
6913 cat >> confdefs.h <<\EOF
6914 #define HAVE_NT_SERVICE_MANAGER 1
6917 cat >> confdefs.h <<\EOF
6918 #define HAVE_NT_EVENT_LOG 1
6923 if test $ol_with_threads = nt ; then
6924 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6928 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6929 -o $ol_with_threads = posix ; then
6931 for ac_hdr in pthread.h
6933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_hdr" >&5
6936 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6945 { (eval echo configure:6946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6947 if test -z "$ac_err"; then
6949 eval "ac_cv_header_$ac_safe=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 eval "ac_cv_header_$ac_safe=no"
6959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6962 cat >> confdefs.h <<EOF
6963 #define $ac_tr_hdr 1
6967 echo "$ac_t""no" 1>&6
6972 if test $ac_cv_header_pthread_h = yes ; then
6973 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6974 echo "configure:6975: checking POSIX thread version" >&5
6975 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
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_final;
6990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6991 egrep "pthread_version_final" >/dev/null 2>&1; then
6993 ol_pthread_final=yes
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7005 # include <pthread.h>
7006 /* this check could be improved */
7007 # ifdef pthread_once_init
7008 pthread_version_draft4;
7012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7015 ol_pthread_draft4=yes
7018 ol_pthread_draft4=no
7023 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7024 ol_cv_pthread_version=final
7025 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7026 ol_cv_pthread_version=draft4
7028 ol_cv_pthread_version=unknown
7033 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7036 if test $ol_cv_pthread_version = final ; then
7037 cat >> confdefs.h <<\EOF
7038 #define HAVE_PTHREADS_FINAL 1
7041 elif test $ol_cv_pthread_version = draft4 ; then
7042 cat >> confdefs.h <<\EOF
7043 #define HAVE_PTHREADS_D4 1
7047 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7050 # consider threads found
7051 ol_with_threads=found
7054 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7055 echo "configure:7056: checking for LinuxThreads pthread.h" >&5
7056 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7057 echo $ac_n "(cached) $ac_c" 1>&6
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 #include <pthread.h>
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7067 ol_cv_header_linux_threads=yes
7070 ol_cv_header_linux_threads=no
7077 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7078 if test $ol_cv_header_linux_threads = yes; then
7079 cat >> confdefs.h <<\EOF
7080 #define HAVE_LINUX_THREADS 1
7086 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7087 echo "configure:7088: checking for GNU Pth pthread.h" >&5
7088 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 #include <pthread.h>
7095 #ifdef _POSIX_THREAD_IS_GNU_PTH
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 egrep "__gnu_pth__" >/dev/null 2>&1; then
7103 ol_cv_header_gnu_pth_pthread_h=yes
7106 ol_cv_header_gnu_pth_pthread_h=no
7113 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7116 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7117 for ac_hdr in sched.h
7119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7121 echo "configure:7122: checking for $ac_hdr" >&5
7122 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7125 cat > conftest.$ac_ext <<EOF
7126 #line 7127 "configure"
7127 #include "confdefs.h"
7130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7131 { (eval echo configure:7132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7133 if test -z "$ac_err"; then
7135 eval "ac_cv_header_$ac_safe=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 eval "ac_cv_header_$ac_safe=no"
7145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7146 echo "$ac_t""yes" 1>&6
7147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7148 cat >> confdefs.h <<EOF
7149 #define $ac_tr_hdr 1
7153 echo "$ac_t""no" 1>&6
7160 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7161 echo "configure:7162: checking for pthread_create in default libraries" >&5
7162 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7166 if test "$cross_compiling" = yes; then
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* pthread test headers */
7171 #include <pthread.h>
7173 #define NULL (void*)0
7176 static void *task(p)
7179 return (void *) (p == NULL);
7184 /* pthread test function */
7187 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7188 /* This system (e.g. AIX) defaults detached; must override */
7189 pthread_attr_t attr;
7191 status = pthread_attr_init(&attr);
7192 if( status ) exit( status );
7194 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7195 if( status ) exit( status );
7199 #if HAVE_PTHREADS_D4
7200 #define ATTR pthread_attr_default
7205 /* make sure pthread_create() isn't just a stub */
7206 status = pthread_create(&t, ATTR, task, NULL);
7207 if( status ) exit( status );
7209 /* make sure pthread_detach() isn't just a stub */
7210 #if HAVE_PTHREADS_D4
7211 status = pthread_detach( &t );
7213 status = pthread_detach( t );
7216 #ifdef HAVE_LINUX_THREADS
7217 pthread_kill_other_threads_np();
7224 if { (eval echo configure:7225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7226 ol_cv_pthread_create=yes
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7231 ol_cv_pthread_create=no
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* pthread test headers */
7239 #include <pthread.h>
7241 #define NULL (void*)0
7244 static void *task(p)
7247 return (void *) (p == NULL);
7251 int main(argc, argv)
7256 /* pthread test function */
7259 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7260 /* This system (e.g. AIX) defaults detached; must override */
7261 pthread_attr_t attr;
7263 status = pthread_attr_init(&attr);
7264 if( status ) exit( status );
7266 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7267 if( status ) exit( status );
7271 #if HAVE_PTHREADS_D4
7272 #define ATTR pthread_attr_default
7277 /* make sure pthread_create() isn't just a stub */
7278 status = pthread_create(&t, ATTR, task, NULL);
7279 if( status ) exit( status );
7281 /* make sure pthread_detach() isn't just a stub */
7282 #if HAVE_PTHREADS_D4
7283 status = pthread_detach( &t );
7285 status = pthread_detach( t );
7288 #ifdef HAVE_LINUX_THREADS
7289 pthread_kill_other_threads_np();
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7299 ol_cv_pthread_create=yes
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 ol_cv_pthread_create=no
7311 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7313 if test $ol_cv_pthread_create != no ; then
7314 ol_link_threads=posix
7318 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7319 if test "$ol_link_threads" = no ; then
7321 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7322 echo "configure:7323: checking for pthread link with -kthread" >&5
7323 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7329 LIBS="-kthread $LIBS"
7331 if test "$cross_compiling" = yes; then
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 /* pthread test headers */
7336 #include <pthread.h>
7338 #define NULL (void*)0
7341 static void *task(p)
7344 return (void *) (p == NULL);
7349 /* pthread test function */
7352 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7353 /* This system (e.g. AIX) defaults detached; must override */
7354 pthread_attr_t attr;
7356 status = pthread_attr_init(&attr);
7357 if( status ) exit( status );
7359 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7360 if( status ) exit( status );
7364 #if HAVE_PTHREADS_D4
7365 #define ATTR pthread_attr_default
7370 /* make sure pthread_create() isn't just a stub */
7371 status = pthread_create(&t, ATTR, task, NULL);
7372 if( status ) exit( status );
7374 /* make sure pthread_detach() isn't just a stub */
7375 #if HAVE_PTHREADS_D4
7376 status = pthread_detach( &t );
7378 status = pthread_detach( t );
7381 #ifdef HAVE_LINUX_THREADS
7382 pthread_kill_other_threads_np();
7389 if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7391 ol_cv_pthread_kthread=yes
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7396 ol_cv_pthread_kthread=no
7400 cat > conftest.$ac_ext <<EOF
7401 #line 7402 "configure"
7402 #include "confdefs.h"
7403 /* pthread test headers */
7404 #include <pthread.h>
7406 #define NULL (void*)0
7409 static void *task(p)
7412 return (void *) (p == NULL);
7416 int main(argc, argv)
7421 /* pthread test function */
7424 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7425 /* This system (e.g. AIX) defaults detached; must override */
7426 pthread_attr_t attr;
7428 status = pthread_attr_init(&attr);
7429 if( status ) exit( status );
7431 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7432 if( status ) exit( status );
7436 #if HAVE_PTHREADS_D4
7437 #define ATTR pthread_attr_default
7442 /* make sure pthread_create() isn't just a stub */
7443 status = pthread_create(&t, ATTR, task, NULL);
7444 if( status ) exit( status );
7446 /* make sure pthread_detach() isn't just a stub */
7447 #if HAVE_PTHREADS_D4
7448 status = pthread_detach( &t );
7450 status = pthread_detach( t );
7453 #ifdef HAVE_LINUX_THREADS
7454 pthread_kill_other_threads_np();
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7464 ol_cv_pthread_kthread=yes
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 ol_cv_pthread_kthread=no
7480 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7482 if test $ol_cv_pthread_kthread = yes ; then
7483 ol_link_pthreads="-kthread"
7484 ol_link_threads=posix
7488 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7489 if test "$ol_link_threads" = no ; then
7491 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7492 echo "configure:7493: checking for pthread link with -pthread" >&5
7493 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7499 LIBS="-pthread $LIBS"
7501 if test "$cross_compiling" = yes; then
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 /* pthread test headers */
7506 #include <pthread.h>
7508 #define NULL (void*)0
7511 static void *task(p)
7514 return (void *) (p == NULL);
7519 /* pthread test function */
7522 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7523 /* This system (e.g. AIX) defaults detached; must override */
7524 pthread_attr_t attr;
7526 status = pthread_attr_init(&attr);
7527 if( status ) exit( status );
7529 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7530 if( status ) exit( status );
7534 #if HAVE_PTHREADS_D4
7535 #define ATTR pthread_attr_default
7540 /* make sure pthread_create() isn't just a stub */
7541 status = pthread_create(&t, ATTR, task, NULL);
7542 if( status ) exit( status );
7544 /* make sure pthread_detach() isn't just a stub */
7545 #if HAVE_PTHREADS_D4
7546 status = pthread_detach( &t );
7548 status = pthread_detach( t );
7551 #ifdef HAVE_LINUX_THREADS
7552 pthread_kill_other_threads_np();
7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7561 ol_cv_pthread_pthread=yes
7563 echo "configure: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7566 ol_cv_pthread_pthread=no
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 /* pthread test headers */
7574 #include <pthread.h>
7576 #define NULL (void*)0
7579 static void *task(p)
7582 return (void *) (p == NULL);
7586 int main(argc, argv)
7591 /* pthread test function */
7594 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7595 /* This system (e.g. AIX) defaults detached; must override */
7596 pthread_attr_t attr;
7598 status = pthread_attr_init(&attr);
7599 if( status ) exit( status );
7601 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7602 if( status ) exit( status );
7606 #if HAVE_PTHREADS_D4
7607 #define ATTR pthread_attr_default
7612 /* make sure pthread_create() isn't just a stub */
7613 status = pthread_create(&t, ATTR, task, NULL);
7614 if( status ) exit( status );
7616 /* make sure pthread_detach() isn't just a stub */
7617 #if HAVE_PTHREADS_D4
7618 status = pthread_detach( &t );
7620 status = pthread_detach( t );
7623 #ifdef HAVE_LINUX_THREADS
7624 pthread_kill_other_threads_np();
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7634 ol_cv_pthread_pthread=yes
7636 echo "configure: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7639 ol_cv_pthread_pthread=no
7650 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7652 if test $ol_cv_pthread_pthread = yes ; then
7653 ol_link_pthreads="-pthread"
7654 ol_link_threads=posix
7658 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7659 if test "$ol_link_threads" = no ; then
7661 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7662 echo "configure:7663: checking for pthread link with -pthreads" >&5
7663 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7669 LIBS="-pthreads $LIBS"
7671 if test "$cross_compiling" = yes; then
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 /* pthread test headers */
7676 #include <pthread.h>
7678 #define NULL (void*)0
7681 static void *task(p)
7684 return (void *) (p == NULL);
7689 /* pthread test function */
7692 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7693 /* This system (e.g. AIX) defaults detached; must override */
7694 pthread_attr_t attr;
7696 status = pthread_attr_init(&attr);
7697 if( status ) exit( status );
7699 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7700 if( status ) exit( status );
7704 #if HAVE_PTHREADS_D4
7705 #define ATTR pthread_attr_default
7710 /* make sure pthread_create() isn't just a stub */
7711 status = pthread_create(&t, ATTR, task, NULL);
7712 if( status ) exit( status );
7714 /* make sure pthread_detach() isn't just a stub */
7715 #if HAVE_PTHREADS_D4
7716 status = pthread_detach( &t );
7718 status = pthread_detach( t );
7721 #ifdef HAVE_LINUX_THREADS
7722 pthread_kill_other_threads_np();
7729 if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7731 ol_cv_pthread_pthreads=yes
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7736 ol_cv_pthread_pthreads=no
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 /* pthread test headers */
7744 #include <pthread.h>
7746 #define NULL (void*)0
7749 static void *task(p)
7752 return (void *) (p == NULL);
7756 int main(argc, argv)
7761 /* pthread test function */
7764 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7765 /* This system (e.g. AIX) defaults detached; must override */
7766 pthread_attr_t attr;
7768 status = pthread_attr_init(&attr);
7769 if( status ) exit( status );
7771 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7772 if( status ) exit( status );
7776 #if HAVE_PTHREADS_D4
7777 #define ATTR pthread_attr_default
7782 /* make sure pthread_create() isn't just a stub */
7783 status = pthread_create(&t, ATTR, task, NULL);
7784 if( status ) exit( status );
7786 /* make sure pthread_detach() isn't just a stub */
7787 #if HAVE_PTHREADS_D4
7788 status = pthread_detach( &t );
7790 status = pthread_detach( t );
7793 #ifdef HAVE_LINUX_THREADS
7794 pthread_kill_other_threads_np();
7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7804 ol_cv_pthread_pthreads=yes
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 ol_cv_pthread_pthreads=no
7820 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7822 if test $ol_cv_pthread_pthreads = yes ; then
7823 ol_link_pthreads="-pthreads"
7824 ol_link_threads=posix
7828 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7829 if test "$ol_link_threads" = no ; then
7831 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7832 echo "configure:7833: checking for pthread link with -mthreads" >&5
7833 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7839 LIBS="-mthreads $LIBS"
7841 if test "$cross_compiling" = yes; then
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 /* pthread test headers */
7846 #include <pthread.h>
7848 #define NULL (void*)0
7851 static void *task(p)
7854 return (void *) (p == NULL);
7859 /* pthread test function */
7862 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7863 /* This system (e.g. AIX) defaults detached; must override */
7864 pthread_attr_t attr;
7866 status = pthread_attr_init(&attr);
7867 if( status ) exit( status );
7869 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7870 if( status ) exit( status );
7874 #if HAVE_PTHREADS_D4
7875 #define ATTR pthread_attr_default
7880 /* make sure pthread_create() isn't just a stub */
7881 status = pthread_create(&t, ATTR, task, NULL);
7882 if( status ) exit( status );
7884 /* make sure pthread_detach() isn't just a stub */
7885 #if HAVE_PTHREADS_D4
7886 status = pthread_detach( &t );
7888 status = pthread_detach( t );
7891 #ifdef HAVE_LINUX_THREADS
7892 pthread_kill_other_threads_np();
7899 if { (eval echo configure:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 ol_cv_pthread_mthreads=yes
7903 echo "configure: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7906 ol_cv_pthread_mthreads=no
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* pthread test headers */
7914 #include <pthread.h>
7916 #define NULL (void*)0
7919 static void *task(p)
7922 return (void *) (p == NULL);
7926 int main(argc, argv)
7931 /* pthread test function */
7934 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7935 /* This system (e.g. AIX) defaults detached; must override */
7936 pthread_attr_t attr;
7938 status = pthread_attr_init(&attr);
7939 if( status ) exit( status );
7941 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7942 if( status ) exit( status );
7946 #if HAVE_PTHREADS_D4
7947 #define ATTR pthread_attr_default
7952 /* make sure pthread_create() isn't just a stub */
7953 status = pthread_create(&t, ATTR, task, NULL);
7954 if( status ) exit( status );
7956 /* make sure pthread_detach() isn't just a stub */
7957 #if HAVE_PTHREADS_D4
7958 status = pthread_detach( &t );
7960 status = pthread_detach( t );
7963 #ifdef HAVE_LINUX_THREADS
7964 pthread_kill_other_threads_np();
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7974 ol_cv_pthread_mthreads=yes
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7979 ol_cv_pthread_mthreads=no
7990 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7992 if test $ol_cv_pthread_mthreads = yes ; then
7993 ol_link_pthreads="-mthreads"
7994 ol_link_threads=posix
7998 # Pthread try link: -thread (ol_cv_pthread_thread)
7999 if test "$ol_link_threads" = no ; then
8001 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8002 echo "configure:8003: checking for pthread link with -thread" >&5
8003 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8009 LIBS="-thread $LIBS"
8011 if test "$cross_compiling" = yes; then
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* pthread test headers */
8016 #include <pthread.h>
8018 #define NULL (void*)0
8021 static void *task(p)
8024 return (void *) (p == NULL);
8029 /* pthread test function */
8032 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8033 /* This system (e.g. AIX) defaults detached; must override */
8034 pthread_attr_t attr;
8036 status = pthread_attr_init(&attr);
8037 if( status ) exit( status );
8039 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8040 if( status ) exit( status );
8044 #if HAVE_PTHREADS_D4
8045 #define ATTR pthread_attr_default
8050 /* make sure pthread_create() isn't just a stub */
8051 status = pthread_create(&t, ATTR, task, NULL);
8052 if( status ) exit( status );
8054 /* make sure pthread_detach() isn't just a stub */
8055 #if HAVE_PTHREADS_D4
8056 status = pthread_detach( &t );
8058 status = pthread_detach( t );
8061 #ifdef HAVE_LINUX_THREADS
8062 pthread_kill_other_threads_np();
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8071 ol_cv_pthread_thread=yes
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 ol_cv_pthread_thread=no
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 /* pthread test headers */
8084 #include <pthread.h>
8086 #define NULL (void*)0
8089 static void *task(p)
8092 return (void *) (p == NULL);
8096 int main(argc, argv)
8101 /* pthread test function */
8104 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8105 /* This system (e.g. AIX) defaults detached; must override */
8106 pthread_attr_t attr;
8108 status = pthread_attr_init(&attr);
8109 if( status ) exit( status );
8111 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8112 if( status ) exit( status );
8116 #if HAVE_PTHREADS_D4
8117 #define ATTR pthread_attr_default
8122 /* make sure pthread_create() isn't just a stub */
8123 status = pthread_create(&t, ATTR, task, NULL);
8124 if( status ) exit( status );
8126 /* make sure pthread_detach() isn't just a stub */
8127 #if HAVE_PTHREADS_D4
8128 status = pthread_detach( &t );
8130 status = pthread_detach( t );
8133 #ifdef HAVE_LINUX_THREADS
8134 pthread_kill_other_threads_np();
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8144 ol_cv_pthread_thread=yes
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8149 ol_cv_pthread_thread=no
8160 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8162 if test $ol_cv_pthread_thread = yes ; then
8163 ol_link_pthreads="-thread"
8164 ol_link_threads=posix
8169 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8170 if test "$ol_link_threads" = no ; then
8171 # try -lpthread -lmach -lexc -lc_r
8172 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8173 echo "configure:8174: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8174 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8180 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8182 if test "$cross_compiling" = yes; then
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186 /* pthread test headers */
8187 #include <pthread.h>
8189 #define NULL (void*)0
8192 static void *task(p)
8195 return (void *) (p == NULL);
8200 /* pthread test function */
8203 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8204 /* This system (e.g. AIX) defaults detached; must override */
8205 pthread_attr_t attr;
8207 status = pthread_attr_init(&attr);
8208 if( status ) exit( status );
8210 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8211 if( status ) exit( status );
8215 #if HAVE_PTHREADS_D4
8216 #define ATTR pthread_attr_default
8221 /* make sure pthread_create() isn't just a stub */
8222 status = pthread_create(&t, ATTR, task, NULL);
8223 if( status ) exit( status );
8225 /* make sure pthread_detach() isn't just a stub */
8226 #if HAVE_PTHREADS_D4
8227 status = pthread_detach( &t );
8229 status = pthread_detach( t );
8232 #ifdef HAVE_LINUX_THREADS
8233 pthread_kill_other_threads_np();
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8254 /* pthread test headers */
8255 #include <pthread.h>
8257 #define NULL (void*)0
8260 static void *task(p)
8263 return (void *) (p == NULL);
8267 int main(argc, argv)
8272 /* pthread test function */
8275 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8276 /* This system (e.g. AIX) defaults detached; must override */
8277 pthread_attr_t attr;
8279 status = pthread_attr_init(&attr);
8280 if( status ) exit( status );
8282 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8283 if( status ) exit( status );
8287 #if HAVE_PTHREADS_D4
8288 #define ATTR pthread_attr_default
8293 /* make sure pthread_create() isn't just a stub */
8294 status = pthread_create(&t, ATTR, task, NULL);
8295 if( status ) exit( status );
8297 /* make sure pthread_detach() isn't just a stub */
8298 #if HAVE_PTHREADS_D4
8299 status = pthread_detach( &t );
8301 status = pthread_detach( t );
8304 #ifdef HAVE_LINUX_THREADS
8305 pthread_kill_other_threads_np();
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8315 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8331 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8333 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8334 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8335 ol_link_threads=posix
8339 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8340 if test "$ol_link_threads" = no ; then
8341 # try -lpthread -lmach -lexc
8342 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8343 echo "configure:8344: checking for pthread link with -lpthread -lmach -lexc" >&5
8344 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8350 LIBS="-lpthread -lmach -lexc $LIBS"
8352 if test "$cross_compiling" = yes; then
8353 cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8356 /* pthread test headers */
8357 #include <pthread.h>
8359 #define NULL (void*)0
8362 static void *task(p)
8365 return (void *) (p == NULL);
8370 /* pthread test function */
8373 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8374 /* This system (e.g. AIX) defaults detached; must override */
8375 pthread_attr_t attr;
8377 status = pthread_attr_init(&attr);
8378 if( status ) exit( status );
8380 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8381 if( status ) exit( status );
8385 #if HAVE_PTHREADS_D4
8386 #define ATTR pthread_attr_default
8391 /* make sure pthread_create() isn't just a stub */
8392 status = pthread_create(&t, ATTR, task, NULL);
8393 if( status ) exit( status );
8395 /* make sure pthread_detach() isn't just a stub */
8396 #if HAVE_PTHREADS_D4
8397 status = pthread_detach( &t );
8399 status = pthread_detach( t );
8402 #ifdef HAVE_LINUX_THREADS
8403 pthread_kill_other_threads_np();
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 ol_cv_pthread_lpthread_lmach_lexc=yes
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 ol_cv_pthread_lpthread_lmach_lexc=no
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* pthread test headers */
8425 #include <pthread.h>
8427 #define NULL (void*)0
8430 static void *task(p)
8433 return (void *) (p == NULL);
8437 int main(argc, argv)
8442 /* pthread test function */
8445 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8446 /* This system (e.g. AIX) defaults detached; must override */
8447 pthread_attr_t attr;
8449 status = pthread_attr_init(&attr);
8450 if( status ) exit( status );
8452 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8453 if( status ) exit( status );
8457 #if HAVE_PTHREADS_D4
8458 #define ATTR pthread_attr_default
8463 /* make sure pthread_create() isn't just a stub */
8464 status = pthread_create(&t, ATTR, task, NULL);
8465 if( status ) exit( status );
8467 /* make sure pthread_detach() isn't just a stub */
8468 #if HAVE_PTHREADS_D4
8469 status = pthread_detach( &t );
8471 status = pthread_detach( t );
8474 #ifdef HAVE_LINUX_THREADS
8475 pthread_kill_other_threads_np();
8483 if { (eval echo configure:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8485 ol_cv_pthread_lpthread_lmach_lexc=yes
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8490 ol_cv_pthread_lpthread_lmach_lexc=no
8501 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8503 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8504 ol_link_pthreads="-lpthread -lmach -lexc"
8505 ol_link_threads=posix
8510 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8511 if test "$ol_link_threads" = no ; then
8512 # try -lpthread -Wl,-woff,85
8513 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8514 echo "configure:8515: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8515 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8516 echo $ac_n "(cached) $ac_c" 1>&6
8521 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8523 if test "$cross_compiling" = yes; then
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8527 /* pthread test headers */
8528 #include <pthread.h>
8530 #define NULL (void*)0
8533 static void *task(p)
8536 return (void *) (p == NULL);
8541 /* pthread test function */
8544 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8545 /* This system (e.g. AIX) defaults detached; must override */
8546 pthread_attr_t attr;
8548 status = pthread_attr_init(&attr);
8549 if( status ) exit( status );
8551 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8552 if( status ) exit( status );
8556 #if HAVE_PTHREADS_D4
8557 #define ATTR pthread_attr_default
8562 /* make sure pthread_create() isn't just a stub */
8563 status = pthread_create(&t, ATTR, task, NULL);
8564 if( status ) exit( status );
8566 /* make sure pthread_detach() isn't just a stub */
8567 #if HAVE_PTHREADS_D4
8568 status = pthread_detach( &t );
8570 status = pthread_detach( t );
8573 #ifdef HAVE_LINUX_THREADS
8574 pthread_kill_other_threads_np();
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8583 ol_cv_pthread_lib_lpthread_woff=yes
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 ol_cv_pthread_lib_lpthread_woff=no
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 /* pthread test headers */
8596 #include <pthread.h>
8598 #define NULL (void*)0
8601 static void *task(p)
8604 return (void *) (p == NULL);
8608 int main(argc, argv)
8613 /* pthread test function */
8616 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8617 /* This system (e.g. AIX) defaults detached; must override */
8618 pthread_attr_t attr;
8620 status = pthread_attr_init(&attr);
8621 if( status ) exit( status );
8623 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8624 if( status ) exit( status );
8628 #if HAVE_PTHREADS_D4
8629 #define ATTR pthread_attr_default
8634 /* make sure pthread_create() isn't just a stub */
8635 status = pthread_create(&t, ATTR, task, NULL);
8636 if( status ) exit( status );
8638 /* make sure pthread_detach() isn't just a stub */
8639 #if HAVE_PTHREADS_D4
8640 status = pthread_detach( &t );
8642 status = pthread_detach( t );
8645 #ifdef HAVE_LINUX_THREADS
8646 pthread_kill_other_threads_np();
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8656 ol_cv_pthread_lib_lpthread_woff=yes
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8661 ol_cv_pthread_lib_lpthread_woff=no
8672 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8674 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8675 ol_link_pthreads="-lpthread -Wl,-woff,85"
8676 ol_link_threads=posix
8681 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8682 if test "$ol_link_threads" = no ; then
8684 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8685 echo "configure:8686: checking for pthread link with -lpthread" >&5
8686 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8692 LIBS="-lpthread $LIBS"
8694 if test "$cross_compiling" = yes; then
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* pthread test headers */
8699 #include <pthread.h>
8701 #define NULL (void*)0
8704 static void *task(p)
8707 return (void *) (p == NULL);
8712 /* pthread test function */
8715 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8716 /* This system (e.g. AIX) defaults detached; must override */
8717 pthread_attr_t attr;
8719 status = pthread_attr_init(&attr);
8720 if( status ) exit( status );
8722 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8723 if( status ) exit( status );
8727 #if HAVE_PTHREADS_D4
8728 #define ATTR pthread_attr_default
8733 /* make sure pthread_create() isn't just a stub */
8734 status = pthread_create(&t, ATTR, task, NULL);
8735 if( status ) exit( status );
8737 /* make sure pthread_detach() isn't just a stub */
8738 #if HAVE_PTHREADS_D4
8739 status = pthread_detach( &t );
8741 status = pthread_detach( t );
8744 #ifdef HAVE_LINUX_THREADS
8745 pthread_kill_other_threads_np();
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 ol_cv_pthread_lpthread=yes
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 ol_cv_pthread_lpthread=no
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766 /* pthread test headers */
8767 #include <pthread.h>
8769 #define NULL (void*)0
8772 static void *task(p)
8775 return (void *) (p == NULL);
8779 int main(argc, argv)
8784 /* pthread test function */
8787 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8788 /* This system (e.g. AIX) defaults detached; must override */
8789 pthread_attr_t attr;
8791 status = pthread_attr_init(&attr);
8792 if( status ) exit( status );
8794 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8795 if( status ) exit( status );
8799 #if HAVE_PTHREADS_D4
8800 #define ATTR pthread_attr_default
8805 /* make sure pthread_create() isn't just a stub */
8806 status = pthread_create(&t, ATTR, task, NULL);
8807 if( status ) exit( status );
8809 /* make sure pthread_detach() isn't just a stub */
8810 #if HAVE_PTHREADS_D4
8811 status = pthread_detach( &t );
8813 status = pthread_detach( t );
8816 #ifdef HAVE_LINUX_THREADS
8817 pthread_kill_other_threads_np();
8825 if { (eval echo configure:8826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8827 ol_cv_pthread_lpthread=yes
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 ol_cv_pthread_lpthread=no
8843 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8845 if test $ol_cv_pthread_lpthread = yes ; then
8846 ol_link_pthreads="-lpthread"
8847 ol_link_threads=posix
8851 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8852 if test "$ol_link_threads" = no ; then
8854 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8855 echo "configure:8856: checking for pthread link with -lc_r" >&5
8856 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8857 echo $ac_n "(cached) $ac_c" 1>&6
8864 if test "$cross_compiling" = yes; then
8865 cat > conftest.$ac_ext <<EOF
8866 #line 8867 "configure"
8867 #include "confdefs.h"
8868 /* pthread test headers */
8869 #include <pthread.h>
8871 #define NULL (void*)0
8874 static void *task(p)
8877 return (void *) (p == NULL);
8882 /* pthread test function */
8885 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8886 /* This system (e.g. AIX) defaults detached; must override */
8887 pthread_attr_t attr;
8889 status = pthread_attr_init(&attr);
8890 if( status ) exit( status );
8892 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8893 if( status ) exit( status );
8897 #if HAVE_PTHREADS_D4
8898 #define ATTR pthread_attr_default
8903 /* make sure pthread_create() isn't just a stub */
8904 status = pthread_create(&t, ATTR, task, NULL);
8905 if( status ) exit( status );
8907 /* make sure pthread_detach() isn't just a stub */
8908 #if HAVE_PTHREADS_D4
8909 status = pthread_detach( &t );
8911 status = pthread_detach( t );
8914 #ifdef HAVE_LINUX_THREADS
8915 pthread_kill_other_threads_np();
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8924 ol_cv_pthread_lc_r=yes
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8929 ol_cv_pthread_lc_r=no
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 /* pthread test headers */
8937 #include <pthread.h>
8939 #define NULL (void*)0
8942 static void *task(p)
8945 return (void *) (p == NULL);
8949 int main(argc, argv)
8954 /* pthread test function */
8957 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8958 /* This system (e.g. AIX) defaults detached; must override */
8959 pthread_attr_t attr;
8961 status = pthread_attr_init(&attr);
8962 if( status ) exit( status );
8964 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8965 if( status ) exit( status );
8969 #if HAVE_PTHREADS_D4
8970 #define ATTR pthread_attr_default
8975 /* make sure pthread_create() isn't just a stub */
8976 status = pthread_create(&t, ATTR, task, NULL);
8977 if( status ) exit( status );
8979 /* make sure pthread_detach() isn't just a stub */
8980 #if HAVE_PTHREADS_D4
8981 status = pthread_detach( &t );
8983 status = pthread_detach( t );
8986 #ifdef HAVE_LINUX_THREADS
8987 pthread_kill_other_threads_np();
8995 if { (eval echo configure:8996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8997 ol_cv_pthread_lc_r=yes
8999 echo "configure: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9002 ol_cv_pthread_lc_r=no
9013 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9015 if test $ol_cv_pthread_lc_r = yes ; then
9016 ol_link_pthreads="-lc_r"
9017 ol_link_threads=posix
9022 # Pthread try link: -threads (ol_cv_pthread_threads)
9023 if test "$ol_link_threads" = no ; then
9025 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9026 echo "configure:9027: checking for pthread link with -threads" >&5
9027 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9033 LIBS="-threads $LIBS"
9035 if test "$cross_compiling" = yes; then
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 /* pthread test headers */
9040 #include <pthread.h>
9042 #define NULL (void*)0
9045 static void *task(p)
9048 return (void *) (p == NULL);
9053 /* pthread test function */
9056 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9057 /* This system (e.g. AIX) defaults detached; must override */
9058 pthread_attr_t attr;
9060 status = pthread_attr_init(&attr);
9061 if( status ) exit( status );
9063 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9064 if( status ) exit( status );
9068 #if HAVE_PTHREADS_D4
9069 #define ATTR pthread_attr_default
9074 /* make sure pthread_create() isn't just a stub */
9075 status = pthread_create(&t, ATTR, task, NULL);
9076 if( status ) exit( status );
9078 /* make sure pthread_detach() isn't just a stub */
9079 #if HAVE_PTHREADS_D4
9080 status = pthread_detach( &t );
9082 status = pthread_detach( t );
9085 #ifdef HAVE_LINUX_THREADS
9086 pthread_kill_other_threads_np();
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9095 ol_cv_pthread_threads=yes
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 ol_cv_pthread_threads=no
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* pthread test headers */
9108 #include <pthread.h>
9110 #define NULL (void*)0
9113 static void *task(p)
9116 return (void *) (p == NULL);
9120 int main(argc, argv)
9125 /* pthread test function */
9128 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9129 /* This system (e.g. AIX) defaults detached; must override */
9130 pthread_attr_t attr;
9132 status = pthread_attr_init(&attr);
9133 if( status ) exit( status );
9135 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9136 if( status ) exit( status );
9140 #if HAVE_PTHREADS_D4
9141 #define ATTR pthread_attr_default
9146 /* make sure pthread_create() isn't just a stub */
9147 status = pthread_create(&t, ATTR, task, NULL);
9148 if( status ) exit( status );
9150 /* make sure pthread_detach() isn't just a stub */
9151 #if HAVE_PTHREADS_D4
9152 status = pthread_detach( &t );
9154 status = pthread_detach( t );
9157 #ifdef HAVE_LINUX_THREADS
9158 pthread_kill_other_threads_np();
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9168 ol_cv_pthread_threads=yes
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 ol_cv_pthread_threads=no
9184 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9186 if test $ol_cv_pthread_threads = yes ; then
9187 ol_link_pthreads="-threads"
9188 ol_link_threads=posix
9193 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9194 if test "$ol_link_threads" = no ; then
9195 # try -lpthreads -lmach -lexc -lc_r
9196 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9197 echo "configure:9198: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9198 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
9204 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9206 if test "$cross_compiling" = yes; then
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9210 /* pthread test headers */
9211 #include <pthread.h>
9213 #define NULL (void*)0
9216 static void *task(p)
9219 return (void *) (p == NULL);
9224 /* pthread test function */
9227 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9228 /* This system (e.g. AIX) defaults detached; must override */
9229 pthread_attr_t attr;
9231 status = pthread_attr_init(&attr);
9232 if( status ) exit( status );
9234 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9235 if( status ) exit( status );
9239 #if HAVE_PTHREADS_D4
9240 #define ATTR pthread_attr_default
9245 /* make sure pthread_create() isn't just a stub */
9246 status = pthread_create(&t, ATTR, task, NULL);
9247 if( status ) exit( status );
9249 /* make sure pthread_detach() isn't just a stub */
9250 #if HAVE_PTHREADS_D4
9251 status = pthread_detach( &t );
9253 status = pthread_detach( t );
9256 #ifdef HAVE_LINUX_THREADS
9257 pthread_kill_other_threads_np();
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9266 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9271 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9275 cat > conftest.$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9278 /* pthread test headers */
9279 #include <pthread.h>
9281 #define NULL (void*)0
9284 static void *task(p)
9287 return (void *) (p == NULL);
9291 int main(argc, argv)
9296 /* pthread test function */
9299 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9300 /* This system (e.g. AIX) defaults detached; must override */
9301 pthread_attr_t attr;
9303 status = pthread_attr_init(&attr);
9304 if( status ) exit( status );
9306 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9307 if( status ) exit( status );
9311 #if HAVE_PTHREADS_D4
9312 #define ATTR pthread_attr_default
9317 /* make sure pthread_create() isn't just a stub */
9318 status = pthread_create(&t, ATTR, task, NULL);
9319 if( status ) exit( status );
9321 /* make sure pthread_detach() isn't just a stub */
9322 #if HAVE_PTHREADS_D4
9323 status = pthread_detach( &t );
9325 status = pthread_detach( t );
9328 #ifdef HAVE_LINUX_THREADS
9329 pthread_kill_other_threads_np();
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9339 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9355 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9357 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9358 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9359 ol_link_threads=posix
9363 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9364 if test "$ol_link_threads" = no ; then
9365 # try -lpthreads -lmach -lexc
9366 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9367 echo "configure:9368: checking for pthread link with -lpthreads -lmach -lexc" >&5
9368 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9374 LIBS="-lpthreads -lmach -lexc $LIBS"
9376 if test "$cross_compiling" = yes; then
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 /* pthread test headers */
9381 #include <pthread.h>
9383 #define NULL (void*)0
9386 static void *task(p)
9389 return (void *) (p == NULL);
9394 /* pthread test function */
9397 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9398 /* This system (e.g. AIX) defaults detached; must override */
9399 pthread_attr_t attr;
9401 status = pthread_attr_init(&attr);
9402 if( status ) exit( status );
9404 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9405 if( status ) exit( status );
9409 #if HAVE_PTHREADS_D4
9410 #define ATTR pthread_attr_default
9415 /* make sure pthread_create() isn't just a stub */
9416 status = pthread_create(&t, ATTR, task, NULL);
9417 if( status ) exit( status );
9419 /* make sure pthread_detach() isn't just a stub */
9420 #if HAVE_PTHREADS_D4
9421 status = pthread_detach( &t );
9423 status = pthread_detach( t );
9426 #ifdef HAVE_LINUX_THREADS
9427 pthread_kill_other_threads_np();
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9436 ol_cv_pthread_lpthreads_lmach_lexc=yes
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 ol_cv_pthread_lpthreads_lmach_lexc=no
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 /* pthread test headers */
9449 #include <pthread.h>
9451 #define NULL (void*)0
9454 static void *task(p)
9457 return (void *) (p == NULL);
9461 int main(argc, argv)
9466 /* pthread test function */
9469 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9470 /* This system (e.g. AIX) defaults detached; must override */
9471 pthread_attr_t attr;
9473 status = pthread_attr_init(&attr);
9474 if( status ) exit( status );
9476 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9477 if( status ) exit( status );
9481 #if HAVE_PTHREADS_D4
9482 #define ATTR pthread_attr_default
9487 /* make sure pthread_create() isn't just a stub */
9488 status = pthread_create(&t, ATTR, task, NULL);
9489 if( status ) exit( status );
9491 /* make sure pthread_detach() isn't just a stub */
9492 #if HAVE_PTHREADS_D4
9493 status = pthread_detach( &t );
9495 status = pthread_detach( t );
9498 #ifdef HAVE_LINUX_THREADS
9499 pthread_kill_other_threads_np();
9507 if { (eval echo configure:9508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9509 ol_cv_pthread_lpthreads_lmach_lexc=yes
9511 echo "configure: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9514 ol_cv_pthread_lpthreads_lmach_lexc=no
9525 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9527 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9528 ol_link_pthreads="-lpthreads -lmach -lexc"
9529 ol_link_threads=posix
9533 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9534 if test "$ol_link_threads" = no ; then
9535 # try -lpthreads -lexc
9536 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9537 echo "configure:9538: checking for pthread link with -lpthreads -lexc" >&5
9538 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9544 LIBS="-lpthreads -lexc $LIBS"
9546 if test "$cross_compiling" = yes; then
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 /* pthread test headers */
9551 #include <pthread.h>
9553 #define NULL (void*)0
9556 static void *task(p)
9559 return (void *) (p == NULL);
9564 /* pthread test function */
9567 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9568 /* This system (e.g. AIX) defaults detached; must override */
9569 pthread_attr_t attr;
9571 status = pthread_attr_init(&attr);
9572 if( status ) exit( status );
9574 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9575 if( status ) exit( status );
9579 #if HAVE_PTHREADS_D4
9580 #define ATTR pthread_attr_default
9585 /* make sure pthread_create() isn't just a stub */
9586 status = pthread_create(&t, ATTR, task, NULL);
9587 if( status ) exit( status );
9589 /* make sure pthread_detach() isn't just a stub */
9590 #if HAVE_PTHREADS_D4
9591 status = pthread_detach( &t );
9593 status = pthread_detach( t );
9596 #ifdef HAVE_LINUX_THREADS
9597 pthread_kill_other_threads_np();
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9606 ol_cv_pthread_lpthreads_lexc=yes
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9611 ol_cv_pthread_lpthreads_lexc=no
9615 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure"
9617 #include "confdefs.h"
9618 /* pthread test headers */
9619 #include <pthread.h>
9621 #define NULL (void*)0
9624 static void *task(p)
9627 return (void *) (p == NULL);
9631 int main(argc, argv)
9636 /* pthread test function */
9639 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9640 /* This system (e.g. AIX) defaults detached; must override */
9641 pthread_attr_t attr;
9643 status = pthread_attr_init(&attr);
9644 if( status ) exit( status );
9646 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9647 if( status ) exit( status );
9651 #if HAVE_PTHREADS_D4
9652 #define ATTR pthread_attr_default
9657 /* make sure pthread_create() isn't just a stub */
9658 status = pthread_create(&t, ATTR, task, NULL);
9659 if( status ) exit( status );
9661 /* make sure pthread_detach() isn't just a stub */
9662 #if HAVE_PTHREADS_D4
9663 status = pthread_detach( &t );
9665 status = pthread_detach( t );
9668 #ifdef HAVE_LINUX_THREADS
9669 pthread_kill_other_threads_np();
9677 if { (eval echo configure:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9679 ol_cv_pthread_lpthreads_lexc=yes
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9684 ol_cv_pthread_lpthreads_lexc=no
9695 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9697 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9698 ol_link_pthreads="-lpthreads -lexc"
9699 ol_link_threads=posix
9704 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9705 if test "$ol_link_threads" = no ; then
9707 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9708 echo "configure:9709: checking for pthread link with -lpthreads" >&5
9709 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9715 LIBS="-lpthreads $LIBS"
9717 if test "$cross_compiling" = yes; then
9718 cat > conftest.$ac_ext <<EOF
9719 #line 9720 "configure"
9720 #include "confdefs.h"
9721 /* pthread test headers */
9722 #include <pthread.h>
9724 #define NULL (void*)0
9727 static void *task(p)
9730 return (void *) (p == NULL);
9735 /* pthread test function */
9738 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9739 /* This system (e.g. AIX) defaults detached; must override */
9740 pthread_attr_t attr;
9742 status = pthread_attr_init(&attr);
9743 if( status ) exit( status );
9745 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9746 if( status ) exit( status );
9750 #if HAVE_PTHREADS_D4
9751 #define ATTR pthread_attr_default
9756 /* make sure pthread_create() isn't just a stub */
9757 status = pthread_create(&t, ATTR, task, NULL);
9758 if( status ) exit( status );
9760 /* make sure pthread_detach() isn't just a stub */
9761 #if HAVE_PTHREADS_D4
9762 status = pthread_detach( &t );
9764 status = pthread_detach( t );
9767 #ifdef HAVE_LINUX_THREADS
9768 pthread_kill_other_threads_np();
9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9777 ol_cv_pthread_lib_lpthreads=yes
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9782 ol_cv_pthread_lib_lpthreads=no
9786 cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure"
9788 #include "confdefs.h"
9789 /* pthread test headers */
9790 #include <pthread.h>
9792 #define NULL (void*)0
9795 static void *task(p)
9798 return (void *) (p == NULL);
9802 int main(argc, argv)
9807 /* pthread test function */
9810 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9811 /* This system (e.g. AIX) defaults detached; must override */
9812 pthread_attr_t attr;
9814 status = pthread_attr_init(&attr);
9815 if( status ) exit( status );
9817 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9818 if( status ) exit( status );
9822 #if HAVE_PTHREADS_D4
9823 #define ATTR pthread_attr_default
9828 /* make sure pthread_create() isn't just a stub */
9829 status = pthread_create(&t, ATTR, task, NULL);
9830 if( status ) exit( status );
9832 /* make sure pthread_detach() isn't just a stub */
9833 #if HAVE_PTHREADS_D4
9834 status = pthread_detach( &t );
9836 status = pthread_detach( t );
9839 #ifdef HAVE_LINUX_THREADS
9840 pthread_kill_other_threads_np();
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9850 ol_cv_pthread_lib_lpthreads=yes
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9855 ol_cv_pthread_lib_lpthreads=no
9866 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9868 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9869 ol_link_pthreads="-lpthreads"
9870 ol_link_threads=posix
9875 if test $ol_link_threads != no ; then
9876 cat >> confdefs.h <<\EOF
9877 #define HAVE_PTHREADS 1
9881 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9883 save_CPPFLAGS="$CPPFLAGS"
9885 LIBS="$LTHREAD_LIBS $LIBS"
9887 for ac_func in sched_yield pthread_yield
9889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9890 echo "configure:9891: checking for $ac_func" >&5
9891 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9892 echo $ac_n "(cached) $ac_c" 1>&6
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func(); below. */
9900 /* Override any gcc2 internal prototype to avoid an error. */
9901 /* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9908 /* The GNU C library defines this for functions which it implements
9909 to always fail with ENOSYS. Some functions are actually named
9910 something starting with __ and the normal name is an alias. */
9911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9921 eval "ac_cv_func_$ac_func=yes"
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 eval "ac_cv_func_$ac_func=no"
9931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9932 echo "$ac_t""yes" 1>&6
9933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9934 cat >> confdefs.h <<EOF
9935 #define $ac_tr_func 1
9939 echo "$ac_t""no" 1>&6
9944 if test $ac_cv_func_sched_yield = no -a \
9945 $ac_cv_func_pthread_yield = no ; then
9946 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9947 echo "configure:9948: checking for sched_yield in -lrt" >&5
9948 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9949 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9952 ac_save_LIBS="$LIBS"
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9966 if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9968 eval "ac_cv_lib_$ac_lib_var=yes"
9970 echo "configure: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9973 eval "ac_cv_lib_$ac_lib_var=no"
9976 LIBS="$ac_save_LIBS"
9979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9981 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9982 cat >> confdefs.h <<\EOF
9983 #define HAVE_SCHED_YIELD 1
9986 ac_cv_func_sched_yield=yes
9988 echo "$ac_t""no" 1>&6
9989 ac_cv_func_sched_yield=no
9993 if test $ac_cv_func_sched_yield = no -a \
9994 $ac_cv_func_pthread_yield = no ; then
9995 for ac_func in thr_yield
9997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9998 echo "configure:9999: checking for $ac_func" >&5
9999 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10000 echo $ac_n "(cached) $ac_c" 1>&6
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char $ac_func(); below. */
10007 #include <assert.h>
10008 /* Override any gcc2 internal prototype to avoid an error. */
10009 /* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10016 /* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10027 if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10029 eval "ac_cv_func_$ac_func=yes"
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 eval "ac_cv_func_$ac_func=no"
10039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10040 echo "$ac_t""yes" 1>&6
10041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10042 cat >> confdefs.h <<EOF
10043 #define $ac_tr_func 1
10047 echo "$ac_t""no" 1>&6
10052 if test $ac_cv_func_sched_yield = no -a \
10053 $ac_cv_func_pthread_yield = no -a \
10054 "$ac_cv_func_thr_yield" = no ; then
10055 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10058 for ac_func in pthread_kill pthread_rwlock_destroy
10060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10061 echo "configure:10062: checking for $ac_func" >&5
10062 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10065 cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func(); below. */
10070 #include <assert.h>
10071 /* Override any gcc2 internal prototype to avoid an error. */
10072 /* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10079 /* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
10082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10090 if { (eval echo configure:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10092 eval "ac_cv_func_$ac_func=yes"
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10097 eval "ac_cv_func_$ac_func=no"
10102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10105 cat >> confdefs.h <<EOF
10106 #define $ac_tr_func 1
10110 echo "$ac_t""no" 1>&6
10115 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10116 echo "configure:10117: checking for pthread_detach with <pthread.h>" >&5
10117 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10125 #include <pthread.h>
10127 #define NULL (void*)0
10131 pthread_detach(NULL);
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10136 ol_cv_func_pthread_detach=yes
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10141 ol_cv_func_pthread_detach=no
10147 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10149 if test $ol_cv_func_pthread_detach = no ; then
10150 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_PTHREAD_DETACH 1
10159 pthread_setconcurrency \
10160 pthread_getconcurrency \
10161 thr_setconcurrency \
10162 thr_getconcurrency \
10165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10166 echo "configure:10167: checking for $ac_func" >&5
10167 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10170 cat > conftest.$ac_ext <<EOF
10171 #line 10172 "configure"
10172 #include "confdefs.h"
10173 /* System header to define __stub macros and hopefully few prototypes,
10174 which can conflict with char $ac_func(); below. */
10175 #include <assert.h>
10176 /* Override any gcc2 internal prototype to avoid an error. */
10177 /* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
10184 /* The GNU C library defines this for functions which it implements
10185 to always fail with ENOSYS. Some functions are actually named
10186 something starting with __ and the normal name is an alias. */
10187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10197 eval "ac_cv_func_$ac_func=yes"
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10202 eval "ac_cv_func_$ac_func=no"
10207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10208 echo "$ac_t""yes" 1>&6
10209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10210 cat >> confdefs.h <<EOF
10211 #define $ac_tr_func 1
10215 echo "$ac_t""no" 1>&6
10221 for ac_func in pthread_kill_other_threads_np
10223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10224 echo "configure:10225: checking for $ac_func" >&5
10225 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char $ac_func(); below. */
10233 #include <assert.h>
10234 /* Override any gcc2 internal prototype to avoid an error. */
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10242 /* The GNU C library defines this for functions which it implements
10243 to always fail with ENOSYS. Some functions are actually named
10244 something starting with __ and the normal name is an alias. */
10245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10253 if { (eval echo configure:10254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10255 eval "ac_cv_func_$ac_func=yes"
10257 echo "configure: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10260 eval "ac_cv_func_$ac_func=no"
10265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10266 echo "$ac_t""yes" 1>&6
10267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10268 cat >> confdefs.h <<EOF
10269 #define $ac_tr_func 1
10273 echo "$ac_t""no" 1>&6
10277 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10278 echo "configure:10279: checking for LinuxThreads implementation" >&5
10279 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10282 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10285 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10290 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10291 echo "configure:10292: checking for LinuxThreads consistency" >&5
10292 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10293 echo $ac_n "(cached) $ac_c" 1>&6
10296 if test $ol_cv_header_linux_threads = yes -a \
10297 $ol_cv_sys_linux_threads = yes; then
10298 ol_cv_linux_threads=yes
10299 elif test $ol_cv_header_linux_threads = no -a \
10300 $ol_cv_sys_linux_threads = no; then
10301 ol_cv_linux_threads=no
10303 ol_cv_linux_threads=error
10308 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10311 if test $ol_cv_linux_threads = error; then
10312 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10315 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10316 echo "configure:10317: checking if pthread_create() works" >&5
10317 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10321 if test "$cross_compiling" = yes; then
10322 ol_cv_pthread_create_works=yes
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 /* pthread test headers */
10328 #include <pthread.h>
10330 #define NULL (void*)0
10333 static void *task(p)
10336 return (void *) (p == NULL);
10340 int main(argc, argv)
10345 /* pthread test function */
10348 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10349 /* This system (e.g. AIX) defaults detached; must override */
10350 pthread_attr_t attr;
10352 status = pthread_attr_init(&attr);
10353 if( status ) exit( status );
10355 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10356 if( status ) exit( status );
10360 #if HAVE_PTHREADS_D4
10361 #define ATTR pthread_attr_default
10366 /* make sure pthread_create() isn't just a stub */
10367 status = pthread_create(&t, ATTR, task, NULL);
10368 if( status ) exit( status );
10370 /* make sure pthread_detach() isn't just a stub */
10371 #if HAVE_PTHREADS_D4
10372 status = pthread_detach( &t );
10374 status = pthread_detach( t );
10377 #ifdef HAVE_LINUX_THREADS
10378 pthread_kill_other_threads_np();
10386 if { (eval echo configure:10387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10388 ol_cv_pthread_create_works=yes
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10393 ol_cv_pthread_create_works=no
10400 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10402 if test $ol_cv_pthread_create_works = no ; then
10403 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10406 if test $ol_with_yielding_select = auto ; then
10407 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10408 echo "configure:10409: checking if select yields when using pthreads" >&5
10409 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 if test "$cross_compiling" = yes; then
10414 ol_cv_pthread_select_yields=cross
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10420 #include <sys/types.h>
10421 #include <sys/time.h>
10422 #include <unistd.h>
10423 #include <pthread.h>
10425 #define NULL (void*) 0
10428 static int fildes[2];
10430 static void *task(p)
10442 FD_SET(fildes[0], &rfds);
10444 /* we're not interested in any fds */
10445 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10452 exit(0); /* if we exit here, the select blocked the whole process */
10455 int main(argc, argv)
10461 /* create a pipe to select */
10462 if(pipe(&fildes[0])) {
10467 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10468 (void) pthread_setconcurrency(2);
10470 #ifdef HAVE_THR_SETCONCURRENCY
10471 /* Set Solaris LWP concurrency to 2 */
10472 thr_setconcurrency(2);
10476 #if HAVE_PTHREADS_D4
10477 pthread_create(&t, pthread_attr_default, task, NULL);
10479 pthread_create(&t, NULL, task, NULL);
10482 #if HAVE_SCHED_YIELD
10483 sched_yield(); /* make sure task runs first */
10485 #ifdef HAVE_PTHREAD_YIELD
10486 pthread_yield(); /* make sure task runs first */
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10495 ol_cv_pthread_select_yields=no
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10500 ol_cv_pthread_select_yields=yes
10507 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10509 if test $ol_cv_pthread_select_yields = cross ; then
10510 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10513 if test $ol_cv_pthread_select_yields = yes ; then
10514 ol_with_yielding_select=yes
10518 CPPFLAGS="$save_CPPFLAGS"
10521 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10525 if test $ol_with_threads = posix ; then
10526 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10530 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10531 -o $ol_with_threads = mach ; then
10533 for ac_hdr in mach/cthreads.h
10535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10537 echo "configure:10538: checking for $ac_hdr" >&5
10538 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10539 echo $ac_n "(cached) $ac_c" 1>&6
10541 cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure"
10543 #include "confdefs.h"
10546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10547 { (eval echo configure:10548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10549 if test -z "$ac_err"; then
10551 eval "ac_cv_header_$ac_safe=yes"
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10557 eval "ac_cv_header_$ac_safe=no"
10561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10562 echo "$ac_t""yes" 1>&6
10563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10564 cat >> confdefs.h <<EOF
10565 #define $ac_tr_hdr 1
10569 echo "$ac_t""no" 1>&6
10573 if test $ac_cv_header_mach_cthreads_h = yes ; then
10574 ol_with_threads=found
10576 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10577 echo "configure:10578: checking for cthread_fork" >&5
10578 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10584 /* System header to define __stub macros and hopefully few prototypes,
10585 which can conflict with char cthread_fork(); below. */
10586 #include <assert.h>
10587 /* Override any gcc2 internal prototype to avoid an error. */
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590 char cthread_fork();
10595 /* The GNU C library defines this for functions which it implements
10596 to always fail with ENOSYS. Some functions are actually named
10597 something starting with __ and the normal name is an alias. */
10598 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10608 eval "ac_cv_func_cthread_fork=yes"
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10613 eval "ac_cv_func_cthread_fork=no"
10618 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10619 echo "$ac_t""yes" 1>&6
10620 ol_link_threads=yes
10622 echo "$ac_t""no" 1>&6
10626 if test $ol_link_threads = no ; then
10627 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10628 echo "configure:10629: checking for cthread_fork with -all_load" >&5
10629 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10630 echo $ac_n "(cached) $ac_c" 1>&6
10634 LIBS="-all_load $LIBS"
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10637 "configure"
10637 #include "confdefs.h"
10638 #include <mach/cthreads.h>
10641 cthread_fork((void *)0, (void *)0);
10645 if { (eval echo configure:10646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10647 ol_cv_cthread_all_load=yes
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10652 ol_cv_cthread_all_load=no
10659 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10661 if test $ol_cv_cthread_all_load = yes ; then
10662 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10663 ol_link_threads=mach
10667 if test $ol_link_threads != no ; then
10668 : check for cthread specific functionality here
10669 cat >> confdefs.h <<\EOF
10670 #define HAVE_MACH_CTHREADS 1
10674 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10678 if test $ol_with_threads = mach ; then
10679 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10683 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10684 -o $ol_with_threads = pth ; then
10686 for ac_hdr in pth.h
10688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10690 echo "configure:10691: checking for $ac_hdr" >&5
10691 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10700 { (eval echo configure:10701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10702 if test -z "$ac_err"; then
10704 eval "ac_cv_header_$ac_safe=yes"
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10710 eval "ac_cv_header_$ac_safe=no"
10714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10715 echo "$ac_t""yes" 1>&6
10716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10717 cat >> confdefs.h <<EOF
10718 #define $ac_tr_hdr 1
10722 echo "$ac_t""no" 1>&6
10727 if test $ac_cv_header_pth_h = yes ; then
10728 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10729 echo "configure:10730: checking for pth_version in -lpth" >&5
10730 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10732 echo $ac_n "(cached) $ac_c" 1>&6
10734 ac_save_LIBS="$LIBS"
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10739 /* Override any gcc2 internal prototype to avoid an error. */
10740 /* We use char because int might match the return type of a gcc2
10741 builtin and then its argument prototype would still apply. */
10742 char pth_version();
10748 if { (eval echo configure:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10750 eval "ac_cv_lib_$ac_lib_var=yes"
10752 echo "configure: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10755 eval "ac_cv_lib_$ac_lib_var=no"
10758 LIBS="$ac_save_LIBS"
10761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10762 echo "$ac_t""yes" 1>&6
10765 echo "$ac_t""no" 1>&6
10770 if test $have_pth = yes ; then
10771 cat >> confdefs.h <<\EOF
10772 #define HAVE_GNU_PTH 1
10775 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10776 ol_link_threads=pth
10778 if test $ol_with_yielding_select = auto ; then
10779 ol_with_yielding_select=yes
10785 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10786 -o $ol_with_threads = lwp ; then
10788 for ac_hdr in thread.h synch.h
10790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10792 echo "configure:10793: checking for $ac_hdr" >&5
10793 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10796 cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure"
10798 #include "confdefs.h"
10801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10802 { (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10804 if test -z "$ac_err"; then
10806 eval "ac_cv_header_$ac_safe=yes"
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10812 eval "ac_cv_header_$ac_safe=no"
10816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10817 echo "$ac_t""yes" 1>&6
10818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10819 cat >> confdefs.h <<EOF
10820 #define $ac_tr_hdr 1
10824 echo "$ac_t""no" 1>&6
10828 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10829 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10830 echo "configure:10831: checking for thr_create in -lthread" >&5
10831 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10832 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10833 echo $ac_n "(cached) $ac_c" 1>&6
10835 ac_save_LIBS="$LIBS"
10836 LIBS="-lthread $LIBS"
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure"
10839 #include "confdefs.h"
10840 /* Override any gcc2 internal prototype to avoid an error. */
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10851 eval "ac_cv_lib_$ac_lib_var=yes"
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10856 eval "ac_cv_lib_$ac_lib_var=no"
10859 LIBS="$ac_save_LIBS"
10862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10863 echo "$ac_t""yes" 1>&6
10866 echo "$ac_t""no" 1>&6
10871 if test $have_thr = yes ; then
10872 cat >> confdefs.h <<\EOF
10876 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10877 ol_link_threads=thr
10879 if test $ol_with_yielding_select = auto ; then
10880 ol_with_yielding_select=yes
10884 thr_setconcurrency \
10885 thr_getconcurrency \
10888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10889 echo "configure:10890: checking for $ac_func" >&5
10890 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10891 echo $ac_n "(cached) $ac_c" 1>&6
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 /* System header to define __stub macros and hopefully few prototypes,
10897 which can conflict with char $ac_func(); below. */
10898 #include <assert.h>
10899 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10907 /* The GNU C library defines this for functions which it implements
10908 to always fail with ENOSYS. Some functions are actually named
10909 something starting with __ and the normal name is an alias. */
10910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 if { (eval echo configure:10919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10920 eval "ac_cv_func_$ac_func=yes"
10922 echo "configure: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10925 eval "ac_cv_func_$ac_func=no"
10930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10931 echo "$ac_t""yes" 1>&6
10932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10933 cat >> confdefs.h <<EOF
10934 #define $ac_tr_func 1
10938 echo "$ac_t""no" 1>&6
10945 for ac_hdr in lwp/lwp.h
10947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10949 echo "configure:10950: checking for $ac_hdr" >&5
10950 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10951 echo $ac_n "(cached) $ac_c" 1>&6
10953 cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10959 { (eval echo configure:10960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10961 if test -z "$ac_err"; then
10963 eval "ac_cv_header_$ac_safe=yes"
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10969 eval "ac_cv_header_$ac_safe=no"
10973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10976 cat >> confdefs.h <<EOF
10977 #define $ac_tr_hdr 1
10981 echo "$ac_t""no" 1>&6
10985 if test $ac_cv_header_lwp_lwp_h = yes ; then
10986 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10987 echo "configure:10988: checking for lwp_create in -llwp" >&5
10988 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10992 ac_save_LIBS="$LIBS"
10994 cat > conftest.$ac_ext <<EOF
10995 #line 10996 "configure"
10996 #include "confdefs.h"
10997 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11006 if { (eval echo configure:11007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11008 eval "ac_cv_lib_$ac_lib_var=yes"
11010 echo "configure: failed program was:" >&5
11011 cat conftest.$ac_ext >&5
11013 eval "ac_cv_lib_$ac_lib_var=no"
11016 LIBS="$ac_save_LIBS"
11019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11020 echo "$ac_t""yes" 1>&6
11023 echo "$ac_t""no" 1>&6
11028 if test $have_lwp = yes ; then
11029 cat >> confdefs.h <<\EOF
11033 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11034 ol_link_threads=lwp
11036 if test $ol_with_yielding_select = auto ; then
11037 ol_with_yielding_select=no
11043 if test $ol_with_yielding_select = yes ; then
11044 cat >> confdefs.h <<\EOF
11045 #define HAVE_YIELDING_SELECT 1
11050 if test $ol_with_threads = manual ; then
11051 ol_link_threads=yes
11053 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11055 for ac_hdr in pthread.h sched.h
11057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11059 echo "configure:11060: checking for $ac_hdr" >&5
11060 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11061 echo $ac_n "(cached) $ac_c" 1>&6
11063 cat > conftest.$ac_ext <<EOF
11064 #line 11065 "configure"
11065 #include "confdefs.h"
11068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11069 { (eval echo configure:11070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11071 if test -z "$ac_err"; then
11073 eval "ac_cv_header_$ac_safe=yes"
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11079 eval "ac_cv_header_$ac_safe=no"
11083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11084 echo "$ac_t""yes" 1>&6
11085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11086 cat >> confdefs.h <<EOF
11087 #define $ac_tr_hdr 1
11091 echo "$ac_t""no" 1>&6
11095 for ac_func in sched_yield pthread_yield
11097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11098 echo "configure:11099: checking for $ac_func" >&5
11099 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11102 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11105 /* System header to define __stub macros and hopefully few prototypes,
11106 which can conflict with char $ac_func(); below. */
11107 #include <assert.h>
11108 /* Override any gcc2 internal prototype to avoid an error. */
11109 /* We use char because int might match the return type of a gcc2
11110 builtin and then its argument prototype would still apply. */
11116 /* The GNU C library defines this for functions which it implements
11117 to always fail with ENOSYS. Some functions are actually named
11118 something starting with __ and the normal name is an alias. */
11119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11127 if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11129 eval "ac_cv_func_$ac_func=yes"
11131 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11134 eval "ac_cv_func_$ac_func=no"
11139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11142 cat >> confdefs.h <<EOF
11143 #define $ac_tr_func 1
11147 echo "$ac_t""no" 1>&6
11152 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11153 echo "configure:11154: checking for LinuxThreads pthread.h" >&5
11154 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11155 echo $ac_n "(cached) $ac_c" 1>&6
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 #include <pthread.h>
11162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11163 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11165 ol_cv_header_linux_threads=yes
11168 ol_cv_header_linux_threads=no
11175 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11176 if test $ol_cv_header_linux_threads = yes; then
11177 cat >> confdefs.h <<\EOF
11178 #define HAVE_LINUX_THREADS 1
11184 for ac_hdr in mach/cthreads.h
11186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11188 echo "configure:11189: checking for $ac_hdr" >&5
11189 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11198 { (eval echo configure:11199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11200 if test -z "$ac_err"; then
11202 eval "ac_cv_header_$ac_safe=yes"
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 eval "ac_cv_header_$ac_safe=no"
11212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11213 echo "$ac_t""yes" 1>&6
11214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11215 cat >> confdefs.h <<EOF
11216 #define $ac_tr_hdr 1
11220 echo "$ac_t""no" 1>&6
11224 for ac_hdr in lwp/lwp.h
11226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11228 echo "configure:11229: checking for $ac_hdr" >&5
11229 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11230 echo $ac_n "(cached) $ac_c" 1>&6
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11238 { (eval echo configure:11239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11240 if test -z "$ac_err"; then
11242 eval "ac_cv_header_$ac_safe=yes"
11245 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 eval "ac_cv_header_$ac_safe=no"
11252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11253 echo "$ac_t""yes" 1>&6
11254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11255 cat >> confdefs.h <<EOF
11256 #define $ac_tr_hdr 1
11260 echo "$ac_t""no" 1>&6
11264 for ac_hdr in thread.h synch.h
11266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11268 echo "configure:11269: checking for $ac_hdr" >&5
11269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11278 { (eval echo configure:11279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11280 if test -z "$ac_err"; then
11282 eval "ac_cv_header_$ac_safe=yes"
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11288 eval "ac_cv_header_$ac_safe=no"
11292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11295 cat >> confdefs.h <<EOF
11296 #define $ac_tr_hdr 1
11300 echo "$ac_t""no" 1>&6
11306 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11307 cat >> confdefs.h <<\EOF
11308 #define REENTRANT 1
11311 cat >> confdefs.h <<\EOF
11312 #define _REENTRANT 1
11315 cat >> confdefs.h <<\EOF
11316 #define THREAD_SAFE 1
11319 cat >> confdefs.h <<\EOF
11320 #define _THREAD_SAFE 1
11323 cat >> confdefs.h <<\EOF
11324 #define THREADSAFE 1
11327 cat >> confdefs.h <<\EOF
11328 #define _THREADSAFE 1
11331 cat >> confdefs.h <<\EOF
11332 #define _SGI_MP_SOURCE 1
11336 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11337 echo "configure:11338: checking for thread specific errno" >&5
11338 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11352 ol_cv_errno_thread_specific=yes
11354 echo "configure: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11357 ol_cv_errno_thread_specific=no
11363 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11365 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11366 echo "configure:11367: checking for thread specific h_errno" >&5
11367 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11379 if { (eval echo configure:11380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11381 ol_cv_h_errno_thread_specific=yes
11383 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11386 ol_cv_h_errno_thread_specific=no
11392 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11394 if test $ol_cv_errno_thread_specific != yes \
11395 -o $ol_cv_h_errno_thread_specific != yes ; then
11396 LIBS="$LTHREAD_LIBS $LIBS"
11402 if test $ol_link_threads = no ; then
11403 if test $ol_with_threads = yes ; then
11404 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11407 if test $ol_with_threads = auto ; then
11408 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11412 cat >> confdefs.h <<\EOF
11413 #define NO_THREADS 1
11419 if test $ol_link_threads != no ; then
11420 cat >> confdefs.h <<\EOF
11421 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11428 if test $ol_with_ldbm_api = auto \
11429 -o $ol_with_ldbm_api = berkeley \
11430 -o $ol_with_ldbm_api = bcompat ; then
11432 if test $ol_with_ldbm_api = bcompat; then \
11433 ol_cv_berkeley_db=no
11434 for ac_hdr in db_185.h db.h
11436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11438 echo "configure:11439: checking for $ac_hdr" >&5
11439 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11440 echo $ac_n "(cached) $ac_c" 1>&6
11442 cat > conftest.$ac_ext <<EOF
11443 #line 11444 "configure"
11444 #include "confdefs.h"
11447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11448 { (eval echo configure:11449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11450 if test -z "$ac_err"; then
11452 eval "ac_cv_header_$ac_safe=yes"
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11458 eval "ac_cv_header_$ac_safe=no"
11462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11463 echo "$ac_t""yes" 1>&6
11464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11465 cat >> confdefs.h <<EOF
11466 #define $ac_tr_hdr 1
11470 echo "$ac_t""no" 1>&6
11474 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11475 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11476 echo "configure:11477: checking if Berkeley DB header compatibility" >&5
11477 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11478 echo $ac_n "(cached) $ac_c" 1>&6
11481 cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure"
11483 #include "confdefs.h"
11486 # include <db_185.h>
11491 /* this check could be improved */
11492 #ifndef DB_VERSION_MAJOR
11493 # define DB_VERSION_MAJOR 1
11496 #if DB_VERSION_MAJOR == 1
11501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11502 egrep "__db_version_1" >/dev/null 2>&1; then
11504 ol_cv_header_db1=yes
11507 ol_cv_header_db1=no
11513 echo "$ac_t""$ol_cv_header_db1" 1>&6
11515 if test ol_cv_header_db1=yes ; then
11517 if test $ol_cv_lib_db = no ; then
11518 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11519 echo "configure:11520: checking for Berkeley DB link (default)" >&5
11520 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11526 LIBS="$ol_DB_LIB $LIBS"
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11532 #ifdef HAVE_DB_185_H
11533 # include <db_185.h>
11538 #ifndef DB_VERSION_MAJOR
11539 # define DB_VERSION_MAJOR 1
11543 #define NULL ((void*)0)
11548 #if DB_VERSION_MAJOR > 2
11549 db_env_create( NULL, 0 );
11550 #elif DB_VERSION_MAJOR > 1
11551 db_appexit( NULL );
11553 (void) dbopen( NULL, 0, 0, 0, NULL);
11558 if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11573 echo "$ac_t""$ol_cv_db_none" 1>&6
11575 if test $ol_cv_db_none = yes ; then
11580 if test $ol_cv_lib_db = no ; then
11581 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11582 echo "configure:11583: checking for Berkeley DB link (-ldb)" >&5
11583 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11589 LIBS="$ol_DB_LIB $LIBS"
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11595 #ifdef HAVE_DB_185_H
11596 # include <db_185.h>
11601 #ifndef DB_VERSION_MAJOR
11602 # define DB_VERSION_MAJOR 1
11606 #define NULL ((void*)0)
11611 #if DB_VERSION_MAJOR > 2
11612 db_env_create( NULL, 0 );
11613 #elif DB_VERSION_MAJOR > 1
11614 db_appexit( NULL );
11616 (void) dbopen( NULL, 0, 0, 0, NULL);
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11636 echo "$ac_t""$ol_cv_db_db" 1>&6
11638 if test $ol_cv_db_db = yes ; then
11643 if test $ol_cv_lib_db = no ; then
11644 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11645 echo "configure:11646: checking for Berkeley DB link (-ldb3)" >&5
11646 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11652 LIBS="$ol_DB_LIB $LIBS"
11654 cat > conftest.$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11658 #ifdef HAVE_DB_185_H
11659 # include <db_185.h>
11664 #ifndef DB_VERSION_MAJOR
11665 # define DB_VERSION_MAJOR 1
11669 #define NULL ((void*)0)
11674 #if DB_VERSION_MAJOR > 2
11675 db_env_create( NULL, 0 );
11676 #elif DB_VERSION_MAJOR > 1
11677 db_appexit( NULL );
11679 (void) dbopen( NULL, 0, 0, 0, NULL);
11684 if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11699 echo "$ac_t""$ol_cv_db_db3" 1>&6
11701 if test $ol_cv_db_db3 = yes ; then
11706 if test $ol_cv_lib_db = no ; then
11707 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11708 echo "configure:11709: checking for Berkeley DB link (-ldb2)" >&5
11709 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11715 LIBS="$ol_DB_LIB $LIBS"
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11721 #ifdef HAVE_DB_185_H
11722 # include <db_185.h>
11727 #ifndef DB_VERSION_MAJOR
11728 # define DB_VERSION_MAJOR 1
11732 #define NULL ((void*)0)
11737 #if DB_VERSION_MAJOR > 2
11738 db_env_create( NULL, 0 );
11739 #elif DB_VERSION_MAJOR > 1
11740 db_appexit( NULL );
11742 (void) dbopen( NULL, 0, 0, 0, NULL);
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11762 echo "$ac_t""$ol_cv_db_db2" 1>&6
11764 if test $ol_cv_db_db2 = yes ; then
11769 if test $ol_cv_lib_db = no ; then
11770 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11771 echo "configure:11772: checking for Berkeley DB link (-ldb1)" >&5
11772 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11778 LIBS="$ol_DB_LIB $LIBS"
11780 cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11784 #ifdef HAVE_DB_185_H
11785 # include <db_185.h>
11790 #ifndef DB_VERSION_MAJOR
11791 # define DB_VERSION_MAJOR 1
11795 #define NULL ((void*)0)
11800 #if DB_VERSION_MAJOR > 2
11801 db_env_create( NULL, 0 );
11802 #elif DB_VERSION_MAJOR > 1
11803 db_appexit( NULL );
11805 (void) dbopen( NULL, 0, 0, 0, NULL);
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11825 echo "$ac_t""$ol_cv_db_db1" 1>&6
11827 if test $ol_cv_db_db1 = yes ; then
11833 if test "$ol_cv_lib_db" != no ; then
11834 ol_cv_berkeley_db=yes
11840 ol_cv_berkeley_db=no
11843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11845 echo "configure:11846: checking for $ac_hdr" >&5
11846 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11855 { (eval echo configure:11856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11857 if test -z "$ac_err"; then
11859 eval "ac_cv_header_$ac_safe=yes"
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11865 eval "ac_cv_header_$ac_safe=no"
11869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11870 echo "$ac_t""yes" 1>&6
11871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11872 cat >> confdefs.h <<EOF
11873 #define $ac_tr_hdr 1
11877 echo "$ac_t""no" 1>&6
11881 if test $ac_cv_header_db_h = yes; then
11883 if test $ol_cv_lib_db = no ; then
11884 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11885 echo "configure:11886: checking for Berkeley DB link (default)" >&5
11886 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11887 echo $ac_n "(cached) $ac_c" 1>&6
11892 LIBS="$ol_DB_LIB $LIBS"
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11898 #ifdef HAVE_DB_185_H
11899 # include <db_185.h>
11904 #ifndef DB_VERSION_MAJOR
11905 # define DB_VERSION_MAJOR 1
11909 #define NULL ((void*)0)
11914 #if DB_VERSION_MAJOR > 2
11915 db_env_create( NULL, 0 );
11916 #elif DB_VERSION_MAJOR > 1
11917 db_appexit( NULL );
11919 (void) dbopen( NULL, 0, 0, 0, NULL);
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11939 echo "$ac_t""$ol_cv_db_none" 1>&6
11941 if test $ol_cv_db_none = yes ; then
11946 if test $ol_cv_lib_db = no ; then
11947 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11948 echo "configure:11949: checking for Berkeley DB link (-ldb)" >&5
11949 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11950 echo $ac_n "(cached) $ac_c" 1>&6
11955 LIBS="$ol_DB_LIB $LIBS"
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11961 #ifdef HAVE_DB_185_H
11962 # include <db_185.h>
11967 #ifndef DB_VERSION_MAJOR
11968 # define DB_VERSION_MAJOR 1
11972 #define NULL ((void*)0)
11977 #if DB_VERSION_MAJOR > 2
11978 db_env_create( NULL, 0 );
11979 #elif DB_VERSION_MAJOR > 1
11980 db_appexit( NULL );
11982 (void) dbopen( NULL, 0, 0, 0, NULL);
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
12002 echo "$ac_t""$ol_cv_db_db" 1>&6
12004 if test $ol_cv_db_db = yes ; then
12009 if test $ol_cv_lib_db = no ; then
12010 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12011 echo "configure:12012: checking for Berkeley DB link (-ldb3)" >&5
12012 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12018 LIBS="$ol_DB_LIB $LIBS"
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12024 #ifdef HAVE_DB_185_H
12025 # include <db_185.h>
12030 #ifndef DB_VERSION_MAJOR
12031 # define DB_VERSION_MAJOR 1
12035 #define NULL ((void*)0)
12040 #if DB_VERSION_MAJOR > 2
12041 db_env_create( NULL, 0 );
12042 #elif DB_VERSION_MAJOR > 1
12043 db_appexit( NULL );
12045 (void) dbopen( NULL, 0, 0, 0, NULL);
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12065 echo "$ac_t""$ol_cv_db_db3" 1>&6
12067 if test $ol_cv_db_db3 = yes ; then
12072 if test $ol_cv_lib_db = no ; then
12073 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12074 echo "configure:12075: checking for Berkeley DB link (-ldb2)" >&5
12075 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12081 LIBS="$ol_DB_LIB $LIBS"
12083 cat > conftest.$ac_ext <<EOF
12084 #line 12085 "configure"
12085 #include "confdefs.h"
12087 #ifdef HAVE_DB_185_H
12088 # include <db_185.h>
12093 #ifndef DB_VERSION_MAJOR
12094 # define DB_VERSION_MAJOR 1
12098 #define NULL ((void*)0)
12103 #if DB_VERSION_MAJOR > 2
12104 db_env_create( NULL, 0 );
12105 #elif DB_VERSION_MAJOR > 1
12106 db_appexit( NULL );
12108 (void) dbopen( NULL, 0, 0, 0, NULL);
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12128 echo "$ac_t""$ol_cv_db_db2" 1>&6
12130 if test $ol_cv_db_db2 = yes ; then
12135 if test $ol_cv_lib_db = no ; then
12136 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12137 echo "configure:12138: checking for Berkeley DB link (-ldb1)" >&5
12138 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12144 LIBS="$ol_DB_LIB $LIBS"
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12150 #ifdef HAVE_DB_185_H
12151 # include <db_185.h>
12156 #ifndef DB_VERSION_MAJOR
12157 # define DB_VERSION_MAJOR 1
12161 #define NULL ((void*)0)
12166 #if DB_VERSION_MAJOR > 2
12167 db_env_create( NULL, 0 );
12168 #elif DB_VERSION_MAJOR > 1
12169 db_appexit( NULL );
12171 (void) dbopen( NULL, 0, 0, 0, NULL);
12176 if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12191 echo "$ac_t""$ol_cv_db_db1" 1>&6
12193 if test $ol_cv_db_db1 = yes ; then
12199 if test "$ol_cv_lib_db" != no ; then
12200 ol_cv_berkeley_db=yes
12201 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12202 echo "configure:12203: checking for Berkeley DB thread support" >&5
12203 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12204 echo $ac_n "(cached) $ac_c" 1>&6
12208 if test $ol_cv_lib_db != yes ; then
12209 LIBS="$ol_cv_lib_db"
12212 if test "$cross_compiling" = yes; then
12213 ol_cv_berkeley_db_thread=cross
12215 cat > conftest.$ac_ext <<EOF
12216 #line 12217 "configure"
12217 #include "confdefs.h"
12219 #ifdef HAVE_DB_185_H
12225 #define NULL ((void *)0)
12230 u_int32_t flags = DB_CREATE | DB_THREAD;
12233 #if DB_VERSION_MAJOR > 2
12234 DB_ENV *env = NULL;
12236 rc = db_env_create( &env, 0 );
12239 rc = env->open( env, NULL, NULL, flags, 0 );
12244 memset( &env, '\0', sizeof(env) );
12246 rc = db_appinit( NULL, NULL, &env, flags );
12249 db_appexit( &env );
12256 if { (eval echo configure:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12258 ol_cv_berkeley_db_thread=yes
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12263 ol_cv_berkeley_db_thread=no
12271 if test $ol_cv_berkeley_db_thread != no ; then
12272 cat >> confdefs.h <<\EOF
12273 #define HAVE_BERKELEY_DB_THREAD 1
12280 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12286 if test $ol_cv_berkeley_db != no ; then
12287 cat >> confdefs.h <<\EOF
12288 #define HAVE_BERKELEY_DB 1
12292 ol_link_ldbm=berkeley
12293 ol_with_ldbm_api=db
12295 if test $ol_with_ldbm_type = hash ; then
12296 cat >> confdefs.h <<\EOF
12297 #define LDBM_USE_DBHASH 1
12301 cat >> confdefs.h <<\EOF
12302 #define LDBM_USE_DBBTREE 1
12307 if test $ol_cv_lib_db != yes ; then
12308 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12313 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12314 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12315 ol_with_ldbm_api=none
12318 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12319 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12320 echo "configure:12321: checking for MDBM library" >&5
12321 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12325 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12326 echo "configure:12327: checking for mdbm_set_chain" >&5
12327 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 /* System header to define __stub macros and hopefully few prototypes,
12334 which can conflict with char mdbm_set_chain(); below. */
12335 #include <assert.h>
12336 /* Override any gcc2 internal prototype to avoid an error. */
12337 /* We use char because int might match the return type of a gcc2
12338 builtin and then its argument prototype would still apply. */
12339 char mdbm_set_chain();
12344 /* The GNU C library defines this for functions which it implements
12345 to always fail with ENOSYS. Some functions are actually named
12346 something starting with __ and the normal name is an alias. */
12347 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12350 f = mdbm_set_chain;
12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12357 eval "ac_cv_func_mdbm_set_chain=yes"
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12362 eval "ac_cv_func_mdbm_set_chain=no"
12367 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12368 echo "$ac_t""yes" 1>&6
12371 echo "$ac_t""no" 1>&6
12373 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12374 echo "configure:12375: checking for mdbm_set_chain in -lmdbm" >&5
12375 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12377 echo $ac_n "(cached) $ac_c" 1>&6
12379 ac_save_LIBS="$LIBS"
12380 LIBS="-lmdbm $LIBS"
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char mdbm_set_chain();
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12395 eval "ac_cv_lib_$ac_lib_var=yes"
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12400 eval "ac_cv_lib_$ac_lib_var=no"
12403 LIBS="$ac_save_LIBS"
12406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12407 echo "$ac_t""yes" 1>&6
12408 ol_cv_lib_mdbm=-lmdbm
12410 echo "$ac_t""no" 1>&6
12421 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12424 for ac_hdr in mdbm.h
12426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12428 echo "configure:12429: checking for $ac_hdr" >&5
12429 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12430 echo $ac_n "(cached) $ac_c" 1>&6
12432 cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure"
12434 #include "confdefs.h"
12437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12438 { (eval echo configure:12439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12440 if test -z "$ac_err"; then
12442 eval "ac_cv_header_$ac_safe=yes"
12445 echo "configure: failed program was:" >&5
12446 cat conftest.$ac_ext >&5
12448 eval "ac_cv_header_$ac_safe=no"
12452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12455 cat >> confdefs.h <<EOF
12456 #define $ac_tr_hdr 1
12460 echo "$ac_t""no" 1>&6
12464 echo $ac_n "checking for db""... $ac_c" 1>&6
12465 echo "configure:12466: checking for db" >&5
12466 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12467 echo $ac_n "(cached) $ac_c" 1>&6
12470 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12478 echo "$ac_t""$ol_cv_mdbm" 1>&6
12479 if test $ol_cv_mdbm = yes ; then
12480 cat >> confdefs.h <<\EOF
12481 #define HAVE_MDBM 1
12487 if test $ol_cv_mdbm = yes ; then
12489 ol_with_ldbm_api=mdbm
12490 if test $ol_cv_lib_mdbm != yes ; then
12491 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12496 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12497 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12498 echo "configure:12499: checking for GDBM library" >&5
12499 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12500 echo $ac_n "(cached) $ac_c" 1>&6
12503 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12504 echo "configure:12505: checking for gdbm_open" >&5
12505 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
12508 cat > conftest.$ac_ext <<EOF
12509 #line 12510 "configure"
12510 #include "confdefs.h"
12511 /* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char gdbm_open(); below. */
12513 #include <assert.h>
12514 /* Override any gcc2 internal prototype to avoid an error. */
12515 /* We use char because int might match the return type of a gcc2
12516 builtin and then its argument prototype would still apply. */
12522 /* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12533 if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12535 eval "ac_cv_func_gdbm_open=yes"
12537 echo "configure: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12540 eval "ac_cv_func_gdbm_open=no"
12545 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12549 echo "$ac_t""no" 1>&6
12551 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12552 echo "configure:12553: checking for gdbm_open in -lgdbm" >&5
12553 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12554 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12555 echo $ac_n "(cached) $ac_c" 1>&6
12557 ac_save_LIBS="$LIBS"
12558 LIBS="-lgdbm $LIBS"
12559 cat > conftest.$ac_ext <<EOF
12560 #line 12561 "configure"
12561 #include "confdefs.h"
12562 /* Override any gcc2 internal prototype to avoid an error. */
12563 /* We use char because int might match the return type of a gcc2
12564 builtin and then its argument prototype would still apply. */
12571 if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12573 eval "ac_cv_lib_$ac_lib_var=yes"
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12578 eval "ac_cv_lib_$ac_lib_var=no"
12581 LIBS="$ac_save_LIBS"
12584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12585 echo "$ac_t""yes" 1>&6
12586 ol_cv_lib_gdbm=-lgdbm
12588 echo "$ac_t""no" 1>&6
12599 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12602 for ac_hdr in gdbm.h
12604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12606 echo "configure:12607: checking for $ac_hdr" >&5
12607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
12610 cat > conftest.$ac_ext <<EOF
12611 #line 12612 "configure"
12612 #include "confdefs.h"
12615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12616 { (eval echo configure:12617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12618 if test -z "$ac_err"; then
12620 eval "ac_cv_header_$ac_safe=yes"
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12626 eval "ac_cv_header_$ac_safe=no"
12630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12631 echo "$ac_t""yes" 1>&6
12632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12633 cat >> confdefs.h <<EOF
12634 #define $ac_tr_hdr 1
12638 echo "$ac_t""no" 1>&6
12642 echo $ac_n "checking for db""... $ac_c" 1>&6
12643 echo "configure:12644: checking for db" >&5
12644 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12645 echo $ac_n "(cached) $ac_c" 1>&6
12648 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12656 echo "$ac_t""$ol_cv_gdbm" 1>&6
12657 if test $ol_cv_gdbm = yes ; then
12658 cat >> confdefs.h <<\EOF
12659 #define HAVE_GDBM 1
12665 if test $ol_cv_gdbm = yes ; then
12667 ol_with_ldbm_api=gdbm
12669 if test $ol_cv_lib_gdbm != yes ; then
12670 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12675 if test $ol_with_ldbm_api = ndbm ; then
12676 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12677 echo "configure:12678: checking for NDBM library" >&5
12678 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12679 echo $ac_n "(cached) $ac_c" 1>&6
12682 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12683 echo "configure:12684: checking for dbm_open" >&5
12684 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12685 echo $ac_n "(cached) $ac_c" 1>&6
12687 cat > conftest.$ac_ext <<EOF
12688 #line 12689 "configure"
12689 #include "confdefs.h"
12690 /* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char dbm_open(); below. */
12692 #include <assert.h>
12693 /* Override any gcc2 internal prototype to avoid an error. */
12694 /* We use char because int might match the return type of a gcc2
12695 builtin and then its argument prototype would still apply. */
12701 /* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12712 if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12714 eval "ac_cv_func_dbm_open=yes"
12716 echo "configure: failed program was:" >&5
12717 cat conftest.$ac_ext >&5
12719 eval "ac_cv_func_dbm_open=no"
12724 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12725 echo "$ac_t""yes" 1>&6
12728 echo "$ac_t""no" 1>&6
12730 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12731 echo "configure:12732: checking for dbm_open in -lndbm" >&5
12732 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12733 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12736 ac_save_LIBS="$LIBS"
12737 LIBS="-lndbm $LIBS"
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12752 eval "ac_cv_lib_$ac_lib_var=yes"
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 eval "ac_cv_lib_$ac_lib_var=no"
12760 LIBS="$ac_save_LIBS"
12763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12764 echo "$ac_t""yes" 1>&6
12765 ol_cv_lib_ndbm=-lndbm
12767 echo "$ac_t""no" 1>&6
12769 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12770 echo "configure:12771: checking for dbm_open in -ldbm" >&5
12771 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12772 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12775 ac_save_LIBS="$LIBS"
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 /* Override any gcc2 internal prototype to avoid an error. */
12781 /* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12791 eval "ac_cv_lib_$ac_lib_var=yes"
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 eval "ac_cv_lib_$ac_lib_var=no"
12799 LIBS="$ac_save_LIBS"
12802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12803 echo "$ac_t""yes" 1>&6
12804 ol_cv_lib_ndbm=-ldbm
12806 echo "$ac_t""no" 1>&6
12819 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12822 for ac_hdr in ndbm.h
12824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12826 echo "configure:12827: checking for $ac_hdr" >&5
12827 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12828 echo $ac_n "(cached) $ac_c" 1>&6
12830 cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12836 { (eval echo configure:12837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12838 if test -z "$ac_err"; then
12840 eval "ac_cv_header_$ac_safe=yes"
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12846 eval "ac_cv_header_$ac_safe=no"
12850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12851 echo "$ac_t""yes" 1>&6
12852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12853 cat >> confdefs.h <<EOF
12854 #define $ac_tr_hdr 1
12858 echo "$ac_t""no" 1>&6
12862 echo $ac_n "checking for db""... $ac_c" 1>&6
12863 echo "configure:12864: checking for db" >&5
12864 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12868 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12876 echo "$ac_t""$ol_cv_ndbm" 1>&6
12877 if test $ol_cv_ndbm = yes ; then
12878 cat >> confdefs.h <<\EOF
12879 #define HAVE_NDBM 1
12885 if test $ol_cv_ndbm = yes ; then
12887 ol_with_ldbm_api=ndbm
12889 if test $ol_cv_lib_ndbm != yes ; then
12890 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12895 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12896 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12897 if test $ol_enable_ldbm = yes ; then
12898 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12901 echo "configure: warning: disabling LDBM" 1>&2
12905 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12906 LINK_BINS_DYNAMIC="yes"
12908 LINK_BINS_DYNAMIC="no"
12911 if test $ol_enable_wrappers != no ; then
12912 for ac_hdr in tcpd.h
12914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12916 echo "configure:12917: checking for $ac_hdr" >&5
12917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12926 { (eval echo configure:12927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12928 if test -z "$ac_err"; then
12930 eval "ac_cv_header_$ac_safe=yes"
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12936 eval "ac_cv_header_$ac_safe=no"
12940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12941 echo "$ac_t""yes" 1>&6
12942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12943 cat >> confdefs.h <<EOF
12944 #define $ac_tr_hdr 1
12948 echo "$ac_t""no" 1>&6
12953 if test $ac_cv_header_tcpd_h != yes ; then
12956 cat > conftest.$ac_ext <<EOF
12957 #line 12958 "configure"
12958 #include "confdefs.h"
12960 int allow_severity = 0;
12961 int deny_severity = 0;
12967 if { (eval echo configure:12968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12971 echo "configure: failed program was:" >&5
12972 cat conftest.$ac_ext >&5
12979 if test $have_wrappers = yes ; then
12980 cat >> confdefs.h <<\EOF
12981 #define HAVE_TCPD 1
12986 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12987 echo "configure:12988: checking for main in -lnsl" >&5
12988 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12990 echo $ac_n "(cached) $ac_c" 1>&6
12992 ac_save_LIBS="$LIBS"
12994 cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
13002 if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13004 eval "ac_cv_lib_$ac_lib_var=yes"
13006 echo "configure: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13009 eval "ac_cv_lib_$ac_lib_var=no"
13012 LIBS="$ac_save_LIBS"
13015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13016 echo "$ac_t""yes" 1>&6
13017 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13019 cat >> confdefs.h <<EOF
13020 #define $ac_tr_lib 1
13026 echo "$ac_t""no" 1>&6
13030 echo "configure: warning: could not find -lwrap" 1>&2
13031 if test $ol_enable_wrappers = yes ; then
13032 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13035 echo "configure: warning: disabling wrappers support" 1>&2
13036 ol_enable_wrappers=no
13041 if test $ol_enable_syslog != no ; then
13042 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13043 echo "configure:13044: checking for openlog" >&5
13044 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13045 echo $ac_n "(cached) $ac_c" 1>&6
13047 cat > conftest.$ac_ext <<EOF
13048 #line 13049 "configure"
13049 #include "confdefs.h"
13050 /* System header to define __stub macros and hopefully few prototypes,
13051 which can conflict with char openlog(); below. */
13052 #include <assert.h>
13053 /* Override any gcc2 internal prototype to avoid an error. */
13054 /* We use char because int might match the return type of a gcc2
13055 builtin and then its argument prototype would still apply. */
13061 /* The GNU C library defines this for functions which it implements
13062 to always fail with ENOSYS. Some functions are actually named
13063 something starting with __ and the normal name is an alias. */
13064 #if defined (__stub_openlog) || defined (__stub___openlog)
13072 if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13074 eval "ac_cv_func_openlog=yes"
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13079 eval "ac_cv_func_openlog=no"
13084 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13085 echo "$ac_t""yes" 1>&6
13088 echo "$ac_t""no" 1>&6
13091 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13092 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13094 ol_enable_syslog=$ac_cv_func_openlog
13097 if test $ol_enable_tcl != no ; then
13098 for ac_hdr in tcl.h
13100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13102 echo "configure:13103: checking for $ac_hdr" >&5
13103 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13104 echo $ac_n "(cached) $ac_c" 1>&6
13106 cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13112 { (eval echo configure:13113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13114 if test -z "$ac_err"; then
13116 eval "ac_cv_header_$ac_safe=yes"
13119 echo "configure: failed program was:" >&5
13120 cat conftest.$ac_ext >&5
13122 eval "ac_cv_header_$ac_safe=no"
13126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13127 echo "$ac_t""yes" 1>&6
13128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13129 cat >> confdefs.h <<EOF
13130 #define $ac_tr_hdr 1
13134 echo "$ac_t""no" 1>&6
13139 if test $ac_cv_header_tcl_h != yes ; then
13142 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13143 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13144 echo "configure:13145: checking for main in -l$lib" >&5
13145 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13147 echo $ac_n "(cached) $ac_c" 1>&6
13149 ac_save_LIBS="$LIBS"
13150 LIBS="-l$lib $LIBS"
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13159 if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161 eval "ac_cv_lib_$ac_lib_var=yes"
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13166 eval "ac_cv_lib_$ac_lib_var=no"
13169 LIBS="$ac_save_LIBS"
13172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13173 echo "$ac_t""yes" 1>&6
13175 if test x"$ol_with_tcl_module" = "xstatic" ; then
13176 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13178 MOD_TCL_LIB="-l${lib}"
13181 echo "$ac_t""no" 1>&6
13188 if test $have_tcl != yes ; then
13189 echo "configure: warning: could not find -ltcl" 1>&2
13190 if test $ol_enable_tcl = yes ; then
13191 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13199 for ac_hdr in termcap.h ncurses.h
13201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13203 echo "configure:13204: checking for $ac_hdr" >&5
13204 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
13207 cat > conftest.$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13213 { (eval echo configure:13214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13215 if test -z "$ac_err"; then
13217 eval "ac_cv_header_$ac_safe=yes"
13220 echo "configure: failed program was:" >&5
13221 cat conftest.$ac_ext >&5
13223 eval "ac_cv_header_$ac_safe=no"
13227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13228 echo "$ac_t""yes" 1>&6
13229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13230 cat >> confdefs.h <<EOF
13231 #define $ac_tr_hdr 1
13235 echo "$ac_t""no" 1>&6
13240 if test $ol_link_termcap = no ; then
13241 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13242 echo "configure:13243: checking for tputs in -ltermcap" >&5
13243 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13245 echo $ac_n "(cached) $ac_c" 1>&6
13247 ac_save_LIBS="$LIBS"
13248 LIBS="-ltermcap $LIBS"
13249 cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure"
13251 #include "confdefs.h"
13252 /* Override any gcc2 internal prototype to avoid an error. */
13253 /* We use char because int might match the return type of a gcc2
13254 builtin and then its argument prototype would still apply. */
13261 if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13263 eval "ac_cv_lib_$ac_lib_var=yes"
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13268 eval "ac_cv_lib_$ac_lib_var=no"
13271 LIBS="$ac_save_LIBS"
13274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13275 echo "$ac_t""yes" 1>&6
13278 echo "$ac_t""no" 1>&6
13282 if test $have_termcap = yes ; then
13283 cat >> confdefs.h <<\EOF
13284 #define HAVE_TERMCAP 1
13287 ol_link_termcap=yes
13288 TERMCAP_LIBS=-ltermcap
13292 if test $ol_link_termcap = no ; then
13293 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13294 echo "configure:13295: checking for initscr in -lncurses" >&5
13295 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13297 echo $ac_n "(cached) $ac_c" 1>&6
13299 ac_save_LIBS="$LIBS"
13300 LIBS="-lncurses $LIBS"
13301 cat > conftest.$ac_ext <<EOF
13302 #line 13303 "configure"
13303 #include "confdefs.h"
13304 /* Override any gcc2 internal prototype to avoid an error. */
13305 /* We use char because int might match the return type of a gcc2
13306 builtin and then its argument prototype would still apply. */
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13315 eval "ac_cv_lib_$ac_lib_var=yes"
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13320 eval "ac_cv_lib_$ac_lib_var=no"
13323 LIBS="$ac_save_LIBS"
13326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13327 echo "$ac_t""yes" 1>&6
13330 echo "$ac_t""no" 1>&6
13334 if test $have_ncurses = yes ; then
13335 cat >> confdefs.h <<\EOF
13336 #define HAVE_NCURSES 1
13339 ol_link_termcap=yes
13340 TERMCAP_LIBS=-lncurses
13344 if test $ol_link_termcap = no ; then
13345 cat >> confdefs.h <<\EOF
13346 #define NO_TERMCAP 1
13354 if test $ol_with_cyrus_sasl != no ; then
13355 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13356 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13357 echo "configure:13358: checking for sasl.h" >&5
13358 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13359 echo $ac_n "(cached) $ac_c" 1>&6
13361 cat > conftest.$ac_ext <<EOF
13362 #line 13363 "configure"
13363 #include "confdefs.h"
13366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13367 { (eval echo configure:13368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13369 if test -z "$ac_err"; then
13371 eval "ac_cv_header_$ac_safe=yes"
13374 echo "configure: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13377 eval "ac_cv_header_$ac_safe=no"
13381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13382 echo "$ac_t""yes" 1>&6
13385 echo "$ac_t""no" 1>&6
13389 if test $ac_cv_header_sasl_h = yes ; then
13390 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13391 echo "configure:13392: checking for sasl_client_init in -lsasl" >&5
13392 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
13396 ac_save_LIBS="$LIBS"
13397 LIBS="-lsasl $LIBS"
13398 cat > conftest.$ac_ext <<EOF
13399 #line 13400 "configure"
13400 #include "confdefs.h"
13401 /* Override any gcc2 internal prototype to avoid an error. */
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13404 char sasl_client_init();
13410 if { (eval echo configure:13411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13412 eval "ac_cv_lib_$ac_lib_var=yes"
13414 echo "configure: failed program was:" >&5
13415 cat conftest.$ac_ext >&5
13417 eval "ac_cv_lib_$ac_lib_var=no"
13420 LIBS="$ac_save_LIBS"
13423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6
13425 have_cyrus_sasl=yes
13427 echo "$ac_t""no" 1>&6
13432 if test $have_cyrus_sasl != no ; then
13434 cat >> confdefs.h <<\EOF
13435 #define HAVE_CYRUS_SASL 1
13442 if test $ol_link_sasl = no ; then
13443 if test $ol_with_cyrus_sasl != auto ; then
13444 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13446 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13447 echo "configure: warning: SASL authentication not supported!" 1>&2
13448 if test $ol_link_tls = no ; then
13449 echo "configure: warning: Strong authentication not supported!" 1>&2
13454 echo "configure: warning: SASL authentication not supported!" 1>&2
13455 if test $ol_link_tls = no ; then
13456 echo "configure: warning: Strong authentication not supported!" 1>&2
13460 if test $cross_compiling != yes ; then
13462 if test -r /dev/urandom ; then
13463 dev="/dev/urandom";
13464 elif test -r /idev/urandom ; then
13465 dev="/idev/urandom";
13466 elif test -r /dev/srandom ; then
13467 dev="/dev/srandom";
13468 elif test -r /dev/random ; then
13470 elif test -r /idev/random ; then
13471 dev="/idev/random";
13474 if test $dev != no ; then
13475 cat >> confdefs.h <<EOF
13476 #define URANDOM_DEVICE "$dev"
13483 if test $ol_with_fetch != no ; then
13485 LIBS="-lfetch -lcom_err $LIBS"
13486 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13487 echo "configure:13488: checking fetch(3) library" >&5
13488 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13489 echo $ac_n "(cached) $ac_c" 1>&6
13492 cat > conftest.$ac_ext <<EOF
13493 #line 13494 "configure"
13494 #include "confdefs.h"
13496 #include <sys/param.h>
13500 struct url *u = fetchParseURL("file:///");
13503 if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13505 ol_cv_lib_fetch=yes
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13515 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13517 if test $ol_cv_lib_fetch != no ; then
13518 ol_link_fetch="-lfetch -lcom_err"
13519 cat >> confdefs.h <<\EOF
13520 #define HAVE_FETCH 1
13526 if test $ol_cv_lib_fetch != no ; then
13527 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13528 ol_link_fetch=freebsd
13530 elif test $ol_with_fetch != auto ; then
13531 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13535 ol_link_readline=no
13536 if test $ol_with_readline != no ; then
13537 for ac_hdr in readline/readline.h readline/history.h
13539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13541 echo "configure:13542: checking for $ac_hdr" >&5
13542 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13543 echo $ac_n "(cached) $ac_c" 1>&6
13545 cat > conftest.$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13551 { (eval echo configure:13552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13553 if test -z "$ac_err"; then
13555 eval "ac_cv_header_$ac_safe=yes"
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13561 eval "ac_cv_header_$ac_safe=no"
13565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13566 echo "$ac_t""yes" 1>&6
13567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13568 cat >> confdefs.h <<EOF
13569 #define $ac_tr_hdr 1
13573 echo "$ac_t""no" 1>&6
13578 if test $ac_cv_header_readline_readline_h = yes ; then
13580 LIBS="$TERMCAP_LIBS $LIBS"
13581 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13582 echo "configure:13583: checking for readline in -lreadline" >&5
13583 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13585 echo $ac_n "(cached) $ac_c" 1>&6
13587 ac_save_LIBS="$LIBS"
13588 LIBS="-lreadline $LIBS"
13589 cat > conftest.$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13592 /* Override any gcc2 internal prototype to avoid an error. */
13593 /* We use char because int might match the return type of a gcc2
13594 builtin and then its argument prototype would still apply. */
13601 if { (eval echo configure:13602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13603 eval "ac_cv_lib_$ac_lib_var=yes"
13605 echo "configure: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13608 eval "ac_cv_lib_$ac_lib_var=no"
13611 LIBS="$ac_save_LIBS"
13614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13615 echo "$ac_t""yes" 1>&6
13618 echo "$ac_t""no" 1>&6
13624 if test $have_readline = yes ; then
13625 ol_with_readline=found
13626 ol_link_readline=yes
13628 READLINE_LIBS="-lreadline"
13633 if test $ol_link_readline = yes ; then
13634 cat >> confdefs.h <<\EOF
13635 #define HAVE_READLINE 1
13641 if test $ol_enable_crypt != no ; then
13642 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13643 echo "configure:13644: checking for crypt" >&5
13644 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13645 echo $ac_n "(cached) $ac_c" 1>&6
13647 cat > conftest.$ac_ext <<EOF
13648 #line 13649 "configure"
13649 #include "confdefs.h"
13650 /* System header to define __stub macros and hopefully few prototypes,
13651 which can conflict with char crypt(); below. */
13652 #include <assert.h>
13653 /* Override any gcc2 internal prototype to avoid an error. */
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13661 /* The GNU C library defines this for functions which it implements
13662 to always fail with ENOSYS. Some functions are actually named
13663 something starting with __ and the normal name is an alias. */
13664 #if defined (__stub_crypt) || defined (__stub___crypt)
13672 if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13674 eval "ac_cv_func_crypt=yes"
13676 echo "configure: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13679 eval "ac_cv_func_crypt=no"
13684 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13685 echo "$ac_t""yes" 1>&6
13688 echo "$ac_t""no" 1>&6
13690 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13691 echo "configure:13692: checking for crypt in -lcrypt" >&5
13692 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13693 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13694 echo $ac_n "(cached) $ac_c" 1>&6
13696 ac_save_LIBS="$LIBS"
13697 LIBS="-lcrypt $LIBS"
13698 cat > conftest.$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13701 /* Override any gcc2 internal prototype to avoid an error. */
13702 /* We use char because int might match the return type of a gcc2
13703 builtin and then its argument prototype would still apply. */
13710 if { (eval echo configure:13711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13712 eval "ac_cv_lib_$ac_lib_var=yes"
13714 echo "configure: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13717 eval "ac_cv_lib_$ac_lib_var=no"
13720 LIBS="$ac_save_LIBS"
13723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13724 echo "$ac_t""yes" 1>&6
13725 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13728 echo "$ac_t""no" 1>&6
13735 if test $have_crypt = yes ; then
13736 cat >> confdefs.h <<\EOF
13737 #define HAVE_CRYPT 1
13741 echo "configure: warning: could not find crypt" 1>&2
13742 if test $ol_enable_crypt = yes ; then
13743 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13746 echo "configure: warning: disabling crypt support" 1>&2
13751 if test $ol_enable_proctitle != no ; then
13752 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13753 echo "configure:13754: checking for setproctitle" >&5
13754 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13755 echo $ac_n "(cached) $ac_c" 1>&6
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 /* System header to define __stub macros and hopefully few prototypes,
13761 which can conflict with char setproctitle(); below. */
13762 #include <assert.h>
13763 /* Override any gcc2 internal prototype to avoid an error. */
13764 /* We use char because int might match the return type of a gcc2
13765 builtin and then its argument prototype would still apply. */
13766 char setproctitle();
13771 /* The GNU C library defines this for functions which it implements
13772 to always fail with ENOSYS. Some functions are actually named
13773 something starting with __ and the normal name is an alias. */
13774 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13782 if { (eval echo configure:13783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784 eval "ac_cv_func_setproctitle=yes"
13786 echo "configure: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13789 eval "ac_cv_func_setproctitle=no"
13794 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13795 echo "$ac_t""yes" 1>&6
13796 have_setproctitle=yes
13798 echo "$ac_t""no" 1>&6
13800 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13801 echo "configure:13802: checking for setproctitle in -lutil" >&5
13802 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13804 echo $ac_n "(cached) $ac_c" 1>&6
13806 ac_save_LIBS="$LIBS"
13807 LIBS="-lutil $LIBS"
13808 cat > conftest.$ac_ext <<EOF
13809 #line 13810 "configure"
13810 #include "confdefs.h"
13811 /* Override any gcc2 internal prototype to avoid an error. */
13812 /* We use char because int might match the return type of a gcc2
13813 builtin and then its argument prototype would still apply. */
13814 char setproctitle();
13820 if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13822 eval "ac_cv_lib_$ac_lib_var=yes"
13824 echo "configure: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13827 eval "ac_cv_lib_$ac_lib_var=no"
13830 LIBS="$ac_save_LIBS"
13833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13834 echo "$ac_t""yes" 1>&6
13835 have_setproctitle=yes
13836 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13838 echo "$ac_t""no" 1>&6
13839 have_setproctitle=no
13840 LIBOBJS="$LIBOBJS setproctitle.o"
13841 LIBSRCS="$LIBSRCS setproctitle.c"
13847 if test $have_setproctitle = yes ; then
13848 cat >> confdefs.h <<\EOF
13849 #define HAVE_SETPROCTITLE 1
13855 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13856 echo "configure:13857: checking for ANSI C header files" >&5
13857 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13858 echo $ac_n "(cached) $ac_c" 1>&6
13860 cat > conftest.$ac_ext <<EOF
13861 #line 13862 "configure"
13862 #include "confdefs.h"
13863 #include <stdlib.h>
13864 #include <stdarg.h>
13865 #include <string.h>
13868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13869 { (eval echo configure:13870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13871 if test -z "$ac_err"; then
13873 ac_cv_header_stdc=yes
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13879 ac_cv_header_stdc=no
13883 if test $ac_cv_header_stdc = yes; then
13884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13885 cat > conftest.$ac_ext <<EOF
13886 #line 13887 "configure"
13887 #include "confdefs.h"
13888 #include <string.h>
13890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13891 egrep "memchr" >/dev/null 2>&1; then
13895 ac_cv_header_stdc=no
13901 if test $ac_cv_header_stdc = yes; then
13902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13903 cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906 #include <stdlib.h>
13908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13909 egrep "free" >/dev/null 2>&1; then
13913 ac_cv_header_stdc=no
13919 if test $ac_cv_header_stdc = yes; then
13920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13921 if test "$cross_compiling" = yes; then
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13928 #if ((' ' & 0x0FF) == 0x020)
13929 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13930 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13932 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13933 || ('j' <= (c) && (c) <= 'r') \
13934 || ('s' <= (c) && (c) <= 'z'))
13935 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13938 int main () { int i; for (i = 0; i < 256; i++)
13939 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13943 if { (eval echo configure:13944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13950 ac_cv_header_stdc=no
13958 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13959 if test $ac_cv_header_stdc = yes; then
13960 cat >> confdefs.h <<\EOF
13961 #define STDC_HEADERS 1
13966 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13967 echo "configure:13968: checking for mode_t" >&5
13968 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13969 echo $ac_n "(cached) $ac_c" 1>&6
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 #include <sys/types.h>
13976 #include <stdlib.h>
13977 #include <stddef.h>
13981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13982 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13984 eval "ac_cv_type_mode_t=yes"
13987 eval "ac_cv_type_mode_t=no"
13992 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13993 echo "$ac_t""yes" 1>&6
13995 echo "$ac_t""no" 1>&6
13996 cat >> confdefs.h <<EOF
14002 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14003 echo "configure:14004: checking for off_t" >&5
14004 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14005 echo $ac_n "(cached) $ac_c" 1>&6
14007 cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 #include <sys/types.h>
14012 #include <stdlib.h>
14013 #include <stddef.h>
14017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14018 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14020 eval "ac_cv_type_off_t=yes"
14023 eval "ac_cv_type_off_t=no"
14028 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14029 echo "$ac_t""yes" 1>&6
14031 echo "$ac_t""no" 1>&6
14032 cat >> confdefs.h <<EOF
14038 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14039 echo "configure:14040: checking for pid_t" >&5
14040 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14043 cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 #include <sys/types.h>
14048 #include <stdlib.h>
14049 #include <stddef.h>
14053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14054 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14056 eval "ac_cv_type_pid_t=yes"
14059 eval "ac_cv_type_pid_t=no"
14064 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14065 echo "$ac_t""yes" 1>&6
14067 echo "$ac_t""no" 1>&6
14068 cat >> confdefs.h <<EOF
14074 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14075 echo "configure:14076: checking for ptrdiff_t" >&5
14076 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14077 echo $ac_n "(cached) $ac_c" 1>&6
14079 cat > conftest.$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14082 #include <stddef.h>
14087 if { (eval echo configure:14088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14089 am_cv_type_ptrdiff_t=yes
14091 echo "configure: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14094 am_cv_type_ptrdiff_t=no
14099 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14100 if test $am_cv_type_ptrdiff_t = yes; then
14101 cat >> confdefs.h <<\EOF
14102 #define HAVE_PTRDIFF_T 1
14107 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14108 echo "configure:14109: checking return type of signal handlers" >&5
14109 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14110 echo $ac_n "(cached) $ac_c" 1>&6
14112 cat > conftest.$ac_ext <<EOF
14113 #line 14114 "configure"
14114 #include "confdefs.h"
14115 #include <sys/types.h>
14116 #include <signal.h>
14121 extern "C" void (*signal (int, void (*)(int)))(int);
14123 void (*signal ()) ();
14130 if { (eval echo configure:14131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14132 ac_cv_type_signal=void
14134 echo "configure: failed program was:" >&5
14135 cat conftest.$ac_ext >&5
14137 ac_cv_type_signal=int
14142 echo "$ac_t""$ac_cv_type_signal" 1>&6
14143 cat >> confdefs.h <<EOF
14144 #define RETSIGTYPE $ac_cv_type_signal
14148 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14149 echo "configure:14150: checking for size_t" >&5
14150 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14151 echo $ac_n "(cached) $ac_c" 1>&6
14153 cat > conftest.$ac_ext <<EOF
14154 #line 14155 "configure"
14155 #include "confdefs.h"
14156 #include <sys/types.h>
14158 #include <stdlib.h>
14159 #include <stddef.h>
14163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14164 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14166 eval "ac_cv_type_size_t=yes"
14169 eval "ac_cv_type_size_t=no"
14174 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14177 echo "$ac_t""no" 1>&6
14178 cat >> confdefs.h <<EOF
14179 #define size_t unsigned
14185 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14186 echo "configure:14187: checking for ssize_t" >&5
14187 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14188 echo $ac_n "(cached) $ac_c" 1>&6
14190 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure"
14192 #include "confdefs.h"
14193 #include <sys/types.h>
14195 #include <stdlib.h>
14196 #include <stddef.h>
14200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14201 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14203 eval "ac_cv_type_ssize_t=yes"
14206 eval "ac_cv_type_ssize_t=no"
14211 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14212 echo "$ac_t""yes" 1>&6
14214 echo "$ac_t""no" 1>&6
14215 cat >> confdefs.h <<EOF
14216 #define ssize_t signed int
14221 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14222 echo "configure:14223: checking for caddr_t" >&5
14223 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14224 echo $ac_n "(cached) $ac_c" 1>&6
14226 cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 #include <sys/types.h>
14231 #include <stdlib.h>
14232 #include <stddef.h>
14236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14237 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14239 eval "ac_cv_type_caddr_t=yes"
14242 eval "ac_cv_type_caddr_t=no"
14247 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14248 echo "$ac_t""yes" 1>&6
14250 echo "$ac_t""no" 1>&6
14251 cat >> confdefs.h <<EOF
14252 #define caddr_t char *
14258 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14259 echo "configure:14260: checking for socklen_t" >&5
14260 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14261 echo $ac_n "(cached) $ac_c" 1>&6
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14267 #ifdef HAVE_SYS_TYPES_H
14268 #include <sys/types.h>
14270 #ifdef HAVE_SYS_SOCKET_H
14271 #include <sys/socket.h>
14278 if { (eval echo configure:14279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14280 ol_cv_type_socklen_t=yes
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14285 ol_cv_type_socklen_t=no
14290 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14291 if test $ol_cv_type_socklen_t = no; then
14292 cat >> confdefs.h <<\EOF
14293 #define socklen_t int
14298 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14299 echo "configure:14300: checking for member st_blksize in aggregate type struct stat" >&5
14300 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14301 echo $ac_n "(cached) $ac_c" 1>&6
14303 cat > conftest.$ac_ext <<EOF
14304 #line 14305 "configure"
14305 #include "confdefs.h"
14306 #include <sys/types.h>
14307 #include <sys/stat.h>
14309 struct stat foo; foo.st_blksize;
14312 if { (eval echo configure:14313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14314 ac_cv_c_struct_member_st_blksize=yes
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14319 ac_cv_c_struct_member_st_blksize=no
14324 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14325 st_blksize="$ac_cv_c_struct_member_st_blksize"
14326 if test $ac_cv_c_struct_member_st_blksize = yes; then
14327 cat >> confdefs.h <<\EOF
14328 #define HAVE_ST_BLKSIZE 1
14333 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14334 echo "configure:14335: checking whether time.h and sys/time.h may both be included" >&5
14335 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14336 echo $ac_n "(cached) $ac_c" 1>&6
14338 cat > conftest.$ac_ext <<EOF
14339 #line 14340 "configure"
14340 #include "confdefs.h"
14341 #include <sys/types.h>
14342 #include <sys/time.h>
14348 if { (eval echo configure:14349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14350 ac_cv_header_time=yes
14352 echo "configure: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14355 ac_cv_header_time=no
14360 echo "$ac_t""$ac_cv_header_time" 1>&6
14361 if test $ac_cv_header_time = yes; then
14362 cat >> confdefs.h <<\EOF
14363 #define TIME_WITH_SYS_TIME 1
14368 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14369 echo "configure:14370: checking whether struct tm is in sys/time.h or time.h" >&5
14370 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14373 cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 #include <sys/types.h>
14379 struct tm *tp; tp->tm_sec;
14382 if { (eval echo configure:14383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14384 ac_cv_struct_tm=time.h
14386 echo "configure: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14389 ac_cv_struct_tm=sys/time.h
14394 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14395 if test $ac_cv_struct_tm = sys/time.h; then
14396 cat >> confdefs.h <<\EOF
14397 #define TM_IN_SYS_TIME 1
14402 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14403 echo "configure:14404: checking for uid_t in sys/types.h" >&5
14404 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14405 echo $ac_n "(cached) $ac_c" 1>&6
14407 cat > conftest.$ac_ext <<EOF
14408 #line 14409 "configure"
14409 #include "confdefs.h"
14410 #include <sys/types.h>
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413 egrep "uid_t" >/dev/null 2>&1; then
14415 ac_cv_type_uid_t=yes
14418 ac_cv_type_uid_t=no
14424 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14425 if test $ac_cv_type_uid_t = no; then
14426 cat >> confdefs.h <<\EOF
14430 cat >> confdefs.h <<\EOF
14436 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14437 echo "configure:14438: checking for sig_atomic_t" >&5
14438 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14439 echo $ac_n "(cached) $ac_c" 1>&6
14441 cat > conftest.$ac_ext <<EOF
14442 #line 14443 "configure"
14443 #include "confdefs.h"
14444 #include <signal.h>
14446 sig_atomic_t atomic;
14449 if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14451 ol_cv_type_sig_atomic_t=yes
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14456 ol_cv_type_sig_atomic_t=no
14461 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14462 if test $ol_cv_type_sig_atomic_t = no; then
14463 cat >> confdefs.h <<\EOF
14464 #define sig_atomic_t int
14471 # test for pw_gecos in struct passwd
14472 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14473 echo "configure:14474: checking struct passwd for pw_gecos" >&5
14474 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
14478 cat > conftest.$ac_ext <<EOF
14479 #line 14480 "configure"
14480 #include "confdefs.h"
14485 pwd.pw_gecos = pwd.pw_name;
14489 if { (eval echo configure:14490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14491 ol_cv_struct_passwd_pw_gecos=yes
14493 echo "configure: failed program was:" >&5
14494 cat conftest.$ac_ext >&5
14496 ol_cv_struct_passwd_pw_gecos=no
14501 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14502 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14503 cat >> confdefs.h <<\EOF
14504 #define HAVE_PW_GECOS 1
14509 # test for pw_passwd in struct passwd
14510 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14511 echo "configure:14512: checking struct passwd for pw_passwd" >&5
14512 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14513 echo $ac_n "(cached) $ac_c" 1>&6
14516 cat > conftest.$ac_ext <<EOF
14517 #line 14518 "configure"
14518 #include "confdefs.h"
14523 pwd.pw_passwd = pwd.pw_name;
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14529 ol_cv_struct_passwd_pw_passwd=yes
14531 echo "configure: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14534 ol_cv_struct_passwd_pw_passwd=no
14539 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14540 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14541 cat >> confdefs.h <<\EOF
14542 #define HAVE_PW_PASSWD 1
14548 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14549 echo "configure:14550: checking if toupper() requires islower()" >&5
14550 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14551 echo $ac_n "(cached) $ac_c" 1>&6
14554 if test "$cross_compiling" = yes; then
14555 ol_cv_c_upper_lower=safe
14557 cat > conftest.$ac_ext <<EOF
14558 #line 14559 "configure"
14559 #include "confdefs.h"
14564 if ('C' == toupper('C'))
14570 if { (eval echo configure:14571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14572 ol_cv_c_upper_lower=no
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14577 ol_cv_c_upper_lower=yes
14584 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14585 if test $ol_cv_c_upper_lower != no ; then
14586 cat >> confdefs.h <<\EOF
14587 #define C_UPPER_LOWER 1
14592 echo $ac_n "checking for working const""... $ac_c" 1>&6
14593 echo "configure:14594: checking for working const" >&5
14594 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14595 echo $ac_n "(cached) $ac_c" 1>&6
14597 cat > conftest.$ac_ext <<EOF
14598 #line 14599 "configure"
14599 #include "confdefs.h"
14603 /* Ultrix mips cc rejects this. */
14604 typedef int charset[2]; const charset x;
14605 /* SunOS 4.1.1 cc rejects this. */
14606 char const *const *ccp;
14608 /* NEC SVR4.0.2 mips cc rejects this. */
14609 struct point {int x, y;};
14610 static struct point const zero = {0,0};
14611 /* AIX XL C 1.02.0.0 rejects this.
14612 It does not let you subtract one const X* pointer from another in an arm
14613 of an if-expression whose if-part is not a constant expression */
14614 const char *g = "string";
14615 ccp = &g + (g ? g-g : 0);
14616 /* HPUX 7.0 cc rejects these. */
14619 ccp = (char const *const *) p;
14620 { /* SCO 3.2v4 cc rejects this. */
14622 char const *s = 0 ? (char *) 0 : (char const *) 0;
14626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14627 int x[] = {25, 17};
14628 const int *foo = &x[0];
14631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14632 typedef const int *iptr;
14636 { /* AIX XL C 1.02.0.0 rejects this saying
14637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14638 struct s { int j; const int *ap[3]; };
14639 struct s *b; b->j = 5;
14641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14642 const int foo = 10;
14647 if { (eval echo configure:14648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14651 echo "configure: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14659 echo "$ac_t""$ac_cv_c_const" 1>&6
14660 if test $ac_cv_c_const = no; then
14661 cat >> confdefs.h <<\EOF
14667 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14668 echo "configure:14669: checking if compiler understands volatile" >&5
14669 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14670 echo $ac_n "(cached) $ac_c" 1>&6
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14677 volatile int a; int * volatile b = x ? &y : &z;
14678 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14682 if { (eval echo configure:14683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14684 ol_cv_c_volatile=yes
14686 echo "configure: failed program was:" >&5
14687 cat conftest.$ac_ext >&5
14689 ol_cv_c_volatile=no
14694 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14695 if test $ol_cv_c_volatile = yes; then
14698 cat >> confdefs.h <<\EOF
14705 if test $cross_compiling = yes ; then
14706 cat >> confdefs.h <<\EOF
14707 #define CROSS_COMPILING 1
14711 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14712 echo "configure:14713: checking whether byte ordering is bigendian" >&5
14713 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14714 echo $ac_n "(cached) $ac_c" 1>&6
14716 ac_cv_c_bigendian=unknown
14717 # See if sys/param.h defines the BYTE_ORDER macro.
14718 cat > conftest.$ac_ext <<EOF
14719 #line 14720 "configure"
14720 #include "confdefs.h"
14721 #include <sys/types.h>
14722 #include <sys/param.h>
14725 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14726 bogus endian macros
14730 if { (eval echo configure:14731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14732 # It does; now see whether it defined to BIG_ENDIAN or not.
14733 cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736 #include <sys/types.h>
14737 #include <sys/param.h>
14740 #if BYTE_ORDER != BIG_ENDIAN
14745 if { (eval echo configure:14746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14747 ac_cv_c_bigendian=yes
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14752 ac_cv_c_bigendian=no
14756 echo "configure: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14760 if test $ac_cv_c_bigendian = unknown; then
14761 if test "$cross_compiling" = yes; then
14762 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14764 cat > conftest.$ac_ext <<EOF
14765 #line 14766 "configure"
14766 #include "confdefs.h"
14768 /* Are we little or big endian? From Harbison&Steele. */
14772 char c[sizeof (long)];
14775 exit (u.c[sizeof (long) - 1] == 1);
14778 if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14780 ac_cv_c_bigendian=no
14782 echo "configure: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14785 ac_cv_c_bigendian=yes
14793 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14794 if test $ac_cv_c_bigendian = yes; then
14795 cat >> confdefs.h <<\EOF
14796 #define WORDS_BIGENDIAN 1
14803 echo $ac_n "checking size of short""... $ac_c" 1>&6
14804 echo "configure:14805: checking size of short" >&5
14805 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14806 echo $ac_n "(cached) $ac_c" 1>&6
14808 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14809 cat > conftest.$ac_ext <<EOF
14810 #line 14811 "configure"
14811 #include "confdefs.h"
14812 #include "confdefs.h"
14813 #include <sys/types.h>
14817 switch (0) case 0: case (sizeof (short) == $ac_size):;
14820 if { (eval echo configure:14821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14822 ac_cv_sizeof_short=$ac_size
14824 echo "configure: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14828 if test x$ac_cv_sizeof_short != x ; then break; fi
14833 if test x$ac_cv_sizeof_short = x ; then
14834 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14836 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14837 cat >> confdefs.h <<EOF
14838 #define SIZEOF_SHORT $ac_cv_sizeof_short
14842 echo $ac_n "checking size of int""... $ac_c" 1>&6
14843 echo "configure:14844: checking size of int" >&5
14844 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
14847 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14848 cat > conftest.$ac_ext <<EOF
14849 #line 14850 "configure"
14850 #include "confdefs.h"
14851 #include "confdefs.h"
14852 #include <sys/types.h>
14856 switch (0) case 0: case (sizeof (int) == $ac_size):;
14859 if { (eval echo configure:14860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14861 ac_cv_sizeof_int=$ac_size
14863 echo "configure: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14867 if test x$ac_cv_sizeof_int != x ; then break; fi
14872 if test x$ac_cv_sizeof_int = x ; then
14873 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14875 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14876 cat >> confdefs.h <<EOF
14877 #define SIZEOF_INT $ac_cv_sizeof_int
14881 echo $ac_n "checking size of long""... $ac_c" 1>&6
14882 echo "configure:14883: checking size of long" >&5
14883 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14884 echo $ac_n "(cached) $ac_c" 1>&6
14886 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14887 cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14890 #include "confdefs.h"
14891 #include <sys/types.h>
14895 switch (0) case 0: case (sizeof (long) == $ac_size):;
14898 if { (eval echo configure:14899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14900 ac_cv_sizeof_long=$ac_size
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14906 if test x$ac_cv_sizeof_long != x ; then break; fi
14911 if test x$ac_cv_sizeof_long = x ; then
14912 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14914 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14915 cat >> confdefs.h <<EOF
14916 #define SIZEOF_LONG $ac_cv_sizeof_long
14921 if test "$ac_cv_sizeof_int" -lt 4 ; then
14922 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14924 cat >> confdefs.h <<\EOF
14925 #define LBER_INT_T long
14929 cat >> confdefs.h <<\EOF
14930 #define LBER_INT_T int
14935 cat >> confdefs.h <<\EOF
14936 #define LBER_LEN_T long
14939 cat >> confdefs.h <<\EOF
14940 #define LBER_SOCKET_T int
14943 cat >> confdefs.h <<\EOF
14944 #define LBER_TAG_T long
14948 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14949 echo "configure:14950: checking for 8-bit clean memcmp" >&5
14950 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14953 if test "$cross_compiling" = yes; then
14954 ac_cv_func_memcmp_clean=no
14956 cat > conftest.$ac_ext <<EOF
14957 #line 14958 "configure"
14958 #include "confdefs.h"
14962 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14963 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14967 if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14969 ac_cv_func_memcmp_clean=yes
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14974 ac_cv_func_memcmp_clean=no
14981 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14982 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14984 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14985 echo "configure:14986: checking for strftime" >&5
14986 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14989 cat > conftest.$ac_ext <<EOF
14990 #line 14991 "configure"
14991 #include "confdefs.h"
14992 /* System header to define __stub macros and hopefully few prototypes,
14993 which can conflict with char strftime(); below. */
14994 #include <assert.h>
14995 /* Override any gcc2 internal prototype to avoid an error. */
14996 /* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
15003 /* The GNU C library defines this for functions which it implements
15004 to always fail with ENOSYS. Some functions are actually named
15005 something starting with __ and the normal name is an alias. */
15006 #if defined (__stub_strftime) || defined (__stub___strftime)
15014 if { (eval echo configure:15015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15016 eval "ac_cv_func_strftime=yes"
15018 echo "configure: failed program was:" >&5
15019 cat conftest.$ac_ext >&5
15021 eval "ac_cv_func_strftime=no"
15026 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15027 echo "$ac_t""yes" 1>&6
15028 cat >> confdefs.h <<\EOF
15029 #define HAVE_STRFTIME 1
15033 echo "$ac_t""no" 1>&6
15034 # strftime is in -lintl on SCO UNIX.
15035 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15036 echo "configure:15037: checking for strftime in -lintl" >&5
15037 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15039 echo $ac_n "(cached) $ac_c" 1>&6
15041 ac_save_LIBS="$LIBS"
15042 LIBS="-lintl $LIBS"
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 /* Override any gcc2 internal prototype to avoid an error. */
15047 /* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15055 if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 eval "ac_cv_lib_$ac_lib_var=yes"
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15062 eval "ac_cv_lib_$ac_lib_var=no"
15065 LIBS="$ac_save_LIBS"
15068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15069 echo "$ac_t""yes" 1>&6
15070 cat >> confdefs.h <<\EOF
15071 #define HAVE_STRFTIME 1
15074 LIBS="-lintl $LIBS"
15076 echo "$ac_t""no" 1>&6
15082 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15083 echo "configure:15084: checking for inet_aton()" >&5
15084 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15085 echo $ac_n "(cached) $ac_c" 1>&6
15087 cat > conftest.$ac_ext <<EOF
15088 #line 15089 "configure"
15089 #include "confdefs.h"
15091 #ifdef HAVE_SYS_TYPES_H
15092 # include <sys/types.h>
15094 #ifdef HAVE_SYS_SOCKET_H
15095 # include <sys/socket.h>
15096 # ifdef HAVE_SYS_SELECT_H
15097 # include <sys/select.h>
15099 # include <netinet/in.h>
15100 # ifdef HAVE_ARPA_INET_H
15101 # include <arpa/inet.h>
15107 int rc = inet_aton( "255.255.255.255", &in );
15110 if { (eval echo configure:15111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15112 ol_cv_func_inet_aton=yes
15114 echo "configure: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15117 ol_cv_func_inet_aton=no
15122 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15123 if test $ol_cv_func_inet_aton != no; then
15124 cat >> confdefs.h <<\EOF
15125 #define HAVE_INET_ATON 1
15131 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15132 echo "configure:15133: checking for _spawnlp" >&5
15133 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15134 echo $ac_n "(cached) $ac_c" 1>&6
15136 cat > conftest.$ac_ext <<EOF
15137 #line 15138 "configure"
15138 #include "confdefs.h"
15139 /* System header to define __stub macros and hopefully few prototypes,
15140 which can conflict with char _spawnlp(); below. */
15141 #include <assert.h>
15142 /* Override any gcc2 internal prototype to avoid an error. */
15143 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15150 /* The GNU C library defines this for functions which it implements
15151 to always fail with ENOSYS. Some functions are actually named
15152 something starting with __ and the normal name is an alias. */
15153 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15161 if { (eval echo configure:15162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15163 eval "ac_cv_func__spawnlp=yes"
15165 echo "configure: failed program was:" >&5
15166 cat conftest.$ac_ext >&5
15168 eval "ac_cv_func__spawnlp=no"
15173 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15174 echo "$ac_t""yes" 1>&6
15175 cat >> confdefs.h <<\EOF
15176 #define HAVE_SPAWNLP 1
15180 echo "$ac_t""no" 1>&6
15184 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15185 echo "configure:15186: checking for _snprintf" >&5
15186 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15189 cat > conftest.$ac_ext <<EOF
15190 #line 15191 "configure"
15191 #include "confdefs.h"
15192 /* System header to define __stub macros and hopefully few prototypes,
15193 which can conflict with char _snprintf(); below. */
15194 #include <assert.h>
15195 /* Override any gcc2 internal prototype to avoid an error. */
15196 /* We use char because int might match the return type of a gcc2
15197 builtin and then its argument prototype would still apply. */
15203 /* The GNU C library defines this for functions which it implements
15204 to always fail with ENOSYS. Some functions are actually named
15205 something starting with __ and the normal name is an alias. */
15206 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15214 if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15216 eval "ac_cv_func__snprintf=yes"
15218 echo "configure: failed program was:" >&5
15219 cat conftest.$ac_ext >&5
15221 eval "ac_cv_func__snprintf=no"
15226 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15227 echo "$ac_t""yes" 1>&6
15228 ac_cv_func_snprintf=yes
15229 cat >> confdefs.h <<\EOF
15230 #define snprintf _snprintf
15235 echo "$ac_t""no" 1>&6
15239 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15240 echo "configure:15241: checking for _vsnprintf" >&5
15241 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15242 echo $ac_n "(cached) $ac_c" 1>&6
15244 cat > conftest.$ac_ext <<EOF
15245 #line 15246 "configure"
15246 #include "confdefs.h"
15247 /* System header to define __stub macros and hopefully few prototypes,
15248 which can conflict with char _vsnprintf(); below. */
15249 #include <assert.h>
15250 /* Override any gcc2 internal prototype to avoid an error. */
15251 /* We use char because int might match the return type of a gcc2
15252 builtin and then its argument prototype would still apply. */
15258 /* The GNU C library defines this for functions which it implements
15259 to always fail with ENOSYS. Some functions are actually named
15260 something starting with __ and the normal name is an alias. */
15261 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15269 if { (eval echo configure:15270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15271 eval "ac_cv_func__vsnprintf=yes"
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15276 eval "ac_cv_func__vsnprintf=no"
15281 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15282 echo "$ac_t""yes" 1>&6
15283 ac_cv_func_vsnprintf=yes
15284 cat >> confdefs.h <<\EOF
15285 #define vsnprintf _vsnprintf
15290 echo "$ac_t""no" 1>&6
15294 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15295 echo "configure:15296: checking for vprintf" >&5
15296 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15297 echo $ac_n "(cached) $ac_c" 1>&6
15299 cat > conftest.$ac_ext <<EOF
15300 #line 15301 "configure"
15301 #include "confdefs.h"
15302 /* System header to define __stub macros and hopefully few prototypes,
15303 which can conflict with char vprintf(); below. */
15304 #include <assert.h>
15305 /* Override any gcc2 internal prototype to avoid an error. */
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15313 /* The GNU C library defines this for functions which it implements
15314 to always fail with ENOSYS. Some functions are actually named
15315 something starting with __ and the normal name is an alias. */
15316 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15324 if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15326 eval "ac_cv_func_vprintf=yes"
15328 echo "configure: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15331 eval "ac_cv_func_vprintf=no"
15336 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15337 echo "$ac_t""yes" 1>&6
15338 cat >> confdefs.h <<\EOF
15339 #define HAVE_VPRINTF 1
15343 echo "$ac_t""no" 1>&6
15346 if test "$ac_cv_func_vprintf" != yes; then
15347 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15348 echo "configure:15349: checking for _doprnt" >&5
15349 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15350 echo $ac_n "(cached) $ac_c" 1>&6
15352 cat > conftest.$ac_ext <<EOF
15353 #line 15354 "configure"
15354 #include "confdefs.h"
15355 /* System header to define __stub macros and hopefully few prototypes,
15356 which can conflict with char _doprnt(); below. */
15357 #include <assert.h>
15358 /* Override any gcc2 internal prototype to avoid an error. */
15359 /* We use char because int might match the return type of a gcc2
15360 builtin and then its argument prototype would still apply. */
15366 /* The GNU C library defines this for functions which it implements
15367 to always fail with ENOSYS. Some functions are actually named
15368 something starting with __ and the normal name is an alias. */
15369 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15377 if { (eval echo configure:15378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15379 eval "ac_cv_func__doprnt=yes"
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15384 eval "ac_cv_func__doprnt=no"
15389 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15390 echo "$ac_t""yes" 1>&6
15391 cat >> confdefs.h <<\EOF
15392 #define HAVE_DOPRNT 1
15396 echo "$ac_t""no" 1>&6
15402 if test $ac_cv_func_vprintf = yes ; then
15403 for ac_func in vsnprintf vsprintf
15405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15406 echo "configure:15407: checking for $ac_func" >&5
15407 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15408 echo $ac_n "(cached) $ac_c" 1>&6
15410 cat > conftest.$ac_ext <<EOF
15411 #line 15412 "configure"
15412 #include "confdefs.h"
15413 /* System header to define __stub macros and hopefully few prototypes,
15414 which can conflict with char $ac_func(); below. */
15415 #include <assert.h>
15416 /* Override any gcc2 internal prototype to avoid an error. */
15417 /* We use char because int might match the return type of a gcc2
15418 builtin and then its argument prototype would still apply. */
15424 /* The GNU C library defines this for functions which it implements
15425 to always fail with ENOSYS. Some functions are actually named
15426 something starting with __ and the normal name is an alias. */
15427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15435 if { (eval echo configure:15436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15437 eval "ac_cv_func_$ac_func=yes"
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15442 eval "ac_cv_func_$ac_func=no"
15447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15448 echo "$ac_t""yes" 1>&6
15449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15450 cat >> confdefs.h <<EOF
15451 #define $ac_tr_func 1
15455 echo "$ac_t""no" 1>&6
15513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15514 echo "configure:15515: checking for $ac_func" >&5
15515 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15516 echo $ac_n "(cached) $ac_c" 1>&6
15518 cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521 /* System header to define __stub macros and hopefully few prototypes,
15522 which can conflict with char $ac_func(); below. */
15523 #include <assert.h>
15524 /* Override any gcc2 internal prototype to avoid an error. */
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15532 /* The GNU C library defines this for functions which it implements
15533 to always fail with ENOSYS. Some functions are actually named
15534 something starting with __ and the normal name is an alias. */
15535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15543 if { (eval echo configure:15544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15545 eval "ac_cv_func_$ac_func=yes"
15547 echo "configure: failed program was:" >&5
15548 cat conftest.$ac_ext >&5
15550 eval "ac_cv_func_$ac_func=no"
15555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15556 echo "$ac_t""yes" 1>&6
15557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15558 cat >> confdefs.h <<EOF
15559 #define $ac_tr_func 1
15563 echo "$ac_t""no" 1>&6
15568 for ac_func in getopt tempnam
15570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15571 echo "configure:15572: checking for $ac_func" >&5
15572 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15573 echo $ac_n "(cached) $ac_c" 1>&6
15575 cat > conftest.$ac_ext <<EOF
15576 #line 15577 "configure"
15577 #include "confdefs.h"
15578 /* System header to define __stub macros and hopefully few prototypes,
15579 which can conflict with char $ac_func(); below. */
15580 #include <assert.h>
15581 /* Override any gcc2 internal prototype to avoid an error. */
15582 /* We use char because int might match the return type of a gcc2
15583 builtin and then its argument prototype would still apply. */
15589 /* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15600 if { (eval echo configure:15601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15602 eval "ac_cv_func_$ac_func=yes"
15604 echo "configure: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15607 eval "ac_cv_func_$ac_func=no"
15612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15613 echo "$ac_t""yes" 1>&6
15614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15615 cat >> confdefs.h <<EOF
15616 #define $ac_tr_func 1
15620 echo "$ac_t""no" 1>&6
15621 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15627 if test "$ac_cv_func_getopt" != yes; then
15628 LIBSRCS="$LIBSRCS getopt.c"
15631 if test "$ac_cv_func_tempnam" != yes; then
15632 LIBSRCS="$LIBSRCS tempnam.c"
15635 # Check Configuration
15636 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15637 echo "configure:15638: checking declaration of sys_errlist" >&5
15638 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15639 echo $ac_n "(cached) $ac_c" 1>&6
15642 cat > conftest.$ac_ext <<EOF
15643 #line 15644 "configure"
15644 #include "confdefs.h"
15647 #include <sys/types.h>
15650 #include <stdlib.h>
15653 char *c = (char *) *sys_errlist
15656 if { (eval echo configure:15657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15658 ol_cv_dcl_sys_errlist=yes
15659 ol_cv_have_sys_errlist=yes
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15664 ol_cv_dcl_sys_errlist=no
15669 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15671 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15672 if test $ol_cv_dcl_sys_errlist = no ; then
15673 cat >> confdefs.h <<\EOF
15674 #define DECL_SYS_ERRLIST 1
15678 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15679 echo "configure:15680: checking existence of sys_errlist" >&5
15680 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15681 echo $ac_n "(cached) $ac_c" 1>&6
15684 cat > conftest.$ac_ext <<EOF
15685 #line 15686 "configure"
15686 #include "confdefs.h"
15689 char *c = (char *) *sys_errlist
15692 if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15694 ol_cv_have_sys_errlist=yes
15696 echo "configure: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15699 ol_cv_have_sys_errlist=no
15704 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15706 if test $ol_cv_have_sys_errlist = yes ; then
15707 cat >> confdefs.h <<\EOF
15708 #define HAVE_SYS_ERRLIST 1
15715 if test "$ol_enable_debug" != no ; then
15716 cat >> confdefs.h <<\EOF
15717 #define LDAP_DEBUG 1
15721 if test "$ol_enable_syslog" = yes ; then
15722 cat >> confdefs.h <<\EOF
15723 #define LDAP_SYSLOG 1
15727 if test "$ol_enable_libui" = yes ; then
15728 cat >> confdefs.h <<\EOF
15729 #define LDAP_LIBUI 1
15733 if test "$ol_enable_cache" = no ; then
15734 cat >> confdefs.h <<\EOF
15735 #define LDAP_NOCACHE 1
15739 if test "$ol_link_kbind" != no ; then
15740 cat >> confdefs.h <<\EOF
15741 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15745 if test "$ol_enable_proctitle" != no ; then
15746 cat >> confdefs.h <<\EOF
15747 #define LDAP_PROCTITLE 1
15751 if test "$ol_enable_referrals" != no ; then
15752 cat >> confdefs.h <<\EOF
15753 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15757 if test "$ol_enable_cldap" != no ; then
15758 cat >> confdefs.h <<\EOF
15759 #define LDAP_CONNECTIONLESS 1
15763 if test "$ol_enable_local" != no; then
15764 cat >> confdefs.h <<\EOF
15765 #define LDAP_PF_LOCAL 1
15769 if test "$ol_enable_ipv6" != no; then
15770 cat >> confdefs.h <<\EOF
15771 #define LDAP_PF_INET6 1
15775 if test "$ol_enable_cleartext" != no ; then
15776 cat >> confdefs.h <<\EOF
15777 #define SLAPD_CLEARTEXT 1
15781 if test "$ol_enable_crypt" != no ; then
15782 cat >> confdefs.h <<\EOF
15783 #define SLAPD_CRYPT 1
15787 if test "$ol_link_kpasswd" != no ; then
15788 cat >> confdefs.h <<\EOF
15789 #define SLAPD_KPASSWD 1
15793 if test "$ol_link_spasswd" != no ; then
15794 cat >> confdefs.h <<\EOF
15795 #define SLAPD_SPASSWD 1
15799 if test "$ol_enable_multimaster" != no ; then
15800 cat >> confdefs.h <<\EOF
15801 #define SLAPD_MULTIMASTER 1
15805 if test "$ol_enable_phonetic" != no ; then
15806 cat >> confdefs.h <<\EOF
15807 #define SLAPD_PHONETIC 1
15811 if test "$ol_enable_rlookups" != no ; then
15812 cat >> confdefs.h <<\EOF
15813 #define SLAPD_RLOOKUPS 1
15817 if test "$ol_enable_aci" != no ; then
15818 cat >> confdefs.h <<\EOF
15819 #define SLAPD_ACI_ENABLED 1
15824 if test "$ol_link_modules" != no ; then
15825 cat >> confdefs.h <<\EOF
15826 #define SLAPD_MODULES 1
15830 SLAPD_MODULES_LDFLAGS="-dlopen self"
15833 if test "$ol_link_dnssrv" != no ; then
15834 cat >> confdefs.h <<\EOF
15835 #define SLAPD_DNSSRV 1
15840 if test "$ol_with_dnssrv_module" != static ; then
15841 cat >> confdefs.h <<\EOF
15842 #define SLAPD_DNSSRV_DYNAMIC 1
15846 BUILD_DNSSRV_DYNAMIC=shared
15847 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15851 if test "$ol_enable_ldap" != no ; then
15852 cat >> confdefs.h <<\EOF
15853 #define SLAPD_LDAP 1
15858 if test "$ol_with_ldap_module" != static ; then
15859 cat >> confdefs.h <<\EOF
15860 #define SLAPD_LDAP_DYNAMIC 1
15864 BUILD_LDAP_DYNAMIC=shared
15865 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15869 if test "$ol_link_ldbm" != no ; then
15870 cat >> confdefs.h <<\EOF
15871 #define SLAPD_LDBM 1
15876 if test "$ol_with_ldbm_module" != static ; then
15877 cat >> confdefs.h <<\EOF
15878 #define SLAPD_LDBM_DYNAMIC 1
15882 BUILD_LDBM_DYNAMIC=shared
15883 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15887 if test "$ol_enable_passwd" != no ; then
15888 cat >> confdefs.h <<\EOF
15889 #define SLAPD_PASSWD 1
15894 if test "$ol_with_passwd_module" != static ; then
15895 cat >> confdefs.h <<\EOF
15896 #define SLAPD_PASSWD_DYNAMIC 1
15900 BUILD_PASSWD_DYNAMIC=shared
15901 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15905 if test "$ol_link_perl" != no ; then
15906 cat >> confdefs.h <<\EOF
15907 #define SLAPD_PERL 1
15912 if test "$ol_with_perl_module" != static ; then
15913 cat >> confdefs.h <<\EOF
15914 #define SLAPD_PERL_DYNAMIC 1
15918 BUILD_PERL_DYNAMIC=shared
15919 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15923 if test "$ol_enable_shell" != no ; then
15924 cat >> confdefs.h <<\EOF
15925 #define SLAPD_SHELL 1
15930 if test "$ol_with_shell_module" != static ; then
15931 cat >> confdefs.h <<\EOF
15932 #define SLAPD_SHELL_DYNAMIC 1
15936 BUILD_SHELL_DYNAMIC=shared
15937 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15941 if test "$ol_enable_tcl" != no ; then
15942 cat >> confdefs.h <<\EOF
15943 #define SLAPD_TCL 1
15948 if test "$ol_with_tcl_module" != static; then
15949 cat >> confdefs.h <<\EOF
15950 #define SLAPD_TCL_DYNAMIC 1
15954 BUILD_TCL_DYNAMIC=shared
15955 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15959 if test "$ol_enable_sql" != no ; then
15960 cat >> confdefs.h <<\EOF
15961 #define SLAPD_SQL 1
15966 SLAPD_SQL_LIBS=-liodbc
15967 if test "$ol_with_sql_module" != static; then
15968 cat >> confdefs.h <<\EOF
15969 #define SLAPD_SQL_DYNAMIC 1
15973 BUILD_SQL_DYNAMIC=shared
15974 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15978 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15979 $BUILD_SLAPD = yes ; then
15984 if test "$LINK_BINS_DYNAMIC" = yes; then
15986 LT_LIB_LINKAGE=shared
15989 LT_LIB_LINKAGE=static
15992 if test "$ac_cv_mingw32" = yes ; then
16061 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16064 # Let make expand exec_prefix.
16065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16067 # Any assignment to VPATH causes Sun make to only execute
16068 # the first set of double-colon rules, so remove it if not needed.
16069 # If there is a colon in the path, we need to keep it.
16070 if test "x$srcdir" = x.; then
16071 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16074 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16076 DEFS=-DHAVE_CONFIG_H
16078 # Without the "./", some shells look in PATH for config.status.
16079 : ${CONFIG_STATUS=./config.status}
16081 echo creating $CONFIG_STATUS
16082 rm -f $CONFIG_STATUS
16083 cat > $CONFIG_STATUS <<EOF
16085 # Generated automatically by configure.
16086 # Run this file to recreate the current configuration.
16087 # This directory was configured as follows,
16088 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16090 # $0 $ac_configure_args
16092 # Compiler output produced by configure, useful for debugging
16093 # configure, is in ./config.log if it exists.
16095 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16098 case "\$ac_option" in
16099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16100 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16101 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16102 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16103 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16105 -help | --help | --hel | --he | --h)
16106 echo "\$ac_cs_usage"; exit 0 ;;
16107 *) echo "\$ac_cs_usage"; exit 1 ;;
16111 ac_given_srcdir=$srcdir
16112 ac_given_INSTALL="$INSTALL"
16114 trap 'rm -fr `echo "\
16115 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16116 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16117 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16118 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16119 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16120 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16121 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16122 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16123 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16124 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16125 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16126 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16127 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16128 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16129 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16130 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16131 include/Makefile:build/top.mk:include/Makefile.in \
16132 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16133 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16134 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16135 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16136 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16137 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16138 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16139 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16140 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16141 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16142 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16143 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16144 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16145 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16146 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16147 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16148 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16149 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16150 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16151 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16152 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16153 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16154 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16155 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16156 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16157 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16158 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16159 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16161 cat >> $CONFIG_STATUS <<EOF
16163 # Protect against being on the right side of a sed subst in config.status.
16164 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16165 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16169 s%@CFLAGS@%$CFLAGS%g
16170 s%@CPPFLAGS@%$CPPFLAGS%g
16171 s%@CXXFLAGS@%$CXXFLAGS%g
16172 s%@FFLAGS@%$FFLAGS%g
16174 s%@LDFLAGS@%$LDFLAGS%g
16176 s%@exec_prefix@%$exec_prefix%g
16177 s%@prefix@%$prefix%g
16178 s%@program_transform_name@%$program_transform_name%g
16179 s%@bindir@%$bindir%g
16180 s%@sbindir@%$sbindir%g
16181 s%@libexecdir@%$libexecdir%g
16182 s%@datadir@%$datadir%g
16183 s%@sysconfdir@%$sysconfdir%g
16184 s%@sharedstatedir@%$sharedstatedir%g
16185 s%@localstatedir@%$localstatedir%g
16186 s%@libdir@%$libdir%g
16187 s%@includedir@%$includedir%g
16188 s%@oldincludedir@%$oldincludedir%g
16189 s%@infodir@%$infodir%g
16190 s%@mandir@%$mandir%g
16192 s%@host_alias@%$host_alias%g
16193 s%@host_cpu@%$host_cpu%g
16194 s%@host_vendor@%$host_vendor%g
16195 s%@host_os@%$host_os%g
16196 s%@target@%$target%g
16197 s%@target_alias@%$target_alias%g
16198 s%@target_cpu@%$target_cpu%g
16199 s%@target_vendor@%$target_vendor%g
16200 s%@target_os@%$target_os%g
16202 s%@build_alias@%$build_alias%g
16203 s%@build_cpu@%$build_cpu%g
16204 s%@build_vendor@%$build_vendor%g
16205 s%@build_os@%$build_os%g
16206 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16207 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16208 s%@INSTALL_DATA@%$INSTALL_DATA%g
16209 s%@PACKAGE@%$PACKAGE%g
16210 s%@VERSION@%$VERSION%g
16211 s%@ACLOCAL@%$ACLOCAL%g
16212 s%@AUTOCONF@%$AUTOCONF%g
16213 s%@AUTOMAKE@%$AUTOMAKE%g
16214 s%@AUTOHEADER@%$AUTOHEADER%g
16215 s%@MAKEINFO@%$MAKEINFO%g
16216 s%@install_sh@%$install_sh%g
16219 s%@AMTARFLAGS@%$AMTARFLAGS%g
16220 s%@SET_MAKE@%$SET_MAKE%g
16221 s%@top_builddir@%$top_builddir%g
16222 s%@ldap_subdir@%$ldap_subdir%g
16224 s%@RANLIB@%$RANLIB%g
16226 s%@DLLTOOL@%$DLLTOOL%g
16228 s%@OBJDUMP@%$OBJDUMP%g
16229 s%@LIBTOOL@%$LIBTOOL%g
16231 s%@SENDMAIL@%$SENDMAIL%g
16232 s%@EDITOR@%$EDITOR%g
16233 s%@FINGER@%$FINGER%g
16234 s%@PERLBIN@%$PERLBIN%g
16236 s%@EXEEXT@%$EXEEXT%g
16237 s%@OBJEXT@%$OBJEXT%g
16238 s%@OL_MKDEP@%$OL_MKDEP%g
16239 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16240 s%@LIBOBJS@%$LIBOBJS%g
16241 s%@LIBSRCS@%$LIBSRCS%g
16243 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16244 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16245 s%@DYN_EXT@%$DYN_EXT%g
16246 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16247 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16248 s%@BUILD_LDAP@%$BUILD_LDAP%g
16249 s%@BUILD_LDBM@%$BUILD_LDBM%g
16250 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16251 s%@BUILD_PERL@%$BUILD_PERL%g
16252 s%@BUILD_SHELL@%$BUILD_SHELL%g
16253 s%@BUILD_SQL@%$BUILD_SQL%g
16254 s%@BUILD_TCL@%$BUILD_TCL%g
16255 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16256 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16257 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16258 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16259 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16260 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16261 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16262 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16263 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16264 s%@LDAP_LIBS@%$LDAP_LIBS%g
16265 s%@LDIF_LIBS@%$LDIF_LIBS%g
16266 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16267 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16268 s%@LDBM_LIBS@%$LDBM_LIBS%g
16269 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16270 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16271 s%@WRAP_LIBS@%$WRAP_LIBS%g
16272 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16273 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16274 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16275 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16276 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16277 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16278 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16279 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16280 s%@KRB4_LIBS@%$KRB4_LIBS%g
16281 s%@KRB5_LIBS@%$KRB5_LIBS%g
16282 s%@READLINE_LIBS@%$READLINE_LIBS%g
16283 s%@SASL_LIBS@%$SASL_LIBS%g
16284 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16285 s%@TLS_LIBS@%$TLS_LIBS%g
16286 s%@MODULES_LIBS@%$MODULES_LIBS%g
16287 s%@AUTH_LIBS@%$AUTH_LIBS%g
16288 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16289 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16290 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16295 cat >> $CONFIG_STATUS <<\EOF
16297 # Split the substitutions into bite-sized pieces for seds with
16298 # small command number limits, like on Digital OSF/1 and HP-UX.
16299 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16300 ac_file=1 # Number of current file.
16301 ac_beg=1 # First line for current file.
16302 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16305 while $ac_more_lines; do
16306 if test $ac_beg -gt 1; then
16307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16309 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16311 if test ! -s conftest.s$ac_file; then
16312 ac_more_lines=false
16313 rm -f conftest.s$ac_file
16315 if test -z "$ac_sed_cmds"; then
16316 ac_sed_cmds="sed -f conftest.s$ac_file"
16318 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16320 ac_file=`expr $ac_file + 1`
16322 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16325 if test -z "$ac_sed_cmds"; then
16330 cat >> $CONFIG_STATUS <<EOF
16332 CONFIG_FILES=\${CONFIG_FILES-"\
16333 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16334 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16335 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16336 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16337 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16338 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16339 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16340 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16341 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16342 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16343 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16344 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16345 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16346 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16347 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16348 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16349 include/Makefile:build/top.mk:include/Makefile.in \
16350 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16351 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16352 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16353 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16354 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16355 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16356 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16357 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16358 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16359 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16360 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16361 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16362 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16363 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16364 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16365 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16366 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16367 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16368 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16369 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16370 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16371 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16372 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16373 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16374 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16375 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16376 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16379 cat >> $CONFIG_STATUS <<\EOF
16380 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16383 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16384 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16385 *) ac_file_in="${ac_file}.in" ;;
16388 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16390 # Remove last slash and all that follows it. Not all systems have dirname.
16391 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16392 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16393 # The file is in a subdirectory.
16394 test ! -d "$ac_dir" && mkdir "$ac_dir"
16395 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16396 # A "../" for each directory in $ac_dir_suffix.
16397 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16399 ac_dir_suffix= ac_dots=
16402 case "$ac_given_srcdir" in
16404 if test -z "$ac_dots"; then top_srcdir=.
16405 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16406 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16407 *) # Relative path.
16408 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16409 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16412 case "$ac_given_INSTALL" in
16413 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16414 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16417 echo creating "$ac_file"
16419 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16421 *[Mm]akefile*) ac_comsub="1i\\
16422 # $configure_input" ;;
16426 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16428 s%@configure_input@%$configure_input%g
16429 s%@srcdir@%$srcdir%g
16430 s%@top_srcdir@%$top_srcdir%g
16431 s%@INSTALL@%$INSTALL%g
16432 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16436 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16437 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16439 # ac_d sets the value in "#define NAME VALUE" lines.
16440 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16441 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16444 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16445 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16446 ac_uB='\([ ]\)%\1#\2define\3'
16449 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16450 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16451 ac_eB='$%\1#\2define\3'
16455 if test "${CONFIG_HEADERS+set}" != set; then
16457 cat >> $CONFIG_STATUS <<EOF
16458 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16460 cat >> $CONFIG_STATUS <<\EOF
16462 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16465 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16466 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16467 *) ac_file_in="${ac_file}.in" ;;
16470 echo creating $ac_file
16472 rm -f conftest.frag conftest.in conftest.out
16473 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16474 cat $ac_file_inputs > conftest.in
16478 # Transform confdefs.h into a sed script conftest.vals that substitutes
16479 # the proper values into config.h.in to produce config.h. And first:
16480 # Protect against being on the right side of a sed subst in config.status.
16481 # Protect against being in an unquoted here document in config.status.
16482 rm -f conftest.vals
16483 cat > conftest.hdr <<\EOF
16486 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16490 sed -n -f conftest.hdr confdefs.h > conftest.vals
16493 # This sed command replaces #undef with comments. This is necessary, for
16494 # example, in the case of _POSIX_SOURCE, which is predefined and required
16495 # on some systems where configure will not decide to define it.
16496 cat >> conftest.vals <<\EOF
16497 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16500 # Break up conftest.vals because some shells have a limit on
16501 # the size of here documents, and old seds have small limits too.
16503 rm -f conftest.tail
16506 ac_lines=`grep -c . conftest.vals`
16507 # grep -c gives empty output for an empty file on some AIX systems.
16508 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16509 # Write a limited-size here document to conftest.frag.
16510 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16511 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16513 sed -f conftest.frag conftest.in > conftest.out
16515 mv conftest.out conftest.in
16516 ' >> $CONFIG_STATUS
16517 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16518 rm -f conftest.vals
16519 mv conftest.tail conftest.vals
16521 rm -f conftest.vals
16523 cat >> $CONFIG_STATUS <<\EOF
16524 rm -f conftest.frag conftest.h
16525 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16526 cat conftest.in >> conftest.h
16528 if cmp -s $ac_file conftest.h 2>/dev/null; then
16529 echo "$ac_file is unchanged"
16532 # Remove last slash and all that follows it. Not all systems have dirname.
16533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16535 # The file is in a subdirectory.
16536 test ! -d "$ac_dir" && mkdir "$ac_dir"
16539 mv conftest.h $ac_file
16544 cat >> $CONFIG_STATUS <<EOF
16547 cat >> $CONFIG_STATUS <<\EOF
16550 echo Please \"make depend\" to build dependencies
16554 chmod +x $CONFIG_STATUS
16555 rm -fr confdefs* $ac_clean_files
16556 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1