3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.33 2001/09/26 19:20:24 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-x-compile enable cross compiling [no]"
49 --with-cyrus-sasl with Cyrus SASL support [auto]"
51 --with-fetch with fetch URL support [auto]"
53 --with-kerberos with Kerberos support [auto]"
55 --with-readline with readline support [auto]"
57 --with-threads with threads [auto]"
59 --with-tls with TLS/SSL support [auto]"
61 --with-yielding-select with implicitly yielding select [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [auto]"
71 --enable-kpasswd enable kerberos password verification [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-phonetic enable phonetic/soundex [no]"
79 --enable-rlookups enable reverse lookups [no]"
81 --enable-aci enable per-object ACIs [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-dynamic enable linking built binaries with dynamic libs [no]"
87 --enable-dnssrv enable dnssrv backend [no]"
89 --with-dnssrv-module module type [static]"
91 --enable-ldap enable ldap backend [no]"
93 --with-ldap-module module type [static]"
95 --enable-ldbm enable ldbm backend [yes]"
97 --with-ldbm-api with LDBM API [auto]"
99 --with-ldbm-module module type [static]"
101 --with-ldbm-type use LDBM type [auto]"
103 --enable-passwd enable passwd backend [no]"
105 --with-passwd-module module type [static]"
107 --enable-shell enable shell backend [no]"
109 --with-shell-module module type [static]"
111 --enable-sql enable sql backend [no]"
113 --with-sql-module module type [static]"
115 SLURPD (Replication Daemon) Options:"
117 --enable-slurpd enable building slurpd [auto]"
119 Library Generation & Linking Options"
121 --enable-static[=PKGS] build static libraries [default=yes]"
123 --enable-shared[=PKGS] build shared libraries [default=yes]"
125 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
127 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
129 --disable-libtool-lock avoid locking (might break parallel builds)"
131 # Initialize some variables set by options.
132 # The variables have the same names as the options, with
133 # dashes changed to underlines.
135 cache_file=./config.cache
144 program_transform_name=s,x,x,
152 bindir='${exec_prefix}/bin'
153 sbindir='${exec_prefix}/sbin'
154 libexecdir='${exec_prefix}/libexec'
155 datadir='${prefix}/share'
156 sysconfdir='${prefix}/etc'
157 sharedstatedir='${prefix}/com'
158 localstatedir='${prefix}/var'
159 libdir='${exec_prefix}/lib'
160 includedir='${prefix}/include'
161 oldincludedir='/usr/include'
162 infodir='${prefix}/info'
163 mandir='${prefix}/man'
165 # Initialize some other variables.
168 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Maximum number of lines to put in a shell here document.
176 # If the previous option needs an argument, assign it.
177 if test -n "$ac_prev"; then
178 eval "$ac_prev=\$ac_option"
184 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
188 # Accept the important Cygnus configure options, so we can diagnose typos.
192 -bindir | --bindir | --bindi | --bind | --bin | --bi)
194 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
195 bindir="$ac_optarg" ;;
197 -build | --build | --buil | --bui | --bu)
199 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
200 build="$ac_optarg" ;;
202 -cache-file | --cache-file | --cache-fil | --cache-fi \
203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
204 ac_prev=cache_file ;;
205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
207 cache_file="$ac_optarg" ;;
209 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
211 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
213 datadir="$ac_optarg" ;;
215 -disable-* | --disable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}=no" ;;
224 -enable-* | --enable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}='$ac_optarg'" ;;
237 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
238 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
239 | --exec | --exe | --ex)
240 ac_prev=exec_prefix ;;
241 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
242 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
243 | --exec=* | --exe=* | --ex=*)
244 exec_prefix="$ac_optarg" ;;
246 -gas | --gas | --ga | --g)
247 # Obsolete; use --with-gas.
250 -help | --help | --hel | --he)
251 # Omit some internal or obsolete options to make the list less imposing.
252 # This message is too long to be a string in the A/UX 3.1 sh.
254 Usage: configure [options] [host]
255 Options: [defaults in brackets after descriptions]
257 --cache-file=FILE cache test results in FILE
258 --help print this message
259 --no-create do not create output files
260 --quiet, --silent do not print \`checking...' messages
261 --version print the version of autoconf that created configure
262 Directory and file names:
263 --prefix=PREFIX install architecture-independent files in PREFIX
265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
267 --bindir=DIR user executables in DIR [EPREFIX/bin]
268 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
269 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
270 --datadir=DIR read-only architecture-independent data in DIR
272 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
273 --sharedstatedir=DIR modifiable architecture-independent data in DIR
275 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
276 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
277 --includedir=DIR C header files in DIR [PREFIX/include]
278 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
279 --infodir=DIR info documentation in DIR [PREFIX/info]
280 --mandir=DIR man documentation in DIR [PREFIX/man]
281 --srcdir=DIR find the sources in DIR [configure dir or ..]
282 --program-prefix=PREFIX prepend PREFIX to installed program names
283 --program-suffix=SUFFIX append SUFFIX to installed program names
284 --program-transform-name=PROGRAM
285 run sed PROGRAM on installed program names
289 --build=BUILD configure for building on BUILD [BUILD=HOST]
290 --host=HOST configure for HOST [guessed]
291 --target=TARGET configure for TARGET [TARGET=HOST]
292 Features and packages:
293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
297 --x-includes=DIR X include files are in DIR
298 --x-libraries=DIR X library files are in DIR
300 if test -n "$ac_help"; then
301 echo "--enable and --with options recognized:$ac_help"
305 -host | --host | --hos | --ho)
307 -host=* | --host=* | --hos=* | --ho=*)
310 -includedir | --includedir | --includedi | --included | --include \
311 | --includ | --inclu | --incl | --inc)
312 ac_prev=includedir ;;
313 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
314 | --includ=* | --inclu=* | --incl=* | --inc=*)
315 includedir="$ac_optarg" ;;
317 -infodir | --infodir | --infodi | --infod | --info | --inf)
319 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
320 infodir="$ac_optarg" ;;
322 -libdir | --libdir | --libdi | --libd)
324 -libdir=* | --libdir=* | --libdi=* | --libd=*)
325 libdir="$ac_optarg" ;;
327 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
328 | --libexe | --libex | --libe)
329 ac_prev=libexecdir ;;
330 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
331 | --libexe=* | --libex=* | --libe=*)
332 libexecdir="$ac_optarg" ;;
334 -localstatedir | --localstatedir | --localstatedi | --localstated \
335 | --localstate | --localstat | --localsta | --localst \
336 | --locals | --local | --loca | --loc | --lo)
337 ac_prev=localstatedir ;;
338 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
339 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
340 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
341 localstatedir="$ac_optarg" ;;
343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
346 mandir="$ac_optarg" ;;
349 # Obsolete; use --without-fp.
352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
362 | --oldin | --oldi | --old | --ol | --o)
363 ac_prev=oldincludedir ;;
364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
367 oldincludedir="$ac_optarg" ;;
369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
372 prefix="$ac_optarg" ;;
374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
375 | --program-pre | --program-pr | --program-p)
376 ac_prev=program_prefix ;;
377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
379 program_prefix="$ac_optarg" ;;
381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
382 | --program-suf | --program-su | --program-s)
383 ac_prev=program_suffix ;;
384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
386 program_suffix="$ac_optarg" ;;
388 -program-transform-name | --program-transform-name \
389 | --program-transform-nam | --program-transform-na \
390 | --program-transform-n | --program-transform- \
391 | --program-transform | --program-transfor \
392 | --program-transfo | --program-transf \
393 | --program-trans | --program-tran \
394 | --progr-tra | --program-tr | --program-t)
395 ac_prev=program_transform_name ;;
396 -program-transform-name=* | --program-transform-name=* \
397 | --program-transform-nam=* | --program-transform-na=* \
398 | --program-transform-n=* | --program-transform-=* \
399 | --program-transform=* | --program-transfor=* \
400 | --program-transfo=* | --program-transf=* \
401 | --program-trans=* | --program-tran=* \
402 | --progr-tra=* | --program-tr=* | --program-t=*)
403 program_transform_name="$ac_optarg" ;;
405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
406 | -silent | --silent | --silen | --sile | --sil)
409 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
411 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
413 sbindir="$ac_optarg" ;;
415 -sharedstatedir | --sharedstatedir | --sharedstatedi \
416 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
417 | --sharedst | --shareds | --shared | --share | --shar \
419 ac_prev=sharedstatedir ;;
420 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
421 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
422 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
424 sharedstatedir="$ac_optarg" ;;
426 -site | --site | --sit)
428 -site=* | --site=* | --sit=*)
431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
434 srcdir="$ac_optarg" ;;
436 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
437 | --syscon | --sysco | --sysc | --sys | --sy)
438 ac_prev=sysconfdir ;;
439 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
440 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
441 sysconfdir="$ac_optarg" ;;
443 -target | --target | --targe | --targ | --tar | --ta | --t)
445 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
446 target="$ac_optarg" ;;
448 -v | -verbose | --verbose | --verbos | --verbo | --verb)
451 -version | --version | --versio | --versi | --vers)
452 echo "configure generated by autoconf version 2.13.1"
456 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}='$ac_optarg'" ;;
468 -without-* | --without-*)
469 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}=no" ;;
478 # Obsolete; use --with-x.
481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
482 | --x-incl | --x-inc | --x-in | --x-i)
483 ac_prev=x_includes ;;
484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
486 x_includes="$ac_optarg" ;;
488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
490 ac_prev=x_libraries ;;
491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
493 x_libraries="$ac_optarg" ;;
495 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
499 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
500 echo "configure: warning: $ac_option: invalid host type" 1>&2
502 if test "x$nonopt" != xNONE; then
503 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
511 if test -n "$ac_prev"; then
512 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
517 # File descriptor usage:
520 # 2 errors and warnings
521 # 3 some systems may open it to /dev/tty
522 # 4 used on the Kubota Titan
523 # 6 checking for... messages and results
524 # 5 compiler messages saved in config.log
525 if test "$silent" = yes; then
533 This file contains any messages produced by compilers while
534 running configure, to aid debugging if configure makes a mistake.
537 # Strip out --no-create and --no-recursion so they do not pile up.
538 # Also quote any args containing shell metacharacters.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
544 | --no-cr | --no-c) ;;
545 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
546 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
547 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
548 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
549 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
554 # Only set these to C if already set. These must not be set unconditionally
555 # because not all systems understand e.g. LANG=C (notably SCO).
556 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
557 # Non-C LC_CTYPE values break the ctype check.
558 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
559 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
560 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
561 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
564 rm -rf conftest* confdefs.h
565 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
568 # A filename unique to this package, relative to the directory that
569 # configure is in, which we can look for to find out if srcdir is correct.
570 ac_unique_file=build/version
572 # Find the source files, if location was not specified.
573 if test -z "$srcdir"; then
574 ac_srcdir_defaulted=yes
575 # Try the directory containing this script, then its parent.
577 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
578 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
580 if test ! -r $srcdir/$ac_unique_file; then
584 ac_srcdir_defaulted=no
586 if test ! -r $srcdir/$ac_unique_file; then
587 if test "$ac_srcdir_defaulted" = yes; then
588 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
590 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
593 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
595 # Prefer explicitly selected file to automatically selected ones.
596 if test -z "$CONFIG_SITE"; then
597 if test "x$prefix" != xNONE; then
598 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
600 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
603 for ac_site_file in $CONFIG_SITE; do
604 if test -r "$ac_site_file"; then
605 echo "loading site script $ac_site_file"
612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
613 ac_cpp='$CPP $CPPFLAGS'
614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
616 cross_compiling=$ac_cv_prog_cc_cross
620 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
621 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
622 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
629 ac_n= ac_c='\c' ac_t=
633 # set unset (borrowed from autoconf 2.49c)
634 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
640 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
643 for ac_dir in build $srcdir/build; do
644 if test -f $ac_dir/install-sh; then
646 ac_install_sh="$ac_aux_dir/install-sh -c"
648 elif test -f $ac_dir/install.sh; then
650 ac_install_sh="$ac_aux_dir/install.sh -c"
652 elif test -f $ac_dir/shtool; then
654 ac_install_sh="$ac_aux_dir/shtool install -c"
658 if test -z "$ac_aux_dir"; then
659 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
661 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
662 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
663 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
665 OL_VERSION=`cat $ac_aux_dir/version`
666 if test -z "$OL_VERSION"; then
667 { echo "configure: error: could not determine version" 1>&2; exit 1; }
670 echo "Configuring OpenLDAP $OL_VERSION ..."
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
675 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
677 # Make sure we can run config.sub.
678 if $ac_config_sub sun4 >/dev/null 2>&1; then :
679 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
682 ac_cv_host_alias=$host
683 case "$ac_cv_host_alias" in
687 if ac_cv_host_alias=`$ac_config_guess`; then :
688 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
690 *) ac_cv_host_alias=$nonopt ;;
694 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
695 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
696 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
697 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo $ac_n "(cached) $ac_c" 1>&6
702 echo "$ac_t""$ac_cv_host" 1>&6
705 host_alias=$ac_cv_host_alias
706 host_cpu=$ac_cv_host_cpu
707 host_vendor=$ac_cv_host_vendor
708 host_os=$ac_cv_host_os
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
718 # Make sure we can run config.sub.
719 if $ac_config_sub sun4 >/dev/null 2>&1; then :
720 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
723 ac_cv_target_alias=$target
724 case "$ac_cv_target_alias" in
728 ac_cv_target_alias=$host_alias ;;
730 *) ac_cv_target_alias=$nonopt ;;
734 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
735 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739 echo $ac_n "(cached) $ac_c" 1>&6
742 echo "$ac_t""$ac_cv_target" 1>&6
745 target_alias=$ac_cv_target_alias
746 target_cpu=$ac_cv_target_cpu
747 target_vendor=$ac_cv_target_vendor
748 target_os=$ac_cv_target_os
754 echo $ac_n "checking build system type""... $ac_c" 1>&6
755 echo "configure:756: checking build system type" >&5
756 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
758 # Make sure we can run config.sub.
759 if $ac_config_sub sun4 >/dev/null 2>&1; then :
760 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
763 ac_cv_build_alias=$build
764 case "$ac_cv_build_alias" in
768 ac_cv_build_alias=$host_alias ;;
770 *) ac_cv_build_alias=$nonopt ;;
774 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
775 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
779 echo $ac_n "(cached) $ac_c" 1>&6
782 echo "$ac_t""$ac_cv_build" 1>&6
785 build_alias=$ac_cv_build_alias
786 build_cpu=$ac_cv_build_cpu
787 build_vendor=$ac_cv_build_vendor
788 build_os=$ac_cv_build_os
794 # Do some error checking and defaulting for the host and target type.
796 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
799 # 1. You are not allowed to specify --host, --target, and nonopt at the
801 # 2. Host defaults to nonopt.
802 # 3. If nonopt is not specified, then host defaults to the current host,
803 # as determined by config.guess.
804 # 4. Target and build default to nonopt.
805 # 5. If nonopt is not specified, then target and build default to host.
807 # The aliases save the names the user supplied, while $host etc.
808 # will get canonicalized.
809 case $host---$target---$nonopt in
810 NONE---*---* | *---NONE---* | *---*---NONE) ;;
811 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
814 test "$host_alias" != "$target_alias" &&
815 test "$program_prefix$program_suffix$program_transform_name" = \
817 program_prefix=${target_alias}-
820 # Find a good install program. We prefer a C program (faster),
821 # so one script is as good as another. But avoid the broken or
822 # incompatible versions:
823 # SysV /etc/install, /usr/sbin/install
824 # SunOS /usr/etc/install
827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
830 # ./install, which can be erroneously created by make from ./install.sh.
831 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
832 echo "configure:833: checking for a BSD compatible install" >&5
833 if test -z "$INSTALL"; then
834 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
838 for ac_dir in $PATH; do
839 # Account for people who put trailing slashes in PATH elements.
841 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
843 # OSF1 and SCO ODT 3.0 have their own names for install.
844 # Don't use installbsd from OSF since it installs stuff as root
846 for ac_prog in ginstall scoinst install; do
847 if test -f $ac_dir/$ac_prog; then
848 if test $ac_prog = install &&
849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
850 # AIX install. It has an incompatible calling convention.
852 elif test $ac_prog = install &&
853 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
854 # program-specific install script used by HP pwplus--don't use.
857 ac_cv_path_install="$ac_dir/$ac_prog -c"
868 if test "${ac_cv_path_install+set}" = set; then
869 INSTALL="$ac_cv_path_install"
871 # As a last resort, use the slow shell script. We don't cache a
872 # path for INSTALL within a source directory, because that will
873 # break other packages using the cache if that directory is
874 # removed, or if the path is relative.
875 INSTALL="$ac_install_sh"
878 echo "$ac_t""$INSTALL" 1>&6
880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
881 # It thinks the first close brace ends the variable substitution.
882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
888 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
889 echo "configure:890: checking whether build environment is sane" >&5
892 echo timestamp > conftestfile
893 # Do `set' in a subshell so we don't clobber the current shell's
894 # arguments. Must try -L first in case configure is actually a
895 # symlink; some systems play weird games with the mod time of symlinks
896 # (eg FreeBSD returns the mod time of the symlink's containing
899 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
900 if test "$*" = "X"; then
902 set X `ls -t $srcdir/configure conftestfile`
904 if test "$*" != "X $srcdir/configure conftestfile" \
905 && test "$*" != "X conftestfile $srcdir/configure"; then
907 # If neither matched, then we have a broken ls. This can happen
908 # if, for instance, CONFIG_SHELL is bash and it inherits a
909 # broken ls alias from the environment. This has actually
910 # happened. Such a system could not be considered "sane".
911 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
912 alias in your environment" 1>&2; exit 1; }
915 test "$2" = conftestfile
921 { echo "configure: error: newly created file is older than distributed files!
922 Check your system clock" 1>&2; exit 1; }
925 echo "$ac_t""yes" 1>&6
926 if test "$program_transform_name" = s,x,x,; then
927 program_transform_name=
929 # Double any \ or $. echo might interpret backslashes.
930 cat <<\EOF_SED > conftestsed
931 s,\\,\\\\,g; s,\$,$$,g
933 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
936 test "$program_prefix" != NONE &&
937 program_transform_name="s,^,${program_prefix},;$program_transform_name"
938 # Use a double $ so make ignores it.
939 test "$program_suffix" != NONE &&
940 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
942 # sed with no file args requires a program.
943 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
945 for ac_prog in mawk gawk nawk awk
947 # Extract the first word of "$ac_prog", so it can be a program name with args.
948 set dummy $ac_prog; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 if test -n "$AWK"; then
955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_prog_AWK="$ac_prog"
969 AWK="$ac_cv_prog_AWK"
970 if test -n "$AWK"; then
971 echo "$ac_t""$AWK" 1>&6
973 echo "$ac_t""no" 1>&6
976 test -n "$AWK" && break
979 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${MAKE-make} sets \${MAKE}" >&5
981 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
982 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftestmake <<\EOF
987 @echo 'ac_maketemp="${MAKE}"'
989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
990 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
991 if test -n "$ac_maketemp"; then
992 eval ac_cv_prog_make_${ac_make}_set=yes
994 eval ac_cv_prog_make_${ac_make}_set=no
998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1002 echo "$ac_t""no" 1>&6
1003 SET_MAKE="MAKE=${MAKE-make}"
1012 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1013 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1018 missing_dir=`cd $ac_aux_dir && pwd`
1019 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working aclocal" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 ACLOCAL="$missing_dir/missing aclocal"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working autoconf" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 AUTOCONF="$missing_dir/missing autoconf"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working automake" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (automake --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOMAKE="$missing_dir/missing automake"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoheader" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1064 AUTOHEADER=autoheader
1065 echo "$ac_t""found" 1>&6
1067 AUTOHEADER="$missing_dir/missing autoheader"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working makeinfo" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 MAKEINFO="$missing_dir/missing makeinfo"
1081 echo "$ac_t""missing" 1>&6
1084 install_sh="$missing_dir/install-sh"
1085 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1087 for ac_prog in gnutar gtar tar
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$AMTAR"; then
1097 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_AMTAR="$ac_prog"
1111 AMTAR="$ac_cv_prog_AMTAR"
1112 if test -n "$AMTAR"; then
1113 echo "$ac_t""$AMTAR" 1>&6
1115 echo "$ac_t""no" 1>&6
1118 test -n "$AMTAR" && break
1123 if test -n "$AMTAR"; then
1124 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1129 cat >> confdefs.h <<EOF
1130 #define OPENLDAP_PACKAGE "$PACKAGE"
1133 cat >> confdefs.h <<EOF
1134 #define OPENLDAP_VERSION "$VERSION"
1140 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1141 echo "configure:1142: checking configure arguments" >&5
1146 ldap_subdir="/openldap"
1148 # Check whether --with-subdir or --without-subdir was given.
1149 if test "${with_subdir+set}" = set; then
1150 withval="$with_subdir"
1157 ldap_subdir="$withval"
1160 ldap_subdir="/$withval"
1167 # OpenLDAP --enable-debug
1168 # Check whether --enable-debug or --disable-debug was given.
1169 if test "${enable_debug+set}" = set; then
1170 enableval="$enable_debug"
1173 for ol_val in auto yes no ; do
1174 if test "$enableval" = "$ol_val" ; then
1178 if test "$ol_arg" = "invalid" ; then
1179 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1181 ol_enable_debug="$ol_arg"
1184 ol_enable_debug="yes"
1186 # end --enable-debug
1187 # OpenLDAP --enable-syslog
1188 # Check whether --enable-syslog or --disable-syslog was given.
1189 if test "${enable_syslog+set}" = set; then
1190 enableval="$enable_syslog"
1193 for ol_val in auto yes no ; do
1194 if test "$enableval" = "$ol_val" ; then
1198 if test "$ol_arg" = "invalid" ; then
1199 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1201 ol_enable_syslog="$ol_arg"
1204 ol_enable_syslog="auto"
1206 # end --enable-syslog
1207 # OpenLDAP --enable-proctitle
1208 # Check whether --enable-proctitle or --disable-proctitle was given.
1209 if test "${enable_proctitle+set}" = set; then
1210 enableval="$enable_proctitle"
1213 for ol_val in auto yes no ; do
1214 if test "$enableval" = "$ol_val" ; then
1218 if test "$ol_arg" = "invalid" ; then
1219 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1221 ol_enable_proctitle="$ol_arg"
1224 ol_enable_proctitle="yes"
1226 # end --enable-proctitle
1227 # OpenLDAP --enable-cache
1228 # Check whether --enable-cache or --disable-cache was given.
1229 if test "${enable_cache+set}" = set; then
1230 enableval="$enable_cache"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1241 ol_enable_cache="$ol_arg"
1244 ol_enable_cache="no"
1246 # end --enable-cache
1247 # OpenLDAP --enable-referrals
1248 # Check whether --enable-referrals or --disable-referrals was given.
1249 if test "${enable_referrals+set}" = set; then
1250 enableval="$enable_referrals"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1261 ol_enable_referrals="$ol_arg"
1264 ol_enable_referrals="no"
1266 # end --enable-referrals
1267 # OpenLDAP --enable-kbind
1268 # Check whether --enable-kbind or --disable-kbind was given.
1269 if test "${enable_kbind+set}" = set; then
1270 enableval="$enable_kbind"
1273 for ol_val in auto yes no ; do
1274 if test "$enableval" = "$ol_val" ; then
1278 if test "$ol_arg" = "invalid" ; then
1279 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1281 ol_enable_kbind="$ol_arg"
1284 ol_enable_kbind="no"
1286 # end --enable-kbind
1287 # OpenLDAP --enable-ipv6
1288 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1289 if test "${enable_ipv6+set}" = set; then
1290 enableval="$enable_ipv6"
1293 for ol_val in auto yes no ; do
1294 if test "$enableval" = "$ol_val" ; then
1298 if test "$ol_arg" = "invalid" ; then
1299 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1301 ol_enable_ipv6="$ol_arg"
1304 ol_enable_ipv6="auto"
1307 # OpenLDAP --enable-local
1308 # Check whether --enable-local or --disable-local was given.
1309 if test "${enable_local+set}" = set; then
1310 enableval="$enable_local"
1313 for ol_val in auto yes no ; do
1314 if test "$enableval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1321 ol_enable_local="$ol_arg"
1324 ol_enable_local="auto"
1326 # end --enable-local
1327 # OpenLDAP --enable-x_compile
1328 # Check whether --enable-x_compile or --disable-x_compile was given.
1329 if test "${enable_x_compile+set}" = set; then
1330 enableval="$enable_x_compile"
1333 for ol_val in yes no ; do
1334 if test "$enableval" = "$ol_val" ; then
1338 if test "$ol_arg" = "invalid" ; then
1339 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1341 ol_enable_x_compile="$ol_arg"
1344 ol_enable_x_compile="no"
1346 # end --enable-x_compile
1349 # OpenLDAP --with-cyrus_sasl
1350 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1351 if test "${with_cyrus_sasl+set}" = set; then
1352 withval="$with_cyrus_sasl"
1355 for ol_val in auto yes no ; do
1356 if test "$withval" = "$ol_val" ; then
1360 if test "$ol_arg" = "invalid" ; then
1361 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1363 ol_with_cyrus_sasl="$ol_arg"
1366 ol_with_cyrus_sasl="auto"
1368 # end --with-cyrus_sasl
1370 # OpenLDAP --with-fetch
1371 # Check whether --with-fetch or --without-fetch was given.
1372 if test "${with_fetch+set}" = set; then
1373 withval="$with_fetch"
1376 for ol_val in auto yes no ; do
1377 if test "$withval" = "$ol_val" ; then
1381 if test "$ol_arg" = "invalid" ; then
1382 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1384 ol_with_fetch="$ol_arg"
1387 ol_with_fetch="auto"
1391 # OpenLDAP --with-kerberos
1392 # Check whether --with-kerberos or --without-kerberos was given.
1393 if test "${with_kerberos+set}" = set; then
1394 withval="$with_kerberos"
1397 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1398 if test "$withval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1405 ol_with_kerberos="$ol_arg"
1408 ol_with_kerberos="auto"
1410 # end --with-kerberos
1412 # OpenLDAP --with-readline
1413 # Check whether --with-readline or --without-readline was given.
1414 if test "${with_readline+set}" = set; then
1415 withval="$with_readline"
1418 for ol_val in auto yes no ; do
1419 if test "$withval" = "$ol_val" ; then
1423 if test "$ol_arg" = "invalid" ; then
1424 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1426 ol_with_readline="$ol_arg"
1429 ol_with_readline="auto"
1431 # end --with-readline
1433 # OpenLDAP --with-threads
1434 # Check whether --with-threads or --without-threads was given.
1435 if test "${with_threads+set}" = set; then
1436 withval="$with_threads"
1439 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1440 if test "$withval" = "$ol_val" ; then
1444 if test "$ol_arg" = "invalid" ; then
1445 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1447 ol_with_threads="$ol_arg"
1450 ol_with_threads="auto"
1452 # end --with-threads
1454 # OpenLDAP --with-tls
1455 # Check whether --with-tls or --without-tls was given.
1456 if test "${with_tls+set}" = set; then
1460 for ol_val in auto ssleay openssl yes no ; do
1461 if test "$withval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1468 ol_with_tls="$ol_arg"
1475 # OpenLDAP --with-yielding_select
1476 # Check whether --with-yielding_select or --without-yielding_select was given.
1477 if test "${with_yielding_select+set}" = set; then
1478 withval="$with_yielding_select"
1481 for ol_val in auto yes no manual ; do
1482 if test "$withval" = "$ol_val" ; then
1486 if test "$ol_arg" = "invalid" ; then
1487 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1489 ol_with_yielding_select="$ol_arg"
1492 ol_with_yielding_select="auto"
1494 # end --with-yielding_select
1498 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1499 if test "${with_xxslapdoptions+set}" = set; then
1500 withval="$with_xxslapdoptions"
1504 # OpenLDAP --enable-slapd
1505 # Check whether --enable-slapd or --disable-slapd was given.
1506 if test "${enable_slapd+set}" = set; then
1507 enableval="$enable_slapd"
1510 for ol_val in auto yes no ; do
1511 if test "$enableval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1518 ol_enable_slapd="$ol_arg"
1521 ol_enable_slapd="yes"
1523 # end --enable-slapd
1524 # OpenLDAP --enable-cleartext
1525 # Check whether --enable-cleartext or --disable-cleartext was given.
1526 if test "${enable_cleartext+set}" = set; then
1527 enableval="$enable_cleartext"
1530 for ol_val in auto yes no ; do
1531 if test "$enableval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1538 ol_enable_cleartext="$ol_arg"
1541 ol_enable_cleartext="yes"
1543 # end --enable-cleartext
1544 # OpenLDAP --enable-crypt
1545 # Check whether --enable-crypt or --disable-crypt was given.
1546 if test "${enable_crypt+set}" = set; then
1547 enableval="$enable_crypt"
1550 for ol_val in auto yes no ; do
1551 if test "$enableval" = "$ol_val" ; then
1555 if test "$ol_arg" = "invalid" ; then
1556 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1558 ol_enable_crypt="$ol_arg"
1561 ol_enable_crypt="auto"
1563 # end --enable-crypt
1564 # OpenLDAP --enable-kpasswd
1565 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1566 if test "${enable_kpasswd+set}" = set; then
1567 enableval="$enable_kpasswd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1578 ol_enable_kpasswd="$ol_arg"
1581 ol_enable_kpasswd="no"
1583 # end --enable-kpasswd
1584 # OpenLDAP --enable-spasswd
1585 # Check whether --enable-spasswd or --disable-spasswd was given.
1586 if test "${enable_spasswd+set}" = set; then
1587 enableval="$enable_spasswd"
1590 for ol_val in auto yes no ; do
1591 if test "$enableval" = "$ol_val" ; then
1595 if test "$ol_arg" = "invalid" ; then
1596 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1598 ol_enable_spasswd="$ol_arg"
1601 ol_enable_spasswd="no"
1603 # end --enable-spasswd
1604 # OpenLDAP --enable-modules
1605 # Check whether --enable-modules or --disable-modules was given.
1606 if test "${enable_modules+set}" = set; then
1607 enableval="$enable_modules"
1610 for ol_val in auto yes no ; do
1611 if test "$enableval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1618 ol_enable_modules="$ol_arg"
1621 ol_enable_modules="no"
1623 # end --enable-modules
1624 # OpenLDAP --enable-phonetic
1625 # Check whether --enable-phonetic or --disable-phonetic was given.
1626 if test "${enable_phonetic+set}" = set; then
1627 enableval="$enable_phonetic"
1630 for ol_val in auto yes no ; do
1631 if test "$enableval" = "$ol_val" ; then
1635 if test "$ol_arg" = "invalid" ; then
1636 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1638 ol_enable_phonetic="$ol_arg"
1641 ol_enable_phonetic="no"
1643 # end --enable-phonetic
1644 # OpenLDAP --enable-rlookups
1645 # Check whether --enable-rlookups or --disable-rlookups was given.
1646 if test "${enable_rlookups+set}" = set; then
1647 enableval="$enable_rlookups"
1650 for ol_val in auto yes no ; do
1651 if test "$enableval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1658 ol_enable_rlookups="$ol_arg"
1661 ol_enable_rlookups="no"
1663 # end --enable-rlookups
1664 # OpenLDAP --enable-aci
1665 # Check whether --enable-aci or --disable-aci was given.
1666 if test "${enable_aci+set}" = set; then
1667 enableval="$enable_aci"
1670 for ol_val in auto yes no ; do
1671 if test "$enableval" = "$ol_val" ; then
1675 if test "$ol_arg" = "invalid" ; then
1676 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1678 ol_enable_aci="$ol_arg"
1684 # OpenLDAP --enable-wrappers
1685 # Check whether --enable-wrappers or --disable-wrappers was given.
1686 if test "${enable_wrappers+set}" = set; then
1687 enableval="$enable_wrappers"
1690 for ol_val in auto yes no ; do
1691 if test "$enableval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1698 ol_enable_wrappers="$ol_arg"
1701 ol_enable_wrappers="no"
1703 # end --enable-wrappers
1704 # OpenLDAP --enable-dynamic
1705 # Check whether --enable-dynamic or --disable-dynamic was given.
1706 if test "${enable_dynamic+set}" = set; then
1707 enableval="$enable_dynamic"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1718 ol_enable_dynamic="$ol_arg"
1721 ol_enable_dynamic="no"
1723 # end --enable-dynamic
1725 # OpenLDAP --enable-dnssrv
1726 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1727 if test "${enable_dnssrv+set}" = set; then
1728 enableval="$enable_dnssrv"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1739 ol_enable_dnssrv="$ol_arg"
1742 ol_enable_dnssrv="no"
1744 # end --enable-dnssrv
1745 # OpenLDAP --with-dnssrv_module
1746 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1747 if test "${with_dnssrv_module+set}" = set; then
1748 withval="$with_dnssrv_module"
1751 for ol_val in static dynamic ; do
1752 if test "$withval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1759 ol_with_dnssrv_module="$ol_arg"
1762 ol_with_dnssrv_module="static"
1764 # end --with-dnssrv_module
1766 # OpenLDAP --enable-ldap
1767 # Check whether --enable-ldap or --disable-ldap was given.
1768 if test "${enable_ldap+set}" = set; then
1769 enableval="$enable_ldap"
1772 for ol_val in auto yes no ; do
1773 if test "$enableval" = "$ol_val" ; then
1777 if test "$ol_arg" = "invalid" ; then
1778 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1780 ol_enable_ldap="$ol_arg"
1786 # OpenLDAP --with-ldap_module
1787 # Check whether --with-ldap_module or --without-ldap_module was given.
1788 if test "${with_ldap_module+set}" = set; then
1789 withval="$with_ldap_module"
1792 for ol_val in static dynamic ; do
1793 if test "$withval" = "$ol_val" ; then
1797 if test "$ol_arg" = "invalid" ; then
1798 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1800 ol_with_ldap_module="$ol_arg"
1803 ol_with_ldap_module="static"
1805 # end --with-ldap_module
1807 # OpenLDAP --enable-ldbm
1808 # Check whether --enable-ldbm or --disable-ldbm was given.
1809 if test "${enable_ldbm+set}" = set; then
1810 enableval="$enable_ldbm"
1813 for ol_val in auto yes no ; do
1814 if test "$enableval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1821 ol_enable_ldbm="$ol_arg"
1824 ol_enable_ldbm="yes"
1827 # OpenLDAP --with-ldbm_api
1828 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1829 if test "${with_ldbm_api+set}" = set; then
1830 withval="$with_ldbm_api"
1833 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1834 if test "$withval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1841 ol_with_ldbm_api="$ol_arg"
1844 ol_with_ldbm_api="auto"
1846 # end --with-ldbm_api
1848 # OpenLDAP --with-ldbm_module
1849 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1850 if test "${with_ldbm_module+set}" = set; then
1851 withval="$with_ldbm_module"
1854 for ol_val in static dynamic ; do
1855 if test "$withval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1862 ol_with_ldbm_module="$ol_arg"
1865 ol_with_ldbm_module="static"
1867 # end --with-ldbm_module
1869 # OpenLDAP --with-ldbm_type
1870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1871 if test "${with_ldbm_type+set}" = set; then
1872 withval="$with_ldbm_type"
1875 for ol_val in auto btree hash ; do
1876 if test "$withval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1883 ol_with_ldbm_type="$ol_arg"
1886 ol_with_ldbm_type="auto"
1888 # end --with-ldbm_type
1890 # OpenLDAP --enable-passwd
1891 # Check whether --enable-passwd or --disable-passwd was given.
1892 if test "${enable_passwd+set}" = set; then
1893 enableval="$enable_passwd"
1896 for ol_val in auto yes no ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1904 ol_enable_passwd="$ol_arg"
1907 ol_enable_passwd="no"
1909 # end --enable-passwd
1910 # OpenLDAP --with-passwd_module
1911 # Check whether --with-passwd_module or --without-passwd_module was given.
1912 if test "${with_passwd_module+set}" = set; then
1913 withval="$with_passwd_module"
1916 for ol_val in static dynamic ; do
1917 if test "$withval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1924 ol_with_passwd_module="$ol_arg"
1927 ol_with_passwd_module="static"
1929 # end --with-passwd_module
1931 # OpenLDAP --enable-shell
1932 # Check whether --enable-shell or --disable-shell was given.
1933 if test "${enable_shell+set}" = set; then
1934 enableval="$enable_shell"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1945 ol_enable_shell="$ol_arg"
1948 ol_enable_shell="no"
1950 # end --enable-shell
1951 # OpenLDAP --with-shell_module
1952 # Check whether --with-shell_module or --without-shell_module was given.
1953 if test "${with_shell_module+set}" = set; then
1954 withval="$with_shell_module"
1957 for ol_val in static dynamic ; do
1958 if test "$withval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1965 ol_with_shell_module="$ol_arg"
1968 ol_with_shell_module="static"
1970 # end --with-shell_module
1972 # OpenLDAP --enable-sql
1973 # Check whether --enable-sql or --disable-sql was given.
1974 if test "${enable_sql+set}" = set; then
1975 enableval="$enable_sql"
1978 for ol_val in auto yes no ; do
1979 if test "$enableval" = "$ol_val" ; then
1983 if test "$ol_arg" = "invalid" ; then
1984 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
1986 ol_enable_sql="$ol_arg"
1992 # OpenLDAP --with-sql_module
1993 # Check whether --with-sql_module or --without-sql_module was given.
1994 if test "${with_sql_module+set}" = set; then
1995 withval="$with_sql_module"
1998 for ol_val in static dynamic ; do
1999 if test "$withval" = "$ol_val" ; then
2003 if test "$ol_arg" = "invalid" ; then
2004 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2006 ol_with_sql_module="$ol_arg"
2009 ol_with_sql_module="static"
2011 # end --with-sql_module
2014 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2015 if test "${with_xxslurpdoptions+set}" = set; then
2016 withval="$with_xxslurpdoptions"
2020 # OpenLDAP --enable-slurpd
2021 # Check whether --enable-slurpd or --disable-slurpd was given.
2022 if test "${enable_slurpd+set}" = set; then
2023 enableval="$enable_slurpd"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2034 ol_enable_slurpd="$ol_arg"
2037 ol_enable_slurpd="auto"
2039 # end --enable-slurpd
2041 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2042 if test "${with_xxliboptions+set}" = set; then
2043 withval="$with_xxliboptions"
2047 # Check whether --enable-static or --disable-static was given.
2048 if test "${enable_static+set}" = set; then
2049 enableval="$enable_static"
2050 p=${PACKAGE-default}
2051 case "$enableval" in
2052 yes) enable_static=yes ;;
2053 no) enable_static=no ;;
2056 # Look at the argument we got. We use all the common list separators.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2058 for pkg in $enableval; do
2059 if test "X$pkg" = "X$p"; then
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072 enableval="$enable_shared"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_shared=yes ;;
2076 no) enable_shared=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2096 if test $ol_enable_slapd = no ; then
2097 if test $ol_enable_dnssrv = yes ; then
2098 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2100 if test $ol_enable_ldap = yes ; then
2101 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2103 if test $ol_enable_ldbm = yes ; then
2104 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2106 if test $ol_enable_passwd = yes ; then
2107 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2109 if test $ol_enable_shell = yes ; then
2110 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2112 if test $ol_enable_sql = yes ; then
2113 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2115 if test $ol_enable_modules = yes ; then
2116 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2118 if test $ol_enable_wrappers = yes ; then
2119 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2121 if test $ol_enable_phonetic = yes ; then
2122 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2124 if test $ol_enable_rlookups = yes ; then
2125 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2127 if test $ol_enable_aci = yes ; then
2128 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2130 if test $ol_with_ldbm_api != auto ; then
2131 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2133 if test $ol_with_ldbm_type != auto ; then
2134 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2136 if test $ol_with_dnssrv_module != static ; then
2137 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2139 if test $ol_with_ldap_module != static ; then
2140 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2142 if test $ol_with_ldbm_module != static ; then
2143 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2145 if test $ol_with_passwd_module != static ; then
2146 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2148 if test $ol_with_shell_module != static ; then
2149 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2151 if test $ol_with_sql_module != static ; then
2152 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2154 if test $ol_enable_slurpd = yes ; then
2155 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2158 # force settings to no
2166 ol_enable_modules=no
2167 ol_enable_phonetic=no
2168 ol_enable_rlookups=no
2170 ol_enable_wrappers=no
2171 ol_enable_dynamic=no
2174 ol_with_ldbm_type=no
2176 ol_with_dnssrv_module=static
2177 ol_with_ldap_module=static
2178 ol_with_ldbm_module=static
2179 ol_with_passwd_module=static
2180 ol_with_shell_module=static
2181 ol_with_sql_module=static
2185 elif test $ol_enable_ldbm = no ; then
2187 if test $ol_with_ldbm_api != auto ; then
2188 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2191 if test $ol_with_ldbm_type != auto ; then
2192 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2195 if test $ol_with_ldbm_module != static ; then
2196 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2199 if test $ol_enable_modules != yes -a \
2200 $ol_enable_dnssrv = no -a \
2201 $ol_enable_ldap = no -a \
2202 $ol_enable_passwd = no -a \
2203 $ol_enable_shell = no -a \
2204 $ol_enable_sql = no ; then
2205 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2209 ol_with_ldbm_type=no
2210 ol_with_ldbm_module=static
2213 if test $ol_with_ldbm_api = gdbm -a \
2214 $ol_with_ldbm_type = btree ; then
2215 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2217 if test $ol_with_ldbm_api = mdbm -a \
2218 $ol_with_ldbm_type = btree ; then
2219 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2221 if test $ol_with_ldbm_api = ndbm -a \
2222 $ol_with_ldbm_type = btree ; then
2223 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2227 if test $ol_enable_slurpd = yes ; then
2228 if test $ol_with_threads = no ; then
2229 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2233 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2234 if test $ol_with_kerberos = no ; then
2235 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2237 ol_with_kerberos=yes
2238 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2239 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2240 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2245 if test $ol_enable_spasswd = yes ; then
2246 if test $ol_with_cyrus_sasl = no ; then
2247 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2249 ol_with_cyrus_sasl=yes
2252 echo "$ac_t""done" 1>&6
2275 BUILD_DNSSRV_DYNAMIC=static
2276 BUILD_LDAP_DYNAMIC=static
2277 BUILD_LDBM_DYNAMIC=static
2278 BUILD_PASSWD_DYNAMIC=static
2279 BUILD_SHELL_DYNAMIC=static
2280 BUILD_SQL_DYNAMIC=static
2282 SLAPD_MODULES_LDFLAGS=
2283 SLAPD_MODULES_CPPFLAGS=
2301 cat >> confdefs.h <<\EOF
2302 #define HAVE_MKVERSION 1
2310 *-*-aix*) if test -z "$CC" ; then
2311 case "$ol_with_threads" in
2312 auto | yes | posix) ol_aix_threads=yes ;;
2318 if test $ol_aix_threads = yes ; then
2319 if test -z "${CC}" ; then
2320 for ac_prog in cc_r xlc_r cc
2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
2323 set dummy $ac_prog; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2334 for ac_dir in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2337 ac_cv_prog_CC="$ac_prog"
2345 if test -n "$CC"; then
2346 echo "$ac_t""$CC" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 test -n "$CC" && break
2355 if test "$CC" = cc ; then
2356 if test $ol_with_threads != auto ; then
2357 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2359 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2365 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2366 ol_with_threads=posix
2367 ol_cv_pthread_create=yes
2371 if test -z "${CC}"; then
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_word" >&5
2378 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2386 for ac_dir in $ac_dummy; do
2387 test -z "$ac_dir" && ac_dir=.
2388 if test -f $ac_dir/$ac_word; then
2389 ac_cv_prog_CC="$ac_prog"
2397 if test -n "$CC"; then
2398 echo "$ac_t""$CC" 1>&6
2400 echo "$ac_t""no" 1>&6
2403 test -n "$CC" && break
2411 # Check whether --enable-fast-install or --disable-fast-install was given.
2412 if test "${enable_fast_install+set}" = set; then
2413 enableval="$enable_fast_install"
2414 p=${PACKAGE-default}
2415 case "$enableval" in
2416 yes) enable_fast_install=yes ;;
2417 no) enable_fast_install=no ;;
2419 enable_fast_install=no
2420 # Look at the argument we got. We use all the common list separators.
2421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2422 for pkg in $enableval; do
2423 if test "X$pkg" = "X$p"; then
2424 enable_fast_install=yes
2431 enable_fast_install=yes
2434 # Extract the first word of "ranlib", so it can be a program name with args.
2435 set dummy ranlib; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 if test -n "$RANLIB"; then
2442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_prog_RANLIB="ranlib"
2454 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2457 RANLIB="$ac_cv_prog_RANLIB"
2458 if test -n "$RANLIB"; then
2459 echo "$ac_t""$RANLIB" 1>&6
2461 echo "$ac_t""no" 1>&6
2464 # Extract the first word of "gcc", so it can be a program name with args.
2465 set dummy gcc; ac_word=$2
2466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_word" >&5
2468 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2476 for ac_dir in $ac_dummy; do
2477 test -z "$ac_dir" && ac_dir=.
2478 if test -f $ac_dir/$ac_word; then
2487 if test -n "$CC"; then
2488 echo "$ac_t""$CC" 1>&6
2490 echo "$ac_t""no" 1>&6
2493 if test -z "$CC"; then
2494 # Extract the first word of "cc", so it can be a program name with args.
2495 set dummy cc; ac_word=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_word" >&5
2498 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2507 for ac_dir in $ac_dummy; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f $ac_dir/$ac_word; then
2510 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2511 ac_prog_rejected=yes
2519 if test $ac_prog_rejected = yes; then
2520 # We found a bogon in the path, so make sure we never use it.
2521 set dummy $ac_cv_prog_CC
2523 if test $# -gt 0; then
2524 # We chose a different compiler from the bogus one.
2525 # However, it has the same basename, so the bogon will be chosen
2526 # first if we set CC to just the basename; use the full file name.
2528 set dummy "$ac_dir/$ac_word" "$@"
2536 if test -n "$CC"; then
2537 echo "$ac_t""$CC" 1>&6
2539 echo "$ac_t""no" 1>&6
2542 if test -z "$CC"; then
2543 case "`uname -s`" in
2544 *win32* | *WIN32* | *CYGWIN*)
2545 # Extract the first word of "cl", so it can be a program name with args.
2546 set dummy cl; ac_word=$2
2547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_word" >&5
2549 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2557 for ac_dir in $ac_dummy; do
2558 test -z "$ac_dir" && ac_dir=.
2559 if test -f $ac_dir/$ac_word; then
2568 if test -n "$CC"; then
2569 echo "$ac_t""$CC" 1>&6
2571 echo "$ac_t""no" 1>&6
2576 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2580 echo "configure:2581: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2587 cross_compiling=$ac_cv_prog_cc_cross
2589 cat > conftest.$ac_ext << EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 ac_cv_prog_cc_works=yes
2598 # If we can't run a trivial program, we are probably using a cross compiler.
2599 if (./conftest; exit) 2>/dev/null; then
2600 ac_cv_prog_cc_cross=no
2602 ac_cv_prog_cc_cross=yes
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 ac_cv_prog_cc_works=no
2611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2615 cross_compiling=$ac_cv_prog_cc_cross
2617 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2618 if test $ac_cv_prog_cc_works = no; then
2619 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2621 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2622 echo "configure:2623: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2623 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2624 cross_compiling=$ac_cv_prog_cc_cross
2626 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2627 echo "configure:2628: checking whether we are using GNU C" >&5
2628 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.c <<EOF
2636 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2643 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2645 if test $ac_cv_prog_gcc = yes; then
2651 ac_test_CFLAGS="${CFLAGS+set}"
2652 ac_save_CFLAGS="$CFLAGS"
2654 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2655 echo "configure:2656: checking whether ${CC-cc} accepts -g" >&5
2656 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 echo 'void f(){}' > conftest.c
2660 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2669 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS="$ac_save_CFLAGS"
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2679 if test "$GCC" = yes; then
2686 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2687 if test "${with_gnu_ld+set}" = set; then
2688 withval="$with_gnu_ld"
2689 test "$withval" = no || with_gnu_ld=yes
2695 if test "$ac_cv_prog_gcc" = yes; then
2696 # Check if gcc -print-prog-name=ld gives a path.
2697 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2698 echo "configure:2699: checking for ld used by GCC" >&5
2699 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2701 # Accept absolute paths.
2702 [\\/]* | [A-Za-z]:[\\/]*)
2703 re_direlt='/[^/][^/]*/\.\./'
2704 # Canonicalize the path of ld
2705 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2706 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2707 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2709 test -z "$LD" && LD="$ac_prog"
2712 # If it fails, then pretend we aren't using GCC.
2716 # If it is relative, then search for the first ld in PATH.
2720 elif test "$with_gnu_ld" = yes; then
2721 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2722 echo "configure:2723: checking for GNU ld" >&5
2724 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2725 echo "configure:2726: checking for non-GNU ld" >&5
2727 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -z "$LD"; then
2731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2732 for ac_dir in $PATH; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2735 ac_cv_path_LD="$ac_dir/$ac_prog"
2736 # Check to see if the program is GNU ld. I'd rather use --version,
2737 # but apparently some GNU ld's only accept -v.
2738 # Break only if it was the GNU/non-GNU ld that we prefer.
2739 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2740 test "$with_gnu_ld" != no && break
2742 test "$with_gnu_ld" != yes && break
2748 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2753 if test -n "$LD"; then
2754 echo "$ac_t""$LD" 1>&6
2756 echo "$ac_t""no" 1>&6
2758 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2759 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2760 echo "configure:2761: checking if the linker ($LD) is GNU ld" >&5
2761 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2765 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2766 ac_cv_prog_gnu_ld=yes
2768 ac_cv_prog_gnu_ld=no
2772 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2775 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2776 echo "configure:2777: checking for BSD-compatible nm" >&5
2777 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 if test -n "$NM"; then
2781 # Let the user override the test.
2784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2785 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2786 test -z "$ac_dir" && ac_dir=.
2787 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2788 # Check to see if the nm accepts a BSD-compat flag.
2789 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2790 # nm: unknown option "B" ignored
2791 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2792 ac_cv_path_NM="$ac_dir/nm -B"
2794 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2795 ac_cv_path_NM="$ac_dir/nm -p"
2798 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2799 continue # so that we can try to find one that supports BSD flags
2804 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2809 echo "$ac_t""$NM" 1>&6
2811 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2812 echo "configure:2813: checking whether ln -s works" >&5
2813 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2817 if ln -s X conftestdata 2>/dev/null
2820 ac_cv_prog_LN_S="ln -s"
2825 LN_S="$ac_cv_prog_LN_S"
2826 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2827 echo "$ac_t""yes" 1>&6
2829 echo "$ac_t""no" 1>&6
2832 if test $host != $build; then
2833 ac_tool_prefix=${host_alias}-
2840 NONE) lt_target="$host" ;;
2841 *) lt_target="$target" ;;
2844 # Check for any special flags to pass to ltconfig.
2845 libtool_flags="--cache-file=$cache_file"
2846 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2847 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2848 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2849 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2850 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2851 libtool_flags="$libtool_flags --enable-dlopen"
2852 libtool_flags="$libtool_flags --enable-win32-dll"
2853 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2854 if test "${enable_libtool_lock+set}" = set; then
2855 enableval="$enable_libtool_lock"
2859 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2860 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2862 # Some flags need to be propagated to the compiler or linker for good
2864 case "$lt_target" in
2866 # Find out which ABI we are using.
2867 echo '#line 2868 "configure"' > conftest.$ac_ext
2868 if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 case "`/usr/bin/file conftest.o`" in
2885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2886 SAVE_CFLAGS="$CFLAGS"
2887 CFLAGS="$CFLAGS -belf"
2888 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2889 echo "configure:2890: checking whether the C compiler needs -belf" >&5
2890 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2903 lt_cv_cc_needs_belf=yes
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 lt_cv_cc_needs_belf=no
2913 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2916 CFLAGS="$SAVE_CFLAGS"
2920 *-*-cygwin* | *-*-mingw*)
2921 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2924 echo "configure:2925: checking for $ac_word" >&5
2925 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 if test -n "$DLLTOOL"; then
2929 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2933 for ac_dir in $ac_dummy; do
2934 test -z "$ac_dir" && ac_dir=.
2935 if test -f $ac_dir/$ac_word; then
2936 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2943 DLLTOOL="$ac_cv_prog_DLLTOOL"
2944 if test -n "$DLLTOOL"; then
2945 echo "$ac_t""$DLLTOOL" 1>&6
2947 echo "$ac_t""no" 1>&6
2951 if test -z "$ac_cv_prog_DLLTOOL"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "dlltool", so it can be a program name with args.
2954 set dummy dlltool; ac_word=$2
2955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_word" >&5
2957 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test -n "$DLLTOOL"; then
2961 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2965 for ac_dir in $ac_dummy; do
2966 test -z "$ac_dir" && ac_dir=.
2967 if test -f $ac_dir/$ac_word; then
2968 ac_cv_prog_DLLTOOL="dlltool"
2973 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2976 DLLTOOL="$ac_cv_prog_DLLTOOL"
2977 if test -n "$DLLTOOL"; then
2978 echo "$ac_t""$DLLTOOL" 1>&6
2980 echo "$ac_t""no" 1>&6
2988 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}as; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 if test -n "$AS"; then
2996 ac_cv_prog_AS="$AS" # Let the user override the test.
2998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3000 for ac_dir in $ac_dummy; do
3001 test -z "$ac_dir" && ac_dir=.
3002 if test -f $ac_dir/$ac_word; then
3003 ac_cv_prog_AS="${ac_tool_prefix}as"
3011 if test -n "$AS"; then
3012 echo "$ac_t""$AS" 1>&6
3014 echo "$ac_t""no" 1>&6
3018 if test -z "$ac_cv_prog_AS"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "as", so it can be a program name with args.
3021 set dummy as; ac_word=$2
3022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_word" >&5
3024 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 if test -n "$AS"; then
3028 ac_cv_prog_AS="$AS" # Let the user override the test.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if test -f $ac_dir/$ac_word; then
3040 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3044 if test -n "$AS"; then
3045 echo "$ac_t""$AS" 1>&6
3047 echo "$ac_t""no" 1>&6
3055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_word" >&5
3059 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 if test -n "$OBJDUMP"; then
3063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3067 for ac_dir in $ac_dummy; do
3068 test -z "$ac_dir" && ac_dir=.
3069 if test -f $ac_dir/$ac_word; then
3070 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3077 OBJDUMP="$ac_cv_prog_OBJDUMP"
3078 if test -n "$OBJDUMP"; then
3079 echo "$ac_t""$OBJDUMP" 1>&6
3081 echo "$ac_t""no" 1>&6
3085 if test -z "$ac_cv_prog_OBJDUMP"; then
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "objdump", so it can be a program name with args.
3088 set dummy objdump; ac_word=$2
3089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3090 echo "configure:3091: checking for $ac_word" >&5
3091 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 if test -n "$OBJDUMP"; then
3095 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3099 for ac_dir in $ac_dummy; do
3100 test -z "$ac_dir" && ac_dir=.
3101 if test -f $ac_dir/$ac_word; then
3102 ac_cv_prog_OBJDUMP="objdump"
3107 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3110 OBJDUMP="$ac_cv_prog_OBJDUMP"
3111 if test -n "$OBJDUMP"; then
3112 echo "$ac_t""$OBJDUMP" 1>&6
3114 echo "$ac_t""no" 1>&6
3127 # Save cache, so that ltconfig can load it
3130 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3131 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3132 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3133 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3134 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3135 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3136 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3137 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3139 # Reload cache, that may have been modified by ltconfig
3142 # This can be used to rebuild libtool when needed
3143 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3145 # Always use our own libtool.
3146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3148 # Redirect the config.log output again, so that the ltconfig log is not
3149 # clobbered by the next message.
3150 exec 5>>./config.log
3153 for ac_prog in mawk gawk nawk awk
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_word" >&5
3159 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 if test -n "$AWK"; then
3163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3167 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 ac_cv_prog_AWK="$ac_prog"
3177 AWK="$ac_cv_prog_AWK"
3178 if test -n "$AWK"; then
3179 echo "$ac_t""$AWK" 1>&6
3181 echo "$ac_t""no" 1>&6
3184 test -n "$AWK" && break
3187 # test for ln hardlink support
3188 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3189 echo "configure:3190: checking whether ln works" >&5
3190 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 rm -f conftest.src conftest.dst
3194 echo "conftest" > conftest.src
3195 if ln conftest.src conftest.dst 2>/dev/null
3197 ol_cv_prog_LN_H="ln"
3199 ol_cv_prog_LN_H="cp"
3201 rm -f conftest.src conftest.dst
3204 LN_H="$ol_cv_prog_LN_H"
3205 if test "$ol_cv_prog_LN_H" = "ln"; then
3206 echo "$ac_t""yes" 1>&6
3208 echo "$ac_t""no" 1>&6
3211 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3212 echo "configure:3213: checking whether ln -s works" >&5
3213 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3217 if ln -s X conftestdata 2>/dev/null
3220 ac_cv_prog_LN_S="ln -s"
3225 LN_S="$ac_cv_prog_LN_S"
3226 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3227 echo "$ac_t""yes" 1>&6
3229 echo "$ac_t""no" 1>&6
3233 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3237 # Extract the first word of "sendmail", so it can be a program name with args.
3238 set dummy sendmail; ac_word=$2
3239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3240 echo "configure:3241: checking for $ac_word" >&5
3241 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3246 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3249 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3253 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3254 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 if test -f $ac_dir/$ac_word; then
3257 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3262 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3266 SENDMAIL="$ac_cv_path_SENDMAIL"
3267 if test -n "$SENDMAIL"; then
3268 echo "$ac_t""$SENDMAIL" 1>&6
3270 echo "$ac_t""no" 1>&6
3273 # Extract the first word of "vi", so it can be a program name with args.
3274 set dummy vi; ac_word=$2
3275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3276 echo "configure:3277: checking for $ac_word" >&5
3277 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3282 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3285 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3289 ac_dummy="$PATH:/usr/ucb"
3290 for ac_dir in $ac_dummy; do
3291 test -z "$ac_dir" && ac_dir=.
3292 if test -f $ac_dir/$ac_word; then
3293 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3298 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3302 EDITOR="$ac_cv_path_EDITOR"
3303 if test -n "$EDITOR"; then
3304 echo "$ac_t""$EDITOR" 1>&6
3306 echo "$ac_t""no" 1>&6
3309 # Extract the first word of "finger", so it can be a program name with args.
3310 set dummy finger; ac_word=$2
3311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_word" >&5
3313 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3321 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3325 ac_dummy="$PATH:/usr/ucb"
3326 for ac_dir in $ac_dummy; do
3327 test -z "$ac_dir" && ac_dir=.
3328 if test -f $ac_dir/$ac_word; then
3329 ac_cv_path_FINGER="$ac_dir/$ac_word"
3334 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3338 FINGER="$ac_cv_path_FINGER"
3339 if test -n "$FINGER"; then
3340 echo "$ac_t""$FINGER" 1>&6
3342 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3347 echo "configure:3348: checking how to run the C preprocessor" >&5
3348 # On Suns, sometimes $CPP names a directory.
3349 if test -n "$CPP" && test -d "$CPP"; then
3352 if test -z "$CPP"; then
3353 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 # This must be in double quotes, not single quotes, because CPP may get
3357 # substituted into the Makefile and "${CC-cc}" will confuse make.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp.
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3368 { (eval echo configure:3369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3370 if test -z "$ac_err"; then
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 CPP="${CC-cc} -E -traditional-cpp"
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3385 { (eval echo configure:3386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3387 if test -z "$ac_err"; then
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3394 CPP="${CC-cc} -nologo -E"
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3402 { (eval echo configure:3403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3404 if test -z "$ac_err"; then
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3418 ac_cv_prog_CPP="$CPP"
3420 CPP="$ac_cv_prog_CPP"
3422 ac_cv_prog_CPP="$CPP"
3424 echo "$ac_t""$CPP" 1>&6
3427 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3428 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3430 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3431 echo "configure: warning: programs compiled here do run here..." 1>&2
3432 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3434 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3435 echo "configure: warning: programs compiled here do not run here..." 1>&2
3436 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3439 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3440 echo "configure:3441: checking for AIX" >&5
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 egrep "yes" >/dev/null 2>&1; then
3452 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3453 #define _ALL_SOURCE 1
3458 echo "$ac_t""no" 1>&6
3463 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3464 echo "configure:3465: checking for POSIXized ISC" >&5
3465 if test -d /etc/conf/kconfig.d &&
3466 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3468 echo "$ac_t""yes" 1>&6
3469 ISC=yes # If later tests want to check for ISC.
3470 cat >> confdefs.h <<\EOF
3471 #define _POSIX_SOURCE 1
3474 if test "$GCC" = yes; then
3480 echo "$ac_t""no" 1>&6
3484 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3486 echo "configure:3487: checking for minix/config.h" >&5
3487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <minix/config.h>
3495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3514 echo "$ac_t""no" 1>&6
3518 if test "$MINIX" = yes; then
3519 cat >> confdefs.h <<\EOF
3520 #define _POSIX_SOURCE 1
3523 cat >> confdefs.h <<\EOF
3524 #define _POSIX_1_SOURCE 2
3527 cat >> confdefs.h <<\EOF
3534 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3535 echo "configure:3536: checking for Cygwin environment" >&5
3536 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3546 #define __CYGWIN__ __CYGWIN32__
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3563 echo "$ac_t""$ac_cv_cygwin" 1>&6
3565 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3566 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3567 echo "configure:3568: checking for mingw32 environment" >&5
3568 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3591 echo "$ac_t""$ac_cv_mingw32" 1>&6
3593 test "$ac_cv_mingw32" = yes && MINGW32=yes
3594 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3595 echo "configure:3596: checking for EMX OS/2 environment" >&5
3596 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3607 if { (eval echo configure:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3619 echo "$ac_t""$ac_cv_emxos2" 1>&6
3621 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3625 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3626 echo "configure:3627: checking for executable suffix" >&5
3627 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3634 echo 'int main () { return 0; }' > conftest.$ac_ext
3636 if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3637 for file in conftest.*; do
3639 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3640 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3644 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3647 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3652 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3653 echo "$ac_t""${ac_cv_exeext}" 1>&6
3656 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3657 echo "configure:3658: checking for object suffix" >&5
3658 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3662 echo 'int i = 1;' > conftest.$ac_ext
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 for ac_file in conftest.*; do
3667 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3671 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3676 echo "$ac_t""$ac_cv_objext" 1>&6
3677 OBJEXT=$ac_cv_objext
3678 ac_objext=$ac_cv_objext
3681 cat >> confdefs.h <<EOF
3682 #define EXEEXT "${EXEEXT}"
3686 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3687 echo "configure:3688: checking for be_app in -lbe" >&5
3688 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 ac_save_LIBS="$LIBS"
3693 LIBS="-lbe -lroot -lnet $LIBS"
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 eval "ac_cv_lib_$ac_lib_var=yes"
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 eval "ac_cv_lib_$ac_lib_var=no"
3716 LIBS="$ac_save_LIBS"
3719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 LIBS="$LIBS -lbe -lroot -lnet"
3723 echo "$ac_t""no" 1>&6
3731 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3732 echo "configure:3733: checking for ${CC-cc} option to accept ANSI C" >&5
3733 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 am_cv_prog_cc_stdc=no
3738 # Don't try gcc -ansi; that turns off useful extensions and
3739 # breaks some systems' header files.
3740 # AIX -qlanglvl=ansi
3741 # Ultrix and OSF/1 -std1
3742 # HP-UX 10.20 and later -Ae
3743 # HP-UX older versions -Aa -D_HPUX_SOURCE
3744 # SVR4 -Xc -D__EXTENSIONS__
3745 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3747 CC="$ac_save_CC $ac_arg"
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756 struct buf { int x; };
3757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758 static char *e (p, i)
3764 static char *f (char * (*g) (char **, int), char **p, ...)
3769 s = g (p, va_arg (v,int));
3773 int test (int i, double x);
3774 struct s1 {int (*f) (int a);};
3775 struct s2 {int (*f) (double a);};
3776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3786 if { (eval echo configure:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 am_cv_prog_cc_stdc="$ac_arg"; break
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3799 if test -z "$am_cv_prog_cc_stdc"; then
3800 echo "$ac_t""none needed" 1>&6
3802 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3804 case "x$am_cv_prog_cc_stdc" in
3806 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3809 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3810 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3813 # test for make depend flag
3816 if test -z "${MKDEP}"; then
3818 if test -z "${MKDEP_FLAGS}"; then
3819 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3820 echo "configure:3821: checking for ${OL_MKDEP} depend flag" >&5
3821 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3826 for flag in "-M" "-xM"; do
3827 cat > conftest.c <<EOF
3830 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3831 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3833 if test ! -f conftest."${ac_object}" ; then
3835 OL_MKDEP_FLAGS="$flag"
3844 echo "$ac_t""$ol_cv_mkdep" 1>&6
3847 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3852 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3857 if test "${ol_cv_mkdep}" = no ; then
3858 # this will soon become an error
3859 echo "configure: warning: do not know how to generate dependencies" 1>&2
3862 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3863 echo "configure:3864: checking for afopen in -ls" >&5
3864 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3899 cat >> confdefs.h <<\EOF
3900 #define HAVE_AIX_SECURITY 1
3905 echo "$ac_t""no" 1>&6
3911 if test $ol_enable_modules != no ; then
3912 for ac_hdr in ltdl.h
3914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3916 echo "configure:3917: checking for $ac_hdr" >&5
3917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926 { (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3928 if test -z "$ac_err"; then
3930 eval "ac_cv_header_$ac_safe=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_header_$ac_safe=no"
3940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3943 cat >> confdefs.h <<EOF
3944 #define $ac_tr_hdr 1
3948 echo "$ac_t""no" 1>&6
3953 if test $ac_cv_header_ltdl_h = no ; then
3954 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3957 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3958 echo "configure:3959: checking for lt_dlinit in -lltdl" >&5
3959 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_save_LIBS="$LIBS"
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3979 eval "ac_cv_lib_$ac_lib_var=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 eval "ac_cv_lib_$ac_lib_var=no"
3987 LIBS="$ac_save_LIBS"
3990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_LIBLTDL 1
4000 echo "$ac_t""no" 1>&6
4004 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4005 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4009 ol_with_dnssrv_module=static
4010 ol_with_ldap_module=static
4011 ol_with_ldbm_module=static
4012 ol_with_passwd_module=static
4013 ol_with_shell_module=static
4014 ol_with_sql_module=static
4018 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4019 echo "configure:4020: checking for EBCDIC" >&5
4020 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4029 #include <__ASCII__/generate_error.h>
4033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4034 { (eval echo configure:4035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4036 if test -z "$ac_err"; then
4038 ol_cv_cpp_ebcdic=yes
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4049 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4050 if test $ol_cv_cpp_ebcdic = yes ; then
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_EBCDIC 1
4057 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4058 echo "configure:4059: checking for ANSI C header files" >&5
4059 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4071 { (eval echo configure:4072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4073 if test -z "$ac_err"; then
4075 ol_cv_header_stdc=yes
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 ol_cv_header_stdc=no
4085 if test $ol_cv_header_stdc = yes; then
4086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 egrep "memchr" >/dev/null 2>&1; then
4097 ol_cv_header_stdc=no
4103 if test $ol_cv_header_stdc = yes; then
4104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4111 egrep "free" >/dev/null 2>&1; then
4115 ol_cv_header_stdc=no
4121 if test $ol_cv_header_stdc = yes; then
4122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4123 if test "$cross_compiling" = yes; then
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4134 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4135 || ('j' <= (c) && (c) <= 'r') \
4136 || ('s' <= (c) && (c) <= 'z'))
4137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140 int main () { int i; for (i = 0; i < 256; i++)
4141 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 ol_cv_header_stdc=no
4160 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4161 if test $ol_cv_header_stdc = yes; then
4162 cat >> confdefs.h <<\EOF
4163 #define STDC_HEADERS 1
4167 ac_cv_header_stdc=disable
4170 if test $ol_cv_header_stdc != yes; then
4171 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4178 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_hdr that defines DIR" >&5
4180 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 #include <sys/types.h>
4192 if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 eval "ac_cv_header_dirent_$ac_safe=yes"
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4199 eval "ac_cv_header_dirent_$ac_safe=no"
4203 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4206 cat >> confdefs.h <<EOF
4207 #define $ac_tr_hdr 1
4209 ac_header_dirent=$ac_hdr; break
4211 echo "$ac_t""no" 1>&6
4214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4215 if test $ac_header_dirent = dirent.h; then
4216 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4217 echo "configure:4218: checking for opendir in -ldir" >&5
4218 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 ac_save_LIBS="$LIBS"
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 eval "ac_cv_lib_$ac_lib_var=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 eval "ac_cv_lib_$ac_lib_var=no"
4246 LIBS="$ac_save_LIBS"
4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4253 echo "$ac_t""no" 1>&6
4257 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4258 echo "configure:4259: checking for opendir in -lx" >&5
4259 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS="$LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4294 echo "$ac_t""no" 1>&6
4299 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4300 echo "configure:4301: checking for sys/wait.h that is POSIX.1 compatible" >&5
4301 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <sys/types.h>
4308 #include <sys/wait.h>
4310 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4313 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4321 if { (eval echo configure:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323 ac_cv_header_sys_wait_h=yes
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 ac_cv_header_sys_wait_h=no
4333 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4334 if test $ac_cv_header_sys_wait_h = yes; then
4335 cat >> confdefs.h <<\EOF
4336 #define HAVE_SYS_WAIT_H 1
4341 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4342 echo "configure:4343: checking POSIX termios" >&5
4343 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/types.h>
4351 #include <termios.h>
4353 /* SunOS 4.0.3 has termios.h but not the library calls. */
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359 am_cv_sys_posix_termios=yes
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4364 am_cv_sys_posix_termios=no
4369 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4372 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4373 echo "configure:4374: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4374 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4379 gwinsz_in_termios_h=no
4380 if test $am_cv_sys_posix_termios = yes; then
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 #include <sys/types.h>
4385 # include <termios.h>
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392 egrep "yes" >/dev/null 2>&1; then
4394 gwinsz_in_termios_h=yes
4400 if test $gwinsz_in_termios_h = no; then
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 #include <sys/types.h>
4405 # include <sys/ioctl.h>
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "yes" >/dev/null 2>&1; then
4414 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4422 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4423 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4424 cat >> confdefs.h <<\EOF
4425 #define GWINSZ_IN_SYS_IOCTL 1
4430 if test $am_cv_sys_posix_termios = yes ; then
4431 cat >> confdefs.h <<\EOF
4432 #define HAVE_POSIX_TERMIOS 1
4483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4499 eval "ac_cv_header_$ac_safe=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 eval "ac_cv_header_$ac_safe=no"
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h <<EOF
4513 #define $ac_tr_hdr 1
4517 echo "$ac_t""no" 1>&6
4524 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4525 echo "configure:4526: checking for dlopen" >&5
4526 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 /* System header to define __stub macros and hopefully few prototypes,
4533 which can conflict with char dlopen(); below. */
4535 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4543 /* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
4546 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4556 eval "ac_cv_func_dlopen=yes"
4558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4561 eval "ac_cv_func_dlopen=no"
4566 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4570 echo "$ac_t""no" 1>&6
4571 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4572 echo "configure:4573: checking for dlopen in -ldl" >&5
4573 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 ac_save_LIBS="$LIBS"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 eval "ac_cv_lib_$ac_lib_var=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_lib_$ac_lib_var=no"
4601 LIBS="$ac_save_LIBS"
4604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4608 cat >> confdefs.h <<EOF
4609 #define $ac_tr_lib 1
4615 echo "$ac_t""no" 1>&6
4621 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4622 echo "configure:4623: checking for sigset in -lV3" >&5
4623 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4656 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4658 cat >> confdefs.h <<EOF
4659 #define $ac_tr_lib 1
4665 echo "$ac_t""no" 1>&6
4669 if test $ac_cv_header_winsock_h = yes; then
4670 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4671 echo "configure:4672: checking for winsock" >&5
4672 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 cat > conftest.$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4678 #include <winsock.h>
4682 select(0,NULL,NULL,NULL,NULL);
4684 gethostname(NULL,0);
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4700 echo "$ac_t""$ol_cv_winsock" 1>&6
4702 if test $ol_cv_winsock = yes ; then
4703 cat >> confdefs.h <<\EOF
4704 #define HAVE_WINSOCK 1
4707 ac_cv_func_socket=yes
4708 ac_cv_func_select=yes
4709 ac_cv_func_closesocket=yes
4710 ac_cv_func_gethostname=yes
4715 echo $ac_n "checking for socket""... $ac_c" 1>&6
4716 echo "configure:4717: checking for socket" >&5
4717 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char socket(); below. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4734 /* The GNU C library defines this for functions which it implements
4735 to always fail with ENOSYS. Some functions are actually named
4736 something starting with __ and the normal name is an alias. */
4737 #if defined (__stub_socket) || defined (__stub___socket)
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_func_socket=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_func_socket=no"
4757 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4763 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4764 echo "configure:4765: checking for main in -lsocket" >&5
4765 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4769 ac_save_LIBS="$LIBS"
4770 LIBS="-lsocket $LIBS"
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_lib_$ac_lib_var=no"
4789 LIBS="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_lib 1
4800 LIBS="-lsocket $LIBS"
4803 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4807 echo "configure:4808: checking for main in -lnet" >&5
4808 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4809 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 ac_save_LIBS="$LIBS"
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 eval "ac_cv_lib_$ac_lib_var=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 eval "ac_cv_lib_$ac_lib_var=no"
4832 LIBS="$ac_save_LIBS"
4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4837 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4839 cat >> confdefs.h <<EOF
4840 #define $ac_tr_lib 1
4846 echo "$ac_t""no" 1>&6
4849 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4850 echo "configure:4851: checking for main in -lnsl_s" >&5
4851 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4852 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS="$LIBS"
4856 LIBS="-lnsl_s $LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_lib_$ac_lib_var=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_lib_$ac_lib_var=no"
4875 LIBS="$ac_save_LIBS"
4878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_lib 1
4886 LIBS="-lnsl_s $LIBS"
4889 echo "$ac_t""no" 1>&6
4892 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4893 echo "configure:4894: checking for main in -lnsl" >&5
4894 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 ac_save_LIBS="$LIBS"
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4915 eval "ac_cv_lib_$ac_lib_var=no"
4918 LIBS="$ac_save_LIBS"
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_lib 1
4932 echo "$ac_t""no" 1>&6
4935 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4936 echo "configure:4937: checking for socket in -linet" >&5
4937 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 ac_save_LIBS="$LIBS"
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_lib 1
4979 echo "$ac_t""no" 1>&6
4982 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4983 echo "configure:4984: checking for main in -lgen" >&5
4984 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 ac_save_LIBS="$LIBS"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 eval "ac_cv_lib_$ac_lib_var=no"
5008 LIBS="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5015 cat >> confdefs.h <<EOF
5016 #define $ac_tr_lib 1
5022 echo "$ac_t""no" 1>&6
5029 echo $ac_n "checking for select""... $ac_c" 1>&6
5030 echo "configure:5031: checking for select" >&5
5031 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* System header to define __stub macros and hopefully few prototypes,
5038 which can conflict with char select(); below. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5041 /* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_select) || defined (__stub___select)
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_func_select=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_func_select=no"
5071 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5075 echo "$ac_t""no" 1>&6
5076 { echo "configure: error: select() required." 1>&2; exit 1; }
5080 if test "${ac_cv_header_winsock_h}" != yes; then
5081 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5082 echo "configure:5083: checking types of arguments for select()" >&5
5083 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5093 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5094 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 #ifdef HAVE_SYS_TYPES_H
5099 #include <sys/types.h>
5101 #ifdef HAVE_SYS_TIME_H
5102 #include <sys/time.h>
5104 #ifdef HAVE_SYS_SELECT_H
5105 #include <sys/select.h>
5107 #ifdef HAVE_SYS_SOCKET_H
5108 #include <sys/socket.h>
5110 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);
5115 if { (eval echo configure:5116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5117 ac_not_found=no ; break 3
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5134 if test "$ac_not_found" = yes; then
5135 ac_cv_func_select_arg1=int
5136 ac_cv_func_select_arg234='int *'
5137 ac_cv_func_select_arg5='struct timeval *'
5139 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5140 cat >> confdefs.h <<EOF
5141 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5144 cat >> confdefs.h <<EOF
5145 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5148 cat >> confdefs.h <<EOF
5149 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5156 for ac_hdr in regex.h
5158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5160 echo "configure:5161: checking for $ac_hdr" >&5
5161 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 cat > conftest.$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5170 { (eval echo configure:5171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5172 if test -z "$ac_err"; then
5174 eval "ac_cv_header_$ac_safe=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 eval "ac_cv_header_$ac_safe=no"
5184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5185 echo "$ac_t""yes" 1>&6
5186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5187 cat >> confdefs.h <<EOF
5188 #define $ac_tr_hdr 1
5192 echo "$ac_t""no" 1>&6
5196 if test "$ac_cv_header_regex_h" != yes ; then
5197 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5199 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5200 echo "configure:5201: checking for regfree" >&5
5201 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char regfree(); below. */
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5218 /* The GNU C library defines this for functions which it implements
5219 to always fail with ENOSYS. Some functions are actually named
5220 something starting with __ and the normal name is an alias. */
5221 #if defined (__stub_regfree) || defined (__stub___regfree)
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 eval "ac_cv_func_regfree=yes"
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 eval "ac_cv_func_regfree=no"
5241 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6
5245 echo "$ac_t""no" 1>&6
5246 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5251 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5252 echo "configure:5253: checking for compatible POSIX regex" >&5
5253 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5257 if test "$cross_compiling" = yes; then
5258 ol_cv_c_posix_regex=cross
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5264 #include <sys/types.h>
5266 static char *pattern, *string;
5274 if(regcomp(&re, pattern, 0)) {
5278 string = "ALL MATCH";
5280 rc = regexec(&re, string, 0, (void*)0, 0);
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5289 ol_cv_c_posix_regex=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 ol_cv_c_posix_regex=no
5301 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5303 if test "$ol_cv_c_posix_regex" = no ; then
5304 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5308 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5309 echo "configure:5310: checking for res_query" >&5
5310 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char res_query(); below. */
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5327 /* The GNU C library defines this for functions which it implements
5328 to always fail with ENOSYS. Some functions are actually named
5329 something starting with __ and the normal name is an alias. */
5330 #if defined (__stub_res_query) || defined (__stub___res_query)
5338 if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340 eval "ac_cv_func_res_query=yes"
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5345 eval "ac_cv_func_res_query=no"
5350 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5354 echo "$ac_t""no" 1>&6
5357 if test $ac_cv_func_res_query = no ; then
5358 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5359 echo "configure:5360: checking for res_query in -lbind" >&5
5360 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5361 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 ac_save_LIBS="$LIBS"
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5378 if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5380 eval "ac_cv_lib_$ac_lib_var=yes"
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5385 eval "ac_cv_lib_$ac_lib_var=no"
5388 LIBS="$ac_save_LIBS"
5391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5395 cat >> confdefs.h <<EOF
5396 #define $ac_tr_lib 1
5402 echo "$ac_t""no" 1>&6
5405 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5408 if test $ac_cv_func_res_query = no ; then
5409 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5410 echo "configure:5411: checking for __res_query in -lbind" >&5
5411 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5412 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 ac_save_LIBS="$LIBS"
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 eval "ac_cv_lib_$ac_lib_var=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 eval "ac_cv_lib_$ac_lib_var=no"
5439 LIBS="$ac_save_LIBS"
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5446 cat >> confdefs.h <<EOF
5447 #define $ac_tr_lib 1
5453 echo "$ac_t""no" 1>&6
5456 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5459 if test $ac_cv_func_res_query = no ; then
5460 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5461 echo "configure:5462: checking for res_query in -lresolv" >&5
5462 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 ac_save_LIBS="$LIBS"
5467 LIBS="-lresolv $LIBS"
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5482 eval "ac_cv_lib_$ac_lib_var=yes"
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 eval "ac_cv_lib_$ac_lib_var=no"
5490 LIBS="$ac_save_LIBS"
5493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5495 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5497 cat >> confdefs.h <<EOF
5498 #define $ac_tr_lib 1
5501 LIBS="-lresolv $LIBS"
5504 echo "$ac_t""no" 1>&6
5507 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5510 if test "$ac_cv_func_res_query" = yes ; then
5511 cat >> confdefs.h <<\EOF
5512 #define HAVE_RES_QUERY 1
5516 if test $ol_enable_dnssrv != no ; then
5521 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5522 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5525 for ac_func in getaddrinfo inet_ntop
5527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5528 echo "configure:5529: checking for $ac_func" >&5
5529 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 /* System header to define __stub macros and hopefully few prototypes,
5536 which can conflict with char $ac_func(); below. */
5538 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5546 /* The GNU C library defines this for functions which it implements
5547 to always fail with ENOSYS. Some functions are actually named
5548 something starting with __ and the normal name is an alias. */
5549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5559 eval "ac_cv_func_$ac_func=yes"
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5564 eval "ac_cv_func_$ac_func=no"
5569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5572 cat >> confdefs.h <<EOF
5573 #define $ac_tr_func 1
5577 echo "$ac_t""no" 1>&6
5583 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5584 if test $ol_enable_ipv6 = yes ; then
5585 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5588 for ac_func in gai_strerror
5590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5591 echo "configure:5592: checking for $ac_func" >&5
5592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char $ac_func(); below. */
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 eval "ac_cv_func_$ac_func=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_func_$ac_func=no"
5632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5633 echo "$ac_t""yes" 1>&6
5634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5635 cat >> confdefs.h <<EOF
5636 #define $ac_tr_func 1
5640 echo "$ac_t""no" 1>&6
5645 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5646 echo "configure:5647: checking INET6_ADDRSTRLEN" >&5
5647 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5655 # include <netinet/in.h>
5656 # ifdef INET6_ADDRSTRLEN
5657 __has_inet6_addrstrlen__;
5661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5664 ol_cv_inet6_addrstrlen=yes
5667 ol_cv_inet6_addrstrlen=no
5673 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5675 if test $ol_cv_inet6_addrstrlen = yes ; then
5677 elif test $ol_enable_ipv6 = yes ; then
5678 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5682 if test $ol_enable_local != no ; then
5683 for ac_hdr in sys/un.h
5685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5687 echo "configure:5688: checking for $ac_hdr" >&5
5688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5697 { (eval echo configure:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5699 if test -z "$ac_err"; then
5701 eval "ac_cv_header_$ac_safe=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_header_$ac_safe=no"
5711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5714 cat >> confdefs.h <<EOF
5715 #define $ac_tr_hdr 1
5719 echo "$ac_t""no" 1>&6
5724 if test $ol_enable_local = auto ; then
5725 ol_enable_local=$ac_cv_header_sys_un_h
5726 elif test $ac_cv_header_sys_un_h = no ; then
5727 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5736 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5737 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5738 -o $ol_with_kerberos = k425 ; then
5740 for ac_hdr in krb5.h
5742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5744 echo "configure:5745: checking for $ac_hdr" >&5
5745 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5754 { (eval echo configure:5755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5756 if test -z "$ac_err"; then
5758 eval "ac_cv_header_$ac_safe=yes"
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5764 eval "ac_cv_header_$ac_safe=no"
5768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5769 echo "$ac_t""yes" 1>&6
5770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5771 cat >> confdefs.h <<EOF
5772 #define $ac_tr_hdr 1
5776 echo "$ac_t""no" 1>&6
5781 if test $ac_cv_header_krb5_h = yes ; then
5782 for ac_hdr in heim_err.h
5784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5786 echo "configure:5787: checking for $ac_hdr" >&5
5787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5790 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5796 { (eval echo configure:5797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5798 if test -z "$ac_err"; then
5800 eval "ac_cv_header_$ac_safe=yes"
5803 echo "configure: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 eval "ac_cv_header_$ac_safe=no"
5810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5813 cat >> confdefs.h <<EOF
5814 #define $ac_tr_hdr 1
5818 echo "$ac_t""no" 1>&6
5822 if test $ac_cv_header_heim_err_h = yes ; then
5828 if test $krb5_impl = mit; then
5829 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5830 echo "configure:5831: checking for main in -lkrb5" >&5
5831 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5832 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 ac_save_LIBS="$LIBS"
5836 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 eval "ac_cv_lib_$ac_lib_var=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_lib_$ac_lib_var=no"
5855 LIBS="$ac_save_LIBS"
5858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5861 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5863 echo "$ac_t""no" 1>&6
5868 elif test $krb5_impl = heimdal; then
5869 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5870 echo "configure:5871: checking for main in -lkrb5" >&5
5871 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5875 ac_save_LIBS="$LIBS"
5876 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5885 if { (eval echo configure:5886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5887 eval "ac_cv_lib_$ac_lib_var=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5892 eval "ac_cv_lib_$ac_lib_var=no"
5895 LIBS="$ac_save_LIBS"
5898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5901 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5903 echo "$ac_t""no" 1>&6
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_HEIMDAL_KERBEROS 1
5914 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
5917 if test $have_krb5 = yes ; then
5920 cat >> confdefs.h <<\EOF
5925 if test $ol_enable_kpasswd != no ; then
5926 ol_link_kpasswd=yes;
5929 if test $ol_with_kerberos = k5only ; then
5930 ol_with_kerberos=found
5933 elif test $ol_with_kerberos != auto ; then
5934 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5940 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5941 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5943 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5947 echo "configure:5948: checking for $ac_hdr" >&5
5948 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5957 { (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5959 if test -z "$ac_err"; then
5961 eval "ac_cv_header_$ac_safe=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_header_$ac_safe=no"
5971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5974 cat >> confdefs.h <<EOF
5975 #define $ac_tr_hdr 1
5979 echo "$ac_t""no" 1>&6
5984 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5985 if test $krb5_impl = mit; then
5986 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5987 echo "configure:5988: checking for main in -lkrb4" >&5
5988 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 ac_save_LIBS="$LIBS"
5993 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
6002 if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 eval "ac_cv_lib_$ac_lib_var=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_lib_$ac_lib_var=no"
6012 LIBS="$ac_save_LIBS"
6015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6018 KRB4_LIBS="-lkrb4 -ldes425"
6020 echo "$ac_t""no" 1>&6
6025 elif test $krb5_impl = heimdal; then
6026 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6027 echo "configure:6028: checking for main in -lkrb4" >&5
6028 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 ac_save_LIBS="$LIBS"
6033 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 eval "ac_cv_lib_$ac_lib_var=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_lib_$ac_lib_var=no"
6052 LIBS="$ac_save_LIBS"
6055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6056 echo "$ac_t""yes" 1>&6
6060 echo "$ac_t""no" 1>&6
6067 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6070 if test $have_k425 = yes ; then
6071 ol_with_kerberos=found
6074 cat >> confdefs.h <<\EOF
6075 #define HAVE_KRB425 1
6078 cat >> confdefs.h <<\EOF
6083 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6084 echo "configure:6085: checking for des_debug in Kerberos libraries" >&5
6085 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6090 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6095 #include <kerberosIV/krb.h>
6096 #include <kerberosIV/des.h>
6097 extern int des_debug;
6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 ol_cv_var_des_debug=yes
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 ol_cv_var_des_debug=no
6119 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6121 if test $ol_cv_var_des_debug = yes ; then
6122 cat >> confdefs.h <<\EOF
6123 #define HAVE_DES_DEBUG 1
6133 if test $ol_link_krb5 = yes ; then
6134 ol_with_kerberos=found
6137 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6138 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6140 for ac_hdr in krb.h des.h krb-archaeology.h
6142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6144 echo "configure:6145: checking for $ac_hdr" >&5
6145 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6156 if test -z "$ac_err"; then
6158 eval "ac_cv_header_$ac_safe=yes"
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 eval "ac_cv_header_$ac_safe=no"
6168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_hdr 1
6176 echo "$ac_t""no" 1>&6
6181 if test $ac_cv_header_krb_h = yes ; then
6182 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6183 echo "configure:6184: checking for main in -lkrb" >&5
6184 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6185 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6186 echo $ac_n "(cached) $ac_c" 1>&6
6188 ac_save_LIBS="$LIBS"
6189 LIBS="-lkrb -ldes $LIBS"
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6200 eval "ac_cv_lib_$ac_lib_var=yes"
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6205 eval "ac_cv_lib_$ac_lib_var=no"
6208 LIBS="$ac_save_LIBS"
6211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6212 echo "$ac_t""yes" 1>&6
6215 echo "$ac_t""no" 1>&6
6220 if test $have_k4 = yes ; then
6221 ol_with_kerberos=found
6224 cat >> confdefs.h <<\EOF
6229 KRB4_LIBS="-lkrb -ldes"
6231 if test $ac_cv_header_krb_archaeology_h = yes ; then
6232 cat >> confdefs.h <<\EOF
6233 #define HAVE_KTH_KERBEROS 1
6241 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6245 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6248 elif test $ol_enable_kbind = yes ; then
6249 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6252 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE_KERBEROS 1
6258 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6259 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6263 if test $ol_with_tls != no ; then
6264 for ac_hdr in openssl/ssl.h ssl.h
6266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6268 echo "configure:6269: checking for $ac_hdr" >&5
6269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6278 { (eval echo configure:6279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6280 if test -z "$ac_err"; then
6282 eval "ac_cv_header_$ac_safe=yes"
6285 echo "configure: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6288 eval "ac_cv_header_$ac_safe=no"
6292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6295 cat >> confdefs.h <<EOF
6296 #define $ac_tr_hdr 1
6300 echo "$ac_t""no" 1>&6
6305 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6306 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6307 echo "configure:6308: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6308 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6312 ac_save_LIBS="$LIBS"
6313 LIBS="-lssl -lcrypto $LIBS"
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6320 char SSLeay_add_ssl_algorithms();
6323 SSLeay_add_ssl_algorithms()
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 eval "ac_cv_lib_$ac_lib_var=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval "ac_cv_lib_$ac_lib_var=no"
6336 LIBS="$ac_save_LIBS"
6339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6344 echo "$ac_t""no" 1>&6
6349 if test $have_ssleay = no ; then
6350 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6351 echo "configure:6352: checking for SSL_library_init in -lssl" >&5
6352 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6353 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 ac_save_LIBS="$LIBS"
6357 LIBS="-lssl -lcrypto $LIBS"
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6364 char SSL_library_init();
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 eval "ac_cv_lib_$ac_lib_var=no"
6380 LIBS="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6388 echo "$ac_t""no" 1>&6
6394 if test $have_ssleay = no ; then
6395 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6396 echo "configure:6397: checking for ssl3_accept in -lssl" >&5
6397 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6398 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 ac_save_LIBS="$LIBS"
6402 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6425 LIBS="$ac_save_LIBS"
6428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6433 echo "$ac_t""no" 1>&6
6439 if test $have_ssleay = yes ; then
6443 cat >> confdefs.h <<\EOF
6444 #define HAVE_SSLEAY 1
6448 if test $need_rsaref = yes; then
6449 cat >> confdefs.h <<\EOF
6450 #define HAVE_RSAREF 1
6454 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6456 TLS_LIBS="-lssl -lcrypto"
6462 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6465 if test $ol_link_tls = yes ; then
6466 cat >> confdefs.h <<\EOF
6471 elif test $ol_with_tls = auto ; then
6472 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6473 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6475 elif test $ol_with_tls != no ; then
6476 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6481 gethostbyname_r gethostbyaddr_r \
6484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_func" >&5
6486 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char $ac_func(); below. */
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6503 /* The GNU C library defines this for functions which it implements
6504 to always fail with ENOSYS. Some functions are actually named
6505 something starting with __ and the normal name is an alias. */
6506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6516 eval "ac_cv_func_$ac_func=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_func_$ac_func=no"
6526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6527 echo "$ac_t""yes" 1>&6
6528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6529 cat >> confdefs.h <<EOF
6530 #define $ac_tr_func 1
6534 echo "$ac_t""no" 1>&6
6539 if test "$ac_cv_func_ctime_r" = no ; then
6540 ol_cv_func_ctime_r_nargs=0
6542 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6543 echo "configure:6544: checking number of arguments of ctime_r" >&5
6544 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6552 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6555 if { (eval echo configure:6556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6557 ol_cv_func_ctime_r_nargs3=yes
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 ol_cv_func_ctime_r_nargs3=no
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6571 time_t ti; char *buffer; ctime_r(&ti,buffer);
6574 if { (eval echo configure:6575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6576 ol_cv_func_ctime_r_nargs2=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 ol_cv_func_ctime_r_nargs2=no
6585 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6586 $ol_cv_func_ctime_r_nargs2 = no ; then
6588 ol_cv_func_ctime_r_nargs=3
6590 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6591 $ol_cv_func_ctime_r_nargs2 = yes ; then
6593 ol_cv_func_ctime_r_nargs=2
6596 ol_cv_func_ctime_r_nargs=0
6601 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6603 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6604 cat >> confdefs.h <<EOF
6605 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6612 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6613 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6614 echo "configure:6615: checking number of arguments of gethostbyname_r" >&5
6615 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 #include <sys/types.h>
6622 #include <sys/socket.h>
6623 #include <netinet/in.h>
6625 #define BUFSIZE (sizeof(struct hostent)+10)
6627 struct hostent hent; char buffer[BUFSIZE];
6628 int bufsize=BUFSIZE;int h_errno;
6629 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6630 buffer, bufsize, &h_errno);
6633 if { (eval echo configure:6634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6635 ol_cv_func_gethostbyname_r_nargs5=yes
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 ol_cv_func_gethostbyname_r_nargs5=no
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 #include <sys/types.h>
6648 #include <sys/socket.h>
6649 #include <netinet/in.h>
6651 #define BUFSIZE (sizeof(struct hostent)+10)
6653 struct hostent hent;struct hostent *rhent;
6654 char buffer[BUFSIZE];
6655 int bufsize=BUFSIZE;int h_errno;
6656 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6662 ol_cv_func_gethostbyname_r_nargs6=yes
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 ol_cv_func_gethostbyname_r_nargs6=no
6671 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6672 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6674 ol_cv_func_gethostbyname_r_nargs=5
6676 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6677 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6679 ol_cv_func_gethostbyname_r_nargs=6
6682 ol_cv_func_gethostbyname_r_nargs=0
6687 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6688 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6689 cat >> confdefs.h <<EOF
6690 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6696 ol_cv_func_gethostbyname_r_nargs=0
6699 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6700 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6701 echo "configure:6702: checking number of arguments of gethostbyaddr_r" >&5
6702 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 #include <sys/types.h>
6709 #include <sys/socket.h>
6710 #include <netinet/in.h>
6712 #define BUFSIZE (sizeof(struct hostent)+10)
6714 struct hostent hent; char buffer[BUFSIZE];
6716 size_t alen=sizeof(struct in_addr);
6717 int bufsize=BUFSIZE;int h_errno;
6718 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6719 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6722 if { (eval echo configure:6723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6724 ol_cv_func_gethostbyaddr_r_nargs7=yes
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 ol_cv_func_gethostbyaddr_r_nargs7=no
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 #include <sys/types.h>
6737 #include <sys/socket.h>
6738 #include <netinet/in.h>
6740 #define BUFSIZE (sizeof(struct hostent)+10)
6742 struct hostent hent;
6743 struct hostent *rhent; char buffer[BUFSIZE];
6745 size_t alen=sizeof(struct in_addr);
6746 int bufsize=BUFSIZE;int h_errno;
6747 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6748 alen, AF_INET, &hent, buffer, bufsize,
6752 if { (eval echo configure:6753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6754 ol_cv_func_gethostbyaddr_r_nargs8=yes
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 ol_cv_func_gethostbyaddr_r_nargs8=no
6763 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6764 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6766 ol_cv_func_gethostbyaddr_r_nargs=7
6768 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6769 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6771 ol_cv_func_gethostbyaddr_r_nargs=8
6774 ol_cv_func_gethostbyaddr_r_nargs=0
6779 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6780 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6781 cat >> confdefs.h <<EOF
6782 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6788 ol_cv_func_gethostbyaddr_r_nargs=0
6791 if test "$ac_cv_func_ctime_r" = yes \
6792 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6793 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6794 -a "$ac_cv_func_gethostbyname_r" = yes \
6795 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6796 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6797 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6798 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6799 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6802 cat >> confdefs.h <<\EOF
6803 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6810 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6811 -o $ol_with_threads = nt ; then
6814 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6815 echo "configure:6816: checking for _beginthread" >&5
6816 if eval "test \"\${ac_cv_func__beginthread+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"
6822 /* System header to define __stub macros and hopefully few prototypes,
6823 which can conflict with char _beginthread(); below. */
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828 char _beginthread();
6833 /* The GNU C library defines this for functions which it implements
6834 to always fail with ENOSYS. Some functions are actually named
6835 something starting with __ and the normal name is an alias. */
6836 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6846 eval "ac_cv_func__beginthread=yes"
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6851 eval "ac_cv_func__beginthread=no"
6856 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6857 echo "$ac_t""yes" 1>&6
6860 echo "$ac_t""no" 1>&6
6864 if test $ac_cv_func__beginthread = yes ; then
6865 cat >> confdefs.h <<\EOF
6866 #define HAVE_NT_THREADS 1
6872 if test "$ol_cv_nt_threads" = yes ; then
6874 ol_with_threads=found
6875 ol_with_yielding_select=yes
6877 cat >> confdefs.h <<\EOF
6878 #define HAVE_NT_SERVICE_MANAGER 1
6881 cat >> confdefs.h <<\EOF
6882 #define HAVE_NT_EVENT_LOG 1
6887 if test $ol_with_threads = nt ; then
6888 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6892 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6893 -o $ol_with_threads = posix ; then
6895 for ac_hdr in pthread.h
6897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6899 echo "configure:6900: checking for $ac_hdr" >&5
6900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6909 { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6911 if test -z "$ac_err"; then
6913 eval "ac_cv_header_$ac_safe=yes"
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 eval "ac_cv_header_$ac_safe=no"
6923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6926 cat >> confdefs.h <<EOF
6927 #define $ac_tr_hdr 1
6931 echo "$ac_t""no" 1>&6
6936 if test $ac_cv_header_pthread_h = yes ; then
6937 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6938 echo "configure:6939: checking POSIX thread version" >&5
6939 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6947 # include <pthread.h>
6948 /* this check could be improved */
6949 # ifdef PTHREAD_ONCE_INIT
6950 pthread_version_final;
6954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6955 egrep "pthread_version_final" >/dev/null 2>&1; then
6957 ol_pthread_final=yes
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6969 # include <pthread.h>
6970 /* this check could be improved */
6971 # ifdef pthread_once_init
6972 pthread_version_draft4;
6976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6977 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6979 ol_pthread_draft4=yes
6982 ol_pthread_draft4=no
6987 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6988 ol_cv_pthread_version=final
6989 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6990 ol_cv_pthread_version=draft4
6992 ol_cv_pthread_version=unknown
6997 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7000 if test $ol_cv_pthread_version = final ; then
7001 cat >> confdefs.h <<\EOF
7002 #define HAVE_PTHREADS_FINAL 1
7005 elif test $ol_cv_pthread_version = draft4 ; then
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_PTHREADS_D4 1
7011 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7014 # consider threads found
7015 ol_with_threads=found
7018 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7019 echo "configure:7020: checking for LinuxThreads pthread.h" >&5
7020 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <pthread.h>
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7031 ol_cv_header_linux_threads=yes
7034 ol_cv_header_linux_threads=no
7041 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7042 if test $ol_cv_header_linux_threads = yes; then
7043 cat >> confdefs.h <<\EOF
7044 #define HAVE_LINUX_THREADS 1
7050 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7051 echo "configure:7052: checking for GNU Pth pthread.h" >&5
7052 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 #include <pthread.h>
7059 #ifdef _POSIX_THREAD_IS_GNU_PTH
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 egrep "__gnu_pth__" >/dev/null 2>&1; then
7067 ol_cv_header_gnu_pth_pthread_h=yes
7070 ol_cv_header_gnu_pth_pthread_h=no
7077 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7080 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7081 for ac_hdr in sched.h
7083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_hdr" >&5
7086 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7095 { (eval echo configure:7096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7097 if test -z "$ac_err"; then
7099 eval "ac_cv_header_$ac_safe=yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 eval "ac_cv_header_$ac_safe=no"
7109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7112 cat >> confdefs.h <<EOF
7113 #define $ac_tr_hdr 1
7117 echo "$ac_t""no" 1>&6
7124 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7125 echo "configure:7126: checking for pthread_create in default libraries" >&5
7126 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7130 if test "$cross_compiling" = yes; then
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* pthread test headers */
7135 #include <pthread.h>
7137 #define NULL (void*)0
7140 static void *task(p)
7143 return (void *) (p == NULL);
7148 /* pthread test function */
7153 #ifdef HAVE_PTHREADS_FINAL
7154 /* Final pthreads */
7155 pthread_attr_t attr;
7157 status = pthread_attr_init(&attr);
7158 if( status ) return status;
7160 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7162 #if defined( PTHREAD_CREATE_JOINABLE )
7163 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7165 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7168 #ifdef PTHREAD_CREATE_DETACHED
7170 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7173 if( status ) return status;
7176 status = pthread_create( &t, &attr, task, NULL );
7177 if( status ) return status;
7179 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7181 /* give thread a chance to complete */
7182 /* it should remain joinable and hence detachable */
7185 status = pthread_detach( t );
7186 if( status ) return status;
7191 /* Draft 4 pthreads */
7192 status = pthread_create( &t, pthread_attr_default, task, NULL );
7193 if( status ) return status;
7196 /* give thread a chance to complete */
7197 /* it should remain joinable and hence detachable */
7200 status = pthread_detach( &t );
7201 if( status ) return status;
7205 #ifdef HAVE_LINUX_THREADS
7206 pthread_kill_other_threads_np();
7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7215 ol_cv_pthread_create=yes
7217 echo "configure: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7220 ol_cv_pthread_create=no
7224 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 /* pthread test headers */
7228 #include <pthread.h>
7230 #define NULL (void*)0
7233 static void *task(p)
7236 return (void *) (p == NULL);
7240 int main(argc, argv)
7245 /* pthread test function */
7250 #ifdef HAVE_PTHREADS_FINAL
7251 /* Final pthreads */
7252 pthread_attr_t attr;
7254 status = pthread_attr_init(&attr);
7255 if( status ) return status;
7257 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7259 #if defined( PTHREAD_CREATE_JOINABLE )
7260 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7262 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7265 #ifdef PTHREAD_CREATE_DETACHED
7267 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7270 if( status ) return status;
7273 status = pthread_create( &t, &attr, task, NULL );
7274 if( status ) return status;
7276 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7278 /* give thread a chance to complete */
7279 /* it should remain joinable and hence detachable */
7282 status = pthread_detach( t );
7283 if( status ) return status;
7288 /* Draft 4 pthreads */
7289 status = pthread_create( &t, pthread_attr_default, task, NULL );
7290 if( status ) return status;
7293 /* give thread a chance to complete */
7294 /* it should remain joinable and hence detachable */
7297 status = pthread_detach( &t );
7298 if( status ) return status;
7302 #ifdef HAVE_LINUX_THREADS
7303 pthread_kill_other_threads_np();
7311 if { (eval echo configure:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7313 ol_cv_pthread_create=yes
7315 echo "configure: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7318 ol_cv_pthread_create=no
7325 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7327 if test $ol_cv_pthread_create != no ; then
7328 ol_link_threads=posix
7332 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7333 if test "$ol_link_threads" = no ; then
7335 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7336 echo "configure:7337: checking for pthread link with -kthread" >&5
7337 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7343 LIBS="-kthread $LIBS"
7345 if test "$cross_compiling" = yes; then
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 /* pthread test headers */
7350 #include <pthread.h>
7352 #define NULL (void*)0
7355 static void *task(p)
7358 return (void *) (p == NULL);
7363 /* pthread test function */
7368 #ifdef HAVE_PTHREADS_FINAL
7369 /* Final pthreads */
7370 pthread_attr_t attr;
7372 status = pthread_attr_init(&attr);
7373 if( status ) return status;
7375 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7377 #if defined( PTHREAD_CREATE_JOINABLE )
7378 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7380 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7383 #ifdef PTHREAD_CREATE_DETACHED
7385 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7388 if( status ) return status;
7391 status = pthread_create( &t, &attr, task, NULL );
7392 if( status ) return status;
7394 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7396 /* give thread a chance to complete */
7397 /* it should remain joinable and hence detachable */
7400 status = pthread_detach( t );
7401 if( status ) return status;
7406 /* Draft 4 pthreads */
7407 status = pthread_create( &t, pthread_attr_default, task, NULL );
7408 if( status ) return status;
7411 /* give thread a chance to complete */
7412 /* it should remain joinable and hence detachable */
7415 status = pthread_detach( &t );
7416 if( status ) return status;
7420 #ifdef HAVE_LINUX_THREADS
7421 pthread_kill_other_threads_np();
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7430 ol_cv_pthread_kthread=yes
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7435 ol_cv_pthread_kthread=no
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 /* pthread test headers */
7443 #include <pthread.h>
7445 #define NULL (void*)0
7448 static void *task(p)
7451 return (void *) (p == NULL);
7455 int main(argc, argv)
7460 /* pthread test function */
7465 #ifdef HAVE_PTHREADS_FINAL
7466 /* Final pthreads */
7467 pthread_attr_t attr;
7469 status = pthread_attr_init(&attr);
7470 if( status ) return status;
7472 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7474 #if defined( PTHREAD_CREATE_JOINABLE )
7475 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7477 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7480 #ifdef PTHREAD_CREATE_DETACHED
7482 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7485 if( status ) return status;
7488 status = pthread_create( &t, &attr, task, NULL );
7489 if( status ) return status;
7491 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7493 /* give thread a chance to complete */
7494 /* it should remain joinable and hence detachable */
7497 status = pthread_detach( t );
7498 if( status ) return status;
7503 /* Draft 4 pthreads */
7504 status = pthread_create( &t, pthread_attr_default, task, NULL );
7505 if( status ) return status;
7508 /* give thread a chance to complete */
7509 /* it should remain joinable and hence detachable */
7512 status = pthread_detach( &t );
7513 if( status ) return status;
7517 #ifdef HAVE_LINUX_THREADS
7518 pthread_kill_other_threads_np();
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7528 ol_cv_pthread_kthread=yes
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7533 ol_cv_pthread_kthread=no
7544 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7546 if test $ol_cv_pthread_kthread = yes ; then
7547 ol_link_pthreads="-kthread"
7548 ol_link_threads=posix
7552 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7553 if test "$ol_link_threads" = no ; then
7555 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7556 echo "configure:7557: checking for pthread link with -pthread" >&5
7557 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7563 LIBS="-pthread $LIBS"
7565 if test "$cross_compiling" = yes; then
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* pthread test headers */
7570 #include <pthread.h>
7572 #define NULL (void*)0
7575 static void *task(p)
7578 return (void *) (p == NULL);
7583 /* pthread test function */
7588 #ifdef HAVE_PTHREADS_FINAL
7589 /* Final pthreads */
7590 pthread_attr_t attr;
7592 status = pthread_attr_init(&attr);
7593 if( status ) return status;
7595 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7597 #if defined( PTHREAD_CREATE_JOINABLE )
7598 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7600 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7603 #ifdef PTHREAD_CREATE_DETACHED
7605 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7608 if( status ) return status;
7611 status = pthread_create( &t, &attr, task, NULL );
7612 if( status ) return status;
7614 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7616 /* give thread a chance to complete */
7617 /* it should remain joinable and hence detachable */
7620 status = pthread_detach( t );
7621 if( status ) return status;
7626 /* Draft 4 pthreads */
7627 status = pthread_create( &t, pthread_attr_default, task, NULL );
7628 if( status ) return status;
7631 /* give thread a chance to complete */
7632 /* it should remain joinable and hence detachable */
7635 status = pthread_detach( &t );
7636 if( status ) return status;
7640 #ifdef HAVE_LINUX_THREADS
7641 pthread_kill_other_threads_np();
7648 if { (eval echo configure:7649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7650 ol_cv_pthread_pthread=yes
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7655 ol_cv_pthread_pthread=no
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7662 /* pthread test headers */
7663 #include <pthread.h>
7665 #define NULL (void*)0
7668 static void *task(p)
7671 return (void *) (p == NULL);
7675 int main(argc, argv)
7680 /* pthread test function */
7685 #ifdef HAVE_PTHREADS_FINAL
7686 /* Final pthreads */
7687 pthread_attr_t attr;
7689 status = pthread_attr_init(&attr);
7690 if( status ) return status;
7692 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7694 #if defined( PTHREAD_CREATE_JOINABLE )
7695 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7697 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7700 #ifdef PTHREAD_CREATE_DETACHED
7702 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7705 if( status ) return status;
7708 status = pthread_create( &t, &attr, task, NULL );
7709 if( status ) return status;
7711 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7713 /* give thread a chance to complete */
7714 /* it should remain joinable and hence detachable */
7717 status = pthread_detach( t );
7718 if( status ) return status;
7723 /* Draft 4 pthreads */
7724 status = pthread_create( &t, pthread_attr_default, task, NULL );
7725 if( status ) return status;
7728 /* give thread a chance to complete */
7729 /* it should remain joinable and hence detachable */
7732 status = pthread_detach( &t );
7733 if( status ) return status;
7737 #ifdef HAVE_LINUX_THREADS
7738 pthread_kill_other_threads_np();
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7748 ol_cv_pthread_pthread=yes
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7753 ol_cv_pthread_pthread=no
7764 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7766 if test $ol_cv_pthread_pthread = yes ; then
7767 ol_link_pthreads="-pthread"
7768 ol_link_threads=posix
7772 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7773 if test "$ol_link_threads" = no ; then
7775 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7776 echo "configure:7777: checking for pthread link with -pthreads" >&5
7777 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7783 LIBS="-pthreads $LIBS"
7785 if test "$cross_compiling" = yes; then
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7789 /* pthread test headers */
7790 #include <pthread.h>
7792 #define NULL (void*)0
7795 static void *task(p)
7798 return (void *) (p == NULL);
7803 /* pthread test function */
7808 #ifdef HAVE_PTHREADS_FINAL
7809 /* Final pthreads */
7810 pthread_attr_t attr;
7812 status = pthread_attr_init(&attr);
7813 if( status ) return status;
7815 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7817 #if defined( PTHREAD_CREATE_JOINABLE )
7818 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7820 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7823 #ifdef PTHREAD_CREATE_DETACHED
7825 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7828 if( status ) return status;
7831 status = pthread_create( &t, &attr, task, NULL );
7832 if( status ) return status;
7834 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7836 /* give thread a chance to complete */
7837 /* it should remain joinable and hence detachable */
7840 status = pthread_detach( t );
7841 if( status ) return status;
7846 /* Draft 4 pthreads */
7847 status = pthread_create( &t, pthread_attr_default, task, NULL );
7848 if( status ) return status;
7851 /* give thread a chance to complete */
7852 /* it should remain joinable and hence detachable */
7855 status = pthread_detach( &t );
7856 if( status ) return status;
7860 #ifdef HAVE_LINUX_THREADS
7861 pthread_kill_other_threads_np();
7868 if { (eval echo configure:7869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7870 ol_cv_pthread_pthreads=yes
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7875 ol_cv_pthread_pthreads=no
7879 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 /* pthread test headers */
7883 #include <pthread.h>
7885 #define NULL (void*)0
7888 static void *task(p)
7891 return (void *) (p == NULL);
7895 int main(argc, argv)
7900 /* pthread test function */
7905 #ifdef HAVE_PTHREADS_FINAL
7906 /* Final pthreads */
7907 pthread_attr_t attr;
7909 status = pthread_attr_init(&attr);
7910 if( status ) return status;
7912 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7914 #if defined( PTHREAD_CREATE_JOINABLE )
7915 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7917 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7920 #ifdef PTHREAD_CREATE_DETACHED
7922 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7925 if( status ) return status;
7928 status = pthread_create( &t, &attr, task, NULL );
7929 if( status ) return status;
7931 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7933 /* give thread a chance to complete */
7934 /* it should remain joinable and hence detachable */
7937 status = pthread_detach( t );
7938 if( status ) return status;
7943 /* Draft 4 pthreads */
7944 status = pthread_create( &t, pthread_attr_default, task, NULL );
7945 if( status ) return status;
7948 /* give thread a chance to complete */
7949 /* it should remain joinable and hence detachable */
7952 status = pthread_detach( &t );
7953 if( status ) return status;
7957 #ifdef HAVE_LINUX_THREADS
7958 pthread_kill_other_threads_np();
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7968 ol_cv_pthread_pthreads=yes
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 ol_cv_pthread_pthreads=no
7984 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7986 if test $ol_cv_pthread_pthreads = yes ; then
7987 ol_link_pthreads="-pthreads"
7988 ol_link_threads=posix
7992 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7993 if test "$ol_link_threads" = no ; then
7995 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7996 echo "configure:7997: checking for pthread link with -mthreads" >&5
7997 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8003 LIBS="-mthreads $LIBS"
8005 if test "$cross_compiling" = yes; then
8006 cat > conftest.$ac_ext <<EOF
8007 #line 8008 "configure"
8008 #include "confdefs.h"
8009 /* pthread test headers */
8010 #include <pthread.h>
8012 #define NULL (void*)0
8015 static void *task(p)
8018 return (void *) (p == NULL);
8023 /* pthread test function */
8028 #ifdef HAVE_PTHREADS_FINAL
8029 /* Final pthreads */
8030 pthread_attr_t attr;
8032 status = pthread_attr_init(&attr);
8033 if( status ) return status;
8035 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8037 #if defined( PTHREAD_CREATE_JOINABLE )
8038 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8040 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8043 #ifdef PTHREAD_CREATE_DETACHED
8045 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8048 if( status ) return status;
8051 status = pthread_create( &t, &attr, task, NULL );
8052 if( status ) return status;
8054 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8056 /* give thread a chance to complete */
8057 /* it should remain joinable and hence detachable */
8060 status = pthread_detach( t );
8061 if( status ) return status;
8066 /* Draft 4 pthreads */
8067 status = pthread_create( &t, pthread_attr_default, task, NULL );
8068 if( status ) return status;
8071 /* give thread a chance to complete */
8072 /* it should remain joinable and hence detachable */
8075 status = pthread_detach( &t );
8076 if( status ) return status;
8080 #ifdef HAVE_LINUX_THREADS
8081 pthread_kill_other_threads_np();
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8090 ol_cv_pthread_mthreads=yes
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8095 ol_cv_pthread_mthreads=no
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* pthread test headers */
8103 #include <pthread.h>
8105 #define NULL (void*)0
8108 static void *task(p)
8111 return (void *) (p == NULL);
8115 int main(argc, argv)
8120 /* pthread test function */
8125 #ifdef HAVE_PTHREADS_FINAL
8126 /* Final pthreads */
8127 pthread_attr_t attr;
8129 status = pthread_attr_init(&attr);
8130 if( status ) return status;
8132 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8134 #if defined( PTHREAD_CREATE_JOINABLE )
8135 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8137 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8140 #ifdef PTHREAD_CREATE_DETACHED
8142 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8145 if( status ) return status;
8148 status = pthread_create( &t, &attr, task, NULL );
8149 if( status ) return status;
8151 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8153 /* give thread a chance to complete */
8154 /* it should remain joinable and hence detachable */
8157 status = pthread_detach( t );
8158 if( status ) return status;
8163 /* Draft 4 pthreads */
8164 status = pthread_create( &t, pthread_attr_default, task, NULL );
8165 if( status ) return status;
8168 /* give thread a chance to complete */
8169 /* it should remain joinable and hence detachable */
8172 status = pthread_detach( &t );
8173 if( status ) return status;
8177 #ifdef HAVE_LINUX_THREADS
8178 pthread_kill_other_threads_np();
8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8188 ol_cv_pthread_mthreads=yes
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8193 ol_cv_pthread_mthreads=no
8204 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8206 if test $ol_cv_pthread_mthreads = yes ; then
8207 ol_link_pthreads="-mthreads"
8208 ol_link_threads=posix
8212 # Pthread try link: -thread (ol_cv_pthread_thread)
8213 if test "$ol_link_threads" = no ; then
8215 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8216 echo "configure:8217: checking for pthread link with -thread" >&5
8217 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8223 LIBS="-thread $LIBS"
8225 if test "$cross_compiling" = yes; then
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* pthread test headers */
8230 #include <pthread.h>
8232 #define NULL (void*)0
8235 static void *task(p)
8238 return (void *) (p == NULL);
8243 /* pthread test function */
8248 #ifdef HAVE_PTHREADS_FINAL
8249 /* Final pthreads */
8250 pthread_attr_t attr;
8252 status = pthread_attr_init(&attr);
8253 if( status ) return status;
8255 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8257 #if defined( PTHREAD_CREATE_JOINABLE )
8258 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8260 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8263 #ifdef PTHREAD_CREATE_DETACHED
8265 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8268 if( status ) return status;
8271 status = pthread_create( &t, &attr, task, NULL );
8272 if( status ) return status;
8274 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8276 /* give thread a chance to complete */
8277 /* it should remain joinable and hence detachable */
8280 status = pthread_detach( t );
8281 if( status ) return status;
8286 /* Draft 4 pthreads */
8287 status = pthread_create( &t, pthread_attr_default, task, NULL );
8288 if( status ) return status;
8291 /* give thread a chance to complete */
8292 /* it should remain joinable and hence detachable */
8295 status = pthread_detach( &t );
8296 if( status ) return status;
8300 #ifdef HAVE_LINUX_THREADS
8301 pthread_kill_other_threads_np();
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8310 ol_cv_pthread_thread=yes
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 ol_cv_pthread_thread=no
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 /* pthread test headers */
8323 #include <pthread.h>
8325 #define NULL (void*)0
8328 static void *task(p)
8331 return (void *) (p == NULL);
8335 int main(argc, argv)
8340 /* pthread test function */
8345 #ifdef HAVE_PTHREADS_FINAL
8346 /* Final pthreads */
8347 pthread_attr_t attr;
8349 status = pthread_attr_init(&attr);
8350 if( status ) return status;
8352 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8354 #if defined( PTHREAD_CREATE_JOINABLE )
8355 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8357 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8360 #ifdef PTHREAD_CREATE_DETACHED
8362 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8365 if( status ) return status;
8368 status = pthread_create( &t, &attr, task, NULL );
8369 if( status ) return status;
8371 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8373 /* give thread a chance to complete */
8374 /* it should remain joinable and hence detachable */
8377 status = pthread_detach( t );
8378 if( status ) return status;
8383 /* Draft 4 pthreads */
8384 status = pthread_create( &t, pthread_attr_default, task, NULL );
8385 if( status ) return status;
8388 /* give thread a chance to complete */
8389 /* it should remain joinable and hence detachable */
8392 status = pthread_detach( &t );
8393 if( status ) return status;
8397 #ifdef HAVE_LINUX_THREADS
8398 pthread_kill_other_threads_np();
8406 if { (eval echo configure:8407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8408 ol_cv_pthread_thread=yes
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8413 ol_cv_pthread_thread=no
8424 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8426 if test $ol_cv_pthread_thread = yes ; then
8427 ol_link_pthreads="-thread"
8428 ol_link_threads=posix
8433 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8434 if test "$ol_link_threads" = no ; then
8435 # try -lpthread -lmach -lexc -lc_r
8436 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8437 echo "configure:8438: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8438 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8444 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8446 if test "$cross_compiling" = yes; then
8447 cat > conftest.$ac_ext <<EOF
8448 #line 8449 "configure"
8449 #include "confdefs.h"
8450 /* pthread test headers */
8451 #include <pthread.h>
8453 #define NULL (void*)0
8456 static void *task(p)
8459 return (void *) (p == NULL);
8464 /* pthread test function */
8469 #ifdef HAVE_PTHREADS_FINAL
8470 /* Final pthreads */
8471 pthread_attr_t attr;
8473 status = pthread_attr_init(&attr);
8474 if( status ) return status;
8476 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8478 #if defined( PTHREAD_CREATE_JOINABLE )
8479 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8481 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8484 #ifdef PTHREAD_CREATE_DETACHED
8486 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8489 if( status ) return status;
8492 status = pthread_create( &t, &attr, task, NULL );
8493 if( status ) return status;
8495 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8497 /* give thread a chance to complete */
8498 /* it should remain joinable and hence detachable */
8501 status = pthread_detach( t );
8502 if( status ) return status;
8507 /* Draft 4 pthreads */
8508 status = pthread_create( &t, pthread_attr_default, task, NULL );
8509 if( status ) return status;
8512 /* give thread a chance to complete */
8513 /* it should remain joinable and hence detachable */
8516 status = pthread_detach( &t );
8517 if( status ) return status;
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_lpthread_lmach_lexc_lc_r=yes
8533 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8536 ol_cv_pthread_lpthread_lmach_lexc_lc_r=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 */
8566 #ifdef HAVE_PTHREADS_FINAL
8567 /* Final pthreads */
8568 pthread_attr_t attr;
8570 status = pthread_attr_init(&attr);
8571 if( status ) return status;
8573 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8575 #if defined( PTHREAD_CREATE_JOINABLE )
8576 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8578 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8581 #ifdef PTHREAD_CREATE_DETACHED
8583 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8586 if( status ) return status;
8589 status = pthread_create( &t, &attr, task, NULL );
8590 if( status ) return status;
8592 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8594 /* give thread a chance to complete */
8595 /* it should remain joinable and hence detachable */
8598 status = pthread_detach( t );
8599 if( status ) return status;
8604 /* Draft 4 pthreads */
8605 status = pthread_create( &t, pthread_attr_default, task, NULL );
8606 if( status ) return status;
8609 /* give thread a chance to complete */
8610 /* it should remain joinable and hence detachable */
8613 status = pthread_detach( &t );
8614 if( status ) return status;
8618 #ifdef HAVE_LINUX_THREADS
8619 pthread_kill_other_threads_np();
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8629 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8645 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8647 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8648 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8649 ol_link_threads=posix
8653 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8654 if test "$ol_link_threads" = no ; then
8655 # try -lpthread -lmach -lexc
8656 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8657 echo "configure:8658: checking for pthread link with -lpthread -lmach -lexc" >&5
8658 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8664 LIBS="-lpthread -lmach -lexc $LIBS"
8666 if test "$cross_compiling" = yes; then
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8670 /* pthread test headers */
8671 #include <pthread.h>
8673 #define NULL (void*)0
8676 static void *task(p)
8679 return (void *) (p == NULL);
8684 /* pthread test function */
8689 #ifdef HAVE_PTHREADS_FINAL
8690 /* Final pthreads */
8691 pthread_attr_t attr;
8693 status = pthread_attr_init(&attr);
8694 if( status ) return status;
8696 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8698 #if defined( PTHREAD_CREATE_JOINABLE )
8699 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8701 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8704 #ifdef PTHREAD_CREATE_DETACHED
8706 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8709 if( status ) return status;
8712 status = pthread_create( &t, &attr, task, NULL );
8713 if( status ) return status;
8715 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8717 /* give thread a chance to complete */
8718 /* it should remain joinable and hence detachable */
8721 status = pthread_detach( t );
8722 if( status ) return status;
8727 /* Draft 4 pthreads */
8728 status = pthread_create( &t, pthread_attr_default, task, NULL );
8729 if( status ) return status;
8732 /* give thread a chance to complete */
8733 /* it should remain joinable and hence detachable */
8736 status = pthread_detach( &t );
8737 if( status ) return status;
8741 #ifdef HAVE_LINUX_THREADS
8742 pthread_kill_other_threads_np();
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8751 ol_cv_pthread_lpthread_lmach_lexc=yes
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 ol_cv_pthread_lpthread_lmach_lexc=no
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 /* pthread test headers */
8764 #include <pthread.h>
8766 #define NULL (void*)0
8769 static void *task(p)
8772 return (void *) (p == NULL);
8776 int main(argc, argv)
8781 /* pthread test function */
8786 #ifdef HAVE_PTHREADS_FINAL
8787 /* Final pthreads */
8788 pthread_attr_t attr;
8790 status = pthread_attr_init(&attr);
8791 if( status ) return status;
8793 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8795 #if defined( PTHREAD_CREATE_JOINABLE )
8796 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8798 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8801 #ifdef PTHREAD_CREATE_DETACHED
8803 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8806 if( status ) return status;
8809 status = pthread_create( &t, &attr, task, NULL );
8810 if( status ) return status;
8812 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8814 /* give thread a chance to complete */
8815 /* it should remain joinable and hence detachable */
8818 status = pthread_detach( t );
8819 if( status ) return status;
8824 /* Draft 4 pthreads */
8825 status = pthread_create( &t, pthread_attr_default, task, NULL );
8826 if( status ) return status;
8829 /* give thread a chance to complete */
8830 /* it should remain joinable and hence detachable */
8833 status = pthread_detach( &t );
8834 if( status ) return status;
8838 #ifdef HAVE_LINUX_THREADS
8839 pthread_kill_other_threads_np();
8847 if { (eval echo configure:8848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8849 ol_cv_pthread_lpthread_lmach_lexc=yes
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8854 ol_cv_pthread_lpthread_lmach_lexc=no
8865 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8867 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8868 ol_link_pthreads="-lpthread -lmach -lexc"
8869 ol_link_threads=posix
8874 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8875 if test "$ol_link_threads" = no ; then
8876 # try -lpthread -Wl,-woff,85
8877 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8878 echo "configure:8879: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8879 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8880 echo $ac_n "(cached) $ac_c" 1>&6
8885 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8887 if test "$cross_compiling" = yes; then
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 /* pthread test headers */
8892 #include <pthread.h>
8894 #define NULL (void*)0
8897 static void *task(p)
8900 return (void *) (p == NULL);
8905 /* pthread test function */
8910 #ifdef HAVE_PTHREADS_FINAL
8911 /* Final pthreads */
8912 pthread_attr_t attr;
8914 status = pthread_attr_init(&attr);
8915 if( status ) return status;
8917 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8919 #if defined( PTHREAD_CREATE_JOINABLE )
8920 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8922 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8925 #ifdef PTHREAD_CREATE_DETACHED
8927 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8930 if( status ) return status;
8933 status = pthread_create( &t, &attr, task, NULL );
8934 if( status ) return status;
8936 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8938 /* give thread a chance to complete */
8939 /* it should remain joinable and hence detachable */
8942 status = pthread_detach( t );
8943 if( status ) return status;
8948 /* Draft 4 pthreads */
8949 status = pthread_create( &t, pthread_attr_default, task, NULL );
8950 if( status ) return status;
8953 /* give thread a chance to complete */
8954 /* it should remain joinable and hence detachable */
8957 status = pthread_detach( &t );
8958 if( status ) return status;
8962 #ifdef HAVE_LINUX_THREADS
8963 pthread_kill_other_threads_np();
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8972 ol_cv_pthread_lib_lpthread_woff=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 ol_cv_pthread_lib_lpthread_woff=no
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* pthread test headers */
8985 #include <pthread.h>
8987 #define NULL (void*)0
8990 static void *task(p)
8993 return (void *) (p == NULL);
8997 int main(argc, argv)
9002 /* pthread test function */
9007 #ifdef HAVE_PTHREADS_FINAL
9008 /* Final pthreads */
9009 pthread_attr_t attr;
9011 status = pthread_attr_init(&attr);
9012 if( status ) return status;
9014 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9016 #if defined( PTHREAD_CREATE_JOINABLE )
9017 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9019 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9022 #ifdef PTHREAD_CREATE_DETACHED
9024 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9027 if( status ) return status;
9030 status = pthread_create( &t, &attr, task, NULL );
9031 if( status ) return status;
9033 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9035 /* give thread a chance to complete */
9036 /* it should remain joinable and hence detachable */
9039 status = pthread_detach( t );
9040 if( status ) return status;
9045 /* Draft 4 pthreads */
9046 status = pthread_create( &t, pthread_attr_default, task, NULL );
9047 if( status ) return status;
9050 /* give thread a chance to complete */
9051 /* it should remain joinable and hence detachable */
9054 status = pthread_detach( &t );
9055 if( status ) return status;
9059 #ifdef HAVE_LINUX_THREADS
9060 pthread_kill_other_threads_np();
9068 if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9070 ol_cv_pthread_lib_lpthread_woff=yes
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9075 ol_cv_pthread_lib_lpthread_woff=no
9086 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9088 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9089 ol_link_pthreads="-lpthread -Wl,-woff,85"
9090 ol_link_threads=posix
9095 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9096 if test "$ol_link_threads" = no ; then
9098 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9099 echo "configure:9100: checking for pthread link with -lpthread" >&5
9100 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9101 echo $ac_n "(cached) $ac_c" 1>&6
9106 LIBS="-lpthread $LIBS"
9108 if test "$cross_compiling" = yes; then
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9112 /* pthread test headers */
9113 #include <pthread.h>
9115 #define NULL (void*)0
9118 static void *task(p)
9121 return (void *) (p == NULL);
9126 /* pthread test function */
9131 #ifdef HAVE_PTHREADS_FINAL
9132 /* Final pthreads */
9133 pthread_attr_t attr;
9135 status = pthread_attr_init(&attr);
9136 if( status ) return status;
9138 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9140 #if defined( PTHREAD_CREATE_JOINABLE )
9141 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9143 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9146 #ifdef PTHREAD_CREATE_DETACHED
9148 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9151 if( status ) return status;
9154 status = pthread_create( &t, &attr, task, NULL );
9155 if( status ) return status;
9157 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9159 /* give thread a chance to complete */
9160 /* it should remain joinable and hence detachable */
9163 status = pthread_detach( t );
9164 if( status ) return status;
9169 /* Draft 4 pthreads */
9170 status = pthread_create( &t, pthread_attr_default, task, NULL );
9171 if( status ) return status;
9174 /* give thread a chance to complete */
9175 /* it should remain joinable and hence detachable */
9178 status = pthread_detach( &t );
9179 if( status ) return status;
9183 #ifdef HAVE_LINUX_THREADS
9184 pthread_kill_other_threads_np();
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193 ol_cv_pthread_lpthread=yes
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 ol_cv_pthread_lpthread=no
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9205 /* pthread test headers */
9206 #include <pthread.h>
9208 #define NULL (void*)0
9211 static void *task(p)
9214 return (void *) (p == NULL);
9218 int main(argc, argv)
9223 /* pthread test function */
9228 #ifdef HAVE_PTHREADS_FINAL
9229 /* Final pthreads */
9230 pthread_attr_t attr;
9232 status = pthread_attr_init(&attr);
9233 if( status ) return status;
9235 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9237 #if defined( PTHREAD_CREATE_JOINABLE )
9238 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9240 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9243 #ifdef PTHREAD_CREATE_DETACHED
9245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9248 if( status ) return status;
9251 status = pthread_create( &t, &attr, task, NULL );
9252 if( status ) return status;
9254 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9256 /* give thread a chance to complete */
9257 /* it should remain joinable and hence detachable */
9260 status = pthread_detach( t );
9261 if( status ) return status;
9266 /* Draft 4 pthreads */
9267 status = pthread_create( &t, pthread_attr_default, task, NULL );
9268 if( status ) return status;
9271 /* give thread a chance to complete */
9272 /* it should remain joinable and hence detachable */
9275 status = pthread_detach( &t );
9276 if( status ) return status;
9280 #ifdef HAVE_LINUX_THREADS
9281 pthread_kill_other_threads_np();
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9291 ol_cv_pthread_lpthread=yes
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9296 ol_cv_pthread_lpthread=no
9307 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9309 if test $ol_cv_pthread_lpthread = yes ; then
9310 ol_link_pthreads="-lpthread"
9311 ol_link_threads=posix
9315 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9316 if test "$ol_link_threads" = no ; then
9318 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9319 echo "configure:9320: checking for pthread link with -lc_r" >&5
9320 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9328 if test "$cross_compiling" = yes; then
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9332 /* pthread test headers */
9333 #include <pthread.h>
9335 #define NULL (void*)0
9338 static void *task(p)
9341 return (void *) (p == NULL);
9346 /* pthread test function */
9351 #ifdef HAVE_PTHREADS_FINAL
9352 /* Final pthreads */
9353 pthread_attr_t attr;
9355 status = pthread_attr_init(&attr);
9356 if( status ) return status;
9358 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9360 #if defined( PTHREAD_CREATE_JOINABLE )
9361 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9363 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9366 #ifdef PTHREAD_CREATE_DETACHED
9368 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9371 if( status ) return status;
9374 status = pthread_create( &t, &attr, task, NULL );
9375 if( status ) return status;
9377 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9379 /* give thread a chance to complete */
9380 /* it should remain joinable and hence detachable */
9383 status = pthread_detach( t );
9384 if( status ) return status;
9389 /* Draft 4 pthreads */
9390 status = pthread_create( &t, pthread_attr_default, task, NULL );
9391 if( status ) return status;
9394 /* give thread a chance to complete */
9395 /* it should remain joinable and hence detachable */
9398 status = pthread_detach( &t );
9399 if( status ) return status;
9403 #ifdef HAVE_LINUX_THREADS
9404 pthread_kill_other_threads_np();
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 ol_cv_pthread_lc_r=yes
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9418 ol_cv_pthread_lc_r=no
9422 cat > conftest.$ac_ext <<EOF
9423 #line 9424 "configure"
9424 #include "confdefs.h"
9425 /* pthread test headers */
9426 #include <pthread.h>
9428 #define NULL (void*)0
9431 static void *task(p)
9434 return (void *) (p == NULL);
9438 int main(argc, argv)
9443 /* pthread test function */
9448 #ifdef HAVE_PTHREADS_FINAL
9449 /* Final pthreads */
9450 pthread_attr_t attr;
9452 status = pthread_attr_init(&attr);
9453 if( status ) return status;
9455 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9457 #if defined( PTHREAD_CREATE_JOINABLE )
9458 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9460 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9463 #ifdef PTHREAD_CREATE_DETACHED
9465 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9468 if( status ) return status;
9471 status = pthread_create( &t, &attr, task, NULL );
9472 if( status ) return status;
9474 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9476 /* give thread a chance to complete */
9477 /* it should remain joinable and hence detachable */
9480 status = pthread_detach( t );
9481 if( status ) return status;
9486 /* Draft 4 pthreads */
9487 status = pthread_create( &t, pthread_attr_default, task, NULL );
9488 if( status ) return status;
9491 /* give thread a chance to complete */
9492 /* it should remain joinable and hence detachable */
9495 status = pthread_detach( &t );
9496 if( status ) return status;
9500 #ifdef HAVE_LINUX_THREADS
9501 pthread_kill_other_threads_np();
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 ol_cv_pthread_lc_r=yes
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 ol_cv_pthread_lc_r=no
9527 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9529 if test $ol_cv_pthread_lc_r = yes ; then
9530 ol_link_pthreads="-lc_r"
9531 ol_link_threads=posix
9536 # Pthread try link: -threads (ol_cv_pthread_threads)
9537 if test "$ol_link_threads" = no ; then
9539 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9540 echo "configure:9541: checking for pthread link with -threads" >&5
9541 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9547 LIBS="-threads $LIBS"
9549 if test "$cross_compiling" = yes; then
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 /* pthread test headers */
9554 #include <pthread.h>
9556 #define NULL (void*)0
9559 static void *task(p)
9562 return (void *) (p == NULL);
9567 /* pthread test function */
9572 #ifdef HAVE_PTHREADS_FINAL
9573 /* Final pthreads */
9574 pthread_attr_t attr;
9576 status = pthread_attr_init(&attr);
9577 if( status ) return status;
9579 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9581 #if defined( PTHREAD_CREATE_JOINABLE )
9582 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9584 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9587 #ifdef PTHREAD_CREATE_DETACHED
9589 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9592 if( status ) return status;
9595 status = pthread_create( &t, &attr, task, NULL );
9596 if( status ) return status;
9598 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9600 /* give thread a chance to complete */
9601 /* it should remain joinable and hence detachable */
9604 status = pthread_detach( t );
9605 if( status ) return status;
9610 /* Draft 4 pthreads */
9611 status = pthread_create( &t, pthread_attr_default, task, NULL );
9612 if( status ) return status;
9615 /* give thread a chance to complete */
9616 /* it should remain joinable and hence detachable */
9619 status = pthread_detach( &t );
9620 if( status ) return status;
9624 #ifdef HAVE_LINUX_THREADS
9625 pthread_kill_other_threads_np();
9632 if { (eval echo configure:9633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9634 ol_cv_pthread_threads=yes
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9639 ol_cv_pthread_threads=no
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* pthread test headers */
9647 #include <pthread.h>
9649 #define NULL (void*)0
9652 static void *task(p)
9655 return (void *) (p == NULL);
9659 int main(argc, argv)
9664 /* pthread test function */
9669 #ifdef HAVE_PTHREADS_FINAL
9670 /* Final pthreads */
9671 pthread_attr_t attr;
9673 status = pthread_attr_init(&attr);
9674 if( status ) return status;
9676 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9678 #if defined( PTHREAD_CREATE_JOINABLE )
9679 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9681 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9684 #ifdef PTHREAD_CREATE_DETACHED
9686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9689 if( status ) return status;
9692 status = pthread_create( &t, &attr, task, NULL );
9693 if( status ) return status;
9695 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9697 /* give thread a chance to complete */
9698 /* it should remain joinable and hence detachable */
9701 status = pthread_detach( t );
9702 if( status ) return status;
9707 /* Draft 4 pthreads */
9708 status = pthread_create( &t, pthread_attr_default, task, NULL );
9709 if( status ) return status;
9712 /* give thread a chance to complete */
9713 /* it should remain joinable and hence detachable */
9716 status = pthread_detach( &t );
9717 if( status ) return status;
9721 #ifdef HAVE_LINUX_THREADS
9722 pthread_kill_other_threads_np();
9730 if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9732 ol_cv_pthread_threads=yes
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9737 ol_cv_pthread_threads=no
9748 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9750 if test $ol_cv_pthread_threads = yes ; then
9751 ol_link_pthreads="-threads"
9752 ol_link_threads=posix
9757 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9758 if test "$ol_link_threads" = no ; then
9759 # try -lpthreads -lmach -lexc -lc_r
9760 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9761 echo "configure:9762: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9762 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9768 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9770 if test "$cross_compiling" = yes; then
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 /* pthread test headers */
9775 #include <pthread.h>
9777 #define NULL (void*)0
9780 static void *task(p)
9783 return (void *) (p == NULL);
9788 /* pthread test function */
9793 #ifdef HAVE_PTHREADS_FINAL
9794 /* Final pthreads */
9795 pthread_attr_t attr;
9797 status = pthread_attr_init(&attr);
9798 if( status ) return status;
9800 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9802 #if defined( PTHREAD_CREATE_JOINABLE )
9803 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9805 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9808 #ifdef PTHREAD_CREATE_DETACHED
9810 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9813 if( status ) return status;
9816 status = pthread_create( &t, &attr, task, NULL );
9817 if( status ) return status;
9819 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9821 /* give thread a chance to complete */
9822 /* it should remain joinable and hence detachable */
9825 status = pthread_detach( t );
9826 if( status ) return status;
9831 /* Draft 4 pthreads */
9832 status = pthread_create( &t, pthread_attr_default, task, NULL );
9833 if( status ) return status;
9836 /* give thread a chance to complete */
9837 /* it should remain joinable and hence detachable */
9840 status = pthread_detach( &t );
9841 if( status ) return status;
9845 #ifdef HAVE_LINUX_THREADS
9846 pthread_kill_other_threads_np();
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* pthread test headers */
9868 #include <pthread.h>
9870 #define NULL (void*)0
9873 static void *task(p)
9876 return (void *) (p == NULL);
9880 int main(argc, argv)
9885 /* pthread test function */
9890 #ifdef HAVE_PTHREADS_FINAL
9891 /* Final pthreads */
9892 pthread_attr_t attr;
9894 status = pthread_attr_init(&attr);
9895 if( status ) return status;
9897 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9899 #if defined( PTHREAD_CREATE_JOINABLE )
9900 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9902 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9905 #ifdef PTHREAD_CREATE_DETACHED
9907 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9910 if( status ) return status;
9913 status = pthread_create( &t, &attr, task, NULL );
9914 if( status ) return status;
9916 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9918 /* give thread a chance to complete */
9919 /* it should remain joinable and hence detachable */
9922 status = pthread_detach( t );
9923 if( status ) return status;
9928 /* Draft 4 pthreads */
9929 status = pthread_create( &t, pthread_attr_default, task, NULL );
9930 if( status ) return status;
9933 /* give thread a chance to complete */
9934 /* it should remain joinable and hence detachable */
9937 status = pthread_detach( &t );
9938 if( status ) return status;
9942 #ifdef HAVE_LINUX_THREADS
9943 pthread_kill_other_threads_np();
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9953 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9969 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9971 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9972 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9973 ol_link_threads=posix
9977 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9978 if test "$ol_link_threads" = no ; then
9979 # try -lpthreads -lmach -lexc
9980 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9981 echo "configure:9982: checking for pthread link with -lpthreads -lmach -lexc" >&5
9982 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9988 LIBS="-lpthreads -lmach -lexc $LIBS"
9990 if test "$cross_compiling" = yes; then
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 /* pthread test headers */
9995 #include <pthread.h>
9997 #define NULL (void*)0
10000 static void *task(p)
10003 return (void *) (p == NULL);
10008 /* pthread test function */
10013 #ifdef HAVE_PTHREADS_FINAL
10014 /* Final pthreads */
10015 pthread_attr_t attr;
10017 status = pthread_attr_init(&attr);
10018 if( status ) return status;
10020 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10022 #if defined( PTHREAD_CREATE_JOINABLE )
10023 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10025 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10028 #ifdef PTHREAD_CREATE_DETACHED
10030 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10033 if( status ) return status;
10036 status = pthread_create( &t, &attr, task, NULL );
10037 if( status ) return status;
10039 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10041 /* give thread a chance to complete */
10042 /* it should remain joinable and hence detachable */
10045 status = pthread_detach( t );
10046 if( status ) return status;
10051 /* Draft 4 pthreads */
10052 status = pthread_create( &t, pthread_attr_default, task, NULL );
10053 if( status ) return status;
10056 /* give thread a chance to complete */
10057 /* it should remain joinable and hence detachable */
10060 status = pthread_detach( &t );
10061 if( status ) return status;
10065 #ifdef HAVE_LINUX_THREADS
10066 pthread_kill_other_threads_np();
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10075 ol_cv_pthread_lpthreads_lmach_lexc=yes
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 ol_cv_pthread_lpthreads_lmach_lexc=no
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 /* pthread test headers */
10088 #include <pthread.h>
10090 #define NULL (void*)0
10093 static void *task(p)
10096 return (void *) (p == NULL);
10100 int main(argc, argv)
10105 /* pthread test function */
10110 #ifdef HAVE_PTHREADS_FINAL
10111 /* Final pthreads */
10112 pthread_attr_t attr;
10114 status = pthread_attr_init(&attr);
10115 if( status ) return status;
10117 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10119 #if defined( PTHREAD_CREATE_JOINABLE )
10120 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10122 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10125 #ifdef PTHREAD_CREATE_DETACHED
10127 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10130 if( status ) return status;
10133 status = pthread_create( &t, &attr, task, NULL );
10134 if( status ) return status;
10136 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10138 /* give thread a chance to complete */
10139 /* it should remain joinable and hence detachable */
10142 status = pthread_detach( t );
10143 if( status ) return status;
10148 /* Draft 4 pthreads */
10149 status = pthread_create( &t, pthread_attr_default, task, NULL );
10150 if( status ) return status;
10153 /* give thread a chance to complete */
10154 /* it should remain joinable and hence detachable */
10157 status = pthread_detach( &t );
10158 if( status ) return status;
10162 #ifdef HAVE_LINUX_THREADS
10163 pthread_kill_other_threads_np();
10171 if { (eval echo configure:10172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10173 ol_cv_pthread_lpthreads_lmach_lexc=yes
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10178 ol_cv_pthread_lpthreads_lmach_lexc=no
10189 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10191 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10192 ol_link_pthreads="-lpthreads -lmach -lexc"
10193 ol_link_threads=posix
10197 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10198 if test "$ol_link_threads" = no ; then
10199 # try -lpthreads -lexc
10200 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10201 echo "configure:10202: checking for pthread link with -lpthreads -lexc" >&5
10202 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10208 LIBS="-lpthreads -lexc $LIBS"
10210 if test "$cross_compiling" = yes; then
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 /* pthread test headers */
10215 #include <pthread.h>
10217 #define NULL (void*)0
10220 static void *task(p)
10223 return (void *) (p == NULL);
10228 /* pthread test function */
10233 #ifdef HAVE_PTHREADS_FINAL
10234 /* Final pthreads */
10235 pthread_attr_t attr;
10237 status = pthread_attr_init(&attr);
10238 if( status ) return status;
10240 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10242 #if defined( PTHREAD_CREATE_JOINABLE )
10243 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10248 #ifdef PTHREAD_CREATE_DETACHED
10250 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10253 if( status ) return status;
10256 status = pthread_create( &t, &attr, task, NULL );
10257 if( status ) return status;
10259 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10261 /* give thread a chance to complete */
10262 /* it should remain joinable and hence detachable */
10265 status = pthread_detach( t );
10266 if( status ) return status;
10271 /* Draft 4 pthreads */
10272 status = pthread_create( &t, pthread_attr_default, task, NULL );
10273 if( status ) return status;
10276 /* give thread a chance to complete */
10277 /* it should remain joinable and hence detachable */
10280 status = pthread_detach( &t );
10281 if( status ) return status;
10285 #ifdef HAVE_LINUX_THREADS
10286 pthread_kill_other_threads_np();
10293 if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10295 ol_cv_pthread_lpthreads_lexc=yes
10297 echo "configure: failed program was:" >&5
10298 cat conftest.$ac_ext >&5
10300 ol_cv_pthread_lpthreads_lexc=no
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* pthread test headers */
10308 #include <pthread.h>
10310 #define NULL (void*)0
10313 static void *task(p)
10316 return (void *) (p == NULL);
10320 int main(argc, argv)
10325 /* pthread test function */
10330 #ifdef HAVE_PTHREADS_FINAL
10331 /* Final pthreads */
10332 pthread_attr_t attr;
10334 status = pthread_attr_init(&attr);
10335 if( status ) return status;
10337 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10339 #if defined( PTHREAD_CREATE_JOINABLE )
10340 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10342 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10345 #ifdef PTHREAD_CREATE_DETACHED
10347 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10350 if( status ) return status;
10353 status = pthread_create( &t, &attr, task, NULL );
10354 if( status ) return status;
10356 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10358 /* give thread a chance to complete */
10359 /* it should remain joinable and hence detachable */
10362 status = pthread_detach( t );
10363 if( status ) return status;
10368 /* Draft 4 pthreads */
10369 status = pthread_create( &t, pthread_attr_default, task, NULL );
10370 if( status ) return status;
10373 /* give thread a chance to complete */
10374 /* it should remain joinable and hence detachable */
10377 status = pthread_detach( &t );
10378 if( status ) return status;
10382 #ifdef HAVE_LINUX_THREADS
10383 pthread_kill_other_threads_np();
10391 if { (eval echo configure:10392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10393 ol_cv_pthread_lpthreads_lexc=yes
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10398 ol_cv_pthread_lpthreads_lexc=no
10409 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10411 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10412 ol_link_pthreads="-lpthreads -lexc"
10413 ol_link_threads=posix
10418 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10419 if test "$ol_link_threads" = no ; then
10421 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10422 echo "configure:10423: checking for pthread link with -lpthreads" >&5
10423 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10429 LIBS="-lpthreads $LIBS"
10431 if test "$cross_compiling" = yes; then
10432 cat > conftest.$ac_ext <<EOF
10433 #line 10434 "configure"
10434 #include "confdefs.h"
10435 /* pthread test headers */
10436 #include <pthread.h>
10438 #define NULL (void*)0
10441 static void *task(p)
10444 return (void *) (p == NULL);
10449 /* pthread test function */
10454 #ifdef HAVE_PTHREADS_FINAL
10455 /* Final pthreads */
10456 pthread_attr_t attr;
10458 status = pthread_attr_init(&attr);
10459 if( status ) return status;
10461 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10463 #if defined( PTHREAD_CREATE_JOINABLE )
10464 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10466 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10469 #ifdef PTHREAD_CREATE_DETACHED
10471 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10474 if( status ) return status;
10477 status = pthread_create( &t, &attr, task, NULL );
10478 if( status ) return status;
10480 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10482 /* give thread a chance to complete */
10483 /* it should remain joinable and hence detachable */
10486 status = pthread_detach( t );
10487 if( status ) return status;
10492 /* Draft 4 pthreads */
10493 status = pthread_create( &t, pthread_attr_default, task, NULL );
10494 if( status ) return status;
10497 /* give thread a chance to complete */
10498 /* it should remain joinable and hence detachable */
10501 status = pthread_detach( &t );
10502 if( status ) return status;
10506 #ifdef HAVE_LINUX_THREADS
10507 pthread_kill_other_threads_np();
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10516 ol_cv_pthread_lib_lpthreads=yes
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10521 ol_cv_pthread_lib_lpthreads=no
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10528 /* pthread test headers */
10529 #include <pthread.h>
10531 #define NULL (void*)0
10534 static void *task(p)
10537 return (void *) (p == NULL);
10541 int main(argc, argv)
10546 /* pthread test function */
10551 #ifdef HAVE_PTHREADS_FINAL
10552 /* Final pthreads */
10553 pthread_attr_t attr;
10555 status = pthread_attr_init(&attr);
10556 if( status ) return status;
10558 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10560 #if defined( PTHREAD_CREATE_JOINABLE )
10561 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10563 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10566 #ifdef PTHREAD_CREATE_DETACHED
10568 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10571 if( status ) return status;
10574 status = pthread_create( &t, &attr, task, NULL );
10575 if( status ) return status;
10577 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10579 /* give thread a chance to complete */
10580 /* it should remain joinable and hence detachable */
10583 status = pthread_detach( t );
10584 if( status ) return status;
10589 /* Draft 4 pthreads */
10590 status = pthread_create( &t, pthread_attr_default, task, NULL );
10591 if( status ) return status;
10594 /* give thread a chance to complete */
10595 /* it should remain joinable and hence detachable */
10598 status = pthread_detach( &t );
10599 if( status ) return status;
10603 #ifdef HAVE_LINUX_THREADS
10604 pthread_kill_other_threads_np();
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10614 ol_cv_pthread_lib_lpthreads=yes
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 ol_cv_pthread_lib_lpthreads=no
10630 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10632 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10633 ol_link_pthreads="-lpthreads"
10634 ol_link_threads=posix
10639 if test $ol_link_threads != no ; then
10640 cat >> confdefs.h <<\EOF
10641 #define HAVE_PTHREADS 1
10645 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10647 save_CPPFLAGS="$CPPFLAGS"
10649 LIBS="$LTHREAD_LIBS $LIBS"
10651 for ac_func in sched_yield pthread_yield
10653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10654 echo "configure:10655: checking for $ac_func" >&5
10655 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10661 /* System header to define __stub macros and hopefully few prototypes,
10662 which can conflict with char $ac_func(); below. */
10663 #include <assert.h>
10664 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10672 /* The GNU C library defines this for functions which it implements
10673 to always fail with ENOSYS. Some functions are actually named
10674 something starting with __ and the normal name is an alias. */
10675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10685 eval "ac_cv_func_$ac_func=yes"
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 eval "ac_cv_func_$ac_func=no"
10695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10696 echo "$ac_t""yes" 1>&6
10697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10698 cat >> confdefs.h <<EOF
10699 #define $ac_tr_func 1
10703 echo "$ac_t""no" 1>&6
10708 if test $ac_cv_func_sched_yield = no -a \
10709 $ac_cv_func_pthread_yield = no ; then
10710 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10711 echo "configure:10712: checking for sched_yield in -lrt" >&5
10712 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 ac_save_LIBS="$LIBS"
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 /* Override any gcc2 internal prototype to avoid an error. */
10722 /* We use char because int might match the return type of a gcc2
10723 builtin and then its argument prototype would still apply. */
10724 char sched_yield();
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10732 eval "ac_cv_lib_$ac_lib_var=yes"
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10737 eval "ac_cv_lib_$ac_lib_var=no"
10740 LIBS="$ac_save_LIBS"
10743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10744 echo "$ac_t""yes" 1>&6
10745 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10746 cat >> confdefs.h <<\EOF
10747 #define HAVE_SCHED_YIELD 1
10750 ac_cv_func_sched_yield=yes
10752 echo "$ac_t""no" 1>&6
10753 ac_cv_func_sched_yield=no
10757 if test $ac_cv_func_sched_yield = no -a \
10758 $ac_cv_func_pthread_yield = no ; then
10759 for ac_func in thr_yield
10761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10762 echo "configure:10763: checking for $ac_func" >&5
10763 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10766 cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 /* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char $ac_func(); below. */
10771 #include <assert.h>
10772 /* Override any gcc2 internal prototype to avoid an error. */
10773 /* We use char because int might match the return type of a gcc2
10774 builtin and then its argument prototype would still apply. */
10780 /* The GNU C library defines this for functions which it implements
10781 to always fail with ENOSYS. Some functions are actually named
10782 something starting with __ and the normal name is an alias. */
10783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10791 if { (eval echo configure:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10793 eval "ac_cv_func_$ac_func=yes"
10795 echo "configure: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10798 eval "ac_cv_func_$ac_func=no"
10803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10804 echo "$ac_t""yes" 1>&6
10805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10806 cat >> confdefs.h <<EOF
10807 #define $ac_tr_func 1
10811 echo "$ac_t""no" 1>&6
10816 if test $ac_cv_func_sched_yield = no -a \
10817 $ac_cv_func_pthread_yield = no -a \
10818 "$ac_cv_func_thr_yield" = no ; then
10819 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10822 for ac_func in pthread_kill pthread_rwlock_destroy
10824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10825 echo "configure:10826: checking for $ac_func" >&5
10826 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10829 cat > conftest.$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 /* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char $ac_func(); below. */
10834 #include <assert.h>
10835 /* Override any gcc2 internal prototype to avoid an error. */
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10843 /* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10854 if { (eval echo configure:10855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10856 eval "ac_cv_func_$ac_func=yes"
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10861 eval "ac_cv_func_$ac_func=no"
10866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10867 echo "$ac_t""yes" 1>&6
10868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10869 cat >> confdefs.h <<EOF
10870 #define $ac_tr_func 1
10874 echo "$ac_t""no" 1>&6
10879 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10880 echo "configure:10881: checking for pthread_detach with <pthread.h>" >&5
10881 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10889 #include <pthread.h>
10891 #define NULL (void*)0
10895 pthread_detach(NULL);
10898 if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10900 ol_cv_func_pthread_detach=yes
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10905 ol_cv_func_pthread_detach=no
10911 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10913 if test $ol_cv_func_pthread_detach = no ; then
10914 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10917 cat >> confdefs.h <<\EOF
10918 #define HAVE_PTHREAD_DETACH 1
10923 pthread_setconcurrency \
10924 pthread_getconcurrency \
10925 thr_setconcurrency \
10926 thr_getconcurrency \
10929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10930 echo "configure:10931: checking for $ac_func" >&5
10931 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10932 echo $ac_n "(cached) $ac_c" 1>&6
10934 cat > conftest.$ac_ext <<EOF
10935 #line 10936 "configure"
10936 #include "confdefs.h"
10937 /* System header to define __stub macros and hopefully few prototypes,
10938 which can conflict with char $ac_func(); below. */
10939 #include <assert.h>
10940 /* Override any gcc2 internal prototype to avoid an error. */
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10959 if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961 eval "ac_cv_func_$ac_func=yes"
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 eval "ac_cv_func_$ac_func=no"
10971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10972 echo "$ac_t""yes" 1>&6
10973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10974 cat >> confdefs.h <<EOF
10975 #define $ac_tr_func 1
10979 echo "$ac_t""no" 1>&6
10985 for ac_func in pthread_kill_other_threads_np
10987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10988 echo "configure:10989: checking for $ac_func" >&5
10989 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 /* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char $ac_func(); below. */
10997 #include <assert.h>
10998 /* Override any gcc2 internal prototype to avoid an error. */
10999 /* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11006 /* The GNU C library defines this for functions which it implements
11007 to always fail with ENOSYS. Some functions are actually named
11008 something starting with __ and the normal name is an alias. */
11009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11017 if { (eval echo configure:11018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11019 eval "ac_cv_func_$ac_func=yes"
11021 echo "configure: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11024 eval "ac_cv_func_$ac_func=no"
11029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11030 echo "$ac_t""yes" 1>&6
11031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11032 cat >> confdefs.h <<EOF
11033 #define $ac_tr_func 1
11037 echo "$ac_t""no" 1>&6
11041 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11042 echo "configure:11043: checking for LinuxThreads implementation" >&5
11043 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11046 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11049 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11054 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11055 echo "configure:11056: checking for LinuxThreads consistency" >&5
11056 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11057 echo $ac_n "(cached) $ac_c" 1>&6
11060 if test $ol_cv_header_linux_threads = yes -a \
11061 $ol_cv_sys_linux_threads = yes; then
11062 ol_cv_linux_threads=yes
11063 elif test $ol_cv_header_linux_threads = no -a \
11064 $ol_cv_sys_linux_threads = no; then
11065 ol_cv_linux_threads=no
11067 ol_cv_linux_threads=error
11072 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11075 if test $ol_cv_linux_threads = error; then
11076 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11079 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11080 echo "configure:11081: checking if pthread_create() works" >&5
11081 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11082 echo $ac_n "(cached) $ac_c" 1>&6
11085 if test "$cross_compiling" = yes; then
11086 ol_cv_pthread_create_works=yes
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 /* pthread test headers */
11092 #include <pthread.h>
11094 #define NULL (void*)0
11097 static void *task(p)
11100 return (void *) (p == NULL);
11104 int main(argc, argv)
11109 /* pthread test function */
11114 #ifdef HAVE_PTHREADS_FINAL
11115 /* Final pthreads */
11116 pthread_attr_t attr;
11118 status = pthread_attr_init(&attr);
11119 if( status ) return status;
11121 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11123 #if defined( PTHREAD_CREATE_JOINABLE )
11124 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11126 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11129 #ifdef PTHREAD_CREATE_DETACHED
11131 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11134 if( status ) return status;
11137 status = pthread_create( &t, &attr, task, NULL );
11138 if( status ) return status;
11140 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11142 /* give thread a chance to complete */
11143 /* it should remain joinable and hence detachable */
11146 status = pthread_detach( t );
11147 if( status ) return status;
11152 /* Draft 4 pthreads */
11153 status = pthread_create( &t, pthread_attr_default, task, NULL );
11154 if( status ) return status;
11157 /* give thread a chance to complete */
11158 /* it should remain joinable and hence detachable */
11161 status = pthread_detach( &t );
11162 if( status ) return status;
11166 #ifdef HAVE_LINUX_THREADS
11167 pthread_kill_other_threads_np();
11175 if { (eval echo configure:11176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11177 ol_cv_pthread_create_works=yes
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11182 ol_cv_pthread_create_works=no
11189 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11191 if test $ol_cv_pthread_create_works = no ; then
11192 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11195 if test $ol_with_yielding_select = auto ; then
11196 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11197 echo "configure:11198: checking if select yields when using pthreads" >&5
11198 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11199 echo $ac_n "(cached) $ac_c" 1>&6
11202 if test "$cross_compiling" = yes; then
11203 ol_cv_pthread_select_yields=cross
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11209 #include <sys/types.h>
11210 #include <sys/time.h>
11211 #include <unistd.h>
11212 #include <pthread.h>
11214 #define NULL (void*) 0
11217 static int fildes[2];
11219 static void *task(p)
11231 FD_SET(fildes[0], &rfds);
11233 /* we're not interested in any fds */
11234 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11241 exit(0); /* if we exit here, the select blocked the whole process */
11244 int main(argc, argv)
11250 /* create a pipe to select */
11251 if(pipe(&fildes[0])) {
11256 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11257 (void) pthread_setconcurrency(2);
11259 #ifdef HAVE_THR_SETCONCURRENCY
11260 /* Set Solaris LWP concurrency to 2 */
11261 thr_setconcurrency(2);
11265 #if HAVE_PTHREADS_D4
11266 pthread_create(&t, pthread_attr_default, task, NULL);
11268 pthread_create(&t, NULL, task, NULL);
11271 #if HAVE_SCHED_YIELD
11272 sched_yield(); /* make sure task runs first */
11274 #ifdef HAVE_PTHREAD_YIELD
11275 pthread_yield(); /* make sure task runs first */
11282 if { (eval echo configure:11283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11284 ol_cv_pthread_select_yields=no
11286 echo "configure: failed program was:" >&5
11287 cat conftest.$ac_ext >&5
11289 ol_cv_pthread_select_yields=yes
11296 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11298 if test $ol_cv_pthread_select_yields = cross ; then
11299 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11302 if test $ol_cv_pthread_select_yields = yes ; then
11303 ol_with_yielding_select=yes
11307 CPPFLAGS="$save_CPPFLAGS"
11310 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11314 if test $ol_with_threads = posix ; then
11315 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11319 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11320 -o $ol_with_threads = mach ; then
11322 for ac_hdr in mach/cthreads.h
11324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11326 echo "configure:11327: checking for $ac_hdr" >&5
11327 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11328 echo $ac_n "(cached) $ac_c" 1>&6
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11336 { (eval echo configure:11337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11338 if test -z "$ac_err"; then
11340 eval "ac_cv_header_$ac_safe=yes"
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 eval "ac_cv_header_$ac_safe=no"
11350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11351 echo "$ac_t""yes" 1>&6
11352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11353 cat >> confdefs.h <<EOF
11354 #define $ac_tr_hdr 1
11358 echo "$ac_t""no" 1>&6
11362 if test $ac_cv_header_mach_cthreads_h = yes ; then
11363 ol_with_threads=found
11365 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11366 echo "configure:11367: checking for cthread_fork" >&5
11367 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11370 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char cthread_fork(); below. */
11375 #include <assert.h>
11376 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11379 char cthread_fork();
11384 /* The GNU C library defines this for functions which it implements
11385 to always fail with ENOSYS. Some functions are actually named
11386 something starting with __ and the normal name is an alias. */
11387 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11395 if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11397 eval "ac_cv_func_cthread_fork=yes"
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11402 eval "ac_cv_func_cthread_fork=no"
11407 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11408 echo "$ac_t""yes" 1>&6
11409 ol_link_threads=yes
11411 echo "$ac_t""no" 1>&6
11415 if test $ol_link_threads = no ; then
11416 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11417 echo "configure:11418: checking for cthread_fork with -all_load" >&5
11418 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11423 LIBS="-all_load $LIBS"
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11427 #include <mach/cthreads.h>
11430 cthread_fork((void *)0, (void *)0);
11434 if { (eval echo configure:11435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11436 ol_cv_cthread_all_load=yes
11438 echo "configure: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11441 ol_cv_cthread_all_load=no
11448 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11450 if test $ol_cv_cthread_all_load = yes ; then
11451 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11452 ol_link_threads=mach
11456 if test $ol_link_threads != no ; then
11457 : check for cthread specific functionality here
11458 cat >> confdefs.h <<\EOF
11459 #define HAVE_MACH_CTHREADS 1
11463 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11467 if test $ol_with_threads = mach ; then
11468 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11472 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11473 -o $ol_with_threads = pth ; then
11475 for ac_hdr in pth.h
11477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11479 echo "configure:11480: checking for $ac_hdr" >&5
11480 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11481 echo $ac_n "(cached) $ac_c" 1>&6
11483 cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure"
11485 #include "confdefs.h"
11488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11489 { (eval echo configure:11490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11491 if test -z "$ac_err"; then
11493 eval "ac_cv_header_$ac_safe=yes"
11496 echo "configure: failed program was:" >&5
11497 cat conftest.$ac_ext >&5
11499 eval "ac_cv_header_$ac_safe=no"
11503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11504 echo "$ac_t""yes" 1>&6
11505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11506 cat >> confdefs.h <<EOF
11507 #define $ac_tr_hdr 1
11511 echo "$ac_t""no" 1>&6
11516 if test $ac_cv_header_pth_h = yes ; then
11517 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11518 echo "configure:11519: checking for pth_version in -lpth" >&5
11519 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11523 ac_save_LIBS="$LIBS"
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 /* Override any gcc2 internal prototype to avoid an error. */
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char pth_version();
11537 if { (eval echo configure:11538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11539 eval "ac_cv_lib_$ac_lib_var=yes"
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11544 eval "ac_cv_lib_$ac_lib_var=no"
11547 LIBS="$ac_save_LIBS"
11550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11551 echo "$ac_t""yes" 1>&6
11554 echo "$ac_t""no" 1>&6
11559 if test $have_pth = yes ; then
11560 cat >> confdefs.h <<\EOF
11561 #define HAVE_GNU_PTH 1
11564 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11565 ol_link_threads=pth
11567 if test $ol_with_yielding_select = auto ; then
11568 ol_with_yielding_select=yes
11574 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11575 -o $ol_with_threads = lwp ; then
11577 for ac_hdr in thread.h synch.h
11579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11581 echo "configure:11582: checking for $ac_hdr" >&5
11582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11591 { (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11593 if test -z "$ac_err"; then
11595 eval "ac_cv_header_$ac_safe=yes"
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11601 eval "ac_cv_header_$ac_safe=no"
11605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11608 cat >> confdefs.h <<EOF
11609 #define $ac_tr_hdr 1
11613 echo "$ac_t""no" 1>&6
11617 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11618 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11619 echo "configure:11620: checking for thr_create in -lthread" >&5
11620 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11621 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11622 echo $ac_n "(cached) $ac_c" 1>&6
11624 ac_save_LIBS="$LIBS"
11625 LIBS="-lthread $LIBS"
11626 cat > conftest.$ac_ext <<EOF
11627 #line 11628 "configure"
11628 #include "confdefs.h"
11629 /* Override any gcc2 internal prototype to avoid an error. */
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11640 eval "ac_cv_lib_$ac_lib_var=yes"
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11645 eval "ac_cv_lib_$ac_lib_var=no"
11648 LIBS="$ac_save_LIBS"
11651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11652 echo "$ac_t""yes" 1>&6
11655 echo "$ac_t""no" 1>&6
11660 if test $have_thr = yes ; then
11661 cat >> confdefs.h <<\EOF
11665 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11666 ol_link_threads=thr
11668 if test $ol_with_yielding_select = auto ; then
11669 ol_with_yielding_select=yes
11673 thr_setconcurrency \
11674 thr_getconcurrency \
11677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11678 echo "configure:11679: checking for $ac_func" >&5
11679 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11680 echo $ac_n "(cached) $ac_c" 1>&6
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 /* System header to define __stub macros and hopefully few prototypes,
11686 which can conflict with char $ac_func(); below. */
11687 #include <assert.h>
11688 /* Override any gcc2 internal prototype to avoid an error. */
11689 /* We use char because int might match the return type of a gcc2
11690 builtin and then its argument prototype would still apply. */
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11707 if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11709 eval "ac_cv_func_$ac_func=yes"
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11714 eval "ac_cv_func_$ac_func=no"
11719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11722 cat >> confdefs.h <<EOF
11723 #define $ac_tr_func 1
11727 echo "$ac_t""no" 1>&6
11734 for ac_hdr in lwp/lwp.h
11736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11738 echo "configure:11739: checking for $ac_hdr" >&5
11739 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11748 { (eval echo configure:11749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11750 if test -z "$ac_err"; then
11752 eval "ac_cv_header_$ac_safe=yes"
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11758 eval "ac_cv_header_$ac_safe=no"
11762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11763 echo "$ac_t""yes" 1>&6
11764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11765 cat >> confdefs.h <<EOF
11766 #define $ac_tr_hdr 1
11770 echo "$ac_t""no" 1>&6
11774 if test $ac_cv_header_lwp_lwp_h = yes ; then
11775 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11776 echo "configure:11777: checking for lwp_create in -llwp" >&5
11777 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11781 ac_save_LIBS="$LIBS"
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797 eval "ac_cv_lib_$ac_lib_var=yes"
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11802 eval "ac_cv_lib_$ac_lib_var=no"
11805 LIBS="$ac_save_LIBS"
11808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11809 echo "$ac_t""yes" 1>&6
11812 echo "$ac_t""no" 1>&6
11817 if test $have_lwp = yes ; then
11818 cat >> confdefs.h <<\EOF
11822 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11823 ol_link_threads=lwp
11825 if test $ol_with_yielding_select = auto ; then
11826 ol_with_yielding_select=no
11832 if test $ol_with_yielding_select = yes ; then
11833 cat >> confdefs.h <<\EOF
11834 #define HAVE_YIELDING_SELECT 1
11839 if test $ol_with_threads = manual ; then
11840 ol_link_threads=yes
11842 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11844 for ac_hdr in pthread.h sched.h
11846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11848 echo "configure:11849: checking for $ac_hdr" >&5
11849 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11850 echo $ac_n "(cached) $ac_c" 1>&6
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11858 { (eval echo configure:11859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11860 if test -z "$ac_err"; then
11862 eval "ac_cv_header_$ac_safe=yes"
11865 echo "configure: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11868 eval "ac_cv_header_$ac_safe=no"
11872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11873 echo "$ac_t""yes" 1>&6
11874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11875 cat >> confdefs.h <<EOF
11876 #define $ac_tr_hdr 1
11880 echo "$ac_t""no" 1>&6
11884 for ac_func in sched_yield pthread_yield
11886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11887 echo "configure:11888: checking for $ac_func" >&5
11888 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11889 echo $ac_n "(cached) $ac_c" 1>&6
11891 cat > conftest.$ac_ext <<EOF
11892 #line 11893 "configure"
11893 #include "confdefs.h"
11894 /* System header to define __stub macros and hopefully few prototypes,
11895 which can conflict with char $ac_func(); below. */
11896 #include <assert.h>
11897 /* Override any gcc2 internal prototype to avoid an error. */
11898 /* We use char because int might match the return type of a gcc2
11899 builtin and then its argument prototype would still apply. */
11905 /* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 eval "ac_cv_func_$ac_func=yes"
11920 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11923 eval "ac_cv_func_$ac_func=no"
11928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11929 echo "$ac_t""yes" 1>&6
11930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11931 cat >> confdefs.h <<EOF
11932 #define $ac_tr_func 1
11936 echo "$ac_t""no" 1>&6
11941 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11942 echo "configure:11943: checking for LinuxThreads pthread.h" >&5
11943 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
11946 cat > conftest.$ac_ext <<EOF
11947 #line 11948 "configure"
11948 #include "confdefs.h"
11949 #include <pthread.h>
11951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11952 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11954 ol_cv_header_linux_threads=yes
11957 ol_cv_header_linux_threads=no
11964 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11965 if test $ol_cv_header_linux_threads = yes; then
11966 cat >> confdefs.h <<\EOF
11967 #define HAVE_LINUX_THREADS 1
11973 for ac_hdr in mach/cthreads.h
11975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11977 echo "configure:11978: checking for $ac_hdr" >&5
11978 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11979 echo $ac_n "(cached) $ac_c" 1>&6
11981 cat > conftest.$ac_ext <<EOF
11982 #line 11983 "configure"
11983 #include "confdefs.h"
11986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11987 { (eval echo configure:11988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11989 if test -z "$ac_err"; then
11991 eval "ac_cv_header_$ac_safe=yes"
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11997 eval "ac_cv_header_$ac_safe=no"
12001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12004 cat >> confdefs.h <<EOF
12005 #define $ac_tr_hdr 1
12009 echo "$ac_t""no" 1>&6
12013 for ac_hdr in lwp/lwp.h
12015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12017 echo "configure:12018: checking for $ac_hdr" >&5
12018 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12019 echo $ac_n "(cached) $ac_c" 1>&6
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12027 { (eval echo configure:12028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12029 if test -z "$ac_err"; then
12031 eval "ac_cv_header_$ac_safe=yes"
12034 echo "configure: failed program was:" >&5
12035 cat conftest.$ac_ext >&5
12037 eval "ac_cv_header_$ac_safe=no"
12041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12042 echo "$ac_t""yes" 1>&6
12043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12044 cat >> confdefs.h <<EOF
12045 #define $ac_tr_hdr 1
12049 echo "$ac_t""no" 1>&6
12053 for ac_hdr in thread.h synch.h
12055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12057 echo "configure:12058: checking for $ac_hdr" >&5
12058 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12059 echo $ac_n "(cached) $ac_c" 1>&6
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12067 { (eval echo configure:12068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12069 if test -z "$ac_err"; then
12071 eval "ac_cv_header_$ac_safe=yes"
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12077 eval "ac_cv_header_$ac_safe=no"
12081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12082 echo "$ac_t""yes" 1>&6
12083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12084 cat >> confdefs.h <<EOF
12085 #define $ac_tr_hdr 1
12089 echo "$ac_t""no" 1>&6
12095 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12096 cat >> confdefs.h <<\EOF
12097 #define REENTRANT 1
12100 cat >> confdefs.h <<\EOF
12101 #define _REENTRANT 1
12104 cat >> confdefs.h <<\EOF
12105 #define THREAD_SAFE 1
12108 cat >> confdefs.h <<\EOF
12109 #define _THREAD_SAFE 1
12112 cat >> confdefs.h <<\EOF
12113 #define THREADSAFE 1
12116 cat >> confdefs.h <<\EOF
12117 #define _THREADSAFE 1
12120 cat >> confdefs.h <<\EOF
12121 #define _SGI_MP_SOURCE 1
12125 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12126 echo "configure:12127: checking for thread specific errno" >&5
12127 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12139 if { (eval echo configure:12140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12141 ol_cv_errno_thread_specific=yes
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12146 ol_cv_errno_thread_specific=no
12152 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12154 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12155 echo "configure:12156: checking for thread specific h_errno" >&5
12156 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12160 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure"
12162 #include "confdefs.h"
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 ol_cv_h_errno_thread_specific=yes
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 ol_cv_h_errno_thread_specific=no
12181 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12183 if test $ol_cv_errno_thread_specific != yes \
12184 -o $ol_cv_h_errno_thread_specific != yes ; then
12185 LIBS="$LTHREAD_LIBS $LIBS"
12191 if test $ol_link_threads = no ; then
12192 if test $ol_with_threads = yes ; then
12193 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12196 if test $ol_with_threads = auto ; then
12197 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12201 cat >> confdefs.h <<\EOF
12202 #define NO_THREADS 1
12208 if test $ol_link_threads != no ; then
12209 cat >> confdefs.h <<\EOF
12210 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12217 if test $ol_with_ldbm_api = auto \
12218 -o $ol_with_ldbm_api = berkeley \
12219 -o $ol_with_ldbm_api = bcompat ; then
12221 if test $ol_with_ldbm_api = bcompat; then \
12222 ol_cv_berkeley_db=no
12223 for ac_hdr in db_185.h db.h
12225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12227 echo "configure:12228: checking for $ac_hdr" >&5
12228 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12229 echo $ac_n "(cached) $ac_c" 1>&6
12231 cat > conftest.$ac_ext <<EOF
12232 #line 12233 "configure"
12233 #include "confdefs.h"
12236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12237 { (eval echo configure:12238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12239 if test -z "$ac_err"; then
12241 eval "ac_cv_header_$ac_safe=yes"
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12247 eval "ac_cv_header_$ac_safe=no"
12251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12252 echo "$ac_t""yes" 1>&6
12253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12254 cat >> confdefs.h <<EOF
12255 #define $ac_tr_hdr 1
12259 echo "$ac_t""no" 1>&6
12263 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12264 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12265 echo "configure:12266: checking if Berkeley DB header compatibility" >&5
12266 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12270 cat > conftest.$ac_ext <<EOF
12271 #line 12272 "configure"
12272 #include "confdefs.h"
12275 # include <db_185.h>
12280 /* this check could be improved */
12281 #ifndef DB_VERSION_MAJOR
12282 # define DB_VERSION_MAJOR 1
12285 #if DB_VERSION_MAJOR == 1
12290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 egrep "__db_version_1" >/dev/null 2>&1; then
12293 ol_cv_header_db1=yes
12296 ol_cv_header_db1=no
12302 echo "$ac_t""$ol_cv_header_db1" 1>&6
12304 if test $ol_cv_header_db1 = yes ; then
12306 if test $ol_cv_lib_db = no ; then
12307 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12308 echo "configure:12309: checking for Berkeley DB link (default)" >&5
12309 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12310 echo $ac_n "(cached) $ac_c" 1>&6
12315 LIBS="$ol_DB_LIB $LIBS"
12317 cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12321 #ifdef HAVE_DB_185_H
12322 # include <db_185.h>
12327 #ifndef DB_VERSION_MAJOR
12328 # define DB_VERSION_MAJOR 1
12332 #define NULL ((void*)0)
12337 #if DB_VERSION_MAJOR > 1
12340 int major, minor, patch;
12342 version = db_version( &major, &minor, &patch );
12344 if( major != DB_VERSION_MAJOR ||
12345 minor < DB_VERSION_MINOR )
12347 printf("Berkeley DB version mismatch\n"
12348 "\texpected: %s\n\tgot: %s\n",
12349 DB_VERSION_STRING, version);
12355 #if DB_VERSION_MAJOR > 2
12356 db_env_create( NULL, 0 );
12357 #elif DB_VERSION_MAJOR > 1
12358 db_appexit( NULL );
12360 (void) dbopen( NULL, 0, 0, 0, NULL);
12365 if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12369 echo "configure: failed program was:" >&5
12370 cat conftest.$ac_ext >&5
12380 echo "$ac_t""$ol_cv_db_none" 1>&6
12382 if test $ol_cv_db_none = yes ; then
12387 if test $ol_cv_lib_db = no ; then
12388 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12389 echo "configure:12390: checking for Berkeley DB link (-ldb)" >&5
12390 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12391 echo $ac_n "(cached) $ac_c" 1>&6
12396 LIBS="$ol_DB_LIB $LIBS"
12398 cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12402 #ifdef HAVE_DB_185_H
12403 # include <db_185.h>
12408 #ifndef DB_VERSION_MAJOR
12409 # define DB_VERSION_MAJOR 1
12413 #define NULL ((void*)0)
12418 #if DB_VERSION_MAJOR > 1
12421 int major, minor, patch;
12423 version = db_version( &major, &minor, &patch );
12425 if( major != DB_VERSION_MAJOR ||
12426 minor < DB_VERSION_MINOR )
12428 printf("Berkeley DB version mismatch\n"
12429 "\texpected: %s\n\tgot: %s\n",
12430 DB_VERSION_STRING, version);
12436 #if DB_VERSION_MAJOR > 2
12437 db_env_create( NULL, 0 );
12438 #elif DB_VERSION_MAJOR > 1
12439 db_appexit( NULL );
12441 (void) dbopen( NULL, 0, 0, 0, NULL);
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12461 echo "$ac_t""$ol_cv_db_db" 1>&6
12463 if test $ol_cv_db_db = yes ; then
12468 if test $ol_cv_lib_db = no ; then
12469 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12470 echo "configure:12471: checking for Berkeley DB link (-ldb3)" >&5
12471 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12477 LIBS="$ol_DB_LIB $LIBS"
12479 cat > conftest.$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12483 #ifdef HAVE_DB_185_H
12484 # include <db_185.h>
12489 #ifndef DB_VERSION_MAJOR
12490 # define DB_VERSION_MAJOR 1
12494 #define NULL ((void*)0)
12499 #if DB_VERSION_MAJOR > 1
12502 int major, minor, patch;
12504 version = db_version( &major, &minor, &patch );
12506 if( major != DB_VERSION_MAJOR ||
12507 minor < DB_VERSION_MINOR )
12509 printf("Berkeley DB version mismatch\n"
12510 "\texpected: %s\n\tgot: %s\n",
12511 DB_VERSION_STRING, version);
12517 #if DB_VERSION_MAJOR > 2
12518 db_env_create( NULL, 0 );
12519 #elif DB_VERSION_MAJOR > 1
12520 db_appexit( NULL );
12522 (void) dbopen( NULL, 0, 0, 0, NULL);
12527 if { (eval echo configure:12528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12531 echo "configure: failed program was:" >&5
12532 cat conftest.$ac_ext >&5
12542 echo "$ac_t""$ol_cv_db_db3" 1>&6
12544 if test $ol_cv_db_db3 = yes ; then
12549 if test $ol_cv_lib_db = no ; then
12550 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12551 echo "configure:12552: checking for Berkeley DB link (-ldb2)" >&5
12552 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12553 echo $ac_n "(cached) $ac_c" 1>&6
12558 LIBS="$ol_DB_LIB $LIBS"
12560 cat > conftest.$ac_ext <<EOF
12561 #line 12562 "configure"
12562 #include "confdefs.h"
12564 #ifdef HAVE_DB_185_H
12565 # include <db_185.h>
12570 #ifndef DB_VERSION_MAJOR
12571 # define DB_VERSION_MAJOR 1
12575 #define NULL ((void*)0)
12580 #if DB_VERSION_MAJOR > 1
12583 int major, minor, patch;
12585 version = db_version( &major, &minor, &patch );
12587 if( major != DB_VERSION_MAJOR ||
12588 minor < DB_VERSION_MINOR )
12590 printf("Berkeley DB version mismatch\n"
12591 "\texpected: %s\n\tgot: %s\n",
12592 DB_VERSION_STRING, version);
12598 #if DB_VERSION_MAJOR > 2
12599 db_env_create( NULL, 0 );
12600 #elif DB_VERSION_MAJOR > 1
12601 db_appexit( NULL );
12603 (void) dbopen( NULL, 0, 0, 0, NULL);
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12623 echo "$ac_t""$ol_cv_db_db2" 1>&6
12625 if test $ol_cv_db_db2 = yes ; then
12630 if test $ol_cv_lib_db = no ; then
12631 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12632 echo "configure:12633: checking for Berkeley DB link (-ldb1)" >&5
12633 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12639 LIBS="$ol_DB_LIB $LIBS"
12641 cat > conftest.$ac_ext <<EOF
12642 #line 12643 "configure"
12643 #include "confdefs.h"
12645 #ifdef HAVE_DB_185_H
12646 # include <db_185.h>
12651 #ifndef DB_VERSION_MAJOR
12652 # define DB_VERSION_MAJOR 1
12656 #define NULL ((void*)0)
12661 #if DB_VERSION_MAJOR > 1
12664 int major, minor, patch;
12666 version = db_version( &major, &minor, &patch );
12668 if( major != DB_VERSION_MAJOR ||
12669 minor < DB_VERSION_MINOR )
12671 printf("Berkeley DB version mismatch\n"
12672 "\texpected: %s\n\tgot: %s\n",
12673 DB_VERSION_STRING, version);
12679 #if DB_VERSION_MAJOR > 2
12680 db_env_create( NULL, 0 );
12681 #elif DB_VERSION_MAJOR > 1
12682 db_appexit( NULL );
12684 (void) dbopen( NULL, 0, 0, 0, NULL);
12689 if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12704 echo "$ac_t""$ol_cv_db_db1" 1>&6
12706 if test $ol_cv_db_db1 = yes ; then
12712 if test "$ol_cv_lib_db" != no ; then
12713 ol_cv_berkeley_db=yes
12719 ol_cv_berkeley_db=no
12722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12724 echo "configure:12725: checking for $ac_hdr" >&5
12725 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12726 echo $ac_n "(cached) $ac_c" 1>&6
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12730 "configure"
12730 #include "confdefs.h"
12733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12734 { (eval echo configure:12735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12736 if test -z "$ac_err"; then
12738 eval "ac_cv_header_$ac_safe=yes"
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12744 eval "ac_cv_header_$ac_safe=no"
12748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12749 echo "$ac_t""yes" 1>&6
12750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12751 cat >> confdefs.h <<EOF
12752 #define $ac_tr_hdr 1
12756 echo "$ac_t""no" 1>&6
12760 if test $ac_cv_header_db_h = yes; then
12762 if test $ol_cv_lib_db = no ; then
12763 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12764 echo "configure:12765: checking for Berkeley DB link (default)" >&5
12765 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12771 LIBS="$ol_DB_LIB $LIBS"
12773 cat > conftest.$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12777 #ifdef HAVE_DB_185_H
12778 # include <db_185.h>
12783 #ifndef DB_VERSION_MAJOR
12784 # define DB_VERSION_MAJOR 1
12788 #define NULL ((void*)0)
12793 #if DB_VERSION_MAJOR > 1
12796 int major, minor, patch;
12798 version = db_version( &major, &minor, &patch );
12800 if( major != DB_VERSION_MAJOR ||
12801 minor < DB_VERSION_MINOR )
12803 printf("Berkeley DB version mismatch\n"
12804 "\texpected: %s\n\tgot: %s\n",
12805 DB_VERSION_STRING, version);
12811 #if DB_VERSION_MAJOR > 2
12812 db_env_create( NULL, 0 );
12813 #elif DB_VERSION_MAJOR > 1
12814 db_appexit( NULL );
12816 (void) dbopen( NULL, 0, 0, 0, NULL);
12821 if { (eval echo configure:12822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12836 echo "$ac_t""$ol_cv_db_none" 1>&6
12838 if test $ol_cv_db_none = yes ; then
12843 if test $ol_cv_lib_db = no ; then
12844 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12845 echo "configure:12846: checking for Berkeley DB link (-ldb)" >&5
12846 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12847 echo $ac_n "(cached) $ac_c" 1>&6
12852 LIBS="$ol_DB_LIB $LIBS"
12854 cat > conftest.$ac_ext <<EOF
12855 #line 12856 "configure"
12856 #include "confdefs.h"
12858 #ifdef HAVE_DB_185_H
12859 # include <db_185.h>
12864 #ifndef DB_VERSION_MAJOR
12865 # define DB_VERSION_MAJOR 1
12869 #define NULL ((void*)0)
12874 #if DB_VERSION_MAJOR > 1
12877 int major, minor, patch;
12879 version = db_version( &major, &minor, &patch );
12881 if( major != DB_VERSION_MAJOR ||
12882 minor < DB_VERSION_MINOR )
12884 printf("Berkeley DB version mismatch\n"
12885 "\texpected: %s\n\tgot: %s\n",
12886 DB_VERSION_STRING, version);
12892 #if DB_VERSION_MAJOR > 2
12893 db_env_create( NULL, 0 );
12894 #elif DB_VERSION_MAJOR > 1
12895 db_appexit( NULL );
12897 (void) dbopen( NULL, 0, 0, 0, NULL);
12902 if { (eval echo configure:12903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12906 echo "configure: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12917 echo "$ac_t""$ol_cv_db_db" 1>&6
12919 if test $ol_cv_db_db = yes ; then
12924 if test $ol_cv_lib_db = no ; then
12925 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12926 echo "configure:12927: checking for Berkeley DB link (-ldb3)" >&5
12927 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12928 echo $ac_n "(cached) $ac_c" 1>&6
12933 LIBS="$ol_DB_LIB $LIBS"
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12939 #ifdef HAVE_DB_185_H
12940 # include <db_185.h>
12945 #ifndef DB_VERSION_MAJOR
12946 # define DB_VERSION_MAJOR 1
12950 #define NULL ((void*)0)
12955 #if DB_VERSION_MAJOR > 1
12958 int major, minor, patch;
12960 version = db_version( &major, &minor, &patch );
12962 if( major != DB_VERSION_MAJOR ||
12963 minor < DB_VERSION_MINOR )
12965 printf("Berkeley DB version mismatch\n"
12966 "\texpected: %s\n\tgot: %s\n",
12967 DB_VERSION_STRING, version);
12973 #if DB_VERSION_MAJOR > 2
12974 db_env_create( NULL, 0 );
12975 #elif DB_VERSION_MAJOR > 1
12976 db_appexit( NULL );
12978 (void) dbopen( NULL, 0, 0, 0, NULL);
12983 if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12998 echo "$ac_t""$ol_cv_db_db3" 1>&6
13000 if test $ol_cv_db_db3 = yes ; then
13005 if test $ol_cv_lib_db = no ; then
13006 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13007 echo "configure:13008: checking for Berkeley DB link (-ldb2)" >&5
13008 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13014 LIBS="$ol_DB_LIB $LIBS"
13016 cat > conftest.$ac_ext <<EOF
13017 #line 13018 "configure"
13018 #include "confdefs.h"
13020 #ifdef HAVE_DB_185_H
13021 # include <db_185.h>
13026 #ifndef DB_VERSION_MAJOR
13027 # define DB_VERSION_MAJOR 1
13031 #define NULL ((void*)0)
13036 #if DB_VERSION_MAJOR > 1
13039 int major, minor, patch;
13041 version = db_version( &major, &minor, &patch );
13043 if( major != DB_VERSION_MAJOR ||
13044 minor < DB_VERSION_MINOR )
13046 printf("Berkeley DB version mismatch\n"
13047 "\texpected: %s\n\tgot: %s\n",
13048 DB_VERSION_STRING, version);
13054 #if DB_VERSION_MAJOR > 2
13055 db_env_create( NULL, 0 );
13056 #elif DB_VERSION_MAJOR > 1
13057 db_appexit( NULL );
13059 (void) dbopen( NULL, 0, 0, 0, NULL);
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13079 echo "$ac_t""$ol_cv_db_db2" 1>&6
13081 if test $ol_cv_db_db2 = yes ; then
13086 if test $ol_cv_lib_db = no ; then
13087 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13088 echo "configure:13089: checking for Berkeley DB link (-ldb1)" >&5
13089 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13095 LIBS="$ol_DB_LIB $LIBS"
13097 cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure"
13099 #include "confdefs.h"
13101 #ifdef HAVE_DB_185_H
13102 # include <db_185.h>
13107 #ifndef DB_VERSION_MAJOR
13108 # define DB_VERSION_MAJOR 1
13112 #define NULL ((void*)0)
13117 #if DB_VERSION_MAJOR > 1
13120 int major, minor, patch;
13122 version = db_version( &major, &minor, &patch );
13124 if( major != DB_VERSION_MAJOR ||
13125 minor < DB_VERSION_MINOR )
13127 printf("Berkeley DB version mismatch\n"
13128 "\texpected: %s\n\tgot: %s\n",
13129 DB_VERSION_STRING, version);
13135 #if DB_VERSION_MAJOR > 2
13136 db_env_create( NULL, 0 );
13137 #elif DB_VERSION_MAJOR > 1
13138 db_appexit( NULL );
13140 (void) dbopen( NULL, 0, 0, 0, NULL);
13145 if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13160 echo "$ac_t""$ol_cv_db_db1" 1>&6
13162 if test $ol_cv_db_db1 = yes ; then
13168 if test "$ol_cv_lib_db" != no ; then
13169 ol_cv_berkeley_db=yes
13170 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13171 echo "configure:13172: checking for Berkeley DB thread support" >&5
13172 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13173 echo $ac_n "(cached) $ac_c" 1>&6
13177 if test $ol_cv_lib_db != yes ; then
13178 LIBS="$ol_cv_lib_db"
13181 if test "$cross_compiling" = yes; then
13182 ol_cv_berkeley_db_thread=cross
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13188 #ifdef HAVE_DB_185_H
13194 #define NULL ((void *)0)
13199 u_int32_t flags = DB_CREATE |
13205 #if DB_VERSION_MAJOR > 2
13206 DB_ENV *env = NULL;
13208 rc = db_env_create( &env, 0 );
13210 flags |= DB_INIT_MPOOL;
13211 #ifdef DB_MPOOL_PRIVATE
13212 flags |= DB_MPOOL_PRIVATE;
13216 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13220 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13221 rc = env->open( env, NULL, flags, 0 );
13223 rc = env->open( env, NULL, NULL, flags, 0 );
13227 rc = env->close( env, 0 );
13231 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13237 memset( &env, '\0', sizeof(env) );
13239 rc = db_appinit( NULL, NULL, &env, flags );
13242 db_appexit( &env );
13245 unlink("__db_mpool.share");
13246 unlink("__db_lock.share");
13252 if { (eval echo configure:13253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13254 ol_cv_berkeley_db_thread=yes
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13259 ol_cv_berkeley_db_thread=no
13267 if test $ol_cv_berkeley_db_thread != no ; then
13268 cat >> confdefs.h <<\EOF
13269 #define HAVE_BERKELEY_DB_THREAD 1
13276 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13282 if test $ol_cv_berkeley_db != no ; then
13283 cat >> confdefs.h <<\EOF
13284 #define HAVE_BERKELEY_DB 1
13288 ol_link_ldbm=berkeley
13289 ol_with_ldbm_api=db
13291 if test $ol_with_ldbm_type = hash ; then
13292 cat >> confdefs.h <<\EOF
13293 #define LDBM_USE_DBHASH 1
13297 cat >> confdefs.h <<\EOF
13298 #define LDBM_USE_DBBTREE 1
13303 if test $ol_cv_lib_db != yes ; then
13304 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13309 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13310 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13311 ol_with_ldbm_api=none
13314 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13315 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13316 echo "configure:13317: checking for MDBM library" >&5
13317 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13318 echo $ac_n "(cached) $ac_c" 1>&6
13321 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13322 echo "configure:13323: checking for mdbm_set_chain" >&5
13323 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13324 echo $ac_n "(cached) $ac_c" 1>&6
13326 cat > conftest.$ac_ext <<EOF
13327 #line 13328 "configure"
13328 #include "confdefs.h"
13329 /* System header to define __stub macros and hopefully few prototypes,
13330 which can conflict with char mdbm_set_chain(); below. */
13331 #include <assert.h>
13332 /* Override any gcc2 internal prototype to avoid an error. */
13333 /* We use char because int might match the return type of a gcc2
13334 builtin and then its argument prototype would still apply. */
13335 char mdbm_set_chain();
13340 /* The GNU C library defines this for functions which it implements
13341 to always fail with ENOSYS. Some functions are actually named
13342 something starting with __ and the normal name is an alias. */
13343 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13346 f = mdbm_set_chain;
13351 if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13353 eval "ac_cv_func_mdbm_set_chain=yes"
13355 echo "configure: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13358 eval "ac_cv_func_mdbm_set_chain=no"
13363 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13364 echo "$ac_t""yes" 1>&6
13367 echo "$ac_t""no" 1>&6
13369 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13370 echo "configure:13371: checking for mdbm_set_chain in -lmdbm" >&5
13371 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13373 echo $ac_n "(cached) $ac_c" 1>&6
13375 ac_save_LIBS="$LIBS"
13376 LIBS="-lmdbm $LIBS"
13377 cat > conftest.$ac_ext <<EOF
13378 #line 13379 "configure"
13379 #include "confdefs.h"
13380 /* Override any gcc2 internal prototype to avoid an error. */
13381 /* We use char because int might match the return type of a gcc2
13382 builtin and then its argument prototype would still apply. */
13383 char mdbm_set_chain();
13389 if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13391 eval "ac_cv_lib_$ac_lib_var=yes"
13393 echo "configure: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13396 eval "ac_cv_lib_$ac_lib_var=no"
13399 LIBS="$ac_save_LIBS"
13402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13403 echo "$ac_t""yes" 1>&6
13404 ol_cv_lib_mdbm=-lmdbm
13406 echo "$ac_t""no" 1>&6
13417 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13420 for ac_hdr in mdbm.h
13422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13424 echo "configure:13425: checking for $ac_hdr" >&5
13425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13426 echo $ac_n "(cached) $ac_c" 1>&6
13428 cat > conftest.$ac_ext <<EOF
13429 #line 13430 "configure"
13430 #include "confdefs.h"
13433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13434 { (eval echo configure:13435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13436 if test -z "$ac_err"; then
13438 eval "ac_cv_header_$ac_safe=yes"
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 eval "ac_cv_header_$ac_safe=no"
13448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13451 cat >> confdefs.h <<EOF
13452 #define $ac_tr_hdr 1
13456 echo "$ac_t""no" 1>&6
13460 echo $ac_n "checking for db""... $ac_c" 1>&6
13461 echo "configure:13462: checking for db" >&5
13462 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13463 echo $ac_n "(cached) $ac_c" 1>&6
13466 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13474 echo "$ac_t""$ol_cv_mdbm" 1>&6
13475 if test $ol_cv_mdbm = yes ; then
13476 cat >> confdefs.h <<\EOF
13477 #define HAVE_MDBM 1
13483 if test $ol_cv_mdbm = yes ; then
13485 ol_with_ldbm_api=mdbm
13486 if test $ol_cv_lib_mdbm != yes ; then
13487 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13492 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13493 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13494 echo "configure:13495: checking for GDBM library" >&5
13495 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13496 echo $ac_n "(cached) $ac_c" 1>&6
13499 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13500 echo "configure:13501: checking for gdbm_open" >&5
13501 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
13504 cat > conftest.$ac_ext <<EOF
13505 #line 13506 "configure"
13506 #include "confdefs.h"
13507 /* System header to define __stub macros and hopefully few prototypes,
13508 which can conflict with char gdbm_open(); below. */
13509 #include <assert.h>
13510 /* Override any gcc2 internal prototype to avoid an error. */
13511 /* We use char because int might match the return type of a gcc2
13512 builtin and then its argument prototype would still apply. */
13518 /* The GNU C library defines this for functions which it implements
13519 to always fail with ENOSYS. Some functions are actually named
13520 something starting with __ and the normal name is an alias. */
13521 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
13529 if { (eval echo configure:13530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13531 eval "ac_cv_func_gdbm_open=yes"
13533 echo "configure: failed program was:" >&5
13534 cat conftest.$ac_ext >&5
13536 eval "ac_cv_func_gdbm_open=no"
13541 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
13542 echo "$ac_t""yes" 1>&6
13545 echo "$ac_t""no" 1>&6
13547 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
13548 echo "configure:13549: checking for gdbm_open in -lgdbm" >&5
13549 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
13550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13551 echo $ac_n "(cached) $ac_c" 1>&6
13553 ac_save_LIBS="$LIBS"
13554 LIBS="-lgdbm $LIBS"
13555 cat > conftest.$ac_ext <<EOF
13556 #line 13557 "configure"
13557 #include "confdefs.h"
13558 /* Override any gcc2 internal prototype to avoid an error. */
13559 /* We use char because int might match the return type of a gcc2
13560 builtin and then its argument prototype would still apply. */
13567 if { (eval echo configure:13568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13569 eval "ac_cv_lib_$ac_lib_var=yes"
13571 echo "configure: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13574 eval "ac_cv_lib_$ac_lib_var=no"
13577 LIBS="$ac_save_LIBS"
13580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13581 echo "$ac_t""yes" 1>&6
13582 ol_cv_lib_gdbm=-lgdbm
13584 echo "$ac_t""no" 1>&6
13595 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13598 for ac_hdr in gdbm.h
13600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13602 echo "configure:13603: checking for $ac_hdr" >&5
13603 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13606 cat > conftest.$ac_ext <<EOF
13607 #line 13608 "configure"
13608 #include "confdefs.h"
13611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13612 { (eval echo configure:13613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13614 if test -z "$ac_err"; then
13616 eval "ac_cv_header_$ac_safe=yes"
13619 echo "configure: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13622 eval "ac_cv_header_$ac_safe=no"
13626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13627 echo "$ac_t""yes" 1>&6
13628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13629 cat >> confdefs.h <<EOF
13630 #define $ac_tr_hdr 1
13634 echo "$ac_t""no" 1>&6
13638 echo $ac_n "checking for db""... $ac_c" 1>&6
13639 echo "configure:13640: checking for db" >&5
13640 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
13644 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13652 echo "$ac_t""$ol_cv_gdbm" 1>&6
13653 if test $ol_cv_gdbm = yes ; then
13654 cat >> confdefs.h <<\EOF
13655 #define HAVE_GDBM 1
13661 if test $ol_cv_gdbm = yes ; then
13663 ol_with_ldbm_api=gdbm
13665 if test $ol_cv_lib_gdbm != yes ; then
13666 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13671 if test $ol_with_ldbm_api = ndbm ; then
13672 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13673 echo "configure:13674: checking for NDBM library" >&5
13674 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13675 echo $ac_n "(cached) $ac_c" 1>&6
13678 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13679 echo "configure:13680: checking for dbm_open" >&5
13680 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13681 echo $ac_n "(cached) $ac_c" 1>&6
13683 cat > conftest.$ac_ext <<EOF
13684 #line 13685 "configure"
13685 #include "confdefs.h"
13686 /* System header to define __stub macros and hopefully few prototypes,
13687 which can conflict with char dbm_open(); below. */
13688 #include <assert.h>
13689 /* Override any gcc2 internal prototype to avoid an error. */
13690 /* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13697 /* The GNU C library defines this for functions which it implements
13698 to always fail with ENOSYS. Some functions are actually named
13699 something starting with __ and the normal name is an alias. */
13700 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13710 eval "ac_cv_func_dbm_open=yes"
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13715 eval "ac_cv_func_dbm_open=no"
13720 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13724 echo "$ac_t""no" 1>&6
13726 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13727 echo "configure:13728: checking for dbm_open in -lndbm" >&5
13728 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13730 echo $ac_n "(cached) $ac_c" 1>&6
13732 ac_save_LIBS="$LIBS"
13733 LIBS="-lndbm $LIBS"
13734 cat > conftest.$ac_ext <<EOF
13735 #line 13736 "configure"
13736 #include "confdefs.h"
13737 /* Override any gcc2 internal prototype to avoid an error. */
13738 /* We use char because int might match the return type of a gcc2
13739 builtin and then its argument prototype would still apply. */
13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 eval "ac_cv_lib_$ac_lib_var=yes"
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 eval "ac_cv_lib_$ac_lib_var=no"
13756 LIBS="$ac_save_LIBS"
13759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13760 echo "$ac_t""yes" 1>&6
13761 ol_cv_lib_ndbm=-lndbm
13763 echo "$ac_t""no" 1>&6
13765 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13766 echo "configure:13767: checking for dbm_open in -ldbm" >&5
13767 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13768 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13769 echo $ac_n "(cached) $ac_c" 1>&6
13771 ac_save_LIBS="$LIBS"
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776 /* Override any gcc2 internal prototype to avoid an error. */
13777 /* We use char because int might match the return type of a gcc2
13778 builtin and then its argument prototype would still apply. */
13785 if { (eval echo configure:13786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13787 eval "ac_cv_lib_$ac_lib_var=yes"
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13792 eval "ac_cv_lib_$ac_lib_var=no"
13795 LIBS="$ac_save_LIBS"
13798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13799 echo "$ac_t""yes" 1>&6
13800 ol_cv_lib_ndbm=-ldbm
13802 echo "$ac_t""no" 1>&6
13815 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13818 for ac_hdr in ndbm.h
13820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13822 echo "configure:13823: checking for $ac_hdr" >&5
13823 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13824 echo $ac_n "(cached) $ac_c" 1>&6
13826 cat > conftest.$ac_ext <<EOF
13827 #line 13828 "configure"
13828 #include "confdefs.h"
13831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13832 { (eval echo configure:13833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13834 if test -z "$ac_err"; then
13836 eval "ac_cv_header_$ac_safe=yes"
13839 echo "configure: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13842 eval "ac_cv_header_$ac_safe=no"
13846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13847 echo "$ac_t""yes" 1>&6
13848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13849 cat >> confdefs.h <<EOF
13850 #define $ac_tr_hdr 1
13854 echo "$ac_t""no" 1>&6
13858 echo $ac_n "checking for db""... $ac_c" 1>&6
13859 echo "configure:13860: checking for db" >&5
13860 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13864 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13872 echo "$ac_t""$ol_cv_ndbm" 1>&6
13873 if test $ol_cv_ndbm = yes ; then
13874 cat >> confdefs.h <<\EOF
13875 #define HAVE_NDBM 1
13881 if test $ol_cv_ndbm = yes ; then
13883 ol_with_ldbm_api=ndbm
13885 if test $ol_cv_lib_ndbm != yes ; then
13886 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13891 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13892 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13893 if test $ol_enable_ldbm = yes ; then
13894 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13897 echo "configure: warning: disabling LDBM" 1>&2
13901 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13902 LINK_BINS_DYNAMIC="yes"
13904 LINK_BINS_DYNAMIC="no"
13907 if test $ol_enable_wrappers != no ; then
13908 for ac_hdr in tcpd.h
13910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13912 echo "configure:13913: checking for $ac_hdr" >&5
13913 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13914 echo $ac_n "(cached) $ac_c" 1>&6
13916 cat > conftest.$ac_ext <<EOF
13917 #line 13918 "configure"
13918 #include "confdefs.h"
13921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13922 { (eval echo configure:13923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13924 if test -z "$ac_err"; then
13926 eval "ac_cv_header_$ac_safe=yes"
13929 echo "configure: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13932 eval "ac_cv_header_$ac_safe=no"
13936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13937 echo "$ac_t""yes" 1>&6
13938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13939 cat >> confdefs.h <<EOF
13940 #define $ac_tr_hdr 1
13944 echo "$ac_t""no" 1>&6
13949 if test $ac_cv_header_tcpd_h != yes ; then
13952 cat > conftest.$ac_ext <<EOF
13953 #line 13954 "configure"
13954 #include "confdefs.h"
13956 int allow_severity = 0;
13957 int deny_severity = 0;
13963 if { (eval echo configure:13964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13975 if test $have_wrappers = yes ; then
13976 cat >> confdefs.h <<\EOF
13977 #define HAVE_TCPD 1
13982 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13983 echo "configure:13984: checking for main in -lnsl" >&5
13984 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13988 ac_save_LIBS="$LIBS"
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13998 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14000 eval "ac_cv_lib_$ac_lib_var=yes"
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14005 eval "ac_cv_lib_$ac_lib_var=no"
14008 LIBS="$ac_save_LIBS"
14011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14012 echo "$ac_t""yes" 1>&6
14013 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14015 cat >> confdefs.h <<EOF
14016 #define $ac_tr_lib 1
14022 echo "$ac_t""no" 1>&6
14026 echo "configure: warning: could not find -lwrap" 1>&2
14027 if test $ol_enable_wrappers = yes ; then
14028 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14031 echo "configure: warning: disabling wrappers support" 1>&2
14032 ol_enable_wrappers=no
14037 if test $ol_enable_syslog != no ; then
14038 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14039 echo "configure:14040: checking for openlog" >&5
14040 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14043 cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 /* System header to define __stub macros and hopefully few prototypes,
14047 which can conflict with char openlog(); below. */
14048 #include <assert.h>
14049 /* Override any gcc2 internal prototype to avoid an error. */
14050 /* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14057 /* The GNU C library defines this for functions which it implements
14058 to always fail with ENOSYS. Some functions are actually named
14059 something starting with __ and the normal name is an alias. */
14060 #if defined (__stub_openlog) || defined (__stub___openlog)
14068 if { (eval echo configure:14069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14070 eval "ac_cv_func_openlog=yes"
14072 echo "configure: failed program was:" >&5
14073 cat conftest.$ac_ext >&5
14075 eval "ac_cv_func_openlog=no"
14080 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14081 echo "$ac_t""yes" 1>&6
14084 echo "$ac_t""no" 1>&6
14087 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14088 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14090 ol_enable_syslog=$ac_cv_func_openlog
14094 if test $ol_enable_sql != no ; then
14095 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14096 echo "configure:14097: checking for SQLDriverConnect in -liodbc" >&5
14097 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14098 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
14101 ac_save_LIBS="$LIBS"
14102 LIBS="-liodbc $LIBS"
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 /* Override any gcc2 internal prototype to avoid an error. */
14107 /* We use char because int might match the return type of a gcc2
14108 builtin and then its argument prototype would still apply. */
14109 char SQLDriverConnect();
14115 if { (eval echo configure:14116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14117 eval "ac_cv_lib_$ac_lib_var=yes"
14119 echo "configure: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14122 eval "ac_cv_lib_$ac_lib_var=no"
14125 LIBS="$ac_save_LIBS"
14128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14129 echo "$ac_t""yes" 1>&6
14132 echo "$ac_t""no" 1>&6
14136 if test $have_iodbc = yes ; then
14137 ol_link_sql="-liodbc"
14139 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14140 echo "configure:14141: checking for SQLDriverConnect in -lodbc" >&5
14141 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14145 ac_save_LIBS="$LIBS"
14146 LIBS="-lodbc $LIBS"
14147 cat > conftest.$ac_ext <<EOF
14148 #line 14149 "configure"
14149 #include "confdefs.h"
14150 /* Override any gcc2 internal prototype to avoid an error. */
14151 /* We use char because int might match the return type of a gcc2
14152 builtin and then its argument prototype would still apply. */
14153 char SQLDriverConnect();
14159 if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14161 eval "ac_cv_lib_$ac_lib_var=yes"
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14166 eval "ac_cv_lib_$ac_lib_var=no"
14169 LIBS="$ac_save_LIBS"
14172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14173 echo "$ac_t""yes" 1>&6
14176 echo "$ac_t""no" 1>&6
14180 if test $have_odbc = yes ; then
14181 ol_link_sql="-lodbc"
14185 if test $ol_link_sql != no ; then
14186 SLAPD_SQL_LIBS="$ol_link_sql"
14188 elif test $ol_enable_sql != auto ; then
14189 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14194 for ac_hdr in termcap.h ncurses.h
14196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14198 echo "configure:14199: checking for $ac_hdr" >&5
14199 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14200 echo $ac_n "(cached) $ac_c" 1>&6
14202 cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14208 { (eval echo configure:14209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14210 if test -z "$ac_err"; then
14212 eval "ac_cv_header_$ac_safe=yes"
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14218 eval "ac_cv_header_$ac_safe=no"
14222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14223 echo "$ac_t""yes" 1>&6
14224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14225 cat >> confdefs.h <<EOF
14226 #define $ac_tr_hdr 1
14230 echo "$ac_t""no" 1>&6
14235 if test $ol_link_termcap = no ; then
14236 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14237 echo "configure:14238: checking for tputs in -ltermcap" >&5
14238 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14240 echo $ac_n "(cached) $ac_c" 1>&6
14242 ac_save_LIBS="$LIBS"
14243 LIBS="-ltermcap $LIBS"
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 /* Override any gcc2 internal prototype to avoid an error. */
14248 /* We use char because int might match the return type of a gcc2
14249 builtin and then its argument prototype would still apply. */
14256 if { (eval echo configure:14257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14258 eval "ac_cv_lib_$ac_lib_var=yes"
14260 echo "configure: failed program was:" >&5
14261 cat conftest.$ac_ext >&5
14263 eval "ac_cv_lib_$ac_lib_var=no"
14266 LIBS="$ac_save_LIBS"
14269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14270 echo "$ac_t""yes" 1>&6
14273 echo "$ac_t""no" 1>&6
14277 if test $have_termcap = yes ; then
14278 cat >> confdefs.h <<\EOF
14279 #define HAVE_TERMCAP 1
14282 ol_link_termcap=yes
14283 TERMCAP_LIBS=-ltermcap
14287 if test $ol_link_termcap = no ; then
14288 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14289 echo "configure:14290: checking for initscr in -lncurses" >&5
14290 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14291 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14294 ac_save_LIBS="$LIBS"
14295 LIBS="-lncurses $LIBS"
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* Override any gcc2 internal prototype to avoid an error. */
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14308 if { (eval echo configure:14309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14310 eval "ac_cv_lib_$ac_lib_var=yes"
14312 echo "configure: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14315 eval "ac_cv_lib_$ac_lib_var=no"
14318 LIBS="$ac_save_LIBS"
14321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14322 echo "$ac_t""yes" 1>&6
14325 echo "$ac_t""no" 1>&6
14329 if test $have_ncurses = yes ; then
14330 cat >> confdefs.h <<\EOF
14331 #define HAVE_NCURSES 1
14334 ol_link_termcap=yes
14335 TERMCAP_LIBS=-lncurses
14339 if test $ol_link_termcap = no ; then
14340 cat >> confdefs.h <<\EOF
14341 #define NO_TERMCAP 1
14349 if test $ol_with_cyrus_sasl != no ; then
14350 for ac_hdr in sasl.h
14352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14354 echo "configure:14355: checking for $ac_hdr" >&5
14355 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14356 echo $ac_n "(cached) $ac_c" 1>&6
14358 cat > conftest.$ac_ext <<EOF
14359 #line 14360 "configure"
14360 #include "confdefs.h"
14363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14364 { (eval echo configure:14365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14366 if test -z "$ac_err"; then
14368 eval "ac_cv_header_$ac_safe=yes"
14371 echo "configure: failed program was:" >&5
14372 cat conftest.$ac_ext >&5
14374 eval "ac_cv_header_$ac_safe=no"
14378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14379 echo "$ac_t""yes" 1>&6
14380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14381 cat >> confdefs.h <<EOF
14382 #define $ac_tr_hdr 1
14386 echo "$ac_t""no" 1>&6
14391 if test $ac_cv_header_sasl_h = yes ; then
14392 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14393 echo "configure:14394: checking for sasl_client_init in -lsasl" >&5
14394 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14395 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
14398 ac_save_LIBS="$LIBS"
14399 LIBS="-lsasl $LIBS"
14400 cat > conftest.$ac_ext <<EOF
14401 #line 14402 "configure"
14402 #include "confdefs.h"
14403 /* Override any gcc2 internal prototype to avoid an error. */
14404 /* We use char because int might match the return type of a gcc2
14405 builtin and then its argument prototype would still apply. */
14406 char sasl_client_init();
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14414 eval "ac_cv_lib_$ac_lib_var=yes"
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14419 eval "ac_cv_lib_$ac_lib_var=no"
14422 LIBS="$ac_save_LIBS"
14425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
14427 have_cyrus_sasl=yes
14429 echo "$ac_t""no" 1>&6
14434 if test $have_cyrus_sasl != no ; then
14436 cat >> confdefs.h <<\EOF
14437 #define HAVE_CYRUS_SASL 1
14444 if test $ol_link_sasl = no ; then
14445 if test $ol_with_cyrus_sasl != auto ; then
14446 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
14448 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
14449 echo "configure: warning: SASL authentication not supported!" 1>&2
14450 if test $ol_link_tls = no ; then
14451 echo "configure: warning: Strong authentication not supported!" 1>&2
14455 elif test $ol_enable_spasswd != no ; then
14456 ol_link_spasswd=yes
14460 echo "configure: warning: SASL authentication not supported!" 1>&2
14461 if test $ol_link_tls = no ; then
14462 echo "configure: warning: Strong authentication not supported!" 1>&2
14466 if test $cross_compiling != yes ; then
14468 if test -r /dev/urandom ; then
14469 dev="/dev/urandom";
14470 elif test -r /idev/urandom ; then
14471 dev="/idev/urandom";
14472 elif test -r /dev/srandom ; then
14473 dev="/dev/srandom";
14474 elif test -r /dev/random ; then
14476 elif test -r /idev/random ; then
14477 dev="/idev/random";
14480 if test $dev != no ; then
14481 cat >> confdefs.h <<EOF
14482 #define URANDOM_DEVICE "$dev"
14489 if test $ol_with_fetch != no ; then
14491 LIBS="-lfetch -lcom_err $LIBS"
14492 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14493 echo "configure:14494: checking fetch(3) library" >&5
14494 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14502 #include <sys/param.h>
14506 struct url *u = fetchParseURL("file:///");
14509 if { (eval echo configure:14510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14511 ol_cv_lib_fetch=yes
14513 echo "configure: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14521 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14523 if test $ol_cv_lib_fetch != no ; then
14524 ol_link_fetch="-lfetch -lcom_err"
14525 cat >> confdefs.h <<\EOF
14526 #define HAVE_FETCH 1
14532 if test $ol_cv_lib_fetch != no ; then
14533 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14534 ol_link_fetch=freebsd
14536 elif test $ol_with_fetch != auto ; then
14537 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14541 ol_link_readline=no
14542 if test $ol_with_readline != no ; then
14543 for ac_hdr in readline/readline.h readline/history.h
14545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14547 echo "configure:14548: checking for $ac_hdr" >&5
14548 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14549 echo $ac_n "(cached) $ac_c" 1>&6
14551 cat > conftest.$ac_ext <<EOF
14552 #line 14553 "configure"
14553 #include "confdefs.h"
14556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14557 { (eval echo configure:14558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14559 if test -z "$ac_err"; then
14561 eval "ac_cv_header_$ac_safe=yes"
14564 echo "configure: failed program was:" >&5
14565 cat conftest.$ac_ext >&5
14567 eval "ac_cv_header_$ac_safe=no"
14571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14572 echo "$ac_t""yes" 1>&6
14573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14574 cat >> confdefs.h <<EOF
14575 #define $ac_tr_hdr 1
14579 echo "$ac_t""no" 1>&6
14584 if test $ac_cv_header_readline_readline_h = yes ; then
14586 LIBS="$TERMCAP_LIBS $LIBS"
14587 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14588 echo "configure:14589: checking for readline in -lreadline" >&5
14589 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14590 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14591 echo $ac_n "(cached) $ac_c" 1>&6
14593 ac_save_LIBS="$LIBS"
14594 LIBS="-lreadline $LIBS"
14595 cat > conftest.$ac_ext <<EOF
14596 #line 14597 "configure"
14597 #include "confdefs.h"
14598 /* Override any gcc2 internal prototype to avoid an error. */
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14607 if { (eval echo configure:14608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14609 eval "ac_cv_lib_$ac_lib_var=yes"
14611 echo "configure: failed program was:" >&5
14612 cat conftest.$ac_ext >&5
14614 eval "ac_cv_lib_$ac_lib_var=no"
14617 LIBS="$ac_save_LIBS"
14620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14621 echo "$ac_t""yes" 1>&6
14624 echo "$ac_t""no" 1>&6
14630 if test $have_readline = yes ; then
14631 ol_with_readline=found
14632 ol_link_readline=yes
14634 READLINE_LIBS="-lreadline"
14639 if test $ol_link_readline = yes ; then
14640 cat >> confdefs.h <<\EOF
14641 #define HAVE_READLINE 1
14647 if test $ol_enable_crypt != no ; then
14648 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14649 echo "configure:14650: checking for crypt" >&5
14650 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14651 echo $ac_n "(cached) $ac_c" 1>&6
14653 cat > conftest.$ac_ext <<EOF
14654 #line 14655 "configure"
14655 #include "confdefs.h"
14656 /* System header to define __stub macros and hopefully few prototypes,
14657 which can conflict with char crypt(); below. */
14658 #include <assert.h>
14659 /* Override any gcc2 internal prototype to avoid an error. */
14660 /* We use char because int might match the return type of a gcc2
14661 builtin and then its argument prototype would still apply. */
14667 /* The GNU C library defines this for functions which it implements
14668 to always fail with ENOSYS. Some functions are actually named
14669 something starting with __ and the normal name is an alias. */
14670 #if defined (__stub_crypt) || defined (__stub___crypt)
14678 if { (eval echo configure:14679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14680 eval "ac_cv_func_crypt=yes"
14682 echo "configure: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14685 eval "ac_cv_func_crypt=no"
14690 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14691 echo "$ac_t""yes" 1>&6
14694 echo "$ac_t""no" 1>&6
14696 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14697 echo "configure:14698: checking for crypt in -lcrypt" >&5
14698 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14700 echo $ac_n "(cached) $ac_c" 1>&6
14702 ac_save_LIBS="$LIBS"
14703 LIBS="-lcrypt $LIBS"
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14707 /* Override any gcc2 internal prototype to avoid an error. */
14708 /* We use char because int might match the return type of a gcc2
14709 builtin and then its argument prototype would still apply. */
14716 if { (eval echo configure:14717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14718 eval "ac_cv_lib_$ac_lib_var=yes"
14720 echo "configure: failed program was:" >&5
14721 cat conftest.$ac_ext >&5
14723 eval "ac_cv_lib_$ac_lib_var=no"
14726 LIBS="$ac_save_LIBS"
14729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14730 echo "$ac_t""yes" 1>&6
14731 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14734 echo "$ac_t""no" 1>&6
14741 if test $have_crypt = yes ; then
14742 cat >> confdefs.h <<\EOF
14743 #define HAVE_CRYPT 1
14747 echo "configure: warning: could not find crypt" 1>&2
14748 if test $ol_enable_crypt = yes ; then
14749 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14752 echo "configure: warning: disabling crypt support" 1>&2
14757 if test $ol_enable_proctitle != no ; then
14758 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14759 echo "configure:14760: checking for setproctitle" >&5
14760 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14761 echo $ac_n "(cached) $ac_c" 1>&6
14763 cat > conftest.$ac_ext <<EOF
14764 #line 14765 "configure"
14765 #include "confdefs.h"
14766 /* System header to define __stub macros and hopefully few prototypes,
14767 which can conflict with char setproctitle(); below. */
14768 #include <assert.h>
14769 /* Override any gcc2 internal prototype to avoid an error. */
14770 /* We use char because int might match the return type of a gcc2
14771 builtin and then its argument prototype would still apply. */
14772 char setproctitle();
14777 /* The GNU C library defines this for functions which it implements
14778 to always fail with ENOSYS. Some functions are actually named
14779 something starting with __ and the normal name is an alias. */
14780 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14788 if { (eval echo configure:14789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14790 eval "ac_cv_func_setproctitle=yes"
14792 echo "configure: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14795 eval "ac_cv_func_setproctitle=no"
14800 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14801 echo "$ac_t""yes" 1>&6
14802 have_setproctitle=yes
14804 echo "$ac_t""no" 1>&6
14806 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14807 echo "configure:14808: checking for setproctitle in -lutil" >&5
14808 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14809 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14810 echo $ac_n "(cached) $ac_c" 1>&6
14812 ac_save_LIBS="$LIBS"
14813 LIBS="-lutil $LIBS"
14814 cat > conftest.$ac_ext <<EOF
14815 #line 14816 "configure"
14816 #include "confdefs.h"
14817 /* Override any gcc2 internal prototype to avoid an error. */
14818 /* We use char because int might match the return type of a gcc2
14819 builtin and then its argument prototype would still apply. */
14820 char setproctitle();
14826 if { (eval echo configure:14827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14828 eval "ac_cv_lib_$ac_lib_var=yes"
14830 echo "configure: failed program was:" >&5
14831 cat conftest.$ac_ext >&5
14833 eval "ac_cv_lib_$ac_lib_var=no"
14836 LIBS="$ac_save_LIBS"
14839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14840 echo "$ac_t""yes" 1>&6
14841 have_setproctitle=yes
14842 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14844 echo "$ac_t""no" 1>&6
14845 have_setproctitle=no
14846 LIBOBJS="$LIBOBJS setproctitle.o"
14847 LIBSRCS="$LIBSRCS setproctitle.c"
14853 if test $have_setproctitle = yes ; then
14854 cat >> confdefs.h <<\EOF
14855 #define HAVE_SETPROCTITLE 1
14861 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14862 echo "configure:14863: checking for ANSI C header files" >&5
14863 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
14866 cat > conftest.$ac_ext <<EOF
14867 #line 14868 "configure"
14868 #include "confdefs.h"
14869 #include <stdlib.h>
14870 #include <stdarg.h>
14871 #include <string.h>
14874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14875 { (eval echo configure:14876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14877 if test -z "$ac_err"; then
14879 ac_cv_header_stdc=yes
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14885 ac_cv_header_stdc=no
14889 if test $ac_cv_header_stdc = yes; then
14890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14891 cat > conftest.$ac_ext <<EOF
14892 #line 14893 "configure"
14893 #include "confdefs.h"
14894 #include <string.h>
14896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14897 egrep "memchr" >/dev/null 2>&1; then
14901 ac_cv_header_stdc=no
14907 if test $ac_cv_header_stdc = yes; then
14908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14909 cat > conftest.$ac_ext <<EOF
14910 #line 14911 "configure"
14911 #include "confdefs.h"
14912 #include <stdlib.h>
14914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14915 egrep "free" >/dev/null 2>&1; then
14919 ac_cv_header_stdc=no
14925 if test $ac_cv_header_stdc = yes; then
14926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14927 if test "$cross_compiling" = yes; then
14930 cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14934 #if ((' ' & 0x0FF) == 0x020)
14935 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14936 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14938 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14939 || ('j' <= (c) && (c) <= 'r') \
14940 || ('s' <= (c) && (c) <= 'z'))
14941 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14944 int main () { int i; for (i = 0; i < 256; i++)
14945 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14949 if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14953 echo "configure: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14956 ac_cv_header_stdc=no
14964 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14965 if test $ac_cv_header_stdc = yes; then
14966 cat >> confdefs.h <<\EOF
14967 #define STDC_HEADERS 1
14972 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14973 echo "configure:14974: checking for mode_t" >&5
14974 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14975 echo $ac_n "(cached) $ac_c" 1>&6
14977 cat > conftest.$ac_ext <<EOF
14978 #line 14979 "configure"
14979 #include "confdefs.h"
14980 #include <sys/types.h>
14982 #include <stdlib.h>
14983 #include <stddef.h>
14987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14988 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14990 eval "ac_cv_type_mode_t=yes"
14993 eval "ac_cv_type_mode_t=no"
14998 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14999 echo "$ac_t""yes" 1>&6
15001 echo "$ac_t""no" 1>&6
15002 cat >> confdefs.h <<EOF
15008 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15009 echo "configure:15010: checking for off_t" >&5
15010 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15011 echo $ac_n "(cached) $ac_c" 1>&6
15013 cat > conftest.$ac_ext <<EOF
15014 #line 15015 "configure"
15015 #include "confdefs.h"
15016 #include <sys/types.h>
15018 #include <stdlib.h>
15019 #include <stddef.h>
15023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15024 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15026 eval "ac_cv_type_off_t=yes"
15029 eval "ac_cv_type_off_t=no"
15034 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15035 echo "$ac_t""yes" 1>&6
15037 echo "$ac_t""no" 1>&6
15038 cat >> confdefs.h <<EOF
15044 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15045 echo "configure:15046: checking for pid_t" >&5
15046 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15047 echo $ac_n "(cached) $ac_c" 1>&6
15049 cat > conftest.$ac_ext <<EOF
15050 #line 15051 "configure"
15051 #include "confdefs.h"
15052 #include <sys/types.h>
15054 #include <stdlib.h>
15055 #include <stddef.h>
15059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15060 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15062 eval "ac_cv_type_pid_t=yes"
15065 eval "ac_cv_type_pid_t=no"
15070 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15071 echo "$ac_t""yes" 1>&6
15073 echo "$ac_t""no" 1>&6
15074 cat >> confdefs.h <<EOF
15080 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15081 echo "configure:15082: checking for ptrdiff_t" >&5
15082 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15085 cat > conftest.$ac_ext <<EOF
15086 #line 15087 "configure"
15087 #include "confdefs.h"
15088 #include <stddef.h>
15093 if { (eval echo configure:15094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15095 am_cv_type_ptrdiff_t=yes
15097 echo "configure: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15100 am_cv_type_ptrdiff_t=no
15105 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15106 if test $am_cv_type_ptrdiff_t = yes; then
15107 cat >> confdefs.h <<\EOF
15108 #define HAVE_PTRDIFF_T 1
15113 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15114 echo "configure:15115: checking return type of signal handlers" >&5
15115 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15116 echo $ac_n "(cached) $ac_c" 1>&6
15118 cat > conftest.$ac_ext <<EOF
15119 #line 15120 "configure"
15120 #include "confdefs.h"
15121 #include <sys/types.h>
15122 #include <signal.h>
15127 extern "C" void (*signal (int, void (*)(int)))(int);
15129 void (*signal ()) ();
15136 if { (eval echo configure:15137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15138 ac_cv_type_signal=void
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15143 ac_cv_type_signal=int
15148 echo "$ac_t""$ac_cv_type_signal" 1>&6
15149 cat >> confdefs.h <<EOF
15150 #define RETSIGTYPE $ac_cv_type_signal
15154 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15155 echo "configure:15156: checking for size_t" >&5
15156 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15157 echo $ac_n "(cached) $ac_c" 1>&6
15159 cat > conftest.$ac_ext <<EOF
15160 #line 15161 "configure"
15161 #include "confdefs.h"
15162 #include <sys/types.h>
15164 #include <stdlib.h>
15165 #include <stddef.h>
15169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15170 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15172 eval "ac_cv_type_size_t=yes"
15175 eval "ac_cv_type_size_t=no"
15180 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15181 echo "$ac_t""yes" 1>&6
15183 echo "$ac_t""no" 1>&6
15184 cat >> confdefs.h <<EOF
15185 #define size_t unsigned
15191 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15192 echo "configure:15193: checking for ssize_t" >&5
15193 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15194 echo $ac_n "(cached) $ac_c" 1>&6
15196 cat > conftest.$ac_ext <<EOF
15197 #line 15198 "configure"
15198 #include "confdefs.h"
15199 #include <sys/types.h>
15201 #include <stdlib.h>
15202 #include <stddef.h>
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15209 eval "ac_cv_type_ssize_t=yes"
15212 eval "ac_cv_type_ssize_t=no"
15217 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15218 echo "$ac_t""yes" 1>&6
15220 echo "$ac_t""no" 1>&6
15221 cat >> confdefs.h <<EOF
15222 #define ssize_t signed int
15227 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15228 echo "configure:15229: checking for caddr_t" >&5
15229 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15232 cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 #include <sys/types.h>
15237 #include <stdlib.h>
15238 #include <stddef.h>
15242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15245 eval "ac_cv_type_caddr_t=yes"
15248 eval "ac_cv_type_caddr_t=no"
15253 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15254 echo "$ac_t""yes" 1>&6
15256 echo "$ac_t""no" 1>&6
15257 cat >> confdefs.h <<EOF
15258 #define caddr_t char *
15264 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15265 echo "configure:15266: checking for socklen_t" >&5
15266 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15269 cat > conftest.$ac_ext <<EOF
15270 #line 15271 "configure"
15271 #include "confdefs.h"
15273 #ifdef HAVE_SYS_TYPES_H
15274 #include <sys/types.h>
15276 #ifdef HAVE_SYS_SOCKET_H
15277 #include <sys/socket.h>
15284 if { (eval echo configure:15285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15286 ol_cv_type_socklen_t=yes
15288 echo "configure: failed program was:" >&5
15289 cat conftest.$ac_ext >&5
15291 ol_cv_type_socklen_t=no
15296 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15297 if test $ol_cv_type_socklen_t = no; then
15298 cat >> confdefs.h <<\EOF
15299 #define socklen_t int
15304 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15305 echo "configure:15306: checking for member st_blksize in aggregate type struct stat" >&5
15306 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15307 echo $ac_n "(cached) $ac_c" 1>&6
15309 cat > conftest.$ac_ext <<EOF
15310 #line 15311 "configure"
15311 #include "confdefs.h"
15312 #include <sys/types.h>
15313 #include <sys/stat.h>
15315 struct stat foo; foo.st_blksize;
15318 if { (eval echo configure:15319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15320 ac_cv_c_struct_member_st_blksize=yes
15322 echo "configure: failed program was:" >&5
15323 cat conftest.$ac_ext >&5
15325 ac_cv_c_struct_member_st_blksize=no
15330 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
15331 st_blksize="$ac_cv_c_struct_member_st_blksize"
15332 if test $ac_cv_c_struct_member_st_blksize = yes; then
15333 cat >> confdefs.h <<\EOF
15334 #define HAVE_ST_BLKSIZE 1
15339 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
15340 echo "configure:15341: checking whether time.h and sys/time.h may both be included" >&5
15341 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
15342 echo $ac_n "(cached) $ac_c" 1>&6
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15346 "configure"
15346 #include "confdefs.h"
15347 #include <sys/types.h>
15348 #include <sys/time.h>
15354 if { (eval echo configure:15355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15356 ac_cv_header_time=yes
15358 echo "configure: failed program was:" >&5
15359 cat conftest.$ac_ext >&5
15361 ac_cv_header_time=no
15366 echo "$ac_t""$ac_cv_header_time" 1>&6
15367 if test $ac_cv_header_time = yes; then
15368 cat >> confdefs.h <<\EOF
15369 #define TIME_WITH_SYS_TIME 1
15374 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15375 echo "configure:15376: checking whether struct tm is in sys/time.h or time.h" >&5
15376 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15377 echo $ac_n "(cached) $ac_c" 1>&6
15379 cat > conftest.$ac_ext <<EOF
15380 #line 15381 "configure"
15381 #include "confdefs.h"
15382 #include <sys/types.h>
15385 struct tm *tp; tp->tm_sec;
15388 if { (eval echo configure:15389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15390 ac_cv_struct_tm=time.h
15392 echo "configure: failed program was:" >&5
15393 cat conftest.$ac_ext >&5
15395 ac_cv_struct_tm=sys/time.h
15400 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15401 if test $ac_cv_struct_tm = sys/time.h; then
15402 cat >> confdefs.h <<\EOF
15403 #define TM_IN_SYS_TIME 1
15408 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15409 echo "configure:15410: checking for uid_t in sys/types.h" >&5
15410 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15413 cat > conftest.$ac_ext <<EOF
15414 #line 15415 "configure"
15415 #include "confdefs.h"
15416 #include <sys/types.h>
15418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15419 egrep "uid_t" >/dev/null 2>&1; then
15421 ac_cv_type_uid_t=yes
15424 ac_cv_type_uid_t=no
15430 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15431 if test $ac_cv_type_uid_t = no; then
15432 cat >> confdefs.h <<\EOF
15436 cat >> confdefs.h <<\EOF
15442 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15443 echo "configure:15444: checking for sig_atomic_t" >&5
15444 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15445 echo $ac_n "(cached) $ac_c" 1>&6
15447 cat > conftest.$ac_ext <<EOF
15448 #line 15449 "configure"
15449 #include "confdefs.h"
15450 #include <signal.h>
15452 sig_atomic_t atomic;
15455 if { (eval echo configure:15456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15457 ol_cv_type_sig_atomic_t=yes
15459 echo "configure: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15462 ol_cv_type_sig_atomic_t=no
15467 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15468 if test $ol_cv_type_sig_atomic_t = no; then
15469 cat >> confdefs.h <<\EOF
15470 #define sig_atomic_t int
15477 # test for pw_gecos in struct passwd
15478 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15479 echo "configure:15480: checking struct passwd for pw_gecos" >&5
15480 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15481 echo $ac_n "(cached) $ac_c" 1>&6
15484 cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15491 pwd.pw_gecos = pwd.pw_name;
15495 if { (eval echo configure:15496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15497 ol_cv_struct_passwd_pw_gecos=yes
15499 echo "configure: failed program was:" >&5
15500 cat conftest.$ac_ext >&5
15502 ol_cv_struct_passwd_pw_gecos=no
15507 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15508 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15509 cat >> confdefs.h <<\EOF
15510 #define HAVE_PW_GECOS 1
15515 # test for pw_passwd in struct passwd
15516 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15517 echo "configure:15518: checking struct passwd for pw_passwd" >&5
15518 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15519 echo $ac_n "(cached) $ac_c" 1>&6
15522 cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15529 pwd.pw_passwd = pwd.pw_name;
15533 if { (eval echo configure:15534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15535 ol_cv_struct_passwd_pw_passwd=yes
15537 echo "configure: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15540 ol_cv_struct_passwd_pw_passwd=no
15545 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15546 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15547 cat >> confdefs.h <<\EOF
15548 #define HAVE_PW_PASSWD 1
15554 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15555 echo "configure:15556: checking if toupper() requires islower()" >&5
15556 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15560 if test "$cross_compiling" = yes; then
15561 ol_cv_c_upper_lower=safe
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15570 if ('C' == toupper('C'))
15576 if { (eval echo configure:15577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15578 ol_cv_c_upper_lower=no
15580 echo "configure: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15583 ol_cv_c_upper_lower=yes
15590 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15591 if test $ol_cv_c_upper_lower != no ; then
15592 cat >> confdefs.h <<\EOF
15593 #define C_UPPER_LOWER 1
15598 echo $ac_n "checking for working const""... $ac_c" 1>&6
15599 echo "configure:15600: checking for working const" >&5
15600 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15601 echo $ac_n "(cached) $ac_c" 1>&6
15603 cat > conftest.$ac_ext <<EOF
15604 #line 15605 "configure"
15605 #include "confdefs.h"
15609 /* Ultrix mips cc rejects this. */
15610 typedef int charset[2]; const charset x;
15611 /* SunOS 4.1.1 cc rejects this. */
15612 char const *const *ccp;
15614 /* NEC SVR4.0.2 mips cc rejects this. */
15615 struct point {int x, y;};
15616 static struct point const zero = {0,0};
15617 /* AIX XL C 1.02.0.0 rejects this.
15618 It does not let you subtract one const X* pointer from another in an arm
15619 of an if-expression whose if-part is not a constant expression */
15620 const char *g = "string";
15621 ccp = &g + (g ? g-g : 0);
15622 /* HPUX 7.0 cc rejects these. */
15625 ccp = (char const *const *) p;
15626 { /* SCO 3.2v4 cc rejects this. */
15628 char const *s = 0 ? (char *) 0 : (char const *) 0;
15632 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15633 int x[] = {25, 17};
15634 const int *foo = &x[0];
15637 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15638 typedef const int *iptr;
15642 { /* AIX XL C 1.02.0.0 rejects this saying
15643 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15644 struct s { int j; const int *ap[3]; };
15645 struct s *b; b->j = 5;
15647 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15648 const int foo = 10;
15653 if { (eval echo configure:15654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15657 echo "configure: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15665 echo "$ac_t""$ac_cv_c_const" 1>&6
15666 if test $ac_cv_c_const = no; then
15667 cat >> confdefs.h <<\EOF
15673 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15674 echo "configure:15675: checking if compiler understands volatile" >&5
15675 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15676 echo $ac_n "(cached) $ac_c" 1>&6
15678 cat > conftest.$ac_ext <<EOF
15679 #line 15680 "configure"
15680 #include "confdefs.h"
15683 volatile int a; int * volatile b = x ? &y : &z;
15684 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15688 if { (eval echo configure:15689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15690 ol_cv_c_volatile=yes
15692 echo "configure: failed program was:" >&5
15693 cat conftest.$ac_ext >&5
15695 ol_cv_c_volatile=no
15700 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15701 if test $ol_cv_c_volatile = yes; then
15704 cat >> confdefs.h <<\EOF
15711 if test $cross_compiling = yes ; then
15712 cat >> confdefs.h <<\EOF
15713 #define CROSS_COMPILING 1
15717 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15718 echo "configure:15719: checking whether byte ordering is bigendian" >&5
15719 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15720 echo $ac_n "(cached) $ac_c" 1>&6
15722 ac_cv_c_bigendian=unknown
15723 # See if sys/param.h defines the BYTE_ORDER macro.
15724 cat > conftest.$ac_ext <<EOF
15725 #line 15726 "configure"
15726 #include "confdefs.h"
15727 #include <sys/types.h>
15728 #include <sys/param.h>
15731 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15732 bogus endian macros
15736 if { (eval echo configure:15737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15738 # It does; now see whether it defined to BIG_ENDIAN or not.
15739 cat > conftest.$ac_ext <<EOF
15740 #line 15741 "configure"
15741 #include "confdefs.h"
15742 #include <sys/types.h>
15743 #include <sys/param.h>
15746 #if BYTE_ORDER != BIG_ENDIAN
15751 if { (eval echo configure:15752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15753 ac_cv_c_bigendian=yes
15755 echo "configure: failed program was:" >&5
15756 cat conftest.$ac_ext >&5
15758 ac_cv_c_bigendian=no
15762 echo "configure: failed program was:" >&5
15763 cat conftest.$ac_ext >&5
15766 if test $ac_cv_c_bigendian = unknown; then
15767 if test "$cross_compiling" = yes; then
15768 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15770 cat > conftest.$ac_ext <<EOF
15771 #line 15772 "configure"
15772 #include "confdefs.h"
15774 /* Are we little or big endian? From Harbison&Steele. */
15778 char c[sizeof (long)];
15781 exit (u.c[sizeof (long) - 1] == 1);
15784 if { (eval echo configure:15785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15786 ac_cv_c_bigendian=no
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15791 ac_cv_c_bigendian=yes
15799 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15800 if test $ac_cv_c_bigendian = yes; then
15801 cat >> confdefs.h <<\EOF
15802 #define WORDS_BIGENDIAN 1
15809 echo $ac_n "checking size of short""... $ac_c" 1>&6
15810 echo "configure:15811: checking size of short" >&5
15811 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15812 echo $ac_n "(cached) $ac_c" 1>&6
15814 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15815 cat > conftest.$ac_ext <<EOF
15816 #line 15817 "configure"
15817 #include "confdefs.h"
15818 #include "confdefs.h"
15819 #include <sys/types.h>
15823 switch (0) case 0: case (sizeof (short) == $ac_size):;
15826 if { (eval echo configure:15827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15828 ac_cv_sizeof_short=$ac_size
15830 echo "configure: failed program was:" >&5
15831 cat conftest.$ac_ext >&5
15834 if test x$ac_cv_sizeof_short != x ; then break; fi
15839 if test x$ac_cv_sizeof_short = x ; then
15840 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15842 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15843 cat >> confdefs.h <<EOF
15844 #define SIZEOF_SHORT $ac_cv_sizeof_short
15848 echo $ac_n "checking size of int""... $ac_c" 1>&6
15849 echo "configure:15850: checking size of int" >&5
15850 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15851 echo $ac_n "(cached) $ac_c" 1>&6
15853 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15854 cat > conftest.$ac_ext <<EOF
15855 #line 15856 "configure"
15856 #include "confdefs.h"
15857 #include "confdefs.h"
15858 #include <sys/types.h>
15862 switch (0) case 0: case (sizeof (int) == $ac_size):;
15865 if { (eval echo configure:15866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15867 ac_cv_sizeof_int=$ac_size
15869 echo "configure: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15873 if test x$ac_cv_sizeof_int != x ; then break; fi
15878 if test x$ac_cv_sizeof_int = x ; then
15879 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15881 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15882 cat >> confdefs.h <<EOF
15883 #define SIZEOF_INT $ac_cv_sizeof_int
15887 echo $ac_n "checking size of long""... $ac_c" 1>&6
15888 echo "configure:15889: checking size of long" >&5
15889 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15890 echo $ac_n "(cached) $ac_c" 1>&6
15892 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15893 cat > conftest.$ac_ext <<EOF
15894 #line 15895 "configure"
15895 #include "confdefs.h"
15896 #include "confdefs.h"
15897 #include <sys/types.h>
15901 switch (0) case 0: case (sizeof (long) == $ac_size):;
15904 if { (eval echo configure:15905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15906 ac_cv_sizeof_long=$ac_size
15908 echo "configure: failed program was:" >&5
15909 cat conftest.$ac_ext >&5
15912 if test x$ac_cv_sizeof_long != x ; then break; fi
15917 if test x$ac_cv_sizeof_long = x ; then
15918 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15920 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15921 cat >> confdefs.h <<EOF
15922 #define SIZEOF_LONG $ac_cv_sizeof_long
15927 if test "$ac_cv_sizeof_int" -lt 4 ; then
15928 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15930 cat >> confdefs.h <<\EOF
15931 #define LBER_INT_T long
15935 cat >> confdefs.h <<\EOF
15936 #define LBER_INT_T int
15941 cat >> confdefs.h <<\EOF
15942 #define LBER_LEN_T long
15945 cat >> confdefs.h <<\EOF
15946 #define LBER_SOCKET_T int
15949 cat >> confdefs.h <<\EOF
15950 #define LBER_TAG_T long
15954 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15955 echo "configure:15956: checking for 8-bit clean memcmp" >&5
15956 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15957 echo $ac_n "(cached) $ac_c" 1>&6
15959 if test "$cross_compiling" = yes; then
15960 ac_cv_func_memcmp_clean=no
15962 cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15968 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15969 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15973 if { (eval echo configure:15974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15975 ac_cv_func_memcmp_clean=yes
15977 echo "configure: failed program was:" >&5
15978 cat conftest.$ac_ext >&5
15980 ac_cv_func_memcmp_clean=no
15987 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15988 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15990 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15991 echo "configure:15992: checking for strftime" >&5
15992 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15993 echo $ac_n "(cached) $ac_c" 1>&6
15995 cat > conftest.$ac_ext <<EOF
15996 #line 15997 "configure"
15997 #include "confdefs.h"
15998 /* System header to define __stub macros and hopefully few prototypes,
15999 which can conflict with char strftime(); below. */
16000 #include <assert.h>
16001 /* Override any gcc2 internal prototype to avoid an error. */
16002 /* We use char because int might match the return type of a gcc2
16003 builtin and then its argument prototype would still apply. */
16009 /* The GNU C library defines this for functions which it implements
16010 to always fail with ENOSYS. Some functions are actually named
16011 something starting with __ and the normal name is an alias. */
16012 #if defined (__stub_strftime) || defined (__stub___strftime)
16020 if { (eval echo configure:16021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16022 eval "ac_cv_func_strftime=yes"
16024 echo "configure: failed program was:" >&5
16025 cat conftest.$ac_ext >&5
16027 eval "ac_cv_func_strftime=no"
16032 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16033 echo "$ac_t""yes" 1>&6
16034 cat >> confdefs.h <<\EOF
16035 #define HAVE_STRFTIME 1
16039 echo "$ac_t""no" 1>&6
16040 # strftime is in -lintl on SCO UNIX.
16041 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16042 echo "configure:16043: checking for strftime in -lintl" >&5
16043 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16044 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16045 echo $ac_n "(cached) $ac_c" 1>&6
16047 ac_save_LIBS="$LIBS"
16048 LIBS="-lintl $LIBS"
16049 cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052 /* Override any gcc2 internal prototype to avoid an error. */
16053 /* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16061 if { (eval echo configure:16062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16063 eval "ac_cv_lib_$ac_lib_var=yes"
16065 echo "configure: failed program was:" >&5
16066 cat conftest.$ac_ext >&5
16068 eval "ac_cv_lib_$ac_lib_var=no"
16071 LIBS="$ac_save_LIBS"
16074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16075 echo "$ac_t""yes" 1>&6
16076 cat >> confdefs.h <<\EOF
16077 #define HAVE_STRFTIME 1
16080 LIBS="-lintl $LIBS"
16082 echo "$ac_t""no" 1>&6
16088 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16089 echo "configure:16090: checking for inet_aton()" >&5
16090 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16091 echo $ac_n "(cached) $ac_c" 1>&6
16093 cat > conftest.$ac_ext <<EOF
16094 #line 16095 "configure"
16095 #include "confdefs.h"
16097 #ifdef HAVE_SYS_TYPES_H
16098 # include <sys/types.h>
16100 #ifdef HAVE_SYS_SOCKET_H
16101 # include <sys/socket.h>
16102 # ifdef HAVE_SYS_SELECT_H
16103 # include <sys/select.h>
16105 # include <netinet/in.h>
16106 # ifdef HAVE_ARPA_INET_H
16107 # include <arpa/inet.h>
16113 int rc = inet_aton( "255.255.255.255", &in );
16116 if { (eval echo configure:16117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16118 ol_cv_func_inet_aton=yes
16120 echo "configure: failed program was:" >&5
16121 cat conftest.$ac_ext >&5
16123 ol_cv_func_inet_aton=no
16128 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16129 if test $ol_cv_func_inet_aton != no; then
16130 cat >> confdefs.h <<\EOF
16131 #define HAVE_INET_ATON 1
16137 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16138 echo "configure:16139: checking for _spawnlp" >&5
16139 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16140 echo $ac_n "(cached) $ac_c" 1>&6
16142 cat > conftest.$ac_ext <<EOF
16143 #line 16144 "configure"
16144 #include "confdefs.h"
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char _spawnlp(); below. */
16147 #include <assert.h>
16148 /* Override any gcc2 internal prototype to avoid an error. */
16149 /* We use char because int might match the return type of a gcc2
16150 builtin and then its argument prototype would still apply. */
16156 /* The GNU C library defines this for functions which it implements
16157 to always fail with ENOSYS. Some functions are actually named
16158 something starting with __ and the normal name is an alias. */
16159 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16167 if { (eval echo configure:16168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16169 eval "ac_cv_func__spawnlp=yes"
16171 echo "configure: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16174 eval "ac_cv_func__spawnlp=no"
16179 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16180 echo "$ac_t""yes" 1>&6
16181 cat >> confdefs.h <<\EOF
16182 #define HAVE_SPAWNLP 1
16186 echo "$ac_t""no" 1>&6
16190 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16191 echo "configure:16192: checking for _snprintf" >&5
16192 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16193 echo $ac_n "(cached) $ac_c" 1>&6
16195 cat > conftest.$ac_ext <<EOF
16196 #line 16197 "configure"
16197 #include "confdefs.h"
16198 /* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char _snprintf(); below. */
16200 #include <assert.h>
16201 /* Override any gcc2 internal prototype to avoid an error. */
16202 /* We use char because int might match the return type of a gcc2
16203 builtin and then its argument prototype would still apply. */
16209 /* The GNU C library defines this for functions which it implements
16210 to always fail with ENOSYS. Some functions are actually named
16211 something starting with __ and the normal name is an alias. */
16212 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16220 if { (eval echo configure:16221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16222 eval "ac_cv_func__snprintf=yes"
16224 echo "configure: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16227 eval "ac_cv_func__snprintf=no"
16232 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16233 echo "$ac_t""yes" 1>&6
16234 ac_cv_func_snprintf=yes
16235 cat >> confdefs.h <<\EOF
16236 #define snprintf _snprintf
16241 echo "$ac_t""no" 1>&6
16245 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16246 echo "configure:16247: checking for _vsnprintf" >&5
16247 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16248 echo $ac_n "(cached) $ac_c" 1>&6
16250 cat > conftest.$ac_ext <<EOF
16251 #line 16252 "configure"
16252 #include "confdefs.h"
16253 /* System header to define __stub macros and hopefully few prototypes,
16254 which can conflict with char _vsnprintf(); below. */
16255 #include <assert.h>
16256 /* Override any gcc2 internal prototype to avoid an error. */
16257 /* We use char because int might match the return type of a gcc2
16258 builtin and then its argument prototype would still apply. */
16264 /* The GNU C library defines this for functions which it implements
16265 to always fail with ENOSYS. Some functions are actually named
16266 something starting with __ and the normal name is an alias. */
16267 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16275 if { (eval echo configure:16276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16277 eval "ac_cv_func__vsnprintf=yes"
16279 echo "configure: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16282 eval "ac_cv_func__vsnprintf=no"
16287 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16288 echo "$ac_t""yes" 1>&6
16289 ac_cv_func_vsnprintf=yes
16290 cat >> confdefs.h <<\EOF
16291 #define vsnprintf _vsnprintf
16296 echo "$ac_t""no" 1>&6
16300 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16301 echo "configure:16302: checking for vprintf" >&5
16302 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16303 echo $ac_n "(cached) $ac_c" 1>&6
16305 cat > conftest.$ac_ext <<EOF
16306 #line 16307 "configure"
16307 #include "confdefs.h"
16308 /* System header to define __stub macros and hopefully few prototypes,
16309 which can conflict with char vprintf(); below. */
16310 #include <assert.h>
16311 /* Override any gcc2 internal prototype to avoid an error. */
16312 /* We use char because int might match the return type of a gcc2
16313 builtin and then its argument prototype would still apply. */
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16330 if { (eval echo configure:16331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16332 eval "ac_cv_func_vprintf=yes"
16334 echo "configure: failed program was:" >&5
16335 cat conftest.$ac_ext >&5
16337 eval "ac_cv_func_vprintf=no"
16342 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16343 echo "$ac_t""yes" 1>&6
16344 cat >> confdefs.h <<\EOF
16345 #define HAVE_VPRINTF 1
16349 echo "$ac_t""no" 1>&6
16352 if test "$ac_cv_func_vprintf" != yes; then
16353 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16354 echo "configure:16355: checking for _doprnt" >&5
16355 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
16356 echo $ac_n "(cached) $ac_c" 1>&6
16358 cat > conftest.$ac_ext <<EOF
16359 #line 16360 "configure"
16360 #include "confdefs.h"
16361 /* System header to define __stub macros and hopefully few prototypes,
16362 which can conflict with char _doprnt(); below. */
16363 #include <assert.h>
16364 /* Override any gcc2 internal prototype to avoid an error. */
16365 /* We use char because int might match the return type of a gcc2
16366 builtin and then its argument prototype would still apply. */
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16383 if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16385 eval "ac_cv_func__doprnt=yes"
16387 echo "configure: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16390 eval "ac_cv_func__doprnt=no"
16395 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
16397 cat >> confdefs.h <<\EOF
16398 #define HAVE_DOPRNT 1
16402 echo "$ac_t""no" 1>&6
16408 if test $ac_cv_func_vprintf = yes ; then
16409 for ac_func in vsnprintf vsprintf
16411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16412 echo "configure:16413: checking for $ac_func" >&5
16413 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16414 echo $ac_n "(cached) $ac_c" 1>&6
16416 cat > conftest.$ac_ext <<EOF
16417 #line 16418 "configure"
16418 #include "confdefs.h"
16419 /* System header to define __stub macros and hopefully few prototypes,
16420 which can conflict with char $ac_func(); below. */
16421 #include <assert.h>
16422 /* Override any gcc2 internal prototype to avoid an error. */
16423 /* We use char because int might match the return type of a gcc2
16424 builtin and then its argument prototype would still apply. */
16430 /* The GNU C library defines this for functions which it implements
16431 to always fail with ENOSYS. Some functions are actually named
16432 something starting with __ and the normal name is an alias. */
16433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16441 if { (eval echo configure:16442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16443 eval "ac_cv_func_$ac_func=yes"
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16448 eval "ac_cv_func_$ac_func=no"
16453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16454 echo "$ac_t""yes" 1>&6
16455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16456 cat >> confdefs.h <<EOF
16457 #define $ac_tr_func 1
16461 echo "$ac_t""no" 1>&6
16519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16520 echo "configure:16521: checking for $ac_func" >&5
16521 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16522 echo $ac_n "(cached) $ac_c" 1>&6
16524 cat > conftest.$ac_ext <<EOF
16525 #line 16526 "configure"
16526 #include "confdefs.h"
16527 /* System header to define __stub macros and hopefully few prototypes,
16528 which can conflict with char $ac_func(); below. */
16529 #include <assert.h>
16530 /* Override any gcc2 internal prototype to avoid an error. */
16531 /* We use char because int might match the return type of a gcc2
16532 builtin and then its argument prototype would still apply. */
16538 /* The GNU C library defines this for functions which it implements
16539 to always fail with ENOSYS. Some functions are actually named
16540 something starting with __ and the normal name is an alias. */
16541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16549 if { (eval echo configure:16550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16551 eval "ac_cv_func_$ac_func=yes"
16553 echo "configure: failed program was:" >&5
16554 cat conftest.$ac_ext >&5
16556 eval "ac_cv_func_$ac_func=no"
16561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16562 echo "$ac_t""yes" 1>&6
16563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16564 cat >> confdefs.h <<EOF
16565 #define $ac_tr_func 1
16569 echo "$ac_t""no" 1>&6
16574 for ac_func in getopt tempnam
16576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16577 echo "configure:16578: checking for $ac_func" >&5
16578 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16579 echo $ac_n "(cached) $ac_c" 1>&6
16581 cat > conftest.$ac_ext <<EOF
16582 #line 16583 "configure"
16583 #include "confdefs.h"
16584 /* System header to define __stub macros and hopefully few prototypes,
16585 which can conflict with char $ac_func(); below. */
16586 #include <assert.h>
16587 /* Override any gcc2 internal prototype to avoid an error. */
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16606 if { (eval echo configure:16607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16608 eval "ac_cv_func_$ac_func=yes"
16610 echo "configure: failed program was:" >&5
16611 cat conftest.$ac_ext >&5
16613 eval "ac_cv_func_$ac_func=no"
16618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16619 echo "$ac_t""yes" 1>&6
16620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16621 cat >> confdefs.h <<EOF
16622 #define $ac_tr_func 1
16626 echo "$ac_t""no" 1>&6
16627 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16633 if test "$ac_cv_func_getopt" != yes; then
16634 LIBSRCS="$LIBSRCS getopt.c"
16637 if test "$ac_cv_func_tempnam" != yes; then
16638 LIBSRCS="$LIBSRCS tempnam.c"
16641 # Check Configuration
16642 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16643 echo "configure:16644: checking declaration of sys_errlist" >&5
16644 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16645 echo $ac_n "(cached) $ac_c" 1>&6
16648 cat > conftest.$ac_ext <<EOF
16649 #line 16650 "configure"
16650 #include "confdefs.h"
16653 #include <sys/types.h>
16656 #include <stdlib.h>
16659 char *c = (char *) *sys_errlist
16662 if { (eval echo configure:16663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16664 ol_cv_dcl_sys_errlist=yes
16665 ol_cv_have_sys_errlist=yes
16667 echo "configure: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16670 ol_cv_dcl_sys_errlist=no
16675 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16677 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16678 if test $ol_cv_dcl_sys_errlist = no ; then
16679 cat >> confdefs.h <<\EOF
16680 #define DECL_SYS_ERRLIST 1
16684 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16685 echo "configure:16686: checking existence of sys_errlist" >&5
16686 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16687 echo $ac_n "(cached) $ac_c" 1>&6
16690 cat > conftest.$ac_ext <<EOF
16691 #line 16692 "configure"
16692 #include "confdefs.h"
16695 char *c = (char *) *sys_errlist
16698 if { (eval echo configure:16699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16700 ol_cv_have_sys_errlist=yes
16702 echo "configure: failed program was:" >&5
16703 cat conftest.$ac_ext >&5
16705 ol_cv_have_sys_errlist=no
16710 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16712 if test $ol_cv_have_sys_errlist = yes ; then
16713 cat >> confdefs.h <<\EOF
16714 #define HAVE_SYS_ERRLIST 1
16721 if test "$ol_enable_debug" != no ; then
16722 cat >> confdefs.h <<\EOF
16723 #define LDAP_DEBUG 1
16727 if test "$ol_enable_syslog" = yes ; then
16728 cat >> confdefs.h <<\EOF
16729 #define LDAP_SYSLOG 1
16733 if test "$ol_enable_cache" = no ; then
16734 cat >> confdefs.h <<\EOF
16735 #define LDAP_NOCACHE 1
16739 if test "$ol_link_kbind" != no ; then
16740 cat >> confdefs.h <<\EOF
16741 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16745 if test "$ol_enable_proctitle" != no ; then
16746 cat >> confdefs.h <<\EOF
16747 #define LDAP_PROCTITLE 1
16751 if test "$ol_enable_referrals" != no ; then
16752 cat >> confdefs.h <<\EOF
16753 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16757 if test "$ol_enable_local" != no; then
16758 cat >> confdefs.h <<\EOF
16759 #define LDAP_PF_LOCAL 1
16763 if test "$ol_link_ipv6" != no; then
16764 cat >> confdefs.h <<\EOF
16765 #define LDAP_PF_INET6 1
16769 if test "$ol_enable_cleartext" != no ; then
16770 cat >> confdefs.h <<\EOF
16771 #define SLAPD_CLEARTEXT 1
16775 if test "$ol_enable_crypt" != no ; then
16776 cat >> confdefs.h <<\EOF
16777 #define SLAPD_CRYPT 1
16781 if test "$ol_link_kpasswd" != no ; then
16782 cat >> confdefs.h <<\EOF
16783 #define SLAPD_KPASSWD 1
16787 if test "$ol_link_spasswd" != no ; then
16788 cat >> confdefs.h <<\EOF
16789 #define SLAPD_SPASSWD 1
16793 if test "$ol_enable_phonetic" != no ; then
16794 cat >> confdefs.h <<\EOF
16795 #define SLAPD_PHONETIC 1
16799 if test "$ol_enable_rlookups" != no ; then
16800 cat >> confdefs.h <<\EOF
16801 #define SLAPD_RLOOKUPS 1
16805 if test "$ol_enable_aci" != no ; then
16806 cat >> confdefs.h <<\EOF
16807 #define SLAPD_ACI_ENABLED 1
16812 if test "$ol_link_modules" != no ; then
16813 cat >> confdefs.h <<\EOF
16814 #define SLAPD_MODULES 1
16818 SLAPD_MODULES_LDFLAGS="-dlopen self"
16821 if test "$ol_link_dnssrv" != no ; then
16822 cat >> confdefs.h <<\EOF
16823 #define SLAPD_DNSSRV 1
16828 if test "$ol_with_dnssrv_module" != static ; then
16829 cat >> confdefs.h <<\EOF
16830 #define SLAPD_DNSSRV_DYNAMIC 1
16834 BUILD_DNSSRV_DYNAMIC=shared
16835 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16839 if test "$ol_enable_ldap" != no ; then
16840 cat >> confdefs.h <<\EOF
16841 #define SLAPD_LDAP 1
16846 if test "$ol_with_ldap_module" != static ; then
16847 cat >> confdefs.h <<\EOF
16848 #define SLAPD_LDAP_DYNAMIC 1
16852 BUILD_LDAP_DYNAMIC=shared
16853 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16857 if test "$ol_link_ldbm" != no ; then
16858 cat >> confdefs.h <<\EOF
16859 #define SLAPD_LDBM 1
16864 if test "$ol_with_ldbm_module" != static ; then
16865 cat >> confdefs.h <<\EOF
16866 #define SLAPD_LDBM_DYNAMIC 1
16870 BUILD_LDBM_DYNAMIC=shared
16871 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16875 if test "$ol_enable_passwd" != no ; then
16876 cat >> confdefs.h <<\EOF
16877 #define SLAPD_PASSWD 1
16882 if test "$ol_with_passwd_module" != static ; then
16883 cat >> confdefs.h <<\EOF
16884 #define SLAPD_PASSWD_DYNAMIC 1
16888 BUILD_PASSWD_DYNAMIC=shared
16889 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16893 if test "$ol_enable_shell" != no ; then
16894 cat >> confdefs.h <<\EOF
16895 #define SLAPD_SHELL 1
16900 if test "$ol_with_shell_module" != static ; then
16901 cat >> confdefs.h <<\EOF
16902 #define SLAPD_SHELL_DYNAMIC 1
16906 BUILD_SHELL_DYNAMIC=shared
16907 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16911 if test "$ol_enable_sql" != no ; then
16912 cat >> confdefs.h <<\EOF
16913 #define SLAPD_SQL 1
16918 if test "$ol_with_sql_module" != static; then
16919 cat >> confdefs.h <<\EOF
16920 #define SLAPD_SQL_DYNAMIC 1
16924 BUILD_SQL_DYNAMIC=shared
16925 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16929 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16930 $BUILD_SLAPD = yes ; then
16935 if test "$LINK_BINS_DYNAMIC" = yes; then
16937 LT_LIB_LINKAGE=shared
16940 LT_LIB_LINKAGE=static
16943 if test "$ac_cv_mingw32" = yes ; then
17003 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17005 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17006 # Let make expand exec_prefix.
17007 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17009 # Any assignment to VPATH causes Sun make to only execute
17010 # the first set of double-colon rules, so remove it if not needed.
17011 # If there is a colon in the path, we need to keep it.
17012 if test "x$srcdir" = x.; then
17013 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17016 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17018 DEFS=-DHAVE_CONFIG_H
17020 # Without the "./", some shells look in PATH for config.status.
17021 : ${CONFIG_STATUS=./config.status}
17023 echo creating $CONFIG_STATUS
17024 rm -f $CONFIG_STATUS
17025 cat > $CONFIG_STATUS <<EOF
17027 # Generated automatically by configure.
17028 # Run this file to recreate the current configuration.
17029 # This directory was configured as follows,
17030 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17032 # $0 $ac_configure_args
17034 # Compiler output produced by configure, useful for debugging
17035 # configure, is in ./config.log if it exists.
17037 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17040 case "\$ac_option" in
17041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17042 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17043 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17044 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17045 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17047 -help | --help | --hel | --he | --h)
17048 echo "\$ac_cs_usage"; exit 0 ;;
17049 *) echo "\$ac_cs_usage"; exit 1 ;;
17053 ac_given_srcdir=$srcdir
17054 ac_given_INSTALL="$INSTALL"
17056 trap 'rm -fr `echo "\
17057 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17058 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17059 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17060 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17061 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17062 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17063 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17064 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17065 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17066 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17067 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17068 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17069 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17070 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17071 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17072 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17073 include/Makefile:build/top.mk:include/Makefile.in \
17074 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17075 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17076 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17077 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17078 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17079 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17080 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17081 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17082 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17083 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17084 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17085 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17086 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17087 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17088 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17089 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17090 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17091 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17092 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17093 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17094 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17095 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17096 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17097 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17099 cat >> $CONFIG_STATUS <<EOF
17101 # Protect against being on the right side of a sed subst in config.status.
17102 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17103 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17107 s%@CFLAGS@%$CFLAGS%g
17108 s%@CPPFLAGS@%$CPPFLAGS%g
17109 s%@CXXFLAGS@%$CXXFLAGS%g
17110 s%@FFLAGS@%$FFLAGS%g
17112 s%@LDFLAGS@%$LDFLAGS%g
17114 s%@exec_prefix@%$exec_prefix%g
17115 s%@prefix@%$prefix%g
17116 s%@program_transform_name@%$program_transform_name%g
17117 s%@bindir@%$bindir%g
17118 s%@sbindir@%$sbindir%g
17119 s%@libexecdir@%$libexecdir%g
17120 s%@datadir@%$datadir%g
17121 s%@sysconfdir@%$sysconfdir%g
17122 s%@sharedstatedir@%$sharedstatedir%g
17123 s%@localstatedir@%$localstatedir%g
17124 s%@libdir@%$libdir%g
17125 s%@includedir@%$includedir%g
17126 s%@oldincludedir@%$oldincludedir%g
17127 s%@infodir@%$infodir%g
17128 s%@mandir@%$mandir%g
17130 s%@host_alias@%$host_alias%g
17131 s%@host_cpu@%$host_cpu%g
17132 s%@host_vendor@%$host_vendor%g
17133 s%@host_os@%$host_os%g
17134 s%@target@%$target%g
17135 s%@target_alias@%$target_alias%g
17136 s%@target_cpu@%$target_cpu%g
17137 s%@target_vendor@%$target_vendor%g
17138 s%@target_os@%$target_os%g
17140 s%@build_alias@%$build_alias%g
17141 s%@build_cpu@%$build_cpu%g
17142 s%@build_vendor@%$build_vendor%g
17143 s%@build_os@%$build_os%g
17144 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17145 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17146 s%@INSTALL_DATA@%$INSTALL_DATA%g
17147 s%@PACKAGE@%$PACKAGE%g
17148 s%@VERSION@%$VERSION%g
17149 s%@ACLOCAL@%$ACLOCAL%g
17150 s%@AUTOCONF@%$AUTOCONF%g
17151 s%@AUTOMAKE@%$AUTOMAKE%g
17152 s%@AUTOHEADER@%$AUTOHEADER%g
17153 s%@MAKEINFO@%$MAKEINFO%g
17154 s%@install_sh@%$install_sh%g
17157 s%@AMTARFLAGS@%$AMTARFLAGS%g
17158 s%@SET_MAKE@%$SET_MAKE%g
17159 s%@top_builddir@%$top_builddir%g
17160 s%@ldap_subdir@%$ldap_subdir%g
17162 s%@RANLIB@%$RANLIB%g
17164 s%@DLLTOOL@%$DLLTOOL%g
17166 s%@OBJDUMP@%$OBJDUMP%g
17167 s%@LIBTOOL@%$LIBTOOL%g
17169 s%@SENDMAIL@%$SENDMAIL%g
17170 s%@EDITOR@%$EDITOR%g
17171 s%@FINGER@%$FINGER%g
17173 s%@EXEEXT@%$EXEEXT%g
17174 s%@OBJEXT@%$OBJEXT%g
17175 s%@OL_MKDEP@%$OL_MKDEP%g
17176 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17177 s%@LIBOBJS@%$LIBOBJS%g
17178 s%@LIBSRCS@%$LIBSRCS%g
17180 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17181 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17182 s%@DYN_EXT@%$DYN_EXT%g
17183 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17184 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17185 s%@BUILD_LDAP@%$BUILD_LDAP%g
17186 s%@BUILD_LDBM@%$BUILD_LDBM%g
17187 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17188 s%@BUILD_SHELL@%$BUILD_SHELL%g
17189 s%@BUILD_SQL@%$BUILD_SQL%g
17190 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
17191 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
17192 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
17193 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
17194 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
17195 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
17196 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
17197 s%@LDAP_LIBS@%$LDAP_LIBS%g
17198 s%@LDIF_LIBS@%$LDIF_LIBS%g
17199 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
17200 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
17201 s%@LDBM_LIBS@%$LDBM_LIBS%g
17202 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
17203 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
17204 s%@WRAP_LIBS@%$WRAP_LIBS%g
17205 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
17206 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
17207 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
17208 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
17209 s%@KRB4_LIBS@%$KRB4_LIBS%g
17210 s%@KRB5_LIBS@%$KRB5_LIBS%g
17211 s%@READLINE_LIBS@%$READLINE_LIBS%g
17212 s%@SASL_LIBS@%$SASL_LIBS%g
17213 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
17214 s%@TLS_LIBS@%$TLS_LIBS%g
17215 s%@MODULES_LIBS@%$MODULES_LIBS%g
17216 s%@AUTH_LIBS@%$AUTH_LIBS%g
17217 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
17218 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
17219 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
17224 cat >> $CONFIG_STATUS <<\EOF
17226 # Split the substitutions into bite-sized pieces for seds with
17227 # small command number limits, like on Digital OSF/1 and HP-UX.
17228 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17229 ac_file=1 # Number of current file.
17230 ac_beg=1 # First line for current file.
17231 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17234 while $ac_more_lines; do
17235 if test $ac_beg -gt 1; then
17236 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17238 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17240 if test ! -s conftest.s$ac_file; then
17241 ac_more_lines=false
17242 rm -f conftest.s$ac_file
17244 if test -z "$ac_sed_cmds"; then
17245 ac_sed_cmds="sed -f conftest.s$ac_file"
17247 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17249 ac_file=`expr $ac_file + 1`
17251 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17254 if test -z "$ac_sed_cmds"; then
17259 cat >> $CONFIG_STATUS <<EOF
17261 CONFIG_FILES=\${CONFIG_FILES-"\
17262 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17263 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17264 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17265 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17266 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17267 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17268 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17269 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17270 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17271 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17272 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17273 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17274 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17275 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17276 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17277 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17278 include/Makefile:build/top.mk:include/Makefile.in \
17279 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17280 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17281 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17282 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17283 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17284 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17285 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17286 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17287 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17288 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17289 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17290 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17291 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17292 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17293 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17294 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17295 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17296 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17297 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17298 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17299 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17300 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17301 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17304 cat >> $CONFIG_STATUS <<\EOF
17305 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17308 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17309 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17310 *) ac_file_in="${ac_file}.in" ;;
17313 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17315 # Remove last slash and all that follows it. Not all systems have dirname.
17316 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17317 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17318 # The file is in a subdirectory.
17319 test ! -d "$ac_dir" && mkdir "$ac_dir"
17320 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17321 # A "../" for each directory in $ac_dir_suffix.
17322 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17324 ac_dir_suffix= ac_dots=
17327 case "$ac_given_srcdir" in
17329 if test -z "$ac_dots"; then top_srcdir=.
17330 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17331 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17332 *) # Relative path.
17333 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17334 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17337 case "$ac_given_INSTALL" in
17338 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17339 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17342 echo creating "$ac_file"
17344 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17346 *[Mm]akefile*) ac_comsub="1i\\
17347 # $configure_input" ;;
17351 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17353 s%@configure_input@%$configure_input%g
17354 s%@srcdir@%$srcdir%g
17355 s%@top_srcdir@%$top_srcdir%g
17356 s%@INSTALL@%$INSTALL%g
17357 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17361 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17362 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17364 # ac_d sets the value in "#define NAME VALUE" lines.
17365 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17366 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17369 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17370 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17371 ac_uB='\([ ]\)%\1#\2define\3'
17374 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17375 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17376 ac_eB='$%\1#\2define\3'
17380 if test "${CONFIG_HEADERS+set}" != set; then
17382 cat >> $CONFIG_STATUS <<EOF
17383 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17385 cat >> $CONFIG_STATUS <<\EOF
17387 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17390 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17391 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17392 *) ac_file_in="${ac_file}.in" ;;
17395 echo creating $ac_file
17397 rm -f conftest.frag conftest.in conftest.out
17398 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17399 cat $ac_file_inputs > conftest.in
17403 # Transform confdefs.h into a sed script conftest.vals that substitutes
17404 # the proper values into config.h.in to produce config.h. And first:
17405 # Protect against being on the right side of a sed subst in config.status.
17406 # Protect against being in an unquoted here document in config.status.
17407 rm -f conftest.vals
17408 cat > conftest.hdr <<\EOF
17411 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17415 sed -n -f conftest.hdr confdefs.h > conftest.vals
17418 # This sed command replaces #undef with comments. This is necessary, for
17419 # example, in the case of _POSIX_SOURCE, which is predefined and required
17420 # on some systems where configure will not decide to define it.
17421 cat >> conftest.vals <<\EOF
17422 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17425 # Break up conftest.vals because some shells have a limit on
17426 # the size of here documents, and old seds have small limits too.
17428 rm -f conftest.tail
17431 ac_lines=`grep -c . conftest.vals`
17432 # grep -c gives empty output for an empty file on some AIX systems.
17433 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17434 # Write a limited-size here document to conftest.frag.
17435 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17436 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17438 sed -f conftest.frag conftest.in > conftest.out
17440 mv conftest.out conftest.in
17441 ' >> $CONFIG_STATUS
17442 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17443 rm -f conftest.vals
17444 mv conftest.tail conftest.vals
17446 rm -f conftest.vals
17448 cat >> $CONFIG_STATUS <<\EOF
17449 rm -f conftest.frag conftest.h
17450 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17451 cat conftest.in >> conftest.h
17453 if cmp -s $ac_file conftest.h 2>/dev/null; then
17454 echo "$ac_file is unchanged"
17457 # Remove last slash and all that follows it. Not all systems have dirname.
17458 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17459 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17460 # The file is in a subdirectory.
17461 test ! -d "$ac_dir" && mkdir "$ac_dir"
17464 mv conftest.h $ac_file
17469 cat >> $CONFIG_STATUS <<EOF
17472 cat >> $CONFIG_STATUS <<\EOF
17475 echo Please \"make depend\" to build dependencies
17479 chmod +x $CONFIG_STATUS
17480 rm -fr confdefs* $ac_clean_files
17481 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1