3 # from OpenLDAP: pkg/ldap/configure.in,v 1.545 2004/09/11 14:15:53 ando Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
86 SLAPD Backend Options:"
88 --enable-backends enable all available backends no|yes|mod [no]"
90 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
92 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
94 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
96 --enable-ldap enable ldap backend no|yes|mod [no]"
98 --enable-ldbm enable ldbm backend no|yes|mod [no]"
100 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
102 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
104 --enable-meta enable metadirectory backend no|yes|mod [no]"
106 --enable-monitor enable monitor backend no|yes|mod [yes]"
108 --enable-null enable null backend no|yes|mod [no]"
110 --enable-passwd enable passwd backend no|yes|mod [no]"
112 --enable-perl enable perl backend no|yes|mod [no]"
114 --enable-relay enable relay backend no|yes|mod [yes]"
116 --enable-shell enable shell backend no|yes|mod [no]"
118 --enable-sql enable sql backend no|yes|mod [no]"
121 SLAPD Overlay Options:"
123 --enable-overlays enable all available overlays no|yes|mod [no]"
125 --enable-chain LDAP Chain Response no|yes|mod [no]"
127 --enable-denyop Deny Operation overlay no|yes|mod [no]"
129 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
131 --enable-lastmod Last Modification overlay no|yes|mod [no]"
133 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
135 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
137 --enable-refint Referential Integrity overlay no|yes|mod [no]"
139 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
141 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
144 SLURPD (Replication Daemon) Options:"
146 --enable-slurpd enable building slurpd [auto]"
149 Library Generation & Linking Options"
151 --enable-static[=PKGS] build static libraries [default=yes]"
153 --enable-shared[=PKGS] build shared libraries [default=yes]"
155 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
157 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
159 # Find the correct PATH separator. Usually this is `:', but
160 # DJGPP uses `;' like DOS.
161 if test "X${PATH_SEPARATOR+set}" != Xset; then
162 UNAME=${UNAME-`uname 2>/dev/null`}
164 *-DOS) lt_cv_sys_path_separator=';' ;;
165 *) lt_cv_sys_path_separator=':' ;;
167 PATH_SEPARATOR=$lt_cv_sys_path_separator
171 # Check that we are running under the correct shell.
172 SHELL=${CONFIG_SHELL-/bin/sh}
176 # Remove one level of quotation (which was required for Make).
177 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
182 if test "X$1" = X--no-reexec; then
183 # Discard the --no-reexec flag, and continue.
185 elif test "X$1" = X--fallback-echo; then
186 # Avoid inline document here, it may be left over
188 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
189 # Yippee, $echo works!
192 # Restart under the correct shell.
193 exec $SHELL "$0" --no-reexec ${1+"$@"}
196 if test "X$1" = X--fallback-echo; then
197 # used as fallback echo
205 # The HP-UX ksh and POSIX shell print the target directory to stdout
207 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
209 if test -z "$ECHO"; then
210 if test "X${echo_test_string+set}" != Xset; then
211 # find a string as large as possible, as long as the shell can cope with it
212 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
213 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
214 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
215 echo_test_string="`eval $cmd`" &&
216 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
223 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
224 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
225 test "X$echo_testing_string" = "X$echo_test_string"; then
228 # The Solaris, AIX, and Digital Unix default echo programs unquote
229 # backslashes. This makes it impossible to quote backslashes using
230 # echo "$something" | sed 's/\\/\\\\/g'
232 # So, first we look for a working echo in the user's PATH.
234 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
235 for dir in $PATH /usr/ucb; do
236 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
237 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
238 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
239 test "X$echo_testing_string" = "X$echo_test_string"; then
246 if test "X$echo" = Xecho; then
247 # We didn't find a better echo, so look for alternatives.
248 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
249 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
250 test "X$echo_testing_string" = "X$echo_test_string"; then
251 # This shell has a builtin print -r that does the trick.
253 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
254 test "X$CONFIG_SHELL" != X/bin/ksh; then
255 # If we have ksh, try running configure again with it.
256 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
257 export ORIGINAL_CONFIG_SHELL
258 CONFIG_SHELL=/bin/ksh
260 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
264 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
265 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
266 test "X$echo_testing_string" = "X$echo_test_string"; then
269 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
270 test "X$echo_testing_string" = 'X\t' &&
271 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
272 test "X$echo_testing_string" = "X$echo_test_string"; then
273 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
275 SHELL="$CONFIG_SHELL"
277 echo="$CONFIG_SHELL $0 --fallback-echo"
278 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
279 test "X$echo_testing_string" = 'X\t' &&
280 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
281 test "X$echo_testing_string" = "X$echo_test_string"; then
282 echo="$CONFIG_SHELL $0 --fallback-echo"
284 # maybe with a smaller string...
287 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
288 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
295 if test "$prev" != 'sed 50q "$0"'; then
296 echo_test_string=`eval $prev`
297 export echo_test_string
298 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
300 # Oops. We lost completely, so just stick with echo.
309 # Copy echo and quote the copy suitably for passing to libtool from
310 # the Makefile, instead of quoting the original, which is used later.
312 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
313 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
318 --disable-libtool-lock avoid locking (might break parallel builds)"
320 --with-pic try to use only PIC/non-PIC objects [default=use both]"
323 See INSTALL file for further details."
325 # Initialize some variables set by options.
326 # The variables have the same names as the options, with
327 # dashes changed to underlines.
329 cache_file=./config.cache
338 program_transform_name=s,x,x,
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
359 # Initialize some other variables.
362 SHELL=${CONFIG_SHELL-/bin/sh}
363 # Maximum number of lines to put in a shell here document.
370 # If the previous option needs an argument, assign it.
371 if test -n "$ac_prev"; then
372 eval "$ac_prev=\$ac_option"
378 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
382 # Accept the important Cygnus configure options, so we can diagnose typos.
386 -bindir | --bindir | --bindi | --bind | --bin | --bi)
388 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
389 bindir="$ac_optarg" ;;
391 -build | --build | --buil | --bui | --bu)
393 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
394 build="$ac_optarg" ;;
396 -cache-file | --cache-file | --cache-fil | --cache-fi \
397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
398 ac_prev=cache_file ;;
399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
401 cache_file="$ac_optarg" ;;
403 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
405 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
407 datadir="$ac_optarg" ;;
409 -disable-* | --disable-*)
410 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
415 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
416 eval "enable_${ac_feature}=no" ;;
418 -enable-* | --enable-*)
419 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
424 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
429 eval "enable_${ac_feature}='$ac_optarg'" ;;
431 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
432 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
433 | --exec | --exe | --ex)
434 ac_prev=exec_prefix ;;
435 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
436 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
437 | --exec=* | --exe=* | --ex=*)
438 exec_prefix="$ac_optarg" ;;
440 -gas | --gas | --ga | --g)
441 # Obsolete; use --with-gas.
444 -help | --help | --hel | --he)
445 # Omit some internal or obsolete options to make the list less imposing.
446 # This message is too long to be a string in the A/UX 3.1 sh.
448 Usage: configure [options] [host]
449 Options: [defaults in brackets after descriptions]
451 --cache-file=FILE cache test results in FILE
452 --help print this message
453 --no-create do not create output files
454 --quiet, --silent do not print \`checking...' messages
455 --version print the version of autoconf that created configure
456 Directory and file names:
457 --prefix=PREFIX install architecture-independent files in PREFIX
459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
461 --bindir=DIR user executables in DIR [EPREFIX/bin]
462 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
463 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
464 --datadir=DIR read-only architecture-independent data in DIR
466 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
467 --sharedstatedir=DIR modifiable architecture-independent data in DIR
469 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
470 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
471 --includedir=DIR C header files in DIR [PREFIX/include]
472 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
473 --infodir=DIR info documentation in DIR [PREFIX/info]
474 --mandir=DIR man documentation in DIR [PREFIX/man]
475 --srcdir=DIR find the sources in DIR [configure dir or ..]
476 --program-prefix=PREFIX prepend PREFIX to installed program names
477 --program-suffix=SUFFIX append SUFFIX to installed program names
478 --program-transform-name=PROGRAM
479 run sed PROGRAM on installed program names
483 --build=BUILD configure for building on BUILD [BUILD=HOST]
484 --host=HOST configure for HOST [guessed]
485 --target=TARGET configure for TARGET [TARGET=HOST]
486 Features and packages:
487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
491 --x-includes=DIR X include files are in DIR
492 --x-libraries=DIR X library files are in DIR
494 if test -n "$ac_help"; then
495 echo "--enable and --with options recognized:$ac_help"
499 -host | --host | --hos | --ho)
501 -host=* | --host=* | --hos=* | --ho=*)
504 -includedir | --includedir | --includedi | --included | --include \
505 | --includ | --inclu | --incl | --inc)
506 ac_prev=includedir ;;
507 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
508 | --includ=* | --inclu=* | --incl=* | --inc=*)
509 includedir="$ac_optarg" ;;
511 -infodir | --infodir | --infodi | --infod | --info | --inf)
513 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
514 infodir="$ac_optarg" ;;
516 -libdir | --libdir | --libdi | --libd)
518 -libdir=* | --libdir=* | --libdi=* | --libd=*)
519 libdir="$ac_optarg" ;;
521 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
522 | --libexe | --libex | --libe)
523 ac_prev=libexecdir ;;
524 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
525 | --libexe=* | --libex=* | --libe=*)
526 libexecdir="$ac_optarg" ;;
528 -localstatedir | --localstatedir | --localstatedi | --localstated \
529 | --localstate | --localstat | --localsta | --localst \
530 | --locals | --local | --loca | --loc | --lo)
531 ac_prev=localstatedir ;;
532 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
533 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
534 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
535 localstatedir="$ac_optarg" ;;
537 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
539 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
540 mandir="$ac_optarg" ;;
543 # Obsolete; use --without-fp.
546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
550 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
551 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
554 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
555 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
556 | --oldin | --oldi | --old | --ol | --o)
557 ac_prev=oldincludedir ;;
558 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
559 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
560 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
561 oldincludedir="$ac_optarg" ;;
563 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
565 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
566 prefix="$ac_optarg" ;;
568 -program-prefix | --program-prefix | --program-prefi | --program-pref \
569 | --program-pre | --program-pr | --program-p)
570 ac_prev=program_prefix ;;
571 -program-prefix=* | --program-prefix=* | --program-prefi=* \
572 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
573 program_prefix="$ac_optarg" ;;
575 -program-suffix | --program-suffix | --program-suffi | --program-suff \
576 | --program-suf | --program-su | --program-s)
577 ac_prev=program_suffix ;;
578 -program-suffix=* | --program-suffix=* | --program-suffi=* \
579 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
580 program_suffix="$ac_optarg" ;;
582 -program-transform-name | --program-transform-name \
583 | --program-transform-nam | --program-transform-na \
584 | --program-transform-n | --program-transform- \
585 | --program-transform | --program-transfor \
586 | --program-transfo | --program-transf \
587 | --program-trans | --program-tran \
588 | --progr-tra | --program-tr | --program-t)
589 ac_prev=program_transform_name ;;
590 -program-transform-name=* | --program-transform-name=* \
591 | --program-transform-nam=* | --program-transform-na=* \
592 | --program-transform-n=* | --program-transform-=* \
593 | --program-transform=* | --program-transfor=* \
594 | --program-transfo=* | --program-transf=* \
595 | --program-trans=* | --program-tran=* \
596 | --progr-tra=* | --program-tr=* | --program-t=*)
597 program_transform_name="$ac_optarg" ;;
599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
600 | -silent | --silent | --silen | --sile | --sil)
603 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
605 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
607 sbindir="$ac_optarg" ;;
609 -sharedstatedir | --sharedstatedir | --sharedstatedi \
610 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
611 | --sharedst | --shareds | --shared | --share | --shar \
613 ac_prev=sharedstatedir ;;
614 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
615 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
616 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
618 sharedstatedir="$ac_optarg" ;;
620 -site | --site | --sit)
622 -site=* | --site=* | --sit=*)
625 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
627 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
628 srcdir="$ac_optarg" ;;
630 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
631 | --syscon | --sysco | --sysc | --sys | --sy)
632 ac_prev=sysconfdir ;;
633 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
634 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
635 sysconfdir="$ac_optarg" ;;
637 -target | --target | --targe | --targ | --tar | --ta | --t)
639 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
640 target="$ac_optarg" ;;
642 -v | -verbose | --verbose | --verbos | --verbo | --verb)
645 -version | --version | --versio | --versi | --vers)
646 echo "configure generated by autoconf version 2.13.1"
650 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
651 # Reject names that are not valid shell variable names.
652 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
653 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
655 ac_package=`echo $ac_package| sed 's/-/_/g'`
660 eval "with_${ac_package}='$ac_optarg'" ;;
662 -without-* | --without-*)
663 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
664 # Reject names that are not valid shell variable names.
665 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
666 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
668 ac_package=`echo $ac_package| sed 's/-/_/g'`
669 eval "with_${ac_package}=no" ;;
672 # Obsolete; use --with-x.
675 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
676 | --x-incl | --x-inc | --x-in | --x-i)
677 ac_prev=x_includes ;;
678 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
679 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
680 x_includes="$ac_optarg" ;;
682 -x-libraries | --x-libraries | --x-librarie | --x-librari \
683 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
684 ac_prev=x_libraries ;;
685 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
686 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
687 x_libraries="$ac_optarg" ;;
689 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
693 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
694 echo "configure: warning: $ac_option: invalid host type" 1>&2
696 if test "x$nonopt" != xNONE; then
697 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
705 if test -n "$ac_prev"; then
706 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
709 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
711 # File descriptor usage:
714 # 2 errors and warnings
715 # 3 some systems may open it to /dev/tty
716 # 4 used on the Kubota Titan
717 # 6 checking for... messages and results
718 # 5 compiler messages saved in config.log
719 if test "$silent" = yes; then
727 This file contains any messages produced by compilers while
728 running configure, to aid debugging if configure makes a mistake.
731 # Strip out --no-create and --no-recursion so they do not pile up.
732 # Also quote any args containing shell metacharacters.
737 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
738 | --no-cr | --no-c) ;;
739 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
740 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
741 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
742 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
743 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
748 # Only set these to C if already set. These must not be set unconditionally
749 # because not all systems understand e.g. LANG=C (notably SCO).
750 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
751 # Non-C LC_CTYPE values break the ctype check.
752 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
753 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
754 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
755 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
758 rm -rf conftest* confdefs.h
759 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
762 # A filename unique to this package, relative to the directory that
763 # configure is in, which we can look for to find out if srcdir is correct.
764 ac_unique_file=build/version.sh
766 # Find the source files, if location was not specified.
767 if test -z "$srcdir"; then
768 ac_srcdir_defaulted=yes
769 # Try the directory containing this script, then its parent.
771 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
772 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
774 if test ! -r $srcdir/$ac_unique_file; then
778 ac_srcdir_defaulted=no
780 if test ! -r $srcdir/$ac_unique_file; then
781 if test "$ac_srcdir_defaulted" = yes; then
782 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
784 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
787 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
789 # Prefer explicitly selected file to automatically selected ones.
790 if test -z "$CONFIG_SITE"; then
791 if test "x$prefix" != xNONE; then
792 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
794 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
797 for ac_site_file in $CONFIG_SITE; do
798 if test -r "$ac_site_file"; then
799 echo "loading site script $ac_site_file"
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp='$CPP $CPPFLAGS'
808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling=$ac_cv_prog_cc_cross
814 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
815 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
816 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
823 ac_n= ac_c='\c' ac_t=
827 # set unset (borrowed from autoconf 2.49c)
828 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
834 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
837 for ac_dir in build $srcdir/build; do
838 if test -f $ac_dir/install-sh; then
840 ac_install_sh="$ac_aux_dir/install-sh -c"
842 elif test -f $ac_dir/install.sh; then
844 ac_install_sh="$ac_aux_dir/install.sh -c"
846 elif test -f $ac_dir/shtool; then
848 ac_install_sh="$ac_aux_dir/shtool install -c"
852 if test -z "$ac_aux_dir"; then
853 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
855 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
856 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
857 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
859 eval `$ac_aux_dir/version.sh`
860 if test -z "$OL_STRING"; then
861 { echo "configure: error: could not determine version" 1>&2; exit 1; }
864 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
865 ac_cv_shtool="$ac_aux_dir/shtool"
867 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
870 SHTOOL="$ac_cv_shtool"
872 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
873 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
876 if test -d $ac_aux_dir/CVS; then
877 OPENLDAP_CVS="(from CVS sources) "
880 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
883 echo $ac_n "checking host system type""... $ac_c" 1>&6
884 echo "configure:885: checking host system type" >&5
885 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
887 # Make sure we can run config.sub.
888 if $ac_config_sub sun4 >/dev/null 2>&1; then :
889 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
892 ac_cv_host_alias=$host
893 case "$ac_cv_host_alias" in
897 if ac_cv_host_alias=`$ac_config_guess`; then :
898 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
900 *) ac_cv_host_alias=$nonopt ;;
904 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
905 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
906 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
907 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
909 echo $ac_n "(cached) $ac_c" 1>&6
912 echo "$ac_t""$ac_cv_host" 1>&6
915 host_alias=$ac_cv_host_alias
916 host_cpu=$ac_cv_host_cpu
917 host_vendor=$ac_cv_host_vendor
918 host_os=$ac_cv_host_os
924 echo $ac_n "checking target system type""... $ac_c" 1>&6
925 echo "configure:926: checking target system type" >&5
926 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
928 # Make sure we can run config.sub.
929 if $ac_config_sub sun4 >/dev/null 2>&1; then :
930 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933 ac_cv_target_alias=$target
934 case "$ac_cv_target_alias" in
938 ac_cv_target_alias=$host_alias ;;
940 *) ac_cv_target_alias=$nonopt ;;
944 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
945 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
949 echo $ac_n "(cached) $ac_c" 1>&6
952 echo "$ac_t""$ac_cv_target" 1>&6
955 target_alias=$ac_cv_target_alias
956 target_cpu=$ac_cv_target_cpu
957 target_vendor=$ac_cv_target_vendor
958 target_os=$ac_cv_target_os
964 echo $ac_n "checking build system type""... $ac_c" 1>&6
965 echo "configure:966: checking build system type" >&5
966 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
968 # Make sure we can run config.sub.
969 if $ac_config_sub sun4 >/dev/null 2>&1; then :
970 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
973 ac_cv_build_alias=$build
974 case "$ac_cv_build_alias" in
978 ac_cv_build_alias=$host_alias ;;
980 *) ac_cv_build_alias=$nonopt ;;
984 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
985 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo $ac_n "(cached) $ac_c" 1>&6
992 echo "$ac_t""$ac_cv_build" 1>&6
995 build_alias=$ac_cv_build_alias
996 build_cpu=$ac_cv_build_cpu
997 build_vendor=$ac_cv_build_vendor
998 build_os=$ac_cv_build_os
1004 # Do some error checking and defaulting for the host and target type.
1006 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1009 # 1. You are not allowed to specify --host, --target, and nonopt at the
1011 # 2. Host defaults to nonopt.
1012 # 3. If nonopt is not specified, then host defaults to the current host,
1013 # as determined by config.guess.
1014 # 4. Target and build default to nonopt.
1015 # 5. If nonopt is not specified, then target and build default to host.
1017 # The aliases save the names the user supplied, while $host etc.
1018 # will get canonicalized.
1019 case $host---$target---$nonopt in
1020 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1021 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix=${target_alias}-
1030 # Find a good install program. We prefer a C program (faster),
1031 # so one script is as good as another. But avoid the broken or
1032 # incompatible versions:
1033 # SysV /etc/install, /usr/sbin/install
1034 # SunOS /usr/etc/install
1035 # IRIX /sbin/install
1037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1040 # ./install, which can be erroneously created by make from ./install.sh.
1041 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1042 echo "configure:1043: checking for a BSD compatible install" >&5
1043 if test -z "$INSTALL"; then
1044 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1048 for ac_dir in $PATH; do
1049 # Account for people who put trailing slashes in PATH elements.
1051 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1053 # OSF1 and SCO ODT 3.0 have their own names for install.
1054 # Don't use installbsd from OSF since it installs stuff as root
1056 for ac_prog in ginstall scoinst install; do
1057 if test -f $ac_dir/$ac_prog; then
1058 if test $ac_prog = install &&
1059 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # AIX install. It has an incompatible calling convention.
1062 elif test $ac_prog = install &&
1063 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1064 # program-specific install script used by HP pwplus--don't use.
1067 ac_cv_path_install="$ac_dir/$ac_prog -c"
1078 if test "${ac_cv_path_install+set}" = set; then
1079 INSTALL="$ac_cv_path_install"
1081 # As a last resort, use the slow shell script. We don't cache a
1082 # path for INSTALL within a source directory, because that will
1083 # break other packages using the cache if that directory is
1084 # removed, or if the path is relative.
1085 INSTALL="$ac_install_sh"
1088 echo "$ac_t""$INSTALL" 1>&6
1090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1091 # It thinks the first close brace ends the variable substitution.
1092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1098 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether build environment is sane" >&5
1102 echo timestamp > conftestfile
1103 # Do `set' in a subshell so we don't clobber the current shell's
1104 # arguments. Must try -L first in case configure is actually a
1105 # symlink; some systems play weird games with the mod time of symlinks
1106 # (eg FreeBSD returns the mod time of the symlink's containing
1109 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1110 if test "$*" = "X"; then
1112 set X `ls -t $srcdir/configure conftestfile`
1114 if test "$*" != "X $srcdir/configure conftestfile" \
1115 && test "$*" != "X conftestfile $srcdir/configure"; then
1117 # If neither matched, then we have a broken ls. This can happen
1118 # if, for instance, CONFIG_SHELL is bash and it inherits a
1119 # broken ls alias from the environment. This has actually
1120 # happened. Such a system could not be considered "sane".
1121 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1122 alias in your environment" 1>&2; exit 1; }
1125 test "$2" = conftestfile
1131 { echo "configure: error: newly created file is older than distributed files!
1132 Check your system clock" 1>&2; exit 1; }
1135 echo "$ac_t""yes" 1>&6
1136 if test "$program_transform_name" = s,x,x,; then
1137 program_transform_name=
1139 # Double any \ or $. echo might interpret backslashes.
1140 cat <<\EOF_SED > conftestsed
1141 s,\\,\\\\,g; s,\$,$$,g
1143 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1146 test "$program_prefix" != NONE &&
1147 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1148 # Use a double $ so make ignores it.
1149 test "$program_suffix" != NONE &&
1150 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1152 # sed with no file args requires a program.
1153 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1155 for ac_prog in mawk gawk nawk awk
1157 # Extract the first word of "$ac_prog", so it can be a program name with args.
1158 set dummy $ac_prog; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$AWK"; then
1165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_AWK="$ac_prog"
1179 AWK="$ac_cv_prog_AWK"
1180 if test -n "$AWK"; then
1181 echo "$ac_t""$AWK" 1>&6
1183 echo "$ac_t""no" 1>&6
1186 test -n "$AWK" && break
1189 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${MAKE-make} sets \${MAKE}" >&5
1191 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1192 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftestmake <<\EOF
1197 @echo 'ac_maketemp="${MAKE}"'
1199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1200 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1201 if test -n "$ac_maketemp"; then
1202 eval ac_cv_prog_make_${ac_make}_set=yes
1204 eval ac_cv_prog_make_${ac_make}_set=no
1208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1212 echo "$ac_t""no" 1>&6
1213 SET_MAKE="MAKE=${MAKE-make}"
1222 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1223 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1228 missing_dir=`cd $ac_aux_dir && pwd`
1229 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1230 echo "configure:1231: checking for working aclocal" >&5
1231 # Run test in a subshell; some versions of sh will print an error if
1232 # an executable is not found, even if stderr is redirected.
1233 # Redirect stdin to placate older versions of autoconf. Sigh.
1234 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1236 echo "$ac_t""found" 1>&6
1238 ACLOCAL="$missing_dir/missing aclocal"
1239 echo "$ac_t""missing" 1>&6
1242 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working autoconf" >&5
1244 # Run test in a subshell; some versions of sh will print an error if
1245 # an executable is not found, even if stderr is redirected.
1246 # Redirect stdin to placate older versions of autoconf. Sigh.
1247 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1249 echo "$ac_t""found" 1>&6
1251 AUTOCONF="$missing_dir/missing autoconf"
1252 echo "$ac_t""missing" 1>&6
1255 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working automake" >&5
1257 # Run test in a subshell; some versions of sh will print an error if
1258 # an executable is not found, even if stderr is redirected.
1259 # Redirect stdin to placate older versions of autoconf. Sigh.
1260 if (automake --version) < /dev/null > /dev/null 2>&1; then
1262 echo "$ac_t""found" 1>&6
1264 AUTOMAKE="$missing_dir/missing automake"
1265 echo "$ac_t""missing" 1>&6
1268 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working autoheader" >&5
1270 # Run test in a subshell; some versions of sh will print an error if
1271 # an executable is not found, even if stderr is redirected.
1272 # Redirect stdin to placate older versions of autoconf. Sigh.
1273 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1274 AUTOHEADER=autoheader
1275 echo "$ac_t""found" 1>&6
1277 AUTOHEADER="$missing_dir/missing autoheader"
1278 echo "$ac_t""missing" 1>&6
1281 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1282 echo "configure:1283: checking for working makeinfo" >&5
1283 # Run test in a subshell; some versions of sh will print an error if
1284 # an executable is not found, even if stderr is redirected.
1285 # Redirect stdin to placate older versions of autoconf. Sigh.
1286 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1288 echo "$ac_t""found" 1>&6
1290 MAKEINFO="$missing_dir/missing makeinfo"
1291 echo "$ac_t""missing" 1>&6
1294 install_sh="$missing_dir/install-sh"
1295 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1297 for ac_prog in gnutar gtar tar
1299 # Extract the first word of "$ac_prog", so it can be a program name with args.
1300 set dummy $ac_prog; ac_word=$2
1301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1302 echo "configure:1303: checking for $ac_word" >&5
1303 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if test -n "$AMTAR"; then
1307 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1311 for ac_dir in $ac_dummy; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f $ac_dir/$ac_word; then
1314 ac_cv_prog_AMTAR="$ac_prog"
1321 AMTAR="$ac_cv_prog_AMTAR"
1322 if test -n "$AMTAR"; then
1323 echo "$ac_t""$AMTAR" 1>&6
1325 echo "$ac_t""no" 1>&6
1328 test -n "$AMTAR" && break
1333 if test -n "$AMTAR"; then
1334 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_PACKAGE "$PACKAGE"
1343 cat >> confdefs.h <<EOF
1344 #define OPENLDAP_VERSION "$VERSION"
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION $OL_API_INC
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1360 cat >> confdefs.h <<EOF
1361 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1365 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1367 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1369 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1373 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1374 echo "configure:1375: checking configure arguments" >&5
1379 ldap_subdir="/openldap"
1381 # Check whether --with-subdir or --without-subdir was given.
1382 if test "${with_subdir+set}" = set; then
1383 withval="$with_subdir"
1390 ldap_subdir="$withval"
1393 ldap_subdir="/$withval"
1400 # OpenLDAP --enable-debug
1401 # Check whether --enable-debug or --disable-debug was given.
1402 if test "${enable_debug+set}" = set; then
1403 enableval="$enable_debug"
1406 for ol_val in auto yes no ; do
1407 if test "$enableval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1414 ol_enable_debug="$ol_arg"
1417 ol_enable_debug="yes"
1419 # end --enable-debug
1420 # OpenLDAP --enable-dynamic
1421 # Check whether --enable-dynamic or --disable-dynamic was given.
1422 if test "${enable_dynamic+set}" = set; then
1423 enableval="$enable_dynamic"
1426 for ol_val in auto yes no ; do
1427 if test "$enableval" = "$ol_val" ; then
1431 if test "$ol_arg" = "invalid" ; then
1432 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1434 ol_enable_dynamic="$ol_arg"
1437 ol_enable_dynamic="no"
1439 # end --enable-dynamic
1440 # OpenLDAP --enable-syslog
1441 # Check whether --enable-syslog or --disable-syslog was given.
1442 if test "${enable_syslog+set}" = set; then
1443 enableval="$enable_syslog"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1454 ol_enable_syslog="$ol_arg"
1457 ol_enable_syslog="auto"
1459 # end --enable-syslog
1460 # OpenLDAP --enable-proctitle
1461 # Check whether --enable-proctitle or --disable-proctitle was given.
1462 if test "${enable_proctitle+set}" = set; then
1463 enableval="$enable_proctitle"
1466 for ol_val in auto yes no ; do
1467 if test "$enableval" = "$ol_val" ; then
1471 if test "$ol_arg" = "invalid" ; then
1472 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1474 ol_enable_proctitle="$ol_arg"
1477 ol_enable_proctitle="yes"
1479 # end --enable-proctitle
1480 ol_enable_referrals=${ol_enable_referrals-no}
1481 ol_enable_kbind=${ol_enable_kbind-no}
1482 # OpenLDAP --enable-ipv6
1483 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1484 if test "${enable_ipv6+set}" = set; then
1485 enableval="$enable_ipv6"
1488 for ol_val in auto yes no ; do
1489 if test "$enableval" = "$ol_val" ; then
1493 if test "$ol_arg" = "invalid" ; then
1494 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1496 ol_enable_ipv6="$ol_arg"
1499 ol_enable_ipv6="auto"
1502 # OpenLDAP --enable-local
1503 # Check whether --enable-local or --disable-local was given.
1504 if test "${enable_local+set}" = set; then
1505 enableval="$enable_local"
1508 for ol_val in auto yes no ; do
1509 if test "$enableval" = "$ol_val" ; then
1513 if test "$ol_arg" = "invalid" ; then
1514 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1516 ol_enable_local="$ol_arg"
1519 ol_enable_local="auto"
1521 # end --enable-local
1524 # OpenLDAP --with-cyrus_sasl
1525 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1526 if test "${with_cyrus_sasl+set}" = set; then
1527 withval="$with_cyrus_sasl"
1530 for ol_val in auto yes no ; do
1531 if test "$withval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1538 ol_with_cyrus_sasl="$ol_arg"
1541 ol_with_cyrus_sasl="auto"
1543 # end --with-cyrus_sasl
1545 # OpenLDAP --with-fetch
1546 # Check whether --with-fetch or --without-fetch was given.
1547 if test "${with_fetch+set}" = set; then
1548 withval="$with_fetch"
1551 for ol_val in auto yes no ; do
1552 if test "$withval" = "$ol_val" ; then
1556 if test "$ol_arg" = "invalid" ; then
1557 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1559 ol_with_fetch="$ol_arg"
1562 ol_with_fetch="auto"
1566 ol_with_kerberos=${ol_with_kerberos-auto}
1567 # OpenLDAP --with-threads
1568 # Check whether --with-threads or --without-threads was given.
1569 if test "${with_threads+set}" = set; then
1570 withval="$with_threads"
1573 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1574 if test "$withval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1581 ol_with_threads="$ol_arg"
1584 ol_with_threads="auto"
1586 # end --with-threads
1588 # OpenLDAP --with-tls
1589 # Check whether --with-tls or --without-tls was given.
1590 if test "${with_tls+set}" = set; then
1594 for ol_val in auto ssleay openssl yes no ; do
1595 if test "$withval" = "$ol_val" ; then
1599 if test "$ol_arg" = "invalid" ; then
1600 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1602 ol_with_tls="$ol_arg"
1609 # OpenLDAP --with-yielding_select
1610 # Check whether --with-yielding_select or --without-yielding_select was given.
1611 if test "${with_yielding_select+set}" = set; then
1612 withval="$with_yielding_select"
1615 for ol_val in auto yes no manual ; do
1616 if test "$withval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1623 ol_with_yielding_select="$ol_arg"
1626 ol_with_yielding_select="auto"
1628 # end --with-yielding_select
1632 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1633 if test "${with_xxslapdoptions+set}" = set; then
1634 withval="$with_xxslapdoptions"
1638 # OpenLDAP --enable-slapd
1639 # Check whether --enable-slapd or --disable-slapd was given.
1640 if test "${enable_slapd+set}" = set; then
1641 enableval="$enable_slapd"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1652 ol_enable_slapd="$ol_arg"
1655 ol_enable_slapd="yes"
1657 # end --enable-slapd
1658 # OpenLDAP --enable-aci
1659 # Check whether --enable-aci or --disable-aci was given.
1660 if test "${enable_aci+set}" = set; then
1661 enableval="$enable_aci"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1672 ol_enable_aci="$ol_arg"
1678 # OpenLDAP --enable-cleartext
1679 # Check whether --enable-cleartext or --disable-cleartext was given.
1680 if test "${enable_cleartext+set}" = set; then
1681 enableval="$enable_cleartext"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1692 ol_enable_cleartext="$ol_arg"
1695 ol_enable_cleartext="yes"
1697 # end --enable-cleartext
1698 # OpenLDAP --enable-crypt
1699 # Check whether --enable-crypt or --disable-crypt was given.
1700 if test "${enable_crypt+set}" = set; then
1701 enableval="$enable_crypt"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1712 ol_enable_crypt="$ol_arg"
1715 ol_enable_crypt="no"
1717 # end --enable-crypt
1718 # OpenLDAP --enable-lmpasswd
1719 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1720 if test "${enable_lmpasswd+set}" = set; then
1721 enableval="$enable_lmpasswd"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1732 ol_enable_lmpasswd="$ol_arg"
1735 ol_enable_lmpasswd="no"
1737 # end --enable-lmpasswd
1738 # OpenLDAP --enable-spasswd
1739 # Check whether --enable-spasswd or --disable-spasswd was given.
1740 if test "${enable_spasswd+set}" = set; then
1741 enableval="$enable_spasswd"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1752 ol_enable_spasswd="$ol_arg"
1755 ol_enable_spasswd="no"
1757 # end --enable-spasswd
1758 # OpenLDAP --enable-modules
1759 # Check whether --enable-modules or --disable-modules was given.
1760 if test "${enable_modules+set}" = set; then
1761 enableval="$enable_modules"
1764 for ol_val in auto yes no ; do
1765 if test "$enableval" = "$ol_val" ; then
1769 if test "$ol_arg" = "invalid" ; then
1770 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1772 ol_enable_modules="$ol_arg"
1775 ol_enable_modules="no"
1777 # end --enable-modules
1778 ol_enable_multimaster=${ol_enable_multimaster-no}
1779 # OpenLDAP --enable-rewrite
1780 # Check whether --enable-rewrite or --disable-rewrite was given.
1781 if test "${enable_rewrite+set}" = set; then
1782 enableval="$enable_rewrite"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1793 ol_enable_rewrite="$ol_arg"
1796 ol_enable_rewrite="auto"
1798 # end --enable-rewrite
1799 # OpenLDAP --enable-rlookups
1800 # Check whether --enable-rlookups or --disable-rlookups was given.
1801 if test "${enable_rlookups+set}" = set; then
1802 enableval="$enable_rlookups"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1813 ol_enable_rlookups="$ol_arg"
1816 ol_enable_rlookups="no"
1818 # end --enable-rlookups
1819 # OpenLDAP --enable-slapi
1820 # Check whether --enable-slapi or --disable-slapi was given.
1821 if test "${enable_slapi+set}" = set; then
1822 enableval="$enable_slapi"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1833 ol_enable_slapi="$ol_arg"
1836 ol_enable_slapi="no"
1838 # end --enable-slapi
1839 # OpenLDAP --enable-slp
1840 # Check whether --enable-slp or --disable-slp was given.
1841 if test "${enable_slp+set}" = set; then
1842 enableval="$enable_slp"
1845 for ol_val in auto yes no ; do
1846 if test "$enableval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1853 ol_enable_slp="$ol_arg"
1859 # OpenLDAP --enable-wrappers
1860 # Check whether --enable-wrappers or --disable-wrappers was given.
1861 if test "${enable_wrappers+set}" = set; then
1862 enableval="$enable_wrappers"
1865 for ol_val in auto yes no ; do
1866 if test "$enableval" = "$ol_val" ; then
1870 if test "$ol_arg" = "invalid" ; then
1871 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1873 ol_enable_wrappers="$ol_arg"
1876 ol_enable_wrappers="no"
1878 # end --enable-wrappers
1880 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1881 passwd perl relay shell sql"
1883 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1884 if test "${with_xxslapbackends+set}" = set; then
1885 withval="$with_xxslapbackends"
1890 # OpenLDAP --enable-backends
1891 # Check whether --enable-backends or --disable-backends was given.
1892 if test "${enable_backends+set}" = set; then
1893 enableval="$enable_backends"
1896 for ol_val in no yes mod ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1904 ol_enable_backends="$ol_arg"
1907 ol_enable_backends="no"
1909 # end --enable-backends
1910 # OpenLDAP --enable-bdb
1911 # Check whether --enable-bdb or --disable-bdb was given.
1912 if test "${enable_bdb+set}" = set; then
1913 enableval="$enable_bdb"
1916 for ol_val in no yes mod ; do
1917 if test "$enableval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1924 ol_enable_bdb="$ol_arg"
1930 # OpenLDAP --enable-dnssrv
1931 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1932 if test "${enable_dnssrv+set}" = set; then
1933 enableval="$enable_dnssrv"
1936 for ol_val in no yes mod ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1944 ol_enable_dnssrv="$ol_arg"
1947 ol_enable_dnssrv="no"
1949 # end --enable-dnssrv
1950 # OpenLDAP --enable-hdb
1951 # Check whether --enable-hdb or --disable-hdb was given.
1952 if test "${enable_hdb+set}" = set; then
1953 enableval="$enable_hdb"
1956 for ol_val in no yes mod ; do
1957 if test "$enableval" = "$ol_val" ; then
1961 if test "$ol_arg" = "invalid" ; then
1962 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1964 ol_enable_hdb="$ol_arg"
1970 # OpenLDAP --enable-ldap
1971 # Check whether --enable-ldap or --disable-ldap was given.
1972 if test "${enable_ldap+set}" = set; then
1973 enableval="$enable_ldap"
1976 for ol_val in no yes mod ; do
1977 if test "$enableval" = "$ol_val" ; then
1981 if test "$ol_arg" = "invalid" ; then
1982 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1984 ol_enable_ldap="$ol_arg"
1990 # OpenLDAP --enable-ldbm
1991 # Check whether --enable-ldbm or --disable-ldbm was given.
1992 if test "${enable_ldbm+set}" = set; then
1993 enableval="$enable_ldbm"
1996 for ol_val in no yes mod ; do
1997 if test "$enableval" = "$ol_val" ; then
2001 if test "$ol_arg" = "invalid" ; then
2002 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2004 ol_enable_ldbm="$ol_arg"
2010 # OpenLDAP --with-ldbm_api
2011 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2012 if test "${with_ldbm_api+set}" = set; then
2013 withval="$with_ldbm_api"
2016 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2024 ol_with_ldbm_api="$ol_arg"
2027 ol_with_ldbm_api="auto"
2029 # end --with-ldbm_api
2031 # OpenLDAP --with-ldbm_type
2032 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2033 if test "${with_ldbm_type+set}" = set; then
2034 withval="$with_ldbm_type"
2037 for ol_val in auto btree hash ; do
2038 if test "$withval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2045 ol_with_ldbm_type="$ol_arg"
2048 ol_with_ldbm_type="auto"
2050 # end --with-ldbm_type
2052 # OpenLDAP --enable-meta
2053 # Check whether --enable-meta or --disable-meta was given.
2054 if test "${enable_meta+set}" = set; then
2055 enableval="$enable_meta"
2058 for ol_val in no yes mod ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2066 ol_enable_meta="$ol_arg"
2072 # OpenLDAP --enable-monitor
2073 # Check whether --enable-monitor or --disable-monitor was given.
2074 if test "${enable_monitor+set}" = set; then
2075 enableval="$enable_monitor"
2078 for ol_val in no yes mod ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2086 ol_enable_monitor="$ol_arg"
2089 ol_enable_monitor="yes"
2091 # end --enable-monitor
2092 # OpenLDAP --enable-null
2093 # Check whether --enable-null or --disable-null was given.
2094 if test "${enable_null+set}" = set; then
2095 enableval="$enable_null"
2098 for ol_val in no yes mod ; do
2099 if test "$enableval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2106 ol_enable_null="$ol_arg"
2112 # OpenLDAP --enable-passwd
2113 # Check whether --enable-passwd or --disable-passwd was given.
2114 if test "${enable_passwd+set}" = set; then
2115 enableval="$enable_passwd"
2118 for ol_val in no yes mod ; do
2119 if test "$enableval" = "$ol_val" ; then
2123 if test "$ol_arg" = "invalid" ; then
2124 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2126 ol_enable_passwd="$ol_arg"
2129 ol_enable_passwd="no"
2131 # end --enable-passwd
2132 # OpenLDAP --enable-perl
2133 # Check whether --enable-perl or --disable-perl was given.
2134 if test "${enable_perl+set}" = set; then
2135 enableval="$enable_perl"
2138 for ol_val in no yes mod ; do
2139 if test "$enableval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2146 ol_enable_perl="$ol_arg"
2152 # OpenLDAP --enable-relay
2153 # Check whether --enable-relay or --disable-relay was given.
2154 if test "${enable_relay+set}" = set; then
2155 enableval="$enable_relay"
2158 for ol_val in no yes mod ; do
2159 if test "$enableval" = "$ol_val" ; then
2163 if test "$ol_arg" = "invalid" ; then
2164 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2166 ol_enable_relay="$ol_arg"
2169 ol_enable_relay="yes"
2171 # end --enable-relay
2172 # OpenLDAP --enable-shell
2173 # Check whether --enable-shell or --disable-shell was given.
2174 if test "${enable_shell+set}" = set; then
2175 enableval="$enable_shell"
2178 for ol_val in no yes mod ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2186 ol_enable_shell="$ol_arg"
2189 ol_enable_shell="no"
2191 # end --enable-shell
2192 # OpenLDAP --enable-sql
2193 # Check whether --enable-sql or --disable-sql was given.
2194 if test "${enable_sql+set}" = set; then
2195 enableval="$enable_sql"
2198 for ol_val in no yes mod ; do
2199 if test "$enableval" = "$ol_val" ; then
2203 if test "$ol_arg" = "invalid" ; then
2204 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2206 ol_enable_sql="$ol_arg"
2213 Overlays="chain denyop dyngroup lastmod ppolicy proxycache rwm \
2216 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2217 if test "${with_xxslapoverlays+set}" = set; then
2218 withval="$with_xxslapoverlays"
2223 # OpenLDAP --enable-overlays
2224 # Check whether --enable-overlays or --disable-overlays was given.
2225 if test "${enable_overlays+set}" = set; then
2226 enableval="$enable_overlays"
2229 for ol_val in no yes mod ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2237 ol_enable_overlays="$ol_arg"
2240 ol_enable_overlays="no"
2242 # end --enable-overlays
2243 # OpenLDAP --enable-chain
2244 # Check whether --enable-chain or --disable-chain was given.
2245 if test "${enable_chain+set}" = set; then
2246 enableval="$enable_chain"
2249 for ol_val in no yes mod ; do
2250 if test "$enableval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2257 ol_enable_chain="$ol_arg"
2260 ol_enable_chain="no"
2262 # end --enable-chain
2264 # OpenLDAP --enable-denyop
2265 # Check whether --enable-denyop or --disable-denyop was given.
2266 if test "${enable_denyop+set}" = set; then
2267 enableval="$enable_denyop"
2270 for ol_val in no yes mod ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2278 ol_enable_denyop="$ol_arg"
2281 ol_enable_denyop="no"
2283 # end --enable-denyop
2285 # OpenLDAP --enable-dyngroup
2286 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2287 if test "${enable_dyngroup+set}" = set; then
2288 enableval="$enable_dyngroup"
2291 for ol_val in no yes mod ; do
2292 if test "$enableval" = "$ol_val" ; then
2296 if test "$ol_arg" = "invalid" ; then
2297 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2299 ol_enable_dyngroup="$ol_arg"
2302 ol_enable_dyngroup="no"
2304 # end --enable-dyngroup
2306 # OpenLDAP --enable-lastmod
2307 # Check whether --enable-lastmod or --disable-lastmod was given.
2308 if test "${enable_lastmod+set}" = set; then
2309 enableval="$enable_lastmod"
2312 for ol_val in no yes mod ; do
2313 if test "$enableval" = "$ol_val" ; then
2317 if test "$ol_arg" = "invalid" ; then
2318 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2320 ol_enable_lastmod="$ol_arg"
2323 ol_enable_lastmod="no"
2325 # end --enable-lastmod
2327 # OpenLDAP --enable-ppolicy
2328 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2329 if test "${enable_ppolicy+set}" = set; then
2330 enableval="$enable_ppolicy"
2333 for ol_val in no yes mod ; do
2334 if test "$enableval" = "$ol_val" ; then
2338 if test "$ol_arg" = "invalid" ; then
2339 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2341 ol_enable_ppolicy="$ol_arg"
2344 ol_enable_ppolicy="no"
2346 # end --enable-ppolicy
2348 # OpenLDAP --enable-proxycache
2349 # Check whether --enable-proxycache or --disable-proxycache was given.
2350 if test "${enable_proxycache+set}" = set; then
2351 enableval="$enable_proxycache"
2354 for ol_val in no yes mod ; do
2355 if test "$enableval" = "$ol_val" ; then
2359 if test "$ol_arg" = "invalid" ; then
2360 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2362 ol_enable_proxycache="$ol_arg"
2365 ol_enable_proxycache="no"
2367 # end --enable-proxycache
2369 # OpenLDAP --enable-refint
2370 # Check whether --enable-refint or --disable-refint was given.
2371 if test "${enable_refint+set}" = set; then
2372 enableval="$enable_refint"
2375 for ol_val in no yes mod ; do
2376 if test "$enableval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2383 ol_enable_refint="$ol_arg"
2386 ol_enable_refint="no"
2388 # end --enable-refint
2390 # OpenLDAP --enable-rwm
2391 # Check whether --enable-rwm or --disable-rwm was given.
2392 if test "${enable_rwm+set}" = set; then
2393 enableval="$enable_rwm"
2396 for ol_val in no yes mod ; do
2397 if test "$enableval" = "$ol_val" ; then
2401 if test "$ol_arg" = "invalid" ; then
2402 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2404 ol_enable_rwm="$ol_arg"
2411 # OpenLDAP --enable-unique
2412 # Check whether --enable-unique or --disable-unique was given.
2413 if test "${enable_unique+set}" = set; then
2414 enableval="$enable_unique"
2417 for ol_val in no yes mod ; do
2418 if test "$enableval" = "$ol_val" ; then
2422 if test "$ol_arg" = "invalid" ; then
2423 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2425 ol_enable_unique="$ol_arg"
2428 ol_enable_unique="no"
2430 # end --enable-unique
2434 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2435 if test "${with_xxslurpdoptions+set}" = set; then
2436 withval="$with_xxslurpdoptions"
2440 # OpenLDAP --enable-slurpd
2441 # Check whether --enable-slurpd or --disable-slurpd was given.
2442 if test "${enable_slurpd+set}" = set; then
2443 enableval="$enable_slurpd"
2446 for ol_val in auto yes no ; do
2447 if test "$enableval" = "$ol_val" ; then
2451 if test "$ol_arg" = "invalid" ; then
2452 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2454 ol_enable_slurpd="$ol_arg"
2457 ol_enable_slurpd="auto"
2459 # end --enable-slurpd
2461 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2462 if test "${with_xxliboptions+set}" = set; then
2463 withval="$with_xxliboptions"
2467 # Check whether --enable-static or --disable-static was given.
2468 if test "${enable_static+set}" = set; then
2469 enableval="$enable_static"
2470 p=${PACKAGE-default}
2472 yes) enable_static=yes ;;
2473 no) enable_static=no ;;
2476 # Look at the argument we got. We use all the common list separators.
2477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2478 for pkg in $enableval; do
2479 if test "X$pkg" = "X$p"; then
2490 # Check whether --enable-shared or --disable-shared was given.
2491 if test "${enable_shared+set}" = set; then
2492 enableval="$enable_shared"
2493 p=${PACKAGE-default}
2495 yes) enable_shared=yes ;;
2496 no) enable_shared=no ;;
2499 # Look at the argument we got. We use all the common list separators.
2500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2501 for pkg in $enableval; do
2502 if test "X$pkg" = "X$p"; then
2515 # Activate any backends that were not explicitly enabled.
2516 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2517 if test $ol_enable_backends != no ; then
2518 for i in $Backends; do
2519 eval "ol_tmp=\$ol_enable_$i"
2520 if test $ol_tmp = no ; then
2521 eval "ol_enable_$i=$ol_enable_backends"
2525 # Activate the overlays
2526 if test $ol_enable_overlays != no ; then
2527 for i in $Overlays; do
2528 eval "ol_tmp=\$ol_enable_$i"
2529 if test $ol_tmp = no ; then
2530 eval "ol_enable_$i=$ol_enable_overlays"
2536 if test $ol_enable_slapd = no ; then
2537 if test $ol_enable_slapi = yes ; then
2538 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2540 if test $ol_enable_backends != no ; then
2541 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2543 for i in $Backends; do
2544 eval "ol_tmp=\$ol_enable_$i"
2545 if test $ol_tmp != no ; then
2546 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2547 eval "ol_enable_$i=no"
2550 if test $ol_enable_modules = yes ; then
2551 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2553 if test $ol_enable_multimaster = yes ; then
2554 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2556 if test $ol_enable_wrappers = yes ; then
2557 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2559 if test $ol_enable_rlookups = yes ; then
2560 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2562 if test $ol_enable_aci = yes ; then
2563 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2565 if test $ol_with_ldbm_api != auto ; then
2566 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2568 if test $ol_with_ldbm_type != auto ; then
2569 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2571 if test $ol_enable_slurpd = yes ; then
2572 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2574 if test $ol_enable_rewrite = yes ; then
2575 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2577 if test $ol_enable_overlays != no ; then
2578 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2580 for i in $Overlays; do
2581 eval "ol_tmp=\$ol_enable_$i"
2582 if test $ol_tmp != no ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2584 eval "ol_enable_$i=no"
2588 # force settings to no
2591 ol_enable_backends=no
2592 ol_enable_overlays=no
2593 ol_enable_modules=no
2594 ol_enable_multimaster=no
2595 ol_enable_rlookups=no
2597 ol_enable_wrappers=no
2600 ol_with_ldbm_type=no
2604 ol_enable_rewrite=no
2606 elif test $ol_enable_ldbm = no ; then
2608 if test $ol_with_ldbm_api != auto ; then
2609 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2612 if test $ol_with_ldbm_type != auto ; then
2613 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2616 if test $ol_enable_modules != yes -a \
2617 $ol_enable_bdb = no -a \
2618 $ol_enable_dnssrv = no -a \
2619 $ol_enable_hdb = no -a \
2620 $ol_enable_ldap = no -a \
2621 $ol_enable_meta = no -a \
2622 $ol_enable_monitor = no -a \
2623 $ol_enable_null = no -a \
2624 $ol_enable_passwd = no -a \
2625 $ol_enable_perl = no -a \
2626 $ol_enable_relay = no -a \
2627 $ol_enable_shell = no -a \
2628 $ol_enable_sql = no ; then
2630 if test $ol_enable_slapd = yes ; then
2631 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2633 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2639 ol_with_ldbm_type=no
2641 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2642 ol_with_ldbm_api=berkeley
2646 if test $ol_with_ldbm_api = gdbm -a \
2647 $ol_with_ldbm_type = btree ; then
2648 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2650 if test $ol_with_ldbm_api = mdbm -a \
2651 $ol_with_ldbm_type = btree ; then
2652 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2654 if test $ol_with_ldbm_api = ndbm -a \
2655 $ol_with_ldbm_type = btree ; then
2656 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2659 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2660 if test $ol_with_ldbm_api = auto ; then
2661 ol_with_ldbm_api=berkeley
2662 elif test $ol_with_ldbm_api != berkeley ; then
2663 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2668 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2669 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2672 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2673 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2676 if test $ol_enable_slurpd = yes ; then
2677 if test $ol_with_threads = no ; then
2678 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2682 if test $ol_enable_lmpasswd = yes ; then
2683 if test $ol_with_tls = no ; then
2684 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2688 if test $ol_enable_kbind = yes ; then
2689 if test $ol_with_kerberos = no ; then
2690 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2691 elif test $ol_with_kerberos = auto ; then
2692 ol_with_kerberos=yes
2695 elif test $ol_enable_kbind = no ; then
2696 if test $ol_with_kerberos = auto ; then
2698 elif test $ol_with_kerberos != no ; then
2699 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2704 if test $ol_enable_spasswd = yes ; then
2705 if test $ol_with_cyrus_sasl = no ; then
2706 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2708 ol_with_cyrus_sasl=yes
2711 echo "$ac_t""done" 1>&6
2753 SLAPD_DYNAMIC_OVERLAYS=
2755 SLAPD_MODULES_LDFLAGS=
2756 SLAPD_MODULES_CPPFLAGS=
2758 SLAPD_STATIC_BACKENDS=
2759 SLAPD_DYNAMIC_BACKENDS=
2783 cat >> confdefs.h <<\EOF
2784 #define HAVE_MKVERSION 1
2792 *-*-aix*) if test -z "$CC" ; then
2793 case "$ol_with_threads" in
2794 auto | yes | posix) ol_aix_threads=yes ;;
2800 if test $ol_aix_threads = yes ; then
2801 if test -z "${CC}" ; then
2802 for ac_prog in cc_r xlc_r cc
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_word" >&5
2808 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2816 for ac_dir in $ac_dummy; do
2817 test -z "$ac_dir" && ac_dir=.
2818 if test -f $ac_dir/$ac_word; then
2819 ac_cv_prog_CC="$ac_prog"
2827 if test -n "$CC"; then
2828 echo "$ac_t""$CC" 1>&6
2830 echo "$ac_t""no" 1>&6
2833 test -n "$CC" && break
2837 if test "$CC" = cc ; then
2838 if test $ol_with_threads != auto ; then
2839 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2841 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2847 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2848 ol_with_threads=posix
2849 ol_cv_pthread_create=yes
2853 if test -z "${CC}"; then
2854 for ac_prog in cc gcc
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_word" >&5
2860 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2868 for ac_dir in $ac_dummy; do
2869 test -z "$ac_dir" && ac_dir=.
2870 if test -f $ac_dir/$ac_word; then
2871 ac_cv_prog_CC="$ac_prog"
2879 if test -n "$CC"; then
2880 echo "$ac_t""$CC" 1>&6
2882 echo "$ac_t""no" 1>&6
2885 test -n "$CC" && break
2887 test -n "$CC" || CC="missing"
2890 if test "${CC}" = "missing" ; then
2891 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2895 if test -z "${AR}"; then
2896 for ac_prog in ar gar
2898 # Extract the first word of "$ac_prog", so it can be a program name with args.
2899 set dummy $ac_prog; ac_word=$2
2900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_word" >&5
2902 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 if test -n "$AR"; then
2906 ac_cv_prog_AR="$AR" # Let the user override the test.
2908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2910 for ac_dir in $ac_dummy; do
2911 test -z "$ac_dir" && ac_dir=.
2912 if test -f $ac_dir/$ac_word; then
2913 ac_cv_prog_AR="$ac_prog"
2921 if test -n "$AR"; then
2922 echo "$ac_t""$AR" 1>&6
2924 echo "$ac_t""no" 1>&6
2927 test -n "$AR" && break
2929 test -n "$AR" || AR="missing"
2932 if test "${AR}" = "missing" ; then
2933 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2939 # Find the correct PATH separator. Usually this is `:', but
2940 # DJGPP uses `;' like DOS.
2941 if test "X${PATH_SEPARATOR+set}" != Xset; then
2942 UNAME=${UNAME-`uname 2>/dev/null`}
2944 *-DOS) lt_cv_sys_path_separator=';' ;;
2945 *) lt_cv_sys_path_separator=':' ;;
2947 PATH_SEPARATOR=$lt_cv_sys_path_separator
2950 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2951 echo "configure:2952: checking for Cygwin environment" >&5
2952 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2962 #define __CYGWIN__ __CYGWIN32__
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2979 echo "$ac_t""$ac_cv_cygwin" 1>&6
2981 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2982 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2983 echo "configure:2984: checking for mingw32 environment" >&5
2984 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2995 if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3007 echo "$ac_t""$ac_cv_mingw32" 1>&6
3009 test "$ac_cv_mingw32" = yes && MINGW32=yes
3010 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3011 echo "configure:3012: checking for EMX OS/2 environment" >&5
3012 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3023 if { (eval echo configure:3024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3035 echo "$ac_t""$ac_cv_emxos2" 1>&6
3037 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3038 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3039 echo "configure:3040: checking how to run the C preprocessor" >&5
3040 # On Suns, sometimes $CPP names a directory.
3041 if test -n "$CPP" && test -d "$CPP"; then
3044 if test -z "$CPP"; then
3045 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 # This must be in double quotes, not single quotes, because CPP may get
3049 # substituted into the Makefile and "${CC-cc}" will confuse make.
3051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp.
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3060 { (eval echo configure:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3062 if test -z "$ac_err"; then
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 CPP="${CC-cc} -E -traditional-cpp"
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3077 { (eval echo configure:3078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3079 if test -z "$ac_err"; then
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 CPP="${CC-cc} -nologo -E"
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3094 { (eval echo configure:3095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3096 if test -z "$ac_err"; then
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3110 ac_cv_prog_CPP="$CPP"
3112 CPP="$ac_cv_prog_CPP"
3114 ac_cv_prog_CPP="$CPP"
3116 echo "$ac_t""$CPP" 1>&6
3118 # Check whether --enable-fast-install or --disable-fast-install was given.
3119 if test "${enable_fast_install+set}" = set; then
3120 enableval="$enable_fast_install"
3121 p=${PACKAGE-default}
3123 yes) enable_fast_install=yes ;;
3124 no) enable_fast_install=no ;;
3126 enable_fast_install=no
3127 # Look at the argument we got. We use all the common list separators.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3129 for pkg in $enableval; do
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3138 enable_fast_install=yes
3141 # Extract the first word of "gcc", so it can be a program name with args.
3142 set dummy gcc; ac_word=$2
3143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_word" >&5
3145 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3153 for ac_dir in $ac_dummy; do
3154 test -z "$ac_dir" && ac_dir=.
3155 if test -f $ac_dir/$ac_word; then
3164 if test -n "$CC"; then
3165 echo "$ac_t""$CC" 1>&6
3167 echo "$ac_t""no" 1>&6
3170 if test -z "$CC"; then
3171 # Extract the first word of "cc", so it can be a program name with args.
3172 set dummy cc; ac_word=$2
3173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3174 echo "configure:3175: checking for $ac_word" >&5
3175 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3184 for ac_dir in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir=.
3186 if test -f $ac_dir/$ac_word; then
3187 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3188 ac_prog_rejected=yes
3196 if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy $ac_cv_prog_CC
3200 if test $# -gt 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3205 set dummy "$ac_dir/$ac_word" "$@"
3213 if test -n "$CC"; then
3214 echo "$ac_t""$CC" 1>&6
3216 echo "$ac_t""no" 1>&6
3219 if test -z "$CC"; then
3220 case "`uname -s`" in
3221 *win32* | *WIN32* | *CYGWIN*)
3222 # Extract the first word of "cl", so it can be a program name with args.
3223 set dummy cl; ac_word=$2
3224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_word" >&5
3226 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3234 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 if test -f $ac_dir/$ac_word; then
3245 if test -n "$CC"; then
3246 echo "$ac_t""$CC" 1>&6
3248 echo "$ac_t""no" 1>&6
3253 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3256 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3264 cross_compiling=$ac_cv_prog_cc_cross
3266 cat > conftest.$ac_ext << EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274 ac_cv_prog_cc_works=yes
3275 # If we can't run a trivial program, we are probably using a cross compiler.
3276 if (./conftest; exit) 2>/dev/null; then
3277 ac_cv_prog_cc_cross=no
3279 ac_cv_prog_cc_cross=yes
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 ac_cv_prog_cc_works=no
3288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3292 cross_compiling=$ac_cv_prog_cc_cross
3294 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3295 if test $ac_cv_prog_cc_works = no; then
3296 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3298 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3299 echo "configure:3300: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3300 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3301 cross_compiling=$ac_cv_prog_cc_cross
3303 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3304 echo "configure:3305: checking whether we are using GNU C" >&5
3305 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 cat > conftest.c <<EOF
3313 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3320 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3322 if test $ac_cv_prog_gcc = yes; then
3328 ac_test_CFLAGS="${CFLAGS+set}"
3329 ac_save_CFLAGS="$CFLAGS"
3331 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3332 echo "configure:3333: checking whether ${CC-cc} accepts -g" >&5
3333 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 echo 'void f(){}' > conftest.c
3337 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3346 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3347 if test "$ac_test_CFLAGS" = set; then
3348 CFLAGS="$ac_save_CFLAGS"
3349 elif test $ac_cv_prog_cc_g = yes; then
3350 if test "$GCC" = yes; then
3356 if test "$GCC" = yes; then
3363 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3364 if test "${with_gnu_ld+set}" = set; then
3365 withval="$with_gnu_ld"
3366 test "$withval" = no || with_gnu_ld=yes
3372 if test "$GCC" = yes; then
3373 # Check if gcc -print-prog-name=ld gives a path.
3374 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3375 echo "configure:3376: checking for ld used by GCC" >&5
3378 # gcc leaves a trailing carriage return which upsets mingw
3379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3384 # Accept absolute paths.
3385 [\\/]* | [A-Za-z]:[\\/]*)
3386 re_direlt='/[^/][^/]*/\.\./'
3387 # Canonicalize the path of ld
3388 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3390 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3392 test -z "$LD" && LD="$ac_prog"
3395 # If it fails, then pretend we aren't using GCC.
3399 # If it is relative, then search for the first ld in PATH.
3403 elif test "$with_gnu_ld" = yes; then
3404 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3405 echo "configure:3406: checking for GNU ld" >&5
3407 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3408 echo "configure:3409: checking for non-GNU ld" >&5
3410 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 if test -z "$LD"; then
3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3415 for ac_dir in $PATH; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3418 lt_cv_path_LD="$ac_dir/$ac_prog"
3419 # Check to see if the program is GNU ld. I'd rather use --version,
3420 # but apparently some GNU ld's only accept -v.
3421 # Break only if it was the GNU/non-GNU ld that we prefer.
3422 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3423 test "$with_gnu_ld" != no && break
3425 test "$with_gnu_ld" != yes && break
3431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3436 if test -n "$LD"; then
3437 echo "$ac_t""$LD" 1>&6
3439 echo "$ac_t""no" 1>&6
3441 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3442 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3443 echo "configure:3444: checking if the linker ($LD) is GNU ld" >&5
3444 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3448 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3449 lt_cv_prog_gnu_ld=yes
3451 lt_cv_prog_gnu_ld=no
3455 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3456 with_gnu_ld=$lt_cv_prog_gnu_ld
3459 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $LD option to reload object files" >&5
3461 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 lt_cv_ld_reload_flag='-r'
3467 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3468 reload_flag=$lt_cv_ld_reload_flag
3469 test -n "$reload_flag" && reload_flag=" $reload_flag"
3471 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3472 echo "configure:3473: checking for BSD-compatible nm" >&5
3473 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 if test -n "$NM"; then
3477 # Let the user override the test.
3480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3481 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3482 test -z "$ac_dir" && ac_dir=.
3483 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3484 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3485 # Check to see if the nm accepts a BSD-compat flag.
3486 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3487 # nm: unknown option "B" ignored
3488 # Tru64's nm complains that /dev/null is an invalid object file
3489 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3490 lt_cv_path_NM="$tmp_nm -B"
3492 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3493 lt_cv_path_NM="$tmp_nm -p"
3496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3497 continue # so that we can try to find one that supports BSD flags
3502 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3507 echo "$ac_t""$NM" 1>&6
3509 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3510 echo "configure:3511: checking for a sed that does not truncate output" >&5
3511 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 # Loop through the user's path and test for sed and gsed.
3515 # Then use that list of sed's as ones to test for truncation.
3516 as_executable_p="test -f"
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in sed gsed; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3525 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3531 # Create a temporary directory, and hook for its removal unless debugging.
3534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3535 trap '{ (exit 1); exit 1; }' 1 2 13 15
3538 # Create a (secure) tmp directory for tmp files.
3541 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3542 test -n "$tmp" && test -d "$tmp"
3545 tmp=$TMPDIR/sed$$-$RANDOM
3546 (umask 077 && mkdir $tmp)
3549 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3550 { (exit 1); exit 1; }
3554 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3555 # along with /bin/sed that truncates output.
3556 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3557 test ! -f ${_sed} && break
3558 cat /dev/null > "$tmp/sed.in"
3560 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3561 # Check for GNU sed and select it if it is found.
3562 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3563 lt_cv_path_SED=${_sed}
3567 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3568 mv "$tmp/sed.tmp" "$tmp/sed.in"
3569 cp "$tmp/sed.in" "$tmp/sed.nl"
3570 echo >>"$tmp/sed.nl"
3571 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3572 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3573 # 40000 chars as input seems more than enough
3574 test $_count -gt 10 && break
3575 _count=`expr $_count + 1`
3576 if test $_count -gt $_max; then
3578 lt_cv_path_SED=$_sed
3586 if test "X$SED" != "X"; then
3591 echo "$ac_t""$SED" 1>&6
3593 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3594 echo "configure:3595: checking whether ln -s works" >&5
3595 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3599 if ln -s X conftestdata 2>/dev/null
3602 ac_cv_prog_LN_S="ln -s"
3607 LN_S="$ac_cv_prog_LN_S"
3608 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3609 echo "$ac_t""yes" 1>&6
3611 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3615 echo "configure:3616: checking how to recognise dependent libraries" >&5
3616 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 lt_cv_file_magic_cmd='$MAGIC_CMD'
3620 lt_cv_file_magic_test_file=
3621 lt_cv_deplibs_check_method='unknown'
3622 # Need to set the preceding variable on all platforms that support
3623 # interlibrary dependencies.
3624 # 'none' -- dependencies not supported.
3625 # `unknown' -- same as none, but documents that we really don't know.
3626 # 'pass_all' -- all dependencies passed with no checks.
3627 # 'test_compile' -- check by making test program.
3628 # 'file_magic [[regex]]' -- check by looking for files in library path
3629 # which responds to the $file_magic_cmd with a given egrep regex.
3630 # If you have `file' or equivalent on your system and you're not sure
3631 # whether `pass_all' will *always* work, you probably want this one.
3635 lt_cv_deplibs_check_method=pass_all
3639 lt_cv_deplibs_check_method=pass_all
3643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3644 lt_cv_file_magic_cmd='/usr/bin/file -L'
3645 lt_cv_file_magic_test_file=/shlib/libc.so
3648 cygwin* | mingw* | pw32*)
3649 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3650 lt_cv_file_magic_cmd='$OBJDUMP -f'
3653 darwin* | rhapsody*)
3654 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3655 lt_cv_file_magic_cmd='/usr/bin/file -L'
3657 rhapsody* | darwin1.[012])
3658 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3661 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3667 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3670 # Not sure whether the presence of OpenBSD here was a mistake.
3671 # Let's accept both of them until this is cleared up.
3672 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3673 lt_cv_file_magic_cmd=/usr/bin/file
3674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3678 lt_cv_deplibs_check_method=pass_all
3683 lt_cv_deplibs_check_method=pass_all
3687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3688 lt_cv_file_magic_cmd=/usr/bin/file
3689 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3692 irix5* | irix6* | nonstopux*)
3694 irix5* | nonstopux*)
3695 # this will be overridden with pass_all, but let us keep it just in case
3696 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3700 *-32|*"-32 ") libmagic=32-bit;;
3701 *-n32|*"-n32 ") libmagic=N32;;
3702 *-64|*"-64 ") libmagic=64-bit;;
3703 *) libmagic=never-match;;
3705 # this will be overridden with pass_all, but let us keep it just in case
3706 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3709 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3710 lt_cv_deplibs_check_method=pass_all
3713 # This must be Linux ELF.
3716 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3717 lt_cv_deplibs_check_method=pass_all ;;
3719 # glibc up to 2.1.1 does not perform some relocations on ARM
3720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3722 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3726 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3727 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3729 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3735 lt_cv_file_magic_cmd=/usr/bin/file
3736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3740 lt_cv_file_magic_cmd=/usr/bin/file
3741 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3745 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3750 lt_cv_deplibs_check_method=pass_all
3753 osf3* | osf4* | osf5*)
3754 # this will be overridden with pass_all, but let us keep it just in case
3755 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3756 lt_cv_file_magic_test_file=/shlib/libc.so
3757 lt_cv_deplibs_check_method=pass_all
3761 lt_cv_deplibs_check_method=pass_all
3765 lt_cv_deplibs_check_method=pass_all
3766 lt_cv_file_magic_test_file=/lib/libc.so
3769 sysv5uw[78]* | sysv4*uw2*)
3770 lt_cv_deplibs_check_method=pass_all
3773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3774 case $host_vendor in
3776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3780 lt_cv_deplibs_check_method=pass_all
3783 lt_cv_file_magic_cmd='/bin/file'
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3787 lt_cv_file_magic_cmd='/bin/file'
3788 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3789 lt_cv_file_magic_test_file=/lib/libc.so
3792 lt_cv_deplibs_check_method=pass_all
3800 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3801 file_magic_cmd=$lt_cv_file_magic_cmd
3802 deplibs_check_method=$lt_cv_deplibs_check_method
3804 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3805 echo "configure:3806: checking for object suffix" >&5
3806 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3810 echo 'int i = 1;' > conftest.$ac_ext
3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 for ac_file in conftest.*; do
3815 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3819 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3824 echo "$ac_t""$ac_cv_objext" 1>&6
3825 OBJEXT=$ac_cv_objext
3826 ac_objext=$ac_cv_objext
3831 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3832 echo "configure:3833: checking for executable suffix" >&5
3833 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3840 echo 'int main () { return 0; }' > conftest.$ac_ext
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3843 for file in conftest.*; do
3845 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3846 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3850 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3853 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3858 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3859 echo "$ac_t""${ac_cv_exeext}" 1>&6
3862 if test $host != $build; then
3863 ac_tool_prefix=${host_alias}-
3871 # Check for command to grab the raw symbol name followed by C symbol from nm.
3872 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3873 echo "configure:3874: checking command to parse $NM output" >&5
3874 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3878 # These are sane defaults that work on at least a few old systems.
3879 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3881 # Character class describing NM global symbol codes.
3882 symcode='[BCDEGRST]'
3884 # Regexp to match symbols that can be accessed directly from C.
3885 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3887 # Transform the above into a raw symbol and a C symbol.
3888 symxfrm='\1 \2\3 \3'
3890 # Transform an extracted symbol line into a proper C declaration
3891 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3893 # Transform an extracted symbol line into symbol name and symbol address
3894 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3896 # Define system-specific variables.
3901 cygwin* | mingw* | pw32*)
3902 symcode='[ABCDGISTW]'
3904 hpux*) # Its linker distinguishes data from code symbols
3905 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3906 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3909 symcode='[BCDEGRST]'
3912 symcode='[BCDEGQRST]'
3922 # Handle CRLF in mingw tool chain
3926 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3930 # If we're using GNU nm, then use its standard symbol codes.
3931 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3932 symcode='[ABCDGISTW]'
3935 # Try without a prefix undercore, then with it.
3936 for ac_symprfx in "" "_"; do
3938 # Write the raw and C identifiers.
3939 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3941 # Check to see that the pipe works correctly.
3944 cat > conftest.$ac_ext <<EOF
3949 void nm_test_func(){}
3953 int main(){nm_test_var='a';nm_test_func();return(0);}
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3957 # Now try to grab the symbols.
3959 if { (eval echo configure:3960: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
3960 # Try sorting and uniquifying the output.
3961 if sort "$nlist" | uniq > "$nlist"T; then
3962 mv -f "$nlist"T "$nlist"
3967 # Make sure that we snagged all the symbols we need.
3968 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3969 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3970 cat <<EOF > conftest.$ac_ext
3976 # Now generate the symbol file.
3977 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3979 cat <<EOF >> conftest.$ac_ext
3980 #if defined (__STDC__) && __STDC__
3981 # define lt_ptr void *
3983 # define lt_ptr char *
3987 /* The mapping between symbol names and symbols. */
3992 lt_preloaded_symbols[] =
3995 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3996 cat <<\EOF >> conftest.$ac_ext
4004 # Now try linking the two files.
4005 mv conftest.$ac_objext conftstm.$ac_objext
4007 save_CFLAGS="$CFLAGS"
4008 LIBS="conftstm.$ac_objext"
4009 CFLAGS="$CFLAGS$no_builtin_flag"
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4014 CFLAGS="$save_CFLAGS"
4016 echo "cannot find nm_test_func in $nlist" >&5
4019 echo "cannot find nm_test_var in $nlist" >&5
4022 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4025 echo "$progname: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 rm -f conftest* conftst*
4030 # Do not use the global_symbol_pipe unless it works.
4031 if test "$pipe_works" = yes; then
4034 lt_cv_sys_global_symbol_pipe=
4040 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4041 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4042 global_symbol_to_cdecl=
4043 global_symbol_to_c_name_address=
4045 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4046 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4048 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4050 echo "$ac_t""failed" 1>&6
4052 echo "$ac_t""ok" 1>&6
4055 for ac_hdr in dlfcn.h
4057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4059 echo "configure:4060: checking for $ac_hdr" >&5
4060 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4069 { (eval echo configure:4070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4071 if test -z "$ac_err"; then
4073 eval "ac_cv_header_$ac_safe=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_header_$ac_safe=no"
4083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4084 echo "$ac_t""yes" 1>&6
4085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4086 cat >> confdefs.h <<EOF
4087 #define $ac_tr_hdr 1
4091 echo "$ac_t""no" 1>&6
4100 # Only perform the check for file, if the check method requires it
4101 case $deplibs_check_method in
4103 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4104 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4105 echo "configure:4106: checking for ${ac_tool_prefix}file" >&5
4106 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4117 ac_save_MAGIC_CMD="$MAGIC_CMD"
4118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4119 ac_dummy="/usr/bin:$PATH"
4120 for ac_dir in $ac_dummy; do
4121 test -z "$ac_dir" && ac_dir=.
4122 if test -f $ac_dir/${ac_tool_prefix}file; then
4123 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4124 if test -n "$file_magic_test_file"; then
4125 case $deplibs_check_method in
4127 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4130 egrep "$file_magic_regex" > /dev/null; then
4135 *** Warning: the command libtool uses to detect shared libraries,
4136 *** $file_magic_cmd, produces output that libtool cannot recognize.
4137 *** The result is that libtool may fail to recognize shared libraries
4138 *** as such. This will affect the creation of libtool libraries that
4139 *** depend on shared libraries, but programs linked with such libtool
4140 *** libraries will work regardless of this problem. Nevertheless, you
4141 *** may want to report the problem to your system manager and/or to
4142 *** bug-libtool@gnu.org
4152 MAGIC_CMD="$ac_save_MAGIC_CMD"
4157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4158 if test -n "$MAGIC_CMD"; then
4159 echo "$ac_t""$MAGIC_CMD" 1>&6
4161 echo "$ac_t""no" 1>&6
4164 if test -z "$lt_cv_path_MAGIC_CMD"; then
4165 if test -n "$ac_tool_prefix"; then
4166 echo $ac_n "checking for file""... $ac_c" 1>&6
4167 echo "configure:4168: checking for file" >&5
4168 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4179 ac_save_MAGIC_CMD="$MAGIC_CMD"
4180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4181 ac_dummy="/usr/bin:$PATH"
4182 for ac_dir in $ac_dummy; do
4183 test -z "$ac_dir" && ac_dir=.
4184 if test -f $ac_dir/file; then
4185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4186 if test -n "$file_magic_test_file"; then
4187 case $deplibs_check_method in
4189 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4192 egrep "$file_magic_regex" > /dev/null; then
4197 *** Warning: the command libtool uses to detect shared libraries,
4198 *** $file_magic_cmd, produces output that libtool cannot recognize.
4199 *** The result is that libtool may fail to recognize shared libraries
4200 *** as such. This will affect the creation of libtool libraries that
4201 *** depend on shared libraries, but programs linked with such libtool
4202 *** libraries will work regardless of this problem. Nevertheless, you
4203 *** may want to report the problem to your system manager and/or to
4204 *** bug-libtool@gnu.org
4214 MAGIC_CMD="$ac_save_MAGIC_CMD"
4219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4220 if test -n "$MAGIC_CMD"; then
4221 echo "$ac_t""$MAGIC_CMD" 1>&6
4223 echo "$ac_t""no" 1>&6
4235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4238 echo "configure:4239: checking for $ac_word" >&5
4239 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 if test -n "$RANLIB"; then
4243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4247 for ac_dir in $ac_dummy; do
4248 test -z "$ac_dir" && ac_dir=.
4249 if test -f $ac_dir/$ac_word; then
4250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4257 RANLIB="$ac_cv_prog_RANLIB"
4258 if test -n "$RANLIB"; then
4259 echo "$ac_t""$RANLIB" 1>&6
4261 echo "$ac_t""no" 1>&6
4265 if test -z "$ac_cv_prog_RANLIB"; then
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "ranlib", so it can be a program name with args.
4268 set dummy ranlib; ac_word=$2
4269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4270 echo "configure:4271: checking for $ac_word" >&5
4271 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4274 if test -n "$RANLIB"; then
4275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4279 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 if test -f $ac_dir/$ac_word; then
4282 ac_cv_prog_RANLIB="ranlib"
4287 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4290 RANLIB="$ac_cv_prog_RANLIB"
4291 if test -n "$RANLIB"; then
4292 echo "$ac_t""$RANLIB" 1>&6
4294 echo "$ac_t""no" 1>&6
4302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}strip; ac_word=$2
4304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_word" >&5
4306 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 if test -n "$STRIP"; then
4310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4314 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 if test -f $ac_dir/$ac_word; then
4317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4324 STRIP="$ac_cv_prog_STRIP"
4325 if test -n "$STRIP"; then
4326 echo "$ac_t""$STRIP" 1>&6
4328 echo "$ac_t""no" 1>&6
4332 if test -z "$ac_cv_prog_STRIP"; then
4333 if test -n "$ac_tool_prefix"; then
4334 # Extract the first word of "strip", so it can be a program name with args.
4335 set dummy strip; ac_word=$2
4336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4337 echo "configure:4338: checking for $ac_word" >&5
4338 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 if test -n "$STRIP"; then
4342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4346 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 if test -f $ac_dir/$ac_word; then
4349 ac_cv_prog_STRIP="strip"
4354 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4357 STRIP="$ac_cv_prog_STRIP"
4358 if test -n "$STRIP"; then
4359 echo "$ac_t""$STRIP" 1>&6
4361 echo "$ac_t""no" 1>&6
4371 enable_win32_dll=yes
4373 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4374 if test "${enable_libtool_lock+set}" = set; then
4375 enableval="$enable_libtool_lock"
4379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4381 # Some flags need to be propagated to the compiler or linker for good
4385 # Find out which ABI we are using.
4386 echo '#line 4387 "configure"' > conftest.$ac_ext
4387 if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 case `/usr/bin/file conftest.$ac_objext` in
4404 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4405 SAVE_CFLAGS="$CFLAGS"
4406 CFLAGS="$CFLAGS -belf"
4407 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether the C compiler needs -belf" >&5
4409 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4418 cross_compiling=$ac_cv_prog_cc_cross
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4430 lt_cv_cc_needs_belf=yes
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 lt_cv_cc_needs_belf=no
4439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4443 cross_compiling=$ac_cv_prog_cc_cross
4447 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4448 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4449 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4450 CFLAGS="$SAVE_CFLAGS"
4454 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_word" >&5
4459 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 if test -n "$DLLTOOL"; then
4463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4467 for ac_dir in $ac_dummy; do
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f $ac_dir/$ac_word; then
4470 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4477 DLLTOOL="$ac_cv_prog_DLLTOOL"
4478 if test -n "$DLLTOOL"; then
4479 echo "$ac_t""$DLLTOOL" 1>&6
4481 echo "$ac_t""no" 1>&6
4485 if test -z "$ac_cv_prog_DLLTOOL"; then
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "dlltool", so it can be a program name with args.
4488 set dummy dlltool; ac_word=$2
4489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_word" >&5
4491 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 if test -n "$DLLTOOL"; then
4495 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4499 for ac_dir in $ac_dummy; do
4500 test -z "$ac_dir" && ac_dir=.
4501 if test -f $ac_dir/$ac_word; then
4502 ac_cv_prog_DLLTOOL="dlltool"
4507 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4510 DLLTOOL="$ac_cv_prog_DLLTOOL"
4511 if test -n "$DLLTOOL"; then
4512 echo "$ac_t""$DLLTOOL" 1>&6
4514 echo "$ac_t""no" 1>&6
4522 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}as; ac_word=$2
4524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_word" >&5
4526 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 if test -n "$AS"; then
4530 ac_cv_prog_AS="$AS" # Let the user override the test.
4532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4534 for ac_dir in $ac_dummy; do
4535 test -z "$ac_dir" && ac_dir=.
4536 if test -f $ac_dir/$ac_word; then
4537 ac_cv_prog_AS="${ac_tool_prefix}as"
4545 if test -n "$AS"; then
4546 echo "$ac_t""$AS" 1>&6
4548 echo "$ac_t""no" 1>&6
4552 if test -z "$ac_cv_prog_AS"; then
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "as", so it can be a program name with args.
4555 set dummy as; ac_word=$2
4556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_word" >&5
4558 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 if test -n "$AS"; then
4562 ac_cv_prog_AS="$AS" # Let the user override the test.
4564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4566 for ac_dir in $ac_dummy; do
4567 test -z "$ac_dir" && ac_dir=.
4568 if test -f $ac_dir/$ac_word; then
4574 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4578 if test -n "$AS"; then
4579 echo "$ac_t""$AS" 1>&6
4581 echo "$ac_t""no" 1>&6
4589 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_word" >&5
4593 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 if test -n "$OBJDUMP"; then
4597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4601 for ac_dir in $ac_dummy; do
4602 test -z "$ac_dir" && ac_dir=.
4603 if test -f $ac_dir/$ac_word; then
4604 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4611 OBJDUMP="$ac_cv_prog_OBJDUMP"
4612 if test -n "$OBJDUMP"; then
4613 echo "$ac_t""$OBJDUMP" 1>&6
4615 echo "$ac_t""no" 1>&6
4619 if test -z "$ac_cv_prog_OBJDUMP"; then
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "objdump", so it can be a program name with args.
4622 set dummy objdump; ac_word=$2
4623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4624 echo "configure:4625: checking for $ac_word" >&5
4625 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4628 if test -n "$OBJDUMP"; then
4629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4633 for ac_dir in $ac_dummy; do
4634 test -z "$ac_dir" && ac_dir=.
4635 if test -f $ac_dir/$ac_word; then
4636 ac_cv_prog_OBJDUMP="objdump"
4641 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4644 OBJDUMP="$ac_cv_prog_OBJDUMP"
4645 if test -n "$OBJDUMP"; then
4646 echo "$ac_t""$OBJDUMP" 1>&6
4648 echo "$ac_t""no" 1>&6
4657 # recent cygwin and mingw systems supply a stub DllMain which the user
4658 # can override, but on older systems we have to supply one
4659 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4660 echo "configure:4661: checking if libtool should supply DllMain function" >&5
4661 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4669 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 lt_cv_need_dllmain=no
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 lt_cv_need_dllmain=yes
4685 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4688 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4689 # old mingw systems require "-dll" to link a DLL, while more recent ones
4691 SAVE_CFLAGS="$CFLAGS"
4692 CFLAGS="$CFLAGS -mdll"
4693 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4694 echo "configure:4695: checking how to link DLLs" >&5
4695 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 lt_cv_cc_dll_switch=-mdll
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 lt_cv_cc_dll_switch=-dll
4718 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4719 CFLAGS="$SAVE_CFLAGS" ;;
4720 *-*-cygwin* | *-*-pw32*)
4721 # cygwin systems need to pass --dll to the linker, and not link
4722 # crt.o which will require a WinMain@16 definition.
4723 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4729 # Sed substitution that helps us do robust quoting. It backslashifies
4730 # metacharacters that are still active within double-quoted strings.
4731 Xsed='sed -e s/^X//'
4732 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4745 default_ofile=libtool
4746 can_build_shared=yes
4748 # All known linkers require a `.a' archive for static linking (except M$VC,
4749 # which needs '.lib').
4751 ltmain="$ac_aux_dir/ltmain.sh"
4752 ofile="$default_ofile"
4753 with_gnu_ld="$lt_cv_prog_gnu_ld"
4754 need_locks="$enable_libtool_lock"
4757 old_CFLAGS="$CFLAGS"
4759 # Set sane defaults for various variables
4760 test -z "$AR" && AR=ar
4761 test -z "$AR_FLAGS" && AR_FLAGS=cru
4762 test -z "$AS" && AS=as
4763 test -z "$CC" && CC=cc
4764 test -z "$DLLTOOL" && DLLTOOL=dlltool
4765 test -z "$LD" && LD=ld
4766 test -z "$LN_S" && LN_S="ln -s"
4767 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4768 test -z "$NM" && NM=nm
4769 test -z "$OBJDUMP" && OBJDUMP=objdump
4770 test -z "$RANLIB" && RANLIB=:
4771 test -z "$STRIP" && STRIP=:
4772 test -z "$ac_objext" && ac_objext=o
4774 if test x"$host" != x"$build"; then
4775 ac_tool_prefix=${host_alias}-
4780 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4783 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4788 # AIX sometimes has problems with the GCC collect2 program. For some
4789 # reason, if we set the COLLECT_NAMES environment variable, the problems
4790 # vanish in a puff of smoke.
4791 if test "X${COLLECT_NAMES+set}" != Xset; then
4793 export COLLECT_NAMES
4798 # Determine commands to create old-style static archives.
4799 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4800 old_postinstall_cmds='chmod 644 $oldlib'
4801 old_postuninstall_cmds=
4803 if test -n "$RANLIB"; then
4806 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4809 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4812 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4815 # Allow CC to be a program name with arguments.
4819 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4820 echo "configure:4821: checking for objdir" >&5
4821 rm -f .libs 2>/dev/null
4822 mkdir .libs 2>/dev/null
4823 if test -d .libs; then
4826 # MS-DOS does not allow filenames that begin with a dot.
4829 rmdir .libs 2>/dev/null
4830 echo "$ac_t""$objdir" 1>&6
4833 # Check whether --with-pic or --without-pic was given.
4834 if test "${with_pic+set}" = set; then
4841 test -z "$pic_mode" && pic_mode=default
4843 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4844 # in isolation, and that seeing it set (from the cache) indicates that
4845 # the associated values are set (in the cache) correctly too.
4846 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4847 echo "configure:4848: checking for $compiler option to produce PIC" >&5
4848 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4852 lt_cv_prog_cc_shlib=
4854 lt_cv_prog_cc_static=
4855 lt_cv_prog_cc_no_builtin=
4856 lt_cv_prog_cc_can_build_shared=$can_build_shared
4858 if test "$GCC" = yes; then
4859 lt_cv_prog_cc_wl='-Wl,'
4860 lt_cv_prog_cc_static='-static'
4864 # Below there is a dirty hack to force normal static linking with -ldl
4865 # The problem is because libdl dynamically linked with both libc and
4866 # libC (AIX C++ library), which obviously doesn't included in libraries
4867 # list by gcc. This cause undefined symbols with -static flags.
4868 # This hack allows C programs to be linked with "-static -ldl", but
4869 # not sure about C++ programs.
4870 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4873 # FIXME: we need at least 68020 code to build shared libraries, but
4874 # adding the `-m68020' flag to GCC prevents building anything better,
4876 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4879 # PIC is the default for these OSes.
4881 darwin* | rhapsody*)
4882 # PIC is the default on this platform
4883 # Common symbols not allowed in MH_DYLIB files
4884 lt_cv_prog_cc_pic='-fno-common'
4886 cygwin* | mingw* | pw32* | os2*)
4887 # This hack is so that the source file can tell whether it is being
4888 # built for inclusion in a dll (and should export symbols for example).
4889 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4892 if test -d /usr/nec; then
4893 lt_cv_prog_cc_pic=-Kconform_pic
4897 lt_cv_prog_cc_pic='-fPIC'
4901 # PORTME Check for PIC flags for the system compiler.
4903 aix3* | aix4* | aix5*)
4904 lt_cv_prog_cc_wl='-Wl,'
4905 # All AIX code is PIC.
4906 if test "$host_cpu" = ia64; then
4907 # AIX 5 now supports IA64 processor
4908 lt_cv_prog_cc_static='-Bstatic'
4910 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4914 hpux9* | hpux10* | hpux11*)
4915 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4916 lt_cv_prog_cc_wl='-Wl,'
4917 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4918 lt_cv_prog_cc_pic='+Z'
4921 irix5* | irix6* | nonstopux*)
4922 lt_cv_prog_cc_wl='-Wl,'
4923 lt_cv_prog_cc_static='-non_shared'
4924 # PIC (with -KPIC) is the default.
4927 cygwin* | mingw* | pw32* | os2*)
4928 # This hack is so that the source file can tell whether it is being
4929 # built for inclusion in a dll (and should export symbols for example).
4930 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4934 lt_cv_prog_cc_pic='-KPIC'
4935 lt_cv_prog_cc_static='-Bstatic'
4939 # XPLINK code is PIC by default
4942 osf3* | osf4* | osf5*)
4943 # All OSF/1 code is PIC.
4944 lt_cv_prog_cc_wl='-Wl,'
4945 lt_cv_prog_cc_static='-non_shared'
4949 lt_cv_prog_cc_pic='-Kpic'
4950 lt_cv_prog_cc_static='-dn'
4951 lt_cv_prog_cc_shlib='-belf'
4955 lt_cv_prog_cc_pic='-KPIC'
4956 lt_cv_prog_cc_static='-Bstatic'
4957 lt_cv_prog_cc_wl='-Wl,'
4961 lt_cv_prog_cc_pic='-PIC'
4962 lt_cv_prog_cc_static='-Bstatic'
4963 lt_cv_prog_cc_wl='-Qoption ld '
4966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4967 lt_cv_prog_cc_pic='-KPIC'
4968 lt_cv_prog_cc_static='-Bstatic'
4969 lt_cv_prog_cc_wl='-Wl,'
4973 lt_cv_prog_cc_pic='-pic'
4974 lt_cv_prog_cc_static='-Bstatic'
4978 if test -d /usr/nec ;then
4979 lt_cv_prog_cc_pic='-Kconform_pic'
4980 lt_cv_prog_cc_static='-Bstatic'
4985 lt_cv_prog_cc_can_build_shared=no
4992 if test -z "$lt_cv_prog_cc_pic"; then
4993 echo "$ac_t""none" 1>&6
4995 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4997 # Check to make sure the pic_flag actually works.
4998 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4999 echo "configure:5000: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5000 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5003 save_CFLAGS="$CFLAGS"
5004 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5013 if { (eval echo configure:5014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5016 hpux9* | hpux10* | hpux11*)
5017 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5018 # they create non-PIC objects. So, if there were any warnings, we
5019 # assume that PIC is not supported.
5020 if test -s conftest.err; then
5021 lt_cv_prog_cc_pic_works=no
5023 lt_cv_prog_cc_pic_works=yes
5027 lt_cv_prog_cc_pic_works=yes
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5035 lt_cv_prog_cc_pic_works=no
5039 CFLAGS="$save_CFLAGS"
5044 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5046 lt_cv_prog_cc_can_build_shared=no
5048 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5051 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5054 # Check for any special shared library compilation flags.
5055 if test -n "$lt_cv_prog_cc_shlib"; then
5056 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5057 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5059 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5060 lt_cv_prog_cc_can_build_shared=no
5064 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5065 echo "configure:5066: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5066 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 lt_cv_prog_cc_static_works=no
5070 save_LDFLAGS="$LDFLAGS"
5071 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 lt_cv_prog_cc_static_works=yes
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5088 LDFLAGS="$save_LDFLAGS"
5093 # Belt *and* braces to stop my trousers falling down:
5094 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5095 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5097 pic_flag="$lt_cv_prog_cc_pic"
5098 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5099 wl="$lt_cv_prog_cc_wl"
5100 link_static_flag="$lt_cv_prog_cc_static"
5101 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5102 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5105 # Check to see if options -o and -c are simultaneously supported by compiler
5106 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5107 echo "configure:5108: checking if $compiler supports -c -o file.$ac_objext" >&5
5108 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5112 $rm -r conftest 2>/dev/null
5115 echo "int some_variable = 0;" > conftest.$ac_ext
5117 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5118 # that will create temporary files in the current directory regardless of
5119 # the output directory. Thus, making CWD read-only will cause this test
5120 # to fail, enabling locking or at least warning the user not to do parallel
5123 save_CFLAGS="$CFLAGS"
5124 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5126 if { (eval echo configure:5127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5127 # The compiler can only warn and ignore the option if not recognized
5128 # So say no if there are warnings
5129 if test -s out/conftest.err; then
5130 lt_cv_compiler_c_o=no
5132 lt_cv_compiler_c_o=yes
5135 # Append any errors to the config.log.
5136 cat out/conftest.err 1>&5
5137 lt_cv_compiler_c_o=no
5139 CFLAGS="$save_CFLAGS"
5145 $rm -r conftest 2>/dev/null
5149 compiler_c_o=$lt_cv_compiler_c_o
5150 echo "$ac_t""$compiler_c_o" 1>&6
5152 if test x"$compiler_c_o" = x"yes"; then
5153 # Check to see if we can write to a .lo
5154 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5155 echo "configure:5156: checking if $compiler supports -c -o file.lo" >&5
5156 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5160 lt_cv_compiler_o_lo=no
5161 save_CFLAGS="$CFLAGS"
5162 CFLAGS="$CFLAGS -c -o conftest.lo"
5163 save_objext="$ac_objext"
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5170 int some_variable = 0;
5173 if { (eval echo configure:5174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5175 # The compiler can only warn and ignore the option if not recognized
5176 # So say no if there are warnings
5177 if test -s conftest.err; then
5178 lt_cv_compiler_o_lo=no
5180 lt_cv_compiler_o_lo=yes
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5188 ac_objext="$save_objext"
5189 CFLAGS="$save_CFLAGS"
5193 compiler_o_lo=$lt_cv_compiler_o_lo
5194 echo "$ac_t""$compiler_o_lo" 1>&6
5199 # Check to see if we can do hard links to lock some files if needed
5200 hard_links="nottested"
5201 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5202 # do not overwrite the value of need_locks provided by the user
5203 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5204 echo "configure:5205: checking if we can lock with hard links" >&5
5207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5209 ln conftest.a conftest.b 2>&5 || hard_links=no
5210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5211 echo "$ac_t""$hard_links" 1>&6
5212 if test "$hard_links" = no; then
5213 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5220 if test "$GCC" = yes; then
5221 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5222 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5223 echo "configure:5224: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5224 echo "int some_variable = 0;" > conftest.$ac_ext
5225 save_CFLAGS="$CFLAGS"
5226 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5227 compiler_rtti_exceptions=no
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5233 int some_variable = 0;
5236 if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 # The compiler can only warn and ignore the option if not recognized
5239 # So say no if there are warnings
5240 if test -s conftest.err; then
5241 compiler_rtti_exceptions=no
5243 compiler_rtti_exceptions=yes
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5251 CFLAGS="$save_CFLAGS"
5252 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5254 if test "$compiler_rtti_exceptions" = "yes"; then
5255 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5257 no_builtin_flag=' -fno-builtin'
5261 # See if the linker supports building shared libraries.
5262 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5263 echo "configure:5264: checking whether the linker ($LD) supports shared libraries" >&5
5265 allow_undefined_flag=
5267 need_lib_prefix=unknown
5268 need_version=unknown
5269 # when you set need_version to no, make sure it does not cause -set_version
5270 # flags to be left without arguments
5272 archive_expsym_cmds=
5273 old_archive_from_new_cmds=
5274 old_archive_from_expsyms_cmds=
5275 export_dynamic_flag_spec=
5276 whole_archive_flag_spec=
5277 thread_safe_flag_spec=
5278 hardcode_into_libs=no
5279 hardcode_libdir_flag_spec=
5280 hardcode_libdir_separator=
5283 hardcode_shlibpath_var=unsupported
5285 link_all_deplibs=unknown
5286 always_export_symbols=no
5287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5288 # include_expsyms should be a list of space-separated symbols to be *always*
5289 # included in the symbol list
5291 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5292 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5293 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5294 # as well as any symbol that contains `d'.
5295 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5296 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5297 # platforms (ab)use it in PIC code, but their linkers get confused if
5298 # the symbol is explicitly referenced. Since portable code cannot
5299 # rely on this symbol name, it's probably fine to never include it in
5300 # preloaded symbol tables.
5301 extract_expsyms_cmds=
5304 cygwin* | mingw* | pw32*)
5305 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5306 # When not using gcc, we currently assume that we are using
5307 # Microsoft Visual C++.
5308 if test "$GCC" != yes; then
5318 if test "$with_gnu_ld" = yes; then
5319 # If archive_cmds runs LD, not CC, wlarc should be empty
5322 # See if GNU ld supports shared libraries.
5324 aix3* | aix4* | aix5*)
5325 # On AIX, the GNU linker is very broken
5326 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5330 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5331 *** to be unable to reliably create shared libraries on AIX.
5332 *** Therefore, libtool is disabling shared libraries support. If you
5333 *** really care for shared libraries, you may want to modify your PATH
5334 *** so that a non-GNU linker is found, and then restart.
5340 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5341 hardcode_libdir_flag_spec='-L$libdir'
5342 hardcode_minus_L=yes
5344 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5345 # that the semantics of dynamic libraries on AmigaOS, at least up
5346 # to version 4, is to share data among multiple programs linked
5347 # with the same dynamic library. Since this doesn't match the
5348 # behavior of shared libraries on other platforms, we can use
5354 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5355 allow_undefined_flag=unsupported
5356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5357 # support --undefined. This deserves some investigation. FIXME
5358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5364 cygwin* | mingw* | pw32*)
5365 # hardcode_libdir_flag_spec is actually meaningless, as there is
5366 # no search path for DLLs.
5367 hardcode_libdir_flag_spec='-L$libdir'
5368 allow_undefined_flag=unsupported
5369 always_export_symbols=yes
5371 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5372 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5373 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5374 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5375 else $CC -o impgen impgen.c ; fi)~
5376 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5378 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5380 # cygwin and mingw dlls have different entry points and sets of symbols
5382 # FIXME: what about values for MSVC?
5383 dll_entry=__cygwin_dll_entry@12
5384 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5388 dll_entry=_DllMainCRTStartup@12
5389 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5393 # mingw and cygwin differ, and it's simplest to just exclude the union
5394 # of the two symbol sets.
5395 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5397 # recent cygwin and mingw systems supply a stub DllMain which the user
5398 # can override, but on older systems we have to supply one (in ltdll.c)
5399 if test "x$lt_cv_need_dllmain" = "xyes"; then
5400 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5401 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5402 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5408 # Extract the symbol export list from an `--export-all' def file,
5409 # then regenerate the def file from the symbol export list, so that
5410 # the compiled dll only exports the symbol export list.
5411 # Be careful not to strip the DATA tag left be newer dlltools.
5412 export_symbols_cmds="$ltdll_cmds"'
5413 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5414 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5416 # If the export-symbols file already is a .def file (1st line
5417 # is EXPORTS), use it as is.
5418 # If DATA tags from a recent dlltool are present, honour them!
5419 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5420 cp $export_symbols $output_objdir/$soname-def;
5422 echo EXPORTS > $output_objdir/$soname-def;
5424 cat $export_symbols | while read symbol; do
5427 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5428 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5429 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5431 _lt_hint=`expr 1 + \$_lt_hint`;
5435 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5436 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5437 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5438 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5439 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5444 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5447 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5448 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5453 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5458 *** create shared libraries on Solaris systems. Therefore, libtool
5459 *** is disabling shared libraries support. We urge you to upgrade GNU
5460 *** binutils to release 2.9.1 or newer. Another option is to modify
5461 *** your PATH or compiler configuration so that the native linker is
5462 *** used, and then restart.
5465 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5477 hardcode_shlibpath_var=no
5481 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5490 if test "$ld_shlibs" = yes; then
5491 runpath_var=LD_RUN_PATH
5492 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5493 export_dynamic_flag_spec='${wl}--export-dynamic'
5495 cygwin* | mingw* | pw32*)
5496 # dlltool doesn't understand --whole-archive et. al.
5497 whole_archive_flag_spec=
5500 # ancient GNU ld didn't support --whole-archive et. al.
5501 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5502 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5504 whole_archive_flag_spec=
5510 # PORTME fill in a description of your system's linker (not GNU ld)
5513 allow_undefined_flag=unsupported
5514 always_export_symbols=yes
5515 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5516 # Note: this linker hardcodes the directories in LIBPATH if there
5517 # are no directories specified by -L.
5518 hardcode_minus_L=yes
5519 if test "$GCC" = yes && test -z "$link_static_flag"; then
5520 # Neither direct hardcoding nor static linking is supported with a
5522 hardcode_direct=unsupported
5527 if test "$host_cpu" = ia64; then
5528 # On IA64, the linker does run time linking by default, so we don't
5529 # have to do anything special.
5530 aix_use_runtimelinking=no
5531 exp_sym_flag='-Bexport'
5534 aix_use_runtimelinking=no
5536 # Test if we are trying to use run time linking or normal
5537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5538 # need to do runtime linking.
5539 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5540 for ld_flag in $LDFLAGS; do
5543 aix_use_runtimelinking=yes
5550 exp_sym_flag='-bexport'
5551 no_entry_flag='-bnoentry'
5554 # When large executables or shared objects are built, AIX ld can
5555 # have problems creating the table of contents. If linking a library
5556 # or program results in "error TOC overflow" add -mminimal-toc to
5557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5562 hardcode_libdir_separator=':'
5563 if test "$GCC" = yes; then
5564 case $host_os in aix4.[012]|aix4.[012].*)
5565 collect2name=`${CC} -print-prog-name=collect2`
5566 if test -f "$collect2name" && \
5567 strings "$collect2name" | grep resolve_lib_name >/dev/null
5569 # We have reworked collect2
5572 # We have old collect2
5573 hardcode_direct=unsupported
5574 # It fails to find uninstalled libraries when the uninstalled
5575 # path is not listed in the libpath. Setting hardcode_minus_L
5576 # to unsupported forces relinking
5577 hardcode_minus_L=yes
5578 hardcode_libdir_flag_spec='-L$libdir'
5579 hardcode_libdir_separator=
5583 shared_flag='-shared'
5586 if test "$host_cpu" = ia64; then
5587 shared_flag='${wl}-G'
5589 if test "$aix_use_runtimelinking" = yes; then
5590 shared_flag='${wl}-G'
5592 shared_flag='${wl}-bM:SRE'
5597 # It seems that -bexpall can do strange things, so it is better to
5598 # generate a list of symbols to export.
5599 always_export_symbols=yes
5600 if test "$aix_use_runtimelinking" = yes; then
5601 # Warning - without using the other runtime loading flags (-brtl),
5602 # -berok will link without error, but may produce a broken library.
5603 allow_undefined_flag='-berok'
5604 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5605 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5607 if test "$host_cpu" = ia64; then
5608 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5609 allow_undefined_flag="-z nodefs"
5610 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5612 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5613 # Warning - without using the other run time loading flags,
5614 # -berok will link without error, but may produce a broken library.
5615 allow_undefined_flag='${wl}-berok'
5616 # This is a bit strange, but is similar to how AIX traditionally builds
5617 # it's shared libraries.
5618 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5624 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5625 hardcode_libdir_flag_spec='-L$libdir'
5626 hardcode_minus_L=yes
5627 # see comment about different semantics on the GNU ld section
5631 cygwin* | mingw* | pw32*)
5632 # When not using gcc, we currently assume that we are using
5633 # Microsoft Visual C++.
5634 # hardcode_libdir_flag_spec is actually meaningless, as there is
5635 # no search path for DLLs.
5636 hardcode_libdir_flag_spec=' '
5637 allow_undefined_flag=unsupported
5638 # Tell ltmain to make .lib files, not .a files.
5640 # FIXME: Setting linknames here is a bad hack.
5641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5642 # The linker will automatically build a .lib file if we build a DLL.
5643 old_archive_from_new_cmds='true'
5644 # FIXME: Should let the user specify the lib program.
5645 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5646 fix_srcfile_path='`cygpath -w "$srcfile"`'
5649 darwin* | rhapsody*)
5651 rhapsody* | darwin1.[012])
5652 allow_undefined_flag='-undefined suppress'
5655 allow_undefined_flag='-flat_namespace -undefined suppress'
5658 # FIXME: Relying on posixy $() will cause problems for
5659 # cross-compilation, but unfortunately the echo tests do not
5660 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5661 # `"' quotes if we put them in here... so don't!
5662 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5663 # We need to add '_' to the symbols in $export_symbols first
5664 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5666 hardcode_shlibpath_var=no
5667 whole_archive_flag_spec='-all_load $convenience'
5674 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5675 # support. Future versions do this automatically, but an explicit c++rt0.o
5676 # does not break anything, and helps significantly (at the cost of a little
5679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5680 hardcode_libdir_flag_spec='-R$libdir'
5682 hardcode_shlibpath_var=no
5685 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5689 hardcode_minus_L=yes
5690 hardcode_shlibpath_var=no
5693 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5695 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5696 hardcode_libdir_flag_spec='-R$libdir'
5698 hardcode_shlibpath_var=no
5701 hpux9* | hpux10* | hpux11*)
5703 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5704 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5707 hardcode_libdir_separator=:
5709 hardcode_minus_L=yes # Not in the search PATH, but as the default
5710 # location of the library.
5711 export_dynamic_flag_spec='${wl}-E'
5714 irix5* | irix6* | nonstopux*)
5715 if test "$GCC" = yes; then
5716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5719 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5720 hardcode_libdir_flag_spec='-rpath $libdir'
5722 hardcode_libdir_separator=:
5723 link_all_deplibs=yes
5727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5730 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5732 hardcode_libdir_flag_spec='-R$libdir'
5734 hardcode_shlibpath_var=no
5738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5741 hardcode_libdir_separator=:
5742 hardcode_shlibpath_var=no
5747 hardcode_shlibpath_var=no
5748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5751 export_dynamic_flag_spec='${wl}-E'
5754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5756 hardcode_libdir_flag_spec='-R$libdir'
5759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5767 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5768 cp \$linknames \$output_objdir && linknames=''"
5769 export_dynamic_flag_spec="-Wl,DLL"
5773 hardcode_libdir_flag_spec='-L$libdir'
5774 hardcode_minus_L=yes
5775 allow_undefined_flag=unsupported
5776 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5777 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5781 if test "$GCC" = yes; then
5782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5785 allow_undefined_flag=' -expect_unresolved \*'
5786 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5789 hardcode_libdir_separator=:
5792 osf4* | osf5*) # as osf3* with the addition of -msym flag
5793 if test "$GCC" = yes; then
5794 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5795 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5798 allow_undefined_flag=' -expect_unresolved \*'
5799 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5800 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5801 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5803 #Both c and cxx compiler support -rpath directly
5804 hardcode_libdir_flag_spec='-rpath $libdir'
5806 hardcode_libdir_separator=:
5810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5811 hardcode_shlibpath_var=no
5812 runpath_var=LD_RUN_PATH
5813 hardcode_runpath_var=yes
5814 export_dynamic_flag_spec='${wl}-Bexport'
5818 # gcc --version < 3.0 without binutils cannot create self contained
5819 # shared libraries reliably, requiring libgcc.a to resolve some of
5820 # the object symbols generated in some cases. Libraries that use
5821 # assert need libgcc.a to resolve __eprintf, for example. Linking
5822 # a copy of libgcc.a into every shared library to guarantee resolving
5823 # such symbols causes other problems: According to Tim Van Holder
5824 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5825 # (to the application) exception stack for one thing.
5826 no_undefined_flag=' -z defs'
5827 if test "$GCC" = yes; then
5828 case `$CC --version 2>/dev/null` in
5832 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5833 *** create self contained shared libraries on Solaris systems, without
5834 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5835 *** -no-undefined support, which will at least allow you to build shared
5836 *** libraries. However, you may find that when you link such libraries
5837 *** into an application without using GCC, you have to manually add
5838 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5839 *** upgrade to a newer version of GCC. Another option is to rebuild your
5840 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5847 # $CC -shared without GNU ld will not create a library from C++
5848 # object files and a static libstdc++, better avoid it by now
5849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5852 hardcode_libdir_flag_spec='-R$libdir'
5853 hardcode_shlibpath_var=no
5855 solaris2.[0-5] | solaris2.[0-5].*) ;;
5856 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5857 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5859 link_all_deplibs=yes
5863 if test "x$host_vendor" = xsequent; then
5864 # Use $CC to link under sequent, because it throws in some extra .o
5865 # files that make .init and .fini sections work.
5866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5870 hardcode_libdir_flag_spec='-L$libdir'
5872 hardcode_minus_L=yes
5873 hardcode_shlibpath_var=no
5877 case $host_vendor in
5879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5880 hardcode_direct=yes # is this really true???
5883 ## LD is ld it makes a PLAMLIB
5884 ## CC just makes a GrossModule.
5885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5886 reload_cmds='$CC -r -o $output$reload_objs'
5890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5894 runpath_var='LD_RUN_PATH'
5895 hardcode_shlibpath_var=no
5899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5900 hardcode_shlibpath_var=no
5901 export_dynamic_flag_spec='-Bexport'
5905 no_undefined_flag=' -z text'
5906 # $CC -shared without GNU ld will not create a library from C++
5907 # object files and a static libstdc++, better avoid it by now
5908 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5909 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5911 hardcode_libdir_flag_spec=
5912 hardcode_shlibpath_var=no
5913 runpath_var='LD_RUN_PATH'
5917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5918 hardcode_libdir_flag_spec='-L$libdir'
5919 hardcode_shlibpath_var=no
5923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5924 hardcode_libdir_flag_spec='-L$libdir'
5925 hardcode_shlibpath_var=no
5929 if test -d /usr/nec; then
5930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5931 hardcode_shlibpath_var=no
5932 runpath_var=LD_RUN_PATH
5933 hardcode_runpath_var=yes
5939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5942 hardcode_shlibpath_var=no
5943 hardcode_runpath_var=yes
5944 runpath_var=LD_RUN_PATH
5947 sysv5uw7* | unixware7*)
5948 no_undefined_flag='${wl}-z ${wl}text'
5949 if test "$GCC" = yes; then
5950 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5952 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5954 runpath_var='LD_RUN_PATH'
5955 hardcode_shlibpath_var=no
5963 echo "$ac_t""$ld_shlibs" 1>&6
5964 test "$ld_shlibs" = no && can_build_shared=no
5966 # Check hardcoding attributes.
5967 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5968 echo "configure:5969: checking how to hardcode library paths into programs" >&5
5970 if test -n "$hardcode_libdir_flag_spec" || \
5971 test -n "$runpath_var"; then
5973 # We can hardcode non-existant directories.
5974 if test "$hardcode_direct" != no &&
5975 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5976 # have to relink, otherwise we might link with an installed library
5977 # when we should be linking with a yet-to-be-installed one
5978 ## test "$hardcode_shlibpath_var" != no &&
5979 test "$hardcode_minus_L" != no; then
5980 # Linking always hardcodes the temporary library directory.
5981 hardcode_action=relink
5983 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5984 hardcode_action=immediate
5987 # We cannot hardcode anything, or else we can only hardcode existing
5989 hardcode_action=unsupported
5991 echo "$ac_t""$hardcode_action" 1>&6
5995 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5996 echo "configure:5997: checking whether stripping libraries is possible" >&5
5997 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5998 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5999 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6000 echo "$ac_t""yes" 1>&6
6002 echo "$ac_t""no" 1>&6
6005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6006 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6008 # PORTME Fill in your ld.so characteristics
6009 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6010 echo "configure:6011: checking dynamic linker characteristics" >&5
6012 libname_spec='lib$name'
6019 shlibpath_overrides_runpath=unknown
6021 dynamic_linker="$host_os ld.so"
6022 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6028 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6029 shlibpath_var=LIBPATH
6031 # AIX has no versioning support, so we append a major version to the name.
6032 soname_spec='${libname}${release}.so$major'
6039 hardcode_into_libs=yes
6040 if test "$host_cpu" = ia64; then
6041 # AIX 5 supports IA64
6042 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6043 shlibpath_var=LD_LIBRARY_PATH
6045 # With GCC up to 2.95.x, collect2 would create an import file
6046 # for dependence libraries. The import file would start with
6047 # the line `#! .'. This would cause the generated library to
6048 # depend on `.', always an invalid library. This was fixed in
6049 # development snapshots of GCC prior to 3.0.
6051 aix4 | aix4.[01] | aix4.[01].*)
6052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6061 # AIX (on Power*) has no versioning support, so currently we can
6062 # not hardcode correct soname into executable. Probably we can
6063 # add versioning support to collect2, so additional links can
6064 # be useful in future.
6065 if test "$aix_use_runtimelinking" = yes; then
6066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6067 # instead of lib<name>.a to let people know that these are not
6068 # typical AIX shared libraries.
6069 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6071 # We preserve .a as extension for shared libraries through AIX4.2
6072 # and later when we are not doing run time linking.
6073 library_names_spec='${libname}${release}.a $libname.a'
6074 soname_spec='${libname}${release}.so$major'
6076 shlibpath_var=LIBPATH
6078 hardcode_into_libs=yes
6082 library_names_spec='$libname.ixlibrary $libname.a'
6083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6084 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6088 library_names_spec='${libname}.so'
6089 dynamic_linker="$host_os ld.so"
6090 shlibpath_var=LIBRARY_PATH
6096 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6097 soname_spec='${libname}${release}.so$major'
6098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6099 shlibpath_var=LD_LIBRARY_PATH
6100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6102 export_dynamic_flag_spec=-rdynamic
6103 # the default ld.so.conf also contains /usr/contrib/lib and
6104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6105 # libtool to hard-code these into programs
6108 cygwin* | mingw* | pw32*)
6109 version_type=windows
6112 case $GCC,$host_os in
6114 library_names_spec='$libname.dll.a'
6115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6116 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6117 dldir=$destdir/`dirname \$dlpath`~
6118 test -d \$dldir || mkdir -p \$dldir~
6119 $install_prog .libs/$dlname \$dldir/$dlname'
6120 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6121 dlpath=$dir/\$dldll~
6125 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6132 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6135 dynamic_linker='Win32 ld.exe'
6136 # FIXME: first we should search . and the directory the executable is in
6140 darwin* | rhapsody*)
6141 dynamic_linker="$host_os dyld"
6145 # FIXME: Relying on posixy $() will cause problems for
6146 # cross-compilation, but unfortunately the echo tests do not
6147 # yet detect zsh echo's removal of \ escapes.
6148 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6149 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6150 shlibpath_overrides_runpath=yes
6151 shlibpath_var=DYLD_LIBRARY_PATH
6159 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6160 version_type=freebsd-$objformat
6161 case $version_type in
6163 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6168 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6172 shlibpath_var=LD_LIBRARY_PATH
6175 shlibpath_overrides_runpath=yes
6178 shlibpath_overrides_runpath=no
6179 hardcode_into_libs=yes
6188 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6189 soname_spec='${libname}${release}.so$major'
6190 shlibpath_var=LD_LIBRARY_PATH
6191 hardcode_into_libs=yes
6194 hpux9* | hpux10* | hpux11*)
6195 # Give a soname corresponding to the major version so that dld.sl refuses to
6196 # link against other versions.
6197 dynamic_linker="$host_os dld.sl"
6201 shlibpath_var=SHLIB_PATH
6202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6203 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6204 soname_spec='${libname}${release}.sl$major'
6205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6206 postinstall_cmds='chmod 555 $lib'
6209 irix5* | irix6* | nonstopux*)
6211 nonstopux*) version_type=nonstopux ;;
6212 *) version_type=irix ;;
6216 soname_spec='${libname}${release}.so$major'
6217 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6219 irix5* | nonstopux*)
6223 case $LD in # libtool.m4 will add one of these switches to LD
6224 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6225 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6226 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6227 *) libsuff= shlibsuff= libmagic=never-match;;
6231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6232 shlibpath_overrides_runpath=no
6233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6237 # No shared lib support for Linux oldld, aout, or coff.
6238 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6242 # This must be Linux ELF.
6247 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6248 soname_spec='${libname}${release}.so$major'
6249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6250 shlibpath_var=LD_LIBRARY_PATH
6251 shlibpath_overrides_runpath=no
6252 # This implies no fast_install, which is unacceptable.
6253 # Some rework will be needed to allow for fast_install
6254 # before this can be enabled.
6255 hardcode_into_libs=yes
6257 # We used to test for /lib/ld.so.1 and disable shared libraries on
6258 # powerpc, because MkLinux only supported shared libraries with the
6259 # GNU dynamic linker. Since this was broken with cross compilers,
6260 # most powerpc-linux boxes support dynamic linking these days and
6261 # people can always --disable-shared, the test was removed, and we
6262 # assume the GNU/Linux dynamic linker is in use.
6263 dynamic_linker='GNU/Linux ld.so'
6270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6271 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6273 dynamic_linker='NetBSD (a.out) ld.so'
6275 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6276 soname_spec='${libname}${release}.so$major'
6277 dynamic_linker='NetBSD ld.elf_so'
6279 shlibpath_var=LD_LIBRARY_PATH
6280 shlibpath_overrides_runpath=yes
6281 hardcode_into_libs=yes
6286 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6287 shlibpath_var=LD_LIBRARY_PATH
6288 shlibpath_overrides_runpath=yes
6295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6297 openbsd2.[89] | openbsd2.[89].*)
6298 shlibpath_overrides_runpath=no
6301 shlibpath_overrides_runpath=yes
6305 shlibpath_overrides_runpath=yes
6307 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6309 shlibpath_var=LD_LIBRARY_PATH
6315 shlibpath_overrides_runpath=yes
6316 shlibpath_var=LIBPATH
6317 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6318 # the library's exports are in libname.x; this is the file that must
6319 # actually be linked with to use a DLL.
6320 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6324 libname_spec='$name'
6326 library_names_spec='$libname.dll $libname.a'
6327 dynamic_linker='OS/2 ld.exe'
6328 shlibpath_var=LIBPATH
6331 osf3* | osf4* | osf5*)
6334 soname_spec='${libname}${release}.so$major'
6335 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6336 shlibpath_var=LD_LIBRARY_PATH
6337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6339 hardcode_into_libs=yes
6344 soname_spec='${libname}${release}.so$major'
6345 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6346 shlibpath_var=LD_LIBRARY_PATH
6353 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6354 soname_spec='${libname}${release}.so$major'
6355 shlibpath_var=LD_LIBRARY_PATH
6356 shlibpath_overrides_runpath=yes
6357 hardcode_into_libs=yes
6358 # ldd complains unless libraries are executable
6359 postinstall_cmds='chmod +x $lib'
6364 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6366 shlibpath_var=LD_LIBRARY_PATH
6367 shlibpath_overrides_runpath=yes
6368 if test "$with_gnu_ld" = yes; then
6374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6376 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6377 soname_spec='${libname}${release}.so$major'
6378 shlibpath_var=LD_LIBRARY_PATH
6379 case $host_vendor in
6381 shlibpath_overrides_runpath=no
6383 export_dynamic_flag_spec='${wl}-Blargedynsym'
6384 runpath_var=LD_RUN_PATH
6392 shlibpath_overrides_runpath=no
6393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6400 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6401 soname_spec='${libname}${release}.so$major'
6402 shlibpath_var=LD_LIBRARY_PATH
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6410 soname_spec='${libname}${release}.so$major'
6411 shlibpath_var=LD_LIBRARY_PATH
6415 if test -d /usr/nec ;then
6417 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6418 soname_spec='$libname.so.$major'
6419 shlibpath_var=LD_LIBRARY_PATH
6427 echo "$ac_t""$dynamic_linker" 1>&6
6428 test "$dynamic_linker" = no && can_build_shared=no
6430 # Report the final consequences.
6431 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6432 echo "configure:6433: checking if libtool supports shared libraries" >&5
6433 echo "$ac_t""$can_build_shared" 1>&6
6435 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6436 echo "configure:6437: checking whether to build shared libraries" >&5
6437 test "$can_build_shared" = "no" && enable_shared=no
6439 # On AIX, shared libraries and static libraries use the same namespace, and
6440 # are all built from PIC.
6443 test "$enable_shared" = yes && enable_static=no
6444 if test -n "$RANLIB"; then
6445 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6446 postinstall_cmds='$RANLIB $lib'
6451 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6452 test "$enable_shared" = yes && enable_static=no
6456 echo "$ac_t""$enable_shared" 1>&6
6458 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6459 echo "configure:6460: checking whether to build static libraries" >&5
6460 # Make sure either enable_shared or enable_static is yes.
6461 test "$enable_shared" = yes || enable_static=yes
6462 echo "$ac_t""$enable_static" 1>&6
6464 if test "$hardcode_action" = relink; then
6465 # Fast installation is not supported
6466 enable_fast_install=no
6467 elif test "$shlibpath_overrides_runpath" = yes ||
6468 test "$enable_shared" = no; then
6469 # Fast installation is not necessary
6470 enable_fast_install=needless
6473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6474 if test "$GCC" = yes; then
6475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6478 if test "x$enable_dlopen" != xyes; then
6479 enable_dlopen=unknown
6480 enable_dlopen_self=unknown
6481 enable_dlopen_self_static=unknown
6488 lt_cv_dlopen="load_add_on"
6490 lt_cv_dlopen_self=yes
6493 cygwin* | mingw* | pw32*)
6494 lt_cv_dlopen="LoadLibrary"
6499 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6500 echo "configure:6501: checking for dllload" >&5
6501 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 /* System header to define __stub macros and hopefully few prototypes,
6508 which can conflict with char dllload(); below. */
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined (__stub_dllload) || defined (__stub___dllload)
6529 if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531 eval "ac_cv_func_dllload=yes"
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 eval "ac_cv_func_dllload=no"
6541 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6542 echo "$ac_t""yes" 1>&6
6543 lt_cv_dlopen="dllload"
6545 echo "$ac_t""no" 1>&6
6546 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6547 echo "configure:6548: checking for shl_load" >&5
6548 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char shl_load(); below. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6565 /* The GNU C library defines this for functions which it implements
6566 to always fail with ENOSYS. Some functions are actually named
6567 something starting with __ and the normal name is an alias. */
6568 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 eval "ac_cv_func_shl_load=yes"
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 eval "ac_cv_func_shl_load=no"
6588 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6590 lt_cv_dlopen="shl_load"
6592 echo "$ac_t""no" 1>&6
6593 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6594 echo "configure:6595: checking for shl_load in -ldld" >&5
6595 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6596 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 ac_save_LIBS="$LIBS"
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 /* We use char because int might match the return type of a gcc2
6606 builtin and then its argument prototype would still apply. */
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 eval "ac_cv_lib_$ac_lib_var=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 eval "ac_cv_lib_$ac_lib_var=no"
6623 LIBS="$ac_save_LIBS"
6626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6630 echo "$ac_t""no" 1>&6
6631 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6632 echo "configure:6633: checking for dlopen" >&5
6633 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char dlopen(); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6650 /* The GNU C library defines this for functions which it implements
6651 to always fail with ENOSYS. Some functions are actually named
6652 something starting with __ and the normal name is an alias. */
6653 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_func_dlopen=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_func_dlopen=no"
6673 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6674 echo "$ac_t""yes" 1>&6
6675 lt_cv_dlopen="dlopen"
6677 echo "$ac_t""no" 1>&6
6678 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6679 echo "configure:6680: checking for dlopen in -ldl" >&5
6680 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 ac_save_LIBS="$LIBS"
6686 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure"
6688 #include "confdefs.h"
6689 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 eval "ac_cv_lib_$ac_lib_var=yes"
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_lib_$ac_lib_var=no"
6708 LIBS="$ac_save_LIBS"
6711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6712 echo "$ac_t""yes" 1>&6
6713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6715 echo "$ac_t""no" 1>&6
6716 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6717 echo "configure:6718: checking for dlopen in -lsvld" >&5
6718 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6720 echo $ac_n "(cached) $ac_c" 1>&6
6722 ac_save_LIBS="$LIBS"
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6738 eval "ac_cv_lib_$ac_lib_var=yes"
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 eval "ac_cv_lib_$ac_lib_var=no"
6746 LIBS="$ac_save_LIBS"
6749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6753 echo "$ac_t""no" 1>&6
6754 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6755 echo "configure:6756: checking for dld_link in -ldld" >&5
6756 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6757 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6760 ac_save_LIBS="$LIBS"
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6765 /* Override any gcc2 internal prototype to avoid an error. */
6766 /* We use char because int might match the return type of a gcc2
6767 builtin and then its argument prototype would still apply. */
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6776 eval "ac_cv_lib_$ac_lib_var=yes"
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6781 eval "ac_cv_lib_$ac_lib_var=no"
6784 LIBS="$ac_save_LIBS"
6787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6788 echo "$ac_t""yes" 1>&6
6789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6791 echo "$ac_t""no" 1>&6
6815 if test "x$lt_cv_dlopen" != xno; then
6821 case $lt_cv_dlopen in
6823 save_CPPFLAGS="$CPPFLAGS"
6824 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6826 save_LDFLAGS="$LDFLAGS"
6827 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6830 LIBS="$lt_cv_dlopen_libs $LIBS"
6832 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6833 echo "configure:6834: checking whether a program can dlopen itself" >&5
6834 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 if test "$cross_compiling" = yes; then :
6838 lt_cv_dlopen_self=cross
6840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6841 lt_status=$lt_dlunknown
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6853 # define LT_DLGLOBAL RTLD_GLOBAL
6856 # define LT_DLGLOBAL DL_GLOBAL
6858 # define LT_DLGLOBAL 0
6862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6863 find out it does not work in some platform. */
6864 #ifndef LT_DLLAZY_OR_NOW
6866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6869 # define LT_DLLAZY_OR_NOW DL_LAZY
6872 # define LT_DLLAZY_OR_NOW RTLD_NOW
6875 # define LT_DLLAZY_OR_NOW DL_NOW
6877 # define LT_DLLAZY_OR_NOW 0
6885 extern "C" void exit (int);
6888 void fnord() { int i=42;}
6891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6892 int status = $lt_dlunknown;
6896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6897 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6898 /* dlclose (self); */
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6905 (./conftest; exit; ) 2>/dev/null
6908 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6909 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6910 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6913 # compilation failed
6914 lt_cv_dlopen_self=no
6922 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6924 if test "x$lt_cv_dlopen_self" = xyes; then
6925 LDFLAGS="$LDFLAGS $link_static_flag"
6926 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6927 echo "configure:6928: checking whether a statically linked program can dlopen itself" >&5
6928 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 if test "$cross_compiling" = yes; then :
6932 lt_cv_dlopen_self_static=cross
6934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6935 lt_status=$lt_dlunknown
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6947 # define LT_DLGLOBAL RTLD_GLOBAL
6950 # define LT_DLGLOBAL DL_GLOBAL
6952 # define LT_DLGLOBAL 0
6956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6957 find out it does not work in some platform. */
6958 #ifndef LT_DLLAZY_OR_NOW
6960 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6963 # define LT_DLLAZY_OR_NOW DL_LAZY
6966 # define LT_DLLAZY_OR_NOW RTLD_NOW
6969 # define LT_DLLAZY_OR_NOW DL_NOW
6971 # define LT_DLLAZY_OR_NOW 0
6979 extern "C" void exit (int);
6982 void fnord() { int i=42;}
6985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6986 int status = $lt_dlunknown;
6990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6992 /* dlclose (self); */
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6999 (./conftest; exit; ) 2>/dev/null
7002 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7003 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7004 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7007 # compilation failed
7008 lt_cv_dlopen_self_static=no
7016 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7019 CPPFLAGS="$save_CPPFLAGS"
7020 LDFLAGS="$save_LDFLAGS"
7025 case $lt_cv_dlopen_self in
7026 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7027 *) enable_dlopen_self=unknown ;;
7030 case $lt_cv_dlopen_self_static in
7031 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7032 *) enable_dlopen_self_static=unknown ;;
7037 if test "$enable_shared" = yes && test "$GCC" = yes; then
7038 case $archive_cmds in
7040 # FIXME: we may have to deal with multi-command sequences.
7043 # Test whether the compiler implicitly links with -lc since on some
7044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7045 # to ld, don't add -lc before -lgcc.
7046 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7047 echo "configure:7048: checking whether -lc should be explicitly linked in" >&5
7048 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7052 echo 'static int dummy;' > conftest.$ac_ext
7054 if { (eval echo configure:7055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7057 libobjs=conftest.$ac_objext
7059 wl=$lt_cv_prog_cc_wl
7065 save_allow_undefined_flag=$allow_undefined_flag
7066 allow_undefined_flag=
7067 if { (eval echo configure:7068: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
7069 lt_cv_archive_cmds_need_lc=no
7071 lt_cv_archive_cmds_need_lc=yes
7073 allow_undefined_flag=$save_allow_undefined_flag
7075 cat conftest.err 1>&5
7079 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7083 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7085 # The second clause should only fire when bootstrapping the
7086 # libtool distribution, otherwise you forgot to ship ltmain.sh
7087 # with your package, and you will get complaints that there are
7088 # no rules to generate ltmain.sh.
7089 if test -f "$ltmain"; then
7092 # If there is no Makefile yet, we rely on a make rule to execute
7093 # `config.status --recheck' to rerun these tests and create the
7094 # libtool script then.
7095 test -f Makefile && make "$ltmain"
7098 if test -f "$ltmain"; then
7099 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7102 echo creating $ofile
7104 # Now quote all the things that may contain metacharacters while being
7105 # careful not to overquote the AC_SUBSTed values. We take copies of the
7106 # variables and quote the copies for generation of the libtool script.
7107 for var in echo old_CC old_CFLAGS SED \
7108 AR AR_FLAGS CC LD LN_S NM SHELL \
7109 reload_flag reload_cmds wl \
7110 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7111 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7112 library_names_spec soname_spec \
7113 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7114 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7115 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7116 old_striplib striplib file_magic_cmd export_symbols_cmds \
7117 deplibs_check_method allow_undefined_flag no_undefined_flag \
7118 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7119 global_symbol_to_c_name_address \
7120 hardcode_libdir_flag_spec hardcode_libdir_separator \
7121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7122 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7125 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7126 old_postinstall_cmds | old_postuninstall_cmds | \
7127 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7128 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7129 postinstall_cmds | postuninstall_cmds | \
7130 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7131 # Double-quote double-evaled strings.
7132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7140 cat <<__EOF__ > "${ofile}T"
7143 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7144 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7147 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7148 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7150 # This program is free software; you can redistribute it and/or modify
7151 # it under the terms of the GNU General Public License as published by
7152 # the Free Software Foundation; either version 2 of the License, or
7153 # (at your option) any later version.
7155 # This program is distributed in the hope that it will be useful, but
7156 # WITHOUT ANY WARRANTY; without even the implied warranty of
7157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7158 # General Public License for more details.
7160 # You should have received a copy of the GNU General Public License
7161 # along with this program; if not, write to the Free Software
7162 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7164 # As a special exception to the GNU General Public License, if you
7165 # distribute this file as part of a program that contains a
7166 # configuration script generated by Autoconf, you may include it under
7167 # the same distribution terms that you use for the rest of that program.
7169 # A sed that does not truncate output.
7172 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7173 Xsed="${SED} -e s/^X//"
7175 # The HP-UX ksh and POSIX shell print the target directory to stdout
7177 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7179 # ### BEGIN LIBTOOL CONFIG
7181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7183 # Shell to use when invoking shell scripts.
7186 # Whether or not to build shared libraries.
7187 build_libtool_libs=$enable_shared
7189 # Whether or not to build static libraries.
7190 build_old_libs=$enable_static
7192 # Whether or not to add -lc for building shared libraries.
7193 build_libtool_need_lc=$need_lc
7195 # Whether or not to optimize for fast installation.
7196 fast_install=$enable_fast_install
7199 host_alias=$host_alias
7202 # An echo program that does not interpret backslashes.
7207 AR_FLAGS=$lt_AR_FLAGS
7209 # The default C compiler.
7212 # Is the compiler the GNU C compiler?
7215 # The linker used to build libraries.
7218 # Whether we need hard or soft links.
7221 # A BSD-compatible nm program.
7224 # A symbol stripping program
7227 # Used to examine libraries when file_magic_cmd begins "file"
7228 MAGIC_CMD=$MAGIC_CMD
7230 # Used on cygwin: DLL creation program.
7233 # Used on cygwin: object dumper.
7236 # Used on cygwin: assembler.
7239 # The name of the directory that contains temporary libtool files.
7242 # How to create reloadable object files.
7243 reload_flag=$lt_reload_flag
7244 reload_cmds=$lt_reload_cmds
7246 # How to pass a linker flag through the compiler.
7249 # Object file suffix (normally "o").
7252 # Old archive suffix (normally "a").
7255 # Executable file suffix (normally "").
7258 # Additional compiler flags for building library objects.
7259 pic_flag=$lt_pic_flag
7262 # Does compiler simultaneously support -c and -o options?
7263 compiler_c_o=$lt_compiler_c_o
7265 # Can we write directly to a .lo ?
7266 compiler_o_lo=$lt_compiler_o_lo
7268 # Must we lock files when doing compilation ?
7269 need_locks=$lt_need_locks
7271 # Do we need the lib prefix for modules?
7272 need_lib_prefix=$need_lib_prefix
7274 # Do we need a version for libraries?
7275 need_version=$need_version
7277 # Whether dlopen is supported.
7278 dlopen_support=$enable_dlopen
7280 # Whether dlopen of programs is supported.
7281 dlopen_self=$enable_dlopen_self
7283 # Whether dlopen of statically linked programs is supported.
7284 dlopen_self_static=$enable_dlopen_self_static
7286 # Compiler flag to prevent dynamic linking.
7287 link_static_flag=$lt_link_static_flag
7289 # Compiler flag to turn off builtin functions.
7290 no_builtin_flag=$lt_no_builtin_flag
7292 # Compiler flag to allow reflexive dlopens.
7293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7295 # Compiler flag to generate shared objects directly from archives.
7296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7298 # Compiler flag to generate thread-safe objects.
7299 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7301 # Library versioning type.
7302 version_type=$version_type
7304 # Format of library name prefix.
7305 libname_spec=$lt_libname_spec
7307 # List of archive names. First name is the real one, the rest are links.
7308 # The last name is the one that the linker finds with -lNAME.
7309 library_names_spec=$lt_library_names_spec
7311 # The coded name of the library, if different from the real name.
7312 soname_spec=$lt_soname_spec
7314 # Commands used to build and install an old-style archive.
7316 old_archive_cmds=$lt_old_archive_cmds
7317 old_postinstall_cmds=$lt_old_postinstall_cmds
7318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7320 # Create an old-style archive from a shared archive.
7321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7323 # Create a temporary old-style archive to link instead of a shared archive.
7324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7326 # Commands used to build and install a shared archive.
7327 archive_cmds=$lt_archive_cmds
7328 archive_expsym_cmds=$lt_archive_expsym_cmds
7329 postinstall_cmds=$lt_postinstall_cmds
7330 postuninstall_cmds=$lt_postuninstall_cmds
7332 # Commands to strip libraries.
7333 old_striplib=$lt_old_striplib
7334 striplib=$lt_striplib
7336 # Method to check whether dependent libraries are shared objects.
7337 deplibs_check_method=$lt_deplibs_check_method
7339 # Command to use when deplibs_check_method == file_magic.
7340 file_magic_cmd=$lt_file_magic_cmd
7342 # Flag that allows shared libraries with undefined symbols to be built.
7343 allow_undefined_flag=$lt_allow_undefined_flag
7345 # Flag that forces no undefined symbols.
7346 no_undefined_flag=$lt_no_undefined_flag
7348 # Commands used to finish a libtool library installation in a directory.
7349 finish_cmds=$lt_finish_cmds
7351 # Same as above, but a single script fragment to be evaled but not shown.
7352 finish_eval=$lt_finish_eval
7354 # Take the output of nm and produce a listing of raw symbols and C names.
7355 global_symbol_pipe=$lt_global_symbol_pipe
7357 # Transform the output of nm in a proper C declaration
7358 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7360 # Transform the output of nm in a C name address pair
7361 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7363 # This is the shared library runtime path variable.
7364 runpath_var=$runpath_var
7366 # This is the shared library path variable.
7367 shlibpath_var=$shlibpath_var
7369 # Is shlibpath searched before the hard-coded library search path?
7370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7372 # How to hardcode a shared library path into an executable.
7373 hardcode_action=$hardcode_action
7375 # Whether we should hardcode library paths into libraries.
7376 hardcode_into_libs=$hardcode_into_libs
7378 # Flag to hardcode \$libdir into a binary during linking.
7379 # This must work even if \$libdir does not exist.
7380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7382 # Whether we need a single -rpath flag with a separated argument.
7383 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7385 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7387 hardcode_direct=$hardcode_direct
7389 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7391 hardcode_minus_L=$hardcode_minus_L
7393 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7394 # the resulting binary.
7395 hardcode_shlibpath_var=$hardcode_shlibpath_var
7397 # Variables whose values should be saved in libtool wrapper scripts and
7398 # restored at relink time.
7399 variables_saved_for_relink="$variables_saved_for_relink"
7401 # Whether libtool must link a program against all its dependency libraries.
7402 link_all_deplibs=$link_all_deplibs
7404 # Compile-time system search path for libraries
7405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7407 # Run-time system search path for libraries
7408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7410 # Fix the shell variable \$srcfile for the compiler.
7411 fix_srcfile_path="$fix_srcfile_path"
7413 # Set to yes if exported symbols are required.
7414 always_export_symbols=$always_export_symbols
7416 # The commands to list exported symbols.
7417 export_symbols_cmds=$lt_export_symbols_cmds
7419 # The commands to extract the exported symbol list from a shared archive.
7420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7422 # Symbols that should not be listed in the preloaded symbols.
7423 exclude_expsyms=$lt_exclude_expsyms
7425 # Symbols that must always be exported.
7426 include_expsyms=$lt_include_expsyms
7428 # ### END LIBTOOL CONFIG
7434 cat <<\EOF >> "${ofile}T"
7436 # AIX sometimes has problems with the GCC collect2 program. For some
7437 # reason, if we set the COLLECT_NAMES environment variable, the problems
7438 # vanish in a puff of smoke.
7439 if test "X${COLLECT_NAMES+set}" != Xset; then
7441 export COLLECT_NAMES
7448 cygwin* | mingw* | pw32* | os2*)
7449 cat <<'EOF' >> "${ofile}T"
7450 # This is a source program that is used to create dlls on Windows
7451 # Don't remove nor modify the starting and closing comments
7452 # /* ltdll.c starts here */
7453 # #define WIN32_LEAN_AND_MEAN
7454 # #include <windows.h>
7455 # #undef WIN32_LEAN_AND_MEAN
7456 # #include <stdio.h>
7458 # #ifndef __CYGWIN__
7459 # # ifdef __CYGWIN32__
7460 # # define __CYGWIN__ __CYGWIN32__
7464 # #ifdef __cplusplus
7467 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7468 # #ifdef __cplusplus
7473 # #include <cygwin/cygwin_dll.h>
7474 # DECLARE_CYGWIN_DLL( DllMain );
7476 # HINSTANCE __hDllInstance_base;
7479 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7481 # __hDllInstance_base = hInst;
7484 # /* ltdll.c ends here */
7485 # This is a source program that is used to create import libraries
7486 # on Windows for dlls which lack them. Don't remove nor modify the
7487 # starting and closing comments
7488 # /* impgen.c starts here */
7489 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7491 # This file is part of GNU libtool.
7493 # This program is free software; you can redistribute it and/or modify
7494 # it under the terms of the GNU General Public License as published by
7495 # the Free Software Foundation; either version 2 of the License, or
7496 # (at your option) any later version.
7498 # This program is distributed in the hope that it will be useful,
7499 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7501 # GNU General Public License for more details.
7503 # You should have received a copy of the GNU General Public License
7504 # along with this program; if not, write to the Free Software
7505 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7508 # #include <stdio.h> /* for printf() */
7509 # #include <unistd.h> /* for open(), lseek(), read() */
7510 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7511 # #include <string.h> /* for strdup() */
7513 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7515 # #define O_BINARY 0
7518 # static unsigned int
7519 # pe_get16 (fd, offset)
7523 # unsigned char b[2];
7524 # lseek (fd, offset, SEEK_SET);
7526 # return b[0] + (b[1]<<8);
7529 # static unsigned int
7530 # pe_get32 (fd, offset)
7534 # unsigned char b[4];
7535 # lseek (fd, offset, SEEK_SET);
7537 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7540 # static unsigned int
7544 # unsigned char *b = ptr;
7545 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7554 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7555 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7556 # unsigned long name_rvas, nexp;
7557 # unsigned char *expdata, *erva;
7558 # char *filename, *dll_name;
7560 # filename = argv[1];
7562 # dll = open(filename, O_RDONLY|O_BINARY);
7566 # dll_name = filename;
7568 # for (i=0; filename[i]; i++)
7569 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7570 # dll_name = filename + i +1;
7572 # pe_header_offset = pe_get32 (dll, 0x3c);
7573 # opthdr_ofs = pe_header_offset + 4 + 20;
7574 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7576 # if (num_entries < 1) /* no exports */
7579 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7580 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7581 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7582 # secptr = (pe_header_offset + 4 + 20 +
7583 # pe_get16 (dll, pe_header_offset + 4 + 16));
7586 # for (i = 0; i < nsections; i++)
7589 # unsigned long secptr1 = secptr + 40 * i;
7590 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7591 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7592 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7593 # lseek(dll, secptr1, SEEK_SET);
7594 # read(dll, sname, 8);
7595 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7597 # expptr = fptr + (export_rva - vaddr);
7598 # if (export_rva + export_size > vaddr + vsize)
7599 # export_size = vsize - (export_rva - vaddr);
7604 # expdata = (unsigned char*)malloc(export_size);
7605 # lseek (dll, expptr, SEEK_SET);
7606 # read (dll, expdata, export_size);
7607 # erva = expdata - export_rva;
7609 # nexp = pe_as32 (expdata+24);
7610 # name_rvas = pe_as32 (expdata+32);
7612 # printf ("EXPORTS\n");
7613 # for (i = 0; i<nexp; i++)
7615 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7616 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7621 # /* impgen.c ends here */
7627 # We use sed instead of cat because bash on DJGPP gets confused if
7628 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7629 # text mode, it properly converts lines to CR/LF. This bash problem
7630 # is reportedly fixed, but why not run on old versions too?
7631 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7633 mv -f "${ofile}T" "$ofile" || \
7634 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7642 # This can be used to rebuild libtool when needed
7643 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7645 # Always use our own libtool.
7646 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7648 # Prevent multiple expansion
7653 if test $ol_enable_perl != no ; then
7654 # Extract the first word of "perl", so it can be a program name with args.
7655 set dummy perl; ac_word=$2
7656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7657 echo "configure:7658: checking for $ac_word" >&5
7658 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7663 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7666 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7671 for ac_dir in $ac_dummy; do
7672 test -z "$ac_dir" && ac_dir=.
7673 if test -f $ac_dir/$ac_word; then
7674 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7679 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7683 PERLBIN="$ac_cv_path_PERLBIN"
7684 if test -n "$PERLBIN"; then
7685 echo "$ac_t""$PERLBIN" 1>&6
7687 echo "$ac_t""no" 1>&6
7691 if test "no$PERLBIN" = "no" ; then
7692 if test $ol_enable_perl = yes ; then
7693 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7697 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7698 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7700 if test x"$ol_enable_perl" = "xyes" ; then
7701 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7703 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7709 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7710 echo "configure:7711: checking how to run the C preprocessor" >&5
7711 # On Suns, sometimes $CPP names a directory.
7712 if test -n "$CPP" && test -d "$CPP"; then
7715 if test -z "$CPP"; then
7716 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 # This must be in double quotes, not single quotes, because CPP may get
7720 # substituted into the Makefile and "${CC-cc}" will confuse make.
7722 # On the NeXT, cc -E runs the code through the compiler's parser,
7723 # not just through cpp.
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7731 { (eval echo configure:7732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7733 if test -z "$ac_err"; then
7737 echo "configure: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7740 CPP="${CC-cc} -E -traditional-cpp"
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7748 { (eval echo configure:7749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7750 if test -z "$ac_err"; then
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 CPP="${CC-cc} -nologo -E"
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7765 { (eval echo configure:7766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7767 if test -z "$ac_err"; then
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7781 ac_cv_prog_CPP="$CPP"
7783 CPP="$ac_cv_prog_CPP"
7785 ac_cv_prog_CPP="$CPP"
7787 echo "$ac_t""$CPP" 1>&6
7791 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7792 echo "configure:7793: checking for Cygwin environment" >&5
7793 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7796 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7803 #define __CYGWIN__ __CYGWIN32__
7808 if { (eval echo configure:7809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7820 echo "$ac_t""$ac_cv_cygwin" 1>&6
7822 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7823 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7824 echo "configure:7825: checking for mingw32 environment" >&5
7825 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7836 if { (eval echo configure:7837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7840 echo "configure: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7848 echo "$ac_t""$ac_cv_mingw32" 1>&6
7850 test "$ac_cv_mingw32" = yes && MINGW32=yes
7854 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7855 echo "configure:7856: checking for executable suffix" >&5
7856 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7859 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7863 echo 'int main () { return 0; }' > conftest.$ac_ext
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7866 for file in conftest.*; do
7868 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7869 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7873 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7876 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7881 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7882 echo "$ac_t""${ac_cv_exeext}" 1>&6
7885 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7886 echo "configure:7887: checking for object suffix" >&5
7887 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7891 echo 'int i = 1;' > conftest.$ac_ext
7892 if { (eval echo configure:7893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7893 for ac_file in conftest.*; do
7896 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7900 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7905 echo "$ac_t""$ac_cv_objext" 1>&6
7906 OBJEXT=$ac_cv_objext
7907 ac_objext=$ac_cv_objext
7910 cat >> confdefs.h <<EOF
7911 #define EXEEXT "${EXEEXT}"
7915 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7916 echo "configure:7917: checking for be_app in -lbe" >&5
7917 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 ac_save_LIBS="$LIBS"
7922 LIBS="-lbe -lroot -lnet $LIBS"
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 eval "ac_cv_lib_$ac_lib_var=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 eval "ac_cv_lib_$ac_lib_var=no"
7945 LIBS="$ac_save_LIBS"
7948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 LIBS="$LIBS -lbe -lroot -lnet"
7952 echo "$ac_t""no" 1>&6
7960 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7961 echo "configure:7962: checking for ${CC-cc} option to accept ANSI C" >&5
7962 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 am_cv_prog_cc_stdc=no
7967 # Don't try gcc -ansi; that turns off useful extensions and
7968 # breaks some systems' header files.
7969 # AIX -qlanglvl=ansi
7970 # Ultrix and OSF/1 -std1
7971 # HP-UX 10.20 and later -Ae
7972 # HP-UX older versions -Aa -D_HPUX_SOURCE
7973 # SVR4 -Xc -D__EXTENSIONS__
7974 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7976 CC="$ac_save_CC $ac_arg"
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7982 #include <sys/types.h>
7983 #include <sys/stat.h>
7984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7985 struct buf { int x; };
7986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7987 static char *e (p, i)
7993 static char *f (char * (*g) (char **, int), char **p, ...)
7998 s = g (p, va_arg (v,int));
8002 int test (int i, double x);
8003 struct s1 {int (*f) (int a);};
8004 struct s2 {int (*f) (double a);};
8005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8015 if { (eval echo configure:8016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8017 am_cv_prog_cc_stdc="$ac_arg"; break
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8028 if test -z "$am_cv_prog_cc_stdc"; then
8029 echo "$ac_t""none needed" 1>&6
8031 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8033 case "x$am_cv_prog_cc_stdc" in
8035 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8038 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8039 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8042 # test for make depend flag
8045 if test -z "${MKDEP}"; then
8047 if test -z "${MKDEP_FLAGS}"; then
8048 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8049 echo "configure:8050: checking for ${OL_MKDEP} depend flag" >&5
8050 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8055 for flag in "-M" "-xM"; do
8056 cat > conftest.c <<EOF
8059 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8060 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8062 if test ! -f conftest."${ac_object}" ; then
8064 OL_MKDEP_FLAGS="$flag"
8073 echo "$ac_t""$ol_cv_mkdep" 1>&6
8076 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8081 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8086 if test "${ol_cv_mkdep}" = no ; then
8087 # this will soon become an error
8088 echo "configure: warning: do not know how to generate dependencies" 1>&2
8091 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8092 echo "configure:8093: checking for afopen in -ls" >&5
8093 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 ac_save_LIBS="$LIBS"
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* Override any gcc2 internal prototype to avoid an error. */
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8111 if { (eval echo configure:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8113 eval "ac_cv_lib_$ac_lib_var=yes"
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8118 eval "ac_cv_lib_$ac_lib_var=no"
8121 LIBS="$ac_save_LIBS"
8124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8128 cat >> confdefs.h <<\EOF
8129 #define HAVE_AIX_SECURITY 1
8134 echo "$ac_t""no" 1>&6
8140 ac_cv_func_getopt=no
8141 cat >> confdefs.h <<\EOF
8142 #define BOTH_STRINGS_H 1
8149 if test $ol_enable_modules != no ; then
8150 for ac_hdr in ltdl.h
8152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8154 echo "configure:8155: checking for $ac_hdr" >&5
8155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8164 { (eval echo configure:8165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8166 if test -z "$ac_err"; then
8168 eval "ac_cv_header_$ac_safe=yes"
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8174 eval "ac_cv_header_$ac_safe=no"
8178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8179 echo "$ac_t""yes" 1>&6
8180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8181 cat >> confdefs.h <<EOF
8182 #define $ac_tr_hdr 1
8186 echo "$ac_t""no" 1>&6
8191 if test $ac_cv_header_ltdl_h = no ; then
8192 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8195 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8196 echo "configure:8197: checking for lt_dlinit in -lltdl" >&5
8197 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8198 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8199 echo $ac_n "(cached) $ac_c" 1>&6
8201 ac_save_LIBS="$LIBS"
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8215 if { (eval echo configure:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8217 eval "ac_cv_lib_$ac_lib_var=yes"
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8222 eval "ac_cv_lib_$ac_lib_var=no"
8225 LIBS="$ac_save_LIBS"
8228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8232 cat >> confdefs.h <<\EOF
8233 #define HAVE_LIBLTDL 1
8238 echo "$ac_t""no" 1>&6
8242 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8243 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8248 for i in $Backends; do
8249 eval "ol_tmp=\$ol_enable_$i"
8250 if test $ol_tmp = mod ; then
8251 echo "configure: warning: building static $i backend" 1>&2
8252 eval "ol_enable_$i=yes"
8255 for i in $Overlays; do
8256 eval "ol_tmp=\$ol_enable_$i"
8257 if test $ol_tmp = mod ; then
8258 echo "configure: warning: building static $i overlay" 1>&2
8259 eval "ol_enable_$i=yes"
8265 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8266 echo "configure:8267: checking for EBCDIC" >&5
8267 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8276 #include <__ASCII__/generate_error.h>
8280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8281 { (eval echo configure:8282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8283 if test -z "$ac_err"; then
8285 ol_cv_cpp_ebcdic=yes
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8296 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8297 if test $ol_cv_cpp_ebcdic = yes ; then
8298 cat >> confdefs.h <<\EOF
8299 #define HAVE_EBCDIC 1
8304 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8305 echo "configure:8306: checking for ANSI C header files" >&5
8306 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8320 if test -z "$ac_err"; then
8322 ol_cv_header_stdc=yes
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8328 ol_cv_header_stdc=no
8332 if test $ol_cv_header_stdc = yes; then
8333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8340 egrep "memchr" >/dev/null 2>&1; then
8344 ol_cv_header_stdc=no
8350 if test $ol_cv_header_stdc = yes; then
8351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8352 cat > conftest.$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358 egrep "free" >/dev/null 2>&1; then
8362 ol_cv_header_stdc=no
8368 if test $ol_cv_header_stdc = yes; then
8369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8370 if test "$cross_compiling" = yes; then
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8381 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8382 || ('j' <= (c) && (c) <= 'r') \
8383 || ('s' <= (c) && (c) <= 'z'))
8384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8387 int main () { int i; for (i = 0; i < 256; i++)
8388 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8399 ol_cv_header_stdc=no
8407 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8408 if test $ol_cv_header_stdc = yes; then
8409 cat >> confdefs.h <<\EOF
8410 #define STDC_HEADERS 1
8414 ac_cv_header_stdc=disable
8417 if test $ol_cv_header_stdc != yes; then
8418 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8425 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8426 echo "configure:8427: checking for $ac_hdr that defines DIR" >&5
8427 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8428 echo $ac_n "(cached) $ac_c" 1>&6
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 #include <sys/types.h>
8439 if { (eval echo configure:8440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441 eval "ac_cv_header_dirent_$ac_safe=yes"
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 eval "ac_cv_header_dirent_$ac_safe=no"
8450 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8453 cat >> confdefs.h <<EOF
8454 #define $ac_tr_hdr 1
8456 ac_header_dirent=$ac_hdr; break
8458 echo "$ac_t""no" 1>&6
8461 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8462 if test $ac_header_dirent = dirent.h; then
8463 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8464 echo "configure:8465: checking for opendir in -ldir" >&5
8465 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8466 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 ac_save_LIBS="$LIBS"
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8474 /* Override any gcc2 internal prototype to avoid an error. */
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8483 if { (eval echo configure:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8485 eval "ac_cv_lib_$ac_lib_var=yes"
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8490 eval "ac_cv_lib_$ac_lib_var=no"
8493 LIBS="$ac_save_LIBS"
8496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8497 echo "$ac_t""yes" 1>&6
8500 echo "$ac_t""no" 1>&6
8504 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8505 echo "configure:8506: checking for opendir in -lx" >&5
8506 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8507 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8510 ac_save_LIBS="$LIBS"
8512 cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure"
8514 #include "confdefs.h"
8515 /* Override any gcc2 internal prototype to avoid an error. */
8516 /* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8524 if { (eval echo configure:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8526 eval "ac_cv_lib_$ac_lib_var=yes"
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8531 eval "ac_cv_lib_$ac_lib_var=no"
8534 LIBS="$ac_save_LIBS"
8537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8538 echo "$ac_t""yes" 1>&6
8541 echo "$ac_t""no" 1>&6
8546 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8547 echo "configure:8548: checking for sys/wait.h that is POSIX.1 compatible" >&5
8548 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 #include <sys/types.h>
8555 #include <sys/wait.h>
8557 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8560 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8565 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8568 if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8570 ac_cv_header_sys_wait_h=yes
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 ac_cv_header_sys_wait_h=no
8580 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8581 if test $ac_cv_header_sys_wait_h = yes; then
8582 cat >> confdefs.h <<\EOF
8583 #define HAVE_SYS_WAIT_H 1
8588 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8589 echo "configure:8590: checking POSIX termios" >&5
8590 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <sys/types.h>
8598 #include <termios.h>
8600 /* SunOS 4.0.3 has termios.h but not the library calls. */
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8606 am_cv_sys_posix_termios=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 am_cv_sys_posix_termios=no
8616 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8619 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8620 echo "configure:8621: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8621 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8626 gwinsz_in_termios_h=no
8627 if test $am_cv_sys_posix_termios = yes; then
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 #include <sys/types.h>
8632 # include <termios.h>
8638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8639 egrep "yes" >/dev/null 2>&1; then
8641 gwinsz_in_termios_h=yes
8647 if test $gwinsz_in_termios_h = no; then
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 #include <sys/types.h>
8652 # include <sys/ioctl.h>
8658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8659 egrep "yes" >/dev/null 2>&1; then
8661 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8669 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8670 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8671 cat >> confdefs.h <<\EOF
8672 #define GWINSZ_IN_SYS_IOCTL 1
8677 if test $am_cv_sys_posix_termios = yes ; then
8678 cat >> confdefs.h <<\EOF
8679 #define HAVE_POSIX_TERMIOS 1
8735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8737 echo "configure:8738: checking for $ac_hdr" >&5
8738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8739 echo $ac_n "(cached) $ac_c" 1>&6
8741 cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8747 { (eval echo configure:8748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8749 if test -z "$ac_err"; then
8751 eval "ac_cv_header_$ac_safe=yes"
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8757 eval "ac_cv_header_$ac_safe=no"
8761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8762 echo "$ac_t""yes" 1>&6
8763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8764 cat >> confdefs.h <<EOF
8765 #define $ac_tr_hdr 1
8769 echo "$ac_t""no" 1>&6
8776 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8777 echo "configure:8778: checking for sigset in -lV3" >&5
8778 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8779 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8782 ac_save_LIBS="$LIBS"
8784 cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8787 /* Override any gcc2 internal prototype to avoid an error. */
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8798 eval "ac_cv_lib_$ac_lib_var=yes"
8800 echo "configure: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8803 eval "ac_cv_lib_$ac_lib_var=no"
8806 LIBS="$ac_save_LIBS"
8809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8810 echo "$ac_t""yes" 1>&6
8811 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8812 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8813 cat >> confdefs.h <<EOF
8814 #define $ac_tr_lib 1
8820 echo "$ac_t""no" 1>&6
8824 if test "$ac_cv_header_winsock_h" = yes; then
8825 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8826 echo "configure:8827: checking for winsock" >&5
8827 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8828 echo $ac_n "(cached) $ac_c" 1>&6
8831 for curlib in ws2_32 wsock32; do
8832 LIBS="$LIBS -l$curlib"
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <winsock.h>
8841 select(0,NULL,NULL,NULL,NULL);
8843 gethostname(NULL,0);
8847 if { (eval echo configure:8848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8858 if test $ol_cv_winsock = yes; then
8859 cat >> confdefs.h <<\EOF
8860 #define HAVE_WINSOCK 1
8863 ac_cv_func_socket=yes
8864 ac_cv_func_select=yes
8865 ac_cv_func_closesocket=yes
8866 ac_cv_func_gethostname=yes
8867 if test $curlib = ws2_32; then
8868 ol_cv_winsock=winsock2
8869 cat >> confdefs.h <<\EOF
8870 #define HAVE_WINSOCK2 1
8880 echo "$ac_t""$ol_cv_winsock" 1>&6
8884 echo $ac_n "checking for socket""... $ac_c" 1>&6
8885 echo "configure:8886: checking for socket" >&5
8886 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* System header to define __stub macros and hopefully few prototypes,
8893 which can conflict with char socket(); below. */
8895 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8903 /* The GNU C library defines this for functions which it implements
8904 to always fail with ENOSYS. Some functions are actually named
8905 something starting with __ and the normal name is an alias. */
8906 #if defined (__stub_socket) || defined (__stub___socket)
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8916 eval "ac_cv_func_socket=yes"
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8921 eval "ac_cv_func_socket=no"
8926 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8927 echo "$ac_t""yes" 1>&6
8930 echo "$ac_t""no" 1>&6
8932 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8933 echo "configure:8934: checking for main in -lsocket" >&5
8934 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 ac_save_LIBS="$LIBS"
8939 LIBS="-lsocket $LIBS"
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8948 if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8950 eval "ac_cv_lib_$ac_lib_var=yes"
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 eval "ac_cv_lib_$ac_lib_var=no"
8958 LIBS="$ac_save_LIBS"
8961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8962 echo "$ac_t""yes" 1>&6
8963 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8965 cat >> confdefs.h <<EOF
8966 #define $ac_tr_lib 1
8969 LIBS="-lsocket $LIBS"
8972 echo "$ac_t""no" 1>&6
8975 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8976 echo "configure:8977: checking for main in -lnet" >&5
8977 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8981 ac_save_LIBS="$LIBS"
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8993 eval "ac_cv_lib_$ac_lib_var=yes"
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8998 eval "ac_cv_lib_$ac_lib_var=no"
9001 LIBS="$ac_save_LIBS"
9004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9005 echo "$ac_t""yes" 1>&6
9006 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9008 cat >> confdefs.h <<EOF
9009 #define $ac_tr_lib 1
9015 echo "$ac_t""no" 1>&6
9018 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9019 echo "configure:9020: checking for main in -lnsl_s" >&5
9020 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9024 ac_save_LIBS="$LIBS"
9025 LIBS="-lnsl_s $LIBS"
9026 cat > conftest.$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9034 if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 eval "ac_cv_lib_$ac_lib_var=yes"
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9041 eval "ac_cv_lib_$ac_lib_var=no"
9044 LIBS="$ac_save_LIBS"
9047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9048 echo "$ac_t""yes" 1>&6
9049 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9051 cat >> confdefs.h <<EOF
9052 #define $ac_tr_lib 1
9055 LIBS="-lnsl_s $LIBS"
9058 echo "$ac_t""no" 1>&6
9061 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9062 echo "configure:9063: checking for main in -lnsl" >&5
9063 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9065 echo $ac_n "(cached) $ac_c" 1>&6
9067 ac_save_LIBS="$LIBS"
9069 cat > conftest.$ac_ext <<EOF
9070 #line 9071 "configure"
9071 #include "confdefs.h"
9077 if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9079 eval "ac_cv_lib_$ac_lib_var=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 eval "ac_cv_lib_$ac_lib_var=no"
9087 LIBS="$ac_save_LIBS"
9090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9091 echo "$ac_t""yes" 1>&6
9092 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9094 cat >> confdefs.h <<EOF
9095 #define $ac_tr_lib 1
9101 echo "$ac_t""no" 1>&6
9104 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9105 echo "configure:9106: checking for socket in -linet" >&5
9106 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9110 ac_save_LIBS="$LIBS"
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9114 "configure"
9114 #include "confdefs.h"
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 /* We use char because int might match the return type of a gcc2
9117 builtin and then its argument prototype would still apply. */
9124 if { (eval echo configure:9125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9126 eval "ac_cv_lib_$ac_lib_var=yes"
9128 echo "configure: failed program was:" >&5
9129 cat conftest.$ac_ext >&5
9131 eval "ac_cv_lib_$ac_lib_var=no"
9134 LIBS="$ac_save_LIBS"
9137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9138 echo "$ac_t""yes" 1>&6
9139 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9141 cat >> confdefs.h <<EOF
9142 #define $ac_tr_lib 1
9148 echo "$ac_t""no" 1>&6
9151 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9152 echo "configure:9153: checking for main in -lgen" >&5
9153 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9157 ac_save_LIBS="$LIBS"
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9167 if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9169 eval "ac_cv_lib_$ac_lib_var=yes"
9171 echo "configure: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9174 eval "ac_cv_lib_$ac_lib_var=no"
9177 LIBS="$ac_save_LIBS"
9180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9181 echo "$ac_t""yes" 1>&6
9182 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9184 cat >> confdefs.h <<EOF
9185 #define $ac_tr_lib 1
9191 echo "$ac_t""no" 1>&6
9198 echo $ac_n "checking for select""... $ac_c" 1>&6
9199 echo "configure:9200: checking for select" >&5
9200 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 /* System header to define __stub macros and hopefully few prototypes,
9207 which can conflict with char select(); below. */
9209 /* Override any gcc2 internal prototype to avoid an error. */
9210 /* We use char because int might match the return type of a gcc2
9211 builtin and then its argument prototype would still apply. */
9217 /* The GNU C library defines this for functions which it implements
9218 to always fail with ENOSYS. Some functions are actually named
9219 something starting with __ and the normal name is an alias. */
9220 #if defined (__stub_select) || defined (__stub___select)
9228 if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230 eval "ac_cv_func_select=yes"
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9235 eval "ac_cv_func_select=no"
9240 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9241 echo "$ac_t""yes" 1>&6
9244 echo "$ac_t""no" 1>&6
9245 { echo "configure: error: select() required." 1>&2; exit 1; }
9249 if test "${ac_cv_header_winsock_h}" != yes; then
9250 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9251 echo "configure:9252: checking types of arguments for select()" >&5
9252 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9255 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9258 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9259 echo $ac_n "(cached) $ac_c" 1>&6
9261 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9262 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9263 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9264 cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9267 #ifdef HAVE_SYS_TYPES_H
9268 #include <sys/types.h>
9270 #ifdef HAVE_SYS_TIME_H
9271 #include <sys/time.h>
9273 #ifdef HAVE_SYS_SELECT_H
9274 #include <sys/select.h>
9276 #ifdef HAVE_SYS_SOCKET_H
9277 #include <sys/socket.h>
9279 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);
9284 if { (eval echo configure:9285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286 ac_not_found=no ; break 3
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9303 if test "$ac_not_found" = yes; then
9304 ac_cv_func_select_arg1=int
9305 ac_cv_func_select_arg234='int *'
9306 ac_cv_func_select_arg5='struct timeval *'
9308 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9309 cat >> confdefs.h <<EOF
9310 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9313 cat >> confdefs.h <<EOF
9314 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9317 cat >> confdefs.h <<EOF
9318 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9326 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9327 echo "configure:9328: checking declaration of sys_errlist" >&5
9328 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9337 #include <sys/types.h>
9343 char *c = (char *) *sys_errlist
9346 if { (eval echo configure:9347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9348 ol_cv_dcl_sys_errlist=yes
9349 ol_cv_have_sys_errlist=yes
9351 echo "configure: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9354 ol_cv_dcl_sys_errlist=no
9359 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9361 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9362 if test $ol_cv_dcl_sys_errlist = no ; then
9363 cat >> confdefs.h <<\EOF
9364 #define DECL_SYS_ERRLIST 1
9368 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9369 echo "configure:9370: checking existence of sys_errlist" >&5
9370 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9379 char *c = (char *) *sys_errlist
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9384 ol_cv_have_sys_errlist=yes
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9389 ol_cv_have_sys_errlist=no
9394 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9396 if test $ol_cv_have_sys_errlist = yes ; then
9397 cat >> confdefs.h <<\EOF
9398 #define HAVE_SYS_ERRLIST 1
9402 for ac_func in strerror strerror_r
9404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9405 echo "configure:9406: checking for $ac_func" >&5
9406 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 /* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char $ac_func(); below. */
9415 /* Override any gcc2 internal prototype to avoid an error. */
9416 /* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9436 eval "ac_cv_func_$ac_func=yes"
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 eval "ac_cv_func_$ac_func=no"
9446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9447 echo "$ac_t""yes" 1>&6
9448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9449 cat >> confdefs.h <<EOF
9450 #define $ac_tr_func 1
9454 echo "$ac_t""no" 1>&6
9458 ol_cv_func_strerror_r=no
9459 if test "${ac_cv_func_strerror_r}" = yes ; then
9460 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9461 echo "configure:9462: checking non-posix strerror_r" >&5
9462 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9472 egrep "strerror_r" >/dev/null 2>&1; then
9474 ol_decl_strerror_r=yes
9477 ol_decl_strerror_r=no
9481 if test $ol_decl_strerror_r = yes ; then
9482 cat > conftest.$ac_ext <<EOF
9483 #line 9484 "configure"
9484 #include "confdefs.h"
9487 /* from autoconf 2.59 */
9489 char x = *strerror_r (0, buf, sizeof buf);
9490 char *p = strerror_r (0, buf, sizeof buf);
9494 if { (eval echo configure:9495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9496 ol_cv_nonposix_strerror_r=yes
9498 echo "configure: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9501 ol_cv_nonposix_strerror_r=no
9505 if test "$cross_compiling" = yes; then
9506 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9515 strerror_r( 1, buf, sizeof buf );
9516 exit( buf[0] == 0 );
9520 if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9522 ol_cv_nonposix_strerror_r=yes
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9527 ol_cv_nonposix_strerror=no
9536 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9537 if test $ol_cv_nonposix_strerror_r = yes ; then
9538 cat >> confdefs.h <<\EOF
9539 #define HAVE_NONPOSIX_STRERROR_R 1
9544 elif test "${ac_cv_func_strerror}" = no ; then
9545 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9546 echo "configure:9547: checking declaration of sys_errlist" >&5
9547 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9556 #include <sys/types.h>
9562 char *c = (char *) *sys_errlist
9565 if { (eval echo configure:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9567 ol_cv_dcl_sys_errlist=yes
9568 ol_cv_have_sys_errlist=yes
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 ol_cv_dcl_sys_errlist=no
9578 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9580 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9581 if test $ol_cv_dcl_sys_errlist = no ; then
9582 cat >> confdefs.h <<\EOF
9583 #define DECL_SYS_ERRLIST 1
9587 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9588 echo "configure:9589: checking existence of sys_errlist" >&5
9589 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9598 char *c = (char *) *sys_errlist
9601 if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9603 ol_cv_have_sys_errlist=yes
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 ol_cv_have_sys_errlist=no
9613 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9615 if test $ol_cv_have_sys_errlist = yes ; then
9616 cat >> confdefs.h <<\EOF
9617 #define HAVE_SYS_ERRLIST 1
9625 for ac_hdr in regex.h
9627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9629 echo "configure:9630: checking for $ac_hdr" >&5
9630 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9633 cat > conftest.$ac_ext <<EOF
9634 #line 9635 "configure"
9635 #include "confdefs.h"
9638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9639 { (eval echo configure:9640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9641 if test -z "$ac_err"; then
9643 eval "ac_cv_header_$ac_safe=yes"
9646 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9649 eval "ac_cv_header_$ac_safe=no"
9653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9654 echo "$ac_t""yes" 1>&6
9655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9656 cat >> confdefs.h <<EOF
9657 #define $ac_tr_hdr 1
9661 echo "$ac_t""no" 1>&6
9665 if test "$ac_cv_header_regex_h" != yes ; then
9666 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9669 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9670 echo "configure:9671: checking for library containing regfree" >&5
9671 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9674 ac_func_search_save_LIBS="$LIBS"
9675 ac_cv_search_regfree="no"
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 /* Override any gcc2 internal prototype to avoid an error. */
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690 ac_cv_search_regfree="none required"
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9696 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 /* Override any gcc2 internal prototype to avoid an error. */
9702 /* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 ac_cv_search_regfree="-l$ac_lib"
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9720 LIBS="$ac_func_search_save_LIBS"
9723 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9724 if test "$ac_cv_search_regfree" != "no"; then
9725 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9728 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9732 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9733 echo "configure:9734: checking for compatible POSIX regex" >&5
9734 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9735 echo $ac_n "(cached) $ac_c" 1>&6
9738 if test "$cross_compiling" = yes; then
9739 ol_cv_c_posix_regex=cross
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9745 #include <sys/types.h>
9747 static char *pattern, *string;
9755 if(regcomp(&re, pattern, 0)) {
9759 string = "ALL MATCH";
9761 rc = regexec(&re, string, 0, (void*)0, 0);
9768 if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9770 ol_cv_c_posix_regex=yes
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9775 ol_cv_c_posix_regex=no
9782 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9784 if test "$ol_cv_c_posix_regex" = no ; then
9785 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9790 for ac_hdr in sys/uuid.h
9792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9794 echo "configure:9795: checking for $ac_hdr" >&5
9795 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9798 cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9804 { (eval echo configure:9805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9806 if test -z "$ac_err"; then
9808 eval "ac_cv_header_$ac_safe=yes"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 eval "ac_cv_header_$ac_safe=no"
9818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9819 echo "$ac_t""yes" 1>&6
9820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9821 cat >> confdefs.h <<EOF
9822 #define $ac_tr_hdr 1
9826 echo "$ac_t""no" 1>&6
9830 if test $ac_cv_header_sys_uuid_h = yes ; then
9833 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9834 echo "configure:9835: checking for library containing uuid_to_str" >&5
9835 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9838 ac_func_search_save_LIBS="$LIBS"
9839 ac_cv_search_uuid_to_str="no"
9840 cat > conftest.$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 /* Override any gcc2 internal prototype to avoid an error. */
9844 /* We use char because int might match the return type of a gcc2
9845 builtin and then its argument prototype would still apply. */
9852 if { (eval echo configure:9853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9854 ac_cv_search_uuid_to_str="none required"
9856 echo "configure: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9860 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 /* Override any gcc2 internal prototype to avoid an error. */
9866 /* We use char because int might match the return type of a gcc2
9867 builtin and then its argument prototype would still apply. */
9874 if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9876 ac_cv_search_uuid_to_str="-l$ac_lib"
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9884 LIBS="$ac_func_search_save_LIBS"
9887 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9888 if test "$ac_cv_search_uuid_to_str" != "no"; then
9889 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9896 if test have_uuid = yes ; then
9897 cat >> confdefs.h <<\EOF
9898 #define HAVE_UUID_TO_STR 1
9902 test "$ac_cv_search_uuid_to_str" = "none required" || \
9903 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9907 if test $have_uuid = no ; then
9908 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9909 echo "configure:9910: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9911 LIBS="$LIBS -lrpcrt4"
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9916 int __stdcall UuidCreate(void *);
9917 int __stdcall UuidToStringA(void *,void **);
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9936 if test $need_rpcrt = yes; then
9937 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9940 echo "$ac_t""$need_rpcrt" 1>&6
9944 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9945 echo "configure:9946: checking for res_query" >&5
9946 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9947 echo $ac_n "(cached) $ac_c" 1>&6
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* System header to define __stub macros and hopefully few prototypes,
9953 which can conflict with char res_query(); below. */
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9963 /* The GNU C library defines this for functions which it implements
9964 to always fail with ENOSYS. Some functions are actually named
9965 something starting with __ and the normal name is an alias. */
9966 #if defined (__stub_res_query) || defined (__stub___res_query)
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 eval "ac_cv_func_res_query=yes"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 eval "ac_cv_func_res_query=no"
9986 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9987 echo "$ac_t""yes" 1>&6
9990 echo "$ac_t""no" 1>&6
9993 if test $ac_cv_func_res_query = no ; then
9994 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9995 echo "configure:9996: checking for __res_query" >&5
9996 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char __res_query(); below. */
10004 #include <assert.h>
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10008 char __res_query();
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub___res_query) || defined (__stub_____res_query)
10024 if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026 eval "ac_cv_func___res_query=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_func___res_query=no"
10036 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10040 echo "$ac_t""no" 1>&6
10043 ac_cv_func_res_query=$ac_cv_func___res_query
10046 if test $ac_cv_func_res_query = no ; then
10047 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10048 echo "configure:10049: checking for res_query in -lbind" >&5
10049 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10051 echo $ac_n "(cached) $ac_c" 1>&6
10053 ac_save_LIBS="$LIBS"
10054 LIBS="-lbind $LIBS"
10055 cat > conftest.$ac_ext <<EOF
10056 #line 10057 "configure"
10057 #include "confdefs.h"
10058 /* Override any gcc2 internal prototype to avoid an error. */
10059 /* We use char because int might match the return type of a gcc2
10060 builtin and then its argument prototype would still apply. */
10067 if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10069 eval "ac_cv_lib_$ac_lib_var=yes"
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10074 eval "ac_cv_lib_$ac_lib_var=no"
10077 LIBS="$ac_save_LIBS"
10080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10081 echo "$ac_t""yes" 1>&6
10082 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10083 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10084 cat >> confdefs.h <<EOF
10085 #define $ac_tr_lib 1
10088 LIBS="-lbind $LIBS"
10091 echo "$ac_t""no" 1>&6
10094 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10097 if test $ac_cv_func_res_query = no ; then
10098 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10099 echo "configure:10100: checking for __res_query in -lbind" >&5
10100 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10101 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10104 ac_save_LIBS="$LIBS"
10105 LIBS="-lbind $LIBS"
10106 cat > conftest.$ac_ext <<EOF
10107 #line 10108 "configure"
10108 #include "confdefs.h"
10109 /* Override any gcc2 internal prototype to avoid an error. */
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112 char __res_query();
10118 if { (eval echo configure:10119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10120 eval "ac_cv_lib_$ac_lib_var=yes"
10122 echo "configure: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10125 eval "ac_cv_lib_$ac_lib_var=no"
10128 LIBS="$ac_save_LIBS"
10131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10132 echo "$ac_t""yes" 1>&6
10133 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10135 cat >> confdefs.h <<EOF
10136 #define $ac_tr_lib 1
10139 LIBS="-lbind $LIBS"
10142 echo "$ac_t""no" 1>&6
10145 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10148 if test $ac_cv_func_res_query = no ; then
10149 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10150 echo "configure:10151: checking for res_query in -lresolv" >&5
10151 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10152 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10153 echo $ac_n "(cached) $ac_c" 1>&6
10155 ac_save_LIBS="$LIBS"
10156 LIBS="-lresolv $LIBS"
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 /* Override any gcc2 internal prototype to avoid an error. */
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10169 if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10171 eval "ac_cv_lib_$ac_lib_var=yes"
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10176 eval "ac_cv_lib_$ac_lib_var=no"
10179 LIBS="$ac_save_LIBS"
10182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10183 echo "$ac_t""yes" 1>&6
10184 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10186 cat >> confdefs.h <<EOF
10187 #define $ac_tr_lib 1
10190 LIBS="-lresolv $LIBS"
10193 echo "$ac_t""no" 1>&6
10196 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10199 if test $ac_cv_func_res_query = no ; then
10200 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10201 echo "configure:10202: checking for __res_query in -lresolv" >&5
10202 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10203 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10206 ac_save_LIBS="$LIBS"
10207 LIBS="-lresolv $LIBS"
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 /* Override any gcc2 internal prototype to avoid an error. */
10212 /* We use char because int might match the return type of a gcc2
10213 builtin and then its argument prototype would still apply. */
10214 char __res_query();
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10222 eval "ac_cv_lib_$ac_lib_var=yes"
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10227 eval "ac_cv_lib_$ac_lib_var=no"
10230 LIBS="$ac_save_LIBS"
10233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10234 echo "$ac_t""yes" 1>&6
10235 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10236 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10237 cat >> confdefs.h <<EOF
10238 #define $ac_tr_lib 1
10241 LIBS="-lresolv $LIBS"
10244 echo "$ac_t""no" 1>&6
10247 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10250 if test $ac_cv_func_res_query = no ; then
10251 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
10252 echo "configure:10253: checking for _res_9_query in -lresolv" >&5
10253 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
10254 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10257 ac_save_LIBS="$LIBS"
10258 LIBS="-lresolv $LIBS"
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 /* Override any gcc2 internal prototype to avoid an error. */
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265 char _res_9_query();
10271 if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10273 eval "ac_cv_lib_$ac_lib_var=yes"
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10278 eval "ac_cv_lib_$ac_lib_var=no"
10281 LIBS="$ac_save_LIBS"
10284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10285 echo "$ac_t""yes" 1>&6
10286 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10288 cat >> confdefs.h <<EOF
10289 #define $ac_tr_lib 1
10292 LIBS="-lresolv $LIBS"
10295 echo "$ac_t""no" 1>&6
10298 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
10301 if test "$ac_cv_func_res_query" = yes ; then
10302 cat >> confdefs.h <<\EOF
10303 #define HAVE_RES_QUERY 1
10307 if test $ol_enable_dnssrv != no ; then
10312 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10313 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10316 for ac_func in hstrerror
10318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10319 echo "configure:10320: checking for $ac_func" >&5
10320 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10323 cat > conftest.$ac_ext <<EOF
10324 #line 10325 "configure"
10325 #include "confdefs.h"
10326 /* System header to define __stub macros and hopefully few prototypes,
10327 which can conflict with char $ac_func(); below. */
10328 #include <assert.h>
10329 /* Override any gcc2 internal prototype to avoid an error. */
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10337 /* The GNU C library defines this for functions which it implements
10338 to always fail with ENOSYS. Some functions are actually named
10339 something starting with __ and the normal name is an alias. */
10340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10348 if { (eval echo configure:10349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10350 eval "ac_cv_func_$ac_func=yes"
10352 echo "configure: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 eval "ac_cv_func_$ac_func=no"
10360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10363 cat >> confdefs.h <<EOF
10364 #define $ac_tr_func 1
10368 echo "$ac_t""no" 1>&6
10373 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10376 echo "configure:10377: checking for $ac_func" >&5
10377 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 cat > conftest.$ac_ext <<EOF
10381 #line 10382 "configure"
10382 #include "confdefs.h"
10383 /* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func(); below. */
10385 #include <assert.h>
10386 /* Override any gcc2 internal prototype to avoid an error. */
10387 /* We use char because int might match the return type of a gcc2
10388 builtin and then its argument prototype would still apply. */
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407 eval "ac_cv_func_$ac_func=yes"
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 eval "ac_cv_func_$ac_func=no"
10417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10418 echo "$ac_t""yes" 1>&6
10419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10420 cat >> confdefs.h <<EOF
10421 #define $ac_tr_func 1
10425 echo "$ac_t""no" 1>&6
10431 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10432 if test $ol_enable_ipv6 = yes ; then
10433 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10435 elif test $ol_enable_ipv6 != no ; then
10436 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10437 echo "configure:10438: checking INET6_ADDRSTRLEN" >&5
10438 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10446 # include <netinet/in.h>
10447 # ifdef INET6_ADDRSTRLEN
10448 __has_inet6_addrstrlen__;
10452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10453 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10455 ol_cv_inet6_addrstrlen=yes
10458 ol_cv_inet6_addrstrlen=no
10464 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10467 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10468 echo "configure:10469: checking struct sockaddr_storage" >&5
10469 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10477 #include <sys/types.h>
10478 #include <sys/socket.h>
10482 struct sockaddr_storage ss;
10486 if { (eval echo configure:10487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10488 ol_cv_struct_sockaddr_storage=yes
10490 echo "configure: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10493 ol_cv_struct_sockaddr_storage=no
10498 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10500 if test $ol_cv_inet6_addrstrlen = yes \
10501 -a $ol_cv_struct_sockaddr_storage = yes ; then
10503 elif test $ol_enable_ipv6 = yes \
10504 -a $ol_cv_inet6_addrstrlen = no ; then
10505 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10506 elif test $ol_enable_ipv6 = yes \
10507 -a $ol_cv_struct_sockaddr_storage = no ; then
10508 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10512 if test $ol_enable_local != no ; then
10513 for ac_hdr in sys/un.h
10515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10517 echo "configure:10518: checking for $ac_hdr" >&5
10518 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10527 { (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10529 if test -z "$ac_err"; then
10531 eval "ac_cv_header_$ac_safe=yes"
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10537 eval "ac_cv_header_$ac_safe=no"
10541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10542 echo "$ac_t""yes" 1>&6
10543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10544 cat >> confdefs.h <<EOF
10545 #define $ac_tr_hdr 1
10549 echo "$ac_t""no" 1>&6
10554 if test $ol_enable_local = auto ; then
10555 ol_enable_local=$ac_cv_header_sys_un_h
10556 elif test $ac_cv_header_sys_un_h = no ; then
10557 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10565 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10566 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10567 -o $ol_with_kerberos = k425 ; then
10569 for ac_hdr in krb5.h
10571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10573 echo "configure:10574: checking for $ac_hdr" >&5
10574 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10583 { (eval echo configure:10584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10585 if test -z "$ac_err"; then
10587 eval "ac_cv_header_$ac_safe=yes"
10590 echo "configure: failed program was:" >&5
10591 cat conftest.$ac_ext >&5
10593 eval "ac_cv_header_$ac_safe=no"
10597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10598 echo "$ac_t""yes" 1>&6
10599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10600 cat >> confdefs.h <<EOF
10601 #define $ac_tr_hdr 1
10605 echo "$ac_t""no" 1>&6
10610 if test $ac_cv_header_krb5_h = yes ; then
10611 for ac_hdr in heim_err.h
10613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10615 echo "configure:10616: checking for $ac_hdr" >&5
10616 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10619 cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10625 { (eval echo configure:10626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10627 if test -z "$ac_err"; then
10629 eval "ac_cv_header_$ac_safe=yes"
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10635 eval "ac_cv_header_$ac_safe=no"
10639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10642 cat >> confdefs.h <<EOF
10643 #define $ac_tr_hdr 1
10647 echo "$ac_t""no" 1>&6
10651 if test $ac_cv_header_heim_err_h = yes ; then
10657 if test $krb5_impl = mit; then
10658 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10659 echo "configure:10660: checking for main in -lk5crypto" >&5
10660 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10661 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10664 ac_save_LIBS="$LIBS"
10665 LIBS="-lk5crypto $LIBS"
10666 cat > conftest.$ac_ext <<EOF
10667 #line 10668 "configure"
10668 #include "confdefs.h"
10674 if { (eval echo configure:10675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10676 eval "ac_cv_lib_$ac_lib_var=yes"
10678 echo "configure: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10681 eval "ac_cv_lib_$ac_lib_var=no"
10684 LIBS="$ac_save_LIBS"
10687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10688 echo "$ac_t""yes" 1>&6
10689 krb5crypto=k5crypto
10691 echo "$ac_t""no" 1>&6
10696 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10697 echo "configure:10698: checking for main in -lkrb5" >&5
10698 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10702 ac_save_LIBS="$LIBS"
10703 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10714 eval "ac_cv_lib_$ac_lib_var=yes"
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10719 eval "ac_cv_lib_$ac_lib_var=no"
10722 LIBS="$ac_save_LIBS"
10725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10726 echo "$ac_t""yes" 1>&6
10728 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10730 echo "$ac_t""no" 1>&6
10735 elif test $krb5_impl = heimdal; then
10736 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10737 echo "configure:10738: checking for main in -ldes" >&5
10738 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10742 ac_save_LIBS="$LIBS"
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10754 eval "ac_cv_lib_$ac_lib_var=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_lib_$ac_lib_var=no"
10762 LIBS="$ac_save_LIBS"
10765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10769 echo "$ac_t""no" 1>&6
10774 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10775 echo "configure:10776: checking for main in -lkrb5" >&5
10776 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10780 ac_save_LIBS="$LIBS"
10781 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10792 eval "ac_cv_lib_$ac_lib_var=yes"
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 eval "ac_cv_lib_$ac_lib_var=no"
10800 LIBS="$ac_save_LIBS"
10803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10804 echo "$ac_t""yes" 1>&6
10806 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10808 echo "$ac_t""no" 1>&6
10813 cat >> confdefs.h <<\EOF
10814 #define HAVE_HEIMDAL_KERBEROS 1
10820 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10823 if test $have_krb5 = yes ; then
10826 cat >> confdefs.h <<\EOF
10827 #define HAVE_KRB5 1
10831 if test $ol_with_kerberos = k5only ; then
10832 ol_with_kerberos=found
10835 elif test $ol_with_kerberos != auto ; then
10836 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10842 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10843 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10845 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10849 echo "configure:10850: checking for $ac_hdr" >&5
10850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10859 { (eval echo configure:10860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10861 if test -z "$ac_err"; then
10863 eval "ac_cv_header_$ac_safe=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_header_$ac_safe=no"
10873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10874 echo "$ac_t""yes" 1>&6
10875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10876 cat >> confdefs.h <<EOF
10877 #define $ac_tr_hdr 1
10881 echo "$ac_t""no" 1>&6
10886 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10887 if test $krb5_impl = mit; then
10888 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10889 echo "configure:10890: checking for main in -lkrb4" >&5
10890 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10891 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10894 ac_save_LIBS="$LIBS"
10895 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10896 cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10906 eval "ac_cv_lib_$ac_lib_var=yes"
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10911 eval "ac_cv_lib_$ac_lib_var=no"
10914 LIBS="$ac_save_LIBS"
10917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10920 KRB4_LIBS="-lkrb4 -ldes425"
10922 echo "$ac_t""no" 1>&6
10927 elif test $krb5_impl = heimdal; then
10928 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10929 echo "configure:10930: checking for main in -lkrb4" >&5
10930 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10932 echo $ac_n "(cached) $ac_c" 1>&6
10934 ac_save_LIBS="$LIBS"
10935 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 eval "ac_cv_lib_$ac_lib_var=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_lib_$ac_lib_var=no"
10954 LIBS="$ac_save_LIBS"
10957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10962 echo "$ac_t""no" 1>&6
10969 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10972 if test $have_k425 = yes ; then
10973 ol_with_kerberos=found
10976 cat >> confdefs.h <<\EOF
10977 #define HAVE_KRB425 1
10980 cat >> confdefs.h <<\EOF
10981 #define HAVE_KRB4 1
10985 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10986 echo "configure:10987: checking for des_debug in Kerberos libraries" >&5
10987 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10992 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10993 cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10997 #include <kerberosIV/krb.h>
10998 #include <kerberosIV/des.h>
10999 extern int des_debug;
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11009 ol_cv_var_des_debug=yes
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11014 ol_cv_var_des_debug=no
11021 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11023 if test $ol_cv_var_des_debug = yes ; then
11024 cat >> confdefs.h <<\EOF
11025 #define HAVE_DES_DEBUG 1
11035 if test $ol_link_krb5 = yes ; then
11036 ol_with_kerberos=found
11039 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11040 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11042 for ac_hdr in krb.h des.h krb-archaeology.h
11044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11046 echo "configure:11047: checking for $ac_hdr" >&5
11047 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058 if test -z "$ac_err"; then
11060 eval "ac_cv_header_$ac_safe=yes"
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 eval "ac_cv_header_$ac_safe=no"
11070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11073 cat >> confdefs.h <<EOF
11074 #define $ac_tr_hdr 1
11078 echo "$ac_t""no" 1>&6
11083 if test $ac_cv_header_krb_h = yes ; then
11084 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11085 echo "configure:11086: checking for main in -lkrb" >&5
11086 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11090 ac_save_LIBS="$LIBS"
11091 LIBS="-lkrb -ldes $LIBS"
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11102 eval "ac_cv_lib_$ac_lib_var=yes"
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 eval "ac_cv_lib_$ac_lib_var=no"
11110 LIBS="$ac_save_LIBS"
11113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11114 echo "$ac_t""yes" 1>&6
11117 echo "$ac_t""no" 1>&6
11122 if test $have_k4 = yes ; then
11123 ol_with_kerberos=found
11126 cat >> confdefs.h <<\EOF
11127 #define HAVE_KRB4 1
11131 KRB4_LIBS="-lkrb -ldes"
11133 if test $ac_cv_header_krb_archaeology_h = yes ; then
11134 cat >> confdefs.h <<\EOF
11135 #define HAVE_KTH_KERBEROS 1
11143 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11146 elif test $ol_enable_kbind = yes ; then
11147 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11150 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11151 cat >> confdefs.h <<\EOF
11152 #define HAVE_KERBEROS 1
11156 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11157 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11161 if test $ol_with_tls != no ; then
11162 for ac_hdr in openssl/ssl.h ssl.h
11164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11166 echo "configure:11167: checking for $ac_hdr" >&5
11167 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11176 { (eval echo configure:11177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11178 if test -z "$ac_err"; then
11180 eval "ac_cv_header_$ac_safe=yes"
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 eval "ac_cv_header_$ac_safe=no"
11190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11193 cat >> confdefs.h <<EOF
11194 #define $ac_tr_hdr 1
11198 echo "$ac_t""no" 1>&6
11203 if test $ac_cv_header_openssl_ssl_h = yes \
11204 -o $ac_cv_header_ssl_h = yes ; then
11205 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11206 echo "configure:11207: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11207 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11208 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11211 ac_save_LIBS="$LIBS"
11212 LIBS="-lssl -lcrypto $LIBS"
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char SSLeay_add_ssl_algorithms();
11222 SSLeay_add_ssl_algorithms()
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11227 eval "ac_cv_lib_$ac_lib_var=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_lib_$ac_lib_var=no"
11235 LIBS="$ac_save_LIBS"
11238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11243 echo "$ac_t""no" 1>&6
11248 if test $have_ssleay = no ; then
11249 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11250 echo "configure:11251: checking for SSL_library_init in -lssl" >&5
11251 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 ac_save_LIBS="$LIBS"
11256 LIBS="-lssl -lcrypto $LIBS"
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263 char SSL_library_init();
11269 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11271 eval "ac_cv_lib_$ac_lib_var=yes"
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 eval "ac_cv_lib_$ac_lib_var=no"
11279 LIBS="$ac_save_LIBS"
11282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11287 echo "$ac_t""no" 1>&6
11293 if test $have_ssleay = no ; then
11294 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11295 echo "configure:11296: checking for ssl3_accept in -lssl" >&5
11296 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11297 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11300 ac_save_LIBS="$LIBS"
11301 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11308 char ssl3_accept();
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11316 eval "ac_cv_lib_$ac_lib_var=yes"
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11321 eval "ac_cv_lib_$ac_lib_var=no"
11324 LIBS="$ac_save_LIBS"
11327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11332 echo "$ac_t""no" 1>&6
11338 if test $have_ssleay = yes ; then
11342 cat >> confdefs.h <<\EOF
11343 #define HAVE_SSLEAY 1
11347 if test $need_rsaref = yes; then
11348 cat >> confdefs.h <<\EOF
11349 #define HAVE_RSAREF 1
11353 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11355 TLS_LIBS="-lssl -lcrypto"
11361 echo "configure: warning: TLS data protection not supported!" 1>&2
11365 if test $ol_link_tls = yes ; then
11366 cat >> confdefs.h <<\EOF
11372 elif test $ol_with_tls = auto ; then
11373 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11374 echo "configure: warning: TLS data protection not supported!" 1>&2
11376 elif test $ol_with_tls != no ; then
11377 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11380 if test $ol_enable_lmpasswd != no; then
11381 if test $ol_link_tls != yes ; then
11382 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11385 cat >> confdefs.h <<\EOF
11386 #define SLAPD_LMHASH 1
11393 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11394 -o $ol_with_threads = nt ; then
11397 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11398 echo "configure:11399: checking for _beginthread" >&5
11399 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char _beginthread(); below. */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error. */
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411 char _beginthread();
11416 /* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11427 if { (eval echo configure:11428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11429 eval "ac_cv_func__beginthread=yes"
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11434 eval "ac_cv_func__beginthread=no"
11439 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11440 echo "$ac_t""yes" 1>&6
11443 echo "$ac_t""no" 1>&6
11447 if test $ac_cv_func__beginthread = yes ; then
11448 cat >> confdefs.h <<\EOF
11449 #define HAVE_NT_THREADS 1
11452 ol_cv_nt_threads=yes
11456 if test "$ol_cv_nt_threads" = yes ; then
11458 ol_with_threads=found
11459 ol_with_yielding_select=yes
11461 cat >> confdefs.h <<\EOF
11462 #define HAVE_NT_SERVICE_MANAGER 1
11465 cat >> confdefs.h <<\EOF
11466 #define HAVE_NT_EVENT_LOG 1
11471 if test $ol_with_threads = nt ; then
11472 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11476 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11477 -o $ol_with_threads = posix ; then
11479 for ac_hdr in pthread.h
11481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $ac_hdr" >&5
11484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11493 { (eval echo configure:11494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11495 if test -z "$ac_err"; then
11497 eval "ac_cv_header_$ac_safe=yes"
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 eval "ac_cv_header_$ac_safe=no"
11507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11508 echo "$ac_t""yes" 1>&6
11509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11510 cat >> confdefs.h <<EOF
11511 #define $ac_tr_hdr 1
11515 echo "$ac_t""no" 1>&6
11520 if test $ac_cv_header_pthread_h = yes ; then
11521 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11522 echo "configure:11523: checking POSIX thread version" >&5
11523 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11531 # include <pthread.h>
11535 int i = PTHREAD_CREATE_JOINABLE;
11539 if { (eval echo configure:11540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 #include <pthread.h>
11547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11548 egrep "pthread_detach" >/dev/null 2>&1; then
11550 ol_cv_pthread_version=10
11553 ol_cv_pthread_version=8
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11566 # include <pthread.h>
11567 # ifdef PTHREAD_CREATE_UNDETACHED
11572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11573 egrep "draft7" >/dev/null 2>&1; then
11575 ol_cv_pthread_version=7
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 #include <pthread.h>
11584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11585 egrep "pthread_attr_init" >/dev/null 2>&1; then
11587 ol_cv_pthread_version=6
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11595 # include <pthread.h>
11596 #ifdef PTHREAD_MUTEX_INITIALIZER
11601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11602 egrep "draft5" >/dev/null 2>&1; then
11604 ol_cv_pthread_version=5
11607 ol_cv_pthread_version=4
11622 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11625 if test $ol_cv_pthread_version != 0 ; then
11626 cat >> confdefs.h <<EOF
11627 #define HAVE_PTHREADS $ol_cv_pthread_version
11631 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11634 # consider threads found
11635 ol_with_threads=found
11638 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11639 echo "configure:11640: checking for LinuxThreads pthread.h" >&5
11640 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11641 echo $ac_n "(cached) $ac_c" 1>&6
11643 cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11646 #include <pthread.h>
11648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11649 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11651 ol_cv_header_linux_threads=yes
11654 ol_cv_header_linux_threads=no
11661 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11662 if test $ol_cv_header_linux_threads = yes; then
11663 cat >> confdefs.h <<\EOF
11664 #define HAVE_LINUX_THREADS 1
11670 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11671 echo "configure:11672: checking for GNU Pth pthread.h" >&5
11672 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11678 #include <pthread.h>
11679 #ifdef _POSIX_THREAD_IS_GNU_PTH
11684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685 egrep "__gnu_pth__" >/dev/null 2>&1; then
11687 ol_cv_header_gnu_pth_pthread_h=yes
11690 ol_cv_header_gnu_pth_pthread_h=no
11697 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11700 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11701 for ac_hdr in sched.h
11703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11705 echo "configure:11706: checking for $ac_hdr" >&5
11706 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11715 { (eval echo configure:11716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11717 if test -z "$ac_err"; then
11719 eval "ac_cv_header_$ac_safe=yes"
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11725 eval "ac_cv_header_$ac_safe=no"
11729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11730 echo "$ac_t""yes" 1>&6
11731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11732 cat >> confdefs.h <<EOF
11733 #define $ac_tr_hdr 1
11737 echo "$ac_t""no" 1>&6
11744 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11745 echo "configure:11746: checking for pthread_create in default libraries" >&5
11746 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11750 if test "$cross_compiling" = yes; then
11751 cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 /* pthread test headers */
11755 #include <pthread.h>
11756 #if HAVE_PTHREADS < 7
11760 #define NULL (void*)0
11763 static void *task(p)
11766 return (void *) (p == NULL);
11771 /* pthread test function */
11772 #ifndef PTHREAD_CREATE_DETACHED
11773 #define PTHREAD_CREATE_DETACHED 1
11777 int detach = PTHREAD_CREATE_DETACHED;
11779 #if HAVE_PTHREADS > 4
11780 /* Final pthreads */
11781 pthread_attr_t attr;
11783 status = pthread_attr_init(&attr);
11784 if( status ) return status;
11786 #if HAVE_PTHREADS < 7
11787 status = pthread_attr_setdetachstate(&attr, &detach);
11788 if( status < 0 ) status = errno;
11790 status = pthread_attr_setdetachstate(&attr, detach);
11792 if( status ) return status;
11793 status = pthread_create( &t, &attr, task, NULL );
11794 #if HAVE_PTHREADS < 7
11795 if( status < 0 ) status = errno;
11797 if( status ) return status;
11799 /* Draft 4 pthreads */
11800 status = pthread_create( &t, pthread_attr_default, task, NULL );
11801 if( status ) return errno;
11803 /* give thread a chance to complete */
11804 /* it should remain joinable and hence detachable */
11807 status = pthread_detach( &t );
11808 if( status ) return errno;
11811 #ifdef HAVE_LINUX_THREADS
11812 pthread_kill_other_threads_np();
11819 if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821 ol_cv_pthread_create=yes
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 ol_cv_pthread_create=no
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 /* pthread test headers */
11834 #include <pthread.h>
11835 #if HAVE_PTHREADS < 7
11839 #define NULL (void*)0
11842 static void *task(p)
11845 return (void *) (p == NULL);
11849 int main(argc, argv)
11854 /* pthread test function */
11855 #ifndef PTHREAD_CREATE_DETACHED
11856 #define PTHREAD_CREATE_DETACHED 1
11860 int detach = PTHREAD_CREATE_DETACHED;
11862 #if HAVE_PTHREADS > 4
11863 /* Final pthreads */
11864 pthread_attr_t attr;
11866 status = pthread_attr_init(&attr);
11867 if( status ) return status;
11869 #if HAVE_PTHREADS < 7
11870 status = pthread_attr_setdetachstate(&attr, &detach);
11871 if( status < 0 ) status = errno;
11873 status = pthread_attr_setdetachstate(&attr, detach);
11875 if( status ) return status;
11876 status = pthread_create( &t, &attr, task, NULL );
11877 #if HAVE_PTHREADS < 7
11878 if( status < 0 ) status = errno;
11880 if( status ) return status;
11882 /* Draft 4 pthreads */
11883 status = pthread_create( &t, pthread_attr_default, task, NULL );
11884 if( status ) return errno;
11886 /* give thread a chance to complete */
11887 /* it should remain joinable and hence detachable */
11890 status = pthread_detach( &t );
11891 if( status ) return errno;
11894 #ifdef HAVE_LINUX_THREADS
11895 pthread_kill_other_threads_np();
11903 if { (eval echo configure:11904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11905 ol_cv_pthread_create=yes
11907 echo "configure: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11910 ol_cv_pthread_create=no
11917 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11919 if test $ol_cv_pthread_create != no ; then
11920 ol_link_threads=posix
11921 ol_link_pthreads=""
11924 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11925 if test "$ol_link_threads" = no ; then
11927 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11928 echo "configure:11929: checking for pthread link with -kthread" >&5
11929 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11935 LIBS="-kthread $LIBS"
11937 if test "$cross_compiling" = yes; then
11938 cat > conftest.$ac_ext <<EOF
11939 #line 11940 "configure"
11940 #include "confdefs.h"
11941 /* pthread test headers */
11942 #include <pthread.h>
11943 #if HAVE_PTHREADS < 7
11947 #define NULL (void*)0
11950 static void *task(p)
11953 return (void *) (p == NULL);
11958 /* pthread test function */
11959 #ifndef PTHREAD_CREATE_DETACHED
11960 #define PTHREAD_CREATE_DETACHED 1
11964 int detach = PTHREAD_CREATE_DETACHED;
11966 #if HAVE_PTHREADS > 4
11967 /* Final pthreads */
11968 pthread_attr_t attr;
11970 status = pthread_attr_init(&attr);
11971 if( status ) return status;
11973 #if HAVE_PTHREADS < 7
11974 status = pthread_attr_setdetachstate(&attr, &detach);
11975 if( status < 0 ) status = errno;
11977 status = pthread_attr_setdetachstate(&attr, detach);
11979 if( status ) return status;
11980 status = pthread_create( &t, &attr, task, NULL );
11981 #if HAVE_PTHREADS < 7
11982 if( status < 0 ) status = errno;
11984 if( status ) return status;
11986 /* Draft 4 pthreads */
11987 status = pthread_create( &t, pthread_attr_default, task, NULL );
11988 if( status ) return errno;
11990 /* give thread a chance to complete */
11991 /* it should remain joinable and hence detachable */
11994 status = pthread_detach( &t );
11995 if( status ) return errno;
11998 #ifdef HAVE_LINUX_THREADS
11999 pthread_kill_other_threads_np();
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12008 ol_cv_pthread_kthread=yes
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12013 ol_cv_pthread_kthread=no
12017 cat > conftest.$ac_ext <<EOF
12018 #line 12019 "configure"
12019 #include "confdefs.h"
12020 /* pthread test headers */
12021 #include <pthread.h>
12022 #if HAVE_PTHREADS < 7
12026 #define NULL (void*)0
12029 static void *task(p)
12032 return (void *) (p == NULL);
12036 int main(argc, argv)
12041 /* pthread test function */
12042 #ifndef PTHREAD_CREATE_DETACHED
12043 #define PTHREAD_CREATE_DETACHED 1
12047 int detach = PTHREAD_CREATE_DETACHED;
12049 #if HAVE_PTHREADS > 4
12050 /* Final pthreads */
12051 pthread_attr_t attr;
12053 status = pthread_attr_init(&attr);
12054 if( status ) return status;
12056 #if HAVE_PTHREADS < 7
12057 status = pthread_attr_setdetachstate(&attr, &detach);
12058 if( status < 0 ) status = errno;
12060 status = pthread_attr_setdetachstate(&attr, detach);
12062 if( status ) return status;
12063 status = pthread_create( &t, &attr, task, NULL );
12064 #if HAVE_PTHREADS < 7
12065 if( status < 0 ) status = errno;
12067 if( status ) return status;
12069 /* Draft 4 pthreads */
12070 status = pthread_create( &t, pthread_attr_default, task, NULL );
12071 if( status ) return errno;
12073 /* give thread a chance to complete */
12074 /* it should remain joinable and hence detachable */
12077 status = pthread_detach( &t );
12078 if( status ) return errno;
12081 #ifdef HAVE_LINUX_THREADS
12082 pthread_kill_other_threads_np();
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12092 ol_cv_pthread_kthread=yes
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12097 ol_cv_pthread_kthread=no
12108 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12110 if test $ol_cv_pthread_kthread = yes ; then
12111 ol_link_pthreads="-kthread"
12112 ol_link_threads=posix
12116 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12117 if test "$ol_link_threads" = no ; then
12119 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12120 echo "configure:12121: checking for pthread link with -pthread" >&5
12121 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12127 LIBS="-pthread $LIBS"
12129 if test "$cross_compiling" = yes; then
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* pthread test headers */
12134 #include <pthread.h>
12135 #if HAVE_PTHREADS < 7
12139 #define NULL (void*)0
12142 static void *task(p)
12145 return (void *) (p == NULL);
12150 /* pthread test function */
12151 #ifndef PTHREAD_CREATE_DETACHED
12152 #define PTHREAD_CREATE_DETACHED 1
12156 int detach = PTHREAD_CREATE_DETACHED;
12158 #if HAVE_PTHREADS > 4
12159 /* Final pthreads */
12160 pthread_attr_t attr;
12162 status = pthread_attr_init(&attr);
12163 if( status ) return status;
12165 #if HAVE_PTHREADS < 7
12166 status = pthread_attr_setdetachstate(&attr, &detach);
12167 if( status < 0 ) status = errno;
12169 status = pthread_attr_setdetachstate(&attr, detach);
12171 if( status ) return status;
12172 status = pthread_create( &t, &attr, task, NULL );
12173 #if HAVE_PTHREADS < 7
12174 if( status < 0 ) status = errno;
12176 if( status ) return status;
12178 /* Draft 4 pthreads */
12179 status = pthread_create( &t, pthread_attr_default, task, NULL );
12180 if( status ) return errno;
12182 /* give thread a chance to complete */
12183 /* it should remain joinable and hence detachable */
12186 status = pthread_detach( &t );
12187 if( status ) return errno;
12190 #ifdef HAVE_LINUX_THREADS
12191 pthread_kill_other_threads_np();
12198 if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12200 ol_cv_pthread_pthread=yes
12202 echo "configure: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12205 ol_cv_pthread_pthread=no
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212 /* pthread test headers */
12213 #include <pthread.h>
12214 #if HAVE_PTHREADS < 7
12218 #define NULL (void*)0
12221 static void *task(p)
12224 return (void *) (p == NULL);
12228 int main(argc, argv)
12233 /* pthread test function */
12234 #ifndef PTHREAD_CREATE_DETACHED
12235 #define PTHREAD_CREATE_DETACHED 1
12239 int detach = PTHREAD_CREATE_DETACHED;
12241 #if HAVE_PTHREADS > 4
12242 /* Final pthreads */
12243 pthread_attr_t attr;
12245 status = pthread_attr_init(&attr);
12246 if( status ) return status;
12248 #if HAVE_PTHREADS < 7
12249 status = pthread_attr_setdetachstate(&attr, &detach);
12250 if( status < 0 ) status = errno;
12252 status = pthread_attr_setdetachstate(&attr, detach);
12254 if( status ) return status;
12255 status = pthread_create( &t, &attr, task, NULL );
12256 #if HAVE_PTHREADS < 7
12257 if( status < 0 ) status = errno;
12259 if( status ) return status;
12261 /* Draft 4 pthreads */
12262 status = pthread_create( &t, pthread_attr_default, task, NULL );
12263 if( status ) return errno;
12265 /* give thread a chance to complete */
12266 /* it should remain joinable and hence detachable */
12269 status = pthread_detach( &t );
12270 if( status ) return errno;
12273 #ifdef HAVE_LINUX_THREADS
12274 pthread_kill_other_threads_np();
12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12284 ol_cv_pthread_pthread=yes
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12289 ol_cv_pthread_pthread=no
12300 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12302 if test $ol_cv_pthread_pthread = yes ; then
12303 ol_link_pthreads="-pthread"
12304 ol_link_threads=posix
12308 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12309 if test "$ol_link_threads" = no ; then
12311 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12312 echo "configure:12313: checking for pthread link with -pthreads" >&5
12313 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12319 LIBS="-pthreads $LIBS"
12321 if test "$cross_compiling" = yes; then
12322 cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 /* pthread test headers */
12326 #include <pthread.h>
12327 #if HAVE_PTHREADS < 7
12331 #define NULL (void*)0
12334 static void *task(p)
12337 return (void *) (p == NULL);
12342 /* pthread test function */
12343 #ifndef PTHREAD_CREATE_DETACHED
12344 #define PTHREAD_CREATE_DETACHED 1
12348 int detach = PTHREAD_CREATE_DETACHED;
12350 #if HAVE_PTHREADS > 4
12351 /* Final pthreads */
12352 pthread_attr_t attr;
12354 status = pthread_attr_init(&attr);
12355 if( status ) return status;
12357 #if HAVE_PTHREADS < 7
12358 status = pthread_attr_setdetachstate(&attr, &detach);
12359 if( status < 0 ) status = errno;
12361 status = pthread_attr_setdetachstate(&attr, detach);
12363 if( status ) return status;
12364 status = pthread_create( &t, &attr, task, NULL );
12365 #if HAVE_PTHREADS < 7
12366 if( status < 0 ) status = errno;
12368 if( status ) return status;
12370 /* Draft 4 pthreads */
12371 status = pthread_create( &t, pthread_attr_default, task, NULL );
12372 if( status ) return errno;
12374 /* give thread a chance to complete */
12375 /* it should remain joinable and hence detachable */
12378 status = pthread_detach( &t );
12379 if( status ) return errno;
12382 #ifdef HAVE_LINUX_THREADS
12383 pthread_kill_other_threads_np();
12390 if { (eval echo configure:12391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12392 ol_cv_pthread_pthreads=yes
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12397 ol_cv_pthread_pthreads=no
12401 cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404 /* pthread test headers */
12405 #include <pthread.h>
12406 #if HAVE_PTHREADS < 7
12410 #define NULL (void*)0
12413 static void *task(p)
12416 return (void *) (p == NULL);
12420 int main(argc, argv)
12425 /* pthread test function */
12426 #ifndef PTHREAD_CREATE_DETACHED
12427 #define PTHREAD_CREATE_DETACHED 1
12431 int detach = PTHREAD_CREATE_DETACHED;
12433 #if HAVE_PTHREADS > 4
12434 /* Final pthreads */
12435 pthread_attr_t attr;
12437 status = pthread_attr_init(&attr);
12438 if( status ) return status;
12440 #if HAVE_PTHREADS < 7
12441 status = pthread_attr_setdetachstate(&attr, &detach);
12442 if( status < 0 ) status = errno;
12444 status = pthread_attr_setdetachstate(&attr, detach);
12446 if( status ) return status;
12447 status = pthread_create( &t, &attr, task, NULL );
12448 #if HAVE_PTHREADS < 7
12449 if( status < 0 ) status = errno;
12451 if( status ) return status;
12453 /* Draft 4 pthreads */
12454 status = pthread_create( &t, pthread_attr_default, task, NULL );
12455 if( status ) return errno;
12457 /* give thread a chance to complete */
12458 /* it should remain joinable and hence detachable */
12461 status = pthread_detach( &t );
12462 if( status ) return errno;
12465 #ifdef HAVE_LINUX_THREADS
12466 pthread_kill_other_threads_np();
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12476 ol_cv_pthread_pthreads=yes
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 ol_cv_pthread_pthreads=no
12492 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12494 if test $ol_cv_pthread_pthreads = yes ; then
12495 ol_link_pthreads="-pthreads"
12496 ol_link_threads=posix
12500 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12501 if test "$ol_link_threads" = no ; then
12503 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12504 echo "configure:12505: checking for pthread link with -mthreads" >&5
12505 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
12511 LIBS="-mthreads $LIBS"
12513 if test "$cross_compiling" = yes; then
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517 /* pthread test headers */
12518 #include <pthread.h>
12519 #if HAVE_PTHREADS < 7
12523 #define NULL (void*)0
12526 static void *task(p)
12529 return (void *) (p == NULL);
12534 /* pthread test function */
12535 #ifndef PTHREAD_CREATE_DETACHED
12536 #define PTHREAD_CREATE_DETACHED 1
12540 int detach = PTHREAD_CREATE_DETACHED;
12542 #if HAVE_PTHREADS > 4
12543 /* Final pthreads */
12544 pthread_attr_t attr;
12546 status = pthread_attr_init(&attr);
12547 if( status ) return status;
12549 #if HAVE_PTHREADS < 7
12550 status = pthread_attr_setdetachstate(&attr, &detach);
12551 if( status < 0 ) status = errno;
12553 status = pthread_attr_setdetachstate(&attr, detach);
12555 if( status ) return status;
12556 status = pthread_create( &t, &attr, task, NULL );
12557 #if HAVE_PTHREADS < 7
12558 if( status < 0 ) status = errno;
12560 if( status ) return status;
12562 /* Draft 4 pthreads */
12563 status = pthread_create( &t, pthread_attr_default, task, NULL );
12564 if( status ) return errno;
12566 /* give thread a chance to complete */
12567 /* it should remain joinable and hence detachable */
12570 status = pthread_detach( &t );
12571 if( status ) return errno;
12574 #ifdef HAVE_LINUX_THREADS
12575 pthread_kill_other_threads_np();
12582 if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12584 ol_cv_pthread_mthreads=yes
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12589 ol_cv_pthread_mthreads=no
12593 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 /* pthread test headers */
12597 #include <pthread.h>
12598 #if HAVE_PTHREADS < 7
12602 #define NULL (void*)0
12605 static void *task(p)
12608 return (void *) (p == NULL);
12612 int main(argc, argv)
12617 /* pthread test function */
12618 #ifndef PTHREAD_CREATE_DETACHED
12619 #define PTHREAD_CREATE_DETACHED 1
12623 int detach = PTHREAD_CREATE_DETACHED;
12625 #if HAVE_PTHREADS > 4
12626 /* Final pthreads */
12627 pthread_attr_t attr;
12629 status = pthread_attr_init(&attr);
12630 if( status ) return status;
12632 #if HAVE_PTHREADS < 7
12633 status = pthread_attr_setdetachstate(&attr, &detach);
12634 if( status < 0 ) status = errno;
12636 status = pthread_attr_setdetachstate(&attr, detach);
12638 if( status ) return status;
12639 status = pthread_create( &t, &attr, task, NULL );
12640 #if HAVE_PTHREADS < 7
12641 if( status < 0 ) status = errno;
12643 if( status ) return status;
12645 /* Draft 4 pthreads */
12646 status = pthread_create( &t, pthread_attr_default, task, NULL );
12647 if( status ) return errno;
12649 /* give thread a chance to complete */
12650 /* it should remain joinable and hence detachable */
12653 status = pthread_detach( &t );
12654 if( status ) return errno;
12657 #ifdef HAVE_LINUX_THREADS
12658 pthread_kill_other_threads_np();
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12668 ol_cv_pthread_mthreads=yes
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12673 ol_cv_pthread_mthreads=no
12684 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12686 if test $ol_cv_pthread_mthreads = yes ; then
12687 ol_link_pthreads="-mthreads"
12688 ol_link_threads=posix
12692 # Pthread try link: -thread (ol_cv_pthread_thread)
12693 if test "$ol_link_threads" = no ; then
12695 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12696 echo "configure:12697: checking for pthread link with -thread" >&5
12697 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12698 echo $ac_n "(cached) $ac_c" 1>&6
12703 LIBS="-thread $LIBS"
12705 if test "$cross_compiling" = yes; then
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12709 /* pthread test headers */
12710 #include <pthread.h>
12711 #if HAVE_PTHREADS < 7
12715 #define NULL (void*)0
12718 static void *task(p)
12721 return (void *) (p == NULL);
12726 /* pthread test function */
12727 #ifndef PTHREAD_CREATE_DETACHED
12728 #define PTHREAD_CREATE_DETACHED 1
12732 int detach = PTHREAD_CREATE_DETACHED;
12734 #if HAVE_PTHREADS > 4
12735 /* Final pthreads */
12736 pthread_attr_t attr;
12738 status = pthread_attr_init(&attr);
12739 if( status ) return status;
12741 #if HAVE_PTHREADS < 7
12742 status = pthread_attr_setdetachstate(&attr, &detach);
12743 if( status < 0 ) status = errno;
12745 status = pthread_attr_setdetachstate(&attr, detach);
12747 if( status ) return status;
12748 status = pthread_create( &t, &attr, task, NULL );
12749 #if HAVE_PTHREADS < 7
12750 if( status < 0 ) status = errno;
12752 if( status ) return status;
12754 /* Draft 4 pthreads */
12755 status = pthread_create( &t, pthread_attr_default, task, NULL );
12756 if( status ) return errno;
12758 /* give thread a chance to complete */
12759 /* it should remain joinable and hence detachable */
12762 status = pthread_detach( &t );
12763 if( status ) return errno;
12766 #ifdef HAVE_LINUX_THREADS
12767 pthread_kill_other_threads_np();
12774 if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12776 ol_cv_pthread_thread=yes
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12781 ol_cv_pthread_thread=no
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12788 /* pthread test headers */
12789 #include <pthread.h>
12790 #if HAVE_PTHREADS < 7
12794 #define NULL (void*)0
12797 static void *task(p)
12800 return (void *) (p == NULL);
12804 int main(argc, argv)
12809 /* pthread test function */
12810 #ifndef PTHREAD_CREATE_DETACHED
12811 #define PTHREAD_CREATE_DETACHED 1
12815 int detach = PTHREAD_CREATE_DETACHED;
12817 #if HAVE_PTHREADS > 4
12818 /* Final pthreads */
12819 pthread_attr_t attr;
12821 status = pthread_attr_init(&attr);
12822 if( status ) return status;
12824 #if HAVE_PTHREADS < 7
12825 status = pthread_attr_setdetachstate(&attr, &detach);
12826 if( status < 0 ) status = errno;
12828 status = pthread_attr_setdetachstate(&attr, detach);
12830 if( status ) return status;
12831 status = pthread_create( &t, &attr, task, NULL );
12832 #if HAVE_PTHREADS < 7
12833 if( status < 0 ) status = errno;
12835 if( status ) return status;
12837 /* Draft 4 pthreads */
12838 status = pthread_create( &t, pthread_attr_default, task, NULL );
12839 if( status ) return errno;
12841 /* give thread a chance to complete */
12842 /* it should remain joinable and hence detachable */
12845 status = pthread_detach( &t );
12846 if( status ) return errno;
12849 #ifdef HAVE_LINUX_THREADS
12850 pthread_kill_other_threads_np();
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12860 ol_cv_pthread_thread=yes
12862 echo "configure: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12865 ol_cv_pthread_thread=no
12876 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12878 if test $ol_cv_pthread_thread = yes ; then
12879 ol_link_pthreads="-thread"
12880 ol_link_threads=posix
12885 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12886 if test "$ol_link_threads" = no ; then
12887 # try -lpthread -lmach -lexc -lc_r
12888 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12889 echo "configure:12890: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12890 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12891 echo $ac_n "(cached) $ac_c" 1>&6
12896 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12898 if test "$cross_compiling" = yes; then
12899 cat > conftest.$ac_ext <<EOF
12900 #line 12901 "configure"
12901 #include "confdefs.h"
12902 /* pthread test headers */
12903 #include <pthread.h>
12904 #if HAVE_PTHREADS < 7
12908 #define NULL (void*)0
12911 static void *task(p)
12914 return (void *) (p == NULL);
12919 /* pthread test function */
12920 #ifndef PTHREAD_CREATE_DETACHED
12921 #define PTHREAD_CREATE_DETACHED 1
12925 int detach = PTHREAD_CREATE_DETACHED;
12927 #if HAVE_PTHREADS > 4
12928 /* Final pthreads */
12929 pthread_attr_t attr;
12931 status = pthread_attr_init(&attr);
12932 if( status ) return status;
12934 #if HAVE_PTHREADS < 7
12935 status = pthread_attr_setdetachstate(&attr, &detach);
12936 if( status < 0 ) status = errno;
12938 status = pthread_attr_setdetachstate(&attr, detach);
12940 if( status ) return status;
12941 status = pthread_create( &t, &attr, task, NULL );
12942 #if HAVE_PTHREADS < 7
12943 if( status < 0 ) status = errno;
12945 if( status ) return status;
12947 /* Draft 4 pthreads */
12948 status = pthread_create( &t, pthread_attr_default, task, NULL );
12949 if( status ) return errno;
12951 /* give thread a chance to complete */
12952 /* it should remain joinable and hence detachable */
12955 status = pthread_detach( &t );
12956 if( status ) return errno;
12959 #ifdef HAVE_LINUX_THREADS
12960 pthread_kill_other_threads_np();
12967 if { (eval echo configure:12968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12969 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12971 echo "configure: failed program was:" >&5
12972 cat conftest.$ac_ext >&5
12974 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12978 cat > conftest.$ac_ext <<EOF
12979 #line 12980 "configure"
12980 #include "confdefs.h"
12981 /* pthread test headers */
12982 #include <pthread.h>
12983 #if HAVE_PTHREADS < 7
12987 #define NULL (void*)0
12990 static void *task(p)
12993 return (void *) (p == NULL);
12997 int main(argc, argv)
13002 /* pthread test function */
13003 #ifndef PTHREAD_CREATE_DETACHED
13004 #define PTHREAD_CREATE_DETACHED 1
13008 int detach = PTHREAD_CREATE_DETACHED;
13010 #if HAVE_PTHREADS > 4
13011 /* Final pthreads */
13012 pthread_attr_t attr;
13014 status = pthread_attr_init(&attr);
13015 if( status ) return status;
13017 #if HAVE_PTHREADS < 7
13018 status = pthread_attr_setdetachstate(&attr, &detach);
13019 if( status < 0 ) status = errno;
13021 status = pthread_attr_setdetachstate(&attr, detach);
13023 if( status ) return status;
13024 status = pthread_create( &t, &attr, task, NULL );
13025 #if HAVE_PTHREADS < 7
13026 if( status < 0 ) status = errno;
13028 if( status ) return status;
13030 /* Draft 4 pthreads */
13031 status = pthread_create( &t, pthread_attr_default, task, NULL );
13032 if( status ) return errno;
13034 /* give thread a chance to complete */
13035 /* it should remain joinable and hence detachable */
13038 status = pthread_detach( &t );
13039 if( status ) return errno;
13042 #ifdef HAVE_LINUX_THREADS
13043 pthread_kill_other_threads_np();
13051 if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13053 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13058 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13069 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13071 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13072 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13073 ol_link_threads=posix
13077 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13078 if test "$ol_link_threads" = no ; then
13079 # try -lpthread -lmach -lexc
13080 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13081 echo "configure:13082: checking for pthread link with -lpthread -lmach -lexc" >&5
13082 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13083 echo $ac_n "(cached) $ac_c" 1>&6
13088 LIBS="-lpthread -lmach -lexc $LIBS"
13090 if test "$cross_compiling" = yes; then
13091 cat > conftest.$ac_ext <<EOF
13092 #line 13093 "configure"
13093 #include "confdefs.h"
13094 /* pthread test headers */
13095 #include <pthread.h>
13096 #if HAVE_PTHREADS < 7
13100 #define NULL (void*)0
13103 static void *task(p)
13106 return (void *) (p == NULL);
13111 /* pthread test function */
13112 #ifndef PTHREAD_CREATE_DETACHED
13113 #define PTHREAD_CREATE_DETACHED 1
13117 int detach = PTHREAD_CREATE_DETACHED;
13119 #if HAVE_PTHREADS > 4
13120 /* Final pthreads */
13121 pthread_attr_t attr;
13123 status = pthread_attr_init(&attr);
13124 if( status ) return status;
13126 #if HAVE_PTHREADS < 7
13127 status = pthread_attr_setdetachstate(&attr, &detach);
13128 if( status < 0 ) status = errno;
13130 status = pthread_attr_setdetachstate(&attr, detach);
13132 if( status ) return status;
13133 status = pthread_create( &t, &attr, task, NULL );
13134 #if HAVE_PTHREADS < 7
13135 if( status < 0 ) status = errno;
13137 if( status ) return status;
13139 /* Draft 4 pthreads */
13140 status = pthread_create( &t, pthread_attr_default, task, NULL );
13141 if( status ) return errno;
13143 /* give thread a chance to complete */
13144 /* it should remain joinable and hence detachable */
13147 status = pthread_detach( &t );
13148 if( status ) return errno;
13151 #ifdef HAVE_LINUX_THREADS
13152 pthread_kill_other_threads_np();
13159 if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161 ol_cv_pthread_lpthread_lmach_lexc=yes
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13166 ol_cv_pthread_lpthread_lmach_lexc=no
13170 cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 /* pthread test headers */
13174 #include <pthread.h>
13175 #if HAVE_PTHREADS < 7
13179 #define NULL (void*)0
13182 static void *task(p)
13185 return (void *) (p == NULL);
13189 int main(argc, argv)
13194 /* pthread test function */
13195 #ifndef PTHREAD_CREATE_DETACHED
13196 #define PTHREAD_CREATE_DETACHED 1
13200 int detach = PTHREAD_CREATE_DETACHED;
13202 #if HAVE_PTHREADS > 4
13203 /* Final pthreads */
13204 pthread_attr_t attr;
13206 status = pthread_attr_init(&attr);
13207 if( status ) return status;
13209 #if HAVE_PTHREADS < 7
13210 status = pthread_attr_setdetachstate(&attr, &detach);
13211 if( status < 0 ) status = errno;
13213 status = pthread_attr_setdetachstate(&attr, detach);
13215 if( status ) return status;
13216 status = pthread_create( &t, &attr, task, NULL );
13217 #if HAVE_PTHREADS < 7
13218 if( status < 0 ) status = errno;
13220 if( status ) return status;
13222 /* Draft 4 pthreads */
13223 status = pthread_create( &t, pthread_attr_default, task, NULL );
13224 if( status ) return errno;
13226 /* give thread a chance to complete */
13227 /* it should remain joinable and hence detachable */
13230 status = pthread_detach( &t );
13231 if( status ) return errno;
13234 #ifdef HAVE_LINUX_THREADS
13235 pthread_kill_other_threads_np();
13243 if { (eval echo configure:13244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13245 ol_cv_pthread_lpthread_lmach_lexc=yes
13247 echo "configure: failed program was:" >&5
13248 cat conftest.$ac_ext >&5
13250 ol_cv_pthread_lpthread_lmach_lexc=no
13261 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13263 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13264 ol_link_pthreads="-lpthread -lmach -lexc"
13265 ol_link_threads=posix
13270 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13271 if test "$ol_link_threads" = no ; then
13272 # try -lpthread -Wl,-woff,85
13273 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13274 echo "configure:13275: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13275 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13276 echo $ac_n "(cached) $ac_c" 1>&6
13281 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13283 if test "$cross_compiling" = yes; then
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 /* pthread test headers */
13288 #include <pthread.h>
13289 #if HAVE_PTHREADS < 7
13293 #define NULL (void*)0
13296 static void *task(p)
13299 return (void *) (p == NULL);
13304 /* pthread test function */
13305 #ifndef PTHREAD_CREATE_DETACHED
13306 #define PTHREAD_CREATE_DETACHED 1
13310 int detach = PTHREAD_CREATE_DETACHED;
13312 #if HAVE_PTHREADS > 4
13313 /* Final pthreads */
13314 pthread_attr_t attr;
13316 status = pthread_attr_init(&attr);
13317 if( status ) return status;
13319 #if HAVE_PTHREADS < 7
13320 status = pthread_attr_setdetachstate(&attr, &detach);
13321 if( status < 0 ) status = errno;
13323 status = pthread_attr_setdetachstate(&attr, detach);
13325 if( status ) return status;
13326 status = pthread_create( &t, &attr, task, NULL );
13327 #if HAVE_PTHREADS < 7
13328 if( status < 0 ) status = errno;
13330 if( status ) return status;
13332 /* Draft 4 pthreads */
13333 status = pthread_create( &t, pthread_attr_default, task, NULL );
13334 if( status ) return errno;
13336 /* give thread a chance to complete */
13337 /* it should remain joinable and hence detachable */
13340 status = pthread_detach( &t );
13341 if( status ) return errno;
13344 #ifdef HAVE_LINUX_THREADS
13345 pthread_kill_other_threads_np();
13352 if { (eval echo configure:13353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13354 ol_cv_pthread_lib_lpthread_woff=yes
13356 echo "configure: failed program was:" >&5
13357 cat conftest.$ac_ext >&5
13359 ol_cv_pthread_lib_lpthread_woff=no
13363 cat > conftest.$ac_ext <<EOF
13364 #line 13365 "configure"
13365 #include "confdefs.h"
13366 /* pthread test headers */
13367 #include <pthread.h>
13368 #if HAVE_PTHREADS < 7
13372 #define NULL (void*)0
13375 static void *task(p)
13378 return (void *) (p == NULL);
13382 int main(argc, argv)
13387 /* pthread test function */
13388 #ifndef PTHREAD_CREATE_DETACHED
13389 #define PTHREAD_CREATE_DETACHED 1
13393 int detach = PTHREAD_CREATE_DETACHED;
13395 #if HAVE_PTHREADS > 4
13396 /* Final pthreads */
13397 pthread_attr_t attr;
13399 status = pthread_attr_init(&attr);
13400 if( status ) return status;
13402 #if HAVE_PTHREADS < 7
13403 status = pthread_attr_setdetachstate(&attr, &detach);
13404 if( status < 0 ) status = errno;
13406 status = pthread_attr_setdetachstate(&attr, detach);
13408 if( status ) return status;
13409 status = pthread_create( &t, &attr, task, NULL );
13410 #if HAVE_PTHREADS < 7
13411 if( status < 0 ) status = errno;
13413 if( status ) return status;
13415 /* Draft 4 pthreads */
13416 status = pthread_create( &t, pthread_attr_default, task, NULL );
13417 if( status ) return errno;
13419 /* give thread a chance to complete */
13420 /* it should remain joinable and hence detachable */
13423 status = pthread_detach( &t );
13424 if( status ) return errno;
13427 #ifdef HAVE_LINUX_THREADS
13428 pthread_kill_other_threads_np();
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13438 ol_cv_pthread_lib_lpthread_woff=yes
13440 echo "configure: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13443 ol_cv_pthread_lib_lpthread_woff=no
13454 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13456 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13457 ol_link_pthreads="-lpthread -Wl,-woff,85"
13458 ol_link_threads=posix
13463 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13464 if test "$ol_link_threads" = no ; then
13466 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13467 echo "configure:13468: checking for pthread link with -lpthread" >&5
13468 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13469 echo $ac_n "(cached) $ac_c" 1>&6
13474 LIBS="-lpthread $LIBS"
13476 if test "$cross_compiling" = yes; then
13477 cat > conftest.$ac_ext <<EOF
13478 #line 13479 "configure"
13479 #include "confdefs.h"
13480 /* pthread test headers */
13481 #include <pthread.h>
13482 #if HAVE_PTHREADS < 7
13486 #define NULL (void*)0
13489 static void *task(p)
13492 return (void *) (p == NULL);
13497 /* pthread test function */
13498 #ifndef PTHREAD_CREATE_DETACHED
13499 #define PTHREAD_CREATE_DETACHED 1
13503 int detach = PTHREAD_CREATE_DETACHED;
13505 #if HAVE_PTHREADS > 4
13506 /* Final pthreads */
13507 pthread_attr_t attr;
13509 status = pthread_attr_init(&attr);
13510 if( status ) return status;
13512 #if HAVE_PTHREADS < 7
13513 status = pthread_attr_setdetachstate(&attr, &detach);
13514 if( status < 0 ) status = errno;
13516 status = pthread_attr_setdetachstate(&attr, detach);
13518 if( status ) return status;
13519 status = pthread_create( &t, &attr, task, NULL );
13520 #if HAVE_PTHREADS < 7
13521 if( status < 0 ) status = errno;
13523 if( status ) return status;
13525 /* Draft 4 pthreads */
13526 status = pthread_create( &t, pthread_attr_default, task, NULL );
13527 if( status ) return errno;
13529 /* give thread a chance to complete */
13530 /* it should remain joinable and hence detachable */
13533 status = pthread_detach( &t );
13534 if( status ) return errno;
13537 #ifdef HAVE_LINUX_THREADS
13538 pthread_kill_other_threads_np();
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13547 ol_cv_pthread_lpthread=yes
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 ol_cv_pthread_lpthread=no
13556 cat > conftest.$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13559 /* pthread test headers */
13560 #include <pthread.h>
13561 #if HAVE_PTHREADS < 7
13565 #define NULL (void*)0
13568 static void *task(p)
13571 return (void *) (p == NULL);
13575 int main(argc, argv)
13580 /* pthread test function */
13581 #ifndef PTHREAD_CREATE_DETACHED
13582 #define PTHREAD_CREATE_DETACHED 1
13586 int detach = PTHREAD_CREATE_DETACHED;
13588 #if HAVE_PTHREADS > 4
13589 /* Final pthreads */
13590 pthread_attr_t attr;
13592 status = pthread_attr_init(&attr);
13593 if( status ) return status;
13595 #if HAVE_PTHREADS < 7
13596 status = pthread_attr_setdetachstate(&attr, &detach);
13597 if( status < 0 ) status = errno;
13599 status = pthread_attr_setdetachstate(&attr, detach);
13601 if( status ) return status;
13602 status = pthread_create( &t, &attr, task, NULL );
13603 #if HAVE_PTHREADS < 7
13604 if( status < 0 ) status = errno;
13606 if( status ) return status;
13608 /* Draft 4 pthreads */
13609 status = pthread_create( &t, pthread_attr_default, task, NULL );
13610 if( status ) return errno;
13612 /* give thread a chance to complete */
13613 /* it should remain joinable and hence detachable */
13616 status = pthread_detach( &t );
13617 if( status ) return errno;
13620 #ifdef HAVE_LINUX_THREADS
13621 pthread_kill_other_threads_np();
13629 if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13631 ol_cv_pthread_lpthread=yes
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13636 ol_cv_pthread_lpthread=no
13647 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13649 if test $ol_cv_pthread_lpthread = yes ; then
13650 ol_link_pthreads="-lpthread"
13651 ol_link_threads=posix
13655 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13656 if test "$ol_link_threads" = no ; then
13658 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13659 echo "configure:13660: checking for pthread link with -lc_r" >&5
13660 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13661 echo $ac_n "(cached) $ac_c" 1>&6
13668 if test "$cross_compiling" = yes; then
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13672 /* pthread test headers */
13673 #include <pthread.h>
13674 #if HAVE_PTHREADS < 7
13678 #define NULL (void*)0
13681 static void *task(p)
13684 return (void *) (p == NULL);
13689 /* pthread test function */
13690 #ifndef PTHREAD_CREATE_DETACHED
13691 #define PTHREAD_CREATE_DETACHED 1
13695 int detach = PTHREAD_CREATE_DETACHED;
13697 #if HAVE_PTHREADS > 4
13698 /* Final pthreads */
13699 pthread_attr_t attr;
13701 status = pthread_attr_init(&attr);
13702 if( status ) return status;
13704 #if HAVE_PTHREADS < 7
13705 status = pthread_attr_setdetachstate(&attr, &detach);
13706 if( status < 0 ) status = errno;
13708 status = pthread_attr_setdetachstate(&attr, detach);
13710 if( status ) return status;
13711 status = pthread_create( &t, &attr, task, NULL );
13712 #if HAVE_PTHREADS < 7
13713 if( status < 0 ) status = errno;
13715 if( status ) return status;
13717 /* Draft 4 pthreads */
13718 status = pthread_create( &t, pthread_attr_default, task, NULL );
13719 if( status ) return errno;
13721 /* give thread a chance to complete */
13722 /* it should remain joinable and hence detachable */
13725 status = pthread_detach( &t );
13726 if( status ) return errno;
13729 #ifdef HAVE_LINUX_THREADS
13730 pthread_kill_other_threads_np();
13737 if { (eval echo configure:13738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13739 ol_cv_pthread_lc_r=yes
13741 echo "configure: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
13744 ol_cv_pthread_lc_r=no
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 /* pthread test headers */
13752 #include <pthread.h>
13753 #if HAVE_PTHREADS < 7
13757 #define NULL (void*)0
13760 static void *task(p)
13763 return (void *) (p == NULL);
13767 int main(argc, argv)
13772 /* pthread test function */
13773 #ifndef PTHREAD_CREATE_DETACHED
13774 #define PTHREAD_CREATE_DETACHED 1
13778 int detach = PTHREAD_CREATE_DETACHED;
13780 #if HAVE_PTHREADS > 4
13781 /* Final pthreads */
13782 pthread_attr_t attr;
13784 status = pthread_attr_init(&attr);
13785 if( status ) return status;
13787 #if HAVE_PTHREADS < 7
13788 status = pthread_attr_setdetachstate(&attr, &detach);
13789 if( status < 0 ) status = errno;
13791 status = pthread_attr_setdetachstate(&attr, detach);
13793 if( status ) return status;
13794 status = pthread_create( &t, &attr, task, NULL );
13795 #if HAVE_PTHREADS < 7
13796 if( status < 0 ) status = errno;
13798 if( status ) return status;
13800 /* Draft 4 pthreads */
13801 status = pthread_create( &t, pthread_attr_default, task, NULL );
13802 if( status ) return errno;
13804 /* give thread a chance to complete */
13805 /* it should remain joinable and hence detachable */
13808 status = pthread_detach( &t );
13809 if( status ) return errno;
13812 #ifdef HAVE_LINUX_THREADS
13813 pthread_kill_other_threads_np();
13821 if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13823 ol_cv_pthread_lc_r=yes
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13828 ol_cv_pthread_lc_r=no
13839 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13841 if test $ol_cv_pthread_lc_r = yes ; then
13842 ol_link_pthreads="-lc_r"
13843 ol_link_threads=posix
13848 # Pthread try link: -threads (ol_cv_pthread_threads)
13849 if test "$ol_link_threads" = no ; then
13851 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13852 echo "configure:13853: checking for pthread link with -threads" >&5
13853 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13859 LIBS="-threads $LIBS"
13861 if test "$cross_compiling" = yes; then
13862 cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 /* pthread test headers */
13866 #include <pthread.h>
13867 #if HAVE_PTHREADS < 7
13871 #define NULL (void*)0
13874 static void *task(p)
13877 return (void *) (p == NULL);
13882 /* pthread test function */
13883 #ifndef PTHREAD_CREATE_DETACHED
13884 #define PTHREAD_CREATE_DETACHED 1
13888 int detach = PTHREAD_CREATE_DETACHED;
13890 #if HAVE_PTHREADS > 4
13891 /* Final pthreads */
13892 pthread_attr_t attr;
13894 status = pthread_attr_init(&attr);
13895 if( status ) return status;
13897 #if HAVE_PTHREADS < 7
13898 status = pthread_attr_setdetachstate(&attr, &detach);
13899 if( status < 0 ) status = errno;
13901 status = pthread_attr_setdetachstate(&attr, detach);
13903 if( status ) return status;
13904 status = pthread_create( &t, &attr, task, NULL );
13905 #if HAVE_PTHREADS < 7
13906 if( status < 0 ) status = errno;
13908 if( status ) return status;
13910 /* Draft 4 pthreads */
13911 status = pthread_create( &t, pthread_attr_default, task, NULL );
13912 if( status ) return errno;
13914 /* give thread a chance to complete */
13915 /* it should remain joinable and hence detachable */
13918 status = pthread_detach( &t );
13919 if( status ) return errno;
13922 #ifdef HAVE_LINUX_THREADS
13923 pthread_kill_other_threads_np();
13930 if { (eval echo configure:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13932 ol_cv_pthread_threads=yes
13934 echo "configure: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13937 ol_cv_pthread_threads=no
13941 cat > conftest.$ac_ext <<EOF
13942 #line 13943 "configure"
13943 #include "confdefs.h"
13944 /* pthread test headers */
13945 #include <pthread.h>
13946 #if HAVE_PTHREADS < 7
13950 #define NULL (void*)0
13953 static void *task(p)
13956 return (void *) (p == NULL);
13960 int main(argc, argv)
13965 /* pthread test function */
13966 #ifndef PTHREAD_CREATE_DETACHED
13967 #define PTHREAD_CREATE_DETACHED 1
13971 int detach = PTHREAD_CREATE_DETACHED;
13973 #if HAVE_PTHREADS > 4
13974 /* Final pthreads */
13975 pthread_attr_t attr;
13977 status = pthread_attr_init(&attr);
13978 if( status ) return status;
13980 #if HAVE_PTHREADS < 7
13981 status = pthread_attr_setdetachstate(&attr, &detach);
13982 if( status < 0 ) status = errno;
13984 status = pthread_attr_setdetachstate(&attr, detach);
13986 if( status ) return status;
13987 status = pthread_create( &t, &attr, task, NULL );
13988 #if HAVE_PTHREADS < 7
13989 if( status < 0 ) status = errno;
13991 if( status ) return status;
13993 /* Draft 4 pthreads */
13994 status = pthread_create( &t, pthread_attr_default, task, NULL );
13995 if( status ) return errno;
13997 /* give thread a chance to complete */
13998 /* it should remain joinable and hence detachable */
14001 status = pthread_detach( &t );
14002 if( status ) return errno;
14005 #ifdef HAVE_LINUX_THREADS
14006 pthread_kill_other_threads_np();
14014 if { (eval echo configure:14015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14016 ol_cv_pthread_threads=yes
14018 echo "configure: failed program was:" >&5
14019 cat conftest.$ac_ext >&5
14021 ol_cv_pthread_threads=no
14032 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14034 if test $ol_cv_pthread_threads = yes ; then
14035 ol_link_pthreads="-threads"
14036 ol_link_threads=posix
14041 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14042 if test "$ol_link_threads" = no ; then
14043 # try -lpthreads -lmach -lexc -lc_r
14044 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14045 echo "configure:14046: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14046 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14047 echo $ac_n "(cached) $ac_c" 1>&6
14052 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14054 if test "$cross_compiling" = yes; then
14055 cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058 /* pthread test headers */
14059 #include <pthread.h>
14060 #if HAVE_PTHREADS < 7
14064 #define NULL (void*)0
14067 static void *task(p)
14070 return (void *) (p == NULL);
14075 /* pthread test function */
14076 #ifndef PTHREAD_CREATE_DETACHED
14077 #define PTHREAD_CREATE_DETACHED 1
14081 int detach = PTHREAD_CREATE_DETACHED;
14083 #if HAVE_PTHREADS > 4
14084 /* Final pthreads */
14085 pthread_attr_t attr;
14087 status = pthread_attr_init(&attr);
14088 if( status ) return status;
14090 #if HAVE_PTHREADS < 7
14091 status = pthread_attr_setdetachstate(&attr, &detach);
14092 if( status < 0 ) status = errno;
14094 status = pthread_attr_setdetachstate(&attr, detach);
14096 if( status ) return status;
14097 status = pthread_create( &t, &attr, task, NULL );
14098 #if HAVE_PTHREADS < 7
14099 if( status < 0 ) status = errno;
14101 if( status ) return status;
14103 /* Draft 4 pthreads */
14104 status = pthread_create( &t, pthread_attr_default, task, NULL );
14105 if( status ) return errno;
14107 /* give thread a chance to complete */
14108 /* it should remain joinable and hence detachable */
14111 status = pthread_detach( &t );
14112 if( status ) return errno;
14115 #ifdef HAVE_LINUX_THREADS
14116 pthread_kill_other_threads_np();
14123 if { (eval echo configure:14124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14125 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14127 echo "configure: failed program was:" >&5
14128 cat conftest.$ac_ext >&5
14130 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14134 cat > conftest.$ac_ext <<EOF
14135 #line 14136 "configure"
14136 #include "confdefs.h"
14137 /* pthread test headers */
14138 #include <pthread.h>
14139 #if HAVE_PTHREADS < 7
14143 #define NULL (void*)0
14146 static void *task(p)
14149 return (void *) (p == NULL);
14153 int main(argc, argv)
14158 /* pthread test function */
14159 #ifndef PTHREAD_CREATE_DETACHED
14160 #define PTHREAD_CREATE_DETACHED 1
14164 int detach = PTHREAD_CREATE_DETACHED;
14166 #if HAVE_PTHREADS > 4
14167 /* Final pthreads */
14168 pthread_attr_t attr;
14170 status = pthread_attr_init(&attr);
14171 if( status ) return status;
14173 #if HAVE_PTHREADS < 7
14174 status = pthread_attr_setdetachstate(&attr, &detach);
14175 if( status < 0 ) status = errno;
14177 status = pthread_attr_setdetachstate(&attr, detach);
14179 if( status ) return status;
14180 status = pthread_create( &t, &attr, task, NULL );
14181 #if HAVE_PTHREADS < 7
14182 if( status < 0 ) status = errno;
14184 if( status ) return status;
14186 /* Draft 4 pthreads */
14187 status = pthread_create( &t, pthread_attr_default, task, NULL );
14188 if( status ) return errno;
14190 /* give thread a chance to complete */
14191 /* it should remain joinable and hence detachable */
14194 status = pthread_detach( &t );
14195 if( status ) return errno;
14198 #ifdef HAVE_LINUX_THREADS
14199 pthread_kill_other_threads_np();
14207 if { (eval echo configure:14208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14209 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14211 echo "configure: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14214 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14225 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14227 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14228 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14229 ol_link_threads=posix
14233 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14234 if test "$ol_link_threads" = no ; then
14235 # try -lpthreads -lmach -lexc
14236 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14237 echo "configure:14238: checking for pthread link with -lpthreads -lmach -lexc" >&5
14238 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14244 LIBS="-lpthreads -lmach -lexc $LIBS"
14246 if test "$cross_compiling" = yes; then
14247 cat > conftest.$ac_ext <<EOF
14248 #line 14249 "configure"
14249 #include "confdefs.h"
14250 /* pthread test headers */
14251 #include <pthread.h>
14252 #if HAVE_PTHREADS < 7
14256 #define NULL (void*)0
14259 static void *task(p)
14262 return (void *) (p == NULL);
14267 /* pthread test function */
14268 #ifndef PTHREAD_CREATE_DETACHED
14269 #define PTHREAD_CREATE_DETACHED 1
14273 int detach = PTHREAD_CREATE_DETACHED;
14275 #if HAVE_PTHREADS > 4
14276 /* Final pthreads */
14277 pthread_attr_t attr;
14279 status = pthread_attr_init(&attr);
14280 if( status ) return status;
14282 #if HAVE_PTHREADS < 7
14283 status = pthread_attr_setdetachstate(&attr, &detach);
14284 if( status < 0 ) status = errno;
14286 status = pthread_attr_setdetachstate(&attr, detach);
14288 if( status ) return status;
14289 status = pthread_create( &t, &attr, task, NULL );
14290 #if HAVE_PTHREADS < 7
14291 if( status < 0 ) status = errno;
14293 if( status ) return status;
14295 /* Draft 4 pthreads */
14296 status = pthread_create( &t, pthread_attr_default, task, NULL );
14297 if( status ) return errno;
14299 /* give thread a chance to complete */
14300 /* it should remain joinable and hence detachable */
14303 status = pthread_detach( &t );
14304 if( status ) return errno;
14307 #ifdef HAVE_LINUX_THREADS
14308 pthread_kill_other_threads_np();
14315 if { (eval echo configure:14316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14317 ol_cv_pthread_lpthreads_lmach_lexc=yes
14319 echo "configure: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14322 ol_cv_pthread_lpthreads_lmach_lexc=no
14326 cat > conftest.$ac_ext <<EOF
14327 #line 14328 "configure"
14328 #include "confdefs.h"
14329 /* pthread test headers */
14330 #include <pthread.h>
14331 #if HAVE_PTHREADS < 7
14335 #define NULL (void*)0
14338 static void *task(p)
14341 return (void *) (p == NULL);
14345 int main(argc, argv)
14350 /* pthread test function */
14351 #ifndef PTHREAD_CREATE_DETACHED
14352 #define PTHREAD_CREATE_DETACHED 1
14356 int detach = PTHREAD_CREATE_DETACHED;
14358 #if HAVE_PTHREADS > 4
14359 /* Final pthreads */
14360 pthread_attr_t attr;
14362 status = pthread_attr_init(&attr);
14363 if( status ) return status;
14365 #if HAVE_PTHREADS < 7
14366 status = pthread_attr_setdetachstate(&attr, &detach);
14367 if( status < 0 ) status = errno;
14369 status = pthread_attr_setdetachstate(&attr, detach);
14371 if( status ) return status;
14372 status = pthread_create( &t, &attr, task, NULL );
14373 #if HAVE_PTHREADS < 7
14374 if( status < 0 ) status = errno;
14376 if( status ) return status;
14378 /* Draft 4 pthreads */
14379 status = pthread_create( &t, pthread_attr_default, task, NULL );
14380 if( status ) return errno;
14382 /* give thread a chance to complete */
14383 /* it should remain joinable and hence detachable */
14386 status = pthread_detach( &t );
14387 if( status ) return errno;
14390 #ifdef HAVE_LINUX_THREADS
14391 pthread_kill_other_threads_np();
14399 if { (eval echo configure:14400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14401 ol_cv_pthread_lpthreads_lmach_lexc=yes
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14406 ol_cv_pthread_lpthreads_lmach_lexc=no
14417 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14419 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14420 ol_link_pthreads="-lpthreads -lmach -lexc"
14421 ol_link_threads=posix
14425 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14426 if test "$ol_link_threads" = no ; then
14427 # try -lpthreads -lexc
14428 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14429 echo "configure:14430: checking for pthread link with -lpthreads -lexc" >&5
14430 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14431 echo $ac_n "(cached) $ac_c" 1>&6
14436 LIBS="-lpthreads -lexc $LIBS"
14438 if test "$cross_compiling" = yes; then
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442 /* pthread test headers */
14443 #include <pthread.h>
14444 #if HAVE_PTHREADS < 7
14448 #define NULL (void*)0
14451 static void *task(p)
14454 return (void *) (p == NULL);
14459 /* pthread test function */
14460 #ifndef PTHREAD_CREATE_DETACHED
14461 #define PTHREAD_CREATE_DETACHED 1
14465 int detach = PTHREAD_CREATE_DETACHED;
14467 #if HAVE_PTHREADS > 4
14468 /* Final pthreads */
14469 pthread_attr_t attr;
14471 status = pthread_attr_init(&attr);
14472 if( status ) return status;
14474 #if HAVE_PTHREADS < 7
14475 status = pthread_attr_setdetachstate(&attr, &detach);
14476 if( status < 0 ) status = errno;
14478 status = pthread_attr_setdetachstate(&attr, detach);
14480 if( status ) return status;
14481 status = pthread_create( &t, &attr, task, NULL );
14482 #if HAVE_PTHREADS < 7
14483 if( status < 0 ) status = errno;
14485 if( status ) return status;
14487 /* Draft 4 pthreads */
14488 status = pthread_create( &t, pthread_attr_default, task, NULL );
14489 if( status ) return errno;
14491 /* give thread a chance to complete */
14492 /* it should remain joinable and hence detachable */
14495 status = pthread_detach( &t );
14496 if( status ) return errno;
14499 #ifdef HAVE_LINUX_THREADS
14500 pthread_kill_other_threads_np();
14507 if { (eval echo configure:14508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14509 ol_cv_pthread_lpthreads_lexc=yes
14511 echo "configure: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14514 ol_cv_pthread_lpthreads_lexc=no
14518 cat > conftest.$ac_ext <<EOF
14519 #line 14520 "configure"
14520 #include "confdefs.h"
14521 /* pthread test headers */
14522 #include <pthread.h>
14523 #if HAVE_PTHREADS < 7
14527 #define NULL (void*)0
14530 static void *task(p)
14533 return (void *) (p == NULL);
14537 int main(argc, argv)
14542 /* pthread test function */
14543 #ifndef PTHREAD_CREATE_DETACHED
14544 #define PTHREAD_CREATE_DETACHED 1
14548 int detach = PTHREAD_CREATE_DETACHED;
14550 #if HAVE_PTHREADS > 4
14551 /* Final pthreads */
14552 pthread_attr_t attr;
14554 status = pthread_attr_init(&attr);
14555 if( status ) return status;
14557 #if HAVE_PTHREADS < 7
14558 status = pthread_attr_setdetachstate(&attr, &detach);
14559 if( status < 0 ) status = errno;
14561 status = pthread_attr_setdetachstate(&attr, detach);
14563 if( status ) return status;
14564 status = pthread_create( &t, &attr, task, NULL );
14565 #if HAVE_PTHREADS < 7
14566 if( status < 0 ) status = errno;
14568 if( status ) return status;
14570 /* Draft 4 pthreads */
14571 status = pthread_create( &t, pthread_attr_default, task, NULL );
14572 if( status ) return errno;
14574 /* give thread a chance to complete */
14575 /* it should remain joinable and hence detachable */
14578 status = pthread_detach( &t );
14579 if( status ) return errno;
14582 #ifdef HAVE_LINUX_THREADS
14583 pthread_kill_other_threads_np();
14591 if { (eval echo configure:14592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14593 ol_cv_pthread_lpthreads_lexc=yes
14595 echo "configure: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14598 ol_cv_pthread_lpthreads_lexc=no
14609 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14611 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14612 ol_link_pthreads="-lpthreads -lexc"
14613 ol_link_threads=posix
14618 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14619 if test "$ol_link_threads" = no ; then
14621 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14622 echo "configure:14623: checking for pthread link with -lpthreads" >&5
14623 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14624 echo $ac_n "(cached) $ac_c" 1>&6
14629 LIBS="-lpthreads $LIBS"
14631 if test "$cross_compiling" = yes; then
14632 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 /* pthread test headers */
14636 #include <pthread.h>
14637 #if HAVE_PTHREADS < 7
14641 #define NULL (void*)0
14644 static void *task(p)
14647 return (void *) (p == NULL);
14652 /* pthread test function */
14653 #ifndef PTHREAD_CREATE_DETACHED
14654 #define PTHREAD_CREATE_DETACHED 1
14658 int detach = PTHREAD_CREATE_DETACHED;
14660 #if HAVE_PTHREADS > 4
14661 /* Final pthreads */
14662 pthread_attr_t attr;
14664 status = pthread_attr_init(&attr);
14665 if( status ) return status;
14667 #if HAVE_PTHREADS < 7
14668 status = pthread_attr_setdetachstate(&attr, &detach);
14669 if( status < 0 ) status = errno;
14671 status = pthread_attr_setdetachstate(&attr, detach);
14673 if( status ) return status;
14674 status = pthread_create( &t, &attr, task, NULL );
14675 #if HAVE_PTHREADS < 7
14676 if( status < 0 ) status = errno;
14678 if( status ) return status;
14680 /* Draft 4 pthreads */
14681 status = pthread_create( &t, pthread_attr_default, task, NULL );
14682 if( status ) return errno;
14684 /* give thread a chance to complete */
14685 /* it should remain joinable and hence detachable */
14688 status = pthread_detach( &t );
14689 if( status ) return errno;
14692 #ifdef HAVE_LINUX_THREADS
14693 pthread_kill_other_threads_np();
14700 if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 ol_cv_pthread_lib_lpthreads=yes
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14707 ol_cv_pthread_lib_lpthreads=no
14711 cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 /* pthread test headers */
14715 #include <pthread.h>
14716 #if HAVE_PTHREADS < 7
14720 #define NULL (void*)0
14723 static void *task(p)
14726 return (void *) (p == NULL);
14730 int main(argc, argv)
14735 /* pthread test function */
14736 #ifndef PTHREAD_CREATE_DETACHED
14737 #define PTHREAD_CREATE_DETACHED 1
14741 int detach = PTHREAD_CREATE_DETACHED;
14743 #if HAVE_PTHREADS > 4
14744 /* Final pthreads */
14745 pthread_attr_t attr;
14747 status = pthread_attr_init(&attr);
14748 if( status ) return status;
14750 #if HAVE_PTHREADS < 7
14751 status = pthread_attr_setdetachstate(&attr, &detach);
14752 if( status < 0 ) status = errno;
14754 status = pthread_attr_setdetachstate(&attr, detach);
14756 if( status ) return status;
14757 status = pthread_create( &t, &attr, task, NULL );
14758 #if HAVE_PTHREADS < 7
14759 if( status < 0 ) status = errno;
14761 if( status ) return status;
14763 /* Draft 4 pthreads */
14764 status = pthread_create( &t, pthread_attr_default, task, NULL );
14765 if( status ) return errno;
14767 /* give thread a chance to complete */
14768 /* it should remain joinable and hence detachable */
14771 status = pthread_detach( &t );
14772 if( status ) return errno;
14775 #ifdef HAVE_LINUX_THREADS
14776 pthread_kill_other_threads_np();
14784 if { (eval echo configure:14785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14786 ol_cv_pthread_lib_lpthreads=yes
14788 echo "configure: failed program was:" >&5
14789 cat conftest.$ac_ext >&5
14791 ol_cv_pthread_lib_lpthreads=no
14802 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14804 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14805 ol_link_pthreads="-lpthreads"
14806 ol_link_threads=posix
14811 if test $ol_link_threads != no ; then
14812 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14814 save_CPPFLAGS="$CPPFLAGS"
14816 LIBS="$LTHREAD_LIBS $LIBS"
14818 for ac_func in sched_yield pthread_yield thr_yield
14820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14821 echo "configure:14822: checking for $ac_func" >&5
14822 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14823 echo $ac_n "(cached) $ac_c" 1>&6
14825 cat > conftest.$ac_ext <<EOF
14826 #line 14827 "configure"
14827 #include "confdefs.h"
14828 /* System header to define __stub macros and hopefully few prototypes,
14829 which can conflict with char $ac_func(); below. */
14830 #include <assert.h>
14831 /* Override any gcc2 internal prototype to avoid an error. */
14832 /* We use char because int might match the return type of a gcc2
14833 builtin and then its argument prototype would still apply. */
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14850 if { (eval echo configure:14851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14852 eval "ac_cv_func_$ac_func=yes"
14854 echo "configure: failed program was:" >&5
14855 cat conftest.$ac_ext >&5
14857 eval "ac_cv_func_$ac_func=no"
14862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14863 echo "$ac_t""yes" 1>&6
14864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14865 cat >> confdefs.h <<EOF
14866 #define $ac_tr_func 1
14870 echo "$ac_t""no" 1>&6
14875 if test $ac_cv_func_sched_yield = no -a \
14876 $ac_cv_func_pthread_yield = no -a \
14877 $ac_cv_func_thr_yield = no ; then
14878 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14879 echo "configure:14880: checking for sched_yield in -lrt" >&5
14880 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14881 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14882 echo $ac_n "(cached) $ac_c" 1>&6
14884 ac_save_LIBS="$LIBS"
14886 cat > conftest.$ac_ext <<EOF
14887 #line 14888 "configure"
14888 #include "confdefs.h"
14889 /* Override any gcc2 internal prototype to avoid an error. */
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892 char sched_yield();
14898 if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14900 eval "ac_cv_lib_$ac_lib_var=yes"
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14905 eval "ac_cv_lib_$ac_lib_var=no"
14908 LIBS="$ac_save_LIBS"
14911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14912 echo "$ac_t""yes" 1>&6
14913 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14914 cat >> confdefs.h <<\EOF
14915 #define HAVE_SCHED_YIELD 1
14918 ac_cv_func_sched_yield=yes
14920 echo "$ac_t""no" 1>&6
14921 ac_cv_func_sched_yield=no
14925 if test $ac_cv_func_sched_yield = no -a \
14926 $ac_cv_func_pthread_yield = no -a \
14927 "$ac_cv_func_thr_yield" = no ; then
14928 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14931 for ac_func in pthread_kill pthread_rwlock_destroy
14933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14934 echo "configure:14935: checking for $ac_func" >&5
14935 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14936 echo $ac_n "(cached) $ac_c" 1>&6
14938 cat > conftest.$ac_ext <<EOF
14939 #line 14940 "configure"
14940 #include "confdefs.h"
14941 /* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func(); below. */
14943 #include <assert.h>
14944 /* Override any gcc2 internal prototype to avoid an error. */
14945 /* We use char because int might match the return type of a gcc2
14946 builtin and then its argument prototype would still apply. */
14952 /* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14963 if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14965 eval "ac_cv_func_$ac_func=yes"
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14970 eval "ac_cv_func_$ac_func=no"
14975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14978 cat >> confdefs.h <<EOF
14979 #define $ac_tr_func 1
14983 echo "$ac_t""no" 1>&6
14988 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14989 echo "configure:14990: checking for pthread_detach with <pthread.h>" >&5
14990 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14991 echo $ac_n "(cached) $ac_c" 1>&6
14994 cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14998 #include <pthread.h>
15000 #define NULL (void*)0
15004 pthread_detach(NULL);
15007 if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15009 ol_cv_func_pthread_detach=yes
15011 echo "configure: failed program was:" >&5
15012 cat conftest.$ac_ext >&5
15014 ol_cv_func_pthread_detach=no
15020 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15022 if test $ol_cv_func_pthread_detach = no ; then
15023 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15026 cat >> confdefs.h <<\EOF
15027 #define HAVE_PTHREAD_DETACH 1
15032 pthread_setconcurrency \
15033 pthread_getconcurrency \
15034 thr_setconcurrency \
15035 thr_getconcurrency \
15038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15039 echo "configure:15040: checking for $ac_func" >&5
15040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15041 echo $ac_n "(cached) $ac_c" 1>&6
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 /* System header to define __stub macros and hopefully few prototypes,
15047 which can conflict with char $ac_func(); below. */
15048 #include <assert.h>
15049 /* Override any gcc2 internal prototype to avoid an error. */
15050 /* We use char because int might match the return type of a gcc2
15051 builtin and then its argument prototype would still apply. */
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070 eval "ac_cv_func_$ac_func=yes"
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 eval "ac_cv_func_$ac_func=no"
15080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15083 cat >> confdefs.h <<EOF
15084 #define $ac_tr_func 1
15088 echo "$ac_t""no" 1>&6
15094 for ac_func in pthread_kill_other_threads_np
15096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15097 echo "configure:15098: checking for $ac_func" >&5
15098 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15101 cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 /* System header to define __stub macros and hopefully few prototypes,
15105 which can conflict with char $ac_func(); below. */
15106 #include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error. */
15108 /* We use char because int might match the return type of a gcc2
15109 builtin and then its argument prototype would still apply. */
15115 /* The GNU C library defines this for functions which it implements
15116 to always fail with ENOSYS. Some functions are actually named
15117 something starting with __ and the normal name is an alias. */
15118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15126 if { (eval echo configure:15127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15128 eval "ac_cv_func_$ac_func=yes"
15130 echo "configure: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15133 eval "ac_cv_func_$ac_func=no"
15138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15139 echo "$ac_t""yes" 1>&6
15140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15141 cat >> confdefs.h <<EOF
15142 #define $ac_tr_func 1
15146 echo "$ac_t""no" 1>&6
15150 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15151 echo "configure:15152: checking for LinuxThreads implementation" >&5
15152 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15153 echo $ac_n "(cached) $ac_c" 1>&6
15155 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15158 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15163 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15164 echo "configure:15165: checking for LinuxThreads consistency" >&5
15165 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15166 echo $ac_n "(cached) $ac_c" 1>&6
15169 if test $ol_cv_header_linux_threads = yes -a \
15170 $ol_cv_sys_linux_threads = yes; then
15171 ol_cv_linux_threads=yes
15172 elif test $ol_cv_header_linux_threads = no -a \
15173 $ol_cv_sys_linux_threads = no; then
15174 ol_cv_linux_threads=no
15176 ol_cv_linux_threads=error
15181 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15184 if test $ol_cv_linux_threads = error; then
15185 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15188 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15189 echo "configure:15190: checking if pthread_create() works" >&5
15190 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15191 echo $ac_n "(cached) $ac_c" 1>&6
15194 if test "$cross_compiling" = yes; then
15195 ol_cv_pthread_create_works=yes
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200 /* pthread test headers */
15201 #include <pthread.h>
15202 #if HAVE_PTHREADS < 7
15206 #define NULL (void*)0
15209 static void *task(p)
15212 return (void *) (p == NULL);
15216 int main(argc, argv)
15221 /* pthread test function */
15222 #ifndef PTHREAD_CREATE_DETACHED
15223 #define PTHREAD_CREATE_DETACHED 1
15227 int detach = PTHREAD_CREATE_DETACHED;
15229 #if HAVE_PTHREADS > 4
15230 /* Final pthreads */
15231 pthread_attr_t attr;
15233 status = pthread_attr_init(&attr);
15234 if( status ) return status;
15236 #if HAVE_PTHREADS < 7
15237 status = pthread_attr_setdetachstate(&attr, &detach);
15238 if( status < 0 ) status = errno;
15240 status = pthread_attr_setdetachstate(&attr, detach);
15242 if( status ) return status;
15243 status = pthread_create( &t, &attr, task, NULL );
15244 #if HAVE_PTHREADS < 7
15245 if( status < 0 ) status = errno;
15247 if( status ) return status;
15249 /* Draft 4 pthreads */
15250 status = pthread_create( &t, pthread_attr_default, task, NULL );
15251 if( status ) return errno;
15253 /* give thread a chance to complete */
15254 /* it should remain joinable and hence detachable */
15257 status = pthread_detach( &t );
15258 if( status ) return errno;
15261 #ifdef HAVE_LINUX_THREADS
15262 pthread_kill_other_threads_np();
15270 if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15272 ol_cv_pthread_create_works=yes
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15277 ol_cv_pthread_create_works=no
15284 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15286 if test $ol_cv_pthread_create_works = no ; then
15287 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15290 if test $ol_with_yielding_select = auto ; then
15291 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15292 echo "configure:15293: checking if select yields when using pthreads" >&5
15293 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15294 echo $ac_n "(cached) $ac_c" 1>&6
15297 if test "$cross_compiling" = yes; then
15298 ol_cv_pthread_select_yields=cross
15300 cat > conftest.$ac_ext <<EOF
15301 #line 15302 "configure"
15302 #include "confdefs.h"
15304 #include <sys/types.h>
15305 #include <sys/time.h>
15306 #include <unistd.h>
15307 #include <pthread.h>
15309 #define NULL (void*) 0
15312 static int fildes[2];
15314 static void *task(p)
15326 FD_SET(fildes[0], &rfds);
15328 /* we're not interested in any fds */
15329 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15336 exit(0); /* if we exit here, the select blocked the whole process */
15339 int main(argc, argv)
15345 /* create a pipe to select */
15346 if(pipe(&fildes[0])) {
15351 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15352 (void) pthread_setconcurrency(2);
15354 #ifdef HAVE_THR_SETCONCURRENCY
15355 /* Set Solaris LWP concurrency to 2 */
15356 thr_setconcurrency(2);
15360 #if HAVE_PTHREADS < 6
15361 pthread_create(&t, pthread_attr_default, task, NULL);
15363 pthread_create(&t, NULL, task, NULL);
15366 /* make sure task runs first */
15369 #elif defined( HAVE_SCHED_YIELD )
15371 #elif defined( HAVE_PTHREAD_YIELD )
15378 if { (eval echo configure:15379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15380 ol_cv_pthread_select_yields=no
15382 echo "configure: failed program was:" >&5
15383 cat conftest.$ac_ext >&5
15385 ol_cv_pthread_select_yields=yes
15392 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15394 if test $ol_cv_pthread_select_yields = cross ; then
15395 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15398 if test $ol_cv_pthread_select_yields = yes ; then
15399 ol_with_yielding_select=yes
15403 CPPFLAGS="$save_CPPFLAGS"
15406 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15410 if test $ol_with_threads = posix ; then
15411 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15415 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15416 -o $ol_with_threads = mach ; then
15418 for ac_hdr in mach/cthreads.h cthreads.h
15420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15422 echo "configure:15423: checking for $ac_hdr" >&5
15423 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15424 echo $ac_n "(cached) $ac_c" 1>&6
15426 cat > conftest.$ac_ext <<EOF
15427 #line 15428 "configure"
15428 #include "confdefs.h"
15431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15432 { (eval echo configure:15433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15434 if test -z "$ac_err"; then
15436 eval "ac_cv_header_$ac_safe=yes"
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15442 eval "ac_cv_header_$ac_safe=no"
15446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15447 echo "$ac_t""yes" 1>&6
15448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15449 cat >> confdefs.h <<EOF
15450 #define $ac_tr_hdr 1
15454 echo "$ac_t""no" 1>&6
15458 if test $ac_cv_header_mach_cthreads_h = yes ; then
15459 ol_with_threads=found
15461 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15462 echo "configure:15463: checking for cthread_fork" >&5
15463 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15464 echo $ac_n "(cached) $ac_c" 1>&6
15466 cat > conftest.$ac_ext <<EOF
15467 #line 15468 "configure"
15468 #include "confdefs.h"
15469 /* System header to define __stub macros and hopefully few prototypes,
15470 which can conflict with char cthread_fork(); below. */
15471 #include <assert.h>
15472 /* Override any gcc2 internal prototype to avoid an error. */
15473 /* We use char because int might match the return type of a gcc2
15474 builtin and then its argument prototype would still apply. */
15475 char cthread_fork();
15480 /* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15491 if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15493 eval "ac_cv_func_cthread_fork=yes"
15495 echo "configure: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15498 eval "ac_cv_func_cthread_fork=no"
15503 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15504 echo "$ac_t""yes" 1>&6
15505 ol_link_threads=yes
15507 echo "$ac_t""no" 1>&6
15511 if test $ol_link_threads = no ; then
15512 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15513 echo "configure:15514: checking for cthread_fork with -all_load" >&5
15514 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
15519 LIBS="-all_load $LIBS"
15520 cat > conftest.$ac_ext <<EOF
15521 #line 15522 "configure"
15522 #include "confdefs.h"
15523 #include <mach/cthreads.h>
15526 cthread_fork((void *)0, (void *)0);
15530 if { (eval echo configure:15531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15532 ol_cv_cthread_all_load=yes
15534 echo "configure: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15537 ol_cv_cthread_all_load=no
15544 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15546 if test $ol_cv_cthread_all_load = yes ; then
15547 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15548 ol_link_threads=mach
15549 ol_with_threads=found
15553 elif test $ac_cv_header_cthreads_h = yes ; then
15555 ol_with_threads=found
15558 LIBS="$LIBS -lthreads"
15559 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15560 echo "configure:15561: checking for cthread_fork" >&5
15561 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15564 cat > conftest.$ac_ext <<EOF
15565 #line 15566 "configure"
15566 #include "confdefs.h"
15567 /* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char cthread_fork(); below. */
15569 #include <assert.h>
15570 /* Override any gcc2 internal prototype to avoid an error. */
15571 /* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15573 char cthread_fork();
15578 /* The GNU C library defines this for functions which it implements
15579 to always fail with ENOSYS. Some functions are actually named
15580 something starting with __ and the normal name is an alias. */
15581 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15589 if { (eval echo configure:15590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15591 eval "ac_cv_func_cthread_fork=yes"
15593 echo "configure: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15596 eval "ac_cv_func_cthread_fork=no"
15601 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15602 echo "$ac_t""yes" 1>&6
15603 ol_link_threads=yes
15605 echo "$ac_t""no" 1>&6
15610 if test $ol_link_threads = yes ; then
15611 LTHREAD_LIBS="-lthreads"
15612 ol_link_threads=mach
15613 ol_with_threads=found
15615 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15618 elif test $ol_with_threads = mach ; then
15619 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15622 if test $ol_link_threads = mach ; then
15623 cat >> confdefs.h <<\EOF
15624 #define HAVE_MACH_CTHREADS 1
15627 elif test $ol_with_threads = found ; then
15628 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15632 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15633 -o $ol_with_threads = pth ; then
15635 for ac_hdr in pth.h
15637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15639 echo "configure:15640: checking for $ac_hdr" >&5
15640 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15649 { (eval echo configure:15650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15651 if test -z "$ac_err"; then
15653 eval "ac_cv_header_$ac_safe=yes"
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15659 eval "ac_cv_header_$ac_safe=no"
15663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15664 echo "$ac_t""yes" 1>&6
15665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15666 cat >> confdefs.h <<EOF
15667 #define $ac_tr_hdr 1
15671 echo "$ac_t""no" 1>&6
15676 if test $ac_cv_header_pth_h = yes ; then
15677 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15678 echo "configure:15679: checking for pth_version in -lpth" >&5
15679 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15681 echo $ac_n "(cached) $ac_c" 1>&6
15683 ac_save_LIBS="$LIBS"
15685 cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 /* Override any gcc2 internal prototype to avoid an error. */
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15691 char pth_version();
15697 if { (eval echo configure:15698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15699 eval "ac_cv_lib_$ac_lib_var=yes"
15701 echo "configure: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 eval "ac_cv_lib_$ac_lib_var=no"
15707 LIBS="$ac_save_LIBS"
15710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15711 echo "$ac_t""yes" 1>&6
15714 echo "$ac_t""no" 1>&6
15719 if test $have_pth = yes ; then
15720 cat >> confdefs.h <<\EOF
15721 #define HAVE_GNU_PTH 1
15724 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15725 ol_link_threads=pth
15726 ol_with_threads=found
15728 if test $ol_with_yielding_select = auto ; then
15729 ol_with_yielding_select=yes
15735 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15736 -o $ol_with_threads = lwp ; then
15738 for ac_hdr in thread.h synch.h
15740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15742 echo "configure:15743: checking for $ac_hdr" >&5
15743 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15744 echo $ac_n "(cached) $ac_c" 1>&6
15746 cat > conftest.$ac_ext <<EOF
15747 #line 15748 "configure"
15748 #include "confdefs.h"
15751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15752 { (eval echo configure:15753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15754 if test -z "$ac_err"; then
15756 eval "ac_cv_header_$ac_safe=yes"
15759 echo "configure: failed program was:" >&5
15760 cat conftest.$ac_ext >&5
15762 eval "ac_cv_header_$ac_safe=no"
15766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15767 echo "$ac_t""yes" 1>&6
15768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15769 cat >> confdefs.h <<EOF
15770 #define $ac_tr_hdr 1
15774 echo "$ac_t""no" 1>&6
15778 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15779 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15780 echo "configure:15781: checking for thr_create in -lthread" >&5
15781 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15782 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15785 ac_save_LIBS="$LIBS"
15786 LIBS="-lthread $LIBS"
15787 cat > conftest.$ac_ext <<EOF
15788 #line 15789 "configure"
15789 #include "confdefs.h"
15790 /* Override any gcc2 internal prototype to avoid an error. */
15791 /* We use char because int might match the return type of a gcc2
15792 builtin and then its argument prototype would still apply. */
15799 if { (eval echo configure:15800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15801 eval "ac_cv_lib_$ac_lib_var=yes"
15803 echo "configure: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15806 eval "ac_cv_lib_$ac_lib_var=no"
15809 LIBS="$ac_save_LIBS"
15812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15813 echo "$ac_t""yes" 1>&6
15816 echo "$ac_t""no" 1>&6
15821 if test $have_thr = yes ; then
15822 cat >> confdefs.h <<\EOF
15826 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15827 ol_link_threads=thr
15829 if test $ol_with_yielding_select = auto ; then
15830 ol_with_yielding_select=yes
15834 thr_setconcurrency \
15835 thr_getconcurrency \
15838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15839 echo "configure:15840: checking for $ac_func" >&5
15840 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15841 echo $ac_n "(cached) $ac_c" 1>&6
15843 cat > conftest.$ac_ext <<EOF
15844 #line 15845 "configure"
15845 #include "confdefs.h"
15846 /* System header to define __stub macros and hopefully few prototypes,
15847 which can conflict with char $ac_func(); below. */
15848 #include <assert.h>
15849 /* Override any gcc2 internal prototype to avoid an error. */
15850 /* We use char because int might match the return type of a gcc2
15851 builtin and then its argument prototype would still apply. */
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15868 if { (eval echo configure:15869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15870 eval "ac_cv_func_$ac_func=yes"
15872 echo "configure: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15875 eval "ac_cv_func_$ac_func=no"
15880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15881 echo "$ac_t""yes" 1>&6
15882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15883 cat >> confdefs.h <<EOF
15884 #define $ac_tr_func 1
15888 echo "$ac_t""no" 1>&6
15895 for ac_hdr in lwp/lwp.h
15897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15899 echo "configure:15900: checking for $ac_hdr" >&5
15900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15901 echo $ac_n "(cached) $ac_c" 1>&6
15903 cat > conftest.$ac_ext <<EOF
15904 #line 15905 "configure"
15905 #include "confdefs.h"
15908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15909 { (eval echo configure:15910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15911 if test -z "$ac_err"; then
15913 eval "ac_cv_header_$ac_safe=yes"
15916 echo "configure: failed program was:" >&5
15917 cat conftest.$ac_ext >&5
15919 eval "ac_cv_header_$ac_safe=no"
15923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15924 echo "$ac_t""yes" 1>&6
15925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15926 cat >> confdefs.h <<EOF
15927 #define $ac_tr_hdr 1
15931 echo "$ac_t""no" 1>&6
15935 if test $ac_cv_header_lwp_lwp_h = yes ; then
15936 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15937 echo "configure:15938: checking for lwp_create in -llwp" >&5
15938 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15940 echo $ac_n "(cached) $ac_c" 1>&6
15942 ac_save_LIBS="$LIBS"
15944 cat > conftest.$ac_ext <<EOF
15945 #line 15946 "configure"
15946 #include "confdefs.h"
15947 /* Override any gcc2 internal prototype to avoid an error. */
15948 /* We use char because int might match the return type of a gcc2
15949 builtin and then its argument prototype would still apply. */
15956 if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15958 eval "ac_cv_lib_$ac_lib_var=yes"
15960 echo "configure: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15963 eval "ac_cv_lib_$ac_lib_var=no"
15966 LIBS="$ac_save_LIBS"
15969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15970 echo "$ac_t""yes" 1>&6
15973 echo "$ac_t""no" 1>&6
15978 if test $have_lwp = yes ; then
15979 cat >> confdefs.h <<\EOF
15983 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15984 ol_link_threads=lwp
15986 if test $ol_with_yielding_select = auto ; then
15987 ol_with_yielding_select=no
15993 if test $ol_with_yielding_select = yes ; then
15994 cat >> confdefs.h <<\EOF
15995 #define HAVE_YIELDING_SELECT 1
16000 if test $ol_with_threads = manual ; then
16001 ol_link_threads=yes
16003 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16005 for ac_hdr in pthread.h sched.h
16007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16009 echo "configure:16010: checking for $ac_hdr" >&5
16010 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16013 cat > conftest.$ac_ext <<EOF
16014 #line 16015 "configure"
16015 #include "confdefs.h"
16018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16019 { (eval echo configure:16020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16021 if test -z "$ac_err"; then
16023 eval "ac_cv_header_$ac_safe=yes"
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16029 eval "ac_cv_header_$ac_safe=no"
16033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16034 echo "$ac_t""yes" 1>&6
16035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16036 cat >> confdefs.h <<EOF
16037 #define $ac_tr_hdr 1
16041 echo "$ac_t""no" 1>&6
16045 for ac_func in sched_yield pthread_yield
16047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16048 echo "configure:16049: checking for $ac_func" >&5
16049 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
16052 cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055 /* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char $ac_func(); below. */
16057 #include <assert.h>
16058 /* Override any gcc2 internal prototype to avoid an error. */
16059 /* We use char because int might match the return type of a gcc2
16060 builtin and then its argument prototype would still apply. */
16066 /* The GNU C library defines this for functions which it implements
16067 to always fail with ENOSYS. Some functions are actually named
16068 something starting with __ and the normal name is an alias. */
16069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16077 if { (eval echo configure:16078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16079 eval "ac_cv_func_$ac_func=yes"
16081 echo "configure: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16084 eval "ac_cv_func_$ac_func=no"
16089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16090 echo "$ac_t""yes" 1>&6
16091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16092 cat >> confdefs.h <<EOF
16093 #define $ac_tr_func 1
16097 echo "$ac_t""no" 1>&6
16102 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16103 echo "configure:16104: checking for LinuxThreads pthread.h" >&5
16104 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16105 echo $ac_n "(cached) $ac_c" 1>&6
16107 cat > conftest.$ac_ext <<EOF
16108 #line 16109 "configure"
16109 #include "confdefs.h"
16110 #include <pthread.h>
16112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16113 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16115 ol_cv_header_linux_threads=yes
16118 ol_cv_header_linux_threads=no
16125 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16126 if test $ol_cv_header_linux_threads = yes; then
16127 cat >> confdefs.h <<\EOF
16128 #define HAVE_LINUX_THREADS 1
16134 for ac_hdr in mach/cthreads.h
16136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16138 echo "configure:16139: checking for $ac_hdr" >&5
16139 if eval "test \"\${ac_cv_header_$ac_safe+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"
16147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16148 { (eval echo configure:16149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16150 if test -z "$ac_err"; then
16152 eval "ac_cv_header_$ac_safe=yes"
16155 echo "configure: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16158 eval "ac_cv_header_$ac_safe=no"
16162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16163 echo "$ac_t""yes" 1>&6
16164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16165 cat >> confdefs.h <<EOF
16166 #define $ac_tr_hdr 1
16170 echo "$ac_t""no" 1>&6
16174 for ac_hdr in lwp/lwp.h
16176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16178 echo "configure:16179: checking for $ac_hdr" >&5
16179 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16180 echo $ac_n "(cached) $ac_c" 1>&6
16182 cat > conftest.$ac_ext <<EOF
16183 #line 16184 "configure"
16184 #include "confdefs.h"
16187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16188 { (eval echo configure:16189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16190 if test -z "$ac_err"; then
16192 eval "ac_cv_header_$ac_safe=yes"
16195 echo "configure: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16198 eval "ac_cv_header_$ac_safe=no"
16202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16203 echo "$ac_t""yes" 1>&6
16204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16205 cat >> confdefs.h <<EOF
16206 #define $ac_tr_hdr 1
16210 echo "$ac_t""no" 1>&6
16214 for ac_hdr in thread.h synch.h
16216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16218 echo "configure:16219: checking for $ac_hdr" >&5
16219 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
16222 cat > conftest.$ac_ext <<EOF
16223 #line 16224 "configure"
16224 #include "confdefs.h"
16227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16228 { (eval echo configure:16229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16230 if test -z "$ac_err"; then
16232 eval "ac_cv_header_$ac_safe=yes"
16235 echo "configure: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16238 eval "ac_cv_header_$ac_safe=no"
16242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16243 echo "$ac_t""yes" 1>&6
16244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16245 cat >> confdefs.h <<EOF
16246 #define $ac_tr_hdr 1
16250 echo "$ac_t""no" 1>&6
16256 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16257 cat >> confdefs.h <<\EOF
16258 #define REENTRANT 1
16261 cat >> confdefs.h <<\EOF
16262 #define _REENTRANT 1
16265 cat >> confdefs.h <<\EOF
16266 #define THREAD_SAFE 1
16269 cat >> confdefs.h <<\EOF
16270 #define _THREAD_SAFE 1
16273 cat >> confdefs.h <<\EOF
16274 #define THREADSAFE 1
16277 cat >> confdefs.h <<\EOF
16278 #define _THREADSAFE 1
16281 cat >> confdefs.h <<\EOF
16282 #define _SGI_MP_SOURCE 1
16286 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16287 echo "configure:16288: checking for thread specific errno" >&5
16288 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16289 echo $ac_n "(cached) $ac_c" 1>&6
16292 cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16300 if { (eval echo configure:16301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16302 ol_cv_errno_thread_specific=yes
16304 echo "configure: failed program was:" >&5
16305 cat conftest.$ac_ext >&5
16307 ol_cv_errno_thread_specific=no
16313 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16315 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16316 echo "configure:16317: checking for thread specific h_errno" >&5
16317 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16318 echo $ac_n "(cached) $ac_c" 1>&6
16321 cat > conftest.$ac_ext <<EOF
16322 #line 16323 "configure"
16323 #include "confdefs.h"
16329 if { (eval echo configure:16330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16331 ol_cv_h_errno_thread_specific=yes
16333 echo "configure: failed program was:" >&5
16334 cat conftest.$ac_ext >&5
16336 ol_cv_h_errno_thread_specific=no
16342 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16344 if test $ol_cv_errno_thread_specific != yes \
16345 -o $ol_cv_h_errno_thread_specific != yes ; then
16346 LIBS="$LTHREAD_LIBS $LIBS"
16352 if test $ol_link_threads = no ; then
16353 if test $ol_with_threads = yes ; then
16354 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16357 if test $ol_with_threads = auto ; then
16358 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16362 cat >> confdefs.h <<\EOF
16363 #define NO_THREADS 1
16369 if test $ol_link_threads != no ; then
16370 cat >> confdefs.h <<\EOF
16371 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16378 gethostbyname_r gethostbyaddr_r \
16381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16382 echo "configure:16383: checking for $ac_func" >&5
16383 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func(); below. */
16391 #include <assert.h>
16392 /* Override any gcc2 internal prototype to avoid an error. */
16393 /* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16400 /* The GNU C library defines this for functions which it implements
16401 to always fail with ENOSYS. Some functions are actually named
16402 something starting with __ and the normal name is an alias. */
16403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16413 eval "ac_cv_func_$ac_func=yes"
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16418 eval "ac_cv_func_$ac_func=no"
16423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16424 echo "$ac_t""yes" 1>&6
16425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16426 cat >> confdefs.h <<EOF
16427 #define $ac_tr_func 1
16431 echo "$ac_t""no" 1>&6
16436 if test "$ac_cv_func_ctime_r" = no ; then
16437 ol_cv_func_ctime_r_nargs=0
16439 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16440 echo "configure:16441: checking number of arguments of ctime_r" >&5
16441 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16442 echo $ac_n "(cached) $ac_c" 1>&6
16444 cat > conftest.$ac_ext <<EOF
16445 #line 16446 "configure"
16446 #include "confdefs.h"
16449 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16452 if { (eval echo configure:16453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16454 ol_cv_func_ctime_r_nargs3=yes
16456 echo "configure: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16459 ol_cv_func_ctime_r_nargs3=no
16463 cat > conftest.$ac_ext <<EOF
16464 #line 16465 "configure"
16465 #include "confdefs.h"
16468 time_t ti; char *buffer; ctime_r(&ti,buffer);
16471 if { (eval echo configure:16472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16473 ol_cv_func_ctime_r_nargs2=yes
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16478 ol_cv_func_ctime_r_nargs2=no
16482 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16483 $ol_cv_func_ctime_r_nargs2 = no ; then
16485 ol_cv_func_ctime_r_nargs=3
16487 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16488 $ol_cv_func_ctime_r_nargs2 = yes ; then
16490 ol_cv_func_ctime_r_nargs=2
16493 ol_cv_func_ctime_r_nargs=0
16498 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16500 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16501 cat >> confdefs.h <<EOF
16502 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16509 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16510 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16511 echo "configure:16512: checking number of arguments of gethostbyname_r" >&5
16512 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16513 echo $ac_n "(cached) $ac_c" 1>&6
16515 cat > conftest.$ac_ext <<EOF
16516 #line 16517 "configure"
16517 #include "confdefs.h"
16518 #include <sys/types.h>
16519 #include <sys/socket.h>
16520 #include <netinet/in.h>
16522 #define BUFSIZE (sizeof(struct hostent)+10)
16524 struct hostent hent; char buffer[BUFSIZE];
16525 int bufsize=BUFSIZE;int h_errno;
16526 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16527 buffer, bufsize, &h_errno);
16530 if { (eval echo configure:16531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16532 ol_cv_func_gethostbyname_r_nargs5=yes
16534 echo "configure: failed program was:" >&5
16535 cat conftest.$ac_ext >&5
16537 ol_cv_func_gethostbyname_r_nargs5=no
16541 cat > conftest.$ac_ext <<EOF
16542 #line 16543 "configure"
16543 #include "confdefs.h"
16544 #include <sys/types.h>
16545 #include <sys/socket.h>
16546 #include <netinet/in.h>
16548 #define BUFSIZE (sizeof(struct hostent)+10)
16550 struct hostent hent;struct hostent *rhent;
16551 char buffer[BUFSIZE];
16552 int bufsize=BUFSIZE;int h_errno;
16553 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16557 if { (eval echo configure:16558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16559 ol_cv_func_gethostbyname_r_nargs6=yes
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16564 ol_cv_func_gethostbyname_r_nargs6=no
16568 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16569 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16571 ol_cv_func_gethostbyname_r_nargs=5
16573 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16574 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16576 ol_cv_func_gethostbyname_r_nargs=6
16579 ol_cv_func_gethostbyname_r_nargs=0
16584 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16585 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16586 cat >> confdefs.h <<EOF
16587 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16593 ol_cv_func_gethostbyname_r_nargs=0
16596 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16597 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16598 echo "configure:16599: checking number of arguments of gethostbyaddr_r" >&5
16599 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 #include <sys/types.h>
16606 #include <sys/socket.h>
16607 #include <netinet/in.h>
16609 #define BUFSIZE (sizeof(struct hostent)+10)
16611 struct hostent hent; char buffer[BUFSIZE];
16612 struct in_addr add;
16613 size_t alen=sizeof(struct in_addr);
16614 int bufsize=BUFSIZE;int h_errno;
16615 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16616 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16619 if { (eval echo configure:16620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16621 ol_cv_func_gethostbyaddr_r_nargs7=yes
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16626 ol_cv_func_gethostbyaddr_r_nargs7=no
16630 cat > conftest.$ac_ext <<EOF
16631 #line 16632 "configure"
16632 #include "confdefs.h"
16633 #include <sys/types.h>
16634 #include <sys/socket.h>
16635 #include <netinet/in.h>
16637 #define BUFSIZE (sizeof(struct hostent)+10)
16639 struct hostent hent;
16640 struct hostent *rhent; char buffer[BUFSIZE];
16641 struct in_addr add;
16642 size_t alen=sizeof(struct in_addr);
16643 int bufsize=BUFSIZE;int h_errno;
16644 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16645 alen, AF_INET, &hent, buffer, bufsize,
16649 if { (eval echo configure:16650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16651 ol_cv_func_gethostbyaddr_r_nargs8=yes
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16656 ol_cv_func_gethostbyaddr_r_nargs8=no
16660 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16661 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16663 ol_cv_func_gethostbyaddr_r_nargs=7
16665 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16666 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16668 ol_cv_func_gethostbyaddr_r_nargs=8
16671 ol_cv_func_gethostbyaddr_r_nargs=0
16676 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16677 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16678 cat >> confdefs.h <<EOF
16679 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16685 ol_cv_func_gethostbyaddr_r_nargs=0
16690 if test $ol_with_ldbm_api = auto \
16691 -o $ol_with_ldbm_api = berkeley \
16692 -o $ol_with_ldbm_api = bcompat ; then
16694 if test $ol_with_ldbm_api = bcompat; then \
16695 for ac_hdr in db_185.h db.h
16697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16699 echo "configure:16700: checking for $ac_hdr" >&5
16700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16701 echo $ac_n "(cached) $ac_c" 1>&6
16703 cat > conftest.$ac_ext <<EOF
16704 #line 16705 "configure"
16705 #include "confdefs.h"
16708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16709 { (eval echo configure:16710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16711 if test -z "$ac_err"; then
16713 eval "ac_cv_header_$ac_safe=yes"
16716 echo "configure: failed program was:" >&5
16717 cat conftest.$ac_ext >&5
16719 eval "ac_cv_header_$ac_safe=no"
16723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16724 echo "$ac_t""yes" 1>&6
16725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16726 cat >> confdefs.h <<EOF
16727 #define $ac_tr_hdr 1
16731 echo "$ac_t""no" 1>&6
16735 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16736 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16737 echo "configure:16738: checking if Berkeley DB header compatibility" >&5
16738 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16739 echo $ac_n "(cached) $ac_c" 1>&6
16742 cat > conftest.$ac_ext <<EOF
16743 #line 16744 "configure"
16744 #include "confdefs.h"
16747 # include <db_185.h>
16752 /* this check could be improved */
16753 #ifndef DB_VERSION_MAJOR
16754 # define DB_VERSION_MAJOR 1
16757 #if DB_VERSION_MAJOR == 1
16762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16763 egrep "__db_version_1" >/dev/null 2>&1; then
16765 ol_cv_header_db1=yes
16768 ol_cv_header_db1=no
16774 echo "$ac_t""$ol_cv_header_db1" 1>&6
16776 if test $ol_cv_header_db1 = yes ; then
16778 if test $ol_cv_lib_db = no ; then
16779 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16780 echo "configure:16781: checking for Berkeley DB link (default)" >&5
16781 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16782 echo $ac_n "(cached) $ac_c" 1>&6
16787 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16789 cat > conftest.$ac_ext <<EOF
16790 #line 16791 "configure"
16791 #include "confdefs.h"
16793 #ifdef HAVE_DB_185_H
16794 # include <db_185.h>
16799 #ifndef DB_VERSION_MAJOR
16800 # define DB_VERSION_MAJOR 1
16804 #define NULL ((void*)0)
16809 #if DB_VERSION_MAJOR > 1
16812 int major, minor, patch;
16814 version = db_version( &major, &minor, &patch );
16816 if( major != DB_VERSION_MAJOR ||
16817 minor < DB_VERSION_MINOR )
16819 printf("Berkeley DB version mismatch\n"
16820 "\theader: %s\n\tlibrary: %s\n",
16821 DB_VERSION_STRING, version);
16827 #if DB_VERSION_MAJOR > 2
16828 db_env_create( NULL, 0 );
16829 #elif DB_VERSION_MAJOR > 1
16830 db_appexit( NULL );
16832 (void) dbopen( NULL, 0, 0, 0, NULL);
16837 if { (eval echo configure:16838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16841 echo "configure: failed program was:" >&5
16842 cat conftest.$ac_ext >&5
16852 echo "$ac_t""$ol_cv_db_none" 1>&6
16854 if test $ol_cv_db_none = yes ; then
16859 if test $ol_cv_lib_db = no ; then
16860 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16861 echo "configure:16862: checking for Berkeley DB link (-ldb42)" >&5
16862 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16868 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16870 cat > conftest.$ac_ext <<EOF
16871 #line 16872 "configure"
16872 #include "confdefs.h"
16874 #ifdef HAVE_DB_185_H
16875 # include <db_185.h>
16880 #ifndef DB_VERSION_MAJOR
16881 # define DB_VERSION_MAJOR 1
16885 #define NULL ((void*)0)
16890 #if DB_VERSION_MAJOR > 1
16893 int major, minor, patch;
16895 version = db_version( &major, &minor, &patch );
16897 if( major != DB_VERSION_MAJOR ||
16898 minor < DB_VERSION_MINOR )
16900 printf("Berkeley DB version mismatch\n"
16901 "\theader: %s\n\tlibrary: %s\n",
16902 DB_VERSION_STRING, version);
16908 #if DB_VERSION_MAJOR > 2
16909 db_env_create( NULL, 0 );
16910 #elif DB_VERSION_MAJOR > 1
16911 db_appexit( NULL );
16913 (void) dbopen( NULL, 0, 0, 0, NULL);
16918 if { (eval echo configure:16919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16922 echo "configure: failed program was:" >&5
16923 cat conftest.$ac_ext >&5
16933 echo "$ac_t""$ol_cv_db_db42" 1>&6
16935 if test $ol_cv_db_db42 = yes ; then
16936 ol_cv_lib_db=-ldb42
16940 if test $ol_cv_lib_db = no ; then
16941 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16942 echo "configure:16943: checking for Berkeley DB link (-ldb-42)" >&5
16943 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16944 echo $ac_n "(cached) $ac_c" 1>&6
16949 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16951 cat > conftest.$ac_ext <<EOF
16952 #line 16953 "configure"
16953 #include "confdefs.h"
16955 #ifdef HAVE_DB_185_H
16956 # include <db_185.h>
16961 #ifndef DB_VERSION_MAJOR
16962 # define DB_VERSION_MAJOR 1
16966 #define NULL ((void*)0)
16971 #if DB_VERSION_MAJOR > 1
16974 int major, minor, patch;
16976 version = db_version( &major, &minor, &patch );
16978 if( major != DB_VERSION_MAJOR ||
16979 minor < DB_VERSION_MINOR )
16981 printf("Berkeley DB version mismatch\n"
16982 "\theader: %s\n\tlibrary: %s\n",
16983 DB_VERSION_STRING, version);
16989 #if DB_VERSION_MAJOR > 2
16990 db_env_create( NULL, 0 );
16991 #elif DB_VERSION_MAJOR > 1
16992 db_appexit( NULL );
16994 (void) dbopen( NULL, 0, 0, 0, NULL);
16999 if { (eval echo configure:17000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17003 echo "configure: failed program was:" >&5
17004 cat conftest.$ac_ext >&5
17014 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17016 if test $ol_cv_db_db_42 = yes ; then
17017 ol_cv_lib_db=-ldb-42
17021 if test $ol_cv_lib_db = no ; then
17022 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17023 echo "configure:17024: checking for Berkeley DB link (-ldb-4.2)" >&5
17024 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17025 echo $ac_n "(cached) $ac_c" 1>&6
17030 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17032 cat > conftest.$ac_ext <<EOF
17033 #line 17034 "configure"
17034 #include "confdefs.h"
17036 #ifdef HAVE_DB_185_H
17037 # include <db_185.h>
17042 #ifndef DB_VERSION_MAJOR
17043 # define DB_VERSION_MAJOR 1
17047 #define NULL ((void*)0)
17052 #if DB_VERSION_MAJOR > 1
17055 int major, minor, patch;
17057 version = db_version( &major, &minor, &patch );
17059 if( major != DB_VERSION_MAJOR ||
17060 minor < DB_VERSION_MINOR )
17062 printf("Berkeley DB version mismatch\n"
17063 "\theader: %s\n\tlibrary: %s\n",
17064 DB_VERSION_STRING, version);
17070 #if DB_VERSION_MAJOR > 2
17071 db_env_create( NULL, 0 );
17072 #elif DB_VERSION_MAJOR > 1
17073 db_appexit( NULL );
17075 (void) dbopen( NULL, 0, 0, 0, NULL);
17080 if { (eval echo configure:17081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17082 ol_cv_db_db_4_dot_2=yes
17084 echo "configure: failed program was:" >&5
17085 cat conftest.$ac_ext >&5
17087 ol_cv_db_db_4_dot_2=no
17095 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17097 if test $ol_cv_db_db_4_dot_2 = yes ; then
17098 ol_cv_lib_db=-ldb-4.2
17102 if test $ol_cv_lib_db = no ; then
17103 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17104 echo "configure:17105: checking for Berkeley DB link (-ldb-4-2)" >&5
17105 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17106 echo $ac_n "(cached) $ac_c" 1>&6
17111 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17113 cat > conftest.$ac_ext <<EOF
17114 #line 17115 "configure"
17115 #include "confdefs.h"
17117 #ifdef HAVE_DB_185_H
17118 # include <db_185.h>
17123 #ifndef DB_VERSION_MAJOR
17124 # define DB_VERSION_MAJOR 1
17128 #define NULL ((void*)0)
17133 #if DB_VERSION_MAJOR > 1
17136 int major, minor, patch;
17138 version = db_version( &major, &minor, &patch );
17140 if( major != DB_VERSION_MAJOR ||
17141 minor < DB_VERSION_MINOR )
17143 printf("Berkeley DB version mismatch\n"
17144 "\theader: %s\n\tlibrary: %s\n",
17145 DB_VERSION_STRING, version);
17151 #if DB_VERSION_MAJOR > 2
17152 db_env_create( NULL, 0 );
17153 #elif DB_VERSION_MAJOR > 1
17154 db_appexit( NULL );
17156 (void) dbopen( NULL, 0, 0, 0, NULL);
17161 if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17163 ol_cv_db_db_4_2=yes
17165 echo "configure: failed program was:" >&5
17166 cat conftest.$ac_ext >&5
17176 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17178 if test $ol_cv_db_db_4_2 = yes ; then
17179 ol_cv_lib_db=-ldb-4-2
17183 if test $ol_cv_lib_db = no ; then
17184 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17185 echo "configure:17186: checking for Berkeley DB link (-ldb-4)" >&5
17186 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17187 echo $ac_n "(cached) $ac_c" 1>&6
17192 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17194 cat > conftest.$ac_ext <<EOF
17195 #line 17196 "configure"
17196 #include "confdefs.h"
17198 #ifdef HAVE_DB_185_H
17199 # include <db_185.h>
17204 #ifndef DB_VERSION_MAJOR
17205 # define DB_VERSION_MAJOR 1
17209 #define NULL ((void*)0)
17214 #if DB_VERSION_MAJOR > 1
17217 int major, minor, patch;
17219 version = db_version( &major, &minor, &patch );
17221 if( major != DB_VERSION_MAJOR ||
17222 minor < DB_VERSION_MINOR )
17224 printf("Berkeley DB version mismatch\n"
17225 "\theader: %s\n\tlibrary: %s\n",
17226 DB_VERSION_STRING, version);
17232 #if DB_VERSION_MAJOR > 2
17233 db_env_create( NULL, 0 );
17234 #elif DB_VERSION_MAJOR > 1
17235 db_appexit( NULL );
17237 (void) dbopen( NULL, 0, 0, 0, NULL);
17242 if { (eval echo configure:17243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17246 echo "configure: failed program was:" >&5
17247 cat conftest.$ac_ext >&5
17257 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17259 if test $ol_cv_db_db_4 = yes ; then
17260 ol_cv_lib_db=-ldb-4
17264 if test $ol_cv_lib_db = no ; then
17265 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17266 echo "configure:17267: checking for Berkeley DB link (-ldb4)" >&5
17267 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17268 echo $ac_n "(cached) $ac_c" 1>&6
17273 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17275 cat > conftest.$ac_ext <<EOF
17276 #line 17277 "configure"
17277 #include "confdefs.h"
17279 #ifdef HAVE_DB_185_H
17280 # include <db_185.h>
17285 #ifndef DB_VERSION_MAJOR
17286 # define DB_VERSION_MAJOR 1
17290 #define NULL ((void*)0)
17295 #if DB_VERSION_MAJOR > 1
17298 int major, minor, patch;
17300 version = db_version( &major, &minor, &patch );
17302 if( major != DB_VERSION_MAJOR ||
17303 minor < DB_VERSION_MINOR )
17305 printf("Berkeley DB version mismatch\n"
17306 "\theader: %s\n\tlibrary: %s\n",
17307 DB_VERSION_STRING, version);
17313 #if DB_VERSION_MAJOR > 2
17314 db_env_create( NULL, 0 );
17315 #elif DB_VERSION_MAJOR > 1
17316 db_appexit( NULL );
17318 (void) dbopen( NULL, 0, 0, 0, NULL);
17323 if { (eval echo configure:17324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17327 echo "configure: failed program was:" >&5
17328 cat conftest.$ac_ext >&5
17338 echo "$ac_t""$ol_cv_db_db4" 1>&6
17340 if test $ol_cv_db_db4 = yes ; then
17345 if test $ol_cv_lib_db = no ; then
17346 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17347 echo "configure:17348: checking for Berkeley DB link (-ldb)" >&5
17348 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17349 echo $ac_n "(cached) $ac_c" 1>&6
17354 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17356 cat > conftest.$ac_ext <<EOF
17357 #line 17358 "configure"
17358 #include "confdefs.h"
17360 #ifdef HAVE_DB_185_H
17361 # include <db_185.h>
17366 #ifndef DB_VERSION_MAJOR
17367 # define DB_VERSION_MAJOR 1
17371 #define NULL ((void*)0)
17376 #if DB_VERSION_MAJOR > 1
17379 int major, minor, patch;
17381 version = db_version( &major, &minor, &patch );
17383 if( major != DB_VERSION_MAJOR ||
17384 minor < DB_VERSION_MINOR )
17386 printf("Berkeley DB version mismatch\n"
17387 "\theader: %s\n\tlibrary: %s\n",
17388 DB_VERSION_STRING, version);
17394 #if DB_VERSION_MAJOR > 2
17395 db_env_create( NULL, 0 );
17396 #elif DB_VERSION_MAJOR > 1
17397 db_appexit( NULL );
17399 (void) dbopen( NULL, 0, 0, 0, NULL);
17404 if { (eval echo configure:17405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17408 echo "configure: failed program was:" >&5
17409 cat conftest.$ac_ext >&5
17419 echo "$ac_t""$ol_cv_db_db" 1>&6
17421 if test $ol_cv_db_db = yes ; then
17426 if test $ol_cv_lib_db = no ; then
17427 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17428 echo "configure:17429: checking for Berkeley DB link (-ldb41)" >&5
17429 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17430 echo $ac_n "(cached) $ac_c" 1>&6
17435 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17437 cat > conftest.$ac_ext <<EOF
17438 #line 17439 "configure"
17439 #include "confdefs.h"
17441 #ifdef HAVE_DB_185_H
17442 # include <db_185.h>
17447 #ifndef DB_VERSION_MAJOR
17448 # define DB_VERSION_MAJOR 1
17452 #define NULL ((void*)0)
17457 #if DB_VERSION_MAJOR > 1
17460 int major, minor, patch;
17462 version = db_version( &major, &minor, &patch );
17464 if( major != DB_VERSION_MAJOR ||
17465 minor < DB_VERSION_MINOR )
17467 printf("Berkeley DB version mismatch\n"
17468 "\theader: %s\n\tlibrary: %s\n",
17469 DB_VERSION_STRING, version);
17475 #if DB_VERSION_MAJOR > 2
17476 db_env_create( NULL, 0 );
17477 #elif DB_VERSION_MAJOR > 1
17478 db_appexit( NULL );
17480 (void) dbopen( NULL, 0, 0, 0, NULL);
17485 if { (eval echo configure:17486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17489 echo "configure: failed program was:" >&5
17490 cat conftest.$ac_ext >&5
17500 echo "$ac_t""$ol_cv_db_db41" 1>&6
17502 if test $ol_cv_db_db41 = yes ; then
17503 ol_cv_lib_db=-ldb41
17507 if test $ol_cv_lib_db = no ; then
17508 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17509 echo "configure:17510: checking for Berkeley DB link (-ldb-41)" >&5
17510 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17511 echo $ac_n "(cached) $ac_c" 1>&6
17516 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17518 cat > conftest.$ac_ext <<EOF
17519 #line 17520 "configure"
17520 #include "confdefs.h"
17522 #ifdef HAVE_DB_185_H
17523 # include <db_185.h>
17528 #ifndef DB_VERSION_MAJOR
17529 # define DB_VERSION_MAJOR 1
17533 #define NULL ((void*)0)
17538 #if DB_VERSION_MAJOR > 1
17541 int major, minor, patch;
17543 version = db_version( &major, &minor, &patch );
17545 if( major != DB_VERSION_MAJOR ||
17546 minor < DB_VERSION_MINOR )
17548 printf("Berkeley DB version mismatch\n"
17549 "\theader: %s\n\tlibrary: %s\n",
17550 DB_VERSION_STRING, version);
17556 #if DB_VERSION_MAJOR > 2
17557 db_env_create( NULL, 0 );
17558 #elif DB_VERSION_MAJOR > 1
17559 db_appexit( NULL );
17561 (void) dbopen( NULL, 0, 0, 0, NULL);
17566 if { (eval echo configure:17567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17570 echo "configure: failed program was:" >&5
17571 cat conftest.$ac_ext >&5
17581 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17583 if test $ol_cv_db_db_41 = yes ; then
17584 ol_cv_lib_db=-ldb-41
17588 if test $ol_cv_lib_db = no ; then
17589 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17590 echo "configure:17591: checking for Berkeley DB link (-ldb-4.1)" >&5
17591 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17592 echo $ac_n "(cached) $ac_c" 1>&6
17597 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17599 cat > conftest.$ac_ext <<EOF
17600 #line 17601 "configure"
17601 #include "confdefs.h"
17603 #ifdef HAVE_DB_185_H
17604 # include <db_185.h>
17609 #ifndef DB_VERSION_MAJOR
17610 # define DB_VERSION_MAJOR 1
17614 #define NULL ((void*)0)
17619 #if DB_VERSION_MAJOR > 1
17622 int major, minor, patch;
17624 version = db_version( &major, &minor, &patch );
17626 if( major != DB_VERSION_MAJOR ||
17627 minor < DB_VERSION_MINOR )
17629 printf("Berkeley DB version mismatch\n"
17630 "\theader: %s\n\tlibrary: %s\n",
17631 DB_VERSION_STRING, version);
17637 #if DB_VERSION_MAJOR > 2
17638 db_env_create( NULL, 0 );
17639 #elif DB_VERSION_MAJOR > 1
17640 db_appexit( NULL );
17642 (void) dbopen( NULL, 0, 0, 0, NULL);
17647 if { (eval echo configure:17648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17649 ol_cv_db_db_4_dot_1=yes
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17654 ol_cv_db_db_4_dot_1=no
17662 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17664 if test $ol_cv_db_db_4_dot_1 = yes ; then
17665 ol_cv_lib_db=-ldb-4.1
17669 if test $ol_cv_lib_db = no ; then
17670 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17671 echo "configure:17672: checking for Berkeley DB link (-ldb-4-1)" >&5
17672 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17673 echo $ac_n "(cached) $ac_c" 1>&6
17678 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17680 cat > conftest.$ac_ext <<EOF
17681 #line 17682 "configure"
17682 #include "confdefs.h"
17684 #ifdef HAVE_DB_185_H
17685 # include <db_185.h>
17690 #ifndef DB_VERSION_MAJOR
17691 # define DB_VERSION_MAJOR 1
17695 #define NULL ((void*)0)
17700 #if DB_VERSION_MAJOR > 1
17703 int major, minor, patch;
17705 version = db_version( &major, &minor, &patch );
17707 if( major != DB_VERSION_MAJOR ||
17708 minor < DB_VERSION_MINOR )
17710 printf("Berkeley DB version mismatch\n"
17711 "\theader: %s\n\tlibrary: %s\n",
17712 DB_VERSION_STRING, version);
17718 #if DB_VERSION_MAJOR > 2
17719 db_env_create( NULL, 0 );
17720 #elif DB_VERSION_MAJOR > 1
17721 db_appexit( NULL );
17723 (void) dbopen( NULL, 0, 0, 0, NULL);
17728 if { (eval echo configure:17729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17730 ol_cv_db_db_4_1=yes
17732 echo "configure: failed program was:" >&5
17733 cat conftest.$ac_ext >&5
17743 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17745 if test $ol_cv_db_db_4_1 = yes ; then
17746 ol_cv_lib_db=-ldb-4-1
17750 if test $ol_cv_lib_db = no ; then
17751 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17752 echo "configure:17753: checking for Berkeley DB link (-ldb3)" >&5
17753 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17754 echo $ac_n "(cached) $ac_c" 1>&6
17759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17761 cat > conftest.$ac_ext <<EOF
17762 #line 17763 "configure"
17763 #include "confdefs.h"
17765 #ifdef HAVE_DB_185_H
17766 # include <db_185.h>
17771 #ifndef DB_VERSION_MAJOR
17772 # define DB_VERSION_MAJOR 1
17776 #define NULL ((void*)0)
17781 #if DB_VERSION_MAJOR > 1
17784 int major, minor, patch;
17786 version = db_version( &major, &minor, &patch );
17788 if( major != DB_VERSION_MAJOR ||
17789 minor < DB_VERSION_MINOR )
17791 printf("Berkeley DB version mismatch\n"
17792 "\theader: %s\n\tlibrary: %s\n",
17793 DB_VERSION_STRING, version);
17799 #if DB_VERSION_MAJOR > 2
17800 db_env_create( NULL, 0 );
17801 #elif DB_VERSION_MAJOR > 1
17802 db_appexit( NULL );
17804 (void) dbopen( NULL, 0, 0, 0, NULL);
17809 if { (eval echo configure:17810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17813 echo "configure: failed program was:" >&5
17814 cat conftest.$ac_ext >&5
17824 echo "$ac_t""$ol_cv_db_db3" 1>&6
17826 if test $ol_cv_db_db3 = yes ; then
17831 if test $ol_cv_lib_db = no ; then
17832 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17833 echo "configure:17834: checking for Berkeley DB link (-ldb-3)" >&5
17834 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17835 echo $ac_n "(cached) $ac_c" 1>&6
17840 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17842 cat > conftest.$ac_ext <<EOF
17843 #line 17844 "configure"
17844 #include "confdefs.h"
17846 #ifdef HAVE_DB_185_H
17847 # include <db_185.h>
17852 #ifndef DB_VERSION_MAJOR
17853 # define DB_VERSION_MAJOR 1
17857 #define NULL ((void*)0)
17862 #if DB_VERSION_MAJOR > 1
17865 int major, minor, patch;
17867 version = db_version( &major, &minor, &patch );
17869 if( major != DB_VERSION_MAJOR ||
17870 minor < DB_VERSION_MINOR )
17872 printf("Berkeley DB version mismatch\n"
17873 "\theader: %s\n\tlibrary: %s\n",
17874 DB_VERSION_STRING, version);
17880 #if DB_VERSION_MAJOR > 2
17881 db_env_create( NULL, 0 );
17882 #elif DB_VERSION_MAJOR > 1
17883 db_appexit( NULL );
17885 (void) dbopen( NULL, 0, 0, 0, NULL);
17890 if { (eval echo configure:17891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17894 echo "configure: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17905 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17907 if test $ol_cv_db_db_3 = yes ; then
17908 ol_cv_lib_db=-ldb-3
17912 if test $ol_cv_lib_db = no ; then
17913 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17914 echo "configure:17915: checking for Berkeley DB link (-ldb2)" >&5
17915 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17916 echo $ac_n "(cached) $ac_c" 1>&6
17921 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17923 cat > conftest.$ac_ext <<EOF
17924 #line 17925 "configure"
17925 #include "confdefs.h"
17927 #ifdef HAVE_DB_185_H
17928 # include <db_185.h>
17933 #ifndef DB_VERSION_MAJOR
17934 # define DB_VERSION_MAJOR 1
17938 #define NULL ((void*)0)
17943 #if DB_VERSION_MAJOR > 1
17946 int major, minor, patch;
17948 version = db_version( &major, &minor, &patch );
17950 if( major != DB_VERSION_MAJOR ||
17951 minor < DB_VERSION_MINOR )
17953 printf("Berkeley DB version mismatch\n"
17954 "\theader: %s\n\tlibrary: %s\n",
17955 DB_VERSION_STRING, version);
17961 #if DB_VERSION_MAJOR > 2
17962 db_env_create( NULL, 0 );
17963 #elif DB_VERSION_MAJOR > 1
17964 db_appexit( NULL );
17966 (void) dbopen( NULL, 0, 0, 0, NULL);
17971 if { (eval echo configure:17972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17975 echo "configure: failed program was:" >&5
17976 cat conftest.$ac_ext >&5
17986 echo "$ac_t""$ol_cv_db_db2" 1>&6
17988 if test $ol_cv_db_db2 = yes ; then
17993 if test $ol_cv_lib_db = no ; then
17994 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17995 echo "configure:17996: checking for Berkeley DB link (-ldb-2)" >&5
17996 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17997 echo $ac_n "(cached) $ac_c" 1>&6
18002 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18004 cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18008 #ifdef HAVE_DB_185_H
18009 # include <db_185.h>
18014 #ifndef DB_VERSION_MAJOR
18015 # define DB_VERSION_MAJOR 1
18019 #define NULL ((void*)0)
18024 #if DB_VERSION_MAJOR > 1
18027 int major, minor, patch;
18029 version = db_version( &major, &minor, &patch );
18031 if( major != DB_VERSION_MAJOR ||
18032 minor < DB_VERSION_MINOR )
18034 printf("Berkeley DB version mismatch\n"
18035 "\theader: %s\n\tlibrary: %s\n",
18036 DB_VERSION_STRING, version);
18042 #if DB_VERSION_MAJOR > 2
18043 db_env_create( NULL, 0 );
18044 #elif DB_VERSION_MAJOR > 1
18045 db_appexit( NULL );
18047 (void) dbopen( NULL, 0, 0, 0, NULL);
18052 if { (eval echo configure:18053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18056 echo "configure: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18067 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18069 if test $ol_cv_db_db_2 = yes ; then
18070 ol_cv_lib_db=-ldb-2
18074 if test $ol_cv_lib_db = no ; then
18075 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18076 echo "configure:18077: checking for Berkeley DB link (-ldb1)" >&5
18077 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18078 echo $ac_n "(cached) $ac_c" 1>&6
18083 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18085 cat > conftest.$ac_ext <<EOF
18086 #line 18087 "configure"
18087 #include "confdefs.h"
18089 #ifdef HAVE_DB_185_H
18090 # include <db_185.h>
18095 #ifndef DB_VERSION_MAJOR
18096 # define DB_VERSION_MAJOR 1
18100 #define NULL ((void*)0)
18105 #if DB_VERSION_MAJOR > 1
18108 int major, minor, patch;
18110 version = db_version( &major, &minor, &patch );
18112 if( major != DB_VERSION_MAJOR ||
18113 minor < DB_VERSION_MINOR )
18115 printf("Berkeley DB version mismatch\n"
18116 "\theader: %s\n\tlibrary: %s\n",
18117 DB_VERSION_STRING, version);
18123 #if DB_VERSION_MAJOR > 2
18124 db_env_create( NULL, 0 );
18125 #elif DB_VERSION_MAJOR > 1
18126 db_appexit( NULL );
18128 (void) dbopen( NULL, 0, 0, 0, NULL);
18133 if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18137 echo "configure: failed program was:" >&5
18138 cat conftest.$ac_ext >&5
18148 echo "$ac_t""$ol_cv_db_db1" 1>&6
18150 if test $ol_cv_db_db1 = yes ; then
18155 if test $ol_cv_lib_db = no ; then
18156 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18157 echo "configure:18158: checking for Berkeley DB link (-ldb-1)" >&5
18158 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18159 echo $ac_n "(cached) $ac_c" 1>&6
18164 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18170 #ifdef HAVE_DB_185_H
18171 # include <db_185.h>
18176 #ifndef DB_VERSION_MAJOR
18177 # define DB_VERSION_MAJOR 1
18181 #define NULL ((void*)0)
18186 #if DB_VERSION_MAJOR > 1
18189 int major, minor, patch;
18191 version = db_version( &major, &minor, &patch );
18193 if( major != DB_VERSION_MAJOR ||
18194 minor < DB_VERSION_MINOR )
18196 printf("Berkeley DB version mismatch\n"
18197 "\theader: %s\n\tlibrary: %s\n",
18198 DB_VERSION_STRING, version);
18204 #if DB_VERSION_MAJOR > 2
18205 db_env_create( NULL, 0 );
18206 #elif DB_VERSION_MAJOR > 1
18207 db_appexit( NULL );
18209 (void) dbopen( NULL, 0, 0, 0, NULL);
18214 if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18229 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18231 if test $ol_cv_db_db_1 = yes ; then
18232 ol_cv_lib_db=-ldb-1
18237 if test "$ol_cv_lib_db" != no ; then
18238 ol_cv_berkeley_db=yes
18244 ol_cv_berkeley_db=no
18247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18249 echo "configure:18250: checking for $ac_hdr" >&5
18250 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
18253 cat > conftest.$ac_ext <<EOF
18254 #line 18255 "configure"
18255 #include "confdefs.h"
18258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18259 { (eval echo configure:18260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18261 if test -z "$ac_err"; then
18263 eval "ac_cv_header_$ac_safe=yes"
18266 echo "configure: failed program was:" >&5
18267 cat conftest.$ac_ext >&5
18269 eval "ac_cv_header_$ac_safe=no"
18273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18274 echo "$ac_t""yes" 1>&6
18275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18276 cat >> confdefs.h <<EOF
18277 #define $ac_tr_hdr 1
18281 echo "$ac_t""no" 1>&6
18285 if test $ac_cv_header_db_h = yes; then
18287 if test $ol_cv_lib_db = no ; then
18288 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18289 echo "configure:18290: checking for Berkeley DB link (default)" >&5
18290 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18291 echo $ac_n "(cached) $ac_c" 1>&6
18296 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18298 cat > conftest.$ac_ext <<EOF
18299 #line 18300 "configure"
18300 #include "confdefs.h"
18302 #ifdef HAVE_DB_185_H
18303 # include <db_185.h>
18308 #ifndef DB_VERSION_MAJOR
18309 # define DB_VERSION_MAJOR 1
18313 #define NULL ((void*)0)
18318 #if DB_VERSION_MAJOR > 1
18321 int major, minor, patch;
18323 version = db_version( &major, &minor, &patch );
18325 if( major != DB_VERSION_MAJOR ||
18326 minor < DB_VERSION_MINOR )
18328 printf("Berkeley DB version mismatch\n"
18329 "\theader: %s\n\tlibrary: %s\n",
18330 DB_VERSION_STRING, version);
18336 #if DB_VERSION_MAJOR > 2
18337 db_env_create( NULL, 0 );
18338 #elif DB_VERSION_MAJOR > 1
18339 db_appexit( NULL );
18341 (void) dbopen( NULL, 0, 0, 0, NULL);
18346 if { (eval echo configure:18347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18350 echo "configure: failed program was:" >&5
18351 cat conftest.$ac_ext >&5
18361 echo "$ac_t""$ol_cv_db_none" 1>&6
18363 if test $ol_cv_db_none = yes ; then
18368 if test $ol_cv_lib_db = no ; then
18369 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18370 echo "configure:18371: checking for Berkeley DB link (-ldb42)" >&5
18371 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18372 echo $ac_n "(cached) $ac_c" 1>&6
18377 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18379 cat > conftest.$ac_ext <<EOF
18380 #line 18381 "configure"
18381 #include "confdefs.h"
18383 #ifdef HAVE_DB_185_H
18384 # include <db_185.h>
18389 #ifndef DB_VERSION_MAJOR
18390 # define DB_VERSION_MAJOR 1
18394 #define NULL ((void*)0)
18399 #if DB_VERSION_MAJOR > 1
18402 int major, minor, patch;
18404 version = db_version( &major, &minor, &patch );
18406 if( major != DB_VERSION_MAJOR ||
18407 minor < DB_VERSION_MINOR )
18409 printf("Berkeley DB version mismatch\n"
18410 "\theader: %s\n\tlibrary: %s\n",
18411 DB_VERSION_STRING, version);
18417 #if DB_VERSION_MAJOR > 2
18418 db_env_create( NULL, 0 );
18419 #elif DB_VERSION_MAJOR > 1
18420 db_appexit( NULL );
18422 (void) dbopen( NULL, 0, 0, 0, NULL);
18427 if { (eval echo configure:18428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18431 echo "configure: failed program was:" >&5
18432 cat conftest.$ac_ext >&5
18442 echo "$ac_t""$ol_cv_db_db42" 1>&6
18444 if test $ol_cv_db_db42 = yes ; then
18445 ol_cv_lib_db=-ldb42
18449 if test $ol_cv_lib_db = no ; then
18450 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18451 echo "configure:18452: checking for Berkeley DB link (-ldb-42)" >&5
18452 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
18458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18460 cat > conftest.$ac_ext <<EOF
18461 #line 18462 "configure"
18462 #include "confdefs.h"
18464 #ifdef HAVE_DB_185_H
18465 # include <db_185.h>
18470 #ifndef DB_VERSION_MAJOR
18471 # define DB_VERSION_MAJOR 1
18475 #define NULL ((void*)0)
18480 #if DB_VERSION_MAJOR > 1
18483 int major, minor, patch;
18485 version = db_version( &major, &minor, &patch );
18487 if( major != DB_VERSION_MAJOR ||
18488 minor < DB_VERSION_MINOR )
18490 printf("Berkeley DB version mismatch\n"
18491 "\theader: %s\n\tlibrary: %s\n",
18492 DB_VERSION_STRING, version);
18498 #if DB_VERSION_MAJOR > 2
18499 db_env_create( NULL, 0 );
18500 #elif DB_VERSION_MAJOR > 1
18501 db_appexit( NULL );
18503 (void) dbopen( NULL, 0, 0, 0, NULL);
18508 if { (eval echo configure:18509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18512 echo "configure: failed program was:" >&5
18513 cat conftest.$ac_ext >&5
18523 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18525 if test $ol_cv_db_db_42 = yes ; then
18526 ol_cv_lib_db=-ldb-42
18530 if test $ol_cv_lib_db = no ; then
18531 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18532 echo "configure:18533: checking for Berkeley DB link (-ldb-4.2)" >&5
18533 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18534 echo $ac_n "(cached) $ac_c" 1>&6
18539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18541 cat > conftest.$ac_ext <<EOF
18542 #line 18543 "configure"
18543 #include "confdefs.h"
18545 #ifdef HAVE_DB_185_H
18546 # include <db_185.h>
18551 #ifndef DB_VERSION_MAJOR
18552 # define DB_VERSION_MAJOR 1
18556 #define NULL ((void*)0)
18561 #if DB_VERSION_MAJOR > 1
18564 int major, minor, patch;
18566 version = db_version( &major, &minor, &patch );
18568 if( major != DB_VERSION_MAJOR ||
18569 minor < DB_VERSION_MINOR )
18571 printf("Berkeley DB version mismatch\n"
18572 "\theader: %s\n\tlibrary: %s\n",
18573 DB_VERSION_STRING, version);
18579 #if DB_VERSION_MAJOR > 2
18580 db_env_create( NULL, 0 );
18581 #elif DB_VERSION_MAJOR > 1
18582 db_appexit( NULL );
18584 (void) dbopen( NULL, 0, 0, 0, NULL);
18589 if { (eval echo configure:18590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18591 ol_cv_db_db_4_dot_2=yes
18593 echo "configure: failed program was:" >&5
18594 cat conftest.$ac_ext >&5
18596 ol_cv_db_db_4_dot_2=no
18604 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18606 if test $ol_cv_db_db_4_dot_2 = yes ; then
18607 ol_cv_lib_db=-ldb-4.2
18611 if test $ol_cv_lib_db = no ; then
18612 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18613 echo "configure:18614: checking for Berkeley DB link (-ldb-4-2)" >&5
18614 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18615 echo $ac_n "(cached) $ac_c" 1>&6
18620 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18622 cat > conftest.$ac_ext <<EOF
18623 #line 18624 "configure"
18624 #include "confdefs.h"
18626 #ifdef HAVE_DB_185_H
18627 # include <db_185.h>
18632 #ifndef DB_VERSION_MAJOR
18633 # define DB_VERSION_MAJOR 1
18637 #define NULL ((void*)0)
18642 #if DB_VERSION_MAJOR > 1
18645 int major, minor, patch;
18647 version = db_version( &major, &minor, &patch );
18649 if( major != DB_VERSION_MAJOR ||
18650 minor < DB_VERSION_MINOR )
18652 printf("Berkeley DB version mismatch\n"
18653 "\theader: %s\n\tlibrary: %s\n",
18654 DB_VERSION_STRING, version);
18660 #if DB_VERSION_MAJOR > 2
18661 db_env_create( NULL, 0 );
18662 #elif DB_VERSION_MAJOR > 1
18663 db_appexit( NULL );
18665 (void) dbopen( NULL, 0, 0, 0, NULL);
18670 if { (eval echo configure:18671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18672 ol_cv_db_db_4_2=yes
18674 echo "configure: failed program was:" >&5
18675 cat conftest.$ac_ext >&5
18685 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18687 if test $ol_cv_db_db_4_2 = yes ; then
18688 ol_cv_lib_db=-ldb-4-2
18692 if test $ol_cv_lib_db = no ; then
18693 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18694 echo "configure:18695: checking for Berkeley DB link (-ldb-4)" >&5
18695 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18696 echo $ac_n "(cached) $ac_c" 1>&6
18701 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18703 cat > conftest.$ac_ext <<EOF
18704 #line 18705 "configure"
18705 #include "confdefs.h"
18707 #ifdef HAVE_DB_185_H
18708 # include <db_185.h>
18713 #ifndef DB_VERSION_MAJOR
18714 # define DB_VERSION_MAJOR 1
18718 #define NULL ((void*)0)
18723 #if DB_VERSION_MAJOR > 1
18726 int major, minor, patch;
18728 version = db_version( &major, &minor, &patch );
18730 if( major != DB_VERSION_MAJOR ||
18731 minor < DB_VERSION_MINOR )
18733 printf("Berkeley DB version mismatch\n"
18734 "\theader: %s\n\tlibrary: %s\n",
18735 DB_VERSION_STRING, version);
18741 #if DB_VERSION_MAJOR > 2
18742 db_env_create( NULL, 0 );
18743 #elif DB_VERSION_MAJOR > 1
18744 db_appexit( NULL );
18746 (void) dbopen( NULL, 0, 0, 0, NULL);
18751 if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18755 echo "configure: failed program was:" >&5
18756 cat conftest.$ac_ext >&5
18766 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18768 if test $ol_cv_db_db_4 = yes ; then
18769 ol_cv_lib_db=-ldb-4
18773 if test $ol_cv_lib_db = no ; then
18774 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18775 echo "configure:18776: checking for Berkeley DB link (-ldb4)" >&5
18776 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18777 echo $ac_n "(cached) $ac_c" 1>&6
18782 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18784 cat > conftest.$ac_ext <<EOF
18785 #line 18786 "configure"
18786 #include "confdefs.h"
18788 #ifdef HAVE_DB_185_H
18789 # include <db_185.h>
18794 #ifndef DB_VERSION_MAJOR
18795 # define DB_VERSION_MAJOR 1
18799 #define NULL ((void*)0)
18804 #if DB_VERSION_MAJOR > 1
18807 int major, minor, patch;
18809 version = db_version( &major, &minor, &patch );
18811 if( major != DB_VERSION_MAJOR ||
18812 minor < DB_VERSION_MINOR )
18814 printf("Berkeley DB version mismatch\n"
18815 "\theader: %s\n\tlibrary: %s\n",
18816 DB_VERSION_STRING, version);
18822 #if DB_VERSION_MAJOR > 2
18823 db_env_create( NULL, 0 );
18824 #elif DB_VERSION_MAJOR > 1
18825 db_appexit( NULL );
18827 (void) dbopen( NULL, 0, 0, 0, NULL);
18832 if { (eval echo configure:18833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18836 echo "configure: failed program was:" >&5
18837 cat conftest.$ac_ext >&5
18847 echo "$ac_t""$ol_cv_db_db4" 1>&6
18849 if test $ol_cv_db_db4 = yes ; then
18854 if test $ol_cv_lib_db = no ; then
18855 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18856 echo "configure:18857: checking for Berkeley DB link (-ldb)" >&5
18857 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18858 echo $ac_n "(cached) $ac_c" 1>&6
18863 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18865 cat > conftest.$ac_ext <<EOF
18866 #line 18867 "configure"
18867 #include "confdefs.h"
18869 #ifdef HAVE_DB_185_H
18870 # include <db_185.h>
18875 #ifndef DB_VERSION_MAJOR
18876 # define DB_VERSION_MAJOR 1
18880 #define NULL ((void*)0)
18885 #if DB_VERSION_MAJOR > 1
18888 int major, minor, patch;
18890 version = db_version( &major, &minor, &patch );
18892 if( major != DB_VERSION_MAJOR ||
18893 minor < DB_VERSION_MINOR )
18895 printf("Berkeley DB version mismatch\n"
18896 "\theader: %s\n\tlibrary: %s\n",
18897 DB_VERSION_STRING, version);
18903 #if DB_VERSION_MAJOR > 2
18904 db_env_create( NULL, 0 );
18905 #elif DB_VERSION_MAJOR > 1
18906 db_appexit( NULL );
18908 (void) dbopen( NULL, 0, 0, 0, NULL);
18913 if { (eval echo configure:18914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18917 echo "configure: failed program was:" >&5
18918 cat conftest.$ac_ext >&5
18928 echo "$ac_t""$ol_cv_db_db" 1>&6
18930 if test $ol_cv_db_db = yes ; then
18935 if test $ol_cv_lib_db = no ; then
18936 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18937 echo "configure:18938: checking for Berkeley DB link (-ldb41)" >&5
18938 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18939 echo $ac_n "(cached) $ac_c" 1>&6
18944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18946 cat > conftest.$ac_ext <<EOF
18947 #line 18948 "configure"
18948 #include "confdefs.h"
18950 #ifdef HAVE_DB_185_H
18951 # include <db_185.h>
18956 #ifndef DB_VERSION_MAJOR
18957 # define DB_VERSION_MAJOR 1
18961 #define NULL ((void*)0)
18966 #if DB_VERSION_MAJOR > 1
18969 int major, minor, patch;
18971 version = db_version( &major, &minor, &patch );
18973 if( major != DB_VERSION_MAJOR ||
18974 minor < DB_VERSION_MINOR )
18976 printf("Berkeley DB version mismatch\n"
18977 "\theader: %s\n\tlibrary: %s\n",
18978 DB_VERSION_STRING, version);
18984 #if DB_VERSION_MAJOR > 2
18985 db_env_create( NULL, 0 );
18986 #elif DB_VERSION_MAJOR > 1
18987 db_appexit( NULL );
18989 (void) dbopen( NULL, 0, 0, 0, NULL);
18994 if { (eval echo configure:18995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18998 echo "configure: failed program was:" >&5
18999 cat conftest.$ac_ext >&5
19009 echo "$ac_t""$ol_cv_db_db41" 1>&6
19011 if test $ol_cv_db_db41 = yes ; then
19012 ol_cv_lib_db=-ldb41
19016 if test $ol_cv_lib_db = no ; then
19017 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19018 echo "configure:19019: checking for Berkeley DB link (-ldb-41)" >&5
19019 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
19025 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19027 cat > conftest.$ac_ext <<EOF
19028 #line 19029 "configure"
19029 #include "confdefs.h"
19031 #ifdef HAVE_DB_185_H
19032 # include <db_185.h>
19037 #ifndef DB_VERSION_MAJOR
19038 # define DB_VERSION_MAJOR 1
19042 #define NULL ((void*)0)
19047 #if DB_VERSION_MAJOR > 1
19050 int major, minor, patch;
19052 version = db_version( &major, &minor, &patch );
19054 if( major != DB_VERSION_MAJOR ||
19055 minor < DB_VERSION_MINOR )
19057 printf("Berkeley DB version mismatch\n"
19058 "\theader: %s\n\tlibrary: %s\n",
19059 DB_VERSION_STRING, version);
19065 #if DB_VERSION_MAJOR > 2
19066 db_env_create( NULL, 0 );
19067 #elif DB_VERSION_MAJOR > 1
19068 db_appexit( NULL );
19070 (void) dbopen( NULL, 0, 0, 0, NULL);
19075 if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19090 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19092 if test $ol_cv_db_db_41 = yes ; then
19093 ol_cv_lib_db=-ldb-41
19097 if test $ol_cv_lib_db = no ; then
19098 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19099 echo "configure:19100: checking for Berkeley DB link (-ldb-4.1)" >&5
19100 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19101 echo $ac_n "(cached) $ac_c" 1>&6
19106 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19108 cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19112 #ifdef HAVE_DB_185_H
19113 # include <db_185.h>
19118 #ifndef DB_VERSION_MAJOR
19119 # define DB_VERSION_MAJOR 1
19123 #define NULL ((void*)0)
19128 #if DB_VERSION_MAJOR > 1
19131 int major, minor, patch;
19133 version = db_version( &major, &minor, &patch );
19135 if( major != DB_VERSION_MAJOR ||
19136 minor < DB_VERSION_MINOR )
19138 printf("Berkeley DB version mismatch\n"
19139 "\theader: %s\n\tlibrary: %s\n",
19140 DB_VERSION_STRING, version);
19146 #if DB_VERSION_MAJOR > 2
19147 db_env_create( NULL, 0 );
19148 #elif DB_VERSION_MAJOR > 1
19149 db_appexit( NULL );
19151 (void) dbopen( NULL, 0, 0, 0, NULL);
19156 if { (eval echo configure:19157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19158 ol_cv_db_db_4_dot_1=yes
19160 echo "configure: failed program was:" >&5
19161 cat conftest.$ac_ext >&5
19163 ol_cv_db_db_4_dot_1=no
19171 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19173 if test $ol_cv_db_db_4_dot_1 = yes ; then
19174 ol_cv_lib_db=-ldb-4.1
19178 if test $ol_cv_lib_db = no ; then
19179 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19180 echo "configure:19181: checking for Berkeley DB link (-ldb-4-1)" >&5
19181 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19182 echo $ac_n "(cached) $ac_c" 1>&6
19187 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19189 cat > conftest.$ac_ext <<EOF
19190 #line 19191 "configure"
19191 #include "confdefs.h"
19193 #ifdef HAVE_DB_185_H
19194 # include <db_185.h>
19199 #ifndef DB_VERSION_MAJOR
19200 # define DB_VERSION_MAJOR 1
19204 #define NULL ((void*)0)
19209 #if DB_VERSION_MAJOR > 1
19212 int major, minor, patch;
19214 version = db_version( &major, &minor, &patch );
19216 if( major != DB_VERSION_MAJOR ||
19217 minor < DB_VERSION_MINOR )
19219 printf("Berkeley DB version mismatch\n"
19220 "\theader: %s\n\tlibrary: %s\n",
19221 DB_VERSION_STRING, version);
19227 #if DB_VERSION_MAJOR > 2
19228 db_env_create( NULL, 0 );
19229 #elif DB_VERSION_MAJOR > 1
19230 db_appexit( NULL );
19232 (void) dbopen( NULL, 0, 0, 0, NULL);
19237 if { (eval echo configure:19238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19239 ol_cv_db_db_4_1=yes
19241 echo "configure: failed program was:" >&5
19242 cat conftest.$ac_ext >&5
19252 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19254 if test $ol_cv_db_db_4_1 = yes ; then
19255 ol_cv_lib_db=-ldb-4-1
19259 if test $ol_cv_lib_db = no ; then
19260 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19261 echo "configure:19262: checking for Berkeley DB link (-ldb3)" >&5
19262 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19263 echo $ac_n "(cached) $ac_c" 1>&6
19268 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19270 cat > conftest.$ac_ext <<EOF
19271 #line 19272 "configure"
19272 #include "confdefs.h"
19274 #ifdef HAVE_DB_185_H
19275 # include <db_185.h>
19280 #ifndef DB_VERSION_MAJOR
19281 # define DB_VERSION_MAJOR 1
19285 #define NULL ((void*)0)
19290 #if DB_VERSION_MAJOR > 1
19293 int major, minor, patch;
19295 version = db_version( &major, &minor, &patch );
19297 if( major != DB_VERSION_MAJOR ||
19298 minor < DB_VERSION_MINOR )
19300 printf("Berkeley DB version mismatch\n"
19301 "\theader: %s\n\tlibrary: %s\n",
19302 DB_VERSION_STRING, version);
19308 #if DB_VERSION_MAJOR > 2
19309 db_env_create( NULL, 0 );
19310 #elif DB_VERSION_MAJOR > 1
19311 db_appexit( NULL );
19313 (void) dbopen( NULL, 0, 0, 0, NULL);
19318 if { (eval echo configure:19319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19322 echo "configure: failed program was:" >&5
19323 cat conftest.$ac_ext >&5
19333 echo "$ac_t""$ol_cv_db_db3" 1>&6
19335 if test $ol_cv_db_db3 = yes ; then
19340 if test $ol_cv_lib_db = no ; then
19341 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19342 echo "configure:19343: checking for Berkeley DB link (-ldb-3)" >&5
19343 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19344 echo $ac_n "(cached) $ac_c" 1>&6
19349 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19351 cat > conftest.$ac_ext <<EOF
19352 #line 19353 "configure"
19353 #include "confdefs.h"
19355 #ifdef HAVE_DB_185_H
19356 # include <db_185.h>
19361 #ifndef DB_VERSION_MAJOR
19362 # define DB_VERSION_MAJOR 1
19366 #define NULL ((void*)0)
19371 #if DB_VERSION_MAJOR > 1
19374 int major, minor, patch;
19376 version = db_version( &major, &minor, &patch );
19378 if( major != DB_VERSION_MAJOR ||
19379 minor < DB_VERSION_MINOR )
19381 printf("Berkeley DB version mismatch\n"
19382 "\theader: %s\n\tlibrary: %s\n",
19383 DB_VERSION_STRING, version);
19389 #if DB_VERSION_MAJOR > 2
19390 db_env_create( NULL, 0 );
19391 #elif DB_VERSION_MAJOR > 1
19392 db_appexit( NULL );
19394 (void) dbopen( NULL, 0, 0, 0, NULL);
19399 if { (eval echo configure:19400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19403 echo "configure: failed program was:" >&5
19404 cat conftest.$ac_ext >&5
19414 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19416 if test $ol_cv_db_db_3 = yes ; then
19417 ol_cv_lib_db=-ldb-3
19421 if test $ol_cv_lib_db = no ; then
19422 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19423 echo "configure:19424: checking for Berkeley DB link (-ldb2)" >&5
19424 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19425 echo $ac_n "(cached) $ac_c" 1>&6
19430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19432 cat > conftest.$ac_ext <<EOF
19433 #line 19434 "configure"
19434 #include "confdefs.h"
19436 #ifdef HAVE_DB_185_H
19437 # include <db_185.h>
19442 #ifndef DB_VERSION_MAJOR
19443 # define DB_VERSION_MAJOR 1
19447 #define NULL ((void*)0)
19452 #if DB_VERSION_MAJOR > 1
19455 int major, minor, patch;
19457 version = db_version( &major, &minor, &patch );
19459 if( major != DB_VERSION_MAJOR ||
19460 minor < DB_VERSION_MINOR )
19462 printf("Berkeley DB version mismatch\n"
19463 "\theader: %s\n\tlibrary: %s\n",
19464 DB_VERSION_STRING, version);
19470 #if DB_VERSION_MAJOR > 2
19471 db_env_create( NULL, 0 );
19472 #elif DB_VERSION_MAJOR > 1
19473 db_appexit( NULL );
19475 (void) dbopen( NULL, 0, 0, 0, NULL);
19480 if { (eval echo configure:19481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19484 echo "configure: failed program was:" >&5
19485 cat conftest.$ac_ext >&5
19495 echo "$ac_t""$ol_cv_db_db2" 1>&6
19497 if test $ol_cv_db_db2 = yes ; then
19502 if test $ol_cv_lib_db = no ; then
19503 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19504 echo "configure:19505: checking for Berkeley DB link (-ldb-2)" >&5
19505 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19506 echo $ac_n "(cached) $ac_c" 1>&6
19511 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19513 cat > conftest.$ac_ext <<EOF
19514 #line 19515 "configure"
19515 #include "confdefs.h"
19517 #ifdef HAVE_DB_185_H
19518 # include <db_185.h>
19523 #ifndef DB_VERSION_MAJOR
19524 # define DB_VERSION_MAJOR 1
19528 #define NULL ((void*)0)
19533 #if DB_VERSION_MAJOR > 1
19536 int major, minor, patch;
19538 version = db_version( &major, &minor, &patch );
19540 if( major != DB_VERSION_MAJOR ||
19541 minor < DB_VERSION_MINOR )
19543 printf("Berkeley DB version mismatch\n"
19544 "\theader: %s\n\tlibrary: %s\n",
19545 DB_VERSION_STRING, version);
19551 #if DB_VERSION_MAJOR > 2
19552 db_env_create( NULL, 0 );
19553 #elif DB_VERSION_MAJOR > 1
19554 db_appexit( NULL );
19556 (void) dbopen( NULL, 0, 0, 0, NULL);
19561 if { (eval echo configure:19562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19565 echo "configure: failed program was:" >&5
19566 cat conftest.$ac_ext >&5
19576 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19578 if test $ol_cv_db_db_2 = yes ; then
19579 ol_cv_lib_db=-ldb-2
19583 if test $ol_cv_lib_db = no ; then
19584 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19585 echo "configure:19586: checking for Berkeley DB link (-ldb1)" >&5
19586 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19587 echo $ac_n "(cached) $ac_c" 1>&6
19592 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19594 cat > conftest.$ac_ext <<EOF
19595 #line 19596 "configure"
19596 #include "confdefs.h"
19598 #ifdef HAVE_DB_185_H
19599 # include <db_185.h>
19604 #ifndef DB_VERSION_MAJOR
19605 # define DB_VERSION_MAJOR 1
19609 #define NULL ((void*)0)
19614 #if DB_VERSION_MAJOR > 1
19617 int major, minor, patch;
19619 version = db_version( &major, &minor, &patch );
19621 if( major != DB_VERSION_MAJOR ||
19622 minor < DB_VERSION_MINOR )
19624 printf("Berkeley DB version mismatch\n"
19625 "\theader: %s\n\tlibrary: %s\n",
19626 DB_VERSION_STRING, version);
19632 #if DB_VERSION_MAJOR > 2
19633 db_env_create( NULL, 0 );
19634 #elif DB_VERSION_MAJOR > 1
19635 db_appexit( NULL );
19637 (void) dbopen( NULL, 0, 0, 0, NULL);
19642 if { (eval echo configure:19643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19646 echo "configure: failed program was:" >&5
19647 cat conftest.$ac_ext >&5
19657 echo "$ac_t""$ol_cv_db_db1" 1>&6
19659 if test $ol_cv_db_db1 = yes ; then
19664 if test $ol_cv_lib_db = no ; then
19665 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19666 echo "configure:19667: checking for Berkeley DB link (-ldb-1)" >&5
19667 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19668 echo $ac_n "(cached) $ac_c" 1>&6
19673 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19675 cat > conftest.$ac_ext <<EOF
19676 #line 19677 "configure"
19677 #include "confdefs.h"
19679 #ifdef HAVE_DB_185_H
19680 # include <db_185.h>
19685 #ifndef DB_VERSION_MAJOR
19686 # define DB_VERSION_MAJOR 1
19690 #define NULL ((void*)0)
19695 #if DB_VERSION_MAJOR > 1
19698 int major, minor, patch;
19700 version = db_version( &major, &minor, &patch );
19702 if( major != DB_VERSION_MAJOR ||
19703 minor < DB_VERSION_MINOR )
19705 printf("Berkeley DB version mismatch\n"
19706 "\theader: %s\n\tlibrary: %s\n",
19707 DB_VERSION_STRING, version);
19713 #if DB_VERSION_MAJOR > 2
19714 db_env_create( NULL, 0 );
19715 #elif DB_VERSION_MAJOR > 1
19716 db_appexit( NULL );
19718 (void) dbopen( NULL, 0, 0, 0, NULL);
19723 if { (eval echo configure:19724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19727 echo "configure: failed program was:" >&5
19728 cat conftest.$ac_ext >&5
19738 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19740 if test $ol_cv_db_db_1 = yes ; then
19741 ol_cv_lib_db=-ldb-1
19746 if test "$ol_cv_lib_db" != no ; then
19747 ol_cv_berkeley_db=yes
19748 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
19749 echo "configure:19750: checking for Berkeley DB version match" >&5
19750 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
19751 echo $ac_n "(cached) $ac_c" 1>&6
19755 LIBS="$LTHREAD_LIBS $LIBS"
19756 if test $ol_cv_lib_db != yes ; then
19757 LIBS="$ol_cv_lib_db $LIBS"
19760 if test "$cross_compiling" = yes; then
19761 ol_cv_berkeley_db_version=cross
19763 cat > conftest.$ac_ext <<EOF
19764 #line 19765 "configure"
19765 #include "confdefs.h"
19767 #ifdef HAVE_DB_185_H
19772 #ifndef DB_VERSION_MAJOR
19773 # define DB_VERSION_MAJOR 1
19776 #define NULL ((void *)0)
19780 #if DB_VERSION_MAJOR > 1
19782 int major, minor, patch;
19784 version = db_version( &major, &minor, &patch );
19786 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
19787 printf("Berkeley DB version mismatch\n"
19788 "\theader: %s\n\tlibrary: %s\n",
19789 DB_VERSION_STRING, version);
19797 if { (eval echo configure:19798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19799 ol_cv_berkeley_db_version=yes
19801 echo "configure: failed program was:" >&5
19802 cat conftest.$ac_ext >&5
19804 ol_cv_berkeley_db_version=no
19814 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
19816 if test $ol_cv_berkeley_db_version = no ; then
19817 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
19820 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19821 echo "configure:19822: checking for Berkeley DB thread support" >&5
19822 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19823 echo $ac_n "(cached) $ac_c" 1>&6
19827 LIBS="$LTHREAD_LIBS $LIBS"
19828 if test $ol_cv_lib_db != yes ; then
19829 LIBS="$ol_cv_lib_db $LIBS"
19832 if test "$cross_compiling" = yes; then
19833 ol_cv_berkeley_db_thread=cross
19835 cat > conftest.$ac_ext <<EOF
19836 #line 19837 "configure"
19837 #include "confdefs.h"
19839 #ifdef HAVE_DB_185_H
19845 #define NULL ((void *)0)
19850 u_int32_t flags = DB_CREATE |
19856 #if DB_VERSION_MAJOR > 2
19857 DB_ENV *env = NULL;
19859 rc = db_env_create( &env, 0 );
19861 flags |= DB_INIT_MPOOL;
19862 #ifdef DB_MPOOL_PRIVATE
19863 flags |= DB_MPOOL_PRIVATE;
19867 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19871 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19872 rc = env->open( env, NULL, flags, 0 );
19874 rc = env->open( env, NULL, NULL, flags, 0 );
19878 rc = env->close( env, 0 );
19882 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19888 memset( &env, '\0', sizeof(env) );
19890 rc = db_appinit( NULL, NULL, &env, flags );
19893 db_appexit( &env );
19896 unlink("__db_mpool.share");
19897 unlink("__db_lock.share");
19903 if { (eval echo configure:19904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19905 ol_cv_berkeley_db_thread=yes
19907 echo "configure: failed program was:" >&5
19908 cat conftest.$ac_ext >&5
19910 ol_cv_berkeley_db_thread=no
19920 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19922 if test $ol_cv_berkeley_db_thread != no ; then
19923 cat >> confdefs.h <<\EOF
19924 #define HAVE_BERKELEY_DB_THREAD 1
19934 if test $ol_cv_berkeley_db != no ; then
19935 cat >> confdefs.h <<\EOF
19936 #define HAVE_BERKELEY_DB 1
19940 ol_link_ldbm=berkeley
19941 ol_with_ldbm_api=berkeley
19943 if test $ol_with_ldbm_type = hash ; then
19944 cat >> confdefs.h <<\EOF
19945 #define LDBM_USE_DBHASH 1
19949 cat >> confdefs.h <<\EOF
19950 #define LDBM_USE_DBBTREE 1
19955 if test $ol_cv_lib_db != yes ; then
19956 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19961 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
19962 if test $ol_link_ldbm != berkeley ; then
19963 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
19965 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19966 echo "configure:19967: checking Berkeley DB version for BDB backend" >&5
19967 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19968 echo $ac_n "(cached) $ac_c" 1>&6
19971 cat > conftest.$ac_ext <<EOF
19972 #line 19973 "configure"
19973 #include "confdefs.h"
19977 /* this check could be improved */
19978 #ifndef DB_VERSION_MAJOR
19979 # define DB_VERSION_MAJOR 1
19981 #ifndef DB_VERSION_MINOR
19982 # define DB_VERSION_MINOR 0
19985 /* require 4.2 or later */
19986 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19987 __db_version_compat
19991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19992 egrep "__db_version_compat" >/dev/null 2>&1; then
19994 ol_cv_bdb_compat=yes
19997 ol_cv_bdb_compat=no
20003 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20006 if test $ol_cv_bdb_compat != yes ; then
20007 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20012 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20013 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20014 ol_with_ldbm_api=none
20017 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20018 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20019 echo "configure:20020: checking for MDBM library" >&5
20020 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20021 echo $ac_n "(cached) $ac_c" 1>&6
20024 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20025 echo "configure:20026: checking for mdbm_set_chain" >&5
20026 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20027 echo $ac_n "(cached) $ac_c" 1>&6
20029 cat > conftest.$ac_ext <<EOF
20030 #line 20031 "configure"
20031 #include "confdefs.h"
20032 /* System header to define __stub macros and hopefully few prototypes,
20033 which can conflict with char mdbm_set_chain(); below. */
20034 #include <assert.h>
20035 /* Override any gcc2 internal prototype to avoid an error. */
20036 /* We use char because int might match the return type of a gcc2
20037 builtin and then its argument prototype would still apply. */
20038 char mdbm_set_chain();
20043 /* The GNU C library defines this for functions which it implements
20044 to always fail with ENOSYS. Some functions are actually named
20045 something starting with __ and the normal name is an alias. */
20046 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20049 f = mdbm_set_chain;
20054 if { (eval echo configure:20055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20056 eval "ac_cv_func_mdbm_set_chain=yes"
20058 echo "configure: failed program was:" >&5
20059 cat conftest.$ac_ext >&5
20061 eval "ac_cv_func_mdbm_set_chain=no"
20066 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20067 echo "$ac_t""yes" 1>&6
20070 echo "$ac_t""no" 1>&6
20072 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20073 echo "configure:20074: checking for mdbm_set_chain in -lmdbm" >&5
20074 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20076 echo $ac_n "(cached) $ac_c" 1>&6
20078 ac_save_LIBS="$LIBS"
20079 LIBS="-lmdbm $LIBS"
20080 cat > conftest.$ac_ext <<EOF
20081 #line 20082 "configure"
20082 #include "confdefs.h"
20083 /* Override any gcc2 internal prototype to avoid an error. */
20084 /* We use char because int might match the return type of a gcc2
20085 builtin and then its argument prototype would still apply. */
20086 char mdbm_set_chain();
20092 if { (eval echo configure:20093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20094 eval "ac_cv_lib_$ac_lib_var=yes"
20096 echo "configure: failed program was:" >&5
20097 cat conftest.$ac_ext >&5
20099 eval "ac_cv_lib_$ac_lib_var=no"
20102 LIBS="$ac_save_LIBS"
20105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20106 echo "$ac_t""yes" 1>&6
20107 ol_cv_lib_mdbm=-lmdbm
20109 echo "$ac_t""no" 1>&6
20120 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20123 for ac_hdr in mdbm.h
20125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20127 echo "configure:20128: checking for $ac_hdr" >&5
20128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20129 echo $ac_n "(cached) $ac_c" 1>&6
20131 cat > conftest.$ac_ext <<EOF
20132 #line 20133 "configure"
20133 #include "confdefs.h"
20136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20137 { (eval echo configure:20138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20139 if test -z "$ac_err"; then
20141 eval "ac_cv_header_$ac_safe=yes"
20144 echo "configure: failed program was:" >&5
20145 cat conftest.$ac_ext >&5
20147 eval "ac_cv_header_$ac_safe=no"
20151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20152 echo "$ac_t""yes" 1>&6
20153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20154 cat >> confdefs.h <<EOF
20155 #define $ac_tr_hdr 1
20159 echo "$ac_t""no" 1>&6
20163 echo $ac_n "checking for db""... $ac_c" 1>&6
20164 echo "configure:20165: checking for db" >&5
20165 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20166 echo $ac_n "(cached) $ac_c" 1>&6
20169 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20177 echo "$ac_t""$ol_cv_mdbm" 1>&6
20178 if test $ol_cv_mdbm = yes ; then
20179 cat >> confdefs.h <<\EOF
20180 #define HAVE_MDBM 1
20186 if test $ol_cv_mdbm = yes ; then
20188 ol_with_ldbm_api=mdbm
20189 if test $ol_cv_lib_mdbm != yes ; then
20190 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20195 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20196 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20197 echo "configure:20198: checking for GDBM library" >&5
20198 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20199 echo $ac_n "(cached) $ac_c" 1>&6
20202 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20203 echo "configure:20204: checking for gdbm_open" >&5
20204 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20205 echo $ac_n "(cached) $ac_c" 1>&6
20207 cat > conftest.$ac_ext <<EOF
20208 #line 20209 "configure"
20209 #include "confdefs.h"
20210 /* System header to define __stub macros and hopefully few prototypes,
20211 which can conflict with char gdbm_open(); below. */
20212 #include <assert.h>
20213 /* Override any gcc2 internal prototype to avoid an error. */
20214 /* We use char because int might match the return type of a gcc2
20215 builtin and then its argument prototype would still apply. */
20221 /* The GNU C library defines this for functions which it implements
20222 to always fail with ENOSYS. Some functions are actually named
20223 something starting with __ and the normal name is an alias. */
20224 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20232 if { (eval echo configure:20233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20234 eval "ac_cv_func_gdbm_open=yes"
20236 echo "configure: failed program was:" >&5
20237 cat conftest.$ac_ext >&5
20239 eval "ac_cv_func_gdbm_open=no"
20244 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20245 echo "$ac_t""yes" 1>&6
20248 echo "$ac_t""no" 1>&6
20250 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20251 echo "configure:20252: checking for gdbm_open in -lgdbm" >&5
20252 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20253 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20254 echo $ac_n "(cached) $ac_c" 1>&6
20256 ac_save_LIBS="$LIBS"
20257 LIBS="-lgdbm $LIBS"
20258 cat > conftest.$ac_ext <<EOF
20259 #line 20260 "configure"
20260 #include "confdefs.h"
20261 /* Override any gcc2 internal prototype to avoid an error. */
20262 /* We use char because int might match the return type of a gcc2
20263 builtin and then its argument prototype would still apply. */
20270 if { (eval echo configure:20271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20272 eval "ac_cv_lib_$ac_lib_var=yes"
20274 echo "configure: failed program was:" >&5
20275 cat conftest.$ac_ext >&5
20277 eval "ac_cv_lib_$ac_lib_var=no"
20280 LIBS="$ac_save_LIBS"
20283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20284 echo "$ac_t""yes" 1>&6
20285 ol_cv_lib_gdbm=-lgdbm
20287 echo "$ac_t""no" 1>&6
20298 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20301 for ac_hdr in gdbm.h
20303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20305 echo "configure:20306: checking for $ac_hdr" >&5
20306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20307 echo $ac_n "(cached) $ac_c" 1>&6
20309 cat > conftest.$ac_ext <<EOF
20310 #line 20311 "configure"
20311 #include "confdefs.h"
20314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20315 { (eval echo configure:20316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20317 if test -z "$ac_err"; then
20319 eval "ac_cv_header_$ac_safe=yes"
20322 echo "configure: failed program was:" >&5
20323 cat conftest.$ac_ext >&5
20325 eval "ac_cv_header_$ac_safe=no"
20329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20330 echo "$ac_t""yes" 1>&6
20331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20332 cat >> confdefs.h <<EOF
20333 #define $ac_tr_hdr 1
20337 echo "$ac_t""no" 1>&6
20341 echo $ac_n "checking for db""... $ac_c" 1>&6
20342 echo "configure:20343: checking for db" >&5
20343 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20344 echo $ac_n "(cached) $ac_c" 1>&6
20347 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20355 echo "$ac_t""$ol_cv_gdbm" 1>&6
20356 if test $ol_cv_gdbm = yes ; then
20357 cat >> confdefs.h <<\EOF
20358 #define HAVE_GDBM 1
20364 if test $ol_cv_gdbm = yes ; then
20366 ol_with_ldbm_api=gdbm
20368 if test $ol_cv_lib_gdbm != yes ; then
20369 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20374 if test $ol_with_ldbm_api = ndbm ; then
20375 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20376 echo "configure:20377: checking for NDBM library" >&5
20377 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20378 echo $ac_n "(cached) $ac_c" 1>&6
20381 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20382 echo "configure:20383: checking for dbm_open" >&5
20383 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20384 echo $ac_n "(cached) $ac_c" 1>&6
20386 cat > conftest.$ac_ext <<EOF
20387 #line 20388 "configure"
20388 #include "confdefs.h"
20389 /* System header to define __stub macros and hopefully few prototypes,
20390 which can conflict with char dbm_open(); below. */
20391 #include <assert.h>
20392 /* Override any gcc2 internal prototype to avoid an error. */
20393 /* We use char because int might match the return type of a gcc2
20394 builtin and then its argument prototype would still apply. */
20400 /* The GNU C library defines this for functions which it implements
20401 to always fail with ENOSYS. Some functions are actually named
20402 something starting with __ and the normal name is an alias. */
20403 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20411 if { (eval echo configure:20412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20413 eval "ac_cv_func_dbm_open=yes"
20415 echo "configure: failed program was:" >&5
20416 cat conftest.$ac_ext >&5
20418 eval "ac_cv_func_dbm_open=no"
20423 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20424 echo "$ac_t""yes" 1>&6
20427 echo "$ac_t""no" 1>&6
20429 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20430 echo "configure:20431: checking for dbm_open in -lndbm" >&5
20431 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20432 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20433 echo $ac_n "(cached) $ac_c" 1>&6
20435 ac_save_LIBS="$LIBS"
20436 LIBS="-lndbm $LIBS"
20437 cat > conftest.$ac_ext <<EOF
20438 #line 20439 "configure"
20439 #include "confdefs.h"
20440 /* Override any gcc2 internal prototype to avoid an error. */
20441 /* We use char because int might match the return type of a gcc2
20442 builtin and then its argument prototype would still apply. */
20449 if { (eval echo configure:20450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20451 eval "ac_cv_lib_$ac_lib_var=yes"
20453 echo "configure: failed program was:" >&5
20454 cat conftest.$ac_ext >&5
20456 eval "ac_cv_lib_$ac_lib_var=no"
20459 LIBS="$ac_save_LIBS"
20462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20463 echo "$ac_t""yes" 1>&6
20464 ol_cv_lib_ndbm=-lndbm
20466 echo "$ac_t""no" 1>&6
20468 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20469 echo "configure:20470: checking for dbm_open in -ldbm" >&5
20470 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20472 echo $ac_n "(cached) $ac_c" 1>&6
20474 ac_save_LIBS="$LIBS"
20476 cat > conftest.$ac_ext <<EOF
20477 #line 20478 "configure"
20478 #include "confdefs.h"
20479 /* Override any gcc2 internal prototype to avoid an error. */
20480 /* We use char because int might match the return type of a gcc2
20481 builtin and then its argument prototype would still apply. */
20488 if { (eval echo configure:20489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20490 eval "ac_cv_lib_$ac_lib_var=yes"
20492 echo "configure: failed program was:" >&5
20493 cat conftest.$ac_ext >&5
20495 eval "ac_cv_lib_$ac_lib_var=no"
20498 LIBS="$ac_save_LIBS"
20501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20502 echo "$ac_t""yes" 1>&6
20503 ol_cv_lib_ndbm=-ldbm
20505 echo "$ac_t""no" 1>&6
20518 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20521 for ac_hdr in ndbm.h
20523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20525 echo "configure:20526: checking for $ac_hdr" >&5
20526 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20527 echo $ac_n "(cached) $ac_c" 1>&6
20529 cat > conftest.$ac_ext <<EOF
20530 #line 20531 "configure"
20531 #include "confdefs.h"
20534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20535 { (eval echo configure:20536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20537 if test -z "$ac_err"; then
20539 eval "ac_cv_header_$ac_safe=yes"
20542 echo "configure: failed program was:" >&5
20543 cat conftest.$ac_ext >&5
20545 eval "ac_cv_header_$ac_safe=no"
20549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20550 echo "$ac_t""yes" 1>&6
20551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20552 cat >> confdefs.h <<EOF
20553 #define $ac_tr_hdr 1
20557 echo "$ac_t""no" 1>&6
20561 echo $ac_n "checking for db""... $ac_c" 1>&6
20562 echo "configure:20563: checking for db" >&5
20563 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20564 echo $ac_n "(cached) $ac_c" 1>&6
20567 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20575 echo "$ac_t""$ol_cv_ndbm" 1>&6
20576 if test $ol_cv_ndbm = yes ; then
20577 cat >> confdefs.h <<\EOF
20578 #define HAVE_NDBM 1
20584 if test $ol_cv_ndbm = yes ; then
20586 ol_with_ldbm_api=ndbm
20588 if test $ol_cv_lib_ndbm != yes ; then
20589 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20594 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20595 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
20598 if test $ol_enable_bdb = yes -o \
20599 $ol_enable_hdb = yes -o \
20600 $ol_enable_ldbm = yes ; then
20601 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
20605 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20606 BUILD_LIBS_DYNAMIC=shared
20607 cat >> confdefs.h <<\EOF
20608 #define LDAP_LIBS_DYNAMIC 1
20613 BUILD_LIBS_DYNAMIC=static
20617 if test $ol_enable_wrappers != no ; then
20618 for ac_hdr in tcpd.h
20620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20622 echo "configure:20623: checking for $ac_hdr" >&5
20623 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20624 echo $ac_n "(cached) $ac_c" 1>&6
20626 cat > conftest.$ac_ext <<EOF
20627 #line 20628 "configure"
20628 #include "confdefs.h"
20631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20632 { (eval echo configure:20633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20634 if test -z "$ac_err"; then
20636 eval "ac_cv_header_$ac_safe=yes"
20639 echo "configure: failed program was:" >&5
20640 cat conftest.$ac_ext >&5
20642 eval "ac_cv_header_$ac_safe=no"
20646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20647 echo "$ac_t""yes" 1>&6
20648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20649 cat >> confdefs.h <<EOF
20650 #define $ac_tr_hdr 1
20653 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20654 echo "configure:20655: checking for TCP wrappers library" >&5
20656 LIBS="$LIBS -lwrap"
20657 cat > conftest.$ac_ext <<EOF
20658 #line 20659 "configure"
20659 #include "confdefs.h"
20662 int allow_severity = 0;
20663 int deny_severity = 0;
20665 struct request_info *req;
20673 if { (eval echo configure:20674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20675 echo "$ac_t""-lwrap" 1>&6
20679 echo "configure: failed program was:" >&5
20680 cat conftest.$ac_ext >&5
20684 cat > conftest.$ac_ext <<EOF
20685 #line 20686 "configure"
20686 #include "confdefs.h"
20689 int allow_severity = 0;
20690 int deny_severity = 0;
20692 struct request_info *req;
20700 if { (eval echo configure:20701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20702 echo "$ac_t""-lwrap -lnsl" 1>&6
20704 LIBS="$save_LIBS -lnsl"
20706 echo "configure: failed program was:" >&5
20707 cat conftest.$ac_ext >&5
20710 echo "$ac_t""no" 1>&6
20718 echo "$ac_t""no" 1>&6
20724 if test $have_wrappers = yes ; then
20725 cat >> confdefs.h <<\EOF
20726 #define HAVE_TCPD 1
20730 elif test $ol_enable_wrappers = yes ; then
20731 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20733 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20738 if test $ol_enable_syslog != no ; then
20739 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20740 echo "configure:20741: checking for openlog" >&5
20741 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20742 echo $ac_n "(cached) $ac_c" 1>&6
20744 cat > conftest.$ac_ext <<EOF
20745 #line 20746 "configure"
20746 #include "confdefs.h"
20747 /* System header to define __stub macros and hopefully few prototypes,
20748 which can conflict with char openlog(); below. */
20749 #include <assert.h>
20750 /* Override any gcc2 internal prototype to avoid an error. */
20751 /* We use char because int might match the return type of a gcc2
20752 builtin and then its argument prototype would still apply. */
20758 /* The GNU C library defines this for functions which it implements
20759 to always fail with ENOSYS. Some functions are actually named
20760 something starting with __ and the normal name is an alias. */
20761 #if defined (__stub_openlog) || defined (__stub___openlog)
20769 if { (eval echo configure:20770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20771 eval "ac_cv_func_openlog=yes"
20773 echo "configure: failed program was:" >&5
20774 cat conftest.$ac_ext >&5
20776 eval "ac_cv_func_openlog=no"
20781 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20782 echo "$ac_t""yes" 1>&6
20785 echo "$ac_t""no" 1>&6
20788 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20789 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20791 ol_enable_syslog=$ac_cv_func_openlog
20796 if test $ol_enable_sql != no ; then
20797 for ac_hdr in sql.h sqlext.h
20799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20801 echo "configure:20802: checking for $ac_hdr" >&5
20802 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20803 echo $ac_n "(cached) $ac_c" 1>&6
20805 cat > conftest.$ac_ext <<EOF
20806 #line 20807 "configure"
20807 #include "confdefs.h"
20810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20811 { (eval echo configure:20812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20813 if test -z "$ac_err"; then
20815 eval "ac_cv_header_$ac_safe=yes"
20818 echo "configure: failed program was:" >&5
20819 cat conftest.$ac_ext >&5
20821 eval "ac_cv_header_$ac_safe=no"
20825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20826 echo "$ac_t""yes" 1>&6
20827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20828 cat >> confdefs.h <<EOF
20829 #define $ac_tr_hdr 1
20833 echo "$ac_t""no" 1>&6
20834 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20840 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20841 echo "configure:20842: checking for SQLDriverConnect in -liodbc" >&5
20842 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20843 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20844 echo $ac_n "(cached) $ac_c" 1>&6
20846 ac_save_LIBS="$LIBS"
20847 LIBS="-liodbc $LIBS"
20848 cat > conftest.$ac_ext <<EOF
20849 #line 20850 "configure"
20850 #include "confdefs.h"
20851 /* Override any gcc2 internal prototype to avoid an error. */
20852 /* We use char because int might match the return type of a gcc2
20853 builtin and then its argument prototype would still apply. */
20854 char SQLDriverConnect();
20860 if { (eval echo configure:20861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20862 eval "ac_cv_lib_$ac_lib_var=yes"
20864 echo "configure: failed program was:" >&5
20865 cat conftest.$ac_ext >&5
20867 eval "ac_cv_lib_$ac_lib_var=no"
20870 LIBS="$ac_save_LIBS"
20873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20874 echo "$ac_t""yes" 1>&6
20877 echo "$ac_t""no" 1>&6
20881 if test $have_iodbc = yes ; then
20882 ol_link_sql="-liodbc"
20884 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20885 echo "configure:20886: checking for SQLDriverConnect in -lodbc" >&5
20886 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20888 echo $ac_n "(cached) $ac_c" 1>&6
20890 ac_save_LIBS="$LIBS"
20891 LIBS="-lodbc $LIBS"
20892 cat > conftest.$ac_ext <<EOF
20893 #line 20894 "configure"
20894 #include "confdefs.h"
20895 /* Override any gcc2 internal prototype to avoid an error. */
20896 /* We use char because int might match the return type of a gcc2
20897 builtin and then its argument prototype would still apply. */
20898 char SQLDriverConnect();
20904 if { (eval echo configure:20905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20906 eval "ac_cv_lib_$ac_lib_var=yes"
20908 echo "configure: failed program was:" >&5
20909 cat conftest.$ac_ext >&5
20911 eval "ac_cv_lib_$ac_lib_var=no"
20914 LIBS="$ac_save_LIBS"
20917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20918 echo "$ac_t""yes" 1>&6
20921 echo "$ac_t""no" 1>&6
20925 if test $have_odbc = yes ; then
20926 ol_link_sql="-lodbc"
20930 if test $ol_link_sql != no ; then
20931 SLAPD_SQL_LIBS="$ol_link_sql"
20933 elif test $ol_enable_sql != auto ; then
20934 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20941 if test $ol_with_cyrus_sasl != no ; then
20942 for ac_hdr in sasl/sasl.h sasl.h
20944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20946 echo "configure:20947: checking for $ac_hdr" >&5
20947 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20948 echo $ac_n "(cached) $ac_c" 1>&6
20950 cat > conftest.$ac_ext <<EOF
20951 #line 20952 "configure"
20952 #include "confdefs.h"
20955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20956 { (eval echo configure:20957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20958 if test -z "$ac_err"; then
20960 eval "ac_cv_header_$ac_safe=yes"
20963 echo "configure: failed program was:" >&5
20964 cat conftest.$ac_ext >&5
20966 eval "ac_cv_header_$ac_safe=no"
20970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20971 echo "$ac_t""yes" 1>&6
20972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20973 cat >> confdefs.h <<EOF
20974 #define $ac_tr_hdr 1
20978 echo "$ac_t""no" 1>&6
20983 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20984 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20985 echo "configure:20986: checking for sasl_client_init in -lsasl2" >&5
20986 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20988 echo $ac_n "(cached) $ac_c" 1>&6
20990 ac_save_LIBS="$LIBS"
20991 LIBS="-lsasl2 $LIBS"
20992 cat > conftest.$ac_ext <<EOF
20993 #line 20994 "configure"
20994 #include "confdefs.h"
20995 /* Override any gcc2 internal prototype to avoid an error. */
20996 /* We use char because int might match the return type of a gcc2
20997 builtin and then its argument prototype would still apply. */
20998 char sasl_client_init();
21004 if { (eval echo configure:21005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21006 eval "ac_cv_lib_$ac_lib_var=yes"
21008 echo "configure: failed program was:" >&5
21009 cat conftest.$ac_ext >&5
21011 eval "ac_cv_lib_$ac_lib_var=no"
21014 LIBS="$ac_save_LIBS"
21017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21018 echo "$ac_t""yes" 1>&6
21019 ol_link_sasl="-lsasl2"
21021 echo "$ac_t""no" 1>&6
21022 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21023 echo "configure:21024: checking for sasl_client_init in -lsasl" >&5
21024 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21026 echo $ac_n "(cached) $ac_c" 1>&6
21028 ac_save_LIBS="$LIBS"
21029 LIBS="-lsasl $LIBS"
21030 cat > conftest.$ac_ext <<EOF
21031 #line 21032 "configure"
21032 #include "confdefs.h"
21033 /* Override any gcc2 internal prototype to avoid an error. */
21034 /* We use char because int might match the return type of a gcc2
21035 builtin and then its argument prototype would still apply. */
21036 char sasl_client_init();
21042 if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21044 eval "ac_cv_lib_$ac_lib_var=yes"
21046 echo "configure: failed program was:" >&5
21047 cat conftest.$ac_ext >&5
21049 eval "ac_cv_lib_$ac_lib_var=no"
21052 LIBS="$ac_save_LIBS"
21055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21056 echo "$ac_t""yes" 1>&6
21057 ol_link_sasl="-lsasl"
21059 echo "$ac_t""no" 1>&6
21066 if test $ol_link_sasl = no ; then
21067 if test $ol_with_cyrus_sasl != auto ; then
21068 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21070 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21071 echo "configure: warning: SASL authentication not supported!" 1>&2
21072 if test $ol_link_tls = no ; then
21073 echo "configure: warning: Strong authentication not supported!" 1>&2
21077 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21078 echo "configure:21079: checking Cyrus SASL library version" >&5
21079 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21080 echo $ac_n "(cached) $ac_c" 1>&6
21083 cat > conftest.$ac_ext <<EOF
21084 #line 21085 "configure"
21085 #include "confdefs.h"
21087 #ifdef HAVE_SASL_SASL_H
21088 #include <sasl/sasl.h>
21093 /* Require 2.1.15+ */
21094 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21095 char *__sasl_compat = "2.2+ or better okay (we guess)";
21096 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21097 && SASL_VERSION_STEP >=15
21098 char *__sasl_compat = "2.1.15+ or better okay";
21102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21103 egrep "__sasl_compat" >/dev/null 2>&1; then
21105 ol_cv_sasl_compat=yes
21108 ol_cv_sasl_compat=no
21114 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21116 if test $ol_cv_sasl_compat = no ; then
21118 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
21121 cat >> confdefs.h <<\EOF
21122 #define HAVE_CYRUS_SASL 1
21125 SASL_LIBS="$ol_link_sasl"
21126 if test $ol_enable_spasswd != no ; then
21127 ol_link_spasswd=yes
21130 ac_save_LIBS="$LIBS"
21131 LIBS="$LIBS $ol_link_sasl"
21132 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21133 echo "configure:21134: checking for sasl_version" >&5
21134 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21135 echo $ac_n "(cached) $ac_c" 1>&6
21137 cat > conftest.$ac_ext <<EOF
21138 #line 21139 "configure"
21139 #include "confdefs.h"
21140 /* System header to define __stub macros and hopefully few prototypes,
21141 which can conflict with char sasl_version(); below. */
21142 #include <assert.h>
21143 /* Override any gcc2 internal prototype to avoid an error. */
21144 /* We use char because int might match the return type of a gcc2
21145 builtin and then its argument prototype would still apply. */
21146 char sasl_version();
21151 /* The GNU C library defines this for functions which it implements
21152 to always fail with ENOSYS. Some functions are actually named
21153 something starting with __ and the normal name is an alias. */
21154 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21162 if { (eval echo configure:21163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21164 eval "ac_cv_func_sasl_version=yes"
21166 echo "configure: failed program was:" >&5
21167 cat conftest.$ac_ext >&5
21169 eval "ac_cv_func_sasl_version=no"
21174 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21175 echo "$ac_t""yes" 1>&6
21176 cat >> confdefs.h <<\EOF
21177 #define HAVE_SASL_VERSION 1
21181 echo "$ac_t""no" 1>&6
21184 LIBS="$ac_save_LIBS"
21190 echo "configure: warning: SASL authentication not supported!" 1>&2
21191 if test $ol_link_tls = no ; then
21192 echo "configure: warning: Strong authentication not supported!" 1>&2
21196 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21198 if test -r /dev/urandom ; then
21199 dev="/dev/urandom";
21200 elif test -r /idev/urandom ; then
21201 dev="/idev/urandom";
21202 elif test -r /dev/srandom ; then
21203 dev="/dev/srandom";
21204 elif test -r /dev/random ; then
21206 elif test -r /idev/random ; then
21207 dev="/idev/random";
21210 if test $dev != no ; then
21211 cat >> confdefs.h <<EOF
21212 #define URANDOM_DEVICE "$dev"
21219 if test $ol_with_fetch != no ; then
21221 LIBS="-lfetch -lcom_err $LIBS"
21222 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21223 echo "configure:21224: checking fetch(3) library" >&5
21224 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21225 echo $ac_n "(cached) $ac_c" 1>&6
21228 cat > conftest.$ac_ext <<EOF
21229 #line 21230 "configure"
21230 #include "confdefs.h"
21232 #include <sys/param.h>
21236 struct url *u = fetchParseURL("file:///");
21239 if { (eval echo configure:21240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21241 ol_cv_lib_fetch=yes
21243 echo "configure: failed program was:" >&5
21244 cat conftest.$ac_ext >&5
21251 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21253 if test $ol_cv_lib_fetch != no ; then
21254 ol_link_fetch="-lfetch -lcom_err"
21255 cat >> confdefs.h <<\EOF
21256 #define HAVE_FETCH 1
21262 if test $ol_cv_lib_fetch != no ; then
21263 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21264 ol_link_fetch=freebsd
21266 elif test $ol_with_fetch != auto ; then
21267 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21271 if test $ol_enable_crypt != no ; then
21273 LIBS="$TLS_LIBS $LIBS"
21275 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21276 echo "configure:21277: checking for crypt" >&5
21277 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21278 echo $ac_n "(cached) $ac_c" 1>&6
21280 cat > conftest.$ac_ext <<EOF
21281 #line 21282 "configure"
21282 #include "confdefs.h"
21283 /* System header to define __stub macros and hopefully few prototypes,
21284 which can conflict with char crypt(); below. */
21285 #include <assert.h>
21286 /* Override any gcc2 internal prototype to avoid an error. */
21287 /* We use char because int might match the return type of a gcc2
21288 builtin and then its argument prototype would still apply. */
21294 /* The GNU C library defines this for functions which it implements
21295 to always fail with ENOSYS. Some functions are actually named
21296 something starting with __ and the normal name is an alias. */
21297 #if defined (__stub_crypt) || defined (__stub___crypt)
21305 if { (eval echo configure:21306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21307 eval "ac_cv_func_crypt=yes"
21309 echo "configure: failed program was:" >&5
21310 cat conftest.$ac_ext >&5
21312 eval "ac_cv_func_crypt=no"
21317 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21318 echo "$ac_t""yes" 1>&6
21321 echo "$ac_t""no" 1>&6
21324 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21325 echo "configure:21326: checking for crypt in -lcrypt" >&5
21326 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21327 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21328 echo $ac_n "(cached) $ac_c" 1>&6
21330 ac_save_LIBS="$LIBS"
21331 LIBS="-lcrypt $LIBS"
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21335 /* Override any gcc2 internal prototype to avoid an error. */
21336 /* We use char because int might match the return type of a gcc2
21337 builtin and then its argument prototype would still apply. */
21344 if { (eval echo configure:21345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21346 eval "ac_cv_lib_$ac_lib_var=yes"
21348 echo "configure: failed program was:" >&5
21349 cat conftest.$ac_ext >&5
21351 eval "ac_cv_lib_$ac_lib_var=no"
21354 LIBS="$ac_save_LIBS"
21357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21358 echo "$ac_t""yes" 1>&6
21359 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21362 echo "$ac_t""no" 1>&6
21371 if test $have_crypt = yes ; then
21372 cat >> confdefs.h <<\EOF
21373 #define HAVE_CRYPT 1
21377 echo "configure: warning: could not find crypt" 1>&2
21378 if test $ol_enable_crypt = yes ; then
21379 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21382 echo "configure: warning: disabling crypt support" 1>&2
21387 if test $ol_enable_proctitle != no ; then
21388 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21389 echo "configure:21390: checking for setproctitle" >&5
21390 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21391 echo $ac_n "(cached) $ac_c" 1>&6
21393 cat > conftest.$ac_ext <<EOF
21394 #line 21395 "configure"
21395 #include "confdefs.h"
21396 /* System header to define __stub macros and hopefully few prototypes,
21397 which can conflict with char setproctitle(); below. */
21398 #include <assert.h>
21399 /* Override any gcc2 internal prototype to avoid an error. */
21400 /* We use char because int might match the return type of a gcc2
21401 builtin and then its argument prototype would still apply. */
21402 char setproctitle();
21407 /* The GNU C library defines this for functions which it implements
21408 to always fail with ENOSYS. Some functions are actually named
21409 something starting with __ and the normal name is an alias. */
21410 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21418 if { (eval echo configure:21419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21420 eval "ac_cv_func_setproctitle=yes"
21422 echo "configure: failed program was:" >&5
21423 cat conftest.$ac_ext >&5
21425 eval "ac_cv_func_setproctitle=no"
21430 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21431 echo "$ac_t""yes" 1>&6
21432 have_setproctitle=yes
21434 echo "$ac_t""no" 1>&6
21436 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21437 echo "configure:21438: checking for setproctitle in -lutil" >&5
21438 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21439 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21440 echo $ac_n "(cached) $ac_c" 1>&6
21442 ac_save_LIBS="$LIBS"
21443 LIBS="-lutil $LIBS"
21444 cat > conftest.$ac_ext <<EOF
21445 #line 21446 "configure"
21446 #include "confdefs.h"
21447 /* Override any gcc2 internal prototype to avoid an error. */
21448 /* We use char because int might match the return type of a gcc2
21449 builtin and then its argument prototype would still apply. */
21450 char setproctitle();
21456 if { (eval echo configure:21457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21458 eval "ac_cv_lib_$ac_lib_var=yes"
21460 echo "configure: failed program was:" >&5
21461 cat conftest.$ac_ext >&5
21463 eval "ac_cv_lib_$ac_lib_var=no"
21466 LIBS="$ac_save_LIBS"
21469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21470 echo "$ac_t""yes" 1>&6
21471 have_setproctitle=yes
21472 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21474 echo "$ac_t""no" 1>&6
21475 have_setproctitle=no
21476 LIBOBJS="$LIBOBJS setproctitle.o"
21477 LIBSRCS="$LIBSRCS setproctitle.c"
21483 if test $have_setproctitle = yes ; then
21484 cat >> confdefs.h <<\EOF
21485 #define HAVE_SETPROCTITLE 1
21491 if test $ol_enable_slp != no ; then
21492 for ac_hdr in slp.h
21494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21496 echo "configure:21497: checking for $ac_hdr" >&5
21497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21498 echo $ac_n "(cached) $ac_c" 1>&6
21500 cat > conftest.$ac_ext <<EOF
21501 #line 21502 "configure"
21502 #include "confdefs.h"
21505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21506 { (eval echo configure:21507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21508 if test -z "$ac_err"; then
21510 eval "ac_cv_header_$ac_safe=yes"
21513 echo "configure: failed program was:" >&5
21514 cat conftest.$ac_ext >&5
21516 eval "ac_cv_header_$ac_safe=no"
21520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21521 echo "$ac_t""yes" 1>&6
21522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21523 cat >> confdefs.h <<EOF
21524 #define $ac_tr_hdr 1
21528 echo "$ac_t""no" 1>&6
21533 if test $ac_cv_header_slp_h = yes ; then
21534 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21535 echo "configure:21536: checking for SLPOpen in -lslp" >&5
21536 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21537 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21538 echo $ac_n "(cached) $ac_c" 1>&6
21540 ac_save_LIBS="$LIBS"
21542 cat > conftest.$ac_ext <<EOF
21543 #line 21544 "configure"
21544 #include "confdefs.h"
21545 /* Override any gcc2 internal prototype to avoid an error. */
21546 /* We use char because int might match the return type of a gcc2
21547 builtin and then its argument prototype would still apply. */
21554 if { (eval echo configure:21555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21556 eval "ac_cv_lib_$ac_lib_var=yes"
21558 echo "configure: failed program was:" >&5
21559 cat conftest.$ac_ext >&5
21561 eval "ac_cv_lib_$ac_lib_var=no"
21564 LIBS="$ac_save_LIBS"
21567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21568 echo "$ac_t""yes" 1>&6
21571 echo "$ac_t""no" 1>&6
21575 if test $have_slp = yes ; then
21576 cat >> confdefs.h <<\EOF
21580 SLAPD_SLP_LIBS=-lslp
21583 elif test $ol_enable_slp = yes ; then
21584 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21588 for ac_hdr in gmp.h
21590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21592 echo "configure:21593: checking for $ac_hdr" >&5
21593 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21594 echo $ac_n "(cached) $ac_c" 1>&6
21596 cat > conftest.$ac_ext <<EOF
21597 #line 21598 "configure"
21598 #include "confdefs.h"
21601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21602 { (eval echo configure:21603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21604 if test -z "$ac_err"; then
21606 eval "ac_cv_header_$ac_safe=yes"
21609 echo "configure: failed program was:" >&5
21610 cat conftest.$ac_ext >&5
21612 eval "ac_cv_header_$ac_safe=no"
21616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21617 echo "$ac_t""yes" 1>&6
21618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21619 cat >> confdefs.h <<EOF
21620 #define $ac_tr_hdr 1
21624 echo "$ac_t""no" 1>&6
21629 if test $ac_cv_header_gmp_h = yes ; then
21630 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
21631 echo "configure:21632: checking for __gmpz_add_ui in -lgmp" >&5
21632 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
21633 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21634 echo $ac_n "(cached) $ac_c" 1>&6
21636 ac_save_LIBS="$LIBS"
21638 cat > conftest.$ac_ext <<EOF
21639 #line 21640 "configure"
21640 #include "confdefs.h"
21641 /* Override any gcc2 internal prototype to avoid an error. */
21642 /* We use char because int might match the return type of a gcc2
21643 builtin and then its argument prototype would still apply. */
21644 char __gmpz_add_ui();
21650 if { (eval echo configure:21651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21652 eval "ac_cv_lib_$ac_lib_var=yes"
21654 echo "configure: failed program was:" >&5
21655 cat conftest.$ac_ext >&5
21657 eval "ac_cv_lib_$ac_lib_var=no"
21660 LIBS="$ac_save_LIBS"
21663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21664 echo "$ac_t""yes" 1>&6
21667 echo "$ac_t""no" 1>&6
21671 if test $have_gmp = yes ; then
21672 cat >> confdefs.h <<\EOF
21676 SLAPD_GMP_LIBS=-lgmp
21681 echo $ac_n "checking long long""... $ac_c" 1>&6
21682 echo "configure:21683: checking long long" >&5
21683 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21684 echo $ac_n "(cached) $ac_c" 1>&6
21687 cat > conftest.$ac_ext <<EOF
21688 #line 21689 "configure"
21689 #include "confdefs.h"
21695 if { (eval echo configure:21696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21697 ol_cv_type_long_long=yes
21699 echo "configure: failed program was:" >&5
21700 cat conftest.$ac_ext >&5
21702 ol_cv_type_long_long=no
21707 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21708 if test $ol_cv_type_long_long = yes; then
21709 cat >> confdefs.h <<\EOF
21710 #define HAVE_LONG_LONG 1
21715 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21716 echo "configure:21717: checking for ANSI C header files" >&5
21717 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21718 echo $ac_n "(cached) $ac_c" 1>&6
21720 cat > conftest.$ac_ext <<EOF
21721 #line 21722 "configure"
21722 #include "confdefs.h"
21723 #include <stdlib.h>
21724 #include <stdarg.h>
21725 #include <string.h>
21728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21729 { (eval echo configure:21730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21731 if test -z "$ac_err"; then
21733 ac_cv_header_stdc=yes
21736 echo "configure: failed program was:" >&5
21737 cat conftest.$ac_ext >&5
21739 ac_cv_header_stdc=no
21743 if test $ac_cv_header_stdc = yes; then
21744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21745 cat > conftest.$ac_ext <<EOF
21746 #line 21747 "configure"
21747 #include "confdefs.h"
21748 #include <string.h>
21750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21751 egrep "memchr" >/dev/null 2>&1; then
21755 ac_cv_header_stdc=no
21761 if test $ac_cv_header_stdc = yes; then
21762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21763 cat > conftest.$ac_ext <<EOF
21764 #line 21765 "configure"
21765 #include "confdefs.h"
21766 #include <stdlib.h>
21768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21769 egrep "free" >/dev/null 2>&1; then
21773 ac_cv_header_stdc=no
21779 if test $ac_cv_header_stdc = yes; then
21780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21781 if test "$cross_compiling" = yes; then
21784 cat > conftest.$ac_ext <<EOF
21785 #line 21786 "configure"
21786 #include "confdefs.h"
21788 #if ((' ' & 0x0FF) == 0x020)
21789 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21790 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21792 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21793 || ('j' <= (c) && (c) <= 'r') \
21794 || ('s' <= (c) && (c) <= 'z'))
21795 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21798 int main () { int i; for (i = 0; i < 256; i++)
21799 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21803 if { (eval echo configure:21804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21807 echo "configure: failed program was:" >&5
21808 cat conftest.$ac_ext >&5
21810 ac_cv_header_stdc=no
21818 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21819 if test $ac_cv_header_stdc = yes; then
21820 cat >> confdefs.h <<\EOF
21821 #define STDC_HEADERS 1
21826 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21827 echo "configure:21828: checking for mode_t" >&5
21828 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21829 echo $ac_n "(cached) $ac_c" 1>&6
21831 cat > conftest.$ac_ext <<EOF
21832 #line 21833 "configure"
21833 #include "confdefs.h"
21834 #include <sys/types.h>
21836 #include <stdlib.h>
21837 #include <stddef.h>
21841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21842 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21844 eval "ac_cv_type_mode_t=yes"
21847 eval "ac_cv_type_mode_t=no"
21852 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21853 echo "$ac_t""yes" 1>&6
21855 echo "$ac_t""no" 1>&6
21856 cat >> confdefs.h <<EOF
21862 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21863 echo "configure:21864: checking for off_t" >&5
21864 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21865 echo $ac_n "(cached) $ac_c" 1>&6
21867 cat > conftest.$ac_ext <<EOF
21868 #line 21869 "configure"
21869 #include "confdefs.h"
21870 #include <sys/types.h>
21872 #include <stdlib.h>
21873 #include <stddef.h>
21877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21878 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21880 eval "ac_cv_type_off_t=yes"
21883 eval "ac_cv_type_off_t=no"
21888 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21889 echo "$ac_t""yes" 1>&6
21891 echo "$ac_t""no" 1>&6
21892 cat >> confdefs.h <<EOF
21898 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21899 echo "configure:21900: checking for pid_t" >&5
21900 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21901 echo $ac_n "(cached) $ac_c" 1>&6
21903 cat > conftest.$ac_ext <<EOF
21904 #line 21905 "configure"
21905 #include "confdefs.h"
21906 #include <sys/types.h>
21908 #include <stdlib.h>
21909 #include <stddef.h>
21913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21914 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21916 eval "ac_cv_type_pid_t=yes"
21919 eval "ac_cv_type_pid_t=no"
21924 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21925 echo "$ac_t""yes" 1>&6
21927 echo "$ac_t""no" 1>&6
21928 cat >> confdefs.h <<EOF
21934 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21935 echo "configure:21936: checking for ptrdiff_t" >&5
21936 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21937 echo $ac_n "(cached) $ac_c" 1>&6
21939 cat > conftest.$ac_ext <<EOF
21940 #line 21941 "configure"
21941 #include "confdefs.h"
21942 #include <stddef.h>
21947 if { (eval echo configure:21948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21949 am_cv_type_ptrdiff_t=yes
21951 echo "configure: failed program was:" >&5
21952 cat conftest.$ac_ext >&5
21954 am_cv_type_ptrdiff_t=no
21959 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21960 if test $am_cv_type_ptrdiff_t = yes; then
21961 cat >> confdefs.h <<\EOF
21962 #define HAVE_PTRDIFF_T 1
21967 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21968 echo "configure:21969: checking return type of signal handlers" >&5
21969 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21970 echo $ac_n "(cached) $ac_c" 1>&6
21972 cat > conftest.$ac_ext <<EOF
21973 #line 21974 "configure"
21974 #include "confdefs.h"
21975 #include <sys/types.h>
21976 #include <signal.h>
21981 extern "C" void (*signal (int, void (*)(int)))(int);
21983 void (*signal ()) ();
21990 if { (eval echo configure:21991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21992 ac_cv_type_signal=void
21994 echo "configure: failed program was:" >&5
21995 cat conftest.$ac_ext >&5
21997 ac_cv_type_signal=int
22002 echo "$ac_t""$ac_cv_type_signal" 1>&6
22003 cat >> confdefs.h <<EOF
22004 #define RETSIGTYPE $ac_cv_type_signal
22008 echo $ac_n "checking for size_t""... $ac_c" 1>&6
22009 echo "configure:22010: checking for size_t" >&5
22010 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
22011 echo $ac_n "(cached) $ac_c" 1>&6
22013 cat > conftest.$ac_ext <<EOF
22014 #line 22015 "configure"
22015 #include "confdefs.h"
22016 #include <sys/types.h>
22018 #include <stdlib.h>
22019 #include <stddef.h>
22023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22024 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22026 eval "ac_cv_type_size_t=yes"
22029 eval "ac_cv_type_size_t=no"
22034 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
22035 echo "$ac_t""yes" 1>&6
22037 echo "$ac_t""no" 1>&6
22038 cat >> confdefs.h <<EOF
22039 #define size_t unsigned
22045 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
22046 echo "configure:22047: checking for ssize_t" >&5
22047 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
22048 echo $ac_n "(cached) $ac_c" 1>&6
22050 cat > conftest.$ac_ext <<EOF
22051 #line 22052 "configure"
22052 #include "confdefs.h"
22053 #include <sys/types.h>
22055 #include <stdlib.h>
22056 #include <stddef.h>
22060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22061 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22063 eval "ac_cv_type_ssize_t=yes"
22066 eval "ac_cv_type_ssize_t=no"
22071 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
22072 echo "$ac_t""yes" 1>&6
22074 echo "$ac_t""no" 1>&6
22075 cat >> confdefs.h <<EOF
22076 #define ssize_t signed int
22081 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
22082 echo "configure:22083: checking for caddr_t" >&5
22083 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
22084 echo $ac_n "(cached) $ac_c" 1>&6
22086 cat > conftest.$ac_ext <<EOF
22087 #line 22088 "configure"
22088 #include "confdefs.h"
22089 #include <sys/types.h>
22091 #include <stdlib.h>
22092 #include <stddef.h>
22096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22097 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22099 eval "ac_cv_type_caddr_t=yes"
22102 eval "ac_cv_type_caddr_t=no"
22107 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
22108 echo "$ac_t""yes" 1>&6
22110 echo "$ac_t""no" 1>&6
22111 cat >> confdefs.h <<EOF
22112 #define caddr_t char *
22118 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
22119 echo "configure:22120: checking for socklen_t" >&5
22120 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
22121 echo $ac_n "(cached) $ac_c" 1>&6
22123 cat > conftest.$ac_ext <<EOF
22124 #line 22125 "configure"
22125 #include "confdefs.h"
22127 #ifdef HAVE_SYS_TYPES_H
22128 #include <sys/types.h>
22130 #ifdef HAVE_SYS_SOCKET_H
22131 #include <sys/socket.h>
22138 if { (eval echo configure:22139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22140 ol_cv_type_socklen_t=yes
22142 echo "configure: failed program was:" >&5
22143 cat conftest.$ac_ext >&5
22145 ol_cv_type_socklen_t=no
22150 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
22151 if test $ol_cv_type_socklen_t = no; then
22152 cat >> confdefs.h <<\EOF
22153 #define socklen_t int
22158 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22159 echo "configure:22160: checking for member st_blksize in aggregate type struct stat" >&5
22160 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22161 echo $ac_n "(cached) $ac_c" 1>&6
22163 cat > conftest.$ac_ext <<EOF
22164 #line 22165 "configure"
22165 #include "confdefs.h"
22166 #include <sys/types.h>
22167 #include <sys/stat.h>
22169 struct stat foo; foo.st_blksize;
22172 if { (eval echo configure:22173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22174 ac_cv_c_struct_member_st_blksize=yes
22176 echo "configure: failed program was:" >&5
22177 cat conftest.$ac_ext >&5
22179 ac_cv_c_struct_member_st_blksize=no
22184 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22185 st_blksize="$ac_cv_c_struct_member_st_blksize"
22186 if test $ac_cv_c_struct_member_st_blksize = yes; then
22187 cat >> confdefs.h <<\EOF
22188 #define HAVE_ST_BLKSIZE 1
22193 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22194 echo "configure:22195: checking whether time.h and sys/time.h may both be included" >&5
22195 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22196 echo $ac_n "(cached) $ac_c" 1>&6
22198 cat > conftest.$ac_ext <<EOF
22199 #line 22200 "configure"
22200 #include "confdefs.h"
22201 #include <sys/types.h>
22202 #include <sys/time.h>
22208 if { (eval echo configure:22209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22210 ac_cv_header_time=yes
22212 echo "configure: failed program was:" >&5
22213 cat conftest.$ac_ext >&5
22215 ac_cv_header_time=no
22220 echo "$ac_t""$ac_cv_header_time" 1>&6
22221 if test $ac_cv_header_time = yes; then
22222 cat >> confdefs.h <<\EOF
22223 #define TIME_WITH_SYS_TIME 1
22228 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22229 echo "configure:22230: checking whether struct tm is in sys/time.h or time.h" >&5
22230 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22231 echo $ac_n "(cached) $ac_c" 1>&6
22233 cat > conftest.$ac_ext <<EOF
22234 #line 22235 "configure"
22235 #include "confdefs.h"
22236 #include <sys/types.h>
22239 struct tm *tp; tp->tm_sec;
22242 if { (eval echo configure:22243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22244 ac_cv_struct_tm=time.h
22246 echo "configure: failed program was:" >&5
22247 cat conftest.$ac_ext >&5
22249 ac_cv_struct_tm=sys/time.h
22254 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22255 if test $ac_cv_struct_tm = sys/time.h; then
22256 cat >> confdefs.h <<\EOF
22257 #define TM_IN_SYS_TIME 1
22262 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22263 echo "configure:22264: checking for uid_t in sys/types.h" >&5
22264 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22265 echo $ac_n "(cached) $ac_c" 1>&6
22267 cat > conftest.$ac_ext <<EOF
22268 #line 22269 "configure"
22269 #include "confdefs.h"
22270 #include <sys/types.h>
22272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22273 egrep "uid_t" >/dev/null 2>&1; then
22275 ac_cv_type_uid_t=yes
22278 ac_cv_type_uid_t=no
22284 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22285 if test $ac_cv_type_uid_t = no; then
22286 cat >> confdefs.h <<\EOF
22290 cat >> confdefs.h <<\EOF
22296 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22297 echo "configure:22298: checking for sig_atomic_t" >&5
22298 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22299 echo $ac_n "(cached) $ac_c" 1>&6
22301 cat > conftest.$ac_ext <<EOF
22302 #line 22303 "configure"
22303 #include "confdefs.h"
22304 #include <signal.h>
22306 sig_atomic_t atomic;
22309 if { (eval echo configure:22310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22311 ol_cv_type_sig_atomic_t=yes
22313 echo "configure: failed program was:" >&5
22314 cat conftest.$ac_ext >&5
22316 ol_cv_type_sig_atomic_t=no
22321 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22322 if test $ol_cv_type_sig_atomic_t = no; then
22323 cat >> confdefs.h <<\EOF
22324 #define sig_atomic_t int
22331 # test for pw_gecos in struct passwd
22332 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22333 echo "configure:22334: checking struct passwd for pw_gecos" >&5
22334 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22335 echo $ac_n "(cached) $ac_c" 1>&6
22338 cat > conftest.$ac_ext <<EOF
22339 #line 22340 "configure"
22340 #include "confdefs.h"
22345 pwd.pw_gecos = pwd.pw_name;
22349 if { (eval echo configure:22350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22351 ol_cv_struct_passwd_pw_gecos=yes
22353 echo "configure: failed program was:" >&5
22354 cat conftest.$ac_ext >&5
22356 ol_cv_struct_passwd_pw_gecos=no
22361 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22362 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22363 cat >> confdefs.h <<\EOF
22364 #define HAVE_PW_GECOS 1
22369 # test for pw_passwd in struct passwd
22370 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22371 echo "configure:22372: checking struct passwd for pw_passwd" >&5
22372 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22373 echo $ac_n "(cached) $ac_c" 1>&6
22376 cat > conftest.$ac_ext <<EOF
22377 #line 22378 "configure"
22378 #include "confdefs.h"
22383 pwd.pw_passwd = pwd.pw_name;
22387 if { (eval echo configure:22388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22389 ol_cv_struct_passwd_pw_passwd=yes
22391 echo "configure: failed program was:" >&5
22392 cat conftest.$ac_ext >&5
22394 ol_cv_struct_passwd_pw_passwd=no
22399 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22400 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22401 cat >> confdefs.h <<\EOF
22402 #define HAVE_PW_PASSWD 1
22408 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22409 echo "configure:22410: checking if toupper() requires islower()" >&5
22410 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22411 echo $ac_n "(cached) $ac_c" 1>&6
22414 if test "$cross_compiling" = yes; then
22415 ol_cv_c_upper_lower=safe
22417 cat > conftest.$ac_ext <<EOF
22418 #line 22419 "configure"
22419 #include "confdefs.h"
22424 if ('C' == toupper('C'))
22430 if { (eval echo configure:22431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22432 ol_cv_c_upper_lower=no
22434 echo "configure: failed program was:" >&5
22435 cat conftest.$ac_ext >&5
22437 ol_cv_c_upper_lower=yes
22444 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22445 if test $ol_cv_c_upper_lower != no ; then
22446 cat >> confdefs.h <<\EOF
22447 #define C_UPPER_LOWER 1
22452 echo $ac_n "checking for working const""... $ac_c" 1>&6
22453 echo "configure:22454: checking for working const" >&5
22454 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22455 echo $ac_n "(cached) $ac_c" 1>&6
22457 cat > conftest.$ac_ext <<EOF
22458 #line 22459 "configure"
22459 #include "confdefs.h"
22463 /* Ultrix mips cc rejects this. */
22464 typedef int charset[2]; const charset x;
22465 /* SunOS 4.1.1 cc rejects this. */
22466 char const *const *ccp;
22468 /* NEC SVR4.0.2 mips cc rejects this. */
22469 struct point {int x, y;};
22470 static struct point const zero = {0,0};
22471 /* AIX XL C 1.02.0.0 rejects this.
22472 It does not let you subtract one const X* pointer from another in an arm
22473 of an if-expression whose if-part is not a constant expression */
22474 const char *g = "string";
22475 ccp = &g + (g ? g-g : 0);
22476 /* HPUX 7.0 cc rejects these. */
22479 ccp = (char const *const *) p;
22480 { /* SCO 3.2v4 cc rejects this. */
22482 char const *s = 0 ? (char *) 0 : (char const *) 0;
22486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22487 int x[] = {25, 17};
22488 const int *foo = &x[0];
22491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22492 typedef const int *iptr;
22496 { /* AIX XL C 1.02.0.0 rejects this saying
22497 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22498 struct s { int j; const int *ap[3]; };
22499 struct s *b; b->j = 5;
22501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22502 const int foo = 10;
22507 if { (eval echo configure:22508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22511 echo "configure: failed program was:" >&5
22512 cat conftest.$ac_ext >&5
22519 echo "$ac_t""$ac_cv_c_const" 1>&6
22520 if test $ac_cv_c_const = no; then
22521 cat >> confdefs.h <<\EOF
22527 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22528 echo "configure:22529: checking if compiler understands volatile" >&5
22529 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22530 echo $ac_n "(cached) $ac_c" 1>&6
22532 cat > conftest.$ac_ext <<EOF
22533 #line 22534 "configure"
22534 #include "confdefs.h"
22537 volatile int a; int * volatile b = x ? &y : &z;
22538 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22542 if { (eval echo configure:22543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22544 ol_cv_c_volatile=yes
22546 echo "configure: failed program was:" >&5
22547 cat conftest.$ac_ext >&5
22549 ol_cv_c_volatile=no
22554 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22555 if test $ol_cv_c_volatile = yes; then
22558 cat >> confdefs.h <<\EOF
22565 if test $cross_compiling = yes ; then
22566 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22567 cat >> confdefs.h <<\EOF
22568 #define CROSS_COMPILING 1
22572 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22573 echo "configure:22574: checking whether byte ordering is bigendian" >&5
22574 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22575 echo $ac_n "(cached) $ac_c" 1>&6
22577 ac_cv_c_bigendian=unknown
22578 # See if sys/param.h defines the BYTE_ORDER macro.
22579 cat > conftest.$ac_ext <<EOF
22580 #line 22581 "configure"
22581 #include "confdefs.h"
22582 #include <sys/types.h>
22583 #include <sys/param.h>
22586 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22587 bogus endian macros
22591 if { (eval echo configure:22592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22593 # It does; now see whether it defined to BIG_ENDIAN or not.
22594 cat > conftest.$ac_ext <<EOF
22595 #line 22596 "configure"
22596 #include "confdefs.h"
22597 #include <sys/types.h>
22598 #include <sys/param.h>
22601 #if BYTE_ORDER != BIG_ENDIAN
22606 if { (eval echo configure:22607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22608 ac_cv_c_bigendian=yes
22610 echo "configure: failed program was:" >&5
22611 cat conftest.$ac_ext >&5
22613 ac_cv_c_bigendian=no
22617 echo "configure: failed program was:" >&5
22618 cat conftest.$ac_ext >&5
22621 if test $ac_cv_c_bigendian = unknown; then
22622 if test "$cross_compiling" = yes; then
22623 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22625 cat > conftest.$ac_ext <<EOF
22626 #line 22627 "configure"
22627 #include "confdefs.h"
22629 /* Are we little or big endian? From Harbison&Steele. */
22633 char c[sizeof (long)];
22636 exit (u.c[sizeof (long) - 1] == 1);
22639 if { (eval echo configure:22640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22641 ac_cv_c_bigendian=no
22643 echo "configure: failed program was:" >&5
22644 cat conftest.$ac_ext >&5
22646 ac_cv_c_bigendian=yes
22654 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22655 if test $ac_cv_c_bigendian = yes; then
22656 cat >> confdefs.h <<\EOF
22657 #define WORDS_BIGENDIAN 1
22664 echo $ac_n "checking size of short""... $ac_c" 1>&6
22665 echo "configure:22666: checking size of short" >&5
22666 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22667 echo $ac_n "(cached) $ac_c" 1>&6
22669 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22670 cat > conftest.$ac_ext <<EOF
22671 #line 22672 "configure"
22672 #include "confdefs.h"
22673 #include "confdefs.h"
22674 #include <stdlib.h>
22675 #include <sys/types.h>
22679 switch (0) case 0: case (sizeof (short) == $ac_size):;
22682 if { (eval echo configure:22683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22684 ac_cv_sizeof_short=$ac_size
22686 echo "configure: failed program was:" >&5
22687 cat conftest.$ac_ext >&5
22690 if test x$ac_cv_sizeof_short != x ; then break; fi
22695 if test x$ac_cv_sizeof_short = x ; then
22696 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22698 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22699 cat >> confdefs.h <<EOF
22700 #define SIZEOF_SHORT $ac_cv_sizeof_short
22704 echo $ac_n "checking size of int""... $ac_c" 1>&6
22705 echo "configure:22706: checking size of int" >&5
22706 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22707 echo $ac_n "(cached) $ac_c" 1>&6
22709 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22710 cat > conftest.$ac_ext <<EOF
22711 #line 22712 "configure"
22712 #include "confdefs.h"
22713 #include "confdefs.h"
22714 #include <stdlib.h>
22715 #include <sys/types.h>
22719 switch (0) case 0: case (sizeof (int) == $ac_size):;
22722 if { (eval echo configure:22723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22724 ac_cv_sizeof_int=$ac_size
22726 echo "configure: failed program was:" >&5
22727 cat conftest.$ac_ext >&5
22730 if test x$ac_cv_sizeof_int != x ; then break; fi
22735 if test x$ac_cv_sizeof_int = x ; then
22736 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22738 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22739 cat >> confdefs.h <<EOF
22740 #define SIZEOF_INT $ac_cv_sizeof_int
22744 echo $ac_n "checking size of long""... $ac_c" 1>&6
22745 echo "configure:22746: checking size of long" >&5
22746 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22747 echo $ac_n "(cached) $ac_c" 1>&6
22749 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22750 cat > conftest.$ac_ext <<EOF
22751 #line 22752 "configure"
22752 #include "confdefs.h"
22753 #include "confdefs.h"
22754 #include <stdlib.h>
22755 #include <sys/types.h>
22759 switch (0) case 0: case (sizeof (long) == $ac_size):;
22762 if { (eval echo configure:22763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22764 ac_cv_sizeof_long=$ac_size
22766 echo "configure: failed program was:" >&5
22767 cat conftest.$ac_ext >&5
22770 if test x$ac_cv_sizeof_long != x ; then break; fi
22775 if test x$ac_cv_sizeof_long = x ; then
22776 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22778 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22779 cat >> confdefs.h <<EOF
22780 #define SIZEOF_LONG $ac_cv_sizeof_long
22784 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22785 echo "configure:22786: checking size of wchar_t" >&5
22786 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22787 echo $ac_n "(cached) $ac_c" 1>&6
22789 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22790 cat > conftest.$ac_ext <<EOF
22791 #line 22792 "configure"
22792 #include "confdefs.h"
22793 #include "confdefs.h"
22794 #include <stdlib.h>
22795 #include <sys/types.h>
22799 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22802 if { (eval echo configure:22803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22804 ac_cv_sizeof_wchar_t=$ac_size
22806 echo "configure: failed program was:" >&5
22807 cat conftest.$ac_ext >&5
22810 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22815 if test x$ac_cv_sizeof_wchar_t = x ; then
22816 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22818 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22819 cat >> confdefs.h <<EOF
22820 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22825 if test "$ac_cv_sizeof_int" -lt 4 ; then
22826 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22828 cat >> confdefs.h <<\EOF
22829 #define LBER_INT_T long
22833 cat >> confdefs.h <<\EOF
22834 #define LBER_INT_T int
22839 cat >> confdefs.h <<\EOF
22840 #define LBER_LEN_T long
22843 cat >> confdefs.h <<\EOF
22844 #define LBER_SOCKET_T int
22847 cat >> confdefs.h <<\EOF
22848 #define LBER_TAG_T long
22852 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22853 echo "configure:22854: checking for 8-bit clean memcmp" >&5
22854 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22855 echo $ac_n "(cached) $ac_c" 1>&6
22857 if test "$cross_compiling" = yes; then
22858 ac_cv_func_memcmp_clean=no
22860 cat > conftest.$ac_ext <<EOF
22861 #line 22862 "configure"
22862 #include "confdefs.h"
22866 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22867 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22871 if { (eval echo configure:22872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22873 ac_cv_func_memcmp_clean=yes
22875 echo "configure: failed program was:" >&5
22876 cat conftest.$ac_ext >&5
22878 ac_cv_func_memcmp_clean=no
22885 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22886 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22888 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22889 echo "configure:22890: checking for strftime" >&5
22890 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22891 echo $ac_n "(cached) $ac_c" 1>&6
22893 cat > conftest.$ac_ext <<EOF
22894 #line 22895 "configure"
22895 #include "confdefs.h"
22896 /* System header to define __stub macros and hopefully few prototypes,
22897 which can conflict with char strftime(); below. */
22898 #include <assert.h>
22899 /* Override any gcc2 internal prototype to avoid an error. */
22900 /* We use char because int might match the return type of a gcc2
22901 builtin and then its argument prototype would still apply. */
22907 /* The GNU C library defines this for functions which it implements
22908 to always fail with ENOSYS. Some functions are actually named
22909 something starting with __ and the normal name is an alias. */
22910 #if defined (__stub_strftime) || defined (__stub___strftime)
22918 if { (eval echo configure:22919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22920 eval "ac_cv_func_strftime=yes"
22922 echo "configure: failed program was:" >&5
22923 cat conftest.$ac_ext >&5
22925 eval "ac_cv_func_strftime=no"
22930 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22931 echo "$ac_t""yes" 1>&6
22932 cat >> confdefs.h <<\EOF
22933 #define HAVE_STRFTIME 1
22937 echo "$ac_t""no" 1>&6
22938 # strftime is in -lintl on SCO UNIX.
22939 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22940 echo "configure:22941: checking for strftime in -lintl" >&5
22941 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22943 echo $ac_n "(cached) $ac_c" 1>&6
22945 ac_save_LIBS="$LIBS"
22946 LIBS="-lintl $LIBS"
22947 cat > conftest.$ac_ext <<EOF
22948 #line 22949 "configure"
22949 #include "confdefs.h"
22950 /* Override any gcc2 internal prototype to avoid an error. */
22951 /* We use char because int might match the return type of a gcc2
22952 builtin and then its argument prototype would still apply. */
22959 if { (eval echo configure:22960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22961 eval "ac_cv_lib_$ac_lib_var=yes"
22963 echo "configure: failed program was:" >&5
22964 cat conftest.$ac_ext >&5
22966 eval "ac_cv_lib_$ac_lib_var=no"
22969 LIBS="$ac_save_LIBS"
22972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22973 echo "$ac_t""yes" 1>&6
22974 cat >> confdefs.h <<\EOF
22975 #define HAVE_STRFTIME 1
22978 LIBS="-lintl $LIBS"
22980 echo "$ac_t""no" 1>&6
22986 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22987 echo "configure:22988: checking for inet_aton()" >&5
22988 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22989 echo $ac_n "(cached) $ac_c" 1>&6
22991 cat > conftest.$ac_ext <<EOF
22992 #line 22993 "configure"
22993 #include "confdefs.h"
22995 #ifdef HAVE_SYS_TYPES_H
22996 # include <sys/types.h>
22998 #ifdef HAVE_SYS_SOCKET_H
22999 # include <sys/socket.h>
23000 # ifdef HAVE_SYS_SELECT_H
23001 # include <sys/select.h>
23003 # include <netinet/in.h>
23004 # ifdef HAVE_ARPA_INET_H
23005 # include <arpa/inet.h>
23011 int rc = inet_aton( "255.255.255.255", &in );
23014 if { (eval echo configure:23015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23016 ol_cv_func_inet_aton=yes
23018 echo "configure: failed program was:" >&5
23019 cat conftest.$ac_ext >&5
23021 ol_cv_func_inet_aton=no
23026 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
23027 if test $ol_cv_func_inet_aton != no; then
23028 cat >> confdefs.h <<\EOF
23029 #define HAVE_INET_ATON 1
23035 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
23036 echo "configure:23037: checking for _spawnlp" >&5
23037 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
23038 echo $ac_n "(cached) $ac_c" 1>&6
23040 cat > conftest.$ac_ext <<EOF
23041 #line 23042 "configure"
23042 #include "confdefs.h"
23043 /* System header to define __stub macros and hopefully few prototypes,
23044 which can conflict with char _spawnlp(); below. */
23045 #include <assert.h>
23046 /* Override any gcc2 internal prototype to avoid an error. */
23047 /* We use char because int might match the return type of a gcc2
23048 builtin and then its argument prototype would still apply. */
23054 /* The GNU C library defines this for functions which it implements
23055 to always fail with ENOSYS. Some functions are actually named
23056 something starting with __ and the normal name is an alias. */
23057 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
23065 if { (eval echo configure:23066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23067 eval "ac_cv_func__spawnlp=yes"
23069 echo "configure: failed program was:" >&5
23070 cat conftest.$ac_ext >&5
23072 eval "ac_cv_func__spawnlp=no"
23077 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
23078 echo "$ac_t""yes" 1>&6
23079 cat >> confdefs.h <<\EOF
23080 #define HAVE_SPAWNLP 1
23084 echo "$ac_t""no" 1>&6
23088 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
23089 echo "configure:23090: checking for _snprintf" >&5
23090 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
23091 echo $ac_n "(cached) $ac_c" 1>&6
23093 cat > conftest.$ac_ext <<EOF
23094 #line 23095 "configure"
23095 #include "confdefs.h"
23096 /* System header to define __stub macros and hopefully few prototypes,
23097 which can conflict with char _snprintf(); below. */
23098 #include <assert.h>
23099 /* Override any gcc2 internal prototype to avoid an error. */
23100 /* We use char because int might match the return type of a gcc2
23101 builtin and then its argument prototype would still apply. */
23107 /* The GNU C library defines this for functions which it implements
23108 to always fail with ENOSYS. Some functions are actually named
23109 something starting with __ and the normal name is an alias. */
23110 #if defined (__stub__snprintf) || defined (__stub____snprintf)
23118 if { (eval echo configure:23119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23120 eval "ac_cv_func__snprintf=yes"
23122 echo "configure: failed program was:" >&5
23123 cat conftest.$ac_ext >&5
23125 eval "ac_cv_func__snprintf=no"
23130 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
23131 echo "$ac_t""yes" 1>&6
23132 ac_cv_func_snprintf=yes
23133 cat >> confdefs.h <<\EOF
23134 #define snprintf _snprintf
23139 echo "$ac_t""no" 1>&6
23143 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
23144 echo "configure:23145: checking for _vsnprintf" >&5
23145 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
23146 echo $ac_n "(cached) $ac_c" 1>&6
23148 cat > conftest.$ac_ext <<EOF
23149 #line 23150 "configure"
23150 #include "confdefs.h"
23151 /* System header to define __stub macros and hopefully few prototypes,
23152 which can conflict with char _vsnprintf(); below. */
23153 #include <assert.h>
23154 /* Override any gcc2 internal prototype to avoid an error. */
23155 /* We use char because int might match the return type of a gcc2
23156 builtin and then its argument prototype would still apply. */
23162 /* The GNU C library defines this for functions which it implements
23163 to always fail with ENOSYS. Some functions are actually named
23164 something starting with __ and the normal name is an alias. */
23165 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
23173 if { (eval echo configure:23174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23175 eval "ac_cv_func__vsnprintf=yes"
23177 echo "configure: failed program was:" >&5
23178 cat conftest.$ac_ext >&5
23180 eval "ac_cv_func__vsnprintf=no"
23185 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
23186 echo "$ac_t""yes" 1>&6
23187 ac_cv_func_vsnprintf=yes
23188 cat >> confdefs.h <<\EOF
23189 #define vsnprintf _vsnprintf
23194 echo "$ac_t""no" 1>&6
23198 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23199 echo "configure:23200: checking for vprintf" >&5
23200 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23201 echo $ac_n "(cached) $ac_c" 1>&6
23203 cat > conftest.$ac_ext <<EOF
23204 #line 23205 "configure"
23205 #include "confdefs.h"
23206 /* System header to define __stub macros and hopefully few prototypes,
23207 which can conflict with char vprintf(); below. */
23208 #include <assert.h>
23209 /* Override any gcc2 internal prototype to avoid an error. */
23210 /* We use char because int might match the return type of a gcc2
23211 builtin and then its argument prototype would still apply. */
23217 /* The GNU C library defines this for functions which it implements
23218 to always fail with ENOSYS. Some functions are actually named
23219 something starting with __ and the normal name is an alias. */
23220 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23228 if { (eval echo configure:23229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23230 eval "ac_cv_func_vprintf=yes"
23232 echo "configure: failed program was:" >&5
23233 cat conftest.$ac_ext >&5
23235 eval "ac_cv_func_vprintf=no"
23240 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23241 echo "$ac_t""yes" 1>&6
23242 cat >> confdefs.h <<\EOF
23243 #define HAVE_VPRINTF 1
23247 echo "$ac_t""no" 1>&6
23250 if test "$ac_cv_func_vprintf" != yes; then
23251 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23252 echo "configure:23253: checking for _doprnt" >&5
23253 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23254 echo $ac_n "(cached) $ac_c" 1>&6
23256 cat > conftest.$ac_ext <<EOF
23257 #line 23258 "configure"
23258 #include "confdefs.h"
23259 /* System header to define __stub macros and hopefully few prototypes,
23260 which can conflict with char _doprnt(); below. */
23261 #include <assert.h>
23262 /* Override any gcc2 internal prototype to avoid an error. */
23263 /* We use char because int might match the return type of a gcc2
23264 builtin and then its argument prototype would still apply. */
23270 /* The GNU C library defines this for functions which it implements
23271 to always fail with ENOSYS. Some functions are actually named
23272 something starting with __ and the normal name is an alias. */
23273 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23281 if { (eval echo configure:23282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23283 eval "ac_cv_func__doprnt=yes"
23285 echo "configure: failed program was:" >&5
23286 cat conftest.$ac_ext >&5
23288 eval "ac_cv_func__doprnt=no"
23293 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23294 echo "$ac_t""yes" 1>&6
23295 cat >> confdefs.h <<\EOF
23296 #define HAVE_DOPRNT 1
23300 echo "$ac_t""no" 1>&6
23306 if test $ac_cv_func_vprintf = yes ; then
23307 for ac_func in snprintf vsnprintf
23309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23310 echo "configure:23311: checking for $ac_func" >&5
23311 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23312 echo $ac_n "(cached) $ac_c" 1>&6
23314 cat > conftest.$ac_ext <<EOF
23315 #line 23316 "configure"
23316 #include "confdefs.h"
23317 /* System header to define __stub macros and hopefully few prototypes,
23318 which can conflict with char $ac_func(); below. */
23319 #include <assert.h>
23320 /* Override any gcc2 internal prototype to avoid an error. */
23321 /* We use char because int might match the return type of a gcc2
23322 builtin and then its argument prototype would still apply. */
23328 /* The GNU C library defines this for functions which it implements
23329 to always fail with ENOSYS. Some functions are actually named
23330 something starting with __ and the normal name is an alias. */
23331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23339 if { (eval echo configure:23340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23341 eval "ac_cv_func_$ac_func=yes"
23343 echo "configure: failed program was:" >&5
23344 cat conftest.$ac_ext >&5
23346 eval "ac_cv_func_$ac_func=no"
23351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23352 echo "$ac_t""yes" 1>&6
23353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23354 cat >> confdefs.h <<EOF
23355 #define $ac_tr_func 1
23359 echo "$ac_t""no" 1>&6
23423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23424 echo "configure:23425: checking for $ac_func" >&5
23425 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23426 echo $ac_n "(cached) $ac_c" 1>&6
23428 cat > conftest.$ac_ext <<EOF
23429 #line 23430 "configure"
23430 #include "confdefs.h"
23431 /* System header to define __stub macros and hopefully few prototypes,
23432 which can conflict with char $ac_func(); below. */
23433 #include <assert.h>
23434 /* Override any gcc2 internal prototype to avoid an error. */
23435 /* We use char because int might match the return type of a gcc2
23436 builtin and then its argument prototype would still apply. */
23442 /* The GNU C library defines this for functions which it implements
23443 to always fail with ENOSYS. Some functions are actually named
23444 something starting with __ and the normal name is an alias. */
23445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23453 if { (eval echo configure:23454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23455 eval "ac_cv_func_$ac_func=yes"
23457 echo "configure: failed program was:" >&5
23458 cat conftest.$ac_ext >&5
23460 eval "ac_cv_func_$ac_func=no"
23465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23466 echo "$ac_t""yes" 1>&6
23467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23468 cat >> confdefs.h <<EOF
23469 #define $ac_tr_func 1
23473 echo "$ac_t""no" 1>&6
23478 for ac_func in getopt getpeereid
23480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23481 echo "configure:23482: checking for $ac_func" >&5
23482 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23483 echo $ac_n "(cached) $ac_c" 1>&6
23485 cat > conftest.$ac_ext <<EOF
23486 #line 23487 "configure"
23487 #include "confdefs.h"
23488 /* System header to define __stub macros and hopefully few prototypes,
23489 which can conflict with char $ac_func(); below. */
23490 #include <assert.h>
23491 /* Override any gcc2 internal prototype to avoid an error. */
23492 /* We use char because int might match the return type of a gcc2
23493 builtin and then its argument prototype would still apply. */
23499 /* The GNU C library defines this for functions which it implements
23500 to always fail with ENOSYS. Some functions are actually named
23501 something starting with __ and the normal name is an alias. */
23502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23510 if { (eval echo configure:23511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23512 eval "ac_cv_func_$ac_func=yes"
23514 echo "configure: failed program was:" >&5
23515 cat conftest.$ac_ext >&5
23517 eval "ac_cv_func_$ac_func=no"
23522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23523 echo "$ac_t""yes" 1>&6
23524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23525 cat >> confdefs.h <<EOF
23526 #define $ac_tr_func 1
23530 echo "$ac_t""no" 1>&6
23531 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23537 if test "$ac_cv_func_getopt" != yes; then
23538 LIBSRCS="$LIBSRCS getopt.c"
23540 if test "$ac_cv_func_getpeereid" != yes; then
23541 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23542 echo "configure:23543: checking for msg_accrights in msghdr" >&5
23543 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23544 echo $ac_n "(cached) $ac_c" 1>&6
23546 cat > conftest.$ac_ext <<EOF
23547 #line 23548 "configure"
23548 #include "confdefs.h"
23549 #include <sys/socket.h>
23551 struct msghdr m; m.msg_accrightslen=0
23554 if { (eval echo configure:23555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23556 ol_cv_msghdr_msg_accrights=yes
23558 echo "configure: failed program was:" >&5
23559 cat conftest.$ac_ext >&5
23561 ol_cv_msghdr_msg_accrights=no
23567 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23568 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23569 cat >> confdefs.h <<\EOF
23570 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23575 LIBSRCS="$LIBSRCS getpeereid.c"
23577 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23578 if test "$ac_cv_func_snprintf" != yes; then
23579 cat >> confdefs.h <<\EOF
23580 #define snprintf ber_pvt_snprintf
23584 if test "$ac_cv_func_vsnprintf" != yes; then
23585 cat >> confdefs.h <<\EOF
23586 #define vsnprintf ber_pvt_vsnprintf
23593 if test "$ol_enable_slapi" != no ; then
23594 for ac_hdr in ltdl.h
23596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23598 echo "configure:23599: checking for $ac_hdr" >&5
23599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23600 echo $ac_n "(cached) $ac_c" 1>&6
23602 cat > conftest.$ac_ext <<EOF
23603 #line 23604 "configure"
23604 #include "confdefs.h"
23607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23608 { (eval echo configure:23609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23610 if test -z "$ac_err"; then
23612 eval "ac_cv_header_$ac_safe=yes"
23615 echo "configure: failed program was:" >&5
23616 cat conftest.$ac_ext >&5
23618 eval "ac_cv_header_$ac_safe=no"
23622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23623 echo "$ac_t""yes" 1>&6
23624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23625 cat >> confdefs.h <<EOF
23626 #define $ac_tr_hdr 1
23630 echo "$ac_t""no" 1>&6
23635 if test $ac_cv_header_ltdl_h != yes ; then
23636 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23638 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23639 echo "configure:23640: checking for lt_dlinit in -lltdl" >&5
23640 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23642 echo $ac_n "(cached) $ac_c" 1>&6
23644 ac_save_LIBS="$LIBS"
23645 LIBS="-lltdl $LIBS"
23646 cat > conftest.$ac_ext <<EOF
23647 #line 23648 "configure"
23648 #include "confdefs.h"
23649 /* Override any gcc2 internal prototype to avoid an error. */
23650 /* We use char because int might match the return type of a gcc2
23651 builtin and then its argument prototype would still apply. */
23658 if { (eval echo configure:23659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23660 eval "ac_cv_lib_$ac_lib_var=yes"
23662 echo "configure: failed program was:" >&5
23663 cat conftest.$ac_ext >&5
23665 eval "ac_cv_lib_$ac_lib_var=no"
23668 LIBS="$ac_save_LIBS"
23671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23672 echo "$ac_t""yes" 1>&6
23675 LIBSLAPI=libslapi.a
23676 LIBSLAPITOOLS=../libslapi.a
23677 cat >> confdefs.h <<\EOF
23678 #define HAVE_LIBLTDL 1
23683 echo "$ac_t""no" 1>&6
23684 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23688 cat >> confdefs.h <<\EOF
23689 #define LDAP_SLAPI 1
23694 if test "$ol_enable_debug" != no ; then
23695 cat >> confdefs.h <<\EOF
23696 #define LDAP_DEBUG 1
23700 if test "$ol_enable_syslog" = yes ; then
23701 cat >> confdefs.h <<\EOF
23702 #define LDAP_SYSLOG 1
23706 if test "$ol_link_kbind" != no ; then
23707 cat >> confdefs.h <<\EOF
23708 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23712 if test "$ol_enable_proctitle" != no ; then
23713 cat >> confdefs.h <<\EOF
23714 #define LDAP_PROCTITLE 1
23718 if test "$ol_enable_referrals" != no ; then
23719 cat >> confdefs.h <<\EOF
23720 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23724 if test "$ol_enable_local" != no; then
23725 cat >> confdefs.h <<\EOF
23726 #define LDAP_PF_LOCAL 1
23730 if test "$ol_link_ipv6" != no; then
23731 cat >> confdefs.h <<\EOF
23732 #define LDAP_PF_INET6 1
23736 if test "$ol_enable_cleartext" != no ; then
23737 cat >> confdefs.h <<\EOF
23738 #define SLAPD_CLEARTEXT 1
23742 if test "$ol_enable_crypt" != no ; then
23743 cat >> confdefs.h <<\EOF
23744 #define SLAPD_CRYPT 1
23748 if test "$ol_link_spasswd" != no ; then
23749 cat >> confdefs.h <<\EOF
23750 #define SLAPD_SPASSWD 1
23754 if test "$ol_enable_multimaster" != no ; then
23755 cat >> confdefs.h <<\EOF
23756 #define SLAPD_MULTIMASTER 1
23760 if test "$ol_enable_rlookups" != no ; then
23761 cat >> confdefs.h <<\EOF
23762 #define SLAPD_RLOOKUPS 1
23766 if test "$ol_enable_aci" != no ; then
23767 cat >> confdefs.h <<\EOF
23768 #define SLAPD_ACI_ENABLED 1
23773 if test "$ol_link_modules" != no ; then
23774 cat >> confdefs.h <<\EOF
23775 #define SLAPD_MODULES 1
23779 SLAPD_MODULES_LDFLAGS="-dlopen self"
23782 cat >> confdefs.h <<\EOF
23783 #define SLAPD_MOD_STATIC 1
23786 cat >> confdefs.h <<\EOF
23787 #define SLAPD_MOD_DYNAMIC 2
23791 if test "$ol_enable_bdb" != no ; then
23793 BUILD_BDB=$ol_enable_bdb
23794 if test "$ol_enable_bdb" = mod ; then
23795 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23796 MFLAG=SLAPD_MOD_DYNAMIC
23798 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23799 MFLAG=SLAPD_MOD_STATIC
23801 cat >> confdefs.h <<EOF
23802 #define SLAPD_BDB $MFLAG
23807 if test "$ol_enable_dnssrv" != no ; then
23809 BUILD_DNSSRV=$ol_enable_dnssrv
23810 if test "$ol_enable_dnssrv" = mod ; then
23811 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23812 MFLAG=SLAPD_MOD_DYNAMIC
23814 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23815 MFLAG=SLAPD_MOD_STATIC
23817 cat >> confdefs.h <<EOF
23818 #define SLAPD_DNSSRV $MFLAG
23823 if test "$ol_enable_hdb" != no ; then
23825 BUILD_HDB=$ol_enable_hdb
23826 if test "$ol_enable_hdb" = mod ; then
23827 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23828 MFLAG=SLAPD_MOD_DYNAMIC
23830 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23831 MFLAG=SLAPD_MOD_STATIC
23833 cat >> confdefs.h <<EOF
23834 #define SLAPD_HDB $MFLAG
23839 if test "$ol_enable_ldap" != no ; then
23841 BUILD_LDAP=$ol_enable_ldap
23842 if test "$ol_enable_ldap" = mod ; then
23843 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23844 MFLAG=SLAPD_MOD_DYNAMIC
23846 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23847 MFLAG=SLAPD_MOD_STATIC
23849 cat >> confdefs.h <<EOF
23850 #define SLAPD_LDAP $MFLAG
23855 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23857 BUILD_LDBM=$ol_enable_ldbm
23858 if test "$ol_enable_ldbm" = mod ; then
23859 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23860 MFLAG=SLAPD_MOD_DYNAMIC
23862 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23863 MFLAG=SLAPD_MOD_STATIC
23865 cat >> confdefs.h <<EOF
23866 #define SLAPD_LDBM $MFLAG
23871 if test "$ol_enable_meta" != no ; then
23873 BUILD_META=$ol_enable_meta
23875 if test "$ol_enable_meta" = mod ; then
23876 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23877 MFLAG=SLAPD_MOD_DYNAMIC
23879 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23880 MFLAG=SLAPD_MOD_STATIC
23882 cat >> confdefs.h <<EOF
23883 #define SLAPD_META $MFLAG
23888 if test "$ol_enable_monitor" != no ; then
23890 BUILD_MONITOR=$ol_enable_monitor
23891 if test "$ol_enable_monitor" = mod ; then
23892 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23893 MFLAG=SLAPD_MOD_DYNAMIC
23895 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23896 MFLAG=SLAPD_MOD_STATIC
23898 cat >> confdefs.h <<EOF
23899 #define SLAPD_MONITOR $MFLAG
23904 if test "$ol_enable_null" != no ; then
23906 BUILD_NULL=$ol_enable_null
23907 if test "$ol_enable_null" = mod ; then
23908 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23909 MFLAG=SLAPD_MOD_DYNAMIC
23911 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23912 MFLAG=SLAPD_MOD_STATIC
23914 cat >> confdefs.h <<EOF
23915 #define SLAPD_NULL $MFLAG
23920 if test "$ol_enable_passwd" != no ; then
23922 BUILD_PASSWD=$ol_enable_passwd
23923 if test "$ol_enable_passwd" = mod ; then
23924 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23925 MFLAG=SLAPD_MOD_DYNAMIC
23927 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23928 MFLAG=SLAPD_MOD_STATIC
23930 cat >> confdefs.h <<EOF
23931 #define SLAPD_PASSWD $MFLAG
23936 if test "$ol_link_perl" != no ; then
23938 BUILD_PERL=$ol_enable_perl
23939 if test "$ol_enable_perl" = mod ; then
23940 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23941 MFLAG=SLAPD_MOD_DYNAMIC
23943 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23944 MFLAG=SLAPD_MOD_STATIC
23946 cat >> confdefs.h <<EOF
23947 #define SLAPD_PERL $MFLAG
23952 if test "$ol_enable_relay" != no ; then
23954 BUILD_RELAY=$ol_enable_relay
23955 if test "$ol_enable_relay" = mod ; then
23956 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23957 MFLAG=SLAPD_MOD_DYNAMIC
23959 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23960 MFLAG=SLAPD_MOD_STATIC
23962 cat >> confdefs.h <<EOF
23963 #define SLAPD_RELAY $MFLAG
23968 if test "$ol_enable_shell" != no ; then
23969 if test "$ol_link_thread" != no ; then
23970 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23973 BUILD_SHELL=$ol_enable_shell
23974 if test "$ol_enable_shell" = mod ; then
23975 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23976 MFLAG=SLAPD_MOD_DYNAMIC
23978 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23979 MFLAG=SLAPD_MOD_STATIC
23981 cat >> confdefs.h <<EOF
23982 #define SLAPD_SHELL $MFLAG
23987 if test "$ol_link_sql" != no ; then
23989 BUILD_SQL=$ol_enable_sql
23990 if test "$ol_enable_sql" = mod; then
23991 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23992 MFLAG=SLAPD_MOD_DYNAMIC
23994 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23995 MFLAG=SLAPD_MOD_STATIC
23997 cat >> confdefs.h <<EOF
23998 #define SLAPD_SQL $MFLAG
24003 if test "$ol_enable_chain" != no ; then
24004 BUILD_CHAIN=$ol_enable_chain
24005 if test "$ol_enable_chain" = mod ; then
24006 MFLAG=SLAPD_MOD_DYNAMIC
24007 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
24009 MFLAG=SLAPD_MOD_STATIC
24011 cat >> confdefs.h <<EOF
24012 #define SLAPD_OVER_CHAIN $MFLAG
24017 if test "$ol_enable_denyop" != no ; then
24018 BUILD_DENYOP=$ol_enable_denyop
24019 if test "$ol_enable_denyop" = mod ; then
24020 MFLAG=SLAPD_MOD_DYNAMIC
24021 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
24023 MFLAG=SLAPD_MOD_STATIC
24025 cat >> confdefs.h <<EOF
24026 #define SLAPD_OVER_DENYOP $MFLAG
24031 if test "$ol_enable_dyngroup" != no ; then
24032 BUILD_DYNGROUP=$ol_enable_dyngroup
24033 if test "$ol_enable_dyngroup" = mod ; then
24034 MFLAG=SLAPD_MOD_DYNAMIC
24035 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24037 MFLAG=SLAPD_MOD_STATIC
24039 cat >> confdefs.h <<EOF
24040 #define SLAPD_OVER_DYNGROUP $MFLAG
24045 if test "$ol_enable_lastmod" != no ; then
24046 BUILD_LASTMOD=$ol_enable_lastmod
24047 if test "$ol_enable_lastmod" = mod ; then
24048 MFLAG=SLAPD_MOD_DYNAMIC
24049 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
24051 MFLAG=SLAPD_MOD_STATIC
24053 cat >> confdefs.h <<EOF
24054 #define SLAPD_OVER_LASTMOD $MFLAG
24059 if test "$ol_enable_ppolicy" != no ; then
24060 BUILD_PPOLICY=$ol_enable_ppolicy
24061 if test "$ol_enable_ppolicy" = mod ; then
24062 MFLAG=SLAPD_MOD_DYNAMIC
24063 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24065 MFLAG=SLAPD_MOD_STATIC
24067 cat >> confdefs.h <<EOF
24068 #define SLAPD_OVER_PPOLICY $MFLAG
24073 if test "$ol_enable_proxycache" != no ; then
24074 BUILD_PROXYCACHE=$ol_enable_proxycache
24075 if test "$ol_enable_proxycache" = mod ; then
24076 MFLAG=SLAPD_MOD_DYNAMIC
24077 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24079 MFLAG=SLAPD_MOD_STATIC
24081 cat >> confdefs.h <<EOF
24082 #define SLAPD_OVER_PROXYCACHE $MFLAG
24087 if test "$ol_enable_refint" != no ; then
24088 BUILD_REFINT=$ol_enable_refint
24089 if test "$ol_enable_refint" = mod ; then
24090 MFLAG=SLAPD_MOD_DYNAMIC
24091 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24093 MFLAG=SLAPD_MOD_STATIC
24095 cat >> confdefs.h <<EOF
24096 #define SLAPD_OVER_REFINT $MFLAG
24101 if test "$ol_enable_rwm" != no ; then
24103 BUILD_RWM=$ol_enable_rwm
24104 if test "$ol_enable_rwm" = mod ; then
24105 MFLAG=SLAPD_MOD_DYNAMIC
24106 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24108 MFLAG=SLAPD_MOD_STATIC
24110 cat >> confdefs.h <<EOF
24111 #define SLAPD_OVER_RWM $MFLAG
24116 if test "$ol_enable_unique" != no ; then
24117 BUILD_UNIQUE=$ol_enable_unique
24118 if test "$ol_enable_unique" = mod ; then
24119 MFLAG=SLAPD_MOD_DYNAMIC
24120 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24122 MFLAG=SLAPD_MOD_STATIC
24124 cat >> confdefs.h <<EOF
24125 #define SLAPD_OVER_UNIQUE $MFLAG
24130 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24131 $BUILD_SLAPD = yes ; then
24135 if test "$ol_enable_rewrite" != no ; then
24136 cat >> confdefs.h <<\EOF
24137 #define ENABLE_REWRITE 1
24143 if test "$ol_enable_slapi" != no ; then
24144 cat >> confdefs.h <<\EOF
24145 #define ENABLE_SLAPI 1
24149 SLAPD_SLAPI_DEPEND=libslapi.a
24154 if test "$ac_cv_mingw32" = yes ; then
24156 SLAPD_MODULES_LDFLAGS=
24161 if test -z "$SLAPD_STATIC_BACKENDS"; then
24162 SLAPD_NO_STATIC='#'
24237 # Check whether --with-xxinstall or --without-xxinstall was given.
24238 if test "${with_xxinstall+set}" = set; then
24239 withval="$with_xxinstall"
24247 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24250 # Let make expand exec_prefix.
24251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24253 # Any assignment to VPATH causes Sun make to only execute
24254 # the first set of double-colon rules, so remove it if not needed.
24255 # If there is a colon in the path, we need to keep it.
24256 if test "x$srcdir" = x.; then
24257 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24260 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24262 DEFS=-DHAVE_CONFIG_H
24264 # Without the "./", some shells look in PATH for config.status.
24265 : ${CONFIG_STATUS=./config.status}
24267 echo creating $CONFIG_STATUS
24268 rm -f $CONFIG_STATUS
24269 cat > $CONFIG_STATUS <<EOF
24271 # Generated automatically by configure.
24272 # Run this file to recreate the current configuration.
24273 # This directory was configured as follows,
24274 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24276 # $0 $ac_configure_args
24278 # Compiler output produced by configure, useful for debugging
24279 # configure, is in ./config.log if it exists.
24281 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24284 case "\$ac_option" in
24285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24286 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24287 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24288 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24289 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24291 -help | --help | --hel | --he | --h)
24292 echo "\$ac_cs_usage"; exit 0 ;;
24293 *) echo "\$ac_cs_usage"; exit 1 ;;
24297 ac_given_srcdir=$srcdir
24298 ac_given_INSTALL="$INSTALL"
24300 trap 'rm -fr `echo "\
24301 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24302 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24303 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24304 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24305 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24306 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24307 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24308 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24309 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24310 include/Makefile:build/top.mk:include/Makefile.in \
24311 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24312 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24313 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24314 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24315 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24316 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24317 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24318 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24319 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24320 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24321 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24322 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24323 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24324 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24325 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24326 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24327 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24328 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24329 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24330 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24331 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24332 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24333 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24334 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24335 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24336 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24337 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24339 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24340 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24342 cat >> $CONFIG_STATUS <<EOF
24344 # Protect against being on the right side of a sed subst in config.status.
24345 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24346 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24350 s%@CFLAGS@%$CFLAGS%g
24351 s%@CPPFLAGS@%$CPPFLAGS%g
24352 s%@CXXFLAGS@%$CXXFLAGS%g
24353 s%@FFLAGS@%$FFLAGS%g
24355 s%@LDFLAGS@%$LDFLAGS%g
24357 s%@exec_prefix@%$exec_prefix%g
24358 s%@prefix@%$prefix%g
24359 s%@program_transform_name@%$program_transform_name%g
24360 s%@bindir@%$bindir%g
24361 s%@sbindir@%$sbindir%g
24362 s%@libexecdir@%$libexecdir%g
24363 s%@datadir@%$datadir%g
24364 s%@sysconfdir@%$sysconfdir%g
24365 s%@sharedstatedir@%$sharedstatedir%g
24366 s%@localstatedir@%$localstatedir%g
24367 s%@libdir@%$libdir%g
24368 s%@includedir@%$includedir%g
24369 s%@oldincludedir@%$oldincludedir%g
24370 s%@infodir@%$infodir%g
24371 s%@mandir@%$mandir%g
24373 s%@host_alias@%$host_alias%g
24374 s%@host_cpu@%$host_cpu%g
24375 s%@host_vendor@%$host_vendor%g
24376 s%@host_os@%$host_os%g
24377 s%@target@%$target%g
24378 s%@target_alias@%$target_alias%g
24379 s%@target_cpu@%$target_cpu%g
24380 s%@target_vendor@%$target_vendor%g
24381 s%@target_os@%$target_os%g
24383 s%@build_alias@%$build_alias%g
24384 s%@build_cpu@%$build_cpu%g
24385 s%@build_vendor@%$build_vendor%g
24386 s%@build_os@%$build_os%g
24387 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24388 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24389 s%@INSTALL_DATA@%$INSTALL_DATA%g
24390 s%@PACKAGE@%$PACKAGE%g
24391 s%@VERSION@%$VERSION%g
24392 s%@ACLOCAL@%$ACLOCAL%g
24393 s%@AUTOCONF@%$AUTOCONF%g
24394 s%@AUTOMAKE@%$AUTOMAKE%g
24395 s%@AUTOHEADER@%$AUTOHEADER%g
24396 s%@MAKEINFO@%$MAKEINFO%g
24397 s%@install_sh@%$install_sh%g
24400 s%@AMTARFLAGS@%$AMTARFLAGS%g
24401 s%@SET_MAKE@%$SET_MAKE%g
24402 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24403 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24404 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24405 s%@top_builddir@%$top_builddir%g
24406 s%@ldap_subdir@%$ldap_subdir%g
24410 s%@OBJEXT@%$OBJEXT%g
24411 s%@EXEEXT@%$EXEEXT%g
24413 s%@RANLIB@%$RANLIB%g
24415 s%@DLLTOOL@%$DLLTOOL%g
24417 s%@OBJDUMP@%$OBJDUMP%g
24419 s%@LIBTOOL@%$LIBTOOL%g
24420 s%@PERLBIN@%$PERLBIN%g
24421 s%@OL_MKDEP@%$OL_MKDEP%g
24422 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24423 s%@LTSTATIC@%$LTSTATIC%g
24424 s%@LIBOBJS@%$LIBOBJS%g
24425 s%@LIBSRCS@%$LIBSRCS%g
24427 s%@WITH_SASL@%$WITH_SASL%g
24428 s%@WITH_TLS@%$WITH_TLS%g
24429 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24430 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24431 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24432 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24433 s%@BUILD_BDB@%$BUILD_BDB%g
24434 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24435 s%@BUILD_HDB@%$BUILD_HDB%g
24436 s%@BUILD_LDAP@%$BUILD_LDAP%g
24437 s%@BUILD_LDBM@%$BUILD_LDBM%g
24438 s%@BUILD_META@%$BUILD_META%g
24439 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24440 s%@BUILD_NULL@%$BUILD_NULL%g
24441 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24442 s%@BUILD_RELAY@%$BUILD_RELAY%g
24443 s%@BUILD_PERL@%$BUILD_PERL%g
24444 s%@BUILD_SHELL@%$BUILD_SHELL%g
24445 s%@BUILD_SQL@%$BUILD_SQL%g
24446 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
24447 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
24448 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24449 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
24450 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
24451 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24452 s%@BUILD_REFINT@%$BUILD_REFINT%g
24453 s%@BUILD_RWM@%$BUILD_RWM%g
24454 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
24455 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24456 s%@LDAP_LIBS@%$LDAP_LIBS%g
24457 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24458 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24459 s%@LDBM_LIBS@%$LDBM_LIBS%g
24460 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24461 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24462 s%@WRAP_LIBS@%$WRAP_LIBS%g
24463 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24464 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24465 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24466 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24467 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24468 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24469 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24470 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24471 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24472 s%@KRB4_LIBS@%$KRB4_LIBS%g
24473 s%@KRB5_LIBS@%$KRB5_LIBS%g
24474 s%@SASL_LIBS@%$SASL_LIBS%g
24475 s%@TLS_LIBS@%$TLS_LIBS%g
24476 s%@MODULES_LIBS@%$MODULES_LIBS%g
24477 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24478 s%@LIBSLAPI@%$LIBSLAPI%g
24479 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24480 s%@AUTH_LIBS@%$AUTH_LIBS%g
24481 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24482 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
24483 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24484 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24485 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24490 cat >> $CONFIG_STATUS <<\EOF
24492 # Split the substitutions into bite-sized pieces for seds with
24493 # small command number limits, like on Digital OSF/1 and HP-UX.
24494 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24495 ac_file=1 # Number of current file.
24496 ac_beg=1 # First line for current file.
24497 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24500 while $ac_more_lines; do
24501 if test $ac_beg -gt 1; then
24502 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24504 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24506 if test ! -s conftest.s$ac_file; then
24507 ac_more_lines=false
24508 rm -f conftest.s$ac_file
24510 if test -z "$ac_sed_cmds"; then
24511 ac_sed_cmds="sed -f conftest.s$ac_file"
24513 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24515 ac_file=`expr $ac_file + 1`
24517 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24520 if test -z "$ac_sed_cmds"; then
24525 cat >> $CONFIG_STATUS <<EOF
24527 CONFIG_FILES=\${CONFIG_FILES-"\
24528 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24529 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24530 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24531 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24532 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24533 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24534 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24535 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24536 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24537 include/Makefile:build/top.mk:include/Makefile.in \
24538 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24539 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24540 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24541 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24542 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24543 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24544 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24545 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24546 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24547 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24548 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24549 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24550 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24551 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24552 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24553 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24554 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24555 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24556 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24557 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24558 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24559 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24560 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24561 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24562 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24563 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24564 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24566 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24569 cat >> $CONFIG_STATUS <<\EOF
24570 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24573 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24574 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24575 *) ac_file_in="${ac_file}.in" ;;
24578 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24580 # Remove last slash and all that follows it. Not all systems have dirname.
24581 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24583 # The file is in a subdirectory.
24584 test ! -d "$ac_dir" && mkdir "$ac_dir"
24585 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24586 # A "../" for each directory in $ac_dir_suffix.
24587 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24589 ac_dir_suffix= ac_dots=
24592 case "$ac_given_srcdir" in
24594 if test -z "$ac_dots"; then top_srcdir=.
24595 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24596 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24597 *) # Relative path.
24598 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24599 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24602 case "$ac_given_INSTALL" in
24603 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24604 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24607 echo creating "$ac_file"
24609 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24611 *[Mm]akefile*) ac_comsub="1i\\
24612 # $configure_input" ;;
24616 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24618 s%@configure_input@%$configure_input%g
24619 s%@srcdir@%$srcdir%g
24620 s%@top_srcdir@%$top_srcdir%g
24621 s%@INSTALL@%$INSTALL%g
24622 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24627 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24629 # ac_d sets the value in "#define NAME VALUE" lines.
24630 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24631 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24634 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24635 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24636 ac_uB='\([ ]\)%\1#\2define\3'
24639 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24640 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24641 ac_eB='$%\1#\2define\3'
24645 if test "${CONFIG_HEADERS+set}" != set; then
24647 cat >> $CONFIG_STATUS <<EOF
24648 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24650 cat >> $CONFIG_STATUS <<\EOF
24652 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24655 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24656 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24657 *) ac_file_in="${ac_file}.in" ;;
24660 echo creating $ac_file
24662 rm -f conftest.frag conftest.in conftest.out
24663 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24664 cat $ac_file_inputs > conftest.in
24668 # Transform confdefs.h into a sed script conftest.vals that substitutes
24669 # the proper values into config.h.in to produce config.h. And first:
24670 # Protect against being on the right side of a sed subst in config.status.
24671 # Protect against being in an unquoted here document in config.status.
24672 rm -f conftest.vals
24673 cat > conftest.hdr <<\EOF
24676 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24680 sed -n -f conftest.hdr confdefs.h > conftest.vals
24683 # This sed command replaces #undef with comments. This is necessary, for
24684 # example, in the case of _POSIX_SOURCE, which is predefined and required
24685 # on some systems where configure will not decide to define it.
24686 cat >> conftest.vals <<\EOF
24687 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24690 # Break up conftest.vals because some shells have a limit on
24691 # the size of here documents, and old seds have small limits too.
24693 rm -f conftest.tail
24696 ac_lines=`grep -c . conftest.vals`
24697 # grep -c gives empty output for an empty file on some AIX systems.
24698 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24699 # Write a limited-size here document to conftest.frag.
24700 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24701 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24703 sed -f conftest.frag conftest.in > conftest.out
24705 mv conftest.out conftest.in
24706 ' >> $CONFIG_STATUS
24707 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24708 rm -f conftest.vals
24709 mv conftest.tail conftest.vals
24711 rm -f conftest.vals
24713 cat >> $CONFIG_STATUS <<\EOF
24714 rm -f conftest.frag conftest.h
24715 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24716 cat conftest.in >> conftest.h
24718 if cmp -s $ac_file conftest.h 2>/dev/null; then
24719 echo "$ac_file is unchanged"
24722 # Remove last slash and all that follows it. Not all systems have dirname.
24723 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24724 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24725 # The file is in a subdirectory.
24726 test ! -d "$ac_dir" && mkdir "$ac_dir"
24729 mv conftest.h $ac_file
24734 cat >> $CONFIG_STATUS <<EOF
24737 cat >> $CONFIG_STATUS <<\EOF
24741 echo Please run \"make depend\" to build dependencies
24745 chmod +x $CONFIG_STATUS
24746 rm -fr confdefs* $ac_clean_files
24747 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1