5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging [yes]"
32 --enable-syslog enable syslog support [auto]"
34 --enable-proctitle enable proctitle support [yes]"
36 --enable-cache enable caching [yes]"
38 --enable-referrals enable V2 Referrals extension [yes]"
40 --enable-kbind enable V2 Kerberos IV bind [no]"
42 --enable-ipv6 enable IPv6 support [auto]"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
46 --enable-x-compile enable cross compiling [no]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch URL support [auto]"
52 --with-kerberos with support [auto]"
54 --with-readline with readline support [auto]"
56 --with-threads with threads [auto]"
58 --with-tls with TLS/SSL support [auto]"
60 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-cleartext enable cleartext passwords [yes]"
68 --enable-crypt enable crypt(3) passwords [auto]"
70 --enable-kpasswd enable kerberos password verification [no]"
72 --enable-spasswd enable (Cyrus) SASL password verification [no]"
74 --enable-modules enable dynamic module support [no]"
76 --enable-phonetic enable phonetic/soundex [no]"
78 --enable-rlookups enable reverse lookups [no]"
80 --enable-aci enable per-object ACIs [no]"
82 --enable-wrappers enable tcp wrapper support [no]"
84 --enable-dynamic enable linking built binaries with dynamic libs [no]"
86 --enable-dnssrv enable dnssrv backend [no]"
88 --with-dnssrv-module module type [static]"
90 --enable-ldap enable ldap backend [no]"
92 --with-ldap-module module type [static]"
94 --enable-ldbm enable ldbm backend [yes]"
96 --with-ldbm-api with LDBM API [auto]"
98 --with-ldbm-module module type [static]"
100 --with-ldbm-type use LDBM type [auto]"
102 --enable-passwd enable passwd backend [no]"
104 --with-passwd-module module type [static]"
106 --enable-shell enable shell backend [no]"
108 --with-shell-module module type [static]"
110 --enable-sql enable sql backend [no]"
112 --with-sql-module module type [static]"
114 SLURPD (Replication Daemon) Options:"
116 --enable-slurpd enable building slurpd [auto]"
118 Library Generation & Linking Options"
120 --enable-static[=PKGS] build static libraries [default=yes]"
122 --enable-shared[=PKGS] build shared libraries [default=yes]"
124 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
126 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
128 --disable-libtool-lock avoid locking (might break parallel builds)"
130 # Initialize some variables set by options.
131 # The variables have the same names as the options, with
132 # dashes changed to underlines.
134 cache_file=./config.cache
143 program_transform_name=s,x,x,
151 bindir='${exec_prefix}/bin'
152 sbindir='${exec_prefix}/sbin'
153 libexecdir='${exec_prefix}/libexec'
154 datadir='${prefix}/share'
155 sysconfdir='${prefix}/etc'
156 sharedstatedir='${prefix}/com'
157 localstatedir='${prefix}/var'
158 libdir='${exec_prefix}/lib'
159 includedir='${prefix}/include'
160 oldincludedir='/usr/include'
161 infodir='${prefix}/info'
162 mandir='${prefix}/man'
164 # Initialize some other variables.
167 SHELL=${CONFIG_SHELL-/bin/sh}
168 # Maximum number of lines to put in a shell here document.
175 # If the previous option needs an argument, assign it.
176 if test -n "$ac_prev"; then
177 eval "$ac_prev=\$ac_option"
183 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
187 # Accept the important Cygnus configure options, so we can diagnose typos.
191 -bindir | --bindir | --bindi | --bind | --bin | --bi)
193 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
194 bindir="$ac_optarg" ;;
196 -build | --build | --buil | --bui | --bu)
198 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
199 build="$ac_optarg" ;;
201 -cache-file | --cache-file | --cache-fil | --cache-fi \
202 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
203 ac_prev=cache_file ;;
204 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
205 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
206 cache_file="$ac_optarg" ;;
208 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
210 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
212 datadir="$ac_optarg" ;;
214 -disable-* | --disable-*)
215 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
216 # Reject names that are not valid shell variable names.
217 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
218 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
220 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
221 eval "enable_${ac_feature}=no" ;;
223 -enable-* | --enable-*)
224 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
225 # Reject names that are not valid shell variable names.
226 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
227 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
229 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
234 eval "enable_${ac_feature}='$ac_optarg'" ;;
236 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
237 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
238 | --exec | --exe | --ex)
239 ac_prev=exec_prefix ;;
240 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
241 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
242 | --exec=* | --exe=* | --ex=*)
243 exec_prefix="$ac_optarg" ;;
245 -gas | --gas | --ga | --g)
246 # Obsolete; use --with-gas.
249 -help | --help | --hel | --he)
250 # Omit some internal or obsolete options to make the list less imposing.
251 # This message is too long to be a string in the A/UX 3.1 sh.
253 Usage: configure [options] [host]
254 Options: [defaults in brackets after descriptions]
256 --cache-file=FILE cache test results in FILE
257 --help print this message
258 --no-create do not create output files
259 --quiet, --silent do not print \`checking...' messages
260 --version print the version of autoconf that created configure
261 Directory and file names:
262 --prefix=PREFIX install architecture-independent files in PREFIX
264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
266 --bindir=DIR user executables in DIR [EPREFIX/bin]
267 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
268 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
269 --datadir=DIR read-only architecture-independent data in DIR
271 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
272 --sharedstatedir=DIR modifiable architecture-independent data in DIR
274 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
275 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
276 --includedir=DIR C header files in DIR [PREFIX/include]
277 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
278 --infodir=DIR info documentation in DIR [PREFIX/info]
279 --mandir=DIR man documentation in DIR [PREFIX/man]
280 --srcdir=DIR find the sources in DIR [configure dir or ..]
281 --program-prefix=PREFIX prepend PREFIX to installed program names
282 --program-suffix=SUFFIX append SUFFIX to installed program names
283 --program-transform-name=PROGRAM
284 run sed PROGRAM on installed program names
288 --build=BUILD configure for building on BUILD [BUILD=HOST]
289 --host=HOST configure for HOST [guessed]
290 --target=TARGET configure for TARGET [TARGET=HOST]
291 Features and packages:
292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
296 --x-includes=DIR X include files are in DIR
297 --x-libraries=DIR X library files are in DIR
299 if test -n "$ac_help"; then
300 echo "--enable and --with options recognized:$ac_help"
304 -host | --host | --hos | --ho)
306 -host=* | --host=* | --hos=* | --ho=*)
309 -includedir | --includedir | --includedi | --included | --include \
310 | --includ | --inclu | --incl | --inc)
311 ac_prev=includedir ;;
312 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
313 | --includ=* | --inclu=* | --incl=* | --inc=*)
314 includedir="$ac_optarg" ;;
316 -infodir | --infodir | --infodi | --infod | --info | --inf)
318 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
319 infodir="$ac_optarg" ;;
321 -libdir | --libdir | --libdi | --libd)
323 -libdir=* | --libdir=* | --libdi=* | --libd=*)
324 libdir="$ac_optarg" ;;
326 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
327 | --libexe | --libex | --libe)
328 ac_prev=libexecdir ;;
329 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
330 | --libexe=* | --libex=* | --libe=*)
331 libexecdir="$ac_optarg" ;;
333 -localstatedir | --localstatedir | --localstatedi | --localstated \
334 | --localstate | --localstat | --localsta | --localst \
335 | --locals | --local | --loca | --loc | --lo)
336 ac_prev=localstatedir ;;
337 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
338 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
339 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
340 localstatedir="$ac_optarg" ;;
342 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
344 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
345 mandir="$ac_optarg" ;;
348 # Obsolete; use --without-fp.
351 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
355 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
356 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
359 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
360 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
361 | --oldin | --oldi | --old | --ol | --o)
362 ac_prev=oldincludedir ;;
363 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
364 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
365 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
366 oldincludedir="$ac_optarg" ;;
368 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
370 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
371 prefix="$ac_optarg" ;;
373 -program-prefix | --program-prefix | --program-prefi | --program-pref \
374 | --program-pre | --program-pr | --program-p)
375 ac_prev=program_prefix ;;
376 -program-prefix=* | --program-prefix=* | --program-prefi=* \
377 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
378 program_prefix="$ac_optarg" ;;
380 -program-suffix | --program-suffix | --program-suffi | --program-suff \
381 | --program-suf | --program-su | --program-s)
382 ac_prev=program_suffix ;;
383 -program-suffix=* | --program-suffix=* | --program-suffi=* \
384 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
385 program_suffix="$ac_optarg" ;;
387 -program-transform-name | --program-transform-name \
388 | --program-transform-nam | --program-transform-na \
389 | --program-transform-n | --program-transform- \
390 | --program-transform | --program-transfor \
391 | --program-transfo | --program-transf \
392 | --program-trans | --program-tran \
393 | --progr-tra | --program-tr | --program-t)
394 ac_prev=program_transform_name ;;
395 -program-transform-name=* | --program-transform-name=* \
396 | --program-transform-nam=* | --program-transform-na=* \
397 | --program-transform-n=* | --program-transform-=* \
398 | --program-transform=* | --program-transfor=* \
399 | --program-transfo=* | --program-transf=* \
400 | --program-trans=* | --program-tran=* \
401 | --progr-tra=* | --program-tr=* | --program-t=*)
402 program_transform_name="$ac_optarg" ;;
404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
405 | -silent | --silent | --silen | --sile | --sil)
408 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
410 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
412 sbindir="$ac_optarg" ;;
414 -sharedstatedir | --sharedstatedir | --sharedstatedi \
415 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
416 | --sharedst | --shareds | --shared | --share | --shar \
418 ac_prev=sharedstatedir ;;
419 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
420 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
421 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
423 sharedstatedir="$ac_optarg" ;;
425 -site | --site | --sit)
427 -site=* | --site=* | --sit=*)
430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
433 srcdir="$ac_optarg" ;;
435 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
436 | --syscon | --sysco | --sysc | --sys | --sy)
437 ac_prev=sysconfdir ;;
438 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
439 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
440 sysconfdir="$ac_optarg" ;;
442 -target | --target | --targe | --targ | --tar | --ta | --t)
444 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
445 target="$ac_optarg" ;;
447 -v | -verbose | --verbose | --verbos | --verbo | --verb)
450 -version | --version | --versio | --versi | --vers)
451 echo "configure generated by autoconf version 2.13.1"
455 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
456 # Reject names that are not valid shell variable names.
457 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
458 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
460 ac_package=`echo $ac_package| sed 's/-/_/g'`
465 eval "with_${ac_package}='$ac_optarg'" ;;
467 -without-* | --without-*)
468 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
473 ac_package=`echo $ac_package| sed 's/-/_/g'`
474 eval "with_${ac_package}=no" ;;
477 # Obsolete; use --with-x.
480 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
481 | --x-incl | --x-inc | --x-in | --x-i)
482 ac_prev=x_includes ;;
483 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
484 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
485 x_includes="$ac_optarg" ;;
487 -x-libraries | --x-libraries | --x-librarie | --x-librari \
488 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
489 ac_prev=x_libraries ;;
490 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
491 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
492 x_libraries="$ac_optarg" ;;
494 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
498 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
499 echo "configure: warning: $ac_option: invalid host type" 1>&2
501 if test "x$nonopt" != xNONE; then
502 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
510 if test -n "$ac_prev"; then
511 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
514 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
516 # File descriptor usage:
519 # 2 errors and warnings
520 # 3 some systems may open it to /dev/tty
521 # 4 used on the Kubota Titan
522 # 6 checking for... messages and results
523 # 5 compiler messages saved in config.log
524 if test "$silent" = yes; then
532 This file contains any messages produced by compilers while
533 running configure, to aid debugging if configure makes a mistake.
536 # Strip out --no-create and --no-recursion so they do not pile up.
537 # Also quote any args containing shell metacharacters.
542 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 | --no-cr | --no-c) ;;
544 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
545 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
546 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
547 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
548 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
553 # Only set these to C if already set. These must not be set unconditionally
554 # because not all systems understand e.g. LANG=C (notably SCO).
555 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
556 # Non-C LC_CTYPE values break the ctype check.
557 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
558 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
559 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
560 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
562 # confdefs.h avoids OS command line length limits that DEFS can exceed.
563 rm -rf conftest* confdefs.h
564 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
567 # A filename unique to this package, relative to the directory that
568 # configure is in, which we can look for to find out if srcdir is correct.
569 ac_unique_file=build/version
571 # Find the source files, if location was not specified.
572 if test -z "$srcdir"; then
573 ac_srcdir_defaulted=yes
574 # Try the directory containing this script, then its parent.
576 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
577 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
579 if test ! -r $srcdir/$ac_unique_file; then
583 ac_srcdir_defaulted=no
585 if test ! -r $srcdir/$ac_unique_file; then
586 if test "$ac_srcdir_defaulted" = yes; then
587 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
589 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
592 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
594 # Prefer explicitly selected file to automatically selected ones.
595 if test -z "$CONFIG_SITE"; then
596 if test "x$prefix" != xNONE; then
597 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
599 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
602 for ac_site_file in $CONFIG_SITE; do
603 if test -r "$ac_site_file"; then
604 echo "loading site script $ac_site_file"
611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
612 ac_cpp='$CPP $CPPFLAGS'
613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
615 cross_compiling=$ac_cv_prog_cc_cross
619 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
620 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
621 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
628 ac_n= ac_c='\c' ac_t=
632 # set unset (borrowed from autoconf 2.49c)
633 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
639 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
642 for ac_dir in build $srcdir/build; do
643 if test -f $ac_dir/install-sh; then
645 ac_install_sh="$ac_aux_dir/install-sh -c"
647 elif test -f $ac_dir/install.sh; then
649 ac_install_sh="$ac_aux_dir/install.sh -c"
651 elif test -f $ac_dir/shtool; then
653 ac_install_sh="$ac_aux_dir/shtool install -c"
657 if test -z "$ac_aux_dir"; then
658 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
660 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
661 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
662 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
664 OL_VERSION=`cat $ac_aux_dir/version`
665 if test -z "$OL_VERSION"; then
666 { echo "configure: error: could not determine version" 1>&2; exit 1; }
669 echo "Configuring OpenLDAP $OL_VERSION ..."
672 echo $ac_n "checking host system type""... $ac_c" 1>&6
673 echo "configure:674: checking host system type" >&5
674 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
676 # Make sure we can run config.sub.
677 if $ac_config_sub sun4 >/dev/null 2>&1; then :
678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
681 ac_cv_host_alias=$host
682 case "$ac_cv_host_alias" in
686 if ac_cv_host_alias=`$ac_config_guess`; then :
687 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
689 *) ac_cv_host_alias=$nonopt ;;
693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
694 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
698 echo $ac_n "(cached) $ac_c" 1>&6
701 echo "$ac_t""$ac_cv_host" 1>&6
704 host_alias=$ac_cv_host_alias
705 host_cpu=$ac_cv_host_cpu
706 host_vendor=$ac_cv_host_vendor
707 host_os=$ac_cv_host_os
713 echo $ac_n "checking target system type""... $ac_c" 1>&6
714 echo "configure:715: checking target system type" >&5
715 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
717 # Make sure we can run config.sub.
718 if $ac_config_sub sun4 >/dev/null 2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 ac_cv_target_alias=$target
723 case "$ac_cv_target_alias" in
727 ac_cv_target_alias=$host_alias ;;
729 *) ac_cv_target_alias=$nonopt ;;
733 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
734 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo $ac_n "(cached) $ac_c" 1>&6
741 echo "$ac_t""$ac_cv_target" 1>&6
744 target_alias=$ac_cv_target_alias
745 target_cpu=$ac_cv_target_cpu
746 target_vendor=$ac_cv_target_vendor
747 target_os=$ac_cv_target_os
753 echo $ac_n "checking build system type""... $ac_c" 1>&6
754 echo "configure:755: checking build system type" >&5
755 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
757 # Make sure we can run config.sub.
758 if $ac_config_sub sun4 >/dev/null 2>&1; then :
759 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
762 ac_cv_build_alias=$build
763 case "$ac_cv_build_alias" in
767 ac_cv_build_alias=$host_alias ;;
769 *) ac_cv_build_alias=$nonopt ;;
773 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
774 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778 echo $ac_n "(cached) $ac_c" 1>&6
781 echo "$ac_t""$ac_cv_build" 1>&6
784 build_alias=$ac_cv_build_alias
785 build_cpu=$ac_cv_build_cpu
786 build_vendor=$ac_cv_build_vendor
787 build_os=$ac_cv_build_os
793 # Do some error checking and defaulting for the host and target type.
795 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
798 # 1. You are not allowed to specify --host, --target, and nonopt at the
800 # 2. Host defaults to nonopt.
801 # 3. If nonopt is not specified, then host defaults to the current host,
802 # as determined by config.guess.
803 # 4. Target and build default to nonopt.
804 # 5. If nonopt is not specified, then target and build default to host.
806 # The aliases save the names the user supplied, while $host etc.
807 # will get canonicalized.
808 case $host---$target---$nonopt in
809 NONE---*---* | *---NONE---* | *---*---NONE) ;;
810 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
813 test "$host_alias" != "$target_alias" &&
814 test "$program_prefix$program_suffix$program_transform_name" = \
816 program_prefix=${target_alias}-
819 # Find a good install program. We prefer a C program (faster),
820 # so one script is as good as another. But avoid the broken or
821 # incompatible versions:
822 # SysV /etc/install, /usr/sbin/install
823 # SunOS /usr/etc/install
826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
829 # ./install, which can be erroneously created by make from ./install.sh.
830 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
831 echo "configure:832: checking for a BSD compatible install" >&5
832 if test -z "$INSTALL"; then
833 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
837 for ac_dir in $PATH; do
838 # Account for people who put trailing slashes in PATH elements.
840 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
842 # OSF1 and SCO ODT 3.0 have their own names for install.
843 # Don't use installbsd from OSF since it installs stuff as root
845 for ac_prog in ginstall scoinst install; do
846 if test -f $ac_dir/$ac_prog; then
847 if test $ac_prog = install &&
848 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
849 # AIX install. It has an incompatible calling convention.
851 elif test $ac_prog = install &&
852 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
853 # program-specific install script used by HP pwplus--don't use.
856 ac_cv_path_install="$ac_dir/$ac_prog -c"
867 if test "${ac_cv_path_install+set}" = set; then
868 INSTALL="$ac_cv_path_install"
870 # As a last resort, use the slow shell script. We don't cache a
871 # path for INSTALL within a source directory, because that will
872 # break other packages using the cache if that directory is
873 # removed, or if the path is relative.
874 INSTALL="$ac_install_sh"
877 echo "$ac_t""$INSTALL" 1>&6
879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
880 # It thinks the first close brace ends the variable substitution.
881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
887 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
888 echo "configure:889: checking whether build environment is sane" >&5
891 echo timestamp > conftestfile
892 # Do `set' in a subshell so we don't clobber the current shell's
893 # arguments. Must try -L first in case configure is actually a
894 # symlink; some systems play weird games with the mod time of symlinks
895 # (eg FreeBSD returns the mod time of the symlink's containing
898 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
899 if test "$*" = "X"; then
901 set X `ls -t $srcdir/configure conftestfile`
903 if test "$*" != "X $srcdir/configure conftestfile" \
904 && test "$*" != "X conftestfile $srcdir/configure"; then
906 # If neither matched, then we have a broken ls. This can happen
907 # if, for instance, CONFIG_SHELL is bash and it inherits a
908 # broken ls alias from the environment. This has actually
909 # happened. Such a system could not be considered "sane".
910 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
911 alias in your environment" 1>&2; exit 1; }
914 test "$2" = conftestfile
920 { echo "configure: error: newly created file is older than distributed files!
921 Check your system clock" 1>&2; exit 1; }
924 echo "$ac_t""yes" 1>&6
925 if test "$program_transform_name" = s,x,x,; then
926 program_transform_name=
928 # Double any \ or $. echo might interpret backslashes.
929 cat <<\EOF_SED > conftestsed
930 s,\\,\\\\,g; s,\$,$$,g
932 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
935 test "$program_prefix" != NONE &&
936 program_transform_name="s,^,${program_prefix},;$program_transform_name"
937 # Use a double $ so make ignores it.
938 test "$program_suffix" != NONE &&
939 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
941 # sed with no file args requires a program.
942 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
944 for ac_prog in mawk gawk nawk awk
946 # Extract the first word of "$ac_prog", so it can be a program name with args.
947 set dummy $ac_prog; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 if test -n "$AWK"; then
954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 for ac_dir in $ac_dummy; do
959 test -z "$ac_dir" && ac_dir=.
960 if test -f $ac_dir/$ac_word; then
961 ac_cv_prog_AWK="$ac_prog"
968 AWK="$ac_cv_prog_AWK"
969 if test -n "$AWK"; then
970 echo "$ac_t""$AWK" 1>&6
972 echo "$ac_t""no" 1>&6
975 test -n "$AWK" && break
978 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
979 echo "configure:980: checking whether ${MAKE-make} sets \${MAKE}" >&5
980 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
981 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 cat > conftestmake <<\EOF
986 @echo 'ac_maketemp="${MAKE}"'
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
990 if test -n "$ac_maketemp"; then
991 eval ac_cv_prog_make_${ac_make}_set=yes
993 eval ac_cv_prog_make_${ac_make}_set=no
997 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
998 echo "$ac_t""yes" 1>&6
1001 echo "$ac_t""no" 1>&6
1002 SET_MAKE="MAKE=${MAKE-make}"
1011 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1012 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1017 missing_dir=`cd $ac_aux_dir && pwd`
1018 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1019 echo "configure:1020: checking for working aclocal" >&5
1020 # Run test in a subshell; some versions of sh will print an error if
1021 # an executable is not found, even if stderr is redirected.
1022 # Redirect stdin to placate older versions of autoconf. Sigh.
1023 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1025 echo "$ac_t""found" 1>&6
1027 ACLOCAL="$missing_dir/missing aclocal"
1028 echo "$ac_t""missing" 1>&6
1031 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1032 echo "configure:1033: checking for working autoconf" >&5
1033 # Run test in a subshell; some versions of sh will print an error if
1034 # an executable is not found, even if stderr is redirected.
1035 # Redirect stdin to placate older versions of autoconf. Sigh.
1036 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1038 echo "$ac_t""found" 1>&6
1040 AUTOCONF="$missing_dir/missing autoconf"
1041 echo "$ac_t""missing" 1>&6
1044 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1045 echo "configure:1046: checking for working automake" >&5
1046 # Run test in a subshell; some versions of sh will print an error if
1047 # an executable is not found, even if stderr is redirected.
1048 # Redirect stdin to placate older versions of autoconf. Sigh.
1049 if (automake --version) < /dev/null > /dev/null 2>&1; then
1051 echo "$ac_t""found" 1>&6
1053 AUTOMAKE="$missing_dir/missing automake"
1054 echo "$ac_t""missing" 1>&6
1057 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1058 echo "configure:1059: checking for working autoheader" >&5
1059 # Run test in a subshell; some versions of sh will print an error if
1060 # an executable is not found, even if stderr is redirected.
1061 # Redirect stdin to placate older versions of autoconf. Sigh.
1062 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1063 AUTOHEADER=autoheader
1064 echo "$ac_t""found" 1>&6
1066 AUTOHEADER="$missing_dir/missing autoheader"
1067 echo "$ac_t""missing" 1>&6
1070 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1071 echo "configure:1072: checking for working makeinfo" >&5
1072 # Run test in a subshell; some versions of sh will print an error if
1073 # an executable is not found, even if stderr is redirected.
1074 # Redirect stdin to placate older versions of autoconf. Sigh.
1075 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1077 echo "$ac_t""found" 1>&6
1079 MAKEINFO="$missing_dir/missing makeinfo"
1080 echo "$ac_t""missing" 1>&6
1083 install_sh="$missing_dir/install-sh"
1084 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1086 for ac_prog in gnutar gtar tar
1088 # Extract the first word of "$ac_prog", so it can be a program name with args.
1089 set dummy $ac_prog; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$AMTAR"; then
1096 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_AMTAR="$ac_prog"
1110 AMTAR="$ac_cv_prog_AMTAR"
1111 if test -n "$AMTAR"; then
1112 echo "$ac_t""$AMTAR" 1>&6
1114 echo "$ac_t""no" 1>&6
1117 test -n "$AMTAR" && break
1122 if test -n "$AMTAR"; then
1123 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1128 cat >> confdefs.h <<EOF
1129 #define OPENLDAP_PACKAGE "$PACKAGE"
1132 cat >> confdefs.h <<EOF
1133 #define OPENLDAP_VERSION "$VERSION"
1139 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1140 echo "configure:1141: checking configure arguments" >&5
1145 ldap_subdir="/openldap"
1147 # Check whether --with-subdir or --without-subdir was given.
1148 if test "${with_subdir+set}" = set; then
1149 withval="$with_subdir"
1156 ldap_subdir="$withval"
1159 ldap_subdir="/$withval"
1166 # OpenLDAP --enable-debug
1167 # Check whether --enable-debug or --disable-debug was given.
1168 if test "${enable_debug+set}" = set; then
1169 enableval="$enable_debug"
1172 for ol_val in auto yes no ; do
1173 if test "$enableval" = "$ol_val" ; then
1177 if test "$ol_arg" = "invalid" ; then
1178 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1180 ol_enable_debug="$ol_arg"
1183 ol_enable_debug="yes"
1185 # end --enable-debug
1186 # OpenLDAP --enable-syslog
1187 # Check whether --enable-syslog or --disable-syslog was given.
1188 if test "${enable_syslog+set}" = set; then
1189 enableval="$enable_syslog"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1200 ol_enable_syslog="$ol_arg"
1203 ol_enable_syslog="auto"
1205 # end --enable-syslog
1206 # OpenLDAP --enable-proctitle
1207 # Check whether --enable-proctitle or --disable-proctitle was given.
1208 if test "${enable_proctitle+set}" = set; then
1209 enableval="$enable_proctitle"
1212 for ol_val in auto yes no ; do
1213 if test "$enableval" = "$ol_val" ; then
1217 if test "$ol_arg" = "invalid" ; then
1218 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1220 ol_enable_proctitle="$ol_arg"
1223 ol_enable_proctitle="yes"
1225 # end --enable-proctitle
1226 # OpenLDAP --enable-cache
1227 # Check whether --enable-cache or --disable-cache was given.
1228 if test "${enable_cache+set}" = set; then
1229 enableval="$enable_cache"
1232 for ol_val in auto yes no ; do
1233 if test "$enableval" = "$ol_val" ; then
1237 if test "$ol_arg" = "invalid" ; then
1238 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1240 ol_enable_cache="$ol_arg"
1243 ol_enable_cache="yes"
1245 # end --enable-cache
1246 # OpenLDAP --enable-referrals
1247 # Check whether --enable-referrals or --disable-referrals was given.
1248 if test "${enable_referrals+set}" = set; then
1249 enableval="$enable_referrals"
1252 for ol_val in auto yes no ; do
1253 if test "$enableval" = "$ol_val" ; then
1257 if test "$ol_arg" = "invalid" ; then
1258 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1260 ol_enable_referrals="$ol_arg"
1263 ol_enable_referrals="yes"
1265 # end --enable-referrals
1266 # OpenLDAP --enable-kbind
1267 # Check whether --enable-kbind or --disable-kbind was given.
1268 if test "${enable_kbind+set}" = set; then
1269 enableval="$enable_kbind"
1272 for ol_val in auto yes no ; do
1273 if test "$enableval" = "$ol_val" ; then
1277 if test "$ol_arg" = "invalid" ; then
1278 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1280 ol_enable_kbind="$ol_arg"
1283 ol_enable_kbind="no"
1285 # end --enable-kbind
1286 # OpenLDAP --enable-ipv6
1287 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1288 if test "${enable_ipv6+set}" = set; then
1289 enableval="$enable_ipv6"
1292 for ol_val in auto yes no ; do
1293 if test "$enableval" = "$ol_val" ; then
1297 if test "$ol_arg" = "invalid" ; then
1298 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1300 ol_enable_ipv6="$ol_arg"
1303 ol_enable_ipv6="auto"
1306 # OpenLDAP --enable-local
1307 # Check whether --enable-local or --disable-local was given.
1308 if test "${enable_local+set}" = set; then
1309 enableval="$enable_local"
1312 for ol_val in auto yes no ; do
1313 if test "$enableval" = "$ol_val" ; then
1317 if test "$ol_arg" = "invalid" ; then
1318 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1320 ol_enable_local="$ol_arg"
1323 ol_enable_local="auto"
1325 # end --enable-local
1326 # OpenLDAP --enable-x_compile
1327 # Check whether --enable-x_compile or --disable-x_compile was given.
1328 if test "${enable_x_compile+set}" = set; then
1329 enableval="$enable_x_compile"
1332 for ol_val in yes no ; do
1333 if test "$enableval" = "$ol_val" ; then
1337 if test "$ol_arg" = "invalid" ; then
1338 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1340 ol_enable_x_compile="$ol_arg"
1343 ol_enable_x_compile="no"
1345 # end --enable-x_compile
1348 # OpenLDAP --with-cyrus_sasl
1349 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1350 if test "${with_cyrus_sasl+set}" = set; then
1351 withval="$with_cyrus_sasl"
1354 for ol_val in auto yes no ; do
1355 if test "$withval" = "$ol_val" ; then
1359 if test "$ol_arg" = "invalid" ; then
1360 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1362 ol_with_cyrus_sasl="$ol_arg"
1365 ol_with_cyrus_sasl="auto"
1367 # end --with-cyrus_sasl
1369 # OpenLDAP --with-fetch
1370 # Check whether --with-fetch or --without-fetch was given.
1371 if test "${with_fetch+set}" = set; then
1372 withval="$with_fetch"
1375 for ol_val in auto yes no ; do
1376 if test "$withval" = "$ol_val" ; then
1380 if test "$ol_arg" = "invalid" ; then
1381 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1383 ol_with_fetch="$ol_arg"
1386 ol_with_fetch="auto"
1390 # OpenLDAP --with-kerberos
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1396 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1397 if test "$withval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1404 ol_with_kerberos="$ol_arg"
1407 ol_with_kerberos="auto"
1409 # end --with-kerberos
1411 # OpenLDAP --with-readline
1412 # Check whether --with-readline or --without-readline was given.
1413 if test "${with_readline+set}" = set; then
1414 withval="$with_readline"
1417 for ol_val in auto yes no ; do
1418 if test "$withval" = "$ol_val" ; then
1422 if test "$ol_arg" = "invalid" ; then
1423 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1425 ol_with_readline="$ol_arg"
1428 ol_with_readline="auto"
1430 # end --with-readline
1432 # OpenLDAP --with-threads
1433 # Check whether --with-threads or --without-threads was given.
1434 if test "${with_threads+set}" = set; then
1435 withval="$with_threads"
1438 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1439 if test "$withval" = "$ol_val" ; then
1443 if test "$ol_arg" = "invalid" ; then
1444 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1446 ol_with_threads="$ol_arg"
1449 ol_with_threads="auto"
1451 # end --with-threads
1453 # OpenLDAP --with-tls
1454 # Check whether --with-tls or --without-tls was given.
1455 if test "${with_tls+set}" = set; then
1459 for ol_val in auto ssleay openssl yes no ; do
1460 if test "$withval" = "$ol_val" ; then
1464 if test "$ol_arg" = "invalid" ; then
1465 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1467 ol_with_tls="$ol_arg"
1474 # OpenLDAP --with-yielding_select
1475 # Check whether --with-yielding_select or --without-yielding_select was given.
1476 if test "${with_yielding_select+set}" = set; then
1477 withval="$with_yielding_select"
1480 for ol_val in auto yes no manual ; do
1481 if test "$withval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1488 ol_with_yielding_select="$ol_arg"
1491 ol_with_yielding_select="auto"
1493 # end --with-yielding_select
1497 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1498 if test "${with_xxslapdoptions+set}" = set; then
1499 withval="$with_xxslapdoptions"
1503 # OpenLDAP --enable-slapd
1504 # Check whether --enable-slapd or --disable-slapd was given.
1505 if test "${enable_slapd+set}" = set; then
1506 enableval="$enable_slapd"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1517 ol_enable_slapd="$ol_arg"
1520 ol_enable_slapd="yes"
1522 # end --enable-slapd
1523 # OpenLDAP --enable-cleartext
1524 # Check whether --enable-cleartext or --disable-cleartext was given.
1525 if test "${enable_cleartext+set}" = set; then
1526 enableval="$enable_cleartext"
1529 for ol_val in auto yes no ; do
1530 if test "$enableval" = "$ol_val" ; then
1534 if test "$ol_arg" = "invalid" ; then
1535 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1537 ol_enable_cleartext="$ol_arg"
1540 ol_enable_cleartext="yes"
1542 # end --enable-cleartext
1543 # OpenLDAP --enable-crypt
1544 # Check whether --enable-crypt or --disable-crypt was given.
1545 if test "${enable_crypt+set}" = set; then
1546 enableval="$enable_crypt"
1549 for ol_val in auto yes no ; do
1550 if test "$enableval" = "$ol_val" ; then
1554 if test "$ol_arg" = "invalid" ; then
1555 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1557 ol_enable_crypt="$ol_arg"
1560 ol_enable_crypt="auto"
1562 # end --enable-crypt
1563 # OpenLDAP --enable-kpasswd
1564 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1565 if test "${enable_kpasswd+set}" = set; then
1566 enableval="$enable_kpasswd"
1569 for ol_val in auto yes no ; do
1570 if test "$enableval" = "$ol_val" ; then
1574 if test "$ol_arg" = "invalid" ; then
1575 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1577 ol_enable_kpasswd="$ol_arg"
1580 ol_enable_kpasswd="no"
1582 # end --enable-kpasswd
1583 # OpenLDAP --enable-spasswd
1584 # Check whether --enable-spasswd or --disable-spasswd was given.
1585 if test "${enable_spasswd+set}" = set; then
1586 enableval="$enable_spasswd"
1589 for ol_val in auto yes no ; do
1590 if test "$enableval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1597 ol_enable_spasswd="$ol_arg"
1600 ol_enable_spasswd="no"
1602 # end --enable-spasswd
1603 # OpenLDAP --enable-modules
1604 # Check whether --enable-modules or --disable-modules was given.
1605 if test "${enable_modules+set}" = set; then
1606 enableval="$enable_modules"
1609 for ol_val in auto yes no ; do
1610 if test "$enableval" = "$ol_val" ; then
1614 if test "$ol_arg" = "invalid" ; then
1615 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1617 ol_enable_modules="$ol_arg"
1620 ol_enable_modules="no"
1622 # end --enable-modules
1623 # OpenLDAP --enable-phonetic
1624 # Check whether --enable-phonetic or --disable-phonetic was given.
1625 if test "${enable_phonetic+set}" = set; then
1626 enableval="$enable_phonetic"
1629 for ol_val in auto yes no ; do
1630 if test "$enableval" = "$ol_val" ; then
1634 if test "$ol_arg" = "invalid" ; then
1635 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1637 ol_enable_phonetic="$ol_arg"
1640 ol_enable_phonetic="no"
1642 # end --enable-phonetic
1643 # OpenLDAP --enable-rlookups
1644 # Check whether --enable-rlookups or --disable-rlookups was given.
1645 if test "${enable_rlookups+set}" = set; then
1646 enableval="$enable_rlookups"
1649 for ol_val in auto yes no ; do
1650 if test "$enableval" = "$ol_val" ; then
1654 if test "$ol_arg" = "invalid" ; then
1655 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1657 ol_enable_rlookups="$ol_arg"
1660 ol_enable_rlookups="no"
1662 # end --enable-rlookups
1663 # OpenLDAP --enable-aci
1664 # Check whether --enable-aci or --disable-aci was given.
1665 if test "${enable_aci+set}" = set; then
1666 enableval="$enable_aci"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1677 ol_enable_aci="$ol_arg"
1683 # OpenLDAP --enable-wrappers
1684 # Check whether --enable-wrappers or --disable-wrappers was given.
1685 if test "${enable_wrappers+set}" = set; then
1686 enableval="$enable_wrappers"
1689 for ol_val in auto yes no ; do
1690 if test "$enableval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1697 ol_enable_wrappers="$ol_arg"
1700 ol_enable_wrappers="no"
1702 # end --enable-wrappers
1703 # OpenLDAP --enable-dynamic
1704 # Check whether --enable-dynamic or --disable-dynamic was given.
1705 if test "${enable_dynamic+set}" = set; then
1706 enableval="$enable_dynamic"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1717 ol_enable_dynamic="$ol_arg"
1720 ol_enable_dynamic="no"
1722 # end --enable-dynamic
1724 # OpenLDAP --enable-dnssrv
1725 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1726 if test "${enable_dnssrv+set}" = set; then
1727 enableval="$enable_dnssrv"
1730 for ol_val in auto yes no ; do
1731 if test "$enableval" = "$ol_val" ; then
1735 if test "$ol_arg" = "invalid" ; then
1736 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1738 ol_enable_dnssrv="$ol_arg"
1741 ol_enable_dnssrv="no"
1743 # end --enable-dnssrv
1744 # OpenLDAP --with-dnssrv_module
1745 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1746 if test "${with_dnssrv_module+set}" = set; then
1747 withval="$with_dnssrv_module"
1750 for ol_val in static dynamic ; do
1751 if test "$withval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1758 ol_with_dnssrv_module="$ol_arg"
1761 ol_with_dnssrv_module="static"
1763 # end --with-dnssrv_module
1765 # OpenLDAP --enable-ldap
1766 # Check whether --enable-ldap or --disable-ldap was given.
1767 if test "${enable_ldap+set}" = set; then
1768 enableval="$enable_ldap"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1779 ol_enable_ldap="$ol_arg"
1785 # OpenLDAP --with-ldap_module
1786 # Check whether --with-ldap_module or --without-ldap_module was given.
1787 if test "${with_ldap_module+set}" = set; then
1788 withval="$with_ldap_module"
1791 for ol_val in static dynamic ; do
1792 if test "$withval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1799 ol_with_ldap_module="$ol_arg"
1802 ol_with_ldap_module="static"
1804 # end --with-ldap_module
1806 # OpenLDAP --enable-ldbm
1807 # Check whether --enable-ldbm or --disable-ldbm was given.
1808 if test "${enable_ldbm+set}" = set; then
1809 enableval="$enable_ldbm"
1812 for ol_val in auto yes no ; do
1813 if test "$enableval" = "$ol_val" ; then
1817 if test "$ol_arg" = "invalid" ; then
1818 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1820 ol_enable_ldbm="$ol_arg"
1823 ol_enable_ldbm="yes"
1826 # OpenLDAP --with-ldbm_api
1827 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1828 if test "${with_ldbm_api+set}" = set; then
1829 withval="$with_ldbm_api"
1832 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1833 if test "$withval" = "$ol_val" ; then
1837 if test "$ol_arg" = "invalid" ; then
1838 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1840 ol_with_ldbm_api="$ol_arg"
1843 ol_with_ldbm_api="auto"
1845 # end --with-ldbm_api
1847 # OpenLDAP --with-ldbm_module
1848 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1849 if test "${with_ldbm_module+set}" = set; then
1850 withval="$with_ldbm_module"
1853 for ol_val in static dynamic ; do
1854 if test "$withval" = "$ol_val" ; then
1858 if test "$ol_arg" = "invalid" ; then
1859 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1861 ol_with_ldbm_module="$ol_arg"
1864 ol_with_ldbm_module="static"
1866 # end --with-ldbm_module
1868 # OpenLDAP --with-ldbm_type
1869 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1870 if test "${with_ldbm_type+set}" = set; then
1871 withval="$with_ldbm_type"
1874 for ol_val in auto btree hash ; do
1875 if test "$withval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1882 ol_with_ldbm_type="$ol_arg"
1885 ol_with_ldbm_type="auto"
1887 # end --with-ldbm_type
1889 # OpenLDAP --enable-passwd
1890 # Check whether --enable-passwd or --disable-passwd was given.
1891 if test "${enable_passwd+set}" = set; then
1892 enableval="$enable_passwd"
1895 for ol_val in auto yes no ; do
1896 if test "$enableval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1903 ol_enable_passwd="$ol_arg"
1906 ol_enable_passwd="no"
1908 # end --enable-passwd
1909 # OpenLDAP --with-passwd_module
1910 # Check whether --with-passwd_module or --without-passwd_module was given.
1911 if test "${with_passwd_module+set}" = set; then
1912 withval="$with_passwd_module"
1915 for ol_val in static dynamic ; do
1916 if test "$withval" = "$ol_val" ; then
1920 if test "$ol_arg" = "invalid" ; then
1921 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1923 ol_with_passwd_module="$ol_arg"
1926 ol_with_passwd_module="static"
1928 # end --with-passwd_module
1930 # OpenLDAP --enable-shell
1931 # Check whether --enable-shell or --disable-shell was given.
1932 if test "${enable_shell+set}" = set; then
1933 enableval="$enable_shell"
1936 for ol_val in auto yes no ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1944 ol_enable_shell="$ol_arg"
1947 ol_enable_shell="no"
1949 # end --enable-shell
1950 # OpenLDAP --with-shell_module
1951 # Check whether --with-shell_module or --without-shell_module was given.
1952 if test "${with_shell_module+set}" = set; then
1953 withval="$with_shell_module"
1956 for ol_val in static dynamic ; do
1957 if test "$withval" = "$ol_val" ; then
1961 if test "$ol_arg" = "invalid" ; then
1962 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1964 ol_with_shell_module="$ol_arg"
1967 ol_with_shell_module="static"
1969 # end --with-shell_module
1971 # OpenLDAP --enable-sql
1972 # Check whether --enable-sql or --disable-sql was given.
1973 if test "${enable_sql+set}" = set; then
1974 enableval="$enable_sql"
1977 for ol_val in auto yes no ; do
1978 if test "$enableval" = "$ol_val" ; then
1982 if test "$ol_arg" = "invalid" ; then
1983 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
1985 ol_enable_sql="$ol_arg"
1991 # OpenLDAP --with-sql_module
1992 # Check whether --with-sql_module or --without-sql_module was given.
1993 if test "${with_sql_module+set}" = set; then
1994 withval="$with_sql_module"
1997 for ol_val in static dynamic ; do
1998 if test "$withval" = "$ol_val" ; then
2002 if test "$ol_arg" = "invalid" ; then
2003 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2005 ol_with_sql_module="$ol_arg"
2008 ol_with_sql_module="static"
2010 # end --with-sql_module
2013 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2014 if test "${with_xxslurpdoptions+set}" = set; then
2015 withval="$with_xxslurpdoptions"
2019 # OpenLDAP --enable-slurpd
2020 # Check whether --enable-slurpd or --disable-slurpd was given.
2021 if test "${enable_slurpd+set}" = set; then
2022 enableval="$enable_slurpd"
2025 for ol_val in auto yes no ; do
2026 if test "$enableval" = "$ol_val" ; then
2030 if test "$ol_arg" = "invalid" ; then
2031 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2033 ol_enable_slurpd="$ol_arg"
2036 ol_enable_slurpd="auto"
2038 # end --enable-slurpd
2040 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2041 if test "${with_xxliboptions+set}" = set; then
2042 withval="$with_xxliboptions"
2046 # Check whether --enable-static or --disable-static was given.
2047 if test "${enable_static+set}" = set; then
2048 enableval="$enable_static"
2049 p=${PACKAGE-default}
2050 case "$enableval" in
2051 yes) enable_static=yes ;;
2052 no) enable_static=no ;;
2055 # Look at the argument we got. We use all the common list separators.
2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2057 for pkg in $enableval; do
2058 if test "X$pkg" = "X$p"; then
2069 # Check whether --enable-shared or --disable-shared was given.
2070 if test "${enable_shared+set}" = set; then
2071 enableval="$enable_shared"
2072 p=${PACKAGE-default}
2073 case "$enableval" in
2074 yes) enable_shared=yes ;;
2075 no) enable_shared=no ;;
2078 # Look at the argument we got. We use all the common list separators.
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2080 for pkg in $enableval; do
2081 if test "X$pkg" = "X$p"; then
2095 if test $ol_enable_slapd = no ; then
2096 if test $ol_enable_dnssrv = yes ; then
2097 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2099 if test $ol_enable_ldap = yes ; then
2100 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2102 if test $ol_enable_ldbm = yes ; then
2103 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2105 if test $ol_enable_passwd = yes ; then
2106 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2108 if test $ol_enable_shell = yes ; then
2109 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2111 if test $ol_enable_sql = yes ; then
2112 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2114 if test $ol_enable_modules = yes ; then
2115 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2117 if test $ol_enable_multimaster = yes ; then
2118 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2120 if test $ol_enable_wrappers = yes ; then
2121 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2123 if test $ol_enable_phonetic = yes ; then
2124 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2126 if test $ol_enable_rlookups = yes ; then
2127 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2129 if test $ol_enable_aci = yes ; then
2130 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2132 if test $ol_with_ldbm_api != auto ; then
2133 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2135 if test $ol_with_ldbm_type != auto ; then
2136 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2138 if test $ol_with_dnssrv_module != static ; then
2139 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2141 if test $ol_with_ldap_module != static ; then
2142 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2144 if test $ol_with_ldbm_module != static ; then
2145 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2147 if test $ol_with_passwd_module != static ; then
2148 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2150 if test $ol_with_shell_module != static ; then
2151 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2153 if test $ol_with_sql_module != static ; then
2154 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2156 if test $ol_enable_slurpd = yes ; then
2157 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2160 # force settings to no
2168 ol_enable_modules=no
2169 ol_enable_phonetic=no
2170 ol_enable_rlookups=no
2172 ol_enable_wrappers=no
2173 ol_enable_dynamic=no
2176 ol_with_ldbm_type=no
2178 ol_with_dnssrv_module=static
2179 ol_with_ldap_module=static
2180 ol_with_ldbm_module=static
2181 ol_with_passwd_module=static
2182 ol_with_shell_module=static
2183 ol_with_sql_module=static
2187 elif test $ol_enable_ldbm = no ; then
2189 if test $ol_with_ldbm_api != auto ; then
2190 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2193 if test $ol_with_ldbm_type != auto ; then
2194 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2197 if test $ol_with_ldbm_module != static ; then
2198 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2201 if test $ol_enable_modules != yes -a \
2202 $ol_enable_dnssrv = no -a \
2203 $ol_enable_ldap = no -a \
2204 $ol_enable_passwd = no -a \
2205 $ol_enable_shell = no -a \
2206 $ol_enable_sql = no ; then
2207 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2211 ol_with_ldbm_type=no
2212 ol_with_ldbm_module=static
2215 if test $ol_with_ldbm_api = gdbm -a \
2216 $ol_with_ldbm_type = btree ; then
2217 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2219 if test $ol_with_ldbm_api = mdbm -a \
2220 $ol_with_ldbm_type = btree ; then
2221 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2223 if test $ol_with_ldbm_api = ndbm -a \
2224 $ol_with_ldbm_type = btree ; then
2225 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2229 if test $ol_enable_slurpd = yes ; then
2230 if test $ol_with_threads = no ; then
2231 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2235 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2236 if test $ol_with_kerberos = no ; then
2237 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2239 ol_with_kerberos=yes
2240 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2241 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2242 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2247 if test $ol_enable_spasswd = yes ; then
2248 if test $ol_with_cyrus_sasl = no ; then
2249 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2251 ol_with_cyrus_sasl=yes
2254 echo "$ac_t""done" 1>&6
2277 BUILD_DNSSRV_DYNAMIC=static
2278 BUILD_LDAP_DYNAMIC=static
2279 BUILD_LDBM_DYNAMIC=static
2280 BUILD_PASSWD_DYNAMIC=static
2281 BUILD_SHELL_DYNAMIC=static
2282 BUILD_SQL_DYNAMIC=static
2284 SLAPD_MODULES_LDFLAGS=
2285 SLAPD_MODULES_CPPFLAGS=
2303 cat >> confdefs.h <<\EOF
2304 #define HAVE_MKVERSION 1
2312 *-*-aix*) if test -z "$CC" ; then
2313 case "$ol_with_threads" in
2314 auto | yes | posix) ol_aix_threads=yes ;;
2320 if test $ol_aix_threads = yes ; then
2321 if test -z "${CC}" ; then
2322 for ac_prog in cc_r xlc_r cc
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_CC="$ac_prog"
2347 if test -n "$CC"; then
2348 echo "$ac_t""$CC" 1>&6
2350 echo "$ac_t""no" 1>&6
2353 test -n "$CC" && break
2357 if test "$CC" = cc ; then
2358 if test $ol_with_threads != auto ; then
2359 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2361 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2367 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2368 ol_with_threads=posix
2369 ol_cv_pthread_create=yes
2373 if test -z "${CC}"; then
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_CC="$ac_prog"
2399 if test -n "$CC"; then
2400 echo "$ac_t""$CC" 1>&6
2402 echo "$ac_t""no" 1>&6
2405 test -n "$CC" && break
2413 # Check whether --enable-fast-install or --disable-fast-install was given.
2414 if test "${enable_fast_install+set}" = set; then
2415 enableval="$enable_fast_install"
2416 p=${PACKAGE-default}
2417 case "$enableval" in
2418 yes) enable_fast_install=yes ;;
2419 no) enable_fast_install=no ;;
2421 enable_fast_install=no
2422 # Look at the argument we got. We use all the common list separators.
2423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2424 for pkg in $enableval; do
2425 if test "X$pkg" = "X$p"; then
2426 enable_fast_install=yes
2433 enable_fast_install=yes
2436 # Extract the first word of "ranlib", so it can be a program name with args.
2437 set dummy ranlib; ac_word=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 if test -n "$RANLIB"; then
2444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2448 for ac_dir in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir=.
2450 if test -f $ac_dir/$ac_word; then
2451 ac_cv_prog_RANLIB="ranlib"
2456 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2459 RANLIB="$ac_cv_prog_RANLIB"
2460 if test -n "$RANLIB"; then
2461 echo "$ac_t""$RANLIB" 1>&6
2463 echo "$ac_t""no" 1>&6
2466 # Extract the first word of "gcc", so it can be a program name with args.
2467 set dummy gcc; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2489 if test -n "$CC"; then
2490 echo "$ac_t""$CC" 1>&6
2492 echo "$ac_t""no" 1>&6
2495 if test -z "$CC"; then
2496 # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_word" >&5
2500 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2509 for ac_dir in $ac_dummy; do
2510 test -z "$ac_dir" && ac_dir=.
2511 if test -f $ac_dir/$ac_word; then
2512 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2513 ac_prog_rejected=yes
2521 if test $ac_prog_rejected = yes; then
2522 # We found a bogon in the path, so make sure we never use it.
2523 set dummy $ac_cv_prog_CC
2525 if test $# -gt 0; then
2526 # We chose a different compiler from the bogus one.
2527 # However, it has the same basename, so the bogon will be chosen
2528 # first if we set CC to just the basename; use the full file name.
2530 set dummy "$ac_dir/$ac_word" "$@"
2538 if test -n "$CC"; then
2539 echo "$ac_t""$CC" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 if test -z "$CC"; then
2545 case "`uname -s`" in
2546 *win32* | *WIN32* | *CYGWIN*)
2547 # Extract the first word of "cl", so it can be a program name with args.
2548 set dummy cl; ac_word=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2559 for ac_dir in $ac_dummy; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2570 if test -n "$CC"; then
2571 echo "$ac_t""$CC" 1>&6
2573 echo "$ac_t""no" 1>&6
2578 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2581 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2582 echo "configure:2583: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2589 cross_compiling=$ac_cv_prog_cc_cross
2591 cat > conftest.$ac_ext << EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 ac_cv_prog_cc_works=yes
2600 # If we can't run a trivial program, we are probably using a cross compiler.
2601 if (./conftest; exit) 2>/dev/null; then
2602 ac_cv_prog_cc_cross=no
2604 ac_cv_prog_cc_cross=yes
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 ac_cv_prog_cc_works=no
2613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2617 cross_compiling=$ac_cv_prog_cc_cross
2619 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2620 if test $ac_cv_prog_cc_works = no; then
2621 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2623 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2624 echo "configure:2625: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2625 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2626 cross_compiling=$ac_cv_prog_cc_cross
2628 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2629 echo "configure:2630: checking whether we are using GNU C" >&5
2630 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.c <<EOF
2638 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2645 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2647 if test $ac_cv_prog_gcc = yes; then
2653 ac_test_CFLAGS="${CFLAGS+set}"
2654 ac_save_CFLAGS="$CFLAGS"
2656 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2657 echo "configure:2658: checking whether ${CC-cc} accepts -g" >&5
2658 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 echo 'void f(){}' > conftest.c
2662 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2671 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2672 if test "$ac_test_CFLAGS" = set; then
2673 CFLAGS="$ac_save_CFLAGS"
2674 elif test $ac_cv_prog_cc_g = yes; then
2675 if test "$GCC" = yes; then
2681 if test "$GCC" = yes; then
2688 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2689 if test "${with_gnu_ld+set}" = set; then
2690 withval="$with_gnu_ld"
2691 test "$withval" = no || with_gnu_ld=yes
2697 if test "$ac_cv_prog_gcc" = yes; then
2698 # Check if gcc -print-prog-name=ld gives a path.
2699 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2700 echo "configure:2701: checking for ld used by GCC" >&5
2701 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2703 # Accept absolute paths.
2704 [\\/]* | [A-Za-z]:[\\/]*)
2705 re_direlt='/[^/][^/]*/\.\./'
2706 # Canonicalize the path of ld
2707 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2708 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2709 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2711 test -z "$LD" && LD="$ac_prog"
2714 # If it fails, then pretend we aren't using GCC.
2718 # If it is relative, then search for the first ld in PATH.
2722 elif test "$with_gnu_ld" = yes; then
2723 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2724 echo "configure:2725: checking for GNU ld" >&5
2726 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2727 echo "configure:2728: checking for non-GNU ld" >&5
2729 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 if test -z "$LD"; then
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2734 for ac_dir in $PATH; do
2735 test -z "$ac_dir" && ac_dir=.
2736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2737 ac_cv_path_LD="$ac_dir/$ac_prog"
2738 # Check to see if the program is GNU ld. I'd rather use --version,
2739 # but apparently some GNU ld's only accept -v.
2740 # Break only if it was the GNU/non-GNU ld that we prefer.
2741 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2742 test "$with_gnu_ld" != no && break
2744 test "$with_gnu_ld" != yes && break
2750 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2755 if test -n "$LD"; then
2756 echo "$ac_t""$LD" 1>&6
2758 echo "$ac_t""no" 1>&6
2760 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2761 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2762 echo "configure:2763: checking if the linker ($LD) is GNU ld" >&5
2763 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2767 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2768 ac_cv_prog_gnu_ld=yes
2770 ac_cv_prog_gnu_ld=no
2774 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2777 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2778 echo "configure:2779: checking for BSD-compatible nm" >&5
2779 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 if test -n "$NM"; then
2783 # Let the user override the test.
2786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2787 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2788 test -z "$ac_dir" && ac_dir=.
2789 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2790 # Check to see if the nm accepts a BSD-compat flag.
2791 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2792 # nm: unknown option "B" ignored
2793 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2794 ac_cv_path_NM="$ac_dir/nm -B"
2796 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2797 ac_cv_path_NM="$ac_dir/nm -p"
2800 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2801 continue # so that we can try to find one that supports BSD flags
2806 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2811 echo "$ac_t""$NM" 1>&6
2813 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2814 echo "configure:2815: checking whether ln -s works" >&5
2815 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2819 if ln -s X conftestdata 2>/dev/null
2822 ac_cv_prog_LN_S="ln -s"
2827 LN_S="$ac_cv_prog_LN_S"
2828 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2829 echo "$ac_t""yes" 1>&6
2831 echo "$ac_t""no" 1>&6
2834 if test $host != $build; then
2835 ac_tool_prefix=${host_alias}-
2842 NONE) lt_target="$host" ;;
2843 *) lt_target="$target" ;;
2846 # Check for any special flags to pass to ltconfig.
2847 libtool_flags="--cache-file=$cache_file"
2848 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2849 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2850 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2851 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2852 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2853 libtool_flags="$libtool_flags --enable-dlopen"
2854 libtool_flags="$libtool_flags --enable-win32-dll"
2855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2856 if test "${enable_libtool_lock+set}" = set; then
2857 enableval="$enable_libtool_lock"
2861 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2862 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2864 # Some flags need to be propagated to the compiler or linker for good
2866 case "$lt_target" in
2868 # Find out which ABI we are using.
2869 echo '#line 2870 "configure"' > conftest.$ac_ext
2870 if { (eval echo configure:2871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2871 case "`/usr/bin/file conftest.o`" in
2887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2888 SAVE_CFLAGS="$CFLAGS"
2889 CFLAGS="$CFLAGS -belf"
2890 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2891 echo "configure:2892: checking whether the C compiler needs -belf" >&5
2892 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2905 lt_cv_cc_needs_belf=yes
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 lt_cv_cc_needs_belf=no
2915 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2918 CFLAGS="$SAVE_CFLAGS"
2922 *-*-cygwin* | *-*-mingw*)
2923 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_word" >&5
2927 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 if test -n "$DLLTOOL"; then
2931 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2935 for ac_dir in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2945 DLLTOOL="$ac_cv_prog_DLLTOOL"
2946 if test -n "$DLLTOOL"; then
2947 echo "$ac_t""$DLLTOOL" 1>&6
2949 echo "$ac_t""no" 1>&6
2953 if test -z "$ac_cv_prog_DLLTOOL"; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "dlltool", so it can be a program name with args.
2956 set dummy dlltool; ac_word=$2
2957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_word" >&5
2959 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 if test -n "$DLLTOOL"; then
2963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2967 for ac_dir in $ac_dummy; do
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$ac_word; then
2970 ac_cv_prog_DLLTOOL="dlltool"
2975 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2978 DLLTOOL="$ac_cv_prog_DLLTOOL"
2979 if test -n "$DLLTOOL"; then
2980 echo "$ac_t""$DLLTOOL" 1>&6
2982 echo "$ac_t""no" 1>&6
2990 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}as; ac_word=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$AS"; then
2998 ac_cv_prog_AS="$AS" # Let the user override the test.
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3002 for ac_dir in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_AS="${ac_tool_prefix}as"
3013 if test -n "$AS"; then
3014 echo "$ac_t""$AS" 1>&6
3016 echo "$ac_t""no" 1>&6
3020 if test -z "$ac_cv_prog_AS"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "as", so it can be a program name with args.
3023 set dummy as; ac_word=$2
3024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_word" >&5
3026 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 if test -n "$AS"; then
3030 ac_cv_prog_AS="$AS" # Let the user override the test.
3032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3034 for ac_dir in $ac_dummy; do
3035 test -z "$ac_dir" && ac_dir=.
3036 if test -f $ac_dir/$ac_word; then
3042 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3046 if test -n "$AS"; then
3047 echo "$ac_t""$AS" 1>&6
3049 echo "$ac_t""no" 1>&6
3057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3060 echo "configure:3061: checking for $ac_word" >&5
3061 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 if test -n "$OBJDUMP"; then
3065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3069 for ac_dir in $ac_dummy; do
3070 test -z "$ac_dir" && ac_dir=.
3071 if test -f $ac_dir/$ac_word; then
3072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3079 OBJDUMP="$ac_cv_prog_OBJDUMP"
3080 if test -n "$OBJDUMP"; then
3081 echo "$ac_t""$OBJDUMP" 1>&6
3083 echo "$ac_t""no" 1>&6
3087 if test -z "$ac_cv_prog_OBJDUMP"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "objdump", so it can be a program name with args.
3090 set dummy objdump; ac_word=$2
3091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3092 echo "configure:3093: checking for $ac_word" >&5
3093 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 if test -n "$OBJDUMP"; then
3097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3101 for ac_dir in $ac_dummy; do
3102 test -z "$ac_dir" && ac_dir=.
3103 if test -f $ac_dir/$ac_word; then
3104 ac_cv_prog_OBJDUMP="objdump"
3109 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3112 OBJDUMP="$ac_cv_prog_OBJDUMP"
3113 if test -n "$OBJDUMP"; then
3114 echo "$ac_t""$OBJDUMP" 1>&6
3116 echo "$ac_t""no" 1>&6
3129 # Save cache, so that ltconfig can load it
3132 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3133 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3134 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3135 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3136 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3137 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3138 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3139 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3141 # Reload cache, that may have been modified by ltconfig
3144 # This can be used to rebuild libtool when needed
3145 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3147 # Always use our own libtool.
3148 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3150 # Redirect the config.log output again, so that the ltconfig log is not
3151 # clobbered by the next message.
3152 exec 5>>./config.log
3155 for ac_prog in mawk gawk nawk awk
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_word" >&5
3161 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 if test -n "$AWK"; then
3165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3169 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 if test -f $ac_dir/$ac_word; then
3172 ac_cv_prog_AWK="$ac_prog"
3179 AWK="$ac_cv_prog_AWK"
3180 if test -n "$AWK"; then
3181 echo "$ac_t""$AWK" 1>&6
3183 echo "$ac_t""no" 1>&6
3186 test -n "$AWK" && break
3189 # test for ln hardlink support
3190 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3191 echo "configure:3192: checking whether ln works" >&5
3192 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 rm -f conftest.src conftest.dst
3196 echo "conftest" > conftest.src
3197 if ln conftest.src conftest.dst 2>/dev/null
3199 ol_cv_prog_LN_H="ln"
3201 ol_cv_prog_LN_H="cp"
3203 rm -f conftest.src conftest.dst
3206 LN_H="$ol_cv_prog_LN_H"
3207 if test "$ol_cv_prog_LN_H" = "ln"; then
3208 echo "$ac_t""yes" 1>&6
3210 echo "$ac_t""no" 1>&6
3213 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3214 echo "configure:3215: checking whether ln -s works" >&5
3215 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3219 if ln -s X conftestdata 2>/dev/null
3222 ac_cv_prog_LN_S="ln -s"
3227 LN_S="$ac_cv_prog_LN_S"
3228 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3229 echo "$ac_t""yes" 1>&6
3231 echo "$ac_t""no" 1>&6
3235 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3239 # Extract the first word of "sendmail", so it can be a program name with args.
3240 set dummy sendmail; ac_word=$2
3241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3242 echo "configure:3243: checking for $ac_word" >&5
3243 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3248 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3251 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3255 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3256 for ac_dir in $ac_dummy; do
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f $ac_dir/$ac_word; then
3259 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3264 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3268 SENDMAIL="$ac_cv_path_SENDMAIL"
3269 if test -n "$SENDMAIL"; then
3270 echo "$ac_t""$SENDMAIL" 1>&6
3272 echo "$ac_t""no" 1>&6
3275 # Extract the first word of "vi", so it can be a program name with args.
3276 set dummy vi; ac_word=$2
3277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_word" >&5
3279 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3284 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3287 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3291 ac_dummy="$PATH:/usr/ucb"
3292 for ac_dir in $ac_dummy; do
3293 test -z "$ac_dir" && ac_dir=.
3294 if test -f $ac_dir/$ac_word; then
3295 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3300 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3304 EDITOR="$ac_cv_path_EDITOR"
3305 if test -n "$EDITOR"; then
3306 echo "$ac_t""$EDITOR" 1>&6
3308 echo "$ac_t""no" 1>&6
3311 # Extract the first word of "finger", so it can be a program name with args.
3312 set dummy finger; ac_word=$2
3313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3314 echo "configure:3315: checking for $ac_word" >&5
3315 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3323 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3327 ac_dummy="$PATH:/usr/ucb"
3328 for ac_dir in $ac_dummy; do
3329 test -z "$ac_dir" && ac_dir=.
3330 if test -f $ac_dir/$ac_word; then
3331 ac_cv_path_FINGER="$ac_dir/$ac_word"
3336 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3340 FINGER="$ac_cv_path_FINGER"
3341 if test -n "$FINGER"; then
3342 echo "$ac_t""$FINGER" 1>&6
3344 echo "$ac_t""no" 1>&6
3348 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3349 echo "configure:3350: checking how to run the C preprocessor" >&5
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3354 if test -z "$CPP"; then
3355 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 # This must be in double quotes, not single quotes, because CPP may get
3359 # substituted into the Makefile and "${CC-cc}" will confuse make.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp.
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3370 { (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3372 if test -z "$ac_err"; then
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 CPP="${CC-cc} -E -traditional-cpp"
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3387 { (eval echo configure:3388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3389 if test -z "$ac_err"; then
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 CPP="${CC-cc} -nologo -E"
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3404 { (eval echo configure:3405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3406 if test -z "$ac_err"; then
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3420 ac_cv_prog_CPP="$CPP"
3422 CPP="$ac_cv_prog_CPP"
3424 ac_cv_prog_CPP="$CPP"
3426 echo "$ac_t""$CPP" 1>&6
3429 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3430 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3432 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3433 echo "configure: warning: programs compiled here do run here..." 1>&2
3434 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3436 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3437 echo "configure: warning: programs compiled here do not run here..." 1>&2
3438 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3441 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3442 echo "configure:3443: checking for AIX" >&5
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452 egrep "yes" >/dev/null 2>&1; then
3454 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3455 #define _ALL_SOURCE 1
3460 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3466 echo "configure:3467: checking for POSIXized ISC" >&5
3467 if test -d /etc/conf/kconfig.d &&
3468 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3470 echo "$ac_t""yes" 1>&6
3471 ISC=yes # If later tests want to check for ISC.
3472 cat >> confdefs.h <<\EOF
3473 #define _POSIX_SOURCE 1
3476 if test "$GCC" = yes; then
3482 echo "$ac_t""no" 1>&6
3486 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3487 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3488 echo "configure:3489: checking for minix/config.h" >&5
3489 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 #include <minix/config.h>
3497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3498 { (eval echo configure:3499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3500 if test -z "$ac_err"; then
3502 eval "ac_cv_header_$ac_safe=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_header_$ac_safe=no"
3512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3516 echo "$ac_t""no" 1>&6
3520 if test "$MINIX" = yes; then
3521 cat >> confdefs.h <<\EOF
3522 #define _POSIX_SOURCE 1
3525 cat >> confdefs.h <<\EOF
3526 #define _POSIX_1_SOURCE 2
3529 cat >> confdefs.h <<\EOF
3536 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3537 echo "configure:3538: checking for Cygwin environment" >&5
3538 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3548 #define __CYGWIN__ __CYGWIN32__
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 echo "configure: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3565 echo "$ac_t""$ac_cv_cygwin" 1>&6
3567 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3568 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3569 echo "configure:3570: checking for mingw32 environment" >&5
3570 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3593 echo "$ac_t""$ac_cv_mingw32" 1>&6
3595 test "$ac_cv_mingw32" = yes && MINGW32=yes
3596 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3597 echo "configure:3598: checking for EMX OS/2 environment" >&5
3598 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3609 if { (eval echo configure:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3621 echo "$ac_t""$ac_cv_emxos2" 1>&6
3623 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3627 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3628 echo "configure:3629: checking for executable suffix" >&5
3629 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3636 echo 'int main () { return 0; }' > conftest.$ac_ext
3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3639 for file in conftest.*; do
3641 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3642 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3646 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3649 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3654 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3655 echo "$ac_t""${ac_cv_exeext}" 1>&6
3658 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3659 echo "configure:3660: checking for object suffix" >&5
3660 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3664 echo 'int i = 1;' > conftest.$ac_ext
3665 if { (eval echo configure:3666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 for ac_file in conftest.*; do
3669 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3673 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3678 echo "$ac_t""$ac_cv_objext" 1>&6
3679 OBJEXT=$ac_cv_objext
3680 ac_objext=$ac_cv_objext
3683 cat >> confdefs.h <<EOF
3684 #define EXEEXT "${EXEEXT}"
3688 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3689 echo "configure:3690: checking for be_app in -lbe" >&5
3690 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 ac_save_LIBS="$LIBS"
3695 LIBS="-lbe -lroot -lnet $LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_lib_$ac_lib_var=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_lib_$ac_lib_var=no"
3718 LIBS="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3723 LIBS="$LIBS -lbe -lroot -lnet"
3725 echo "$ac_t""no" 1>&6
3733 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3734 echo "configure:3735: checking for ${CC-cc} option to accept ANSI C" >&5
3735 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 am_cv_prog_cc_stdc=no
3740 # Don't try gcc -ansi; that turns off useful extensions and
3741 # breaks some systems' header files.
3742 # AIX -qlanglvl=ansi
3743 # Ultrix and OSF/1 -std1
3744 # HP-UX 10.20 and later -Ae
3745 # HP-UX older versions -Aa -D_HPUX_SOURCE
3746 # SVR4 -Xc -D__EXTENSIONS__
3747 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 CC="$ac_save_CC $ac_arg"
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3755 #include <sys/types.h>
3756 #include <sys/stat.h>
3757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3758 struct buf { int x; };
3759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3760 static char *e (p, i)
3766 static char *f (char * (*g) (char **, int), char **p, ...)
3771 s = g (p, va_arg (v,int));
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3790 am_cv_prog_cc_stdc="$ac_arg"; break
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3801 if test -z "$am_cv_prog_cc_stdc"; then
3802 echo "$ac_t""none needed" 1>&6
3804 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3806 case "x$am_cv_prog_cc_stdc" in
3808 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3811 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3812 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3815 # test for make depend flag
3818 if test -z "${MKDEP}"; then
3820 if test -z "${MKDEP_FLAGS}"; then
3821 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3822 echo "configure:3823: checking for ${OL_MKDEP} depend flag" >&5
3823 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3828 for flag in "-M" "-xM"; do
3829 cat > conftest.c <<EOF
3832 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3833 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3835 if test ! -f conftest."${ac_object}" ; then
3837 OL_MKDEP_FLAGS="$flag"
3846 echo "$ac_t""$ol_cv_mkdep" 1>&6
3849 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3854 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3859 if test "${ol_cv_mkdep}" = no ; then
3860 # this will soon become an error
3861 echo "configure: warning: do not know how to generate dependencies" 1>&2
3864 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3865 echo "configure:3866: checking for afopen in -ls" >&5
3866 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3867 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3901 cat >> confdefs.h <<\EOF
3902 #define HAVE_AIX_SECURITY 1
3907 echo "$ac_t""no" 1>&6
3913 if test $ol_enable_modules != no ; then
3914 for ac_hdr in ltdl.h
3916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3918 echo "configure:3919: checking for $ac_hdr" >&5
3919 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3928 { (eval echo configure:3929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3930 if test -z "$ac_err"; then
3932 eval "ac_cv_header_$ac_safe=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 eval "ac_cv_header_$ac_safe=no"
3942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3945 cat >> confdefs.h <<EOF
3946 #define $ac_tr_hdr 1
3950 echo "$ac_t""no" 1>&6
3955 if test $ac_cv_header_ltdl_h = no ; then
3956 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3959 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3960 echo "configure:3961: checking for lt_dlinit in -lltdl" >&5
3961 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3962 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 ac_save_LIBS="$LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_LIBLTDL 1
4002 echo "$ac_t""no" 1>&6
4006 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4007 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4011 ol_with_dnssrv_module=static
4012 ol_with_ldap_module=static
4013 ol_with_ldbm_module=static
4014 ol_with_passwd_module=static
4015 ol_with_shell_module=static
4016 ol_with_sql_module=static
4020 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4021 echo "configure:4022: checking for EBCDIC" >&5
4022 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4031 #include <__ASCII__/generate_error.h>
4035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4036 { (eval echo configure:4037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4038 if test -z "$ac_err"; then
4040 ol_cv_cpp_ebcdic=yes
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4051 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4052 if test $ol_cv_cpp_ebcdic = yes ; then
4053 cat >> confdefs.h <<\EOF
4054 #define HAVE_EBCDIC 1
4059 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4060 echo "configure:4061: checking for ANSI C header files" >&5
4061 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4073 { (eval echo configure:4074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4075 if test -z "$ac_err"; then
4077 ol_cv_header_stdc=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 ol_cv_header_stdc=no
4087 if test $ol_cv_header_stdc = yes; then
4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 egrep "memchr" >/dev/null 2>&1; then
4099 ol_cv_header_stdc=no
4105 if test $ol_cv_header_stdc = yes; then
4106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113 egrep "free" >/dev/null 2>&1; then
4117 ol_cv_header_stdc=no
4123 if test $ol_cv_header_stdc = yes; then
4124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4125 if test "$cross_compiling" = yes; then
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4136 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4137 || ('j' <= (c) && (c) <= 'r') \
4138 || ('s' <= (c) && (c) <= 'z'))
4139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142 int main () { int i; for (i = 0; i < 256; i++)
4143 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 ol_cv_header_stdc=no
4162 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4163 if test $ol_cv_header_stdc = yes; then
4164 cat >> confdefs.h <<\EOF
4165 #define STDC_HEADERS 1
4169 ac_cv_header_stdc=disable
4172 if test $ol_cv_header_stdc != yes; then
4173 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4177 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4180 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_hdr that defines DIR" >&5
4182 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <sys/types.h>
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 eval "ac_cv_header_dirent_$ac_safe=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 eval "ac_cv_header_dirent_$ac_safe=no"
4205 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4208 cat >> confdefs.h <<EOF
4209 #define $ac_tr_hdr 1
4211 ac_header_dirent=$ac_hdr; break
4213 echo "$ac_t""no" 1>&6
4216 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4217 if test $ac_header_dirent = dirent.h; then
4218 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4219 echo "configure:4220: checking for opendir in -ldir" >&5
4220 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4221 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 ac_save_LIBS="$LIBS"
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* Override any gcc2 internal prototype to avoid an error. */
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_lib_$ac_lib_var=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_lib_$ac_lib_var=no"
4248 LIBS="$ac_save_LIBS"
4251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4255 echo "$ac_t""no" 1>&6
4259 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4260 echo "configure:4261: checking for opendir in -lx" >&5
4261 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 ac_save_LIBS="$LIBS"
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 eval "ac_cv_lib_$ac_lib_var=yes"
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 eval "ac_cv_lib_$ac_lib_var=no"
4289 LIBS="$ac_save_LIBS"
4292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4293 echo "$ac_t""yes" 1>&6
4296 echo "$ac_t""no" 1>&6
4301 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4302 echo "configure:4303: checking for sys/wait.h that is POSIX.1 compatible" >&5
4303 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #include <sys/types.h>
4310 #include <sys/wait.h>
4312 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4315 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 ac_cv_header_sys_wait_h=yes
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 ac_cv_header_sys_wait_h=no
4335 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4336 if test $ac_cv_header_sys_wait_h = yes; then
4337 cat >> confdefs.h <<\EOF
4338 #define HAVE_SYS_WAIT_H 1
4343 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4344 echo "configure:4345: checking POSIX termios" >&5
4345 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 #include <sys/types.h>
4353 #include <termios.h>
4355 /* SunOS 4.0.3 has termios.h but not the library calls. */
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4361 am_cv_sys_posix_termios=yes
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 am_cv_sys_posix_termios=no
4371 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4374 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4375 echo "configure:4376: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4376 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4381 gwinsz_in_termios_h=no
4382 if test $am_cv_sys_posix_termios = yes; then
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4386 #include <sys/types.h>
4387 # include <termios.h>
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "yes" >/dev/null 2>&1; then
4396 gwinsz_in_termios_h=yes
4402 if test $gwinsz_in_termios_h = no; then
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 #include <sys/types.h>
4407 # include <sys/ioctl.h>
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 egrep "yes" >/dev/null 2>&1; then
4416 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4424 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4425 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4426 cat >> confdefs.h <<\EOF
4427 #define GWINSZ_IN_SYS_IOCTL 1
4432 if test $am_cv_sys_posix_termios = yes ; then
4433 cat >> confdefs.h <<\EOF
4434 #define HAVE_POSIX_TERMIOS 1
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4519 echo "$ac_t""no" 1>&6
4526 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4527 echo "configure:4528: checking for sigset in -lV3" >&5
4528 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS="$LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 eval "ac_cv_lib_$ac_lib_var=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 eval "ac_cv_lib_$ac_lib_var=no"
4556 LIBS="$ac_save_LIBS"
4559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_lib 1
4570 echo "$ac_t""no" 1>&6
4574 if test $ac_cv_header_winsock_h = yes; then
4575 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4576 echo "configure:4577: checking for winsock" >&5
4577 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 #include <winsock.h>
4587 select(0,NULL,NULL,NULL,NULL);
4589 gethostname(NULL,0);
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4605 echo "$ac_t""$ol_cv_winsock" 1>&6
4607 if test $ol_cv_winsock = yes ; then
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE_WINSOCK 1
4612 ac_cv_func_socket=yes
4613 ac_cv_func_select=yes
4614 ac_cv_func_closesocket=yes
4615 ac_cv_func_gethostname=yes
4620 echo $ac_n "checking for socket""... $ac_c" 1>&6
4621 echo "configure:4622: checking for socket" >&5
4622 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 /* System header to define __stub macros and hopefully few prototypes,
4629 which can conflict with char socket(); below. */
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4639 /* The GNU C library defines this for functions which it implements
4640 to always fail with ENOSYS. Some functions are actually named
4641 something starting with __ and the normal name is an alias. */
4642 #if defined (__stub_socket) || defined (__stub___socket)
4650 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4652 eval "ac_cv_func_socket=yes"
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4657 eval "ac_cv_func_socket=no"
4662 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4666 echo "$ac_t""no" 1>&6
4668 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4669 echo "configure:4670: checking for main in -lsocket" >&5
4670 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4671 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 ac_save_LIBS="$LIBS"
4675 LIBS="-lsocket $LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 eval "ac_cv_lib_$ac_lib_var=no"
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4701 cat >> confdefs.h <<EOF
4702 #define $ac_tr_lib 1
4705 LIBS="-lsocket $LIBS"
4708 echo "$ac_t""no" 1>&6
4711 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4712 echo "configure:4713: checking for main in -lnet" >&5
4713 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 ac_save_LIBS="$LIBS"
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_lib_$ac_lib_var=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_lib_$ac_lib_var=no"
4737 LIBS="$ac_save_LIBS"
4740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4744 cat >> confdefs.h <<EOF
4745 #define $ac_tr_lib 1
4751 echo "$ac_t""no" 1>&6
4754 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4755 echo "configure:4756: checking for main in -lnsl_s" >&5
4756 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4757 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 ac_save_LIBS="$LIBS"
4761 LIBS="-lnsl_s $LIBS"
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 eval "ac_cv_lib_$ac_lib_var=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 eval "ac_cv_lib_$ac_lib_var=no"
4780 LIBS="$ac_save_LIBS"
4783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4785 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4786 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4787 cat >> confdefs.h <<EOF
4788 #define $ac_tr_lib 1
4791 LIBS="-lnsl_s $LIBS"
4794 echo "$ac_t""no" 1>&6
4797 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4798 echo "configure:4799: checking for main in -lnsl" >&5
4799 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4800 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4803 ac_save_LIBS="$LIBS"
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 eval "ac_cv_lib_$ac_lib_var=yes"
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4820 eval "ac_cv_lib_$ac_lib_var=no"
4823 LIBS="$ac_save_LIBS"
4826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4829 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4830 cat >> confdefs.h <<EOF
4831 #define $ac_tr_lib 1
4837 echo "$ac_t""no" 1>&6
4840 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4841 echo "configure:4842: checking for socket in -linet" >&5
4842 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4843 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 ac_save_LIBS="$LIBS"
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* Override any gcc2 internal prototype to avoid an error. */
4852 /* We use char because int might match the return type of a gcc2
4853 builtin and then its argument prototype would still apply. */
4860 if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4862 eval "ac_cv_lib_$ac_lib_var=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_lib_$ac_lib_var=no"
4870 LIBS="$ac_save_LIBS"
4873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4875 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4876 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4877 cat >> confdefs.h <<EOF
4878 #define $ac_tr_lib 1
4884 echo "$ac_t""no" 1>&6
4887 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4888 echo "configure:4889: checking for main in -lgen" >&5
4889 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4890 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 ac_save_LIBS="$LIBS"
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4903 if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4905 eval "ac_cv_lib_$ac_lib_var=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_lib_$ac_lib_var=no"
4913 LIBS="$ac_save_LIBS"
4916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4917 echo "$ac_t""yes" 1>&6
4918 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4919 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4920 cat >> confdefs.h <<EOF
4921 #define $ac_tr_lib 1
4927 echo "$ac_t""no" 1>&6
4934 echo $ac_n "checking for select""... $ac_c" 1>&6
4935 echo "configure:4936: checking for select" >&5
4936 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char select(); below. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4953 /* The GNU C library defines this for functions which it implements
4954 to always fail with ENOSYS. Some functions are actually named
4955 something starting with __ and the normal name is an alias. */
4956 #if defined (__stub_select) || defined (__stub___select)
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966 eval "ac_cv_func_select=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4971 eval "ac_cv_func_select=no"
4976 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4980 echo "$ac_t""no" 1>&6
4981 { echo "configure: error: select() required." 1>&2; exit 1; }
4985 if test "${ac_cv_header_winsock_h}" != yes; then
4986 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4987 echo "configure:4988: checking types of arguments for select()" >&5
4988 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4991 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4998 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4999 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 #ifdef HAVE_SYS_TYPES_H
5004 #include <sys/types.h>
5006 #ifdef HAVE_SYS_TIME_H
5007 #include <sys/time.h>
5009 #ifdef HAVE_SYS_SELECT_H
5010 #include <sys/select.h>
5012 #ifdef HAVE_SYS_SOCKET_H
5013 #include <sys/socket.h>
5015 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);
5020 if { (eval echo configure:5021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 ac_not_found=no ; break 3
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5039 if test "$ac_not_found" = yes; then
5040 ac_cv_func_select_arg1=int
5041 ac_cv_func_select_arg234='int *'
5042 ac_cv_func_select_arg5='struct timeval *'
5044 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5045 cat >> confdefs.h <<EOF
5046 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5049 cat >> confdefs.h <<EOF
5050 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5053 cat >> confdefs.h <<EOF
5054 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5061 for ac_hdr in regex.h
5063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5065 echo "configure:5066: checking for $ac_hdr" >&5
5066 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5075 { (eval echo configure:5076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5077 if test -z "$ac_err"; then
5079 eval "ac_cv_header_$ac_safe=yes"
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5085 eval "ac_cv_header_$ac_safe=no"
5089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5092 cat >> confdefs.h <<EOF
5093 #define $ac_tr_hdr 1
5097 echo "$ac_t""no" 1>&6
5101 if test "$ac_cv_header_regex_h" != yes ; then
5102 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5104 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5105 echo "configure:5106: checking for regfree" >&5
5106 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5112 /* System header to define __stub macros and hopefully few prototypes,
5113 which can conflict with char regfree(); below. */
5115 /* Override any gcc2 internal prototype to avoid an error. */
5116 /* We use char because int might match the return type of a gcc2
5117 builtin and then its argument prototype would still apply. */
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_regfree) || defined (__stub___regfree)
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5136 eval "ac_cv_func_regfree=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5141 eval "ac_cv_func_regfree=no"
5146 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5150 echo "$ac_t""no" 1>&6
5151 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5156 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5157 echo "configure:5158: checking for compatible POSIX regex" >&5
5158 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5162 if test "$cross_compiling" = yes; then
5163 ol_cv_c_posix_regex=cross
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5169 #include <sys/types.h>
5171 static char *pattern, *string;
5179 if(regcomp(&re, pattern, 0)) {
5183 string = "ALL MATCH";
5185 rc = regexec(&re, string, 0, (void*)0, 0);
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5194 ol_cv_c_posix_regex=yes
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 ol_cv_c_posix_regex=no
5206 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5208 if test "$ol_cv_c_posix_regex" = no ; then
5209 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5213 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5214 echo "configure:5215: checking for res_query" >&5
5215 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char res_query(); below. */
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_res_query) || defined (__stub___res_query)
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 eval "ac_cv_func_res_query=yes"
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 eval "ac_cv_func_res_query=no"
5255 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5256 echo "$ac_t""yes" 1>&6
5259 echo "$ac_t""no" 1>&6
5262 if test $ac_cv_func_res_query = no ; then
5263 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5264 echo "configure:5265: checking for res_query in -lbind" >&5
5265 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5266 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 ac_save_LIBS="$LIBS"
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 /* Override any gcc2 internal prototype to avoid an error. */
5275 /* We use char because int might match the return type of a gcc2
5276 builtin and then its argument prototype would still apply. */
5283 if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5285 eval "ac_cv_lib_$ac_lib_var=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 eval "ac_cv_lib_$ac_lib_var=no"
5293 LIBS="$ac_save_LIBS"
5296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5297 echo "$ac_t""yes" 1>&6
5298 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5300 cat >> confdefs.h <<EOF
5301 #define $ac_tr_lib 1
5307 echo "$ac_t""no" 1>&6
5310 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5313 if test $ac_cv_func_res_query = no ; then
5314 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5315 echo "configure:5316: checking for __res_query in -lbind" >&5
5316 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5317 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 ac_save_LIBS="$LIBS"
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 eval "ac_cv_lib_$ac_lib_var=yes"
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 eval "ac_cv_lib_$ac_lib_var=no"
5344 LIBS="$ac_save_LIBS"
5347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5351 cat >> confdefs.h <<EOF
5352 #define $ac_tr_lib 1
5358 echo "$ac_t""no" 1>&6
5361 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5364 if test $ac_cv_func_res_query = no ; then
5365 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5366 echo "configure:5367: checking for res_query in -lresolv" >&5
5367 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 ac_save_LIBS="$LIBS"
5372 LIBS="-lresolv $LIBS"
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5385 if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5387 eval "ac_cv_lib_$ac_lib_var=yes"
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5392 eval "ac_cv_lib_$ac_lib_var=no"
5395 LIBS="$ac_save_LIBS"
5398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5399 echo "$ac_t""yes" 1>&6
5400 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5402 cat >> confdefs.h <<EOF
5403 #define $ac_tr_lib 1
5406 LIBS="-lresolv $LIBS"
5409 echo "$ac_t""no" 1>&6
5412 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5415 if test "$ac_cv_func_res_query" = yes ; then
5416 cat >> confdefs.h <<\EOF
5417 #define HAVE_RES_QUERY 1
5421 if test $ol_enable_dnssrv != no ; then
5426 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5427 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5430 for ac_func in getaddrinfo
5432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5433 echo "configure:5434: checking for $ac_func" >&5
5434 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* System header to define __stub macros and hopefully few prototypes,
5441 which can conflict with char $ac_func(); below. */
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5464 eval "ac_cv_func_$ac_func=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5469 eval "ac_cv_func_$ac_func=no"
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h <<EOF
5478 #define $ac_tr_func 1
5482 echo "$ac_t""no" 1>&6
5488 if test $ac_cv_func_getaddrinfo = no ; then
5489 if test $ol_enable_ipv6 = yes ; then
5490 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
5493 for ac_func in gai_strerror
5495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5496 echo "configure:5497: checking for $ac_func" >&5
5497 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 /* System header to define __stub macros and hopefully few prototypes,
5504 which can conflict with char $ac_func(); below. */
5506 /* Override any gcc2 internal prototype to avoid an error. */
5507 /* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5514 /* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 eval "ac_cv_func_$ac_func=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_func_$ac_func=no"
5537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5540 cat >> confdefs.h <<EOF
5541 #define $ac_tr_func 1
5545 echo "$ac_t""no" 1>&6
5550 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5551 echo "configure:5552: checking INET6_ADDRSTRLEN" >&5
5552 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5560 # include <netinet/in.h>
5561 # ifdef INET6_ADDRSTRLEN
5562 __has_inet6_addrstrlen__;
5566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5567 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5569 ol_cv_inet6_addrstrlen=yes
5572 ol_cv_inet6_addrstrlen=no
5578 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5580 if test $ol_cv_inet6_addrstrlen = yes ; then
5582 elif test $ol_enable_ipv6 = yes ; then
5583 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5587 if test $ol_enable_local != no ; then
5588 for ac_hdr in sys/un.h
5590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_hdr" >&5
5593 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5602 { (eval echo configure:5603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5604 if test -z "$ac_err"; then
5606 eval "ac_cv_header_$ac_safe=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 eval "ac_cv_header_$ac_safe=no"
5616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5617 echo "$ac_t""yes" 1>&6
5618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5619 cat >> confdefs.h <<EOF
5620 #define $ac_tr_hdr 1
5624 echo "$ac_t""no" 1>&6
5629 if test $ol_enable_local = auto ; then
5630 ol_enable_local=$ac_cv_header_sys_un_h
5631 elif test $ac_cv_header_sys_un_h = no ; then
5632 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5641 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5642 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5643 -o $ol_with_kerberos = k425 ; then
5645 for ac_hdr in krb5.h
5647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_hdr" >&5
5650 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5659 { (eval echo configure:5660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5661 if test -z "$ac_err"; then
5663 eval "ac_cv_header_$ac_safe=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_header_$ac_safe=no"
5673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5674 echo "$ac_t""yes" 1>&6
5675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5676 cat >> confdefs.h <<EOF
5677 #define $ac_tr_hdr 1
5681 echo "$ac_t""no" 1>&6
5686 if test $ac_cv_header_krb5_h = yes ; then
5687 for ac_hdr in heim_err.h
5689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5691 echo "configure:5692: checking for $ac_hdr" >&5
5692 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5701 { (eval echo configure:5702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5703 if test -z "$ac_err"; then
5705 eval "ac_cv_header_$ac_safe=yes"
5708 echo "configure: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 eval "ac_cv_header_$ac_safe=no"
5715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5718 cat >> confdefs.h <<EOF
5719 #define $ac_tr_hdr 1
5723 echo "$ac_t""no" 1>&6
5727 if test $ac_cv_header_heim_err_h = yes ; then
5733 if test $krb5_impl = mit; then
5734 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5735 echo "configure:5736: checking for main in -lkrb5" >&5
5736 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5740 ac_save_LIBS="$LIBS"
5741 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 eval "ac_cv_lib_$ac_lib_var=no"
5760 LIBS="$ac_save_LIBS"
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5766 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5768 echo "$ac_t""no" 1>&6
5773 elif test $krb5_impl = heimdal; then
5774 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5775 echo "configure:5776: checking for main in -lkrb5" >&5
5776 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 ac_save_LIBS="$LIBS"
5781 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 eval "ac_cv_lib_$ac_lib_var=yes"
5794 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5797 eval "ac_cv_lib_$ac_lib_var=no"
5800 LIBS="$ac_save_LIBS"
5803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5806 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5808 echo "$ac_t""no" 1>&6
5813 cat >> confdefs.h <<\EOF
5814 #define HAVE_HEIMDAL_KERBEROS 1
5819 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5822 if test $have_krb5 = yes ; then
5825 cat >> confdefs.h <<\EOF
5830 if test $ol_enable_kpasswd != no ; then
5831 ol_link_kpasswd=yes;
5834 if test $ol_with_kerberos = k5only ; then
5835 ol_with_kerberos=found
5838 elif test $ol_with_kerberos != auto ; then
5839 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5845 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5846 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5848 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_hdr" >&5
5853 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5862 { (eval echo configure:5863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5864 if test -z "$ac_err"; then
5866 eval "ac_cv_header_$ac_safe=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_header_$ac_safe=no"
5876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5877 echo "$ac_t""yes" 1>&6
5878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5879 cat >> confdefs.h <<EOF
5880 #define $ac_tr_hdr 1
5884 echo "$ac_t""no" 1>&6
5889 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5890 if test $krb5_impl = mit; then
5891 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5892 echo "configure:5893: checking for main in -lkrb4" >&5
5893 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5894 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 ac_save_LIBS="$LIBS"
5898 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909 eval "ac_cv_lib_$ac_lib_var=yes"
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5914 eval "ac_cv_lib_$ac_lib_var=no"
5917 LIBS="$ac_save_LIBS"
5920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5923 KRB4_LIBS="-lkrb4 -ldes425"
5925 echo "$ac_t""no" 1>&6
5930 elif test $krb5_impl = heimdal; then
5931 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5932 echo "configure:5933: checking for main in -lkrb4" >&5
5933 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5937 ac_save_LIBS="$LIBS"
5938 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5947 if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 eval "ac_cv_lib_$ac_lib_var=yes"
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5954 eval "ac_cv_lib_$ac_lib_var=no"
5957 LIBS="$ac_save_LIBS"
5960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5961 echo "$ac_t""yes" 1>&6
5965 echo "$ac_t""no" 1>&6
5972 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5975 if test $have_k425 = yes ; then
5976 ol_with_kerberos=found
5979 cat >> confdefs.h <<\EOF
5980 #define HAVE_KRB425 1
5983 cat >> confdefs.h <<\EOF
5988 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5989 echo "configure:5990: checking for des_debug in Kerberos libraries" >&5
5990 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5995 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
6000 #include <kerberosIV/krb.h>
6001 #include <kerberosIV/des.h>
6002 extern int des_debug;
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 ol_cv_var_des_debug=yes
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 ol_cv_var_des_debug=no
6024 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6026 if test $ol_cv_var_des_debug = yes ; then
6027 cat >> confdefs.h <<\EOF
6028 #define HAVE_DES_DEBUG 1
6038 if test $ol_link_krb5 = yes ; then
6039 ol_with_kerberos=found
6042 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6043 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6045 for ac_hdr in krb.h des.h krb-archaeology.h
6047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6049 echo "configure:6050: checking for $ac_hdr" >&5
6050 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6059 { (eval echo configure:6060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6061 if test -z "$ac_err"; then
6063 eval "ac_cv_header_$ac_safe=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 eval "ac_cv_header_$ac_safe=no"
6073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6074 echo "$ac_t""yes" 1>&6
6075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6076 cat >> confdefs.h <<EOF
6077 #define $ac_tr_hdr 1
6081 echo "$ac_t""no" 1>&6
6086 if test $ac_cv_header_krb_h = yes ; then
6087 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6088 echo "configure:6089: checking for main in -lkrb" >&5
6089 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 ac_save_LIBS="$LIBS"
6094 LIBS="-lkrb -ldes $LIBS"
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 eval "ac_cv_lib_$ac_lib_var=yes"
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6110 eval "ac_cv_lib_$ac_lib_var=no"
6113 LIBS="$ac_save_LIBS"
6116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6117 echo "$ac_t""yes" 1>&6
6120 echo "$ac_t""no" 1>&6
6125 if test $have_k4 = yes ; then
6126 ol_with_kerberos=found
6129 cat >> confdefs.h <<\EOF
6134 KRB4_LIBS="-lkrb -ldes"
6136 if test $ac_cv_header_krb_archaeology_h = yes ; then
6137 cat >> confdefs.h <<\EOF
6138 #define HAVE_KTH_KERBEROS 1
6146 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6150 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6153 elif test $ol_enable_kbind = yes ; then
6154 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6157 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6158 cat >> confdefs.h <<\EOF
6159 #define HAVE_KERBEROS 1
6163 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6164 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6168 if test $ol_with_tls != no ; then
6169 for ac_hdr in openssl/ssl.h ssl.h
6171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_hdr" >&5
6174 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6183 { (eval echo configure:6184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6185 if test -z "$ac_err"; then
6187 eval "ac_cv_header_$ac_safe=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_header_$ac_safe=no"
6197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6200 cat >> confdefs.h <<EOF
6201 #define $ac_tr_hdr 1
6205 echo "$ac_t""no" 1>&6
6210 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6211 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6212 echo "configure:6213: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6213 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6217 ac_save_LIBS="$LIBS"
6218 LIBS="-lssl -lcrypto $LIBS"
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6225 char SSLeay_add_ssl_algorithms();
6228 SSLeay_add_ssl_algorithms()
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_lib_$ac_lib_var=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_lib_$ac_lib_var=no"
6241 LIBS="$ac_save_LIBS"
6244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6249 echo "$ac_t""no" 1>&6
6254 if test $have_ssleay = no ; then
6255 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6256 echo "configure:6257: checking for SSL_library_init in -lssl" >&5
6257 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 ac_save_LIBS="$LIBS"
6262 LIBS="-lssl -lcrypto $LIBS"
6263 cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6266 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6269 char SSL_library_init();
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6277 eval "ac_cv_lib_$ac_lib_var=yes"
6279 echo "configure: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6282 eval "ac_cv_lib_$ac_lib_var=no"
6285 LIBS="$ac_save_LIBS"
6288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6289 echo "$ac_t""yes" 1>&6
6293 echo "$ac_t""no" 1>&6
6299 if test $have_ssleay = no ; then
6300 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6301 echo "configure:6302: checking for ssl3_accept in -lssl" >&5
6302 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6303 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6306 ac_save_LIBS="$LIBS"
6307 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6320 if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6322 eval "ac_cv_lib_$ac_lib_var=yes"
6324 echo "configure: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6327 eval "ac_cv_lib_$ac_lib_var=no"
6330 LIBS="$ac_save_LIBS"
6333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6338 echo "$ac_t""no" 1>&6
6344 if test $have_ssleay = yes ; then
6348 cat >> confdefs.h <<\EOF
6349 #define HAVE_SSLEAY 1
6353 if test $need_rsaref = yes; then
6354 cat >> confdefs.h <<\EOF
6355 #define HAVE_RSAREF 1
6359 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6361 TLS_LIBS="-lssl -lcrypto"
6367 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6370 if test $ol_link_tls = yes ; then
6371 cat >> confdefs.h <<\EOF
6376 elif test $ol_with_tls = auto ; then
6377 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6378 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6380 elif test $ol_with_tls != no ; then
6381 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6386 gethostbyname_r gethostbyaddr_r \
6389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6390 echo "configure:6391: checking for $ac_func" >&5
6391 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6397 /* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func(); below. */
6400 /* Override any gcc2 internal prototype to avoid an error. */
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421 eval "ac_cv_func_$ac_func=yes"
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 eval "ac_cv_func_$ac_func=no"
6431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6434 cat >> confdefs.h <<EOF
6435 #define $ac_tr_func 1
6439 echo "$ac_t""no" 1>&6
6444 if test "$ac_cv_func_ctime_r" = no ; then
6445 ol_cv_func_ctime_r_nargs=0
6447 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6448 echo "configure:6449: checking number of arguments of ctime_r" >&5
6449 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6457 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6460 if { (eval echo configure:6461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6462 ol_cv_func_ctime_r_nargs3=yes
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 ol_cv_func_ctime_r_nargs3=no
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6476 time_t ti; char *buffer; ctime_r(&ti,buffer);
6479 if { (eval echo configure:6480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6481 ol_cv_func_ctime_r_nargs2=yes
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 ol_cv_func_ctime_r_nargs2=no
6490 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6491 $ol_cv_func_ctime_r_nargs2 = no ; then
6493 ol_cv_func_ctime_r_nargs=3
6495 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6496 $ol_cv_func_ctime_r_nargs2 = yes ; then
6498 ol_cv_func_ctime_r_nargs=2
6501 ol_cv_func_ctime_r_nargs=0
6506 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6508 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6509 cat >> confdefs.h <<EOF
6510 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6517 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6518 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6519 echo "configure:6520: checking number of arguments of gethostbyname_r" >&5
6520 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 #include <sys/types.h>
6527 #include <sys/socket.h>
6528 #include <netinet/in.h>
6530 #define BUFSIZE (sizeof(struct hostent)+10)
6532 struct hostent hent; char buffer[BUFSIZE];
6533 int bufsize=BUFSIZE;int h_errno;
6534 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6535 buffer, bufsize, &h_errno);
6538 if { (eval echo configure:6539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6540 ol_cv_func_gethostbyname_r_nargs5=yes
6542 echo "configure: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 ol_cv_func_gethostbyname_r_nargs5=no
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 #include <sys/types.h>
6553 #include <sys/socket.h>
6554 #include <netinet/in.h>
6556 #define BUFSIZE (sizeof(struct hostent)+10)
6558 struct hostent hent;struct hostent *rhent;
6559 char buffer[BUFSIZE];
6560 int bufsize=BUFSIZE;int h_errno;
6561 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6565 if { (eval echo configure:6566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6567 ol_cv_func_gethostbyname_r_nargs6=yes
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6572 ol_cv_func_gethostbyname_r_nargs6=no
6576 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6577 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6579 ol_cv_func_gethostbyname_r_nargs=5
6581 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6582 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6584 ol_cv_func_gethostbyname_r_nargs=6
6587 ol_cv_func_gethostbyname_r_nargs=0
6592 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6593 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6594 cat >> confdefs.h <<EOF
6595 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6601 ol_cv_func_gethostbyname_r_nargs=0
6604 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6605 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6606 echo "configure:6607: checking number of arguments of gethostbyaddr_r" >&5
6607 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 #include <sys/types.h>
6614 #include <sys/socket.h>
6615 #include <netinet/in.h>
6617 #define BUFSIZE (sizeof(struct hostent)+10)
6619 struct hostent hent; char buffer[BUFSIZE];
6621 size_t alen=sizeof(struct in_addr);
6622 int bufsize=BUFSIZE;int h_errno;
6623 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6624 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6627 if { (eval echo configure:6628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6629 ol_cv_func_gethostbyaddr_r_nargs7=yes
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 ol_cv_func_gethostbyaddr_r_nargs7=no
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 #include <sys/types.h>
6642 #include <sys/socket.h>
6643 #include <netinet/in.h>
6645 #define BUFSIZE (sizeof(struct hostent)+10)
6647 struct hostent hent;
6648 struct hostent *rhent; char buffer[BUFSIZE];
6650 size_t alen=sizeof(struct in_addr);
6651 int bufsize=BUFSIZE;int h_errno;
6652 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6653 alen, AF_INET, &hent, buffer, bufsize,
6657 if { (eval echo configure:6658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6659 ol_cv_func_gethostbyaddr_r_nargs8=yes
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 ol_cv_func_gethostbyaddr_r_nargs8=no
6668 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6669 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6671 ol_cv_func_gethostbyaddr_r_nargs=7
6673 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6674 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6676 ol_cv_func_gethostbyaddr_r_nargs=8
6679 ol_cv_func_gethostbyaddr_r_nargs=0
6684 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6685 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6686 cat >> confdefs.h <<EOF
6687 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6693 ol_cv_func_gethostbyaddr_r_nargs=0
6696 if test "$ac_cv_func_ctime_r" = yes \
6697 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6698 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6699 -a "$ac_cv_func_gethostbyname_r" = yes \
6700 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6701 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6702 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6703 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6704 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6707 cat >> confdefs.h <<\EOF
6708 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6715 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6716 -o $ol_with_threads = nt ; then
6719 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6720 echo "configure:6721: checking for NT Threads" >&5
6721 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6725 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6726 echo "configure:6727: checking for _beginthread" >&5
6727 if eval "test \"\${ac_cv_func__beginthread+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 /* System header to define __stub macros and hopefully few prototypes,
6734 which can conflict with char _beginthread(); below. */
6736 /* Override any gcc2 internal prototype to avoid an error. */
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char _beginthread();
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_func__beginthread=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_func__beginthread=no"
6767 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 ol_cv_nt_threads=yes
6771 echo "$ac_t""no" 1>&6
6778 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6780 if test $ol_cv_nt_threads = yes ; then
6781 cat >> confdefs.h <<\EOF
6782 #define HAVE_NT_THREADS 1
6788 if test "$ol_cv_nt_threads" = yes ; then
6790 ol_with_threads=found
6791 ol_with_yielding_select=yes
6793 cat >> confdefs.h <<\EOF
6794 #define HAVE_NT_SERVICE_MANAGER 1
6797 cat >> confdefs.h <<\EOF
6798 #define HAVE_NT_EVENT_LOG 1
6803 if test $ol_with_threads = nt ; then
6804 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6808 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6809 -o $ol_with_threads = posix ; then
6811 for ac_hdr in pthread.h
6813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_hdr" >&5
6816 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then
6829 eval "ac_cv_header_$ac_safe=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 eval "ac_cv_header_$ac_safe=no"
6839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6842 cat >> confdefs.h <<EOF
6843 #define $ac_tr_hdr 1
6847 echo "$ac_t""no" 1>&6
6852 if test $ac_cv_header_pthread_h = yes ; then
6853 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6854 echo "configure:6855: checking POSIX thread version" >&5
6855 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6863 # include <pthread.h>
6864 /* this check could be improved */
6865 # ifdef PTHREAD_ONCE_INIT
6866 pthread_version_final;
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 egrep "pthread_version_final" >/dev/null 2>&1; then
6873 ol_pthread_final=yes
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6885 # include <pthread.h>
6886 /* this check could be improved */
6887 # ifdef pthread_once_init
6888 pthread_version_draft4;
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6895 ol_pthread_draft4=yes
6898 ol_pthread_draft4=no
6903 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6904 ol_cv_pthread_version=final
6905 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6906 ol_cv_pthread_version=draft4
6908 ol_cv_pthread_version=unknown
6913 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6916 if test $ol_cv_pthread_version = final ; then
6917 cat >> confdefs.h <<\EOF
6918 #define HAVE_PTHREADS_FINAL 1
6921 elif test $ol_cv_pthread_version = draft4 ; then
6922 cat >> confdefs.h <<\EOF
6923 #define HAVE_PTHREADS_D4 1
6927 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6930 # consider threads found
6931 ol_with_threads=found
6934 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6935 echo "configure:6936: checking for LinuxThreads pthread.h" >&5
6936 if eval "test \"\${ol_cv_header_linux_threads+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"
6942 #include <pthread.h>
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6947 ol_cv_header_linux_threads=yes
6950 ol_cv_header_linux_threads=no
6957 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6958 if test $ol_cv_header_linux_threads = yes; then
6959 cat >> confdefs.h <<\EOF
6960 #define HAVE_LINUX_THREADS 1
6966 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6967 echo "configure:6968: checking for GNU Pth pthread.h" >&5
6968 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 #include <pthread.h>
6975 #ifdef _POSIX_THREAD_IS_GNU_PTH
6980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6981 egrep "__gnu_pth__" >/dev/null 2>&1; then
6983 ol_cv_header_gnu_pth_pthread_h=yes
6986 ol_cv_header_gnu_pth_pthread_h=no
6993 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6996 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6997 for ac_hdr in sched.h
6999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7001 echo "configure:7002: checking for $ac_hdr" >&5
7002 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 cat > conftest.$ac_ext <<EOF
7006 #line 7007 "configure"
7007 #include "confdefs.h"
7010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7011 { (eval echo configure:7012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7013 if test -z "$ac_err"; then
7015 eval "ac_cv_header_$ac_safe=yes"
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 eval "ac_cv_header_$ac_safe=no"
7025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7026 echo "$ac_t""yes" 1>&6
7027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7028 cat >> confdefs.h <<EOF
7029 #define $ac_tr_hdr 1
7033 echo "$ac_t""no" 1>&6
7040 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7041 echo "configure:7042: checking for pthread_create in default libraries" >&5
7042 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7046 if test "$cross_compiling" = yes; then
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* pthread test headers */
7051 #include <pthread.h>
7053 #define NULL (void*)0
7056 static void *task(p)
7059 return (void *) (p == NULL);
7064 /* pthread test function */
7067 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7068 /* This system (e.g. AIX) defaults detached; must override */
7069 pthread_attr_t attr;
7071 status = pthread_attr_init(&attr);
7072 if( status ) exit( status );
7074 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7075 if( status ) exit( status );
7078 #elif defined( HAVE_PTHREADS_D4 )
7079 # define ATTR pthread_attr_default
7084 /* make sure pthread_create() isn't just a stub */
7085 status = pthread_create(&t, ATTR, task, NULL);
7086 if( status ) exit( status );
7088 /* give the thread a chance to complete...
7089 * it should remain joinable and hence detachable
7093 /* make sure pthread_detach() isn't just a stub */
7094 #if HAVE_PTHREADS_D4
7095 status = pthread_detach( &t );
7097 status = pthread_detach( t );
7100 #ifdef HAVE_LINUX_THREADS
7101 pthread_kill_other_threads_np();
7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7110 ol_cv_pthread_create=yes
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7115 ol_cv_pthread_create=no
7119 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7122 /* pthread test headers */
7123 #include <pthread.h>
7125 #define NULL (void*)0
7128 static void *task(p)
7131 return (void *) (p == NULL);
7135 int main(argc, argv)
7140 /* pthread test function */
7143 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7144 /* This system (e.g. AIX) defaults detached; must override */
7145 pthread_attr_t attr;
7147 status = pthread_attr_init(&attr);
7148 if( status ) exit( status );
7150 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7151 if( status ) exit( status );
7154 #elif defined( HAVE_PTHREADS_D4 )
7155 # define ATTR pthread_attr_default
7160 /* make sure pthread_create() isn't just a stub */
7161 status = pthread_create(&t, ATTR, task, NULL);
7162 if( status ) exit( status );
7164 /* give the thread a chance to complete...
7165 * it should remain joinable and hence detachable
7169 /* make sure pthread_detach() isn't just a stub */
7170 #if HAVE_PTHREADS_D4
7171 status = pthread_detach( &t );
7173 status = pthread_detach( t );
7176 #ifdef HAVE_LINUX_THREADS
7177 pthread_kill_other_threads_np();
7185 if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7187 ol_cv_pthread_create=yes
7189 echo "configure: failed program was:" >&5
7190 cat conftest.$ac_ext >&5
7192 ol_cv_pthread_create=no
7199 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7201 if test $ol_cv_pthread_create != no ; then
7202 ol_link_threads=posix
7206 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7207 if test "$ol_link_threads" = no ; then
7209 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7210 echo "configure:7211: checking for pthread link with -kthread" >&5
7211 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7217 LIBS="-kthread $LIBS"
7219 if test "$cross_compiling" = yes; then
7220 cat > conftest.$ac_ext <<EOF
7221 #line 7222 "configure"
7222 #include "confdefs.h"
7223 /* pthread test headers */
7224 #include <pthread.h>
7226 #define NULL (void*)0
7229 static void *task(p)
7232 return (void *) (p == NULL);
7237 /* pthread test function */
7240 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7241 /* This system (e.g. AIX) defaults detached; must override */
7242 pthread_attr_t attr;
7244 status = pthread_attr_init(&attr);
7245 if( status ) exit( status );
7247 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7248 if( status ) exit( status );
7251 #elif defined( HAVE_PTHREADS_D4 )
7252 # define ATTR pthread_attr_default
7257 /* make sure pthread_create() isn't just a stub */
7258 status = pthread_create(&t, ATTR, task, NULL);
7259 if( status ) exit( status );
7261 /* give the thread a chance to complete...
7262 * it should remain joinable and hence detachable
7266 /* make sure pthread_detach() isn't just a stub */
7267 #if HAVE_PTHREADS_D4
7268 status = pthread_detach( &t );
7270 status = pthread_detach( t );
7273 #ifdef HAVE_LINUX_THREADS
7274 pthread_kill_other_threads_np();
7281 if { (eval echo configure:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7283 ol_cv_pthread_kthread=yes
7285 echo "configure: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7288 ol_cv_pthread_kthread=no
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* pthread test headers */
7296 #include <pthread.h>
7298 #define NULL (void*)0
7301 static void *task(p)
7304 return (void *) (p == NULL);
7308 int main(argc, argv)
7313 /* pthread test function */
7316 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7317 /* This system (e.g. AIX) defaults detached; must override */
7318 pthread_attr_t attr;
7320 status = pthread_attr_init(&attr);
7321 if( status ) exit( status );
7323 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7324 if( status ) exit( status );
7327 #elif defined( HAVE_PTHREADS_D4 )
7328 # define ATTR pthread_attr_default
7333 /* make sure pthread_create() isn't just a stub */
7334 status = pthread_create(&t, ATTR, task, NULL);
7335 if( status ) exit( status );
7337 /* give the thread a chance to complete...
7338 * it should remain joinable and hence detachable
7342 /* make sure pthread_detach() isn't just a stub */
7343 #if HAVE_PTHREADS_D4
7344 status = pthread_detach( &t );
7346 status = pthread_detach( t );
7349 #ifdef HAVE_LINUX_THREADS
7350 pthread_kill_other_threads_np();
7358 if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7360 ol_cv_pthread_kthread=yes
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 ol_cv_pthread_kthread=no
7376 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7378 if test $ol_cv_pthread_kthread = yes ; then
7379 ol_link_pthreads="-kthread"
7380 ol_link_threads=posix
7384 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7385 if test "$ol_link_threads" = no ; then
7387 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7388 echo "configure:7389: checking for pthread link with -pthread" >&5
7389 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7395 LIBS="-pthread $LIBS"
7397 if test "$cross_compiling" = yes; then
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* pthread test headers */
7402 #include <pthread.h>
7404 #define NULL (void*)0
7407 static void *task(p)
7410 return (void *) (p == NULL);
7415 /* pthread test function */
7418 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7419 /* This system (e.g. AIX) defaults detached; must override */
7420 pthread_attr_t attr;
7422 status = pthread_attr_init(&attr);
7423 if( status ) exit( status );
7425 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7426 if( status ) exit( status );
7429 #elif defined( HAVE_PTHREADS_D4 )
7430 # define ATTR pthread_attr_default
7435 /* make sure pthread_create() isn't just a stub */
7436 status = pthread_create(&t, ATTR, task, NULL);
7437 if( status ) exit( status );
7439 /* give the thread a chance to complete...
7440 * it should remain joinable and hence detachable
7444 /* make sure pthread_detach() isn't just a stub */
7445 #if HAVE_PTHREADS_D4
7446 status = pthread_detach( &t );
7448 status = pthread_detach( t );
7451 #ifdef HAVE_LINUX_THREADS
7452 pthread_kill_other_threads_np();
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7461 ol_cv_pthread_pthread=yes
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7466 ol_cv_pthread_pthread=no
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* pthread test headers */
7474 #include <pthread.h>
7476 #define NULL (void*)0
7479 static void *task(p)
7482 return (void *) (p == NULL);
7486 int main(argc, argv)
7491 /* pthread test function */
7494 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7495 /* This system (e.g. AIX) defaults detached; must override */
7496 pthread_attr_t attr;
7498 status = pthread_attr_init(&attr);
7499 if( status ) exit( status );
7501 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7502 if( status ) exit( status );
7505 #elif defined( HAVE_PTHREADS_D4 )
7506 # define ATTR pthread_attr_default
7511 /* make sure pthread_create() isn't just a stub */
7512 status = pthread_create(&t, ATTR, task, NULL);
7513 if( status ) exit( status );
7515 /* give the thread a chance to complete...
7516 * it should remain joinable and hence detachable
7520 /* make sure pthread_detach() isn't just a stub */
7521 #if HAVE_PTHREADS_D4
7522 status = pthread_detach( &t );
7524 status = pthread_detach( t );
7527 #ifdef HAVE_LINUX_THREADS
7528 pthread_kill_other_threads_np();
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7538 ol_cv_pthread_pthread=yes
7540 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7543 ol_cv_pthread_pthread=no
7554 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7556 if test $ol_cv_pthread_pthread = yes ; then
7557 ol_link_pthreads="-pthread"
7558 ol_link_threads=posix
7562 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7563 if test "$ol_link_threads" = no ; then
7565 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7566 echo "configure:7567: checking for pthread link with -pthreads" >&5
7567 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7573 LIBS="-pthreads $LIBS"
7575 if test "$cross_compiling" = yes; then
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* pthread test headers */
7580 #include <pthread.h>
7582 #define NULL (void*)0
7585 static void *task(p)
7588 return (void *) (p == NULL);
7593 /* pthread test function */
7596 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7597 /* This system (e.g. AIX) defaults detached; must override */
7598 pthread_attr_t attr;
7600 status = pthread_attr_init(&attr);
7601 if( status ) exit( status );
7603 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7604 if( status ) exit( status );
7607 #elif defined( HAVE_PTHREADS_D4 )
7608 # define ATTR pthread_attr_default
7613 /* make sure pthread_create() isn't just a stub */
7614 status = pthread_create(&t, ATTR, task, NULL);
7615 if( status ) exit( status );
7617 /* give the thread a chance to complete...
7618 * it should remain joinable and hence detachable
7622 /* make sure pthread_detach() isn't just a stub */
7623 #if HAVE_PTHREADS_D4
7624 status = pthread_detach( &t );
7626 status = pthread_detach( t );
7629 #ifdef HAVE_LINUX_THREADS
7630 pthread_kill_other_threads_np();
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639 ol_cv_pthread_pthreads=yes
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 ol_cv_pthread_pthreads=no
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651 /* pthread test headers */
7652 #include <pthread.h>
7654 #define NULL (void*)0
7657 static void *task(p)
7660 return (void *) (p == NULL);
7664 int main(argc, argv)
7669 /* pthread test function */
7672 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7673 /* This system (e.g. AIX) defaults detached; must override */
7674 pthread_attr_t attr;
7676 status = pthread_attr_init(&attr);
7677 if( status ) exit( status );
7679 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7680 if( status ) exit( status );
7683 #elif defined( HAVE_PTHREADS_D4 )
7684 # define ATTR pthread_attr_default
7689 /* make sure pthread_create() isn't just a stub */
7690 status = pthread_create(&t, ATTR, task, NULL);
7691 if( status ) exit( status );
7693 /* give the thread a chance to complete...
7694 * it should remain joinable and hence detachable
7698 /* make sure pthread_detach() isn't just a stub */
7699 #if HAVE_PTHREADS_D4
7700 status = pthread_detach( &t );
7702 status = pthread_detach( t );
7705 #ifdef HAVE_LINUX_THREADS
7706 pthread_kill_other_threads_np();
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7716 ol_cv_pthread_pthreads=yes
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7721 ol_cv_pthread_pthreads=no
7732 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7734 if test $ol_cv_pthread_pthreads = yes ; then
7735 ol_link_pthreads="-pthreads"
7736 ol_link_threads=posix
7740 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7741 if test "$ol_link_threads" = no ; then
7743 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7744 echo "configure:7745: checking for pthread link with -mthreads" >&5
7745 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7751 LIBS="-mthreads $LIBS"
7753 if test "$cross_compiling" = yes; then
7754 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7757 /* pthread test headers */
7758 #include <pthread.h>
7760 #define NULL (void*)0
7763 static void *task(p)
7766 return (void *) (p == NULL);
7771 /* pthread test function */
7774 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7775 /* This system (e.g. AIX) defaults detached; must override */
7776 pthread_attr_t attr;
7778 status = pthread_attr_init(&attr);
7779 if( status ) exit( status );
7781 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7782 if( status ) exit( status );
7785 #elif defined( HAVE_PTHREADS_D4 )
7786 # define ATTR pthread_attr_default
7791 /* make sure pthread_create() isn't just a stub */
7792 status = pthread_create(&t, ATTR, task, NULL);
7793 if( status ) exit( status );
7795 /* give the thread a chance to complete...
7796 * it should remain joinable and hence detachable
7800 /* make sure pthread_detach() isn't just a stub */
7801 #if HAVE_PTHREADS_D4
7802 status = pthread_detach( &t );
7804 status = pthread_detach( t );
7807 #ifdef HAVE_LINUX_THREADS
7808 pthread_kill_other_threads_np();
7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7817 ol_cv_pthread_mthreads=yes
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 ol_cv_pthread_mthreads=no
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* pthread test headers */
7830 #include <pthread.h>
7832 #define NULL (void*)0
7835 static void *task(p)
7838 return (void *) (p == NULL);
7842 int main(argc, argv)
7847 /* pthread test function */
7850 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7851 /* This system (e.g. AIX) defaults detached; must override */
7852 pthread_attr_t attr;
7854 status = pthread_attr_init(&attr);
7855 if( status ) exit( status );
7857 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7858 if( status ) exit( status );
7861 #elif defined( HAVE_PTHREADS_D4 )
7862 # define ATTR pthread_attr_default
7867 /* make sure pthread_create() isn't just a stub */
7868 status = pthread_create(&t, ATTR, task, NULL);
7869 if( status ) exit( status );
7871 /* give the thread a chance to complete...
7872 * it should remain joinable and hence detachable
7876 /* make sure pthread_detach() isn't just a stub */
7877 #if HAVE_PTHREADS_D4
7878 status = pthread_detach( &t );
7880 status = pthread_detach( t );
7883 #ifdef HAVE_LINUX_THREADS
7884 pthread_kill_other_threads_np();
7892 if { (eval echo configure:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7894 ol_cv_pthread_mthreads=yes
7896 echo "configure: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7899 ol_cv_pthread_mthreads=no
7910 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7912 if test $ol_cv_pthread_mthreads = yes ; then
7913 ol_link_pthreads="-mthreads"
7914 ol_link_threads=posix
7918 # Pthread try link: -thread (ol_cv_pthread_thread)
7919 if test "$ol_link_threads" = no ; then
7921 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7922 echo "configure:7923: checking for pthread link with -thread" >&5
7923 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7929 LIBS="-thread $LIBS"
7931 if test "$cross_compiling" = yes; then
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* pthread test headers */
7936 #include <pthread.h>
7938 #define NULL (void*)0
7941 static void *task(p)
7944 return (void *) (p == NULL);
7949 /* pthread test function */
7952 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7953 /* This system (e.g. AIX) defaults detached; must override */
7954 pthread_attr_t attr;
7956 status = pthread_attr_init(&attr);
7957 if( status ) exit( status );
7959 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7960 if( status ) exit( status );
7963 #elif defined( HAVE_PTHREADS_D4 )
7964 # define ATTR pthread_attr_default
7969 /* make sure pthread_create() isn't just a stub */
7970 status = pthread_create(&t, ATTR, task, NULL);
7971 if( status ) exit( status );
7973 /* give the thread a chance to complete...
7974 * it should remain joinable and hence detachable
7978 /* make sure pthread_detach() isn't just a stub */
7979 #if HAVE_PTHREADS_D4
7980 status = pthread_detach( &t );
7982 status = pthread_detach( t );
7985 #ifdef HAVE_LINUX_THREADS
7986 pthread_kill_other_threads_np();
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7995 ol_cv_pthread_thread=yes
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
8000 ol_cv_pthread_thread=no
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* pthread test headers */
8008 #include <pthread.h>
8010 #define NULL (void*)0
8013 static void *task(p)
8016 return (void *) (p == NULL);
8020 int main(argc, argv)
8025 /* pthread test function */
8028 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8029 /* This system (e.g. AIX) defaults detached; must override */
8030 pthread_attr_t attr;
8032 status = pthread_attr_init(&attr);
8033 if( status ) exit( status );
8035 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8036 if( status ) exit( status );
8039 #elif defined( HAVE_PTHREADS_D4 )
8040 # define ATTR pthread_attr_default
8045 /* make sure pthread_create() isn't just a stub */
8046 status = pthread_create(&t, ATTR, task, NULL);
8047 if( status ) exit( status );
8049 /* give the thread a chance to complete...
8050 * it should remain joinable and hence detachable
8054 /* make sure pthread_detach() isn't just a stub */
8055 #if HAVE_PTHREADS_D4
8056 status = pthread_detach( &t );
8058 status = pthread_detach( t );
8061 #ifdef HAVE_LINUX_THREADS
8062 pthread_kill_other_threads_np();
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8072 ol_cv_pthread_thread=yes
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8077 ol_cv_pthread_thread=no
8088 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8090 if test $ol_cv_pthread_thread = yes ; then
8091 ol_link_pthreads="-thread"
8092 ol_link_threads=posix
8097 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8098 if test "$ol_link_threads" = no ; then
8099 # try -lpthread -lmach -lexc -lc_r
8100 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8101 echo "configure:8102: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8102 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8108 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8110 if test "$cross_compiling" = yes; then
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8114 /* pthread test headers */
8115 #include <pthread.h>
8117 #define NULL (void*)0
8120 static void *task(p)
8123 return (void *) (p == NULL);
8128 /* pthread test function */
8131 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8132 /* This system (e.g. AIX) defaults detached; must override */
8133 pthread_attr_t attr;
8135 status = pthread_attr_init(&attr);
8136 if( status ) exit( status );
8138 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8139 if( status ) exit( status );
8142 #elif defined( HAVE_PTHREADS_D4 )
8143 # define ATTR pthread_attr_default
8148 /* make sure pthread_create() isn't just a stub */
8149 status = pthread_create(&t, ATTR, task, NULL);
8150 if( status ) exit( status );
8152 /* give the thread a chance to complete...
8153 * it should remain joinable and hence detachable
8157 /* make sure pthread_detach() isn't just a stub */
8158 #if HAVE_PTHREADS_D4
8159 status = pthread_detach( &t );
8161 status = pthread_detach( t );
8164 #ifdef HAVE_LINUX_THREADS
8165 pthread_kill_other_threads_np();
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
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);
8199 int main(argc, argv)
8204 /* pthread test function */
8207 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8208 /* This system (e.g. AIX) defaults detached; must override */
8209 pthread_attr_t attr;
8211 status = pthread_attr_init(&attr);
8212 if( status ) exit( status );
8214 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8215 if( status ) exit( status );
8218 #elif defined( HAVE_PTHREADS_D4 )
8219 # define ATTR pthread_attr_default
8224 /* make sure pthread_create() isn't just a stub */
8225 status = pthread_create(&t, ATTR, task, NULL);
8226 if( status ) exit( status );
8228 /* give the thread a chance to complete...
8229 * it should remain joinable and hence detachable
8233 /* make sure pthread_detach() isn't just a stub */
8234 #if HAVE_PTHREADS_D4
8235 status = pthread_detach( &t );
8237 status = pthread_detach( t );
8240 #ifdef HAVE_LINUX_THREADS
8241 pthread_kill_other_threads_np();
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8251 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8267 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8269 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8270 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8271 ol_link_threads=posix
8275 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8276 if test "$ol_link_threads" = no ; then
8277 # try -lpthread -lmach -lexc
8278 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8279 echo "configure:8280: checking for pthread link with -lpthread -lmach -lexc" >&5
8280 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8286 LIBS="-lpthread -lmach -lexc $LIBS"
8288 if test "$cross_compiling" = yes; then
8289 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure"
8291 #include "confdefs.h"
8292 /* pthread test headers */
8293 #include <pthread.h>
8295 #define NULL (void*)0
8298 static void *task(p)
8301 return (void *) (p == NULL);
8306 /* pthread test function */
8309 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8310 /* This system (e.g. AIX) defaults detached; must override */
8311 pthread_attr_t attr;
8313 status = pthread_attr_init(&attr);
8314 if( status ) exit( status );
8316 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8317 if( status ) exit( status );
8320 #elif defined( HAVE_PTHREADS_D4 )
8321 # define ATTR pthread_attr_default
8326 /* make sure pthread_create() isn't just a stub */
8327 status = pthread_create(&t, ATTR, task, NULL);
8328 if( status ) exit( status );
8330 /* give the thread a chance to complete...
8331 * it should remain joinable and hence detachable
8335 /* make sure pthread_detach() isn't just a stub */
8336 #if HAVE_PTHREADS_D4
8337 status = pthread_detach( &t );
8339 status = pthread_detach( t );
8342 #ifdef HAVE_LINUX_THREADS
8343 pthread_kill_other_threads_np();
8350 if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8352 ol_cv_pthread_lpthread_lmach_lexc=yes
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8357 ol_cv_pthread_lpthread_lmach_lexc=no
8361 cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 /* pthread test headers */
8365 #include <pthread.h>
8367 #define NULL (void*)0
8370 static void *task(p)
8373 return (void *) (p == NULL);
8377 int main(argc, argv)
8382 /* pthread test function */
8385 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8386 /* This system (e.g. AIX) defaults detached; must override */
8387 pthread_attr_t attr;
8389 status = pthread_attr_init(&attr);
8390 if( status ) exit( status );
8392 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8393 if( status ) exit( status );
8396 #elif defined( HAVE_PTHREADS_D4 )
8397 # define ATTR pthread_attr_default
8402 /* make sure pthread_create() isn't just a stub */
8403 status = pthread_create(&t, ATTR, task, NULL);
8404 if( status ) exit( status );
8406 /* give the thread a chance to complete...
8407 * it should remain joinable and hence detachable
8411 /* make sure pthread_detach() isn't just a stub */
8412 #if HAVE_PTHREADS_D4
8413 status = pthread_detach( &t );
8415 status = pthread_detach( t );
8418 #ifdef HAVE_LINUX_THREADS
8419 pthread_kill_other_threads_np();
8427 if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8429 ol_cv_pthread_lpthread_lmach_lexc=yes
8431 echo "configure: failed program was:" >&5
8432 cat conftest.$ac_ext >&5
8434 ol_cv_pthread_lpthread_lmach_lexc=no
8445 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8447 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8448 ol_link_pthreads="-lpthread -lmach -lexc"
8449 ol_link_threads=posix
8454 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8455 if test "$ol_link_threads" = no ; then
8456 # try -lpthread -Wl,-woff,85
8457 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8458 echo "configure:8459: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8459 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8465 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8467 if test "$cross_compiling" = yes; then
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 /* pthread test headers */
8472 #include <pthread.h>
8474 #define NULL (void*)0
8477 static void *task(p)
8480 return (void *) (p == NULL);
8485 /* pthread test function */
8488 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8489 /* This system (e.g. AIX) defaults detached; must override */
8490 pthread_attr_t attr;
8492 status = pthread_attr_init(&attr);
8493 if( status ) exit( status );
8495 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8496 if( status ) exit( status );
8499 #elif defined( HAVE_PTHREADS_D4 )
8500 # define ATTR pthread_attr_default
8505 /* make sure pthread_create() isn't just a stub */
8506 status = pthread_create(&t, ATTR, task, NULL);
8507 if( status ) exit( status );
8509 /* give the thread a chance to complete...
8510 * it should remain joinable and hence detachable
8514 /* make sure pthread_detach() isn't just a stub */
8515 #if HAVE_PTHREADS_D4
8516 status = pthread_detach( &t );
8518 status = pthread_detach( t );
8521 #ifdef HAVE_LINUX_THREADS
8522 pthread_kill_other_threads_np();
8529 if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8531 ol_cv_pthread_lib_lpthread_woff=yes
8533 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8536 ol_cv_pthread_lib_lpthread_woff=no
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 /* pthread test headers */
8544 #include <pthread.h>
8546 #define NULL (void*)0
8549 static void *task(p)
8552 return (void *) (p == NULL);
8556 int main(argc, argv)
8561 /* pthread test function */
8564 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8565 /* This system (e.g. AIX) defaults detached; must override */
8566 pthread_attr_t attr;
8568 status = pthread_attr_init(&attr);
8569 if( status ) exit( status );
8571 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8572 if( status ) exit( status );
8575 #elif defined( HAVE_PTHREADS_D4 )
8576 # define ATTR pthread_attr_default
8581 /* make sure pthread_create() isn't just a stub */
8582 status = pthread_create(&t, ATTR, task, NULL);
8583 if( status ) exit( status );
8585 /* give the thread a chance to complete...
8586 * it should remain joinable and hence detachable
8590 /* make sure pthread_detach() isn't just a stub */
8591 #if HAVE_PTHREADS_D4
8592 status = pthread_detach( &t );
8594 status = pthread_detach( t );
8597 #ifdef HAVE_LINUX_THREADS
8598 pthread_kill_other_threads_np();
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8608 ol_cv_pthread_lib_lpthread_woff=yes
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8613 ol_cv_pthread_lib_lpthread_woff=no
8624 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8626 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8627 ol_link_pthreads="-lpthread -Wl,-woff,85"
8628 ol_link_threads=posix
8633 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8634 if test "$ol_link_threads" = no ; then
8636 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8637 echo "configure:8638: checking for pthread link with -lpthread" >&5
8638 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8644 LIBS="-lpthread $LIBS"
8646 if test "$cross_compiling" = yes; then
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 /* pthread test headers */
8651 #include <pthread.h>
8653 #define NULL (void*)0
8656 static void *task(p)
8659 return (void *) (p == NULL);
8664 /* pthread test function */
8667 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8668 /* This system (e.g. AIX) defaults detached; must override */
8669 pthread_attr_t attr;
8671 status = pthread_attr_init(&attr);
8672 if( status ) exit( status );
8674 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8675 if( status ) exit( status );
8678 #elif defined( HAVE_PTHREADS_D4 )
8679 # define ATTR pthread_attr_default
8684 /* make sure pthread_create() isn't just a stub */
8685 status = pthread_create(&t, ATTR, task, NULL);
8686 if( status ) exit( status );
8688 /* give the thread a chance to complete...
8689 * it should remain joinable and hence detachable
8693 /* make sure pthread_detach() isn't just a stub */
8694 #if HAVE_PTHREADS_D4
8695 status = pthread_detach( &t );
8697 status = pthread_detach( t );
8700 #ifdef HAVE_LINUX_THREADS
8701 pthread_kill_other_threads_np();
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710 ol_cv_pthread_lpthread=yes
8712 echo "configure: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8715 ol_cv_pthread_lpthread=no
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 /* pthread test headers */
8723 #include <pthread.h>
8725 #define NULL (void*)0
8728 static void *task(p)
8731 return (void *) (p == NULL);
8735 int main(argc, argv)
8740 /* pthread test function */
8743 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8744 /* This system (e.g. AIX) defaults detached; must override */
8745 pthread_attr_t attr;
8747 status = pthread_attr_init(&attr);
8748 if( status ) exit( status );
8750 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8751 if( status ) exit( status );
8754 #elif defined( HAVE_PTHREADS_D4 )
8755 # define ATTR pthread_attr_default
8760 /* make sure pthread_create() isn't just a stub */
8761 status = pthread_create(&t, ATTR, task, NULL);
8762 if( status ) exit( status );
8764 /* give the thread a chance to complete...
8765 * it should remain joinable and hence detachable
8769 /* make sure pthread_detach() isn't just a stub */
8770 #if HAVE_PTHREADS_D4
8771 status = pthread_detach( &t );
8773 status = pthread_detach( t );
8776 #ifdef HAVE_LINUX_THREADS
8777 pthread_kill_other_threads_np();
8785 if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8787 ol_cv_pthread_lpthread=yes
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8792 ol_cv_pthread_lpthread=no
8803 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8805 if test $ol_cv_pthread_lpthread = yes ; then
8806 ol_link_pthreads="-lpthread"
8807 ol_link_threads=posix
8811 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8812 if test "$ol_link_threads" = no ; then
8814 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8815 echo "configure:8816: checking for pthread link with -lc_r" >&5
8816 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8824 if test "$cross_compiling" = yes; then
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8828 /* pthread test headers */
8829 #include <pthread.h>
8831 #define NULL (void*)0
8834 static void *task(p)
8837 return (void *) (p == NULL);
8842 /* pthread test function */
8845 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8846 /* This system (e.g. AIX) defaults detached; must override */
8847 pthread_attr_t attr;
8849 status = pthread_attr_init(&attr);
8850 if( status ) exit( status );
8852 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8853 if( status ) exit( status );
8856 #elif defined( HAVE_PTHREADS_D4 )
8857 # define ATTR pthread_attr_default
8862 /* make sure pthread_create() isn't just a stub */
8863 status = pthread_create(&t, ATTR, task, NULL);
8864 if( status ) exit( status );
8866 /* give the thread a chance to complete...
8867 * it should remain joinable and hence detachable
8871 /* make sure pthread_detach() isn't just a stub */
8872 #if HAVE_PTHREADS_D4
8873 status = pthread_detach( &t );
8875 status = pthread_detach( t );
8878 #ifdef HAVE_LINUX_THREADS
8879 pthread_kill_other_threads_np();
8886 if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8888 ol_cv_pthread_lc_r=yes
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8893 ol_cv_pthread_lc_r=no
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 /* pthread test headers */
8901 #include <pthread.h>
8903 #define NULL (void*)0
8906 static void *task(p)
8909 return (void *) (p == NULL);
8913 int main(argc, argv)
8918 /* pthread test function */
8921 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8922 /* This system (e.g. AIX) defaults detached; must override */
8923 pthread_attr_t attr;
8925 status = pthread_attr_init(&attr);
8926 if( status ) exit( status );
8928 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8929 if( status ) exit( status );
8932 #elif defined( HAVE_PTHREADS_D4 )
8933 # define ATTR pthread_attr_default
8938 /* make sure pthread_create() isn't just a stub */
8939 status = pthread_create(&t, ATTR, task, NULL);
8940 if( status ) exit( status );
8942 /* give the thread a chance to complete...
8943 * it should remain joinable and hence detachable
8947 /* make sure pthread_detach() isn't just a stub */
8948 #if HAVE_PTHREADS_D4
8949 status = pthread_detach( &t );
8951 status = pthread_detach( t );
8954 #ifdef HAVE_LINUX_THREADS
8955 pthread_kill_other_threads_np();
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8965 ol_cv_pthread_lc_r=yes
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8970 ol_cv_pthread_lc_r=no
8981 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8983 if test $ol_cv_pthread_lc_r = yes ; then
8984 ol_link_pthreads="-lc_r"
8985 ol_link_threads=posix
8990 # Pthread try link: -threads (ol_cv_pthread_threads)
8991 if test "$ol_link_threads" = no ; then
8993 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8994 echo "configure:8995: checking for pthread link with -threads" >&5
8995 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8996 echo $ac_n "(cached) $ac_c" 1>&6
9001 LIBS="-threads $LIBS"
9003 if test "$cross_compiling" = yes; then
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9007 /* pthread test headers */
9008 #include <pthread.h>
9010 #define NULL (void*)0
9013 static void *task(p)
9016 return (void *) (p == NULL);
9021 /* pthread test function */
9024 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9025 /* This system (e.g. AIX) defaults detached; must override */
9026 pthread_attr_t attr;
9028 status = pthread_attr_init(&attr);
9029 if( status ) exit( status );
9031 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9032 if( status ) exit( status );
9035 #elif defined( HAVE_PTHREADS_D4 )
9036 # define ATTR pthread_attr_default
9041 /* make sure pthread_create() isn't just a stub */
9042 status = pthread_create(&t, ATTR, task, NULL);
9043 if( status ) exit( status );
9045 /* give the thread a chance to complete...
9046 * it should remain joinable and hence detachable
9050 /* make sure pthread_detach() isn't just a stub */
9051 #if HAVE_PTHREADS_D4
9052 status = pthread_detach( &t );
9054 status = pthread_detach( t );
9057 #ifdef HAVE_LINUX_THREADS
9058 pthread_kill_other_threads_np();
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067 ol_cv_pthread_threads=yes
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9072 ol_cv_pthread_threads=no
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure"
9078 #include "confdefs.h"
9079 /* pthread test headers */
9080 #include <pthread.h>
9082 #define NULL (void*)0
9085 static void *task(p)
9088 return (void *) (p == NULL);
9092 int main(argc, argv)
9097 /* pthread test function */
9100 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9101 /* This system (e.g. AIX) defaults detached; must override */
9102 pthread_attr_t attr;
9104 status = pthread_attr_init(&attr);
9105 if( status ) exit( status );
9107 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9108 if( status ) exit( status );
9111 #elif defined( HAVE_PTHREADS_D4 )
9112 # define ATTR pthread_attr_default
9117 /* make sure pthread_create() isn't just a stub */
9118 status = pthread_create(&t, ATTR, task, NULL);
9119 if( status ) exit( status );
9121 /* give the thread a chance to complete...
9122 * it should remain joinable and hence detachable
9126 /* make sure pthread_detach() isn't just a stub */
9127 #if HAVE_PTHREADS_D4
9128 status = pthread_detach( &t );
9130 status = pthread_detach( t );
9133 #ifdef HAVE_LINUX_THREADS
9134 pthread_kill_other_threads_np();
9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9144 ol_cv_pthread_threads=yes
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 ol_cv_pthread_threads=no
9160 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9162 if test $ol_cv_pthread_threads = yes ; then
9163 ol_link_pthreads="-threads"
9164 ol_link_threads=posix
9169 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9170 if test "$ol_link_threads" = no ; then
9171 # try -lpthreads -lmach -lexc -lc_r
9172 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9173 echo "configure:9174: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9174 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9180 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9182 if test "$cross_compiling" = yes; then
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 /* pthread test headers */
9187 #include <pthread.h>
9189 #define NULL (void*)0
9192 static void *task(p)
9195 return (void *) (p == NULL);
9200 /* pthread test function */
9203 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9204 /* This system (e.g. AIX) defaults detached; must override */
9205 pthread_attr_t attr;
9207 status = pthread_attr_init(&attr);
9208 if( status ) exit( status );
9210 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9211 if( status ) exit( status );
9214 #elif defined( HAVE_PTHREADS_D4 )
9215 # define ATTR pthread_attr_default
9220 /* make sure pthread_create() isn't just a stub */
9221 status = pthread_create(&t, ATTR, task, NULL);
9222 if( status ) exit( status );
9224 /* give the thread a chance to complete...
9225 * it should remain joinable and hence detachable
9229 /* make sure pthread_detach() isn't just a stub */
9230 #if HAVE_PTHREADS_D4
9231 status = pthread_detach( &t );
9233 status = pthread_detach( t );
9236 #ifdef HAVE_LINUX_THREADS
9237 pthread_kill_other_threads_np();
9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9255 cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9258 /* pthread test headers */
9259 #include <pthread.h>
9261 #define NULL (void*)0
9264 static void *task(p)
9267 return (void *) (p == NULL);
9271 int main(argc, argv)
9276 /* pthread test function */
9279 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9280 /* This system (e.g. AIX) defaults detached; must override */
9281 pthread_attr_t attr;
9283 status = pthread_attr_init(&attr);
9284 if( status ) exit( status );
9286 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9287 if( status ) exit( status );
9290 #elif defined( HAVE_PTHREADS_D4 )
9291 # define ATTR pthread_attr_default
9296 /* make sure pthread_create() isn't just a stub */
9297 status = pthread_create(&t, ATTR, task, NULL);
9298 if( status ) exit( status );
9300 /* give the thread a chance to complete...
9301 * it should remain joinable and hence detachable
9305 /* make sure pthread_detach() isn't just a stub */
9306 #if HAVE_PTHREADS_D4
9307 status = pthread_detach( &t );
9309 status = pthread_detach( t );
9312 #ifdef HAVE_LINUX_THREADS
9313 pthread_kill_other_threads_np();
9321 if { (eval echo configure:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9323 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9325 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9328 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9339 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9341 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9342 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9343 ol_link_threads=posix
9347 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9348 if test "$ol_link_threads" = no ; then
9349 # try -lpthreads -lmach -lexc
9350 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9351 echo "configure:9352: checking for pthread link with -lpthreads -lmach -lexc" >&5
9352 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9358 LIBS="-lpthreads -lmach -lexc $LIBS"
9360 if test "$cross_compiling" = yes; then
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 /* pthread test headers */
9365 #include <pthread.h>
9367 #define NULL (void*)0
9370 static void *task(p)
9373 return (void *) (p == NULL);
9378 /* pthread test function */
9381 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9382 /* This system (e.g. AIX) defaults detached; must override */
9383 pthread_attr_t attr;
9385 status = pthread_attr_init(&attr);
9386 if( status ) exit( status );
9388 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9389 if( status ) exit( status );
9392 #elif defined( HAVE_PTHREADS_D4 )
9393 # define ATTR pthread_attr_default
9398 /* make sure pthread_create() isn't just a stub */
9399 status = pthread_create(&t, ATTR, task, NULL);
9400 if( status ) exit( status );
9402 /* give the thread a chance to complete...
9403 * it should remain joinable and hence detachable
9407 /* make sure pthread_detach() isn't just a stub */
9408 #if HAVE_PTHREADS_D4
9409 status = pthread_detach( &t );
9411 status = pthread_detach( t );
9414 #ifdef HAVE_LINUX_THREADS
9415 pthread_kill_other_threads_np();
9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9424 ol_cv_pthread_lpthreads_lmach_lexc=yes
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 ol_cv_pthread_lpthreads_lmach_lexc=no
9433 cat > conftest.$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 /* pthread test headers */
9437 #include <pthread.h>
9439 #define NULL (void*)0
9442 static void *task(p)
9445 return (void *) (p == NULL);
9449 int main(argc, argv)
9454 /* pthread test function */
9457 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9458 /* This system (e.g. AIX) defaults detached; must override */
9459 pthread_attr_t attr;
9461 status = pthread_attr_init(&attr);
9462 if( status ) exit( status );
9464 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9465 if( status ) exit( status );
9468 #elif defined( HAVE_PTHREADS_D4 )
9469 # define ATTR pthread_attr_default
9474 /* make sure pthread_create() isn't just a stub */
9475 status = pthread_create(&t, ATTR, task, NULL);
9476 if( status ) exit( status );
9478 /* give the thread a chance to complete...
9479 * it should remain joinable and hence detachable
9483 /* make sure pthread_detach() isn't just a stub */
9484 #if HAVE_PTHREADS_D4
9485 status = pthread_detach( &t );
9487 status = pthread_detach( t );
9490 #ifdef HAVE_LINUX_THREADS
9491 pthread_kill_other_threads_np();
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9501 ol_cv_pthread_lpthreads_lmach_lexc=yes
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9506 ol_cv_pthread_lpthreads_lmach_lexc=no
9517 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9519 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9520 ol_link_pthreads="-lpthreads -lmach -lexc"
9521 ol_link_threads=posix
9525 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9526 if test "$ol_link_threads" = no ; then
9527 # try -lpthreads -lexc
9528 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9529 echo "configure:9530: checking for pthread link with -lpthreads -lexc" >&5
9530 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9531 echo $ac_n "(cached) $ac_c" 1>&6
9536 LIBS="-lpthreads -lexc $LIBS"
9538 if test "$cross_compiling" = yes; then
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 /* pthread test headers */
9543 #include <pthread.h>
9545 #define NULL (void*)0
9548 static void *task(p)
9551 return (void *) (p == NULL);
9556 /* pthread test function */
9559 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9560 /* This system (e.g. AIX) defaults detached; must override */
9561 pthread_attr_t attr;
9563 status = pthread_attr_init(&attr);
9564 if( status ) exit( status );
9566 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9567 if( status ) exit( status );
9570 #elif defined( HAVE_PTHREADS_D4 )
9571 # define ATTR pthread_attr_default
9576 /* make sure pthread_create() isn't just a stub */
9577 status = pthread_create(&t, ATTR, task, NULL);
9578 if( status ) exit( status );
9580 /* give the thread a chance to complete...
9581 * it should remain joinable and hence detachable
9585 /* make sure pthread_detach() isn't just a stub */
9586 #if HAVE_PTHREADS_D4
9587 status = pthread_detach( &t );
9589 status = pthread_detach( t );
9592 #ifdef HAVE_LINUX_THREADS
9593 pthread_kill_other_threads_np();
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9602 ol_cv_pthread_lpthreads_lexc=yes
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9607 ol_cv_pthread_lpthreads_lexc=no
9611 cat > conftest.$ac_ext <<EOF
9612 #line 9613 "configure"
9613 #include "confdefs.h"
9614 /* pthread test headers */
9615 #include <pthread.h>
9617 #define NULL (void*)0
9620 static void *task(p)
9623 return (void *) (p == NULL);
9627 int main(argc, argv)
9632 /* pthread test function */
9635 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9636 /* This system (e.g. AIX) defaults detached; must override */
9637 pthread_attr_t attr;
9639 status = pthread_attr_init(&attr);
9640 if( status ) exit( status );
9642 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9643 if( status ) exit( status );
9646 #elif defined( HAVE_PTHREADS_D4 )
9647 # define ATTR pthread_attr_default
9652 /* make sure pthread_create() isn't just a stub */
9653 status = pthread_create(&t, ATTR, task, NULL);
9654 if( status ) exit( status );
9656 /* give the thread a chance to complete...
9657 * it should remain joinable and hence detachable
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 );
9749 #elif defined( HAVE_PTHREADS_D4 )
9750 # define ATTR pthread_attr_default
9755 /* make sure pthread_create() isn't just a stub */
9756 status = pthread_create(&t, ATTR, task, NULL);
9757 if( status ) exit( status );
9759 /* give the thread a chance to complete...
9760 * it should remain joinable and hence detachable
9764 /* make sure pthread_detach() isn't just a stub */
9765 #if HAVE_PTHREADS_D4
9766 status = pthread_detach( &t );
9768 status = pthread_detach( t );
9771 #ifdef HAVE_LINUX_THREADS
9772 pthread_kill_other_threads_np();
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9781 ol_cv_pthread_lib_lpthreads=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 ol_cv_pthread_lib_lpthreads=no
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 /* pthread test headers */
9794 #include <pthread.h>
9796 #define NULL (void*)0
9799 static void *task(p)
9802 return (void *) (p == NULL);
9806 int main(argc, argv)
9811 /* pthread test function */
9814 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9815 /* This system (e.g. AIX) defaults detached; must override */
9816 pthread_attr_t attr;
9818 status = pthread_attr_init(&attr);
9819 if( status ) exit( status );
9821 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9822 if( status ) exit( status );
9825 #elif defined( HAVE_PTHREADS_D4 )
9826 # define ATTR pthread_attr_default
9831 /* make sure pthread_create() isn't just a stub */
9832 status = pthread_create(&t, ATTR, task, NULL);
9833 if( status ) exit( status );
9835 /* give the thread a chance to complete...
9836 * it should remain joinable and hence detachable
9840 /* make sure pthread_detach() isn't just a stub */
9841 #if HAVE_PTHREADS_D4
9842 status = pthread_detach( &t );
9844 status = pthread_detach( t );
9847 #ifdef HAVE_LINUX_THREADS
9848 pthread_kill_other_threads_np();
9856 if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9858 ol_cv_pthread_lib_lpthreads=yes
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9863 ol_cv_pthread_lib_lpthreads=no
9874 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9876 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9877 ol_link_pthreads="-lpthreads"
9878 ol_link_threads=posix
9883 if test $ol_link_threads != no ; then
9884 cat >> confdefs.h <<\EOF
9885 #define HAVE_PTHREADS 1
9889 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9891 save_CPPFLAGS="$CPPFLAGS"
9893 LIBS="$LTHREAD_LIBS $LIBS"
9895 for ac_func in sched_yield pthread_yield
9897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9898 echo "configure:9899: checking for $ac_func" >&5
9899 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9900 echo $ac_n "(cached) $ac_c" 1>&6
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 /* System header to define __stub macros and hopefully few prototypes,
9906 which can conflict with char $ac_func(); below. */
9908 /* Override any gcc2 internal prototype to avoid an error. */
9909 /* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9927 if { (eval echo configure:9928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9929 eval "ac_cv_func_$ac_func=yes"
9931 echo "configure: failed program was:" >&5
9932 cat conftest.$ac_ext >&5
9934 eval "ac_cv_func_$ac_func=no"
9939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9940 echo "$ac_t""yes" 1>&6
9941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9942 cat >> confdefs.h <<EOF
9943 #define $ac_tr_func 1
9947 echo "$ac_t""no" 1>&6
9952 if test $ac_cv_func_sched_yield = no -a \
9953 $ac_cv_func_pthread_yield = no ; then
9954 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9955 echo "configure:9956: checking for sched_yield in -lrt" >&5
9956 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9957 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9960 ac_save_LIBS="$LIBS"
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 /* Override any gcc2 internal prototype to avoid an error. */
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 eval "ac_cv_lib_$ac_lib_var=yes"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 eval "ac_cv_lib_$ac_lib_var=no"
9984 LIBS="$ac_save_LIBS"
9987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9990 cat >> confdefs.h <<\EOF
9991 #define HAVE_SCHED_YIELD 1
9994 ac_cv_func_sched_yield=yes
9996 echo "$ac_t""no" 1>&6
9997 ac_cv_func_sched_yield=no
10001 if test $ac_cv_func_sched_yield = no -a \
10002 $ac_cv_func_pthread_yield = no ; then
10003 for ac_func in thr_yield
10005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10006 echo "configure:10007: checking for $ac_func" >&5
10007 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10008 echo $ac_n "(cached) $ac_c" 1>&6
10010 cat > conftest.$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013 /* System header to define __stub macros and hopefully few prototypes,
10014 which can conflict with char $ac_func(); below. */
10015 #include <assert.h>
10016 /* Override any gcc2 internal prototype to avoid an error. */
10017 /* We use char because int might match the return type of a gcc2
10018 builtin and then its argument prototype would still apply. */
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 eval "ac_cv_func_$ac_func=yes"
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10042 eval "ac_cv_func_$ac_func=no"
10047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10048 echo "$ac_t""yes" 1>&6
10049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10050 cat >> confdefs.h <<EOF
10051 #define $ac_tr_func 1
10055 echo "$ac_t""no" 1>&6
10060 if test $ac_cv_func_sched_yield = no -a \
10061 $ac_cv_func_pthread_yield = no -a \
10062 "$ac_cv_func_thr_yield" = no ; then
10063 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10066 for ac_func in pthread_kill pthread_rwlock_destroy
10068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10069 echo "configure:10070: checking for $ac_func" >&5
10070 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* System header to define __stub macros and hopefully few prototypes,
10077 which can conflict with char $ac_func(); below. */
10078 #include <assert.h>
10079 /* Override any gcc2 internal prototype to avoid an error. */
10080 /* We use char because int might match the return type of a gcc2
10081 builtin and then its argument prototype would still apply. */
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10098 if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10100 eval "ac_cv_func_$ac_func=yes"
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10105 eval "ac_cv_func_$ac_func=no"
10110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10111 echo "$ac_t""yes" 1>&6
10112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10113 cat >> confdefs.h <<EOF
10114 #define $ac_tr_func 1
10118 echo "$ac_t""no" 1>&6
10123 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10124 echo "configure:10125: checking for pthread_detach with <pthread.h>" >&5
10125 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10133 #include <pthread.h>
10135 #define NULL (void*)0
10139 pthread_detach(NULL);
10142 if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10144 ol_cv_func_pthread_detach=yes
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10149 ol_cv_func_pthread_detach=no
10155 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10157 if test $ol_cv_func_pthread_detach = no ; then
10158 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_PTHREAD_DETACH 1
10167 pthread_setconcurrency \
10168 pthread_getconcurrency \
10169 thr_setconcurrency \
10170 thr_getconcurrency \
10173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10174 echo "configure:10175: checking for $ac_func" >&5
10175 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10178 cat > conftest.$ac_ext <<EOF
10179 #line 10180 "configure"
10180 #include "confdefs.h"
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func(); below. */
10183 #include <assert.h>
10184 /* Override any gcc2 internal prototype to avoid an error. */
10185 /* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10203 if { (eval echo configure:10204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10205 eval "ac_cv_func_$ac_func=yes"
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 eval "ac_cv_func_$ac_func=no"
10215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10218 cat >> confdefs.h <<EOF
10219 #define $ac_tr_func 1
10223 echo "$ac_t""no" 1>&6
10229 for ac_func in pthread_kill_other_threads_np
10231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10232 echo "configure:10233: checking for $ac_func" >&5
10233 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 /* System header to define __stub macros and hopefully few prototypes,
10240 which can conflict with char $ac_func(); below. */
10241 #include <assert.h>
10242 /* Override any gcc2 internal prototype to avoid an error. */
10243 /* We use char because int might match the return type of a gcc2
10244 builtin and then its argument prototype would still apply. */
10250 /* The GNU C library defines this for functions which it implements
10251 to always fail with ENOSYS. Some functions are actually named
10252 something starting with __ and the normal name is an alias. */
10253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10261 if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10263 eval "ac_cv_func_$ac_func=yes"
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10268 eval "ac_cv_func_$ac_func=no"
10273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10276 cat >> confdefs.h <<EOF
10277 #define $ac_tr_func 1
10281 echo "$ac_t""no" 1>&6
10285 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10286 echo "configure:10287: checking for LinuxThreads implementation" >&5
10287 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10290 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10293 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10298 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10299 echo "configure:10300: checking for LinuxThreads consistency" >&5
10300 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10304 if test $ol_cv_header_linux_threads = yes -a \
10305 $ol_cv_sys_linux_threads = yes; then
10306 ol_cv_linux_threads=yes
10307 elif test $ol_cv_header_linux_threads = no -a \
10308 $ol_cv_sys_linux_threads = no; then
10309 ol_cv_linux_threads=no
10311 ol_cv_linux_threads=error
10316 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10319 if test $ol_cv_linux_threads = error; then
10320 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10323 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10324 echo "configure:10325: checking if pthread_create() works" >&5
10325 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10326 echo $ac_n "(cached) $ac_c" 1>&6
10329 if test "$cross_compiling" = yes; then
10330 ol_cv_pthread_create_works=yes
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure"
10334 #include "confdefs.h"
10335 /* pthread test headers */
10336 #include <pthread.h>
10338 #define NULL (void*)0
10341 static void *task(p)
10344 return (void *) (p == NULL);
10348 int main(argc, argv)
10353 /* pthread test function */
10356 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10357 /* This system (e.g. AIX) defaults detached; must override */
10358 pthread_attr_t attr;
10360 status = pthread_attr_init(&attr);
10361 if( status ) exit( status );
10363 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10364 if( status ) exit( status );
10366 # define ATTR &attr
10367 #elif defined( HAVE_PTHREADS_D4 )
10368 # define ATTR pthread_attr_default
10373 /* make sure pthread_create() isn't just a stub */
10374 status = pthread_create(&t, ATTR, task, NULL);
10375 if( status ) exit( status );
10377 /* give the thread a chance to complete...
10378 * it should remain joinable and hence detachable
10382 /* make sure pthread_detach() isn't just a stub */
10383 #if HAVE_PTHREADS_D4
10384 status = pthread_detach( &t );
10386 status = pthread_detach( t );
10389 #ifdef HAVE_LINUX_THREADS
10390 pthread_kill_other_threads_np();
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10400 ol_cv_pthread_create_works=yes
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 ol_cv_pthread_create_works=no
10412 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10414 if test $ol_cv_pthread_create_works = no ; then
10415 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10418 if test $ol_with_yielding_select = auto ; then
10419 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10420 echo "configure:10421: checking if select yields when using pthreads" >&5
10421 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10425 if test "$cross_compiling" = yes; then
10426 ol_cv_pthread_select_yields=cross
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10432 #include <sys/types.h>
10433 #include <sys/time.h>
10434 #include <unistd.h>
10435 #include <pthread.h>
10437 #define NULL (void*) 0
10440 static int fildes[2];
10442 static void *task(p)
10454 FD_SET(fildes[0], &rfds);
10456 /* we're not interested in any fds */
10457 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10464 exit(0); /* if we exit here, the select blocked the whole process */
10467 int main(argc, argv)
10473 /* create a pipe to select */
10474 if(pipe(&fildes[0])) {
10479 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10480 (void) pthread_setconcurrency(2);
10482 #ifdef HAVE_THR_SETCONCURRENCY
10483 /* Set Solaris LWP concurrency to 2 */
10484 thr_setconcurrency(2);
10488 #if HAVE_PTHREADS_D4
10489 pthread_create(&t, pthread_attr_default, task, NULL);
10491 pthread_create(&t, NULL, task, NULL);
10494 #if HAVE_SCHED_YIELD
10495 sched_yield(); /* make sure task runs first */
10497 #ifdef HAVE_PTHREAD_YIELD
10498 pthread_yield(); /* make sure task runs first */
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10507 ol_cv_pthread_select_yields=no
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 ol_cv_pthread_select_yields=yes
10519 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10521 if test $ol_cv_pthread_select_yields = cross ; then
10522 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10525 if test $ol_cv_pthread_select_yields = yes ; then
10526 ol_with_yielding_select=yes
10530 CPPFLAGS="$save_CPPFLAGS"
10533 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10537 if test $ol_with_threads = posix ; then
10538 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10542 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10543 -o $ol_with_threads = mach ; then
10545 for ac_hdr in mach/cthreads.h
10547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10549 echo "configure:10550: checking for $ac_hdr" >&5
10550 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10559 { (eval echo configure:10560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10561 if test -z "$ac_err"; then
10563 eval "ac_cv_header_$ac_safe=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_header_$ac_safe=no"
10573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10574 echo "$ac_t""yes" 1>&6
10575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10576 cat >> confdefs.h <<EOF
10577 #define $ac_tr_hdr 1
10581 echo "$ac_t""no" 1>&6
10585 if test $ac_cv_header_mach_cthreads_h = yes ; then
10586 ol_with_threads=found
10588 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10589 echo "configure:10590: checking for cthread_fork" >&5
10590 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 /* System header to define __stub macros and hopefully few prototypes,
10597 which can conflict with char cthread_fork(); below. */
10598 #include <assert.h>
10599 /* Override any gcc2 internal prototype to avoid an error. */
10600 /* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10602 char cthread_fork();
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10620 eval "ac_cv_func_cthread_fork=yes"
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10625 eval "ac_cv_func_cthread_fork=no"
10630 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 ol_link_threads=yes
10634 echo "$ac_t""no" 1>&6
10638 if test $ol_link_threads = no ; then
10639 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10640 echo "configure:10641: checking for cthread_fork with -all_load" >&5
10641 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10646 LIBS="-all_load $LIBS"
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include <mach/cthreads.h>
10653 cthread_fork((void *)0, (void *)0);
10657 if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 ol_cv_cthread_all_load=yes
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10664 ol_cv_cthread_all_load=no
10671 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10673 if test $ol_cv_cthread_all_load = yes ; then
10674 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10675 ol_link_threads=mach
10679 if test $ol_link_threads != no ; then
10680 : check for cthread specific functionality here
10681 cat >> confdefs.h <<\EOF
10682 #define HAVE_MACH_CTHREADS 1
10686 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10690 if test $ol_with_threads = mach ; then
10691 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10695 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10696 -o $ol_with_threads = pth ; then
10698 for ac_hdr in pth.h
10700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10702 echo "configure:10703: checking for $ac_hdr" >&5
10703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10712 { (eval echo configure:10713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10714 if test -z "$ac_err"; then
10716 eval "ac_cv_header_$ac_safe=yes"
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10722 eval "ac_cv_header_$ac_safe=no"
10726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10727 echo "$ac_t""yes" 1>&6
10728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10729 cat >> confdefs.h <<EOF
10730 #define $ac_tr_hdr 1
10734 echo "$ac_t""no" 1>&6
10739 if test $ac_cv_header_pth_h = yes ; then
10740 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10741 echo "configure:10742: checking for pth_version in -lpth" >&5
10742 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10743 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10746 ac_save_LIBS="$LIBS"
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char pth_version();
10760 if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10762 eval "ac_cv_lib_$ac_lib_var=yes"
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10767 eval "ac_cv_lib_$ac_lib_var=no"
10770 LIBS="$ac_save_LIBS"
10773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10774 echo "$ac_t""yes" 1>&6
10777 echo "$ac_t""no" 1>&6
10782 if test $have_pth = yes ; then
10783 cat >> confdefs.h <<\EOF
10784 #define HAVE_GNU_PTH 1
10787 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10788 ol_link_threads=pth
10790 if test $ol_with_yielding_select = auto ; then
10791 ol_with_yielding_select=yes
10797 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10798 -o $ol_with_threads = lwp ; then
10800 for ac_hdr in thread.h synch.h
10802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10804 echo "configure:10805: checking for $ac_hdr" >&5
10805 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10814 { (eval echo configure:10815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10816 if test -z "$ac_err"; then
10818 eval "ac_cv_header_$ac_safe=yes"
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10824 eval "ac_cv_header_$ac_safe=no"
10828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10829 echo "$ac_t""yes" 1>&6
10830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10831 cat >> confdefs.h <<EOF
10832 #define $ac_tr_hdr 1
10836 echo "$ac_t""no" 1>&6
10840 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10841 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10842 echo "configure:10843: checking for thr_create in -lthread" >&5
10843 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10844 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10845 echo $ac_n "(cached) $ac_c" 1>&6
10847 ac_save_LIBS="$LIBS"
10848 LIBS="-lthread $LIBS"
10849 cat > conftest.$ac_ext <<EOF
10850 #line 10851 "configure"
10851 #include "confdefs.h"
10852 /* Override any gcc2 internal prototype to avoid an error. */
10853 /* We use char because int might match the return type of a gcc2
10854 builtin and then its argument prototype would still apply. */
10861 if { (eval echo configure:10862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10863 eval "ac_cv_lib_$ac_lib_var=yes"
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10868 eval "ac_cv_lib_$ac_lib_var=no"
10871 LIBS="$ac_save_LIBS"
10874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10875 echo "$ac_t""yes" 1>&6
10878 echo "$ac_t""no" 1>&6
10883 if test $have_thr = yes ; then
10884 cat >> confdefs.h <<\EOF
10888 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10889 ol_link_threads=thr
10891 if test $ol_with_yielding_select = auto ; then
10892 ol_with_yielding_select=yes
10896 thr_setconcurrency \
10897 thr_getconcurrency \
10900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10901 echo "configure:10902: checking for $ac_func" >&5
10902 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 /* System header to define __stub macros and hopefully few prototypes,
10909 which can conflict with char $ac_func(); below. */
10910 #include <assert.h>
10911 /* Override any gcc2 internal prototype to avoid an error. */
10912 /* We use char because int might match the return type of a gcc2
10913 builtin and then its argument prototype would still apply. */
10919 /* The GNU C library defines this for functions which it implements
10920 to always fail with ENOSYS. Some functions are actually named
10921 something starting with __ and the normal name is an alias. */
10922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10932 eval "ac_cv_func_$ac_func=yes"
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10937 eval "ac_cv_func_$ac_func=no"
10942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10943 echo "$ac_t""yes" 1>&6
10944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10945 cat >> confdefs.h <<EOF
10946 #define $ac_tr_func 1
10950 echo "$ac_t""no" 1>&6
10957 for ac_hdr in lwp/lwp.h
10959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10961 echo "configure:10962: checking for $ac_hdr" >&5
10962 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10971 { (eval echo configure:10972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10973 if test -z "$ac_err"; then
10975 eval "ac_cv_header_$ac_safe=yes"
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10981 eval "ac_cv_header_$ac_safe=no"
10985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10988 cat >> confdefs.h <<EOF
10989 #define $ac_tr_hdr 1
10993 echo "$ac_t""no" 1>&6
10997 if test $ac_cv_header_lwp_lwp_h = yes ; then
10998 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10999 echo "configure:11000: checking for lwp_create in -llwp" >&5
11000 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11001 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11004 ac_save_LIBS="$LIBS"
11006 cat > conftest.$ac_ext <<EOF
11007 #line 11008 "configure"
11008 #include "confdefs.h"
11009 /* Override any gcc2 internal prototype to avoid an error. */
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11020 eval "ac_cv_lib_$ac_lib_var=yes"
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11025 eval "ac_cv_lib_$ac_lib_var=no"
11028 LIBS="$ac_save_LIBS"
11031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11032 echo "$ac_t""yes" 1>&6
11035 echo "$ac_t""no" 1>&6
11040 if test $have_lwp = yes ; then
11041 cat >> confdefs.h <<\EOF
11045 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11046 ol_link_threads=lwp
11048 if test $ol_with_yielding_select = auto ; then
11049 ol_with_yielding_select=no
11055 if test $ol_with_yielding_select = yes ; then
11056 cat >> confdefs.h <<\EOF
11057 #define HAVE_YIELDING_SELECT 1
11062 if test $ol_with_threads = manual ; then
11063 ol_link_threads=yes
11065 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11067 for ac_hdr in pthread.h sched.h
11069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11071 echo "configure:11072: checking for $ac_hdr" >&5
11072 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11073 echo $ac_n "(cached) $ac_c" 1>&6
11075 cat > conftest.$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11081 { (eval echo configure:11082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11083 if test -z "$ac_err"; then
11085 eval "ac_cv_header_$ac_safe=yes"
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 eval "ac_cv_header_$ac_safe=no"
11095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11096 echo "$ac_t""yes" 1>&6
11097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11098 cat >> confdefs.h <<EOF
11099 #define $ac_tr_hdr 1
11103 echo "$ac_t""no" 1>&6
11107 for ac_func in sched_yield pthread_yield
11109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11110 echo "configure:11111: checking for $ac_func" >&5
11111 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func(); below. */
11119 #include <assert.h>
11120 /* Override any gcc2 internal prototype to avoid an error. */
11121 /* We use char because int might match the return type of a gcc2
11122 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11139 if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11141 eval "ac_cv_func_$ac_func=yes"
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11146 eval "ac_cv_func_$ac_func=no"
11151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11152 echo "$ac_t""yes" 1>&6
11153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11154 cat >> confdefs.h <<EOF
11155 #define $ac_tr_func 1
11159 echo "$ac_t""no" 1>&6
11164 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11165 echo "configure:11166: checking for LinuxThreads pthread.h" >&5
11166 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 #include <pthread.h>
11174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11175 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11177 ol_cv_header_linux_threads=yes
11180 ol_cv_header_linux_threads=no
11187 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11188 if test $ol_cv_header_linux_threads = yes; then
11189 cat >> confdefs.h <<\EOF
11190 #define HAVE_LINUX_THREADS 1
11196 for ac_hdr in mach/cthreads.h
11198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11200 echo "configure:11201: checking for $ac_hdr" >&5
11201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11204 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11212 if test -z "$ac_err"; then
11214 eval "ac_cv_header_$ac_safe=yes"
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11220 eval "ac_cv_header_$ac_safe=no"
11224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11225 echo "$ac_t""yes" 1>&6
11226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11227 cat >> confdefs.h <<EOF
11228 #define $ac_tr_hdr 1
11232 echo "$ac_t""no" 1>&6
11236 for ac_hdr in lwp/lwp.h
11238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11240 echo "configure:11241: checking for $ac_hdr" >&5
11241 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11244 cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11250 { (eval echo configure:11251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11252 if test -z "$ac_err"; then
11254 eval "ac_cv_header_$ac_safe=yes"
11257 echo "configure: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11260 eval "ac_cv_header_$ac_safe=no"
11264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11267 cat >> confdefs.h <<EOF
11268 #define $ac_tr_hdr 1
11272 echo "$ac_t""no" 1>&6
11276 for ac_hdr in thread.h synch.h
11278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11280 echo "configure:11281: checking for $ac_hdr" >&5
11281 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11290 { (eval echo configure:11291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11292 if test -z "$ac_err"; then
11294 eval "ac_cv_header_$ac_safe=yes"
11297 echo "configure: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11300 eval "ac_cv_header_$ac_safe=no"
11304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11305 echo "$ac_t""yes" 1>&6
11306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11307 cat >> confdefs.h <<EOF
11308 #define $ac_tr_hdr 1
11312 echo "$ac_t""no" 1>&6
11318 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11319 cat >> confdefs.h <<\EOF
11320 #define REENTRANT 1
11323 cat >> confdefs.h <<\EOF
11324 #define _REENTRANT 1
11327 cat >> confdefs.h <<\EOF
11328 #define THREAD_SAFE 1
11331 cat >> confdefs.h <<\EOF
11332 #define _THREAD_SAFE 1
11335 cat >> confdefs.h <<\EOF
11336 #define THREADSAFE 1
11339 cat >> confdefs.h <<\EOF
11340 #define _THREADSAFE 1
11343 cat >> confdefs.h <<\EOF
11344 #define _SGI_MP_SOURCE 1
11348 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11349 echo "configure:11350: checking for thread specific errno" >&5
11350 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11354 cat > conftest.$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11362 if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11364 ol_cv_errno_thread_specific=yes
11366 echo "configure: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11369 ol_cv_errno_thread_specific=no
11375 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11377 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11378 echo "configure:11379: checking for thread specific h_errno" >&5
11379 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11391 if { (eval echo configure:11392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11393 ol_cv_h_errno_thread_specific=yes
11395 echo "configure: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11398 ol_cv_h_errno_thread_specific=no
11404 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11406 if test $ol_cv_errno_thread_specific != yes \
11407 -o $ol_cv_h_errno_thread_specific != yes ; then
11408 LIBS="$LTHREAD_LIBS $LIBS"
11414 if test $ol_link_threads = no ; then
11415 if test $ol_with_threads = yes ; then
11416 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11419 if test $ol_with_threads = auto ; then
11420 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11424 cat >> confdefs.h <<\EOF
11425 #define NO_THREADS 1
11431 if test $ol_link_threads != no ; then
11432 cat >> confdefs.h <<\EOF
11433 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11440 if test $ol_with_ldbm_api = auto \
11441 -o $ol_with_ldbm_api = berkeley \
11442 -o $ol_with_ldbm_api = bcompat ; then
11444 if test $ol_with_ldbm_api = bcompat; then \
11445 ol_cv_berkeley_db=no
11446 for ac_hdr in db_185.h db.h
11448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11450 echo "configure:11451: checking for $ac_hdr" >&5
11451 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11454 cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11460 { (eval echo configure:11461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11462 if test -z "$ac_err"; then
11464 eval "ac_cv_header_$ac_safe=yes"
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11470 eval "ac_cv_header_$ac_safe=no"
11474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11475 echo "$ac_t""yes" 1>&6
11476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11477 cat >> confdefs.h <<EOF
11478 #define $ac_tr_hdr 1
11482 echo "$ac_t""no" 1>&6
11486 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11487 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11488 echo "configure:11489: checking if Berkeley DB header compatibility" >&5
11489 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11490 echo $ac_n "(cached) $ac_c" 1>&6
11493 cat > conftest.$ac_ext <<EOF
11494 #line 11495 "configure"
11495 #include "confdefs.h"
11498 # include <db_185.h>
11503 /* this check could be improved */
11504 #ifndef DB_VERSION_MAJOR
11505 # define DB_VERSION_MAJOR 1
11508 #if DB_VERSION_MAJOR == 1
11513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11514 egrep "__db_version_1" >/dev/null 2>&1; then
11516 ol_cv_header_db1=yes
11519 ol_cv_header_db1=no
11525 echo "$ac_t""$ol_cv_header_db1" 1>&6
11527 if test ol_cv_header_db1=yes ; then
11529 if test $ol_cv_lib_db = no ; then
11530 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11531 echo "configure:11532: checking for Berkeley DB link (default)" >&5
11532 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11533 echo $ac_n "(cached) $ac_c" 1>&6
11538 LIBS="$ol_DB_LIB $LIBS"
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11544 #ifdef HAVE_DB_185_H
11545 # include <db_185.h>
11550 #ifndef DB_VERSION_MAJOR
11551 # define DB_VERSION_MAJOR 1
11555 #define NULL ((void*)0)
11560 #if DB_VERSION_MAJOR > 2
11561 db_env_create( NULL, 0 );
11562 #elif DB_VERSION_MAJOR > 1
11563 db_appexit( NULL );
11565 (void) dbopen( NULL, 0, 0, 0, NULL);
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11585 echo "$ac_t""$ol_cv_db_none" 1>&6
11587 if test $ol_cv_db_none = yes ; then
11592 if test $ol_cv_lib_db = no ; then
11593 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11594 echo "configure:11595: checking for Berkeley DB link (-ldb)" >&5
11595 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11601 LIBS="$ol_DB_LIB $LIBS"
11603 cat > conftest.$ac_ext <<EOF
11604 #line 11605 "configure"
11605 #include "confdefs.h"
11607 #ifdef HAVE_DB_185_H
11608 # include <db_185.h>
11613 #ifndef DB_VERSION_MAJOR
11614 # define DB_VERSION_MAJOR 1
11618 #define NULL ((void*)0)
11623 #if DB_VERSION_MAJOR > 2
11624 db_env_create( NULL, 0 );
11625 #elif DB_VERSION_MAJOR > 1
11626 db_appexit( NULL );
11628 (void) dbopen( NULL, 0, 0, 0, NULL);
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11648 echo "$ac_t""$ol_cv_db_db" 1>&6
11650 if test $ol_cv_db_db = yes ; then
11655 if test $ol_cv_lib_db = no ; then
11656 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11657 echo "configure:11658: checking for Berkeley DB link (-ldb3)" >&5
11658 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11664 LIBS="$ol_DB_LIB $LIBS"
11666 cat > conftest.$ac_ext <<EOF
11667 #line 11668 "configure"
11668 #include "confdefs.h"
11670 #ifdef HAVE_DB_185_H
11671 # include <db_185.h>
11676 #ifndef DB_VERSION_MAJOR
11677 # define DB_VERSION_MAJOR 1
11681 #define NULL ((void*)0)
11686 #if DB_VERSION_MAJOR > 2
11687 db_env_create( NULL, 0 );
11688 #elif DB_VERSION_MAJOR > 1
11689 db_appexit( NULL );
11691 (void) dbopen( NULL, 0, 0, 0, NULL);
11696 if { (eval echo configure:11697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11711 echo "$ac_t""$ol_cv_db_db3" 1>&6
11713 if test $ol_cv_db_db3 = yes ; then
11718 if test $ol_cv_lib_db = no ; then
11719 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11720 echo "configure:11721: checking for Berkeley DB link (-ldb2)" >&5
11721 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11722 echo $ac_n "(cached) $ac_c" 1>&6
11727 LIBS="$ol_DB_LIB $LIBS"
11729 cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11733 #ifdef HAVE_DB_185_H
11734 # include <db_185.h>
11739 #ifndef DB_VERSION_MAJOR
11740 # define DB_VERSION_MAJOR 1
11744 #define NULL ((void*)0)
11749 #if DB_VERSION_MAJOR > 2
11750 db_env_create( NULL, 0 );
11751 #elif DB_VERSION_MAJOR > 1
11752 db_appexit( NULL );
11754 (void) dbopen( NULL, 0, 0, 0, NULL);
11759 if { (eval echo configure:11760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11774 echo "$ac_t""$ol_cv_db_db2" 1>&6
11776 if test $ol_cv_db_db2 = yes ; then
11781 if test $ol_cv_lib_db = no ; then
11782 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11783 echo "configure:11784: checking for Berkeley DB link (-ldb1)" >&5
11784 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11790 LIBS="$ol_DB_LIB $LIBS"
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11796 #ifdef HAVE_DB_185_H
11797 # include <db_185.h>
11802 #ifndef DB_VERSION_MAJOR
11803 # define DB_VERSION_MAJOR 1
11807 #define NULL ((void*)0)
11812 #if DB_VERSION_MAJOR > 2
11813 db_env_create( NULL, 0 );
11814 #elif DB_VERSION_MAJOR > 1
11815 db_appexit( NULL );
11817 (void) dbopen( NULL, 0, 0, 0, NULL);
11822 if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11826 echo "configure: failed program was:" >&5
11827 cat conftest.$ac_ext >&5
11837 echo "$ac_t""$ol_cv_db_db1" 1>&6
11839 if test $ol_cv_db_db1 = yes ; then
11845 if test "$ol_cv_lib_db" != no ; then
11846 ol_cv_berkeley_db=yes
11852 ol_cv_berkeley_db=no
11855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11857 echo "configure:11858: checking for $ac_hdr" >&5
11858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11859 echo $ac_n "(cached) $ac_c" 1>&6
11861 cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11867 { (eval echo configure:11868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11869 if test -z "$ac_err"; then
11871 eval "ac_cv_header_$ac_safe=yes"
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11877 eval "ac_cv_header_$ac_safe=no"
11881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11882 echo "$ac_t""yes" 1>&6
11883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11884 cat >> confdefs.h <<EOF
11885 #define $ac_tr_hdr 1
11889 echo "$ac_t""no" 1>&6
11893 if test $ac_cv_header_db_h = yes; then
11895 if test $ol_cv_lib_db = no ; then
11896 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11897 echo "configure:11898: checking for Berkeley DB link (default)" >&5
11898 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11899 echo $ac_n "(cached) $ac_c" 1>&6
11904 LIBS="$ol_DB_LIB $LIBS"
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11910 #ifdef HAVE_DB_185_H
11911 # include <db_185.h>
11916 #ifndef DB_VERSION_MAJOR
11917 # define DB_VERSION_MAJOR 1
11921 #define NULL ((void*)0)
11926 #if DB_VERSION_MAJOR > 2
11927 db_env_create( NULL, 0 );
11928 #elif DB_VERSION_MAJOR > 1
11929 db_appexit( NULL );
11931 (void) dbopen( NULL, 0, 0, 0, NULL);
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11951 echo "$ac_t""$ol_cv_db_none" 1>&6
11953 if test $ol_cv_db_none = yes ; then
11958 if test $ol_cv_lib_db = no ; then
11959 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11960 echo "configure:11961: checking for Berkeley DB link (-ldb)" >&5
11961 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11967 LIBS="$ol_DB_LIB $LIBS"
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11973 #ifdef HAVE_DB_185_H
11974 # include <db_185.h>
11979 #ifndef DB_VERSION_MAJOR
11980 # define DB_VERSION_MAJOR 1
11984 #define NULL ((void*)0)
11989 #if DB_VERSION_MAJOR > 2
11990 db_env_create( NULL, 0 );
11991 #elif DB_VERSION_MAJOR > 1
11992 db_appexit( NULL );
11994 (void) dbopen( NULL, 0, 0, 0, NULL);
11999 if { (eval echo configure:12000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12003 echo "configure: failed program was:" >&5
12004 cat conftest.$ac_ext >&5
12014 echo "$ac_t""$ol_cv_db_db" 1>&6
12016 if test $ol_cv_db_db = yes ; then
12021 if test $ol_cv_lib_db = no ; then
12022 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12023 echo "configure:12024: checking for Berkeley DB link (-ldb3)" >&5
12024 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12030 LIBS="$ol_DB_LIB $LIBS"
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12036 #ifdef HAVE_DB_185_H
12037 # include <db_185.h>
12042 #ifndef DB_VERSION_MAJOR
12043 # define DB_VERSION_MAJOR 1
12047 #define NULL ((void*)0)
12052 #if DB_VERSION_MAJOR > 2
12053 db_env_create( NULL, 0 );
12054 #elif DB_VERSION_MAJOR > 1
12055 db_appexit( NULL );
12057 (void) dbopen( NULL, 0, 0, 0, NULL);
12062 if { (eval echo configure:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12077 echo "$ac_t""$ol_cv_db_db3" 1>&6
12079 if test $ol_cv_db_db3 = yes ; then
12084 if test $ol_cv_lib_db = no ; then
12085 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12086 echo "configure:12087: checking for Berkeley DB link (-ldb2)" >&5
12087 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12093 LIBS="$ol_DB_LIB $LIBS"
12095 cat > conftest.$ac_ext <<EOF
12096 #line 12097 "configure"
12097 #include "confdefs.h"
12099 #ifdef HAVE_DB_185_H
12100 # include <db_185.h>
12105 #ifndef DB_VERSION_MAJOR
12106 # define DB_VERSION_MAJOR 1
12110 #define NULL ((void*)0)
12115 #if DB_VERSION_MAJOR > 2
12116 db_env_create( NULL, 0 );
12117 #elif DB_VERSION_MAJOR > 1
12118 db_appexit( NULL );
12120 (void) dbopen( NULL, 0, 0, 0, NULL);
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12140 echo "$ac_t""$ol_cv_db_db2" 1>&6
12142 if test $ol_cv_db_db2 = yes ; then
12147 if test $ol_cv_lib_db = no ; then
12148 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12149 echo "configure:12150: checking for Berkeley DB link (-ldb1)" >&5
12150 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12151 echo $ac_n "(cached) $ac_c" 1>&6
12156 LIBS="$ol_DB_LIB $LIBS"
12158 cat > conftest.$ac_ext <<EOF
12159 #line 12160 "configure"
12160 #include "confdefs.h"
12162 #ifdef HAVE_DB_185_H
12163 # include <db_185.h>
12168 #ifndef DB_VERSION_MAJOR
12169 # define DB_VERSION_MAJOR 1
12173 #define NULL ((void*)0)
12178 #if DB_VERSION_MAJOR > 2
12179 db_env_create( NULL, 0 );
12180 #elif DB_VERSION_MAJOR > 1
12181 db_appexit( NULL );
12183 (void) dbopen( NULL, 0, 0, 0, NULL);
12188 if { (eval echo configure:12189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12192 echo "configure: failed program was:" >&5
12193 cat conftest.$ac_ext >&5
12203 echo "$ac_t""$ol_cv_db_db1" 1>&6
12205 if test $ol_cv_db_db1 = yes ; then
12211 if test "$ol_cv_lib_db" != no ; then
12212 ol_cv_berkeley_db=yes
12213 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12214 echo "configure:12215: checking for Berkeley DB thread support" >&5
12215 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12220 if test $ol_cv_lib_db != yes ; then
12221 LIBS="$ol_cv_lib_db"
12224 if test "$cross_compiling" = yes; then
12225 ol_cv_berkeley_db_thread=cross
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12231 #ifdef HAVE_DB_185_H
12237 #define NULL ((void *)0)
12242 u_int32_t flags = DB_CREATE | DB_THREAD;
12244 #if DB_VERSION_MAJOR > 2
12245 DB_ENV *env = NULL;
12247 rc = db_env_create( &env, 0 );
12250 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12251 rc = env->open( env, NULL, flags, 0 );
12253 rc = env->open( env, NULL, NULL, flags, 0 );
12259 memset( &env, '\0', sizeof(env) );
12261 rc = db_appinit( NULL, NULL, &env, flags );
12264 db_appexit( &env );
12267 #if DB_VERSION_MAJOR > 2
12268 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12269 env->remove( env, NULL, DB_FORCE);
12271 env->remove( env, NULL, NULL, DB_FORCE);
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12280 ol_cv_berkeley_db_thread=yes
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 ol_cv_berkeley_db_thread=no
12293 if test $ol_cv_berkeley_db_thread != no ; then
12294 cat >> confdefs.h <<\EOF
12295 #define HAVE_BERKELEY_DB_THREAD 1
12302 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12308 if test $ol_cv_berkeley_db != no ; then
12309 cat >> confdefs.h <<\EOF
12310 #define HAVE_BERKELEY_DB 1
12314 ol_link_ldbm=berkeley
12315 ol_with_ldbm_api=db
12317 if test $ol_with_ldbm_type = hash ; then
12318 cat >> confdefs.h <<\EOF
12319 #define LDBM_USE_DBHASH 1
12323 cat >> confdefs.h <<\EOF
12324 #define LDBM_USE_DBBTREE 1
12329 if test $ol_cv_lib_db != yes ; then
12330 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12335 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12336 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12337 ol_with_ldbm_api=none
12340 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12341 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12342 echo "configure:12343: checking for MDBM library" >&5
12343 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12344 echo $ac_n "(cached) $ac_c" 1>&6
12347 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12348 echo "configure:12349: checking for mdbm_set_chain" >&5
12349 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12350 echo $ac_n "(cached) $ac_c" 1>&6
12352 cat > conftest.$ac_ext <<EOF
12353 #line 12354 "configure"
12354 #include "confdefs.h"
12355 /* System header to define __stub macros and hopefully few prototypes,
12356 which can conflict with char mdbm_set_chain(); below. */
12357 #include <assert.h>
12358 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char mdbm_set_chain();
12366 /* The GNU C library defines this for functions which it implements
12367 to always fail with ENOSYS. Some functions are actually named
12368 something starting with __ and the normal name is an alias. */
12369 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12372 f = mdbm_set_chain;
12377 if { (eval echo configure:12378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12379 eval "ac_cv_func_mdbm_set_chain=yes"
12381 echo "configure: failed program was:" >&5
12382 cat conftest.$ac_ext >&5
12384 eval "ac_cv_func_mdbm_set_chain=no"
12389 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12393 echo "$ac_t""no" 1>&6
12395 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12396 echo "configure:12397: checking for mdbm_set_chain in -lmdbm" >&5
12397 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12398 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
12401 ac_save_LIBS="$LIBS"
12402 LIBS="-lmdbm $LIBS"
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char mdbm_set_chain();
12415 if { (eval echo configure:12416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12417 eval "ac_cv_lib_$ac_lib_var=yes"
12419 echo "configure: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12422 eval "ac_cv_lib_$ac_lib_var=no"
12425 LIBS="$ac_save_LIBS"
12428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12429 echo "$ac_t""yes" 1>&6
12430 ol_cv_lib_mdbm=-lmdbm
12432 echo "$ac_t""no" 1>&6
12443 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12446 for ac_hdr in mdbm.h
12448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12450 echo "configure:12451: checking for $ac_hdr" >&5
12451 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12452 echo $ac_n "(cached) $ac_c" 1>&6
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12460 { (eval echo configure:12461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12462 if test -z "$ac_err"; then
12464 eval "ac_cv_header_$ac_safe=yes"
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12470 eval "ac_cv_header_$ac_safe=no"
12474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12475 echo "$ac_t""yes" 1>&6
12476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12477 cat >> confdefs.h <<EOF
12478 #define $ac_tr_hdr 1
12482 echo "$ac_t""no" 1>&6
12486 echo $ac_n "checking for db""... $ac_c" 1>&6
12487 echo "configure:12488: checking for db" >&5
12488 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12489 echo $ac_n "(cached) $ac_c" 1>&6
12492 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12500 echo "$ac_t""$ol_cv_mdbm" 1>&6
12501 if test $ol_cv_mdbm = yes ; then
12502 cat >> confdefs.h <<\EOF
12503 #define HAVE_MDBM 1
12509 if test $ol_cv_mdbm = yes ; then
12511 ol_with_ldbm_api=mdbm
12512 if test $ol_cv_lib_mdbm != yes ; then
12513 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12518 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12519 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12520 echo "configure:12521: checking for GDBM library" >&5
12521 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12525 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12526 echo "configure:12527: checking for gdbm_open" >&5
12527 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char gdbm_open(); below. */
12535 #include <assert.h>
12536 /* Override any gcc2 internal prototype to avoid an error. */
12537 /* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12557 eval "ac_cv_func_gdbm_open=yes"
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12562 eval "ac_cv_func_gdbm_open=no"
12567 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12568 echo "$ac_t""yes" 1>&6
12571 echo "$ac_t""no" 1>&6
12573 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12574 echo "configure:12575: checking for gdbm_open in -lgdbm" >&5
12575 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12576 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12579 ac_save_LIBS="$LIBS"
12580 LIBS="-lgdbm $LIBS"
12581 cat > conftest.$ac_ext <<EOF
12582 #line 12583 "configure"
12583 #include "confdefs.h"
12584 /* Override any gcc2 internal prototype to avoid an error. */
12585 /* We use char because int might match the return type of a gcc2
12586 builtin and then its argument prototype would still apply. */
12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12595 eval "ac_cv_lib_$ac_lib_var=yes"
12597 echo "configure: failed program was:" >&5
12598 cat conftest.$ac_ext >&5
12600 eval "ac_cv_lib_$ac_lib_var=no"
12603 LIBS="$ac_save_LIBS"
12606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12607 echo "$ac_t""yes" 1>&6
12608 ol_cv_lib_gdbm=-lgdbm
12610 echo "$ac_t""no" 1>&6
12621 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12624 for ac_hdr in gdbm.h
12626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12628 echo "configure:12629: checking for $ac_hdr" >&5
12629 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12630 echo $ac_n "(cached) $ac_c" 1>&6
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12634 "configure"
12634 #include "confdefs.h"
12637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12638 { (eval echo configure:12639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12640 if test -z "$ac_err"; then
12642 eval "ac_cv_header_$ac_safe=yes"
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 eval "ac_cv_header_$ac_safe=no"
12652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12653 echo "$ac_t""yes" 1>&6
12654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12655 cat >> confdefs.h <<EOF
12656 #define $ac_tr_hdr 1
12660 echo "$ac_t""no" 1>&6
12664 echo $ac_n "checking for db""... $ac_c" 1>&6
12665 echo "configure:12666: checking for db" >&5
12666 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12667 echo $ac_n "(cached) $ac_c" 1>&6
12670 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12678 echo "$ac_t""$ol_cv_gdbm" 1>&6
12679 if test $ol_cv_gdbm = yes ; then
12680 cat >> confdefs.h <<\EOF
12681 #define HAVE_GDBM 1
12687 if test $ol_cv_gdbm = yes ; then
12689 ol_with_ldbm_api=gdbm
12691 if test $ol_cv_lib_gdbm != yes ; then
12692 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12697 if test $ol_with_ldbm_api = ndbm ; then
12698 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12699 echo "configure:12700: checking for NDBM library" >&5
12700 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12704 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12705 echo "configure:12706: checking for dbm_open" >&5
12706 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12707 echo $ac_n "(cached) $ac_c" 1>&6
12709 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12712 /* System header to define __stub macros and hopefully few prototypes,
12713 which can conflict with char dbm_open(); below. */
12714 #include <assert.h>
12715 /* Override any gcc2 internal prototype to avoid an error. */
12716 /* We use char because int might match the return type of a gcc2
12717 builtin and then its argument prototype would still apply. */
12723 /* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12734 if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12736 eval "ac_cv_func_dbm_open=yes"
12738 echo "configure: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12741 eval "ac_cv_func_dbm_open=no"
12746 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12747 echo "$ac_t""yes" 1>&6
12750 echo "$ac_t""no" 1>&6
12752 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12753 echo "configure:12754: checking for dbm_open in -lndbm" >&5
12754 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12755 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12756 echo $ac_n "(cached) $ac_c" 1>&6
12758 ac_save_LIBS="$LIBS"
12759 LIBS="-lndbm $LIBS"
12760 cat > conftest.$ac_ext <<EOF
12761 #line 12762 "configure"
12762 #include "confdefs.h"
12763 /* Override any gcc2 internal prototype to avoid an error. */
12764 /* We use char because int might match the return type of a gcc2
12765 builtin and then its argument prototype would still apply. */
12772 if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12774 eval "ac_cv_lib_$ac_lib_var=yes"
12776 echo "configure: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12779 eval "ac_cv_lib_$ac_lib_var=no"
12782 LIBS="$ac_save_LIBS"
12785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12786 echo "$ac_t""yes" 1>&6
12787 ol_cv_lib_ndbm=-lndbm
12789 echo "$ac_t""no" 1>&6
12791 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12792 echo "configure:12793: checking for dbm_open in -ldbm" >&5
12793 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12797 ac_save_LIBS="$LIBS"
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 /* Override any gcc2 internal prototype to avoid an error. */
12803 /* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12811 if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12813 eval "ac_cv_lib_$ac_lib_var=yes"
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12818 eval "ac_cv_lib_$ac_lib_var=no"
12821 LIBS="$ac_save_LIBS"
12824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12825 echo "$ac_t""yes" 1>&6
12826 ol_cv_lib_ndbm=-ldbm
12828 echo "$ac_t""no" 1>&6
12841 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12844 for ac_hdr in ndbm.h
12846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12848 echo "configure:12849: checking for $ac_hdr" >&5
12849 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12850 echo $ac_n "(cached) $ac_c" 1>&6
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12858 { (eval echo configure:12859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12860 if test -z "$ac_err"; then
12862 eval "ac_cv_header_$ac_safe=yes"
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12868 eval "ac_cv_header_$ac_safe=no"
12872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12873 echo "$ac_t""yes" 1>&6
12874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12875 cat >> confdefs.h <<EOF
12876 #define $ac_tr_hdr 1
12880 echo "$ac_t""no" 1>&6
12884 echo $ac_n "checking for db""... $ac_c" 1>&6
12885 echo "configure:12886: checking for db" >&5
12886 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12887 echo $ac_n "(cached) $ac_c" 1>&6
12890 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12898 echo "$ac_t""$ol_cv_ndbm" 1>&6
12899 if test $ol_cv_ndbm = yes ; then
12900 cat >> confdefs.h <<\EOF
12901 #define HAVE_NDBM 1
12907 if test $ol_cv_ndbm = yes ; then
12909 ol_with_ldbm_api=ndbm
12911 if test $ol_cv_lib_ndbm != yes ; then
12912 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12917 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12918 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12919 if test $ol_enable_ldbm = yes ; then
12920 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12923 echo "configure: warning: disabling LDBM" 1>&2
12927 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12928 LINK_BINS_DYNAMIC="yes"
12930 LINK_BINS_DYNAMIC="no"
12933 if test $ol_enable_wrappers != no ; then
12934 for ac_hdr in tcpd.h
12936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12938 echo "configure:12939: checking for $ac_hdr" >&5
12939 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12940 echo $ac_n "(cached) $ac_c" 1>&6
12942 cat > conftest.$ac_ext <<EOF
12943 #line 12944 "configure"
12944 #include "confdefs.h"
12947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12948 { (eval echo configure:12949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12950 if test -z "$ac_err"; then
12952 eval "ac_cv_header_$ac_safe=yes"
12955 echo "configure: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12958 eval "ac_cv_header_$ac_safe=no"
12962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12963 echo "$ac_t""yes" 1>&6
12964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12965 cat >> confdefs.h <<EOF
12966 #define $ac_tr_hdr 1
12970 echo "$ac_t""no" 1>&6
12975 if test $ac_cv_header_tcpd_h != yes ; then
12978 cat > conftest.$ac_ext <<EOF
12979 #line 12980 "configure"
12980 #include "confdefs.h"
12982 int allow_severity = 0;
12983 int deny_severity = 0;
12989 if { (eval echo configure:12990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
13001 if test $have_wrappers = yes ; then
13002 cat >> confdefs.h <<\EOF
13003 #define HAVE_TCPD 1
13008 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13009 echo "configure:13010: checking for main in -lnsl" >&5
13010 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13012 echo $ac_n "(cached) $ac_c" 1>&6
13014 ac_save_LIBS="$LIBS"
13016 cat > conftest.$ac_ext <<EOF
13017 #line 13018 "configure"
13018 #include "confdefs.h"
13024 if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13026 eval "ac_cv_lib_$ac_lib_var=yes"
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13031 eval "ac_cv_lib_$ac_lib_var=no"
13034 LIBS="$ac_save_LIBS"
13037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13038 echo "$ac_t""yes" 1>&6
13039 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13041 cat >> confdefs.h <<EOF
13042 #define $ac_tr_lib 1
13048 echo "$ac_t""no" 1>&6
13052 echo "configure: warning: could not find -lwrap" 1>&2
13053 if test $ol_enable_wrappers = yes ; then
13054 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13057 echo "configure: warning: disabling wrappers support" 1>&2
13058 ol_enable_wrappers=no
13063 if test $ol_enable_syslog != no ; then
13064 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13065 echo "configure:13066: checking for openlog" >&5
13066 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13067 echo $ac_n "(cached) $ac_c" 1>&6
13069 cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13072 /* System header to define __stub macros and hopefully few prototypes,
13073 which can conflict with char openlog(); below. */
13074 #include <assert.h>
13075 /* Override any gcc2 internal prototype to avoid an error. */
13076 /* We use char because int might match the return type of a gcc2
13077 builtin and then its argument prototype would still apply. */
13083 /* The GNU C library defines this for functions which it implements
13084 to always fail with ENOSYS. Some functions are actually named
13085 something starting with __ and the normal name is an alias. */
13086 #if defined (__stub_openlog) || defined (__stub___openlog)
13094 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13096 eval "ac_cv_func_openlog=yes"
13098 echo "configure: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13101 eval "ac_cv_func_openlog=no"
13106 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13107 echo "$ac_t""yes" 1>&6
13110 echo "$ac_t""no" 1>&6
13113 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13114 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13116 ol_enable_syslog=$ac_cv_func_openlog
13120 if test $ol_enable_sql != no ; then
13121 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13122 echo "configure:13123: checking for SQLDriverConnect in -liodbc" >&5
13123 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13124 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13125 echo $ac_n "(cached) $ac_c" 1>&6
13127 ac_save_LIBS="$LIBS"
13128 LIBS="-liodbc $LIBS"
13129 cat > conftest.$ac_ext <<EOF
13130 #line 13131 "configure"
13131 #include "confdefs.h"
13132 /* Override any gcc2 internal prototype to avoid an error. */
13133 /* We use char because int might match the return type of a gcc2
13134 builtin and then its argument prototype would still apply. */
13135 char SQLDriverConnect();
13141 if { (eval echo configure:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13143 eval "ac_cv_lib_$ac_lib_var=yes"
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13148 eval "ac_cv_lib_$ac_lib_var=no"
13151 LIBS="$ac_save_LIBS"
13154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13155 echo "$ac_t""yes" 1>&6
13158 echo "$ac_t""no" 1>&6
13162 if test $have_iodbc = yes ; then
13163 ol_link_sql="-liodbc"
13165 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13166 echo "configure:13167: checking for SQLDriverConnect in -lodbc" >&5
13167 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13168 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13169 echo $ac_n "(cached) $ac_c" 1>&6
13171 ac_save_LIBS="$LIBS"
13172 LIBS="-lodbc $LIBS"
13173 cat > conftest.$ac_ext <<EOF
13174 #line 13175 "configure"
13175 #include "confdefs.h"
13176 /* Override any gcc2 internal prototype to avoid an error. */
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13179 char SQLDriverConnect();
13185 if { (eval echo configure:13186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13187 eval "ac_cv_lib_$ac_lib_var=yes"
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13192 eval "ac_cv_lib_$ac_lib_var=no"
13195 LIBS="$ac_save_LIBS"
13198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13199 echo "$ac_t""yes" 1>&6
13202 echo "$ac_t""no" 1>&6
13206 if test $have_odbc = yes ; then
13207 ol_link_sql="-lodbc"
13211 if test $ol_link_sql != no ; then
13212 SLAPD_SQL_LIBS="$ol_link_sql"
13214 elif test $ol_enable_sql != auto ; then
13215 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13220 for ac_hdr in termcap.h ncurses.h
13222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13224 echo "configure:13225: checking for $ac_hdr" >&5
13225 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13226 echo $ac_n "(cached) $ac_c" 1>&6
13228 cat > conftest.$ac_ext <<EOF
13229 #line 13230 "configure"
13230 #include "confdefs.h"
13233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13234 { (eval echo configure:13235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13236 if test -z "$ac_err"; then
13238 eval "ac_cv_header_$ac_safe=yes"
13241 echo "configure: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13244 eval "ac_cv_header_$ac_safe=no"
13248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13249 echo "$ac_t""yes" 1>&6
13250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13251 cat >> confdefs.h <<EOF
13252 #define $ac_tr_hdr 1
13256 echo "$ac_t""no" 1>&6
13261 if test $ol_link_termcap = no ; then
13262 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13263 echo "configure:13264: checking for tputs in -ltermcap" >&5
13264 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13265 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13266 echo $ac_n "(cached) $ac_c" 1>&6
13268 ac_save_LIBS="$LIBS"
13269 LIBS="-ltermcap $LIBS"
13270 cat > conftest.$ac_ext <<EOF
13271 #line 13272 "configure"
13272 #include "confdefs.h"
13273 /* Override any gcc2 internal prototype to avoid an error. */
13274 /* We use char because int might match the return type of a gcc2
13275 builtin and then its argument prototype would still apply. */
13282 if { (eval echo configure:13283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284 eval "ac_cv_lib_$ac_lib_var=yes"
13286 echo "configure: failed program was:" >&5
13287 cat conftest.$ac_ext >&5
13289 eval "ac_cv_lib_$ac_lib_var=no"
13292 LIBS="$ac_save_LIBS"
13295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13296 echo "$ac_t""yes" 1>&6
13299 echo "$ac_t""no" 1>&6
13303 if test $have_termcap = yes ; then
13304 cat >> confdefs.h <<\EOF
13305 #define HAVE_TERMCAP 1
13308 ol_link_termcap=yes
13309 TERMCAP_LIBS=-ltermcap
13313 if test $ol_link_termcap = no ; then
13314 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13315 echo "configure:13316: checking for initscr in -lncurses" >&5
13316 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13317 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13318 echo $ac_n "(cached) $ac_c" 1>&6
13320 ac_save_LIBS="$LIBS"
13321 LIBS="-lncurses $LIBS"
13322 cat > conftest.$ac_ext <<EOF
13323 #line 13324 "configure"
13324 #include "confdefs.h"
13325 /* Override any gcc2 internal prototype to avoid an error. */
13326 /* We use char because int might match the return type of a gcc2
13327 builtin and then its argument prototype would still apply. */
13334 if { (eval echo configure:13335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13336 eval "ac_cv_lib_$ac_lib_var=yes"
13338 echo "configure: failed program was:" >&5
13339 cat conftest.$ac_ext >&5
13341 eval "ac_cv_lib_$ac_lib_var=no"
13344 LIBS="$ac_save_LIBS"
13347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13348 echo "$ac_t""yes" 1>&6
13351 echo "$ac_t""no" 1>&6
13355 if test $have_ncurses = yes ; then
13356 cat >> confdefs.h <<\EOF
13357 #define HAVE_NCURSES 1
13360 ol_link_termcap=yes
13361 TERMCAP_LIBS=-lncurses
13365 if test $ol_link_termcap = no ; then
13366 cat >> confdefs.h <<\EOF
13367 #define NO_TERMCAP 1
13375 if test $ol_with_cyrus_sasl != no ; then
13376 for ac_hdr in sasl.h
13378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13380 echo "configure:13381: checking for $ac_hdr" >&5
13381 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13382 echo $ac_n "(cached) $ac_c" 1>&6
13384 cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13390 { (eval echo configure:13391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13392 if test -z "$ac_err"; then
13394 eval "ac_cv_header_$ac_safe=yes"
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13400 eval "ac_cv_header_$ac_safe=no"
13404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13405 echo "$ac_t""yes" 1>&6
13406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13407 cat >> confdefs.h <<EOF
13408 #define $ac_tr_hdr 1
13412 echo "$ac_t""no" 1>&6
13417 if test $ac_cv_header_sasl_h = yes ; then
13418 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13419 echo "configure:13420: checking for sasl_client_init in -lsasl" >&5
13420 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13422 echo $ac_n "(cached) $ac_c" 1>&6
13424 ac_save_LIBS="$LIBS"
13425 LIBS="-lsasl $LIBS"
13426 cat > conftest.$ac_ext <<EOF
13427 #line 13428 "configure"
13428 #include "confdefs.h"
13429 /* Override any gcc2 internal prototype to avoid an error. */
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13432 char sasl_client_init();
13438 if { (eval echo configure:13439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13440 eval "ac_cv_lib_$ac_lib_var=yes"
13442 echo "configure: failed program was:" >&5
13443 cat conftest.$ac_ext >&5
13445 eval "ac_cv_lib_$ac_lib_var=no"
13448 LIBS="$ac_save_LIBS"
13451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13452 echo "$ac_t""yes" 1>&6
13453 have_cyrus_sasl=yes
13455 echo "$ac_t""no" 1>&6
13460 if test $have_cyrus_sasl != no ; then
13462 cat >> confdefs.h <<\EOF
13463 #define HAVE_CYRUS_SASL 1
13470 if test $ol_link_sasl = no ; then
13471 if test $ol_with_cyrus_sasl != auto ; then
13472 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13474 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13475 echo "configure: warning: SASL authentication not supported!" 1>&2
13476 if test $ol_link_tls = no ; then
13477 echo "configure: warning: Strong authentication not supported!" 1>&2
13481 elif test $ol_enable_spasswd != no ; then
13482 ol_link_spasswd=yes
13486 echo "configure: warning: SASL authentication not supported!" 1>&2
13487 if test $ol_link_tls = no ; then
13488 echo "configure: warning: Strong authentication not supported!" 1>&2
13492 if test $cross_compiling != yes ; then
13494 if test -r /dev/urandom ; then
13495 dev="/dev/urandom";
13496 elif test -r /idev/urandom ; then
13497 dev="/idev/urandom";
13498 elif test -r /dev/srandom ; then
13499 dev="/dev/srandom";
13500 elif test -r /dev/random ; then
13502 elif test -r /idev/random ; then
13503 dev="/idev/random";
13506 if test $dev != no ; then
13507 cat >> confdefs.h <<EOF
13508 #define URANDOM_DEVICE "$dev"
13515 if test $ol_with_fetch != no ; then
13517 LIBS="-lfetch -lcom_err $LIBS"
13518 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13519 echo "configure:13520: checking fetch(3) library" >&5
13520 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13521 echo $ac_n "(cached) $ac_c" 1>&6
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13528 #include <sys/param.h>
13532 struct url *u = fetchParseURL("file:///");
13535 if { (eval echo configure:13536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13537 ol_cv_lib_fetch=yes
13539 echo "configure: failed program was:" >&5
13540 cat conftest.$ac_ext >&5
13547 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13549 if test $ol_cv_lib_fetch != no ; then
13550 ol_link_fetch="-lfetch -lcom_err"
13551 cat >> confdefs.h <<\EOF
13552 #define HAVE_FETCH 1
13558 if test $ol_cv_lib_fetch != no ; then
13559 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13560 ol_link_fetch=freebsd
13562 elif test $ol_with_fetch != auto ; then
13563 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13567 ol_link_readline=no
13568 if test $ol_with_readline != no ; then
13569 for ac_hdr in readline/readline.h readline/history.h
13571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13573 echo "configure:13574: checking for $ac_hdr" >&5
13574 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13575 echo $ac_n "(cached) $ac_c" 1>&6
13577 cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13583 { (eval echo configure:13584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13585 if test -z "$ac_err"; then
13587 eval "ac_cv_header_$ac_safe=yes"
13590 echo "configure: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13593 eval "ac_cv_header_$ac_safe=no"
13597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13598 echo "$ac_t""yes" 1>&6
13599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13600 cat >> confdefs.h <<EOF
13601 #define $ac_tr_hdr 1
13605 echo "$ac_t""no" 1>&6
13610 if test $ac_cv_header_readline_readline_h = yes ; then
13612 LIBS="$TERMCAP_LIBS $LIBS"
13613 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13614 echo "configure:13615: checking for readline in -lreadline" >&5
13615 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13617 echo $ac_n "(cached) $ac_c" 1>&6
13619 ac_save_LIBS="$LIBS"
13620 LIBS="-lreadline $LIBS"
13621 cat > conftest.$ac_ext <<EOF
13622 #line 13623 "configure"
13623 #include "confdefs.h"
13624 /* Override any gcc2 internal prototype to avoid an error. */
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13635 eval "ac_cv_lib_$ac_lib_var=yes"
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13640 eval "ac_cv_lib_$ac_lib_var=no"
13643 LIBS="$ac_save_LIBS"
13646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13647 echo "$ac_t""yes" 1>&6
13650 echo "$ac_t""no" 1>&6
13656 if test $have_readline = yes ; then
13657 ol_with_readline=found
13658 ol_link_readline=yes
13660 READLINE_LIBS="-lreadline"
13665 if test $ol_link_readline = yes ; then
13666 cat >> confdefs.h <<\EOF
13667 #define HAVE_READLINE 1
13673 if test $ol_enable_crypt != no ; then
13674 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13675 echo "configure:13676: checking for crypt" >&5
13676 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13679 cat > conftest.$ac_ext <<EOF
13680 #line 13681 "configure"
13681 #include "confdefs.h"
13682 /* System header to define __stub macros and hopefully few prototypes,
13683 which can conflict with char crypt(); below. */
13684 #include <assert.h>
13685 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13693 /* The GNU C library defines this for functions which it implements
13694 to always fail with ENOSYS. Some functions are actually named
13695 something starting with __ and the normal name is an alias. */
13696 #if defined (__stub_crypt) || defined (__stub___crypt)
13704 if { (eval echo configure:13705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13706 eval "ac_cv_func_crypt=yes"
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13711 eval "ac_cv_func_crypt=no"
13716 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13717 echo "$ac_t""yes" 1>&6
13720 echo "$ac_t""no" 1>&6
13722 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13723 echo "configure:13724: checking for crypt in -lcrypt" >&5
13724 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13725 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13726 echo $ac_n "(cached) $ac_c" 1>&6
13728 ac_save_LIBS="$LIBS"
13729 LIBS="-lcrypt $LIBS"
13730 cat > conftest.$ac_ext <<EOF
13731 #line 13732 "configure"
13732 #include "confdefs.h"
13733 /* Override any gcc2 internal prototype to avoid an error. */
13734 /* We use char because int might match the return type of a gcc2
13735 builtin and then its argument prototype would still apply. */
13742 if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 eval "ac_cv_lib_$ac_lib_var=yes"
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13749 eval "ac_cv_lib_$ac_lib_var=no"
13752 LIBS="$ac_save_LIBS"
13755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13757 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13760 echo "$ac_t""no" 1>&6
13767 if test $have_crypt = yes ; then
13768 cat >> confdefs.h <<\EOF
13769 #define HAVE_CRYPT 1
13773 echo "configure: warning: could not find crypt" 1>&2
13774 if test $ol_enable_crypt = yes ; then
13775 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13778 echo "configure: warning: disabling crypt support" 1>&2
13783 if test $ol_enable_proctitle != no ; then
13784 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13785 echo "configure:13786: checking for setproctitle" >&5
13786 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13787 echo $ac_n "(cached) $ac_c" 1>&6
13789 cat > conftest.$ac_ext <<EOF
13790 #line 13791 "configure"
13791 #include "confdefs.h"
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char setproctitle(); below. */
13794 #include <assert.h>
13795 /* Override any gcc2 internal prototype to avoid an error. */
13796 /* We use char because int might match the return type of a gcc2
13797 builtin and then its argument prototype would still apply. */
13798 char setproctitle();
13803 /* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13814 if { (eval echo configure:13815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13816 eval "ac_cv_func_setproctitle=yes"
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13821 eval "ac_cv_func_setproctitle=no"
13826 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13827 echo "$ac_t""yes" 1>&6
13828 have_setproctitle=yes
13830 echo "$ac_t""no" 1>&6
13832 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13833 echo "configure:13834: checking for setproctitle in -lutil" >&5
13834 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13836 echo $ac_n "(cached) $ac_c" 1>&6
13838 ac_save_LIBS="$LIBS"
13839 LIBS="-lutil $LIBS"
13840 cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 /* Override any gcc2 internal prototype to avoid an error. */
13844 /* We use char because int might match the return type of a gcc2
13845 builtin and then its argument prototype would still apply. */
13846 char setproctitle();
13852 if { (eval echo configure:13853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13854 eval "ac_cv_lib_$ac_lib_var=yes"
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13859 eval "ac_cv_lib_$ac_lib_var=no"
13862 LIBS="$ac_save_LIBS"
13865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13866 echo "$ac_t""yes" 1>&6
13867 have_setproctitle=yes
13868 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13870 echo "$ac_t""no" 1>&6
13871 have_setproctitle=no
13872 LIBOBJS="$LIBOBJS setproctitle.o"
13873 LIBSRCS="$LIBSRCS setproctitle.c"
13879 if test $have_setproctitle = yes ; then
13880 cat >> confdefs.h <<\EOF
13881 #define HAVE_SETPROCTITLE 1
13887 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13888 echo "configure:13889: checking for ANSI C header files" >&5
13889 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13892 cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 #include <stdlib.h>
13896 #include <stdarg.h>
13897 #include <string.h>
13900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13901 { (eval echo configure:13902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13903 if test -z "$ac_err"; then
13905 ac_cv_header_stdc=yes
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13911 ac_cv_header_stdc=no
13915 if test $ac_cv_header_stdc = yes; then
13916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13917 cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 #include <string.h>
13922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13923 egrep "memchr" >/dev/null 2>&1; then
13927 ac_cv_header_stdc=no
13933 if test $ac_cv_header_stdc = yes; then
13934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <stdlib.h>
13940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13941 egrep "free" >/dev/null 2>&1; then
13945 ac_cv_header_stdc=no
13951 if test $ac_cv_header_stdc = yes; then
13952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13953 if test "$cross_compiling" = yes; then
13956 cat > conftest.$ac_ext <<EOF
13957 #line 13958 "configure"
13958 #include "confdefs.h"
13960 #if ((' ' & 0x0FF) == 0x020)
13961 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13962 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13964 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13965 || ('j' <= (c) && (c) <= 'r') \
13966 || ('s' <= (c) && (c) <= 'z'))
13967 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13970 int main () { int i; for (i = 0; i < 256; i++)
13971 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13982 ac_cv_header_stdc=no
13990 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13991 if test $ac_cv_header_stdc = yes; then
13992 cat >> confdefs.h <<\EOF
13993 #define STDC_HEADERS 1
13998 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13999 echo "configure:14000: checking for mode_t" >&5
14000 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <sys/types.h>
14008 #include <stdlib.h>
14009 #include <stddef.h>
14013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14014 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14016 eval "ac_cv_type_mode_t=yes"
14019 eval "ac_cv_type_mode_t=no"
14024 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14025 echo "$ac_t""yes" 1>&6
14027 echo "$ac_t""no" 1>&6
14028 cat >> confdefs.h <<EOF
14034 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14035 echo "configure:14036: checking for off_t" >&5
14036 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14042 #include <sys/types.h>
14044 #include <stdlib.h>
14045 #include <stddef.h>
14049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14050 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14052 eval "ac_cv_type_off_t=yes"
14055 eval "ac_cv_type_off_t=no"
14060 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14061 echo "$ac_t""yes" 1>&6
14063 echo "$ac_t""no" 1>&6
14064 cat >> confdefs.h <<EOF
14070 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14071 echo "configure:14072: checking for pid_t" >&5
14072 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14073 echo $ac_n "(cached) $ac_c" 1>&6
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 #include <sys/types.h>
14080 #include <stdlib.h>
14081 #include <stddef.h>
14085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14086 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14088 eval "ac_cv_type_pid_t=yes"
14091 eval "ac_cv_type_pid_t=no"
14096 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14097 echo "$ac_t""yes" 1>&6
14099 echo "$ac_t""no" 1>&6
14100 cat >> confdefs.h <<EOF
14106 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14107 echo "configure:14108: checking for ptrdiff_t" >&5
14108 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
14111 cat > conftest.$ac_ext <<EOF
14112 #line 14113 "configure"
14113 #include "confdefs.h"
14114 #include <stddef.h>
14119 if { (eval echo configure:14120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14121 am_cv_type_ptrdiff_t=yes
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14126 am_cv_type_ptrdiff_t=no
14131 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14132 if test $am_cv_type_ptrdiff_t = yes; then
14133 cat >> confdefs.h <<\EOF
14134 #define HAVE_PTRDIFF_T 1
14139 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14140 echo "configure:14141: checking return type of signal handlers" >&5
14141 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14142 echo $ac_n "(cached) $ac_c" 1>&6
14144 cat > conftest.$ac_ext <<EOF
14145 #line 14146 "configure"
14146 #include "confdefs.h"
14147 #include <sys/types.h>
14148 #include <signal.h>
14153 extern "C" void (*signal (int, void (*)(int)))(int);
14155 void (*signal ()) ();
14162 if { (eval echo configure:14163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14164 ac_cv_type_signal=void
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14169 ac_cv_type_signal=int
14174 echo "$ac_t""$ac_cv_type_signal" 1>&6
14175 cat >> confdefs.h <<EOF
14176 #define RETSIGTYPE $ac_cv_type_signal
14180 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14181 echo "configure:14182: checking for size_t" >&5
14182 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14185 cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 #include <sys/types.h>
14190 #include <stdlib.h>
14191 #include <stddef.h>
14195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14196 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14198 eval "ac_cv_type_size_t=yes"
14201 eval "ac_cv_type_size_t=no"
14206 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14207 echo "$ac_t""yes" 1>&6
14209 echo "$ac_t""no" 1>&6
14210 cat >> confdefs.h <<EOF
14211 #define size_t unsigned
14217 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14218 echo "configure:14219: checking for ssize_t" >&5
14219 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14220 echo $ac_n "(cached) $ac_c" 1>&6
14222 cat > conftest.$ac_ext <<EOF
14223 #line 14224 "configure"
14224 #include "confdefs.h"
14225 #include <sys/types.h>
14227 #include <stdlib.h>
14228 #include <stddef.h>
14232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14233 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14235 eval "ac_cv_type_ssize_t=yes"
14238 eval "ac_cv_type_ssize_t=no"
14243 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14244 echo "$ac_t""yes" 1>&6
14246 echo "$ac_t""no" 1>&6
14247 cat >> confdefs.h <<EOF
14248 #define ssize_t signed int
14253 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14254 echo "configure:14255: checking for caddr_t" >&5
14255 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14258 cat > conftest.$ac_ext <<EOF
14259 #line 14260 "configure"
14260 #include "confdefs.h"
14261 #include <sys/types.h>
14263 #include <stdlib.h>
14264 #include <stddef.h>
14268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14269 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14271 eval "ac_cv_type_caddr_t=yes"
14274 eval "ac_cv_type_caddr_t=no"
14279 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14280 echo "$ac_t""yes" 1>&6
14282 echo "$ac_t""no" 1>&6
14283 cat >> confdefs.h <<EOF
14284 #define caddr_t char *
14290 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14291 echo "configure:14292: checking for socklen_t" >&5
14292 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14293 echo $ac_n "(cached) $ac_c" 1>&6
14295 cat > conftest.$ac_ext <<EOF
14296 #line 14297 "configure"
14297 #include "confdefs.h"
14299 #ifdef HAVE_SYS_TYPES_H
14300 #include <sys/types.h>
14302 #ifdef HAVE_SYS_SOCKET_H
14303 #include <sys/socket.h>
14310 if { (eval echo configure:14311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14312 ol_cv_type_socklen_t=yes
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14317 ol_cv_type_socklen_t=no
14322 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14323 if test $ol_cv_type_socklen_t = no; then
14324 cat >> confdefs.h <<\EOF
14325 #define socklen_t int
14330 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14331 echo "configure:14332: checking for member st_blksize in aggregate type struct stat" >&5
14332 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14333 echo $ac_n "(cached) $ac_c" 1>&6
14335 cat > conftest.$ac_ext <<EOF
14336 #line 14337 "configure"
14337 #include "confdefs.h"
14338 #include <sys/types.h>
14339 #include <sys/stat.h>
14341 struct stat foo; foo.st_blksize;
14344 if { (eval echo configure:14345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14346 ac_cv_c_struct_member_st_blksize=yes
14348 echo "configure: failed program was:" >&5
14349 cat conftest.$ac_ext >&5
14351 ac_cv_c_struct_member_st_blksize=no
14356 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14357 st_blksize="$ac_cv_c_struct_member_st_blksize"
14358 if test $ac_cv_c_struct_member_st_blksize = yes; then
14359 cat >> confdefs.h <<\EOF
14360 #define HAVE_ST_BLKSIZE 1
14365 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14366 echo "configure:14367: checking whether time.h and sys/time.h may both be included" >&5
14367 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373 #include <sys/types.h>
14374 #include <sys/time.h>
14380 if { (eval echo configure:14381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14382 ac_cv_header_time=yes
14384 echo "configure: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14387 ac_cv_header_time=no
14392 echo "$ac_t""$ac_cv_header_time" 1>&6
14393 if test $ac_cv_header_time = yes; then
14394 cat >> confdefs.h <<\EOF
14395 #define TIME_WITH_SYS_TIME 1
14400 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14401 echo "configure:14402: checking whether struct tm is in sys/time.h or time.h" >&5
14402 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14403 echo $ac_n "(cached) $ac_c" 1>&6
14405 cat > conftest.$ac_ext <<EOF
14406 #line 14407 "configure"
14407 #include "confdefs.h"
14408 #include <sys/types.h>
14411 struct tm *tp; tp->tm_sec;
14414 if { (eval echo configure:14415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14416 ac_cv_struct_tm=time.h
14418 echo "configure: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14421 ac_cv_struct_tm=sys/time.h
14426 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14427 if test $ac_cv_struct_tm = sys/time.h; then
14428 cat >> confdefs.h <<\EOF
14429 #define TM_IN_SYS_TIME 1
14434 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14435 echo "configure:14436: checking for uid_t in sys/types.h" >&5
14436 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14437 echo $ac_n "(cached) $ac_c" 1>&6
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442 #include <sys/types.h>
14444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14445 egrep "uid_t" >/dev/null 2>&1; then
14447 ac_cv_type_uid_t=yes
14450 ac_cv_type_uid_t=no
14456 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14457 if test $ac_cv_type_uid_t = no; then
14458 cat >> confdefs.h <<\EOF
14462 cat >> confdefs.h <<\EOF
14468 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14469 echo "configure:14470: checking for sig_atomic_t" >&5
14470 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14473 cat > conftest.$ac_ext <<EOF
14474 #line 14475 "configure"
14475 #include "confdefs.h"
14476 #include <signal.h>
14478 sig_atomic_t atomic;
14481 if { (eval echo configure:14482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14483 ol_cv_type_sig_atomic_t=yes
14485 echo "configure: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14488 ol_cv_type_sig_atomic_t=no
14493 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14494 if test $ol_cv_type_sig_atomic_t = no; then
14495 cat >> confdefs.h <<\EOF
14496 #define sig_atomic_t int
14503 # test for pw_gecos in struct passwd
14504 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14505 echo "configure:14506: checking struct passwd for pw_gecos" >&5
14506 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
14510 cat > conftest.$ac_ext <<EOF
14511 #line 14512 "configure"
14512 #include "confdefs.h"
14517 pwd.pw_gecos = pwd.pw_name;
14521 if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14523 ol_cv_struct_passwd_pw_gecos=yes
14525 echo "configure: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14528 ol_cv_struct_passwd_pw_gecos=no
14533 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14534 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14535 cat >> confdefs.h <<\EOF
14536 #define HAVE_PW_GECOS 1
14541 # test for pw_passwd in struct passwd
14542 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14543 echo "configure:14544: checking struct passwd for pw_passwd" >&5
14544 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14545 echo $ac_n "(cached) $ac_c" 1>&6
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14555 pwd.pw_passwd = pwd.pw_name;
14559 if { (eval echo configure:14560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14561 ol_cv_struct_passwd_pw_passwd=yes
14563 echo "configure: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14566 ol_cv_struct_passwd_pw_passwd=no
14571 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14572 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14573 cat >> confdefs.h <<\EOF
14574 #define HAVE_PW_PASSWD 1
14580 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14581 echo "configure:14582: checking if toupper() requires islower()" >&5
14582 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14583 echo $ac_n "(cached) $ac_c" 1>&6
14586 if test "$cross_compiling" = yes; then
14587 ol_cv_c_upper_lower=safe
14589 cat > conftest.$ac_ext <<EOF
14590 #line 14591 "configure"
14591 #include "confdefs.h"
14596 if ('C' == toupper('C'))
14602 if { (eval echo configure:14603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14604 ol_cv_c_upper_lower=no
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14609 ol_cv_c_upper_lower=yes
14616 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14617 if test $ol_cv_c_upper_lower != no ; then
14618 cat >> confdefs.h <<\EOF
14619 #define C_UPPER_LOWER 1
14624 echo $ac_n "checking for working const""... $ac_c" 1>&6
14625 echo "configure:14626: checking for working const" >&5
14626 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14627 echo $ac_n "(cached) $ac_c" 1>&6
14629 cat > conftest.$ac_ext <<EOF
14630 #line 14631 "configure"
14631 #include "confdefs.h"
14635 /* Ultrix mips cc rejects this. */
14636 typedef int charset[2]; const charset x;
14637 /* SunOS 4.1.1 cc rejects this. */
14638 char const *const *ccp;
14640 /* NEC SVR4.0.2 mips cc rejects this. */
14641 struct point {int x, y;};
14642 static struct point const zero = {0,0};
14643 /* AIX XL C 1.02.0.0 rejects this.
14644 It does not let you subtract one const X* pointer from another in an arm
14645 of an if-expression whose if-part is not a constant expression */
14646 const char *g = "string";
14647 ccp = &g + (g ? g-g : 0);
14648 /* HPUX 7.0 cc rejects these. */
14651 ccp = (char const *const *) p;
14652 { /* SCO 3.2v4 cc rejects this. */
14654 char const *s = 0 ? (char *) 0 : (char const *) 0;
14658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14659 int x[] = {25, 17};
14660 const int *foo = &x[0];
14663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14664 typedef const int *iptr;
14668 { /* AIX XL C 1.02.0.0 rejects this saying
14669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14670 struct s { int j; const int *ap[3]; };
14671 struct s *b; b->j = 5;
14673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14674 const int foo = 10;
14679 if { (eval echo configure:14680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14683 echo "configure: failed program was:" >&5
14684 cat conftest.$ac_ext >&5
14691 echo "$ac_t""$ac_cv_c_const" 1>&6
14692 if test $ac_cv_c_const = no; then
14693 cat >> confdefs.h <<\EOF
14699 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14700 echo "configure:14701: checking if compiler understands volatile" >&5
14701 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14702 echo $ac_n "(cached) $ac_c" 1>&6
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14709 volatile int a; int * volatile b = x ? &y : &z;
14710 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14714 if { (eval echo configure:14715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14716 ol_cv_c_volatile=yes
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14721 ol_cv_c_volatile=no
14726 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14727 if test $ol_cv_c_volatile = yes; then
14730 cat >> confdefs.h <<\EOF
14737 if test $cross_compiling = yes ; then
14738 cat >> confdefs.h <<\EOF
14739 #define CROSS_COMPILING 1
14743 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14744 echo "configure:14745: checking whether byte ordering is bigendian" >&5
14745 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14746 echo $ac_n "(cached) $ac_c" 1>&6
14748 ac_cv_c_bigendian=unknown
14749 # See if sys/param.h defines the BYTE_ORDER macro.
14750 cat > conftest.$ac_ext <<EOF
14751 #line 14752 "configure"
14752 #include "confdefs.h"
14753 #include <sys/types.h>
14754 #include <sys/param.h>
14757 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14758 bogus endian macros
14762 if { (eval echo configure:14763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14764 # It does; now see whether it defined to BIG_ENDIAN or not.
14765 cat > conftest.$ac_ext <<EOF
14766 #line 14767 "configure"
14767 #include "confdefs.h"
14768 #include <sys/types.h>
14769 #include <sys/param.h>
14772 #if BYTE_ORDER != BIG_ENDIAN
14777 if { (eval echo configure:14778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14779 ac_cv_c_bigendian=yes
14781 echo "configure: failed program was:" >&5
14782 cat conftest.$ac_ext >&5
14784 ac_cv_c_bigendian=no
14788 echo "configure: failed program was:" >&5
14789 cat conftest.$ac_ext >&5
14792 if test $ac_cv_c_bigendian = unknown; then
14793 if test "$cross_compiling" = yes; then
14794 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14796 cat > conftest.$ac_ext <<EOF
14797 #line 14798 "configure"
14798 #include "confdefs.h"
14800 /* Are we little or big endian? From Harbison&Steele. */
14804 char c[sizeof (long)];
14807 exit (u.c[sizeof (long) - 1] == 1);
14810 if { (eval echo configure:14811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14812 ac_cv_c_bigendian=no
14814 echo "configure: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14817 ac_cv_c_bigendian=yes
14825 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14826 if test $ac_cv_c_bigendian = yes; then
14827 cat >> confdefs.h <<\EOF
14828 #define WORDS_BIGENDIAN 1
14835 echo $ac_n "checking size of short""... $ac_c" 1>&6
14836 echo "configure:14837: checking size of short" >&5
14837 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14838 echo $ac_n "(cached) $ac_c" 1>&6
14840 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14841 cat > conftest.$ac_ext <<EOF
14842 #line 14843 "configure"
14843 #include "confdefs.h"
14844 #include "confdefs.h"
14845 #include <sys/types.h>
14849 switch (0) case 0: case (sizeof (short) == $ac_size):;
14852 if { (eval echo configure:14853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14854 ac_cv_sizeof_short=$ac_size
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14860 if test x$ac_cv_sizeof_short != x ; then break; fi
14865 if test x$ac_cv_sizeof_short = x ; then
14866 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14868 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14869 cat >> confdefs.h <<EOF
14870 #define SIZEOF_SHORT $ac_cv_sizeof_short
14874 echo $ac_n "checking size of int""... $ac_c" 1>&6
14875 echo "configure:14876: checking size of int" >&5
14876 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14877 echo $ac_n "(cached) $ac_c" 1>&6
14879 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14880 cat > conftest.$ac_ext <<EOF
14881 #line 14882 "configure"
14882 #include "confdefs.h"
14883 #include "confdefs.h"
14884 #include <sys/types.h>
14888 switch (0) case 0: case (sizeof (int) == $ac_size):;
14891 if { (eval echo configure:14892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14893 ac_cv_sizeof_int=$ac_size
14895 echo "configure: failed program was:" >&5
14896 cat conftest.$ac_ext >&5
14899 if test x$ac_cv_sizeof_int != x ; then break; fi
14904 if test x$ac_cv_sizeof_int = x ; then
14905 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14907 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14908 cat >> confdefs.h <<EOF
14909 #define SIZEOF_INT $ac_cv_sizeof_int
14913 echo $ac_n "checking size of long""... $ac_c" 1>&6
14914 echo "configure:14915: checking size of long" >&5
14915 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14916 echo $ac_n "(cached) $ac_c" 1>&6
14918 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14919 cat > conftest.$ac_ext <<EOF
14920 #line 14921 "configure"
14921 #include "confdefs.h"
14922 #include "confdefs.h"
14923 #include <sys/types.h>
14927 switch (0) case 0: case (sizeof (long) == $ac_size):;
14930 if { (eval echo configure:14931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14932 ac_cv_sizeof_long=$ac_size
14934 echo "configure: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14938 if test x$ac_cv_sizeof_long != x ; then break; fi
14943 if test x$ac_cv_sizeof_long = x ; then
14944 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14946 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14947 cat >> confdefs.h <<EOF
14948 #define SIZEOF_LONG $ac_cv_sizeof_long
14953 if test "$ac_cv_sizeof_int" -lt 4 ; then
14954 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14956 cat >> confdefs.h <<\EOF
14957 #define LBER_INT_T long
14961 cat >> confdefs.h <<\EOF
14962 #define LBER_INT_T int
14967 cat >> confdefs.h <<\EOF
14968 #define LBER_LEN_T long
14971 cat >> confdefs.h <<\EOF
14972 #define LBER_SOCKET_T int
14975 cat >> confdefs.h <<\EOF
14976 #define LBER_TAG_T long
14980 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14981 echo "configure:14982: checking for 8-bit clean memcmp" >&5
14982 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14983 echo $ac_n "(cached) $ac_c" 1>&6
14985 if test "$cross_compiling" = yes; then
14986 ac_cv_func_memcmp_clean=no
14988 cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure"
14990 #include "confdefs.h"
14994 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14995 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15001 ac_cv_func_memcmp_clean=yes
15003 echo "configure: failed program was:" >&5
15004 cat conftest.$ac_ext >&5
15006 ac_cv_func_memcmp_clean=no
15013 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15014 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15016 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15017 echo "configure:15018: checking for strftime" >&5
15018 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15019 echo $ac_n "(cached) $ac_c" 1>&6
15021 cat > conftest.$ac_ext <<EOF
15022 #line 15023 "configure"
15023 #include "confdefs.h"
15024 /* System header to define __stub macros and hopefully few prototypes,
15025 which can conflict with char strftime(); below. */
15026 #include <assert.h>
15027 /* Override any gcc2 internal prototype to avoid an error. */
15028 /* We use char because int might match the return type of a gcc2
15029 builtin and then its argument prototype would still apply. */
15035 /* The GNU C library defines this for functions which it implements
15036 to always fail with ENOSYS. Some functions are actually named
15037 something starting with __ and the normal name is an alias. */
15038 #if defined (__stub_strftime) || defined (__stub___strftime)
15046 if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15048 eval "ac_cv_func_strftime=yes"
15050 echo "configure: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15053 eval "ac_cv_func_strftime=no"
15058 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15059 echo "$ac_t""yes" 1>&6
15060 cat >> confdefs.h <<\EOF
15061 #define HAVE_STRFTIME 1
15065 echo "$ac_t""no" 1>&6
15066 # strftime is in -lintl on SCO UNIX.
15067 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15068 echo "configure:15069: checking for strftime in -lintl" >&5
15069 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15071 echo $ac_n "(cached) $ac_c" 1>&6
15073 ac_save_LIBS="$LIBS"
15074 LIBS="-lintl $LIBS"
15075 cat > conftest.$ac_ext <<EOF
15076 #line 15077 "configure"
15077 #include "confdefs.h"
15078 /* Override any gcc2 internal prototype to avoid an error. */
15079 /* We use char because int might match the return type of a gcc2
15080 builtin and then its argument prototype would still apply. */
15087 if { (eval echo configure:15088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15089 eval "ac_cv_lib_$ac_lib_var=yes"
15091 echo "configure: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15094 eval "ac_cv_lib_$ac_lib_var=no"
15097 LIBS="$ac_save_LIBS"
15100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 cat >> confdefs.h <<\EOF
15103 #define HAVE_STRFTIME 1
15106 LIBS="-lintl $LIBS"
15108 echo "$ac_t""no" 1>&6
15114 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15115 echo "configure:15116: checking for inet_aton()" >&5
15116 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15117 echo $ac_n "(cached) $ac_c" 1>&6
15119 cat > conftest.$ac_ext <<EOF
15120 #line 15121 "configure"
15121 #include "confdefs.h"
15123 #ifdef HAVE_SYS_TYPES_H
15124 # include <sys/types.h>
15126 #ifdef HAVE_SYS_SOCKET_H
15127 # include <sys/socket.h>
15128 # ifdef HAVE_SYS_SELECT_H
15129 # include <sys/select.h>
15131 # include <netinet/in.h>
15132 # ifdef HAVE_ARPA_INET_H
15133 # include <arpa/inet.h>
15139 int rc = inet_aton( "255.255.255.255", &in );
15142 if { (eval echo configure:15143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15144 ol_cv_func_inet_aton=yes
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15149 ol_cv_func_inet_aton=no
15154 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15155 if test $ol_cv_func_inet_aton != no; then
15156 cat >> confdefs.h <<\EOF
15157 #define HAVE_INET_ATON 1
15163 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15164 echo "configure:15165: checking for _spawnlp" >&5
15165 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15166 echo $ac_n "(cached) $ac_c" 1>&6
15168 cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 /* System header to define __stub macros and hopefully few prototypes,
15172 which can conflict with char _spawnlp(); below. */
15173 #include <assert.h>
15174 /* Override any gcc2 internal prototype to avoid an error. */
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15182 /* The GNU C library defines this for functions which it implements
15183 to always fail with ENOSYS. Some functions are actually named
15184 something starting with __ and the normal name is an alias. */
15185 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15193 if { (eval echo configure:15194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15195 eval "ac_cv_func__spawnlp=yes"
15197 echo "configure: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15200 eval "ac_cv_func__spawnlp=no"
15205 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15206 echo "$ac_t""yes" 1>&6
15207 cat >> confdefs.h <<\EOF
15208 #define HAVE_SPAWNLP 1
15212 echo "$ac_t""no" 1>&6
15216 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15217 echo "configure:15218: checking for _snprintf" >&5
15218 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15219 echo $ac_n "(cached) $ac_c" 1>&6
15221 cat > conftest.$ac_ext <<EOF
15222 #line 15223 "configure"
15223 #include "confdefs.h"
15224 /* System header to define __stub macros and hopefully few prototypes,
15225 which can conflict with char _snprintf(); below. */
15226 #include <assert.h>
15227 /* Override any gcc2 internal prototype to avoid an error. */
15228 /* We use char because int might match the return type of a gcc2
15229 builtin and then its argument prototype would still apply. */
15235 /* The GNU C library defines this for functions which it implements
15236 to always fail with ENOSYS. Some functions are actually named
15237 something starting with __ and the normal name is an alias. */
15238 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15246 if { (eval echo configure:15247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15248 eval "ac_cv_func__snprintf=yes"
15250 echo "configure: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15253 eval "ac_cv_func__snprintf=no"
15258 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15259 echo "$ac_t""yes" 1>&6
15260 ac_cv_func_snprintf=yes
15261 cat >> confdefs.h <<\EOF
15262 #define snprintf _snprintf
15267 echo "$ac_t""no" 1>&6
15271 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15272 echo "configure:15273: checking for _vsnprintf" >&5
15273 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15274 echo $ac_n "(cached) $ac_c" 1>&6
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 /* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char _vsnprintf(); below. */
15281 #include <assert.h>
15282 /* Override any gcc2 internal prototype to avoid an error. */
15283 /* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15290 /* The GNU C library defines this for functions which it implements
15291 to always fail with ENOSYS. Some functions are actually named
15292 something starting with __ and the normal name is an alias. */
15293 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15301 if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15303 eval "ac_cv_func__vsnprintf=yes"
15305 echo "configure: failed program was:" >&5
15306 cat conftest.$ac_ext >&5
15308 eval "ac_cv_func__vsnprintf=no"
15313 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15314 echo "$ac_t""yes" 1>&6
15315 ac_cv_func_vsnprintf=yes
15316 cat >> confdefs.h <<\EOF
15317 #define vsnprintf _vsnprintf
15322 echo "$ac_t""no" 1>&6
15326 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15327 echo "configure:15328: checking for vprintf" >&5
15328 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
15331 cat > conftest.$ac_ext <<EOF
15332 #line 15333 "configure"
15333 #include "confdefs.h"
15334 /* System header to define __stub macros and hopefully few prototypes,
15335 which can conflict with char vprintf(); below. */
15336 #include <assert.h>
15337 /* Override any gcc2 internal prototype to avoid an error. */
15338 /* We use char because int might match the return type of a gcc2
15339 builtin and then its argument prototype would still apply. */
15345 /* The GNU C library defines this for functions which it implements
15346 to always fail with ENOSYS. Some functions are actually named
15347 something starting with __ and the normal name is an alias. */
15348 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15356 if { (eval echo configure:15357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15358 eval "ac_cv_func_vprintf=yes"
15360 echo "configure: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15363 eval "ac_cv_func_vprintf=no"
15368 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15369 echo "$ac_t""yes" 1>&6
15370 cat >> confdefs.h <<\EOF
15371 #define HAVE_VPRINTF 1
15375 echo "$ac_t""no" 1>&6
15378 if test "$ac_cv_func_vprintf" != yes; then
15379 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15380 echo "configure:15381: checking for _doprnt" >&5
15381 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15382 echo $ac_n "(cached) $ac_c" 1>&6
15384 cat > conftest.$ac_ext <<EOF
15385 #line 15386 "configure"
15386 #include "confdefs.h"
15387 /* System header to define __stub macros and hopefully few prototypes,
15388 which can conflict with char _doprnt(); below. */
15389 #include <assert.h>
15390 /* Override any gcc2 internal prototype to avoid an error. */
15391 /* We use char because int might match the return type of a gcc2
15392 builtin and then its argument prototype would still apply. */
15398 /* The GNU C library defines this for functions which it implements
15399 to always fail with ENOSYS. Some functions are actually named
15400 something starting with __ and the normal name is an alias. */
15401 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15409 if { (eval echo configure:15410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15411 eval "ac_cv_func__doprnt=yes"
15413 echo "configure: failed program was:" >&5
15414 cat conftest.$ac_ext >&5
15416 eval "ac_cv_func__doprnt=no"
15421 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15422 echo "$ac_t""yes" 1>&6
15423 cat >> confdefs.h <<\EOF
15424 #define HAVE_DOPRNT 1
15428 echo "$ac_t""no" 1>&6
15434 if test $ac_cv_func_vprintf = yes ; then
15435 for ac_func in vsnprintf vsprintf
15437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15438 echo "configure:15439: checking for $ac_func" >&5
15439 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15440 echo $ac_n "(cached) $ac_c" 1>&6
15442 cat > conftest.$ac_ext <<EOF
15443 #line 15444 "configure"
15444 #include "confdefs.h"
15445 /* System header to define __stub macros and hopefully few prototypes,
15446 which can conflict with char $ac_func(); below. */
15447 #include <assert.h>
15448 /* Override any gcc2 internal prototype to avoid an error. */
15449 /* We use char because int might match the return type of a gcc2
15450 builtin and then its argument prototype would still apply. */
15456 /* The GNU C library defines this for functions which it implements
15457 to always fail with ENOSYS. Some functions are actually named
15458 something starting with __ and the normal name is an alias. */
15459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15467 if { (eval echo configure:15468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15469 eval "ac_cv_func_$ac_func=yes"
15471 echo "configure: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15474 eval "ac_cv_func_$ac_func=no"
15479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15480 echo "$ac_t""yes" 1>&6
15481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15482 cat >> confdefs.h <<EOF
15483 #define $ac_tr_func 1
15487 echo "$ac_t""no" 1>&6
15545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15546 echo "configure:15547: checking for $ac_func" >&5
15547 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
15550 cat > conftest.$ac_ext <<EOF
15551 #line 15552 "configure"
15552 #include "confdefs.h"
15553 /* System header to define __stub macros and hopefully few prototypes,
15554 which can conflict with char $ac_func(); below. */
15555 #include <assert.h>
15556 /* Override any gcc2 internal prototype to avoid an error. */
15557 /* We use char because int might match the return type of a gcc2
15558 builtin and then its argument prototype would still apply. */
15564 /* The GNU C library defines this for functions which it implements
15565 to always fail with ENOSYS. Some functions are actually named
15566 something starting with __ and the normal name is an alias. */
15567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15575 if { (eval echo configure:15576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15577 eval "ac_cv_func_$ac_func=yes"
15579 echo "configure: failed program was:" >&5
15580 cat conftest.$ac_ext >&5
15582 eval "ac_cv_func_$ac_func=no"
15587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15588 echo "$ac_t""yes" 1>&6
15589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15590 cat >> confdefs.h <<EOF
15591 #define $ac_tr_func 1
15595 echo "$ac_t""no" 1>&6
15600 for ac_func in getopt tempnam
15602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15603 echo "configure:15604: checking for $ac_func" >&5
15604 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15605 echo $ac_n "(cached) $ac_c" 1>&6
15607 cat > conftest.$ac_ext <<EOF
15608 #line 15609 "configure"
15609 #include "confdefs.h"
15610 /* System header to define __stub macros and hopefully few prototypes,
15611 which can conflict with char $ac_func(); below. */
15612 #include <assert.h>
15613 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15621 /* The GNU C library defines this for functions which it implements
15622 to always fail with ENOSYS. Some functions are actually named
15623 something starting with __ and the normal name is an alias. */
15624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15634 eval "ac_cv_func_$ac_func=yes"
15636 echo "configure: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15639 eval "ac_cv_func_$ac_func=no"
15644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15645 echo "$ac_t""yes" 1>&6
15646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15647 cat >> confdefs.h <<EOF
15648 #define $ac_tr_func 1
15652 echo "$ac_t""no" 1>&6
15653 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15659 if test "$ac_cv_func_getopt" != yes; then
15660 LIBSRCS="$LIBSRCS getopt.c"
15663 if test "$ac_cv_func_tempnam" != yes; then
15664 LIBSRCS="$LIBSRCS tempnam.c"
15667 # Check Configuration
15668 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15669 echo "configure:15670: checking declaration of sys_errlist" >&5
15670 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15671 echo $ac_n "(cached) $ac_c" 1>&6
15674 cat > conftest.$ac_ext <<EOF
15675 #line 15676 "configure"
15676 #include "confdefs.h"
15679 #include <sys/types.h>
15682 #include <stdlib.h>
15685 char *c = (char *) *sys_errlist
15688 if { (eval echo configure:15689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15690 ol_cv_dcl_sys_errlist=yes
15691 ol_cv_have_sys_errlist=yes
15693 echo "configure: failed program was:" >&5
15694 cat conftest.$ac_ext >&5
15696 ol_cv_dcl_sys_errlist=no
15701 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15703 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15704 if test $ol_cv_dcl_sys_errlist = no ; then
15705 cat >> confdefs.h <<\EOF
15706 #define DECL_SYS_ERRLIST 1
15710 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15711 echo "configure:15712: checking existence of sys_errlist" >&5
15712 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15713 echo $ac_n "(cached) $ac_c" 1>&6
15716 cat > conftest.$ac_ext <<EOF
15717 #line 15718 "configure"
15718 #include "confdefs.h"
15721 char *c = (char *) *sys_errlist
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15726 ol_cv_have_sys_errlist=yes
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15731 ol_cv_have_sys_errlist=no
15736 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15738 if test $ol_cv_have_sys_errlist = yes ; then
15739 cat >> confdefs.h <<\EOF
15740 #define HAVE_SYS_ERRLIST 1
15747 if test "$ol_enable_debug" != no ; then
15748 cat >> confdefs.h <<\EOF
15749 #define LDAP_DEBUG 1
15753 if test "$ol_enable_syslog" = yes ; then
15754 cat >> confdefs.h <<\EOF
15755 #define LDAP_SYSLOG 1
15759 if test "$ol_enable_libui" = yes ; then
15760 cat >> confdefs.h <<\EOF
15761 #define LDAP_LIBUI 1
15765 if test "$ol_enable_cache" = no ; then
15766 cat >> confdefs.h <<\EOF
15767 #define LDAP_NOCACHE 1
15771 if test "$ol_link_kbind" != no ; then
15772 cat >> confdefs.h <<\EOF
15773 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15777 if test "$ol_enable_proctitle" != no ; then
15778 cat >> confdefs.h <<\EOF
15779 #define LDAP_PROCTITLE 1
15783 if test "$ol_enable_referrals" != no ; then
15784 cat >> confdefs.h <<\EOF
15785 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15789 if test "$ol_enable_local" != no; then
15790 cat >> confdefs.h <<\EOF
15791 #define LDAP_PF_LOCAL 1
15795 if test "$ol_link_ipv6" != no; then
15796 cat >> confdefs.h <<\EOF
15797 #define LDAP_PF_INET6 1
15801 if test "$ol_enable_cleartext" != no ; then
15802 cat >> confdefs.h <<\EOF
15803 #define SLAPD_CLEARTEXT 1
15807 if test "$ol_enable_crypt" != no ; then
15808 cat >> confdefs.h <<\EOF
15809 #define SLAPD_CRYPT 1
15813 if test "$ol_link_kpasswd" != no ; then
15814 cat >> confdefs.h <<\EOF
15815 #define SLAPD_KPASSWD 1
15819 if test "$ol_link_spasswd" != no ; then
15820 cat >> confdefs.h <<\EOF
15821 #define SLAPD_SPASSWD 1
15825 if test "$ol_enable_phonetic" != no ; then
15826 cat >> confdefs.h <<\EOF
15827 #define SLAPD_PHONETIC 1
15831 if test "$ol_enable_rlookups" != no ; then
15832 cat >> confdefs.h <<\EOF
15833 #define SLAPD_RLOOKUPS 1
15837 if test "$ol_enable_aci" != no ; then
15838 cat >> confdefs.h <<\EOF
15839 #define SLAPD_ACI_ENABLED 1
15844 if test "$ol_link_modules" != no ; then
15845 cat >> confdefs.h <<\EOF
15846 #define SLAPD_MODULES 1
15850 SLAPD_MODULES_LDFLAGS="-dlopen self"
15853 if test "$ol_link_dnssrv" != no ; then
15854 cat >> confdefs.h <<\EOF
15855 #define SLAPD_DNSSRV 1
15860 if test "$ol_with_dnssrv_module" != static ; then
15861 cat >> confdefs.h <<\EOF
15862 #define SLAPD_DNSSRV_DYNAMIC 1
15866 BUILD_DNSSRV_DYNAMIC=shared
15867 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15871 if test "$ol_enable_ldap" != no ; then
15872 cat >> confdefs.h <<\EOF
15873 #define SLAPD_LDAP 1
15878 if test "$ol_with_ldap_module" != static ; then
15879 cat >> confdefs.h <<\EOF
15880 #define SLAPD_LDAP_DYNAMIC 1
15884 BUILD_LDAP_DYNAMIC=shared
15885 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15889 if test "$ol_link_ldbm" != no ; then
15890 cat >> confdefs.h <<\EOF
15891 #define SLAPD_LDBM 1
15896 if test "$ol_with_ldbm_module" != static ; then
15897 cat >> confdefs.h <<\EOF
15898 #define SLAPD_LDBM_DYNAMIC 1
15902 BUILD_LDBM_DYNAMIC=shared
15903 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15907 if test "$ol_enable_passwd" != no ; then
15908 cat >> confdefs.h <<\EOF
15909 #define SLAPD_PASSWD 1
15914 if test "$ol_with_passwd_module" != static ; then
15915 cat >> confdefs.h <<\EOF
15916 #define SLAPD_PASSWD_DYNAMIC 1
15920 BUILD_PASSWD_DYNAMIC=shared
15921 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15925 if test "$ol_enable_shell" != no ; then
15926 cat >> confdefs.h <<\EOF
15927 #define SLAPD_SHELL 1
15932 if test "$ol_with_shell_module" != static ; then
15933 cat >> confdefs.h <<\EOF
15934 #define SLAPD_SHELL_DYNAMIC 1
15938 BUILD_SHELL_DYNAMIC=shared
15939 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15943 if test "$ol_enable_sql" != no ; then
15944 cat >> confdefs.h <<\EOF
15945 #define SLAPD_SQL 1
15950 if test "$ol_with_sql_module" != static; then
15951 cat >> confdefs.h <<\EOF
15952 #define SLAPD_SQL_DYNAMIC 1
15956 BUILD_SQL_DYNAMIC=shared
15957 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15961 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15962 $BUILD_SLAPD = yes ; then
15967 if test "$LINK_BINS_DYNAMIC" = yes; then
15969 LT_LIB_LINKAGE=shared
15972 LT_LIB_LINKAGE=static
15975 if test "$ac_cv_mingw32" = yes ; then
16035 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16038 # Let make expand exec_prefix.
16039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16041 # Any assignment to VPATH causes Sun make to only execute
16042 # the first set of double-colon rules, so remove it if not needed.
16043 # If there is a colon in the path, we need to keep it.
16044 if test "x$srcdir" = x.; then
16045 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16048 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16050 DEFS=-DHAVE_CONFIG_H
16052 # Without the "./", some shells look in PATH for config.status.
16053 : ${CONFIG_STATUS=./config.status}
16055 echo creating $CONFIG_STATUS
16056 rm -f $CONFIG_STATUS
16057 cat > $CONFIG_STATUS <<EOF
16059 # Generated automatically by configure.
16060 # Run this file to recreate the current configuration.
16061 # This directory was configured as follows,
16062 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16064 # $0 $ac_configure_args
16066 # Compiler output produced by configure, useful for debugging
16067 # configure, is in ./config.log if it exists.
16069 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16072 case "\$ac_option" in
16073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16074 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16075 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16076 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16077 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16079 -help | --help | --hel | --he | --h)
16080 echo "\$ac_cs_usage"; exit 0 ;;
16081 *) echo "\$ac_cs_usage"; exit 1 ;;
16085 ac_given_srcdir=$srcdir
16086 ac_given_INSTALL="$INSTALL"
16088 trap 'rm -fr `echo "\
16089 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16090 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16091 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16092 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16093 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16094 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16095 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16096 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16097 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16098 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16099 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16100 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16101 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16102 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16103 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16104 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16105 include/Makefile:build/top.mk:include/Makefile.in \
16106 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16107 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16108 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16109 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16110 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16111 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16112 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16113 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16114 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16115 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16116 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16117 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16118 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16119 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16120 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16121 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16122 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16123 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16124 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16125 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16126 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16127 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16128 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16129 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16130 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16132 cat >> $CONFIG_STATUS <<EOF
16134 # Protect against being on the right side of a sed subst in config.status.
16135 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16136 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16140 s%@CFLAGS@%$CFLAGS%g
16141 s%@CPPFLAGS@%$CPPFLAGS%g
16142 s%@CXXFLAGS@%$CXXFLAGS%g
16143 s%@FFLAGS@%$FFLAGS%g
16145 s%@LDFLAGS@%$LDFLAGS%g
16147 s%@exec_prefix@%$exec_prefix%g
16148 s%@prefix@%$prefix%g
16149 s%@program_transform_name@%$program_transform_name%g
16150 s%@bindir@%$bindir%g
16151 s%@sbindir@%$sbindir%g
16152 s%@libexecdir@%$libexecdir%g
16153 s%@datadir@%$datadir%g
16154 s%@sysconfdir@%$sysconfdir%g
16155 s%@sharedstatedir@%$sharedstatedir%g
16156 s%@localstatedir@%$localstatedir%g
16157 s%@libdir@%$libdir%g
16158 s%@includedir@%$includedir%g
16159 s%@oldincludedir@%$oldincludedir%g
16160 s%@infodir@%$infodir%g
16161 s%@mandir@%$mandir%g
16163 s%@host_alias@%$host_alias%g
16164 s%@host_cpu@%$host_cpu%g
16165 s%@host_vendor@%$host_vendor%g
16166 s%@host_os@%$host_os%g
16167 s%@target@%$target%g
16168 s%@target_alias@%$target_alias%g
16169 s%@target_cpu@%$target_cpu%g
16170 s%@target_vendor@%$target_vendor%g
16171 s%@target_os@%$target_os%g
16173 s%@build_alias@%$build_alias%g
16174 s%@build_cpu@%$build_cpu%g
16175 s%@build_vendor@%$build_vendor%g
16176 s%@build_os@%$build_os%g
16177 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16178 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16179 s%@INSTALL_DATA@%$INSTALL_DATA%g
16180 s%@PACKAGE@%$PACKAGE%g
16181 s%@VERSION@%$VERSION%g
16182 s%@ACLOCAL@%$ACLOCAL%g
16183 s%@AUTOCONF@%$AUTOCONF%g
16184 s%@AUTOMAKE@%$AUTOMAKE%g
16185 s%@AUTOHEADER@%$AUTOHEADER%g
16186 s%@MAKEINFO@%$MAKEINFO%g
16187 s%@install_sh@%$install_sh%g
16190 s%@AMTARFLAGS@%$AMTARFLAGS%g
16191 s%@SET_MAKE@%$SET_MAKE%g
16192 s%@top_builddir@%$top_builddir%g
16193 s%@ldap_subdir@%$ldap_subdir%g
16195 s%@RANLIB@%$RANLIB%g
16197 s%@DLLTOOL@%$DLLTOOL%g
16199 s%@OBJDUMP@%$OBJDUMP%g
16200 s%@LIBTOOL@%$LIBTOOL%g
16202 s%@SENDMAIL@%$SENDMAIL%g
16203 s%@EDITOR@%$EDITOR%g
16204 s%@FINGER@%$FINGER%g
16206 s%@EXEEXT@%$EXEEXT%g
16207 s%@OBJEXT@%$OBJEXT%g
16208 s%@OL_MKDEP@%$OL_MKDEP%g
16209 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16210 s%@LIBOBJS@%$LIBOBJS%g
16211 s%@LIBSRCS@%$LIBSRCS%g
16213 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16214 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16215 s%@DYN_EXT@%$DYN_EXT%g
16216 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16217 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16218 s%@BUILD_LDAP@%$BUILD_LDAP%g
16219 s%@BUILD_LDBM@%$BUILD_LDBM%g
16220 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16221 s%@BUILD_SHELL@%$BUILD_SHELL%g
16222 s%@BUILD_SQL@%$BUILD_SQL%g
16223 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16224 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16225 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16226 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16227 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16228 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16229 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16230 s%@LDAP_LIBS@%$LDAP_LIBS%g
16231 s%@LDIF_LIBS@%$LDIF_LIBS%g
16232 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16233 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16234 s%@LDBM_LIBS@%$LDBM_LIBS%g
16235 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16236 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16237 s%@WRAP_LIBS@%$WRAP_LIBS%g
16238 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16239 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16240 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16241 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16242 s%@KRB4_LIBS@%$KRB4_LIBS%g
16243 s%@KRB5_LIBS@%$KRB5_LIBS%g
16244 s%@READLINE_LIBS@%$READLINE_LIBS%g
16245 s%@SASL_LIBS@%$SASL_LIBS%g
16246 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16247 s%@TLS_LIBS@%$TLS_LIBS%g
16248 s%@MODULES_LIBS@%$MODULES_LIBS%g
16249 s%@AUTH_LIBS@%$AUTH_LIBS%g
16250 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16251 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16252 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16257 cat >> $CONFIG_STATUS <<\EOF
16259 # Split the substitutions into bite-sized pieces for seds with
16260 # small command number limits, like on Digital OSF/1 and HP-UX.
16261 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16262 ac_file=1 # Number of current file.
16263 ac_beg=1 # First line for current file.
16264 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16267 while $ac_more_lines; do
16268 if test $ac_beg -gt 1; then
16269 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16271 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16273 if test ! -s conftest.s$ac_file; then
16274 ac_more_lines=false
16275 rm -f conftest.s$ac_file
16277 if test -z "$ac_sed_cmds"; then
16278 ac_sed_cmds="sed -f conftest.s$ac_file"
16280 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16282 ac_file=`expr $ac_file + 1`
16284 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16287 if test -z "$ac_sed_cmds"; then
16292 cat >> $CONFIG_STATUS <<EOF
16294 CONFIG_FILES=\${CONFIG_FILES-"\
16295 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16296 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16297 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16298 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16299 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16300 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16301 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16302 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16303 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16304 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16305 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16306 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16307 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16308 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16309 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16310 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16311 include/Makefile:build/top.mk:include/Makefile.in \
16312 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16313 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16314 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16315 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16316 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16317 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16318 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16319 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16320 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16321 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16322 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16323 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16324 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16325 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16326 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16327 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16328 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16329 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16330 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16331 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16332 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16333 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16334 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16335 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16338 cat >> $CONFIG_STATUS <<\EOF
16339 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16340 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16342 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16343 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16344 *) ac_file_in="${ac_file}.in" ;;
16347 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16349 # Remove last slash and all that follows it. Not all systems have dirname.
16350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16352 # The file is in a subdirectory.
16353 test ! -d "$ac_dir" && mkdir "$ac_dir"
16354 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16355 # A "../" for each directory in $ac_dir_suffix.
16356 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16358 ac_dir_suffix= ac_dots=
16361 case "$ac_given_srcdir" in
16363 if test -z "$ac_dots"; then top_srcdir=.
16364 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16365 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16366 *) # Relative path.
16367 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16368 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16371 case "$ac_given_INSTALL" in
16372 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16373 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16376 echo creating "$ac_file"
16378 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16380 *[Mm]akefile*) ac_comsub="1i\\
16381 # $configure_input" ;;
16385 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16387 s%@configure_input@%$configure_input%g
16388 s%@srcdir@%$srcdir%g
16389 s%@top_srcdir@%$top_srcdir%g
16390 s%@INSTALL@%$INSTALL%g
16391 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16395 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16396 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16398 # ac_d sets the value in "#define NAME VALUE" lines.
16399 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16400 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16403 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16404 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16405 ac_uB='\([ ]\)%\1#\2define\3'
16408 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16409 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16410 ac_eB='$%\1#\2define\3'
16414 if test "${CONFIG_HEADERS+set}" != set; then
16416 cat >> $CONFIG_STATUS <<EOF
16417 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16419 cat >> $CONFIG_STATUS <<\EOF
16421 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16424 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16425 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16426 *) ac_file_in="${ac_file}.in" ;;
16429 echo creating $ac_file
16431 rm -f conftest.frag conftest.in conftest.out
16432 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16433 cat $ac_file_inputs > conftest.in
16437 # Transform confdefs.h into a sed script conftest.vals that substitutes
16438 # the proper values into config.h.in to produce config.h. And first:
16439 # Protect against being on the right side of a sed subst in config.status.
16440 # Protect against being in an unquoted here document in config.status.
16441 rm -f conftest.vals
16442 cat > conftest.hdr <<\EOF
16445 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16449 sed -n -f conftest.hdr confdefs.h > conftest.vals
16452 # This sed command replaces #undef with comments. This is necessary, for
16453 # example, in the case of _POSIX_SOURCE, which is predefined and required
16454 # on some systems where configure will not decide to define it.
16455 cat >> conftest.vals <<\EOF
16456 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16459 # Break up conftest.vals because some shells have a limit on
16460 # the size of here documents, and old seds have small limits too.
16462 rm -f conftest.tail
16465 ac_lines=`grep -c . conftest.vals`
16466 # grep -c gives empty output for an empty file on some AIX systems.
16467 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16468 # Write a limited-size here document to conftest.frag.
16469 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16470 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16472 sed -f conftest.frag conftest.in > conftest.out
16474 mv conftest.out conftest.in
16475 ' >> $CONFIG_STATUS
16476 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16477 rm -f conftest.vals
16478 mv conftest.tail conftest.vals
16480 rm -f conftest.vals
16482 cat >> $CONFIG_STATUS <<\EOF
16483 rm -f conftest.frag conftest.h
16484 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16485 cat conftest.in >> conftest.h
16487 if cmp -s $ac_file conftest.h 2>/dev/null; then
16488 echo "$ac_file is unchanged"
16491 # Remove last slash and all that follows it. Not all systems have dirname.
16492 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16494 # The file is in a subdirectory.
16495 test ! -d "$ac_dir" && mkdir "$ac_dir"
16498 mv conftest.h $ac_file
16503 cat >> $CONFIG_STATUS <<EOF
16506 cat >> $CONFIG_STATUS <<\EOF
16509 echo Please \"make depend\" to build dependencies
16513 chmod +x $CONFIG_STATUS
16514 rm -fr confdefs* $ac_clean_files
16515 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1