3 # from OpenLDAP: pkg/ldap/configure.in,v 1.495 2003/11/26 03:17:26 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2003 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-2003 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 --enable-x-compile enable cross compiling [no]"
50 --with-cyrus-sasl with Cyrus SASL support [auto]"
52 --with-fetch with fetch(3) URL support [auto]"
54 --with-threads with threads [auto]"
56 --with-tls with TLS/SSL support [auto]"
58 --with-yielding-select with implicitly yielding select [auto]"
61 SLAPD (Standalone LDAP Daemon) Options:"
63 --enable-slapd enable building slapd [yes]"
65 --enable-aci enable per-object ACIs (experimental) [no]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [no]"
71 --enable-lmpasswd enable LAN Manager passwords [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
79 --enable-rlookups enable reverse lookups of client hostnames [no]"
81 --enable-slapi enable SLAPI support (experimental) [no]"
83 --enable-slp enable SLPv2 support [no]"
85 --enable-wrappers enable tcp wrapper support [no]"
87 --enable-bdb enable Berkeley DB backend [yes]"
89 --with-bdb-module module type static|dynamic [static]"
91 --enable-dnssrv enable dnssrv backend [no]"
93 --with-dnssrv-module module type static|dynamic [static]"
95 --enable-hdb enable Hierarchical DB backend [no]"
97 --with-hdb-module module type static|dynamic [static]"
99 --enable-ldap enable ldap backend [no]"
101 --with-ldap-module module type static|dynamic [static]"
103 --enable-ldbm enable ldbm backend [no]"
105 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
107 --with-ldbm-module module type static|dynamic [static]"
109 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
111 --enable-meta enable metadirectory backend [no]"
113 --with-meta-module module type static|dynamic [static]"
115 --enable-monitor enable monitor backend [yes]"
117 --with-monitor-module module type static|dynamic [static]"
119 --enable-null enable null backend [no]"
121 --with-null-module module type static|dynamic [static]"
123 --enable-passwd enable passwd backend [no]"
125 --with-passwd-module module type static|dynamic [static]"
127 --enable-perl enable perl backend [no]"
129 --with-perl-module module type static|dynamic [static]"
131 --enable-shell enable shell backend [no]"
133 --with-shell-module module type static|dynamic [static]"
135 --enable-sql enable sql backend [no]"
137 --with-sql-module module type static|dynamic [static]"
139 --enable-tcl enable tcl backend [no]"
141 --with-tcl-module module type static|dynamic [static]"
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_LIBVERSION=$OL_API_LIB
1367 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1371 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1372 echo "configure:1373: checking configure arguments" >&5
1377 ldap_subdir="/openldap"
1379 # Check whether --with-subdir or --without-subdir was given.
1380 if test "${with_subdir+set}" = set; then
1381 withval="$with_subdir"
1388 ldap_subdir="$withval"
1391 ldap_subdir="/$withval"
1398 # OpenLDAP --enable-debug
1399 # Check whether --enable-debug or --disable-debug was given.
1400 if test "${enable_debug+set}" = set; then
1401 enableval="$enable_debug"
1404 for ol_val in auto yes no ; do
1405 if test "$enableval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1412 ol_enable_debug="$ol_arg"
1415 ol_enable_debug="yes"
1417 # end --enable-debug
1418 # OpenLDAP --enable-dynamic
1419 # Check whether --enable-dynamic or --disable-dynamic was given.
1420 if test "${enable_dynamic+set}" = set; then
1421 enableval="$enable_dynamic"
1424 for ol_val in auto yes no ; do
1425 if test "$enableval" = "$ol_val" ; then
1429 if test "$ol_arg" = "invalid" ; then
1430 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1432 ol_enable_dynamic="$ol_arg"
1435 ol_enable_dynamic="no"
1437 # end --enable-dynamic
1438 # OpenLDAP --enable-syslog
1439 # Check whether --enable-syslog or --disable-syslog was given.
1440 if test "${enable_syslog+set}" = set; then
1441 enableval="$enable_syslog"
1444 for ol_val in auto yes no ; do
1445 if test "$enableval" = "$ol_val" ; then
1449 if test "$ol_arg" = "invalid" ; then
1450 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1452 ol_enable_syslog="$ol_arg"
1455 ol_enable_syslog="auto"
1457 # end --enable-syslog
1458 # OpenLDAP --enable-proctitle
1459 # Check whether --enable-proctitle or --disable-proctitle was given.
1460 if test "${enable_proctitle+set}" = set; then
1461 enableval="$enable_proctitle"
1464 for ol_val in auto yes no ; do
1465 if test "$enableval" = "$ol_val" ; then
1469 if test "$ol_arg" = "invalid" ; then
1470 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1472 ol_enable_proctitle="$ol_arg"
1475 ol_enable_proctitle="yes"
1477 # end --enable-proctitle
1478 ol_enable_referrals=${ol_enable_referrals-no}
1479 ol_enable_kbind=${ol_enable_kbind-no}
1480 # OpenLDAP --enable-ipv6
1481 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1482 if test "${enable_ipv6+set}" = set; then
1483 enableval="$enable_ipv6"
1486 for ol_val in auto yes no ; do
1487 if test "$enableval" = "$ol_val" ; then
1491 if test "$ol_arg" = "invalid" ; then
1492 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1494 ol_enable_ipv6="$ol_arg"
1497 ol_enable_ipv6="auto"
1500 # OpenLDAP --enable-local
1501 # Check whether --enable-local or --disable-local was given.
1502 if test "${enable_local+set}" = set; then
1503 enableval="$enable_local"
1506 for ol_val in auto yes no ; do
1507 if test "$enableval" = "$ol_val" ; then
1511 if test "$ol_arg" = "invalid" ; then
1512 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1514 ol_enable_local="$ol_arg"
1517 ol_enable_local="auto"
1519 # end --enable-local
1520 # OpenLDAP --enable-x_compile
1521 # Check whether --enable-x_compile or --disable-x_compile was given.
1522 if test "${enable_x_compile+set}" = set; then
1523 enableval="$enable_x_compile"
1526 for ol_val in yes no ; do
1527 if test "$enableval" = "$ol_val" ; then
1531 if test "$ol_arg" = "invalid" ; then
1532 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1534 ol_enable_x_compile="$ol_arg"
1537 ol_enable_x_compile="no"
1539 # end --enable-x_compile
1542 # OpenLDAP --with-cyrus_sasl
1543 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1544 if test "${with_cyrus_sasl+set}" = set; then
1545 withval="$with_cyrus_sasl"
1548 for ol_val in auto yes no ; do
1549 if test "$withval" = "$ol_val" ; then
1553 if test "$ol_arg" = "invalid" ; then
1554 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1556 ol_with_cyrus_sasl="$ol_arg"
1559 ol_with_cyrus_sasl="auto"
1561 # end --with-cyrus_sasl
1563 # OpenLDAP --with-fetch
1564 # Check whether --with-fetch or --without-fetch was given.
1565 if test "${with_fetch+set}" = set; then
1566 withval="$with_fetch"
1569 for ol_val in auto yes no ; do
1570 if test "$withval" = "$ol_val" ; then
1574 if test "$ol_arg" = "invalid" ; then
1575 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1577 ol_with_fetch="$ol_arg"
1580 ol_with_fetch="auto"
1584 ol_with_kerberos=${ol_with_kerberos-auto}
1585 # OpenLDAP --with-threads
1586 # Check whether --with-threads or --without-threads was given.
1587 if test "${with_threads+set}" = set; then
1588 withval="$with_threads"
1591 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1592 if test "$withval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1599 ol_with_threads="$ol_arg"
1602 ol_with_threads="auto"
1604 # end --with-threads
1606 # OpenLDAP --with-tls
1607 # Check whether --with-tls or --without-tls was given.
1608 if test "${with_tls+set}" = set; then
1612 for ol_val in auto ssleay openssl yes no ; do
1613 if test "$withval" = "$ol_val" ; then
1617 if test "$ol_arg" = "invalid" ; then
1618 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1620 ol_with_tls="$ol_arg"
1627 # OpenLDAP --with-yielding_select
1628 # Check whether --with-yielding_select or --without-yielding_select was given.
1629 if test "${with_yielding_select+set}" = set; then
1630 withval="$with_yielding_select"
1633 for ol_val in auto yes no manual ; do
1634 if test "$withval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1641 ol_with_yielding_select="$ol_arg"
1644 ol_with_yielding_select="auto"
1646 # end --with-yielding_select
1650 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1651 if test "${with_xxslapdoptions+set}" = set; then
1652 withval="$with_xxslapdoptions"
1656 # OpenLDAP --enable-slapd
1657 # Check whether --enable-slapd or --disable-slapd was given.
1658 if test "${enable_slapd+set}" = set; then
1659 enableval="$enable_slapd"
1662 for ol_val in auto yes no ; do
1663 if test "$enableval" = "$ol_val" ; then
1667 if test "$ol_arg" = "invalid" ; then
1668 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1670 ol_enable_slapd="$ol_arg"
1673 ol_enable_slapd="yes"
1675 # end --enable-slapd
1676 # OpenLDAP --enable-aci
1677 # Check whether --enable-aci or --disable-aci was given.
1678 if test "${enable_aci+set}" = set; then
1679 enableval="$enable_aci"
1682 for ol_val in auto yes no ; do
1683 if test "$enableval" = "$ol_val" ; then
1687 if test "$ol_arg" = "invalid" ; then
1688 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1690 ol_enable_aci="$ol_arg"
1696 # OpenLDAP --enable-cleartext
1697 # Check whether --enable-cleartext or --disable-cleartext was given.
1698 if test "${enable_cleartext+set}" = set; then
1699 enableval="$enable_cleartext"
1702 for ol_val in auto yes no ; do
1703 if test "$enableval" = "$ol_val" ; then
1707 if test "$ol_arg" = "invalid" ; then
1708 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1710 ol_enable_cleartext="$ol_arg"
1713 ol_enable_cleartext="yes"
1715 # end --enable-cleartext
1716 # OpenLDAP --enable-crypt
1717 # Check whether --enable-crypt or --disable-crypt was given.
1718 if test "${enable_crypt+set}" = set; then
1719 enableval="$enable_crypt"
1722 for ol_val in auto yes no ; do
1723 if test "$enableval" = "$ol_val" ; then
1727 if test "$ol_arg" = "invalid" ; then
1728 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1730 ol_enable_crypt="$ol_arg"
1733 ol_enable_crypt="no"
1735 # end --enable-crypt
1736 ol_enable_kpasswd=${ol_enable_kpasswd-no}
1737 # OpenLDAP --enable-lmpasswd
1738 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1739 if test "${enable_lmpasswd+set}" = set; then
1740 enableval="$enable_lmpasswd"
1743 for ol_val in auto yes no ; do
1744 if test "$enableval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1751 ol_enable_lmpasswd="$ol_arg"
1754 ol_enable_lmpasswd="no"
1756 # end --enable-lmpasswd
1757 # OpenLDAP --enable-spasswd
1758 # Check whether --enable-spasswd or --disable-spasswd was given.
1759 if test "${enable_spasswd+set}" = set; then
1760 enableval="$enable_spasswd"
1763 for ol_val in auto yes no ; do
1764 if test "$enableval" = "$ol_val" ; then
1768 if test "$ol_arg" = "invalid" ; then
1769 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1771 ol_enable_spasswd="$ol_arg"
1774 ol_enable_spasswd="no"
1776 # end --enable-spasswd
1777 # OpenLDAP --enable-modules
1778 # Check whether --enable-modules or --disable-modules was given.
1779 if test "${enable_modules+set}" = set; then
1780 enableval="$enable_modules"
1783 for ol_val in auto yes no ; do
1784 if test "$enableval" = "$ol_val" ; then
1788 if test "$ol_arg" = "invalid" ; then
1789 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1791 ol_enable_modules="$ol_arg"
1794 ol_enable_modules="no"
1796 # end --enable-modules
1797 ol_enable_multimaster=${ol_enable_multimaster-no}
1798 # OpenLDAP --enable-rewrite
1799 # Check whether --enable-rewrite or --disable-rewrite was given.
1800 if test "${enable_rewrite+set}" = set; then
1801 enableval="$enable_rewrite"
1804 for ol_val in auto yes no ; do
1805 if test "$enableval" = "$ol_val" ; then
1809 if test "$ol_arg" = "invalid" ; then
1810 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1812 ol_enable_rewrite="$ol_arg"
1815 ol_enable_rewrite="no"
1817 # end --enable-rewrite
1818 # OpenLDAP --enable-rlookups
1819 # Check whether --enable-rlookups or --disable-rlookups was given.
1820 if test "${enable_rlookups+set}" = set; then
1821 enableval="$enable_rlookups"
1824 for ol_val in auto yes no ; do
1825 if test "$enableval" = "$ol_val" ; then
1829 if test "$ol_arg" = "invalid" ; then
1830 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1832 ol_enable_rlookups="$ol_arg"
1835 ol_enable_rlookups="no"
1837 # end --enable-rlookups
1838 # OpenLDAP --enable-slapi
1839 # Check whether --enable-slapi or --disable-slapi was given.
1840 if test "${enable_slapi+set}" = set; then
1841 enableval="$enable_slapi"
1844 for ol_val in auto yes no ; do
1845 if test "$enableval" = "$ol_val" ; then
1849 if test "$ol_arg" = "invalid" ; then
1850 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1852 ol_enable_slapi="$ol_arg"
1855 ol_enable_slapi="no"
1857 # end --enable-slapi
1858 # OpenLDAP --enable-slp
1859 # Check whether --enable-slp or --disable-slp was given.
1860 if test "${enable_slp+set}" = set; then
1861 enableval="$enable_slp"
1864 for ol_val in auto yes no ; do
1865 if test "$enableval" = "$ol_val" ; then
1869 if test "$ol_arg" = "invalid" ; then
1870 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1872 ol_enable_slp="$ol_arg"
1878 # OpenLDAP --enable-wrappers
1879 # Check whether --enable-wrappers or --disable-wrappers was given.
1880 if test "${enable_wrappers+set}" = set; then
1881 enableval="$enable_wrappers"
1884 for ol_val in auto yes no ; do
1885 if test "$enableval" = "$ol_val" ; then
1889 if test "$ol_arg" = "invalid" ; then
1890 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1892 ol_enable_wrappers="$ol_arg"
1895 ol_enable_wrappers="no"
1897 # end --enable-wrappers
1900 # OpenLDAP --enable-bdb
1901 # Check whether --enable-bdb or --disable-bdb was given.
1902 if test "${enable_bdb+set}" = set; then
1903 enableval="$enable_bdb"
1906 for ol_val in auto yes no ; do
1907 if test "$enableval" = "$ol_val" ; then
1911 if test "$ol_arg" = "invalid" ; then
1912 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1914 ol_enable_bdb="$ol_arg"
1920 # OpenLDAP --with-bdb_module
1921 # Check whether --with-bdb_module or --without-bdb_module was given.
1922 if test "${with_bdb_module+set}" = set; then
1923 withval="$with_bdb_module"
1926 for ol_val in static dynamic ; do
1927 if test "$withval" = "$ol_val" ; then
1931 if test "$ol_arg" = "invalid" ; then
1932 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1934 ol_with_bdb_module="$ol_arg"
1937 ol_with_bdb_module="static"
1939 # end --with-bdb_module
1941 # OpenLDAP --enable-dnssrv
1942 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1943 if test "${enable_dnssrv+set}" = set; then
1944 enableval="$enable_dnssrv"
1947 for ol_val in auto yes no ; do
1948 if test "$enableval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1955 ol_enable_dnssrv="$ol_arg"
1958 ol_enable_dnssrv="no"
1960 # end --enable-dnssrv
1961 # OpenLDAP --with-dnssrv_module
1962 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1963 if test "${with_dnssrv_module+set}" = set; then
1964 withval="$with_dnssrv_module"
1967 for ol_val in static dynamic ; do
1968 if test "$withval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1975 ol_with_dnssrv_module="$ol_arg"
1978 ol_with_dnssrv_module="static"
1980 # end --with-dnssrv_module
1982 # OpenLDAP --enable-hdb
1983 # Check whether --enable-hdb or --disable-hdb was given.
1984 if test "${enable_hdb+set}" = set; then
1985 enableval="$enable_hdb"
1988 for ol_val in auto yes no ; do
1989 if test "$enableval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1996 ol_enable_hdb="$ol_arg"
2002 # OpenLDAP --with-hdb_module
2003 # Check whether --with-hdb_module or --without-hdb_module was given.
2004 if test "${with_hdb_module+set}" = set; then
2005 withval="$with_hdb_module"
2008 for ol_val in static dynamic ; do
2009 if test "$withval" = "$ol_val" ; then
2013 if test "$ol_arg" = "invalid" ; then
2014 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2016 ol_with_hdb_module="$ol_arg"
2019 ol_with_hdb_module="static"
2021 # end --with-hdb_module
2023 # OpenLDAP --enable-ldap
2024 # Check whether --enable-ldap or --disable-ldap was given.
2025 if test "${enable_ldap+set}" = set; then
2026 enableval="$enable_ldap"
2029 for ol_val in auto yes no ; do
2030 if test "$enableval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2037 ol_enable_ldap="$ol_arg"
2043 # OpenLDAP --with-ldap_module
2044 # Check whether --with-ldap_module or --without-ldap_module was given.
2045 if test "${with_ldap_module+set}" = set; then
2046 withval="$with_ldap_module"
2049 for ol_val in static dynamic ; do
2050 if test "$withval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2057 ol_with_ldap_module="$ol_arg"
2060 ol_with_ldap_module="static"
2062 # end --with-ldap_module
2064 # OpenLDAP --enable-ldbm
2065 # Check whether --enable-ldbm or --disable-ldbm was given.
2066 if test "${enable_ldbm+set}" = set; then
2067 enableval="$enable_ldbm"
2070 for ol_val in auto yes no ; do
2071 if test "$enableval" = "$ol_val" ; then
2075 if test "$ol_arg" = "invalid" ; then
2076 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2078 ol_enable_ldbm="$ol_arg"
2084 # OpenLDAP --with-ldbm_api
2085 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2086 if test "${with_ldbm_api+set}" = set; then
2087 withval="$with_ldbm_api"
2090 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2091 if test "$withval" = "$ol_val" ; then
2095 if test "$ol_arg" = "invalid" ; then
2096 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2098 ol_with_ldbm_api="$ol_arg"
2101 ol_with_ldbm_api="auto"
2103 # end --with-ldbm_api
2105 # OpenLDAP --with-ldbm_module
2106 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2107 if test "${with_ldbm_module+set}" = set; then
2108 withval="$with_ldbm_module"
2111 for ol_val in static dynamic ; do
2112 if test "$withval" = "$ol_val" ; then
2116 if test "$ol_arg" = "invalid" ; then
2117 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2119 ol_with_ldbm_module="$ol_arg"
2122 ol_with_ldbm_module="static"
2124 # end --with-ldbm_module
2126 # OpenLDAP --with-ldbm_type
2127 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2128 if test "${with_ldbm_type+set}" = set; then
2129 withval="$with_ldbm_type"
2132 for ol_val in auto btree hash ; do
2133 if test "$withval" = "$ol_val" ; then
2137 if test "$ol_arg" = "invalid" ; then
2138 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2140 ol_with_ldbm_type="$ol_arg"
2143 ol_with_ldbm_type="auto"
2145 # end --with-ldbm_type
2147 # OpenLDAP --enable-meta
2148 # Check whether --enable-meta or --disable-meta was given.
2149 if test "${enable_meta+set}" = set; then
2150 enableval="$enable_meta"
2153 for ol_val in auto yes no ; do
2154 if test "$enableval" = "$ol_val" ; then
2158 if test "$ol_arg" = "invalid" ; then
2159 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2161 ol_enable_meta="$ol_arg"
2167 # OpenLDAP --with-meta_module
2168 # Check whether --with-meta_module or --without-meta_module was given.
2169 if test "${with_meta_module+set}" = set; then
2170 withval="$with_meta_module"
2173 for ol_val in static dynamic ; do
2174 if test "$withval" = "$ol_val" ; then
2178 if test "$ol_arg" = "invalid" ; then
2179 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2181 ol_with_meta_module="$ol_arg"
2184 ol_with_meta_module="static"
2186 # end --with-meta_module
2188 # OpenLDAP --enable-monitor
2189 # Check whether --enable-monitor or --disable-monitor was given.
2190 if test "${enable_monitor+set}" = set; then
2191 enableval="$enable_monitor"
2194 for ol_val in auto yes no ; do
2195 if test "$enableval" = "$ol_val" ; then
2199 if test "$ol_arg" = "invalid" ; then
2200 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2202 ol_enable_monitor="$ol_arg"
2205 ol_enable_monitor="yes"
2207 # end --enable-monitor
2208 # OpenLDAP --with-monitor_module
2209 # Check whether --with-monitor_module or --without-monitor_module was given.
2210 if test "${with_monitor_module+set}" = set; then
2211 withval="$with_monitor_module"
2214 for ol_val in static dynamic ; do
2215 if test "$withval" = "$ol_val" ; then
2219 if test "$ol_arg" = "invalid" ; then
2220 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2222 ol_with_monitor_module="$ol_arg"
2225 ol_with_monitor_module="static"
2227 # end --with-monitor_module
2229 # OpenLDAP --enable-null
2230 # Check whether --enable-null or --disable-null was given.
2231 if test "${enable_null+set}" = set; then
2232 enableval="$enable_null"
2235 for ol_val in auto yes no ; do
2236 if test "$enableval" = "$ol_val" ; then
2240 if test "$ol_arg" = "invalid" ; then
2241 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2243 ol_enable_null="$ol_arg"
2249 # OpenLDAP --with-null_module
2250 # Check whether --with-null_module or --without-null_module was given.
2251 if test "${with_null_module+set}" = set; then
2252 withval="$with_null_module"
2255 for ol_val in static dynamic ; do
2256 if test "$withval" = "$ol_val" ; then
2260 if test "$ol_arg" = "invalid" ; then
2261 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2263 ol_with_null_module="$ol_arg"
2266 ol_with_null_module="static"
2268 # end --with-null_module
2270 # OpenLDAP --enable-passwd
2271 # Check whether --enable-passwd or --disable-passwd was given.
2272 if test "${enable_passwd+set}" = set; then
2273 enableval="$enable_passwd"
2276 for ol_val in auto yes no ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2284 ol_enable_passwd="$ol_arg"
2287 ol_enable_passwd="no"
2289 # end --enable-passwd
2290 # OpenLDAP --with-passwd_module
2291 # Check whether --with-passwd_module or --without-passwd_module was given.
2292 if test "${with_passwd_module+set}" = set; then
2293 withval="$with_passwd_module"
2296 for ol_val in static dynamic ; do
2297 if test "$withval" = "$ol_val" ; then
2301 if test "$ol_arg" = "invalid" ; then
2302 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2304 ol_with_passwd_module="$ol_arg"
2307 ol_with_passwd_module="static"
2309 # end --with-passwd_module
2311 # OpenLDAP --enable-perl
2312 # Check whether --enable-perl or --disable-perl was given.
2313 if test "${enable_perl+set}" = set; then
2314 enableval="$enable_perl"
2317 for ol_val in auto yes no ; do
2318 if test "$enableval" = "$ol_val" ; then
2322 if test "$ol_arg" = "invalid" ; then
2323 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2325 ol_enable_perl="$ol_arg"
2331 # OpenLDAP --with-perl_module
2332 # Check whether --with-perl_module or --without-perl_module was given.
2333 if test "${with_perl_module+set}" = set; then
2334 withval="$with_perl_module"
2337 for ol_val in static dynamic ; do
2338 if test "$withval" = "$ol_val" ; then
2342 if test "$ol_arg" = "invalid" ; then
2343 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2345 ol_with_perl_module="$ol_arg"
2348 ol_with_perl_module="static"
2350 # end --with-perl_module
2352 # OpenLDAP --enable-shell
2353 # Check whether --enable-shell or --disable-shell was given.
2354 if test "${enable_shell+set}" = set; then
2355 enableval="$enable_shell"
2358 for ol_val in auto yes no ; do
2359 if test "$enableval" = "$ol_val" ; then
2363 if test "$ol_arg" = "invalid" ; then
2364 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2366 ol_enable_shell="$ol_arg"
2369 ol_enable_shell="no"
2371 # end --enable-shell
2372 # OpenLDAP --with-shell_module
2373 # Check whether --with-shell_module or --without-shell_module was given.
2374 if test "${with_shell_module+set}" = set; then
2375 withval="$with_shell_module"
2378 for ol_val in static dynamic ; do
2379 if test "$withval" = "$ol_val" ; then
2383 if test "$ol_arg" = "invalid" ; then
2384 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2386 ol_with_shell_module="$ol_arg"
2389 ol_with_shell_module="static"
2391 # end --with-shell_module
2393 # OpenLDAP --enable-sql
2394 # Check whether --enable-sql or --disable-sql was given.
2395 if test "${enable_sql+set}" = set; then
2396 enableval="$enable_sql"
2399 for ol_val in auto yes no ; do
2400 if test "$enableval" = "$ol_val" ; then
2404 if test "$ol_arg" = "invalid" ; then
2405 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2407 ol_enable_sql="$ol_arg"
2413 # OpenLDAP --with-sql_module
2414 # Check whether --with-sql_module or --without-sql_module was given.
2415 if test "${with_sql_module+set}" = set; then
2416 withval="$with_sql_module"
2419 for ol_val in static dynamic ; do
2420 if test "$withval" = "$ol_val" ; then
2424 if test "$ol_arg" = "invalid" ; then
2425 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2427 ol_with_sql_module="$ol_arg"
2430 ol_with_sql_module="static"
2432 # end --with-sql_module
2434 # OpenLDAP --enable-tcl
2435 # Check whether --enable-tcl or --disable-tcl was given.
2436 if test "${enable_tcl+set}" = set; then
2437 enableval="$enable_tcl"
2440 for ol_val in auto yes no ; do
2441 if test "$enableval" = "$ol_val" ; then
2445 if test "$ol_arg" = "invalid" ; then
2446 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2448 ol_enable_tcl="$ol_arg"
2454 # OpenLDAP --with-tcl_module
2455 # Check whether --with-tcl_module or --without-tcl_module was given.
2456 if test "${with_tcl_module+set}" = set; then
2457 withval="$with_tcl_module"
2460 for ol_val in static dynamic ; do
2461 if test "$withval" = "$ol_val" ; then
2465 if test "$ol_arg" = "invalid" ; then
2466 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2468 ol_with_tcl_module="$ol_arg"
2471 ol_with_tcl_module="static"
2473 # end --with-tcl_module
2476 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2477 if test "${with_xxslurpdoptions+set}" = set; then
2478 withval="$with_xxslurpdoptions"
2482 # OpenLDAP --enable-slurpd
2483 # Check whether --enable-slurpd or --disable-slurpd was given.
2484 if test "${enable_slurpd+set}" = set; then
2485 enableval="$enable_slurpd"
2488 for ol_val in auto yes no ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2496 ol_enable_slurpd="$ol_arg"
2499 ol_enable_slurpd="auto"
2501 # end --enable-slurpd
2503 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2504 if test "${with_xxliboptions+set}" = set; then
2505 withval="$with_xxliboptions"
2509 # Check whether --enable-static or --disable-static was given.
2510 if test "${enable_static+set}" = set; then
2511 enableval="$enable_static"
2512 p=${PACKAGE-default}
2514 yes) enable_static=yes ;;
2515 no) enable_static=no ;;
2518 # Look at the argument we got. We use all the common list separators.
2519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2520 for pkg in $enableval; do
2521 if test "X$pkg" = "X$p"; then
2532 # Check whether --enable-shared or --disable-shared was given.
2533 if test "${enable_shared+set}" = set; then
2534 enableval="$enable_shared"
2535 p=${PACKAGE-default}
2537 yes) enable_shared=yes ;;
2538 no) enable_shared=no ;;
2541 # Look at the argument we got. We use all the common list separators.
2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2543 for pkg in $enableval; do
2544 if test "X$pkg" = "X$p"; then
2558 if test $ol_enable_slapd = no ; then
2559 if test $ol_enable_slapi = yes ; then
2560 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2562 if test $ol_enable_bdb = yes ; then
2563 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2565 if test $ol_enable_dnssrv = yes ; then
2566 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2568 if test $ol_enable_hdb = yes ; then
2569 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2571 if test $ol_enable_ldap = yes ; then
2572 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2574 if test $ol_enable_ldbm = yes ; then
2575 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2577 if test $ol_enable_meta = yes ; then
2578 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2580 if test $ol_enable_monitor = yes ; then
2581 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2583 if test $ol_enable_null = yes ; then
2584 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2586 if test $ol_enable_passwd = yes ; then
2587 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2589 if test $ol_enable_perl = yes ; then
2590 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2592 if test $ol_enable_shell = yes ; then
2593 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2595 if test $ol_enable_tcl = yes ; then
2596 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2598 if test $ol_enable_sql = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2601 if test $ol_enable_modules = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2604 if test $ol_enable_multimaster = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2607 if test $ol_enable_wrappers = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2610 if test $ol_enable_rlookups = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2613 if test $ol_enable_aci = yes ; then
2614 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2616 if test $ol_with_ldbm_api != auto ; then
2617 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2619 if test $ol_with_ldbm_type != auto ; then
2620 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2622 if test $ol_with_bdb_module != static ; then
2623 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2625 if test $ol_with_dnssrv_module != static ; then
2626 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2628 if test $ol_with_hdb_module != static ; then
2629 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2631 if test $ol_with_ldap_module != static ; then
2632 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2634 if test $ol_with_ldbm_module != static ; then
2635 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2637 if test $ol_with_meta_module != static ; then
2638 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2640 if test $ol_with_monitor_module != static ; then
2641 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2643 if test $ol_with_null_module != static ; then
2644 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2646 if test $ol_with_passwd_module != static ; then
2647 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2649 if test $ol_with_perl_module != static ; then
2650 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2652 if test $ol_with_shell_module != static ; then
2653 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2655 if test $ol_with_tcl_module != static ; then
2656 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2658 if test $ol_with_sql_module != static ; then
2659 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2661 if test $ol_enable_slurpd = yes ; then
2662 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2664 if test $ol_enable_rewrite = yes ; then
2665 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2668 # force settings to no
2676 ol_enable_monitor=no
2684 ol_enable_modules=no
2685 ol_enable_multimaster=no
2686 ol_enable_rlookups=no
2688 ol_enable_wrappers=no
2689 ol_enable_dynamic=no
2692 ol_with_ldbm_type=no
2694 ol_with_bdb_module=static
2695 ol_with_dnssrv_module=static
2696 ol_with_hdb_module=static
2697 ol_with_ldap_module=static
2698 ol_with_ldbm_module=static
2699 ol_with_meta_module=static
2700 ol_with_monitor_module=static
2701 ol_with_null_module=static
2702 ol_with_passwd_module=static
2703 ol_with_perl_module=static
2704 ol_with_shell_module=static
2705 ol_with_tcl_module=static
2706 ol_with_sql_module=static
2710 ol_enable_rewrite=no
2712 elif test $ol_enable_ldbm = no ; then
2714 if test $ol_with_ldbm_api != auto ; then
2715 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2718 if test $ol_with_ldbm_type != auto ; then
2719 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2722 if test $ol_with_ldbm_module != static ; then
2723 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2726 if test $ol_enable_modules != yes -a \
2727 $ol_enable_bdb = no -a \
2728 $ol_enable_dnssrv = no -a \
2729 $ol_enable_hdb = no -a \
2730 $ol_enable_ldap = no -a \
2731 $ol_enable_meta = no -a \
2732 $ol_enable_monitor = no -a \
2733 $ol_enable_null = no -a \
2734 $ol_enable_passwd = no -a \
2735 $ol_enable_perl = no -a \
2736 $ol_enable_shell = no -a \
2737 $ol_enable_sql = no -a \
2738 $ol_enable_tcl = no ; then
2740 if test $ol_enable_slapd = yes ; then
2741 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2743 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2749 ol_with_ldbm_type=no
2750 ol_with_ldbm_module=static
2752 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2753 ol_with_ldbm_api=berkeley
2757 if test $ol_with_ldbm_api = gdbm -a \
2758 $ol_with_ldbm_type = btree ; then
2759 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2761 if test $ol_with_ldbm_api = mdbm -a \
2762 $ol_with_ldbm_type = btree ; then
2763 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2765 if test $ol_with_ldbm_api = ndbm -a \
2766 $ol_with_ldbm_type = btree ; then
2767 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2770 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2771 if test $ol_with_ldbm_api = auto ; then
2772 ol_with_ldbm_api=berkeley
2773 elif test $ol_with_ldbm_api != berkeley ; then
2774 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2777 elif test $ol_enable_bdb = auto ; then
2778 if test $ol_with_ldbm_api != berkeley \
2779 -o $ol_with_ldbm_api != auto ; then
2780 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2786 if test $ol_enable_slurpd = yes ; then
2787 if test $ol_with_threads = no ; then
2788 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2792 if test $ol_enable_lmpasswd = yes ; then
2793 if test $ol_with_tls = no ; then
2794 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2798 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2799 if test $ol_with_kerberos = no ; then
2800 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2801 elif test $ol_with_kerberos = auto ; then
2802 ol_with_kerberos=yes
2805 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2806 if test $ol_with_kerberos = auto ; then
2808 elif test $ol_with_kerberos != no ; then
2809 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2814 if test $ol_enable_spasswd = yes ; then
2815 if test $ol_with_cyrus_sasl = no ; then
2816 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2818 ol_with_cyrus_sasl=yes
2821 echo "$ac_t""done" 1>&6
2854 BUILD_BDB_DYNAMIC=static
2855 BUILD_DNSSRV_DYNAMIC=static
2856 BUILD_HDB_DYNAMIC=static
2857 BUILD_LDAP_DYNAMIC=static
2858 BUILD_LDBM_DYNAMIC=static
2859 BUILD_META_DYNAMIC=static
2860 BUILD_MONITOR_DYNAMIC=static
2861 BUILD_NULL_DYNAMIC=static
2862 BUILD_PASSWD_DYNAMIC=static
2863 BUILD_PERL_DYNAMIC=static
2864 BUILD_SHELL_DYNAMIC=static
2865 BUILD_TCL_DYNAMIC=static
2866 BUILD_SQL_DYNAMIC=static
2868 SLAPD_MODULES_LDFLAGS=
2869 SLAPD_MODULES_CPPFLAGS=
2871 SLAPD_STATIC_BACKENDS=
2872 SLAPD_DYNAMIC_BACKENDS=
2897 # Find a good install program. We prefer a C program (faster),
2898 # so one script is as good as another. But avoid the broken or
2899 # incompatible versions:
2900 # SysV /etc/install, /usr/sbin/install
2901 # SunOS /usr/etc/install
2902 # IRIX /sbin/install
2904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2907 # ./install, which can be erroneously created by make from ./install.sh.
2908 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2909 echo "configure:2910: checking for a BSD compatible install" >&5
2910 if test -z "$INSTALL"; then
2911 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2915 for ac_dir in $PATH; do
2916 # Account for people who put trailing slashes in PATH elements.
2918 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2920 # OSF1 and SCO ODT 3.0 have their own names for install.
2921 # Don't use installbsd from OSF since it installs stuff as root
2923 for ac_prog in ginstall scoinst install; do
2924 if test -f $ac_dir/$ac_prog; then
2925 if test $ac_prog = install &&
2926 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2927 # AIX install. It has an incompatible calling convention.
2929 elif test $ac_prog = install &&
2930 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2931 # program-specific install script used by HP pwplus--don't use.
2934 ac_cv_path_install="$ac_dir/$ac_prog -c"
2945 if test "${ac_cv_path_install+set}" = set; then
2946 INSTALL="$ac_cv_path_install"
2948 # As a last resort, use the slow shell script. We don't cache a
2949 # path for INSTALL within a source directory, because that will
2950 # break other packages using the cache if that directory is
2951 # removed, or if the path is relative.
2952 INSTALL="$ac_install_sh"
2955 echo "$ac_t""$INSTALL" 1>&6
2957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2958 # It thinks the first close brace ends the variable substitution.
2959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2966 cat >> confdefs.h <<\EOF
2967 #define HAVE_MKVERSION 1
2975 *-*-aix*) if test -z "$CC" ; then
2976 case "$ol_with_threads" in
2977 auto | yes | posix) ol_aix_threads=yes ;;
2983 if test $ol_aix_threads = yes ; then
2984 if test -z "${CC}" ; then
2985 for ac_prog in cc_r xlc_r cc
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_word" >&5
2991 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2999 for ac_dir in $ac_dummy; do
3000 test -z "$ac_dir" && ac_dir=.
3001 if test -f $ac_dir/$ac_word; then
3002 ac_cv_prog_CC="$ac_prog"
3010 if test -n "$CC"; then
3011 echo "$ac_t""$CC" 1>&6
3013 echo "$ac_t""no" 1>&6
3016 test -n "$CC" && break
3020 if test "$CC" = cc ; then
3021 if test $ol_with_threads != auto ; then
3022 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3024 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3030 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3031 ol_with_threads=posix
3032 ol_cv_pthread_create=yes
3036 if test -z "${CC}"; then
3037 for ac_prog in cc gcc
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy $ac_prog; ac_word=$2
3041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_word" >&5
3043 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3051 for ac_dir in $ac_dummy; do
3052 test -z "$ac_dir" && ac_dir=.
3053 if test -f $ac_dir/$ac_word; then
3054 ac_cv_prog_CC="$ac_prog"
3062 if test -n "$CC"; then
3063 echo "$ac_t""$CC" 1>&6
3065 echo "$ac_t""no" 1>&6
3068 test -n "$CC" && break
3070 test -n "$CC" || CC="missing"
3073 if test "${CC}" = "missing" ; then
3074 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3078 if test -z "${AR}"; then
3079 for ac_prog in ar gar
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_word" >&5
3085 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 if test -n "$AR"; then
3089 ac_cv_prog_AR="$AR" # Let the user override the test.
3091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3093 for ac_dir in $ac_dummy; do
3094 test -z "$ac_dir" && ac_dir=.
3095 if test -f $ac_dir/$ac_word; then
3096 ac_cv_prog_AR="$ac_prog"
3104 if test -n "$AR"; then
3105 echo "$ac_t""$AR" 1>&6
3107 echo "$ac_t""no" 1>&6
3110 test -n "$AR" && break
3112 test -n "$AR" || AR="missing"
3115 if test "${AR}" = "missing" ; then
3116 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3122 # Find the correct PATH separator. Usually this is `:', but
3123 # DJGPP uses `;' like DOS.
3124 if test "X${PATH_SEPARATOR+set}" != Xset; then
3125 UNAME=${UNAME-`uname 2>/dev/null`}
3127 *-DOS) lt_cv_sys_path_separator=';' ;;
3128 *) lt_cv_sys_path_separator=':' ;;
3130 PATH_SEPARATOR=$lt_cv_sys_path_separator
3133 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3134 echo "configure:3135: checking for Cygwin environment" >&5
3135 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3145 #define __CYGWIN__ __CYGWIN32__
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3162 echo "$ac_t""$ac_cv_cygwin" 1>&6
3164 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3165 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3166 echo "configure:3167: checking for mingw32 environment" >&5
3167 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3178 if { (eval echo configure:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3190 echo "$ac_t""$ac_cv_mingw32" 1>&6
3192 test "$ac_cv_mingw32" = yes && MINGW32=yes
3193 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3194 echo "configure:3195: checking for EMX OS/2 environment" >&5
3195 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3206 if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3218 echo "$ac_t""$ac_cv_emxos2" 1>&6
3220 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3221 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3222 echo "configure:3223: checking how to run the C preprocessor" >&5
3223 # On Suns, sometimes $CPP names a directory.
3224 if test -n "$CPP" && test -d "$CPP"; then
3227 if test -z "$CPP"; then
3228 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 # This must be in double quotes, not single quotes, because CPP may get
3232 # substituted into the Makefile and "${CC-cc}" will confuse make.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp.
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3245 if test -z "$ac_err"; then
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 CPP="${CC-cc} -E -traditional-cpp"
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3260 { (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3262 if test -z "$ac_err"; then
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3269 CPP="${CC-cc} -nologo -E"
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3277 { (eval echo configure:3278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3279 if test -z "$ac_err"; then
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3293 ac_cv_prog_CPP="$CPP"
3295 CPP="$ac_cv_prog_CPP"
3297 ac_cv_prog_CPP="$CPP"
3299 echo "$ac_t""$CPP" 1>&6
3301 # Check whether --enable-fast-install or --disable-fast-install was given.
3302 if test "${enable_fast_install+set}" = set; then
3303 enableval="$enable_fast_install"
3304 p=${PACKAGE-default}
3306 yes) enable_fast_install=yes ;;
3307 no) enable_fast_install=no ;;
3309 enable_fast_install=no
3310 # Look at the argument we got. We use all the common list separators.
3311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3312 for pkg in $enableval; do
3313 if test "X$pkg" = "X$p"; then
3314 enable_fast_install=yes
3321 enable_fast_install=yes
3324 # Extract the first word of "gcc", so it can be a program name with args.
3325 set dummy gcc; ac_word=$2
3326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_word" >&5
3328 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 if test -n "$CC"; then
3332 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3336 for ac_dir in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir=.
3338 if test -f $ac_dir/$ac_word; then
3347 if test -n "$CC"; then
3348 echo "$ac_t""$CC" 1>&6
3350 echo "$ac_t""no" 1>&6
3353 if test -z "$CC"; then
3354 # Extract the first word of "cc", so it can be a program name with args.
3355 set dummy cc; ac_word=$2
3356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3357 echo "configure:3358: checking for $ac_word" >&5
3358 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3367 for ac_dir in $ac_dummy; do
3368 test -z "$ac_dir" && ac_dir=.
3369 if test -f $ac_dir/$ac_word; then
3370 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy $ac_cv_prog_CC
3383 if test $# -gt 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3388 set dummy "$ac_dir/$ac_word" "$@"
3396 if test -n "$CC"; then
3397 echo "$ac_t""$CC" 1>&6
3399 echo "$ac_t""no" 1>&6
3402 if test -z "$CC"; then
3403 case "`uname -s`" in
3404 *win32* | *WIN32* | *CYGWIN*)
3405 # Extract the first word of "cl", so it can be a program name with args.
3406 set dummy cl; ac_word=$2
3407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3408 echo "configure:3409: checking for $ac_word" >&5
3409 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 for ac_dir in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir=.
3419 if test -f $ac_dir/$ac_word; then
3428 if test -n "$CC"; then
3429 echo "$ac_t""$CC" 1>&6
3431 echo "$ac_t""no" 1>&6
3436 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3439 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3440 echo "configure:3441: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3447 cross_compiling=$ac_cv_prog_cc_cross
3449 cat > conftest.$ac_ext << EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 ac_cv_prog_cc_works=yes
3458 # If we can't run a trivial program, we are probably using a cross compiler.
3459 if (./conftest; exit) 2>/dev/null; then
3460 ac_cv_prog_cc_cross=no
3462 ac_cv_prog_cc_cross=yes
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 ac_cv_prog_cc_works=no
3471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3475 cross_compiling=$ac_cv_prog_cc_cross
3477 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3478 if test $ac_cv_prog_cc_works = no; then
3479 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3481 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3482 echo "configure:3483: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3483 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3484 cross_compiling=$ac_cv_prog_cc_cross
3486 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3487 echo "configure:3488: checking whether we are using GNU C" >&5
3488 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.c <<EOF
3496 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3503 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3505 if test $ac_cv_prog_gcc = yes; then
3511 ac_test_CFLAGS="${CFLAGS+set}"
3512 ac_save_CFLAGS="$CFLAGS"
3514 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3515 echo "configure:3516: checking whether ${CC-cc} accepts -g" >&5
3516 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 echo 'void f(){}' > conftest.c
3520 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3529 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3530 if test "$ac_test_CFLAGS" = set; then
3531 CFLAGS="$ac_save_CFLAGS"
3532 elif test $ac_cv_prog_cc_g = yes; then
3533 if test "$GCC" = yes; then
3539 if test "$GCC" = yes; then
3546 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3547 if test "${with_gnu_ld+set}" = set; then
3548 withval="$with_gnu_ld"
3549 test "$withval" = no || with_gnu_ld=yes
3555 if test "$GCC" = yes; then
3556 # Check if gcc -print-prog-name=ld gives a path.
3557 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3558 echo "configure:3559: checking for ld used by GCC" >&5
3561 # gcc leaves a trailing carriage return which upsets mingw
3562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3567 # Accept absolute paths.
3568 [\\/]* | [A-Za-z]:[\\/]*)
3569 re_direlt='/[^/][^/]*/\.\./'
3570 # Canonicalize the path of ld
3571 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3572 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3573 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3575 test -z "$LD" && LD="$ac_prog"
3578 # If it fails, then pretend we aren't using GCC.
3582 # If it is relative, then search for the first ld in PATH.
3586 elif test "$with_gnu_ld" = yes; then
3587 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3588 echo "configure:3589: checking for GNU ld" >&5
3590 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3591 echo "configure:3592: checking for non-GNU ld" >&5
3593 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 if test -z "$LD"; then
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3598 for ac_dir in $PATH; do
3599 test -z "$ac_dir" && ac_dir=.
3600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3601 lt_cv_path_LD="$ac_dir/$ac_prog"
3602 # Check to see if the program is GNU ld. I'd rather use --version,
3603 # but apparently some GNU ld's only accept -v.
3604 # Break only if it was the GNU/non-GNU ld that we prefer.
3605 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3606 test "$with_gnu_ld" != no && break
3608 test "$with_gnu_ld" != yes && break
3614 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3619 if test -n "$LD"; then
3620 echo "$ac_t""$LD" 1>&6
3622 echo "$ac_t""no" 1>&6
3624 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3625 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3626 echo "configure:3627: checking if the linker ($LD) is GNU ld" >&5
3627 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3631 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3632 lt_cv_prog_gnu_ld=yes
3634 lt_cv_prog_gnu_ld=no
3638 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3639 with_gnu_ld=$lt_cv_prog_gnu_ld
3642 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3643 echo "configure:3644: checking for $LD option to reload object files" >&5
3644 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 lt_cv_ld_reload_flag='-r'
3650 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3651 reload_flag=$lt_cv_ld_reload_flag
3652 test -n "$reload_flag" && reload_flag=" $reload_flag"
3654 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3655 echo "configure:3656: checking for BSD-compatible nm" >&5
3656 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 if test -n "$NM"; then
3660 # Let the user override the test.
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3664 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3665 test -z "$ac_dir" && ac_dir=.
3666 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3667 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3668 # Check to see if the nm accepts a BSD-compat flag.
3669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3670 # nm: unknown option "B" ignored
3671 # Tru64's nm complains that /dev/null is an invalid object file
3672 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3673 lt_cv_path_NM="$tmp_nm -B"
3675 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3676 lt_cv_path_NM="$tmp_nm -p"
3679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3680 continue # so that we can try to find one that supports BSD flags
3685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3690 echo "$ac_t""$NM" 1>&6
3692 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3693 echo "configure:3694: checking for a sed that does not truncate output" >&5
3694 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 # Loop through the user's path and test for sed and gsed.
3698 # Then use that list of sed's as ones to test for truncation.
3699 as_executable_p="test -f"
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_prog in sed gsed; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3708 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3714 # Create a temporary directory, and hook for its removal unless debugging.
3717 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3718 trap '{ (exit 1); exit 1; }' 1 2 13 15
3721 # Create a (secure) tmp directory for tmp files.
3724 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3725 test -n "$tmp" && test -d "$tmp"
3728 tmp=$TMPDIR/sed$$-$RANDOM
3729 (umask 077 && mkdir $tmp)
3732 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3733 { (exit 1); exit 1; }
3737 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3738 # along with /bin/sed that truncates output.
3739 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3740 test ! -f ${_sed} && break
3741 cat /dev/null > "$tmp/sed.in"
3743 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3744 # Check for GNU sed and select it if it is found.
3745 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3746 lt_cv_path_SED=${_sed}
3750 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3751 mv "$tmp/sed.tmp" "$tmp/sed.in"
3752 cp "$tmp/sed.in" "$tmp/sed.nl"
3753 echo >>"$tmp/sed.nl"
3754 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3755 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3756 # 40000 chars as input seems more than enough
3757 test $_count -gt 10 && break
3758 _count=`expr $_count + 1`
3759 if test $_count -gt $_max; then
3761 lt_cv_path_SED=$_sed
3769 if test "X$SED" != "X"; then
3774 echo "$ac_t""$SED" 1>&6
3776 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3777 echo "configure:3778: checking whether ln -s works" >&5
3778 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3782 if ln -s X conftestdata 2>/dev/null
3785 ac_cv_prog_LN_S="ln -s"
3790 LN_S="$ac_cv_prog_LN_S"
3791 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3792 echo "$ac_t""yes" 1>&6
3794 echo "$ac_t""no" 1>&6
3797 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3798 echo "configure:3799: checking how to recognise dependent libraries" >&5
3799 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 lt_cv_file_magic_cmd='$MAGIC_CMD'
3803 lt_cv_file_magic_test_file=
3804 lt_cv_deplibs_check_method='unknown'
3805 # Need to set the preceding variable on all platforms that support
3806 # interlibrary dependencies.
3807 # 'none' -- dependencies not supported.
3808 # `unknown' -- same as none, but documents that we really don't know.
3809 # 'pass_all' -- all dependencies passed with no checks.
3810 # 'test_compile' -- check by making test program.
3811 # 'file_magic [[regex]]' -- check by looking for files in library path
3812 # which responds to the $file_magic_cmd with a given egrep regex.
3813 # If you have `file' or equivalent on your system and you're not sure
3814 # whether `pass_all' will *always* work, you probably want this one.
3818 lt_cv_deplibs_check_method=pass_all
3822 lt_cv_deplibs_check_method=pass_all
3826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3827 lt_cv_file_magic_cmd='/usr/bin/file -L'
3828 lt_cv_file_magic_test_file=/shlib/libc.so
3831 cygwin* | mingw* | pw32*)
3832 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3833 lt_cv_file_magic_cmd='$OBJDUMP -f'
3836 darwin* | rhapsody*)
3837 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3838 lt_cv_file_magic_cmd='/usr/bin/file -L'
3840 rhapsody* | darwin1.[012])
3841 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3844 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3850 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3853 # Not sure whether the presence of OpenBSD here was a mistake.
3854 # Let's accept both of them until this is cleared up.
3855 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3856 lt_cv_file_magic_cmd=/usr/bin/file
3857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3861 lt_cv_deplibs_check_method=pass_all
3866 lt_cv_deplibs_check_method=pass_all
3870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3875 irix5* | irix6* | nonstopux*)
3877 irix5* | nonstopux*)
3878 # this will be overridden with pass_all, but let us keep it just in case
3879 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3883 *-32|*"-32 ") libmagic=32-bit;;
3884 *-n32|*"-n32 ") libmagic=N32;;
3885 *-64|*"-64 ") libmagic=64-bit;;
3886 *) libmagic=never-match;;
3888 # this will be overridden with pass_all, but let us keep it just in case
3889 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3892 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3893 lt_cv_deplibs_check_method=pass_all
3896 # This must be Linux ELF.
3899 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3900 lt_cv_deplibs_check_method=pass_all ;;
3902 # glibc up to 2.1.1 does not perform some relocations on ARM
3903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3905 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3909 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3910 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3912 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3918 lt_cv_file_magic_cmd=/usr/bin/file
3919 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3923 lt_cv_file_magic_cmd=/usr/bin/file
3924 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3928 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3932 osf3* | osf4* | osf5*)
3933 # this will be overridden with pass_all, but let us keep it just in case
3934 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3935 lt_cv_file_magic_test_file=/shlib/libc.so
3936 lt_cv_deplibs_check_method=pass_all
3940 lt_cv_deplibs_check_method=pass_all
3944 lt_cv_deplibs_check_method=pass_all
3945 lt_cv_file_magic_test_file=/lib/libc.so
3948 sysv5uw[78]* | sysv4*uw2*)
3949 lt_cv_deplibs_check_method=pass_all
3952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3953 case $host_vendor in
3955 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]'
3956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3959 lt_cv_deplibs_check_method=pass_all
3962 lt_cv_file_magic_cmd='/bin/file'
3963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3966 lt_cv_file_magic_cmd='/bin/file'
3967 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3968 lt_cv_file_magic_test_file=/lib/libc.so
3971 lt_cv_deplibs_check_method=pass_all
3979 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3980 file_magic_cmd=$lt_cv_file_magic_cmd
3981 deplibs_check_method=$lt_cv_deplibs_check_method
3983 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3984 echo "configure:3985: checking for object suffix" >&5
3985 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3989 echo 'int i = 1;' > conftest.$ac_ext
3990 if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991 for ac_file in conftest.*; do
3994 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3998 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4003 echo "$ac_t""$ac_cv_objext" 1>&6
4004 OBJEXT=$ac_cv_objext
4005 ac_objext=$ac_cv_objext
4010 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4011 echo "configure:4012: checking for executable suffix" >&5
4012 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4019 echo 'int main () { return 0; }' > conftest.$ac_ext
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4022 for file in conftest.*; do
4024 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4025 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4029 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4032 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4037 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4038 echo "$ac_t""${ac_cv_exeext}" 1>&6
4041 if test $host != $build; then
4042 ac_tool_prefix=${host_alias}-
4050 # Check for command to grab the raw symbol name followed by C symbol from nm.
4051 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4052 echo "configure:4053: checking command to parse $NM output" >&5
4053 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4057 # These are sane defaults that work on at least a few old systems.
4058 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4060 # Character class describing NM global symbol codes.
4061 symcode='[BCDEGRST]'
4063 # Regexp to match symbols that can be accessed directly from C.
4064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4066 # Transform the above into a raw symbol and a C symbol.
4067 symxfrm='\1 \2\3 \3'
4069 # Transform an extracted symbol line into a proper C declaration
4070 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4072 # Transform an extracted symbol line into symbol name and symbol address
4073 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'"
4075 # Define system-specific variables.
4080 cygwin* | mingw* | pw32*)
4081 symcode='[ABCDGISTW]'
4083 hpux*) # Its linker distinguishes data from code symbols
4084 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4085 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'"
4088 symcode='[BCDEGRST]'
4091 symcode='[BCDEGQRST]'
4101 # Handle CRLF in mingw tool chain
4105 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4109 # If we're using GNU nm, then use its standard symbol codes.
4110 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4111 symcode='[ABCDGISTW]'
4114 # Try without a prefix undercore, then with it.
4115 for ac_symprfx in "" "_"; do
4117 # Write the raw and C identifiers.
4118 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4120 # Check to see that the pipe works correctly.
4123 cat > conftest.$ac_ext <<EOF
4128 void nm_test_func(){}
4132 int main(){nm_test_var='a';nm_test_func();return(0);}
4135 if { (eval echo configure:4136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4136 # Now try to grab the symbols.
4138 if { (eval echo configure:4139: \"$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
4139 # Try sorting and uniquifying the output.
4140 if sort "$nlist" | uniq > "$nlist"T; then
4141 mv -f "$nlist"T "$nlist"
4146 # Make sure that we snagged all the symbols we need.
4147 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4148 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4149 cat <<EOF > conftest.$ac_ext
4155 # Now generate the symbol file.
4156 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4158 cat <<EOF >> conftest.$ac_ext
4159 #if defined (__STDC__) && __STDC__
4160 # define lt_ptr void *
4162 # define lt_ptr char *
4166 /* The mapping between symbol names and symbols. */
4171 lt_preloaded_symbols[] =
4174 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4175 cat <<\EOF >> conftest.$ac_ext
4183 # Now try linking the two files.
4184 mv conftest.$ac_objext conftstm.$ac_objext
4186 save_CFLAGS="$CFLAGS"
4187 LIBS="conftstm.$ac_objext"
4188 CFLAGS="$CFLAGS$no_builtin_flag"
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4193 CFLAGS="$save_CFLAGS"
4195 echo "cannot find nm_test_func in $nlist" >&5
4198 echo "cannot find nm_test_var in $nlist" >&5
4201 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4204 echo "$progname: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 rm -f conftest* conftst*
4209 # Do not use the global_symbol_pipe unless it works.
4210 if test "$pipe_works" = yes; then
4213 lt_cv_sys_global_symbol_pipe=
4219 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4220 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4221 global_symbol_to_cdecl=
4222 global_symbol_to_c_name_address=
4224 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4225 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4227 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4229 echo "$ac_t""failed" 1>&6
4231 echo "$ac_t""ok" 1>&6
4234 for ac_hdr in dlfcn.h
4236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4238 echo "configure:4239: checking for $ac_hdr" >&5
4239 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4248 { (eval echo configure:4249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4250 if test -z "$ac_err"; then
4252 eval "ac_cv_header_$ac_safe=yes"
4255 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4258 eval "ac_cv_header_$ac_safe=no"
4262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4265 cat >> confdefs.h <<EOF
4266 #define $ac_tr_hdr 1
4270 echo "$ac_t""no" 1>&6
4279 # Only perform the check for file, if the check method requires it
4280 case $deplibs_check_method in
4282 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4283 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4284 echo "configure:4285: checking for ${ac_tool_prefix}file" >&5
4285 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4293 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4296 ac_save_MAGIC_CMD="$MAGIC_CMD"
4297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4298 ac_dummy="/usr/bin:$PATH"
4299 for ac_dir in $ac_dummy; do
4300 test -z "$ac_dir" && ac_dir=.
4301 if test -f $ac_dir/${ac_tool_prefix}file; then
4302 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4303 if test -n "$file_magic_test_file"; then
4304 case $deplibs_check_method in
4306 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4309 egrep "$file_magic_regex" > /dev/null; then
4314 *** Warning: the command libtool uses to detect shared libraries,
4315 *** $file_magic_cmd, produces output that libtool cannot recognize.
4316 *** The result is that libtool may fail to recognize shared libraries
4317 *** as such. This will affect the creation of libtool libraries that
4318 *** depend on shared libraries, but programs linked with such libtool
4319 *** libraries will work regardless of this problem. Nevertheless, you
4320 *** may want to report the problem to your system manager and/or to
4321 *** bug-libtool@gnu.org
4331 MAGIC_CMD="$ac_save_MAGIC_CMD"
4336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4337 if test -n "$MAGIC_CMD"; then
4338 echo "$ac_t""$MAGIC_CMD" 1>&6
4340 echo "$ac_t""no" 1>&6
4343 if test -z "$lt_cv_path_MAGIC_CMD"; then
4344 if test -n "$ac_tool_prefix"; then
4345 echo $ac_n "checking for file""... $ac_c" 1>&6
4346 echo "configure:4347: checking for file" >&5
4347 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4358 ac_save_MAGIC_CMD="$MAGIC_CMD"
4359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4360 ac_dummy="/usr/bin:$PATH"
4361 for ac_dir in $ac_dummy; do
4362 test -z "$ac_dir" && ac_dir=.
4363 if test -f $ac_dir/file; then
4364 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4365 if test -n "$file_magic_test_file"; then
4366 case $deplibs_check_method in
4368 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4371 egrep "$file_magic_regex" > /dev/null; then
4376 *** Warning: the command libtool uses to detect shared libraries,
4377 *** $file_magic_cmd, produces output that libtool cannot recognize.
4378 *** The result is that libtool may fail to recognize shared libraries
4379 *** as such. This will affect the creation of libtool libraries that
4380 *** depend on shared libraries, but programs linked with such libtool
4381 *** libraries will work regardless of this problem. Nevertheless, you
4382 *** may want to report the problem to your system manager and/or to
4383 *** bug-libtool@gnu.org
4393 MAGIC_CMD="$ac_save_MAGIC_CMD"
4398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4399 if test -n "$MAGIC_CMD"; then
4400 echo "$ac_t""$MAGIC_CMD" 1>&6
4402 echo "$ac_t""no" 1>&6
4414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_word" >&5
4418 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 if test -n "$RANLIB"; then
4422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4426 for ac_dir in $ac_dummy; do
4427 test -z "$ac_dir" && ac_dir=.
4428 if test -f $ac_dir/$ac_word; then
4429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4436 RANLIB="$ac_cv_prog_RANLIB"
4437 if test -n "$RANLIB"; then
4438 echo "$ac_t""$RANLIB" 1>&6
4440 echo "$ac_t""no" 1>&6
4444 if test -z "$ac_cv_prog_RANLIB"; then
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "ranlib", so it can be a program name with args.
4447 set dummy ranlib; ac_word=$2
4448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_word" >&5
4450 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 if test -n "$RANLIB"; then
4454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_RANLIB="ranlib"
4466 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4469 RANLIB="$ac_cv_prog_RANLIB"
4470 if test -n "$RANLIB"; then
4471 echo "$ac_t""$RANLIB" 1>&6
4473 echo "$ac_t""no" 1>&6
4481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4482 set dummy ${ac_tool_prefix}strip; ac_word=$2
4483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_word" >&5
4485 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 if test -n "$STRIP"; then
4489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4493 for ac_dir in $ac_dummy; do
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f $ac_dir/$ac_word; then
4496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4503 STRIP="$ac_cv_prog_STRIP"
4504 if test -n "$STRIP"; then
4505 echo "$ac_t""$STRIP" 1>&6
4507 echo "$ac_t""no" 1>&6
4511 if test -z "$ac_cv_prog_STRIP"; then
4512 if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "strip", so it can be a program name with args.
4514 set dummy strip; ac_word=$2
4515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_word" >&5
4517 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 if test -n "$STRIP"; then
4521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4525 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f $ac_dir/$ac_word; then
4528 ac_cv_prog_STRIP="strip"
4533 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4536 STRIP="$ac_cv_prog_STRIP"
4537 if test -n "$STRIP"; then
4538 echo "$ac_t""$STRIP" 1>&6
4540 echo "$ac_t""no" 1>&6
4550 enable_win32_dll=yes
4552 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4553 if test "${enable_libtool_lock+set}" = set; then
4554 enableval="$enable_libtool_lock"
4558 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4560 # Some flags need to be propagated to the compiler or linker for good
4564 # Find out which ABI we are using.
4565 echo '#line 4566 "configure"' > conftest.$ac_ext
4566 if { (eval echo configure:4567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4567 case `/usr/bin/file conftest.$ac_objext` in
4583 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4584 SAVE_CFLAGS="$CFLAGS"
4585 CFLAGS="$CFLAGS -belf"
4586 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4587 echo "configure:4588: checking whether the C compiler needs -belf" >&5
4588 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4597 cross_compiling=$ac_cv_prog_cc_cross
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 lt_cv_cc_needs_belf=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 lt_cv_cc_needs_belf=no
4618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4622 cross_compiling=$ac_cv_prog_cc_cross
4626 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4627 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4628 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4629 CFLAGS="$SAVE_CFLAGS"
4633 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4634 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4635 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4637 echo "configure:4638: checking for $ac_word" >&5
4638 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 if test -n "$DLLTOOL"; then
4642 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4646 for ac_dir in $ac_dummy; do
4647 test -z "$ac_dir" && ac_dir=.
4648 if test -f $ac_dir/$ac_word; then
4649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4656 DLLTOOL="$ac_cv_prog_DLLTOOL"
4657 if test -n "$DLLTOOL"; then
4658 echo "$ac_t""$DLLTOOL" 1>&6
4660 echo "$ac_t""no" 1>&6
4664 if test -z "$ac_cv_prog_DLLTOOL"; then
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "dlltool", so it can be a program name with args.
4667 set dummy dlltool; ac_word=$2
4668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4669 echo "configure:4670: checking for $ac_word" >&5
4670 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 if test -n "$DLLTOOL"; then
4674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4678 for ac_dir in $ac_dummy; do
4679 test -z "$ac_dir" && ac_dir=.
4680 if test -f $ac_dir/$ac_word; then
4681 ac_cv_prog_DLLTOOL="dlltool"
4686 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4689 DLLTOOL="$ac_cv_prog_DLLTOOL"
4690 if test -n "$DLLTOOL"; then
4691 echo "$ac_t""$DLLTOOL" 1>&6
4693 echo "$ac_t""no" 1>&6
4701 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}as; ac_word=$2
4703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4704 echo "configure:4705: checking for $ac_word" >&5
4705 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 if test -n "$AS"; then
4709 ac_cv_prog_AS="$AS" # Let the user override the test.
4711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4713 for ac_dir in $ac_dummy; do
4714 test -z "$ac_dir" && ac_dir=.
4715 if test -f $ac_dir/$ac_word; then
4716 ac_cv_prog_AS="${ac_tool_prefix}as"
4724 if test -n "$AS"; then
4725 echo "$ac_t""$AS" 1>&6
4727 echo "$ac_t""no" 1>&6
4731 if test -z "$ac_cv_prog_AS"; then
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "as", so it can be a program name with args.
4734 set dummy as; ac_word=$2
4735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_word" >&5
4737 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 if test -n "$AS"; then
4741 ac_cv_prog_AS="$AS" # Let the user override the test.
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4745 for ac_dir in $ac_dummy; do
4746 test -z "$ac_dir" && ac_dir=.
4747 if test -f $ac_dir/$ac_word; then
4753 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4757 if test -n "$AS"; then
4758 echo "$ac_t""$AS" 1>&6
4760 echo "$ac_t""no" 1>&6
4768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4771 echo "configure:4772: checking for $ac_word" >&5
4772 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 if test -n "$OBJDUMP"; then
4776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4780 for ac_dir in $ac_dummy; do
4781 test -z "$ac_dir" && ac_dir=.
4782 if test -f $ac_dir/$ac_word; then
4783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4790 OBJDUMP="$ac_cv_prog_OBJDUMP"
4791 if test -n "$OBJDUMP"; then
4792 echo "$ac_t""$OBJDUMP" 1>&6
4794 echo "$ac_t""no" 1>&6
4798 if test -z "$ac_cv_prog_OBJDUMP"; then
4799 if test -n "$ac_tool_prefix"; then
4800 # Extract the first word of "objdump", so it can be a program name with args.
4801 set dummy objdump; ac_word=$2
4802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4803 echo "configure:4804: checking for $ac_word" >&5
4804 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 if test -n "$OBJDUMP"; then
4808 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4812 for ac_dir in $ac_dummy; do
4813 test -z "$ac_dir" && ac_dir=.
4814 if test -f $ac_dir/$ac_word; then
4815 ac_cv_prog_OBJDUMP="objdump"
4820 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4823 OBJDUMP="$ac_cv_prog_OBJDUMP"
4824 if test -n "$OBJDUMP"; then
4825 echo "$ac_t""$OBJDUMP" 1>&6
4827 echo "$ac_t""no" 1>&6
4836 # recent cygwin and mingw systems supply a stub DllMain which the user
4837 # can override, but on older systems we have to supply one
4838 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4839 echo "configure:4840: checking if libtool should supply DllMain function" >&5
4840 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4848 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 lt_cv_need_dllmain=no
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4859 lt_cv_need_dllmain=yes
4864 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4867 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4868 # old mingw systems require "-dll" to link a DLL, while more recent ones
4870 SAVE_CFLAGS="$CFLAGS"
4871 CFLAGS="$CFLAGS -mdll"
4872 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4873 echo "configure:4874: checking how to link DLLs" >&5
4874 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 lt_cv_cc_dll_switch=-mdll
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 lt_cv_cc_dll_switch=-dll
4897 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4898 CFLAGS="$SAVE_CFLAGS" ;;
4899 *-*-cygwin* | *-*-pw32*)
4900 # cygwin systems need to pass --dll to the linker, and not link
4901 # crt.o which will require a WinMain@16 definition.
4902 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4908 # Sed substitution that helps us do robust quoting. It backslashifies
4909 # metacharacters that are still active within double-quoted strings.
4910 Xsed='sed -e s/^X//'
4911 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4913 # Same as above, but do not quote variable references.
4914 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4916 # Sed substitution to delay expansion of an escaped shell variable in a
4917 # double_quote_subst'ed string.
4918 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924 default_ofile=libtool
4925 can_build_shared=yes
4927 # All known linkers require a `.a' archive for static linking (except M$VC,
4928 # which needs '.lib').
4930 ltmain="$ac_aux_dir/ltmain.sh"
4931 ofile="$default_ofile"
4932 with_gnu_ld="$lt_cv_prog_gnu_ld"
4933 need_locks="$enable_libtool_lock"
4936 old_CFLAGS="$CFLAGS"
4938 # Set sane defaults for various variables
4939 test -z "$AR" && AR=ar
4940 test -z "$AR_FLAGS" && AR_FLAGS=cru
4941 test -z "$AS" && AS=as
4942 test -z "$CC" && CC=cc
4943 test -z "$DLLTOOL" && DLLTOOL=dlltool
4944 test -z "$LD" && LD=ld
4945 test -z "$LN_S" && LN_S="ln -s"
4946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4947 test -z "$NM" && NM=nm
4948 test -z "$OBJDUMP" && OBJDUMP=objdump
4949 test -z "$RANLIB" && RANLIB=:
4950 test -z "$STRIP" && STRIP=:
4951 test -z "$ac_objext" && ac_objext=o
4953 if test x"$host" != x"$build"; then
4954 ac_tool_prefix=${host_alias}-
4959 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4962 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4967 # AIX sometimes has problems with the GCC collect2 program. For some
4968 # reason, if we set the COLLECT_NAMES environment variable, the problems
4969 # vanish in a puff of smoke.
4970 if test "X${COLLECT_NAMES+set}" != Xset; then
4972 export COLLECT_NAMES
4977 # Determine commands to create old-style static archives.
4978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4979 old_postinstall_cmds='chmod 644 $oldlib'
4980 old_postuninstall_cmds=
4982 if test -n "$RANLIB"; then
4985 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4988 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4994 # Allow CC to be a program name with arguments.
4998 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4999 echo "configure:5000: checking for objdir" >&5
5000 rm -f .libs 2>/dev/null
5001 mkdir .libs 2>/dev/null
5002 if test -d .libs; then
5005 # MS-DOS does not allow filenames that begin with a dot.
5008 rmdir .libs 2>/dev/null
5009 echo "$ac_t""$objdir" 1>&6
5012 # Check whether --with-pic or --without-pic was given.
5013 if test "${with_pic+set}" = set; then
5020 test -z "$pic_mode" && pic_mode=default
5022 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5023 # in isolation, and that seeing it set (from the cache) indicates that
5024 # the associated values are set (in the cache) correctly too.
5025 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5026 echo "configure:5027: checking for $compiler option to produce PIC" >&5
5027 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5031 lt_cv_prog_cc_shlib=
5033 lt_cv_prog_cc_static=
5034 lt_cv_prog_cc_no_builtin=
5035 lt_cv_prog_cc_can_build_shared=$can_build_shared
5037 if test "$GCC" = yes; then
5038 lt_cv_prog_cc_wl='-Wl,'
5039 lt_cv_prog_cc_static='-static'
5043 # Below there is a dirty hack to force normal static linking with -ldl
5044 # The problem is because libdl dynamically linked with both libc and
5045 # libC (AIX C++ library), which obviously doesn't included in libraries
5046 # list by gcc. This cause undefined symbols with -static flags.
5047 # This hack allows C programs to be linked with "-static -ldl", but
5048 # not sure about C++ programs.
5049 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5052 # FIXME: we need at least 68020 code to build shared libraries, but
5053 # adding the `-m68020' flag to GCC prevents building anything better,
5055 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5058 # PIC is the default for these OSes.
5060 darwin* | rhapsody*)
5061 # PIC is the default on this platform
5062 # Common symbols not allowed in MH_DYLIB files
5063 lt_cv_prog_cc_pic='-fno-common'
5065 cygwin* | mingw* | pw32* | os2*)
5066 # This hack is so that the source file can tell whether it is being
5067 # built for inclusion in a dll (and should export symbols for example).
5068 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5071 if test -d /usr/nec; then
5072 lt_cv_prog_cc_pic=-Kconform_pic
5076 lt_cv_prog_cc_pic='-fPIC'
5080 # PORTME Check for PIC flags for the system compiler.
5082 aix3* | aix4* | aix5*)
5083 lt_cv_prog_cc_wl='-Wl,'
5084 # All AIX code is PIC.
5085 if test "$host_cpu" = ia64; then
5086 # AIX 5 now supports IA64 processor
5087 lt_cv_prog_cc_static='-Bstatic'
5089 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5093 hpux9* | hpux10* | hpux11*)
5094 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5095 lt_cv_prog_cc_wl='-Wl,'
5096 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5097 lt_cv_prog_cc_pic='+Z'
5100 irix5* | irix6* | nonstopux*)
5101 lt_cv_prog_cc_wl='-Wl,'
5102 lt_cv_prog_cc_static='-non_shared'
5103 # PIC (with -KPIC) is the default.
5106 cygwin* | mingw* | pw32* | os2*)
5107 # This hack is so that the source file can tell whether it is being
5108 # built for inclusion in a dll (and should export symbols for example).
5109 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5113 lt_cv_prog_cc_pic='-KPIC'
5114 lt_cv_prog_cc_static='-Bstatic'
5117 osf3* | osf4* | osf5*)
5118 # All OSF/1 code is PIC.
5119 lt_cv_prog_cc_wl='-Wl,'
5120 lt_cv_prog_cc_static='-non_shared'
5124 lt_cv_prog_cc_pic='-Kpic'
5125 lt_cv_prog_cc_static='-dn'
5126 lt_cv_prog_cc_shlib='-belf'
5130 lt_cv_prog_cc_pic='-KPIC'
5131 lt_cv_prog_cc_static='-Bstatic'
5132 lt_cv_prog_cc_wl='-Wl,'
5136 lt_cv_prog_cc_pic='-PIC'
5137 lt_cv_prog_cc_static='-Bstatic'
5138 lt_cv_prog_cc_wl='-Qoption ld '
5141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5142 lt_cv_prog_cc_pic='-KPIC'
5143 lt_cv_prog_cc_static='-Bstatic'
5144 lt_cv_prog_cc_wl='-Wl,'
5148 lt_cv_prog_cc_pic='-pic'
5149 lt_cv_prog_cc_static='-Bstatic'
5153 if test -d /usr/nec ;then
5154 lt_cv_prog_cc_pic='-Kconform_pic'
5155 lt_cv_prog_cc_static='-Bstatic'
5160 lt_cv_prog_cc_can_build_shared=no
5167 if test -z "$lt_cv_prog_cc_pic"; then
5168 echo "$ac_t""none" 1>&6
5170 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5172 # Check to make sure the pic_flag actually works.
5173 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5174 echo "configure:5175: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5175 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 save_CFLAGS="$CFLAGS"
5179 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5180 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5188 if { (eval echo configure:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 hpux9* | hpux10* | hpux11*)
5192 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5193 # they create non-PIC objects. So, if there were any warnings, we
5194 # assume that PIC is not supported.
5195 if test -s conftest.err; then
5196 lt_cv_prog_cc_pic_works=no
5198 lt_cv_prog_cc_pic_works=yes
5202 lt_cv_prog_cc_pic_works=yes
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 lt_cv_prog_cc_pic_works=no
5214 CFLAGS="$save_CFLAGS"
5219 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5221 lt_cv_prog_cc_can_build_shared=no
5223 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5226 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5229 # Check for any special shared library compilation flags.
5230 if test -n "$lt_cv_prog_cc_shlib"; then
5231 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5232 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5234 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5235 lt_cv_prog_cc_can_build_shared=no
5239 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5240 echo "configure:5241: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5241 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 lt_cv_prog_cc_static_works=no
5245 save_LDFLAGS="$LDFLAGS"
5246 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5257 lt_cv_prog_cc_static_works=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5263 LDFLAGS="$save_LDFLAGS"
5268 # Belt *and* braces to stop my trousers falling down:
5269 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5270 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5272 pic_flag="$lt_cv_prog_cc_pic"
5273 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5274 wl="$lt_cv_prog_cc_wl"
5275 link_static_flag="$lt_cv_prog_cc_static"
5276 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5277 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5280 # Check to see if options -o and -c are simultaneously supported by compiler
5281 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5282 echo "configure:5283: checking if $compiler supports -c -o file.$ac_objext" >&5
5283 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5287 $rm -r conftest 2>/dev/null
5290 echo "int some_variable = 0;" > conftest.$ac_ext
5292 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5293 # that will create temporary files in the current directory regardless of
5294 # the output directory. Thus, making CWD read-only will cause this test
5295 # to fail, enabling locking or at least warning the user not to do parallel
5298 save_CFLAGS="$CFLAGS"
5299 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5301 if { (eval echo configure:5302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5302 # The compiler can only warn and ignore the option if not recognized
5303 # So say no if there are warnings
5304 if test -s out/conftest.err; then
5305 lt_cv_compiler_c_o=no
5307 lt_cv_compiler_c_o=yes
5310 # Append any errors to the config.log.
5311 cat out/conftest.err 1>&5
5312 lt_cv_compiler_c_o=no
5314 CFLAGS="$save_CFLAGS"
5320 $rm -r conftest 2>/dev/null
5324 compiler_c_o=$lt_cv_compiler_c_o
5325 echo "$ac_t""$compiler_c_o" 1>&6
5327 if test x"$compiler_c_o" = x"yes"; then
5328 # Check to see if we can write to a .lo
5329 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5330 echo "configure:5331: checking if $compiler supports -c -o file.lo" >&5
5331 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5335 lt_cv_compiler_o_lo=no
5336 save_CFLAGS="$CFLAGS"
5337 CFLAGS="$CFLAGS -c -o conftest.lo"
5338 save_objext="$ac_objext"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5345 int some_variable = 0;
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5350 # The compiler can only warn and ignore the option if not recognized
5351 # So say no if there are warnings
5352 if test -s conftest.err; then
5353 lt_cv_compiler_o_lo=no
5355 lt_cv_compiler_o_lo=yes
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5363 ac_objext="$save_objext"
5364 CFLAGS="$save_CFLAGS"
5368 compiler_o_lo=$lt_cv_compiler_o_lo
5369 echo "$ac_t""$compiler_o_lo" 1>&6
5374 # Check to see if we can do hard links to lock some files if needed
5375 hard_links="nottested"
5376 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5377 # do not overwrite the value of need_locks provided by the user
5378 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5379 echo "configure:5380: checking if we can lock with hard links" >&5
5382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5384 ln conftest.a conftest.b 2>&5 || hard_links=no
5385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5386 echo "$ac_t""$hard_links" 1>&6
5387 if test "$hard_links" = no; then
5388 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5395 if test "$GCC" = yes; then
5396 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5397 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5398 echo "configure:5399: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5399 echo "int some_variable = 0;" > conftest.$ac_ext
5400 save_CFLAGS="$CFLAGS"
5401 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5402 compiler_rtti_exceptions=no
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5408 int some_variable = 0;
5411 if { (eval echo configure:5412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5413 # The compiler can only warn and ignore the option if not recognized
5414 # So say no if there are warnings
5415 if test -s conftest.err; then
5416 compiler_rtti_exceptions=no
5418 compiler_rtti_exceptions=yes
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5426 CFLAGS="$save_CFLAGS"
5427 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5429 if test "$compiler_rtti_exceptions" = "yes"; then
5430 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5432 no_builtin_flag=' -fno-builtin'
5436 # See if the linker supports building shared libraries.
5437 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5438 echo "configure:5439: checking whether the linker ($LD) supports shared libraries" >&5
5440 allow_undefined_flag=
5442 need_lib_prefix=unknown
5443 need_version=unknown
5444 # when you set need_version to no, make sure it does not cause -set_version
5445 # flags to be left without arguments
5447 archive_expsym_cmds=
5448 old_archive_from_new_cmds=
5449 old_archive_from_expsyms_cmds=
5450 export_dynamic_flag_spec=
5451 whole_archive_flag_spec=
5452 thread_safe_flag_spec=
5453 hardcode_into_libs=no
5454 hardcode_libdir_flag_spec=
5455 hardcode_libdir_separator=
5458 hardcode_shlibpath_var=unsupported
5460 link_all_deplibs=unknown
5461 always_export_symbols=no
5462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5463 # include_expsyms should be a list of space-separated symbols to be *always*
5464 # included in the symbol list
5466 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5469 # as well as any symbol that contains `d'.
5470 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5472 # platforms (ab)use it in PIC code, but their linkers get confused if
5473 # the symbol is explicitly referenced. Since portable code cannot
5474 # rely on this symbol name, it's probably fine to never include it in
5475 # preloaded symbol tables.
5476 extract_expsyms_cmds=
5479 cygwin* | mingw* | pw32*)
5480 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5481 # When not using gcc, we currently assume that we are using
5482 # Microsoft Visual C++.
5483 if test "$GCC" != yes; then
5493 if test "$with_gnu_ld" = yes; then
5494 # If archive_cmds runs LD, not CC, wlarc should be empty
5497 # See if GNU ld supports shared libraries.
5499 aix3* | aix4* | aix5*)
5500 # On AIX, the GNU linker is very broken
5501 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5505 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5506 *** to be unable to reliably create shared libraries on AIX.
5507 *** Therefore, libtool is disabling shared libraries support. If you
5508 *** really care for shared libraries, you may want to modify your PATH
5509 *** so that a non-GNU linker is found, and then restart.
5515 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)'
5516 hardcode_libdir_flag_spec='-L$libdir'
5517 hardcode_minus_L=yes
5519 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5520 # that the semantics of dynamic libraries on AmigaOS, at least up
5521 # to version 4, is to share data among multiple programs linked
5522 # with the same dynamic library. Since this doesn't match the
5523 # behavior of shared libraries on other platforms, we can use
5529 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5530 allow_undefined_flag=unsupported
5531 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5532 # support --undefined. This deserves some investigation. FIXME
5533 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5539 cygwin* | mingw* | pw32*)
5540 # hardcode_libdir_flag_spec is actually meaningless, as there is
5541 # no search path for DLLs.
5542 hardcode_libdir_flag_spec='-L$libdir'
5543 allow_undefined_flag=unsupported
5544 always_export_symbols=yes
5546 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5547 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5548 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5549 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5550 else $CC -o impgen impgen.c ; fi)~
5551 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5553 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5555 # cygwin and mingw dlls have different entry points and sets of symbols
5557 # FIXME: what about values for MSVC?
5558 dll_entry=__cygwin_dll_entry@12
5559 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5563 dll_entry=_DllMainCRTStartup@12
5564 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5568 # mingw and cygwin differ, and it's simplest to just exclude the union
5569 # of the two symbol sets.
5570 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5572 # recent cygwin and mingw systems supply a stub DllMain which the user
5573 # can override, but on older systems we have to supply one (in ltdll.c)
5574 if test "x$lt_cv_need_dllmain" = "xyes"; then
5575 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5576 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~
5577 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5583 # Extract the symbol export list from an `--export-all' def file,
5584 # then regenerate the def file from the symbol export list, so that
5585 # the compiled dll only exports the symbol export list.
5586 # Be careful not to strip the DATA tag left be newer dlltools.
5587 export_symbols_cmds="$ltdll_cmds"'
5588 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5589 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5591 # If the export-symbols file already is a .def file (1st line
5592 # is EXPORTS), use it as is.
5593 # If DATA tags from a recent dlltool are present, honour them!
5594 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5595 cp $export_symbols $output_objdir/$soname-def;
5597 echo EXPORTS > $output_objdir/$soname-def;
5599 cat $export_symbols | while read symbol; do
5602 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5603 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5604 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5606 _lt_hint=`expr 1 + \$_lt_hint`;
5610 $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~
5611 $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~
5612 $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~
5613 $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~
5614 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5622 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5623 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5628 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5633 *** create shared libraries on Solaris systems. Therefore, libtool
5634 *** is disabling shared libraries support. We urge you to upgrade GNU
5635 *** binutils to release 2.9.1 or newer. Another option is to modify
5636 *** your PATH or compiler configuration so that the native linker is
5637 *** used, and then restart.
5640 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5649 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5652 hardcode_shlibpath_var=no
5656 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5665 if test "$ld_shlibs" = yes; then
5666 runpath_var=LD_RUN_PATH
5667 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5668 export_dynamic_flag_spec='${wl}--export-dynamic'
5670 cygwin* | mingw* | pw32*)
5671 # dlltool doesn't understand --whole-archive et. al.
5672 whole_archive_flag_spec=
5675 # ancient GNU ld didn't support --whole-archive et. al.
5676 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5677 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5679 whole_archive_flag_spec=
5685 # PORTME fill in a description of your system's linker (not GNU ld)
5688 allow_undefined_flag=unsupported
5689 always_export_symbols=yes
5690 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'
5691 # Note: this linker hardcodes the directories in LIBPATH if there
5692 # are no directories specified by -L.
5693 hardcode_minus_L=yes
5694 if test "$GCC" = yes && test -z "$link_static_flag"; then
5695 # Neither direct hardcoding nor static linking is supported with a
5697 hardcode_direct=unsupported
5702 if test "$host_cpu" = ia64; then
5703 # On IA64, the linker does run time linking by default, so we don't
5704 # have to do anything special.
5705 aix_use_runtimelinking=no
5706 exp_sym_flag='-Bexport'
5709 aix_use_runtimelinking=no
5711 # Test if we are trying to use run time linking or normal
5712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5713 # need to do runtime linking.
5714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5715 for ld_flag in $LDFLAGS; do
5718 aix_use_runtimelinking=yes
5725 exp_sym_flag='-bexport'
5726 no_entry_flag='-bnoentry'
5729 # When large executables or shared objects are built, AIX ld can
5730 # have problems creating the table of contents. If linking a library
5731 # or program results in "error TOC overflow" add -mminimal-toc to
5732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5737 hardcode_libdir_separator=':'
5738 if test "$GCC" = yes; then
5739 case $host_os in aix4.[012]|aix4.[012].*)
5740 collect2name=`${CC} -print-prog-name=collect2`
5741 if test -f "$collect2name" && \
5742 strings "$collect2name" | grep resolve_lib_name >/dev/null
5744 # We have reworked collect2
5747 # We have old collect2
5748 hardcode_direct=unsupported
5749 # It fails to find uninstalled libraries when the uninstalled
5750 # path is not listed in the libpath. Setting hardcode_minus_L
5751 # to unsupported forces relinking
5752 hardcode_minus_L=yes
5753 hardcode_libdir_flag_spec='-L$libdir'
5754 hardcode_libdir_separator=
5758 shared_flag='-shared'
5761 if test "$host_cpu" = ia64; then
5762 shared_flag='${wl}-G'
5764 if test "$aix_use_runtimelinking" = yes; then
5765 shared_flag='${wl}-G'
5767 shared_flag='${wl}-bM:SRE'
5772 # It seems that -bexpall can do strange things, so it is better to
5773 # generate a list of symbols to export.
5774 always_export_symbols=yes
5775 if test "$aix_use_runtimelinking" = yes; then
5776 # Warning - without using the other runtime loading flags (-brtl),
5777 # -berok will link without error, but may produce a broken library.
5778 allow_undefined_flag='-berok'
5779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5780 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"
5782 if test "$host_cpu" = ia64; then
5783 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5784 allow_undefined_flag="-z nodefs"
5785 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"
5787 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5788 # Warning - without using the other run time loading flags,
5789 # -berok will link without error, but may produce a broken library.
5790 allow_undefined_flag='${wl}-berok'
5791 # This is a bit strange, but is similar to how AIX traditionally builds
5792 # it's shared libraries.
5793 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'
5799 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)'
5800 hardcode_libdir_flag_spec='-L$libdir'
5801 hardcode_minus_L=yes
5802 # see comment about different semantics on the GNU ld section
5806 cygwin* | mingw* | pw32*)
5807 # When not using gcc, we currently assume that we are using
5808 # Microsoft Visual C++.
5809 # hardcode_libdir_flag_spec is actually meaningless, as there is
5810 # no search path for DLLs.
5811 hardcode_libdir_flag_spec=' '
5812 allow_undefined_flag=unsupported
5813 # Tell ltmain to make .lib files, not .a files.
5815 # FIXME: Setting linknames here is a bad hack.
5816 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5817 # The linker will automatically build a .lib file if we build a DLL.
5818 old_archive_from_new_cmds='true'
5819 # FIXME: Should let the user specify the lib program.
5820 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5821 fix_srcfile_path='`cygpath -w "$srcfile"`'
5824 darwin* | rhapsody*)
5826 rhapsody* | darwin1.[012])
5827 allow_undefined_flag='-undefined suppress'
5830 allow_undefined_flag='-flat_namespace -undefined suppress'
5833 # FIXME: Relying on posixy $() will cause problems for
5834 # cross-compilation, but unfortunately the echo tests do not
5835 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5836 # `"' quotes if we put them in here... so don't!
5837 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)'
5838 # We need to add '_' to the symbols in $export_symbols first
5839 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5841 hardcode_shlibpath_var=no
5842 whole_archive_flag_spec='-all_load $convenience'
5849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5850 # support. Future versions do this automatically, but an explicit c++rt0.o
5851 # does not break anything, and helps significantly (at the cost of a little
5854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5855 hardcode_libdir_flag_spec='-R$libdir'
5857 hardcode_shlibpath_var=no
5860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5864 hardcode_minus_L=yes
5865 hardcode_shlibpath_var=no
5868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5870 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5871 hardcode_libdir_flag_spec='-R$libdir'
5873 hardcode_shlibpath_var=no
5876 hpux9* | hpux10* | hpux11*)
5878 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' ;;
5879 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5882 hardcode_libdir_separator=:
5884 hardcode_minus_L=yes # Not in the search PATH, but as the default
5885 # location of the library.
5886 export_dynamic_flag_spec='${wl}-E'
5889 irix5* | irix6* | nonstopux*)
5890 if test "$GCC" = yes; then
5891 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'
5892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5894 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'
5895 hardcode_libdir_flag_spec='-rpath $libdir'
5897 hardcode_libdir_separator=:
5898 link_all_deplibs=yes
5902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5907 hardcode_libdir_flag_spec='-R$libdir'
5909 hardcode_shlibpath_var=no
5913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5916 hardcode_libdir_separator=:
5917 hardcode_shlibpath_var=no
5922 hardcode_shlibpath_var=no
5923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5925 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5926 export_dynamic_flag_spec='${wl}-E'
5929 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5931 hardcode_libdir_flag_spec='-R$libdir'
5934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5942 hardcode_libdir_flag_spec='-L$libdir'
5943 hardcode_minus_L=yes
5944 allow_undefined_flag=unsupported
5945 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'
5946 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5950 if test "$GCC" = yes; then
5951 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5952 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'
5954 allow_undefined_flag=' -expect_unresolved \*'
5955 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'
5957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5958 hardcode_libdir_separator=:
5961 osf4* | osf5*) # as osf3* with the addition of -msym flag
5962 if test "$GCC" = yes; then
5963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5964 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'
5965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5967 allow_undefined_flag=' -expect_unresolved \*'
5968 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'
5969 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5970 $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'
5972 #Both c and cxx compiler support -rpath directly
5973 hardcode_libdir_flag_spec='-rpath $libdir'
5975 hardcode_libdir_separator=:
5979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5980 hardcode_shlibpath_var=no
5981 runpath_var=LD_RUN_PATH
5982 hardcode_runpath_var=yes
5983 export_dynamic_flag_spec='${wl}-Bexport'
5987 # gcc --version < 3.0 without binutils cannot create self contained
5988 # shared libraries reliably, requiring libgcc.a to resolve some of
5989 # the object symbols generated in some cases. Libraries that use
5990 # assert need libgcc.a to resolve __eprintf, for example. Linking
5991 # a copy of libgcc.a into every shared library to guarantee resolving
5992 # such symbols causes other problems: According to Tim Van Holder
5993 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5994 # (to the application) exception stack for one thing.
5995 no_undefined_flag=' -z defs'
5996 if test "$GCC" = yes; then
5997 case `$CC --version 2>/dev/null` in
6001 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6002 *** create self contained shared libraries on Solaris systems, without
6003 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6004 *** -no-undefined support, which will at least allow you to build shared
6005 *** libraries. However, you may find that when you link such libraries
6006 *** into an application without using GCC, you have to manually add
6007 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6008 *** upgrade to a newer version of GCC. Another option is to rebuild your
6009 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6016 # $CC -shared without GNU ld will not create a library from C++
6017 # object files and a static libstdc++, better avoid it by now
6018 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6019 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6021 hardcode_libdir_flag_spec='-R$libdir'
6022 hardcode_shlibpath_var=no
6024 solaris2.[0-5] | solaris2.[0-5].*) ;;
6025 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6026 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6028 link_all_deplibs=yes
6032 if test "x$host_vendor" = xsequent; then
6033 # Use $CC to link under sequent, because it throws in some extra .o
6034 # files that make .init and .fini sections work.
6035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6039 hardcode_libdir_flag_spec='-L$libdir'
6041 hardcode_minus_L=yes
6042 hardcode_shlibpath_var=no
6046 case $host_vendor in
6048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6049 hardcode_direct=yes # is this really true???
6052 ## LD is ld it makes a PLAMLIB
6053 ## CC just makes a GrossModule.
6054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6055 reload_cmds='$CC -r -o $output$reload_objs'
6059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6063 runpath_var='LD_RUN_PATH'
6064 hardcode_shlibpath_var=no
6068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6069 hardcode_shlibpath_var=no
6070 export_dynamic_flag_spec='-Bexport'
6074 no_undefined_flag=' -z text'
6075 # $CC -shared without GNU ld will not create a library from C++
6076 # object files and a static libstdc++, better avoid it by now
6077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6078 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6080 hardcode_libdir_flag_spec=
6081 hardcode_shlibpath_var=no
6082 runpath_var='LD_RUN_PATH'
6086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6087 hardcode_libdir_flag_spec='-L$libdir'
6088 hardcode_shlibpath_var=no
6092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6093 hardcode_libdir_flag_spec='-L$libdir'
6094 hardcode_shlibpath_var=no
6098 if test -d /usr/nec; then
6099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6100 hardcode_shlibpath_var=no
6101 runpath_var=LD_RUN_PATH
6102 hardcode_runpath_var=yes
6108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6111 hardcode_shlibpath_var=no
6112 hardcode_runpath_var=yes
6113 runpath_var=LD_RUN_PATH
6116 sysv5uw7* | unixware7*)
6117 no_undefined_flag='${wl}-z ${wl}text'
6118 if test "$GCC" = yes; then
6119 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6121 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6123 runpath_var='LD_RUN_PATH'
6124 hardcode_shlibpath_var=no
6132 echo "$ac_t""$ld_shlibs" 1>&6
6133 test "$ld_shlibs" = no && can_build_shared=no
6135 # Check hardcoding attributes.
6136 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6137 echo "configure:6138: checking how to hardcode library paths into programs" >&5
6139 if test -n "$hardcode_libdir_flag_spec" || \
6140 test -n "$runpath_var"; then
6142 # We can hardcode non-existant directories.
6143 if test "$hardcode_direct" != no &&
6144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6145 # have to relink, otherwise we might link with an installed library
6146 # when we should be linking with a yet-to-be-installed one
6147 ## test "$hardcode_shlibpath_var" != no &&
6148 test "$hardcode_minus_L" != no; then
6149 # Linking always hardcodes the temporary library directory.
6150 hardcode_action=relink
6152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6153 hardcode_action=immediate
6156 # We cannot hardcode anything, or else we can only hardcode existing
6158 hardcode_action=unsupported
6160 echo "$ac_t""$hardcode_action" 1>&6
6164 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6165 echo "configure:6166: checking whether stripping libraries is possible" >&5
6166 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6167 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6168 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6169 echo "$ac_t""yes" 1>&6
6171 echo "$ac_t""no" 1>&6
6174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6177 # PORTME Fill in your ld.so characteristics
6178 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6179 echo "configure:6180: checking dynamic linker characteristics" >&5
6181 libname_spec='lib$name'
6188 shlibpath_overrides_runpath=unknown
6190 dynamic_linker="$host_os ld.so"
6191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6197 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6198 shlibpath_var=LIBPATH
6200 # AIX has no versioning support, so we append a major version to the name.
6201 soname_spec='${libname}${release}.so$major'
6208 hardcode_into_libs=yes
6209 if test "$host_cpu" = ia64; then
6210 # AIX 5 supports IA64
6211 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6212 shlibpath_var=LD_LIBRARY_PATH
6214 # With GCC up to 2.95.x, collect2 would create an import file
6215 # for dependence libraries. The import file would start with
6216 # the line `#! .'. This would cause the generated library to
6217 # depend on `.', always an invalid library. This was fixed in
6218 # development snapshots of GCC prior to 3.0.
6220 aix4 | aix4.[01] | aix4.[01].*)
6221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6230 # AIX (on Power*) has no versioning support, so currently we can
6231 # not hardcode correct soname into executable. Probably we can
6232 # add versioning support to collect2, so additional links can
6233 # be useful in future.
6234 if test "$aix_use_runtimelinking" = yes; then
6235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6236 # instead of lib<name>.a to let people know that these are not
6237 # typical AIX shared libraries.
6238 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6240 # We preserve .a as extension for shared libraries through AIX4.2
6241 # and later when we are not doing run time linking.
6242 library_names_spec='${libname}${release}.a $libname.a'
6243 soname_spec='${libname}${release}.so$major'
6245 shlibpath_var=LIBPATH
6247 hardcode_into_libs=yes
6251 library_names_spec='$libname.ixlibrary $libname.a'
6252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6253 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'
6257 library_names_spec='${libname}.so'
6258 dynamic_linker="$host_os ld.so"
6259 shlibpath_var=LIBRARY_PATH
6265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6266 soname_spec='${libname}${release}.so$major'
6267 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6268 shlibpath_var=LD_LIBRARY_PATH
6269 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6270 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6271 export_dynamic_flag_spec=-rdynamic
6272 # the default ld.so.conf also contains /usr/contrib/lib and
6273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6274 # libtool to hard-code these into programs
6277 cygwin* | mingw* | pw32*)
6278 version_type=windows
6281 case $GCC,$host_os in
6283 library_names_spec='$libname.dll.a'
6284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6285 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6286 dldir=$destdir/`dirname \$dlpath`~
6287 test -d \$dldir || mkdir -p \$dldir~
6288 $install_prog .libs/$dlname \$dldir/$dlname'
6289 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6290 dlpath=$dir/\$dldll~
6294 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6301 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6304 dynamic_linker='Win32 ld.exe'
6305 # FIXME: first we should search . and the directory the executable is in
6309 darwin* | rhapsody*)
6310 dynamic_linker="$host_os dyld"
6314 # FIXME: Relying on posixy $() will cause problems for
6315 # cross-compilation, but unfortunately the echo tests do not
6316 # yet detect zsh echo's removal of \ escapes.
6317 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)'
6318 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6319 shlibpath_overrides_runpath=yes
6320 shlibpath_var=DYLD_LIBRARY_PATH
6328 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6329 version_type=freebsd-$objformat
6330 case $version_type in
6332 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6337 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6341 shlibpath_var=LD_LIBRARY_PATH
6344 shlibpath_overrides_runpath=yes
6347 shlibpath_overrides_runpath=no
6348 hardcode_into_libs=yes
6357 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6358 soname_spec='${libname}${release}.so$major'
6359 shlibpath_var=LD_LIBRARY_PATH
6360 hardcode_into_libs=yes
6363 hpux9* | hpux10* | hpux11*)
6364 # Give a soname corresponding to the major version so that dld.sl refuses to
6365 # link against other versions.
6366 dynamic_linker="$host_os dld.sl"
6370 shlibpath_var=SHLIB_PATH
6371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6372 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6373 soname_spec='${libname}${release}.sl$major'
6374 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6375 postinstall_cmds='chmod 555 $lib'
6378 irix5* | irix6* | nonstopux*)
6380 nonstopux*) version_type=nonstopux ;;
6381 *) version_type=irix ;;
6385 soname_spec='${libname}${release}.so$major'
6386 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6388 irix5* | nonstopux*)
6392 case $LD in # libtool.m4 will add one of these switches to LD
6393 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6394 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6395 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6396 *) libsuff= shlibsuff= libmagic=never-match;;
6400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6401 shlibpath_overrides_runpath=no
6402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6406 # No shared lib support for Linux oldld, aout, or coff.
6407 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6411 # This must be Linux ELF.
6416 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6417 soname_spec='${libname}${release}.so$major'
6418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6419 shlibpath_var=LD_LIBRARY_PATH
6420 shlibpath_overrides_runpath=no
6421 # This implies no fast_install, which is unacceptable.
6422 # Some rework will be needed to allow for fast_install
6423 # before this can be enabled.
6424 hardcode_into_libs=yes
6426 # We used to test for /lib/ld.so.1 and disable shared libraries on
6427 # powerpc, because MkLinux only supported shared libraries with the
6428 # GNU dynamic linker. Since this was broken with cross compilers,
6429 # most powerpc-linux boxes support dynamic linking these days and
6430 # people can always --disable-shared, the test was removed, and we
6431 # assume the GNU/Linux dynamic linker is in use.
6432 dynamic_linker='GNU/Linux ld.so'
6439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6440 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6442 dynamic_linker='NetBSD (a.out) ld.so'
6444 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6445 soname_spec='${libname}${release}.so$major'
6446 dynamic_linker='NetBSD ld.elf_so'
6448 shlibpath_var=LD_LIBRARY_PATH
6449 shlibpath_overrides_runpath=yes
6450 hardcode_into_libs=yes
6455 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 shlibpath_overrides_runpath=yes
6464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6466 openbsd2.[89] | openbsd2.[89].*)
6467 shlibpath_overrides_runpath=no
6470 shlibpath_overrides_runpath=yes
6474 shlibpath_overrides_runpath=yes
6476 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6478 shlibpath_var=LD_LIBRARY_PATH
6482 libname_spec='$name'
6484 library_names_spec='$libname.dll $libname.a'
6485 dynamic_linker='OS/2 ld.exe'
6486 shlibpath_var=LIBPATH
6489 osf3* | osf4* | osf5*)
6492 soname_spec='${libname}${release}.so$major'
6493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6494 shlibpath_var=LD_LIBRARY_PATH
6495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6497 hardcode_into_libs=yes
6502 soname_spec='${libname}${release}.so$major'
6503 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6504 shlibpath_var=LD_LIBRARY_PATH
6511 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6512 soname_spec='${libname}${release}.so$major'
6513 shlibpath_var=LD_LIBRARY_PATH
6514 shlibpath_overrides_runpath=yes
6515 hardcode_into_libs=yes
6516 # ldd complains unless libraries are executable
6517 postinstall_cmds='chmod +x $lib'
6522 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6524 shlibpath_var=LD_LIBRARY_PATH
6525 shlibpath_overrides_runpath=yes
6526 if test "$with_gnu_ld" = yes; then
6532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6534 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6535 soname_spec='${libname}${release}.so$major'
6536 shlibpath_var=LD_LIBRARY_PATH
6537 case $host_vendor in
6539 shlibpath_overrides_runpath=no
6541 export_dynamic_flag_spec='${wl}-Blargedynsym'
6542 runpath_var=LD_RUN_PATH
6550 shlibpath_overrides_runpath=no
6551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6558 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6559 soname_spec='${libname}${release}.so$major'
6560 shlibpath_var=LD_LIBRARY_PATH
6567 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6568 soname_spec='${libname}${release}.so$major'
6569 shlibpath_var=LD_LIBRARY_PATH
6573 if test -d /usr/nec ;then
6575 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6576 soname_spec='$libname.so.$major'
6577 shlibpath_var=LD_LIBRARY_PATH
6585 echo "$ac_t""$dynamic_linker" 1>&6
6586 test "$dynamic_linker" = no && can_build_shared=no
6588 # Report the final consequences.
6589 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6590 echo "configure:6591: checking if libtool supports shared libraries" >&5
6591 echo "$ac_t""$can_build_shared" 1>&6
6593 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6594 echo "configure:6595: checking whether to build shared libraries" >&5
6595 test "$can_build_shared" = "no" && enable_shared=no
6597 # On AIX, shared libraries and static libraries use the same namespace, and
6598 # are all built from PIC.
6601 test "$enable_shared" = yes && enable_static=no
6602 if test -n "$RANLIB"; then
6603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6604 postinstall_cmds='$RANLIB $lib'
6609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6610 test "$enable_shared" = yes && enable_static=no
6614 echo "$ac_t""$enable_shared" 1>&6
6616 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6617 echo "configure:6618: checking whether to build static libraries" >&5
6618 # Make sure either enable_shared or enable_static is yes.
6619 test "$enable_shared" = yes || enable_static=yes
6620 echo "$ac_t""$enable_static" 1>&6
6622 if test "$hardcode_action" = relink; then
6623 # Fast installation is not supported
6624 enable_fast_install=no
6625 elif test "$shlibpath_overrides_runpath" = yes ||
6626 test "$enable_shared" = no; then
6627 # Fast installation is not necessary
6628 enable_fast_install=needless
6631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6632 if test "$GCC" = yes; then
6633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6636 if test "x$enable_dlopen" != xyes; then
6637 enable_dlopen=unknown
6638 enable_dlopen_self=unknown
6639 enable_dlopen_self_static=unknown
6646 lt_cv_dlopen="load_add_on"
6648 lt_cv_dlopen_self=yes
6651 cygwin* | mingw* | pw32*)
6652 lt_cv_dlopen="LoadLibrary"
6657 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6658 echo "configure:6659: checking for shl_load" >&5
6659 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6660 echo $ac_n "(cached) $ac_c" 1>&6
6662 cat > conftest.$ac_ext <<EOF
6663 #line 6664 "configure"
6664 #include "confdefs.h"
6665 /* System header to define __stub macros and hopefully few prototypes,
6666 which can conflict with char shl_load(); below. */
6668 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6689 eval "ac_cv_func_shl_load=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 eval "ac_cv_func_shl_load=no"
6699 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 lt_cv_dlopen="shl_load"
6703 echo "$ac_t""no" 1>&6
6704 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6705 echo "configure:6706: checking for shl_load in -ldld" >&5
6706 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6707 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 ac_save_LIBS="$LIBS"
6712 cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6726 eval "ac_cv_lib_$ac_lib_var=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 eval "ac_cv_lib_$ac_lib_var=no"
6734 LIBS="$ac_save_LIBS"
6737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6738 echo "$ac_t""yes" 1>&6
6739 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6741 echo "$ac_t""no" 1>&6
6742 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6743 echo "configure:6744: checking for dlopen" >&5
6744 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char dlopen(); below. */
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_func_dlopen=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_func_dlopen=no"
6784 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 lt_cv_dlopen="dlopen"
6788 echo "$ac_t""no" 1>&6
6789 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6790 echo "configure:6791: checking for dlopen in -ldl" >&5
6791 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6795 ac_save_LIBS="$LIBS"
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 eval "ac_cv_lib_$ac_lib_var=yes"
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 eval "ac_cv_lib_$ac_lib_var=no"
6819 LIBS="$ac_save_LIBS"
6822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6826 echo "$ac_t""no" 1>&6
6827 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6828 echo "configure:6829: checking for dlopen in -lsvld" >&5
6829 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS="$LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_lib_$ac_lib_var=no"
6857 LIBS="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6864 echo "$ac_t""no" 1>&6
6865 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6866 echo "configure:6867: checking for dld_link in -ldld" >&5
6867 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 ac_save_LIBS="$LIBS"
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6887 eval "ac_cv_lib_$ac_lib_var=yes"
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6892 eval "ac_cv_lib_$ac_lib_var=no"
6895 LIBS="$ac_save_LIBS"
6898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6899 echo "$ac_t""yes" 1>&6
6900 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6902 echo "$ac_t""no" 1>&6
6923 if test "x$lt_cv_dlopen" != xno; then
6929 case $lt_cv_dlopen in
6931 save_CPPFLAGS="$CPPFLAGS"
6932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6934 save_LDFLAGS="$LDFLAGS"
6935 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6938 LIBS="$lt_cv_dlopen_libs $LIBS"
6940 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6941 echo "configure:6942: checking whether a program can dlopen itself" >&5
6942 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 if test "$cross_compiling" = yes; then :
6946 lt_cv_dlopen_self=cross
6948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6949 lt_status=$lt_dlunknown
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6961 # define LT_DLGLOBAL RTLD_GLOBAL
6964 # define LT_DLGLOBAL DL_GLOBAL
6966 # define LT_DLGLOBAL 0
6970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6971 find out it does not work in some platform. */
6972 #ifndef LT_DLLAZY_OR_NOW
6974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6977 # define LT_DLLAZY_OR_NOW DL_LAZY
6980 # define LT_DLLAZY_OR_NOW RTLD_NOW
6983 # define LT_DLLAZY_OR_NOW DL_NOW
6985 # define LT_DLLAZY_OR_NOW 0
6993 extern "C" void exit (int);
6996 void fnord() { int i=42;}
6999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7000 int status = $lt_dlunknown;
7004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7006 /* dlclose (self); */
7012 if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7013 (./conftest; exit; ) 2>/dev/null
7016 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7017 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7018 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7021 # compilation failed
7022 lt_cv_dlopen_self=no
7030 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7032 if test "x$lt_cv_dlopen_self" = xyes; then
7033 LDFLAGS="$LDFLAGS $link_static_flag"
7034 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7035 echo "configure:7036: checking whether a statically linked program can dlopen itself" >&5
7036 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 if test "$cross_compiling" = yes; then :
7040 lt_cv_dlopen_self_static=cross
7042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7043 lt_status=$lt_dlunknown
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7055 # define LT_DLGLOBAL RTLD_GLOBAL
7058 # define LT_DLGLOBAL DL_GLOBAL
7060 # define LT_DLGLOBAL 0
7064 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7065 find out it does not work in some platform. */
7066 #ifndef LT_DLLAZY_OR_NOW
7068 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7071 # define LT_DLLAZY_OR_NOW DL_LAZY
7074 # define LT_DLLAZY_OR_NOW RTLD_NOW
7077 # define LT_DLLAZY_OR_NOW DL_NOW
7079 # define LT_DLLAZY_OR_NOW 0
7087 extern "C" void exit (int);
7090 void fnord() { int i=42;}
7093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7094 int status = $lt_dlunknown;
7098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7099 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7100 /* dlclose (self); */
7106 if { (eval echo configure:7107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7107 (./conftest; exit; ) 2>/dev/null
7110 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7111 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7112 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7115 # compilation failed
7116 lt_cv_dlopen_self_static=no
7124 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7127 CPPFLAGS="$save_CPPFLAGS"
7128 LDFLAGS="$save_LDFLAGS"
7133 case $lt_cv_dlopen_self in
7134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7135 *) enable_dlopen_self=unknown ;;
7138 case $lt_cv_dlopen_self_static in
7139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7140 *) enable_dlopen_self_static=unknown ;;
7145 if test "$enable_shared" = yes && test "$GCC" = yes; then
7146 case $archive_cmds in
7148 # FIXME: we may have to deal with multi-command sequences.
7151 # Test whether the compiler implicitly links with -lc since on some
7152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7153 # to ld, don't add -lc before -lgcc.
7154 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7155 echo "configure:7156: checking whether -lc should be explicitly linked in" >&5
7156 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7160 echo 'static int dummy;' > conftest.$ac_ext
7162 if { (eval echo configure:7163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7165 libobjs=conftest.$ac_objext
7167 wl=$lt_cv_prog_cc_wl
7173 save_allow_undefined_flag=$allow_undefined_flag
7174 allow_undefined_flag=
7175 if { (eval echo configure:7176: \"$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; }
7177 lt_cv_archive_cmds_need_lc=no
7179 lt_cv_archive_cmds_need_lc=yes
7181 allow_undefined_flag=$save_allow_undefined_flag
7183 cat conftest.err 1>&5
7187 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7191 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7193 # The second clause should only fire when bootstrapping the
7194 # libtool distribution, otherwise you forgot to ship ltmain.sh
7195 # with your package, and you will get complaints that there are
7196 # no rules to generate ltmain.sh.
7197 if test -f "$ltmain"; then
7200 # If there is no Makefile yet, we rely on a make rule to execute
7201 # `config.status --recheck' to rerun these tests and create the
7202 # libtool script then.
7203 test -f Makefile && make "$ltmain"
7206 if test -f "$ltmain"; then
7207 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7210 echo creating $ofile
7212 # Now quote all the things that may contain metacharacters while being
7213 # careful not to overquote the AC_SUBSTed values. We take copies of the
7214 # variables and quote the copies for generation of the libtool script.
7215 for var in echo old_CC old_CFLAGS SED \
7216 AR AR_FLAGS CC LD LN_S NM SHELL \
7217 reload_flag reload_cmds wl \
7218 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7219 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7220 library_names_spec soname_spec \
7221 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7222 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7223 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7224 old_striplib striplib file_magic_cmd export_symbols_cmds \
7225 deplibs_check_method allow_undefined_flag no_undefined_flag \
7226 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7227 global_symbol_to_c_name_address \
7228 hardcode_libdir_flag_spec hardcode_libdir_separator \
7229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7230 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7233 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7234 old_postinstall_cmds | old_postuninstall_cmds | \
7235 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7236 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7237 postinstall_cmds | postuninstall_cmds | \
7238 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7239 # Double-quote double-evaled strings.
7240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7248 cat <<__EOF__ > "${ofile}T"
7251 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7252 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7253 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7255 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7258 # This program is free software; you can redistribute it and/or modify
7259 # it under the terms of the GNU General Public License as published by
7260 # the Free Software Foundation; either version 2 of the License, or
7261 # (at your option) any later version.
7263 # This program is distributed in the hope that it will be useful, but
7264 # WITHOUT ANY WARRANTY; without even the implied warranty of
7265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7266 # General Public License for more details.
7268 # You should have received a copy of the GNU General Public License
7269 # along with this program; if not, write to the Free Software
7270 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7272 # As a special exception to the GNU General Public License, if you
7273 # distribute this file as part of a program that contains a
7274 # configuration script generated by Autoconf, you may include it under
7275 # the same distribution terms that you use for the rest of that program.
7277 # A sed that does not truncate output.
7280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7281 Xsed="${SED} -e s/^X//"
7283 # The HP-UX ksh and POSIX shell print the target directory to stdout
7285 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7287 # ### BEGIN LIBTOOL CONFIG
7289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7291 # Shell to use when invoking shell scripts.
7294 # Whether or not to build shared libraries.
7295 build_libtool_libs=$enable_shared
7297 # Whether or not to build static libraries.
7298 build_old_libs=$enable_static
7300 # Whether or not to add -lc for building shared libraries.
7301 build_libtool_need_lc=$need_lc
7303 # Whether or not to optimize for fast installation.
7304 fast_install=$enable_fast_install
7307 host_alias=$host_alias
7310 # An echo program that does not interpret backslashes.
7315 AR_FLAGS=$lt_AR_FLAGS
7317 # The default C compiler.
7320 # Is the compiler the GNU C compiler?
7323 # The linker used to build libraries.
7326 # Whether we need hard or soft links.
7329 # A BSD-compatible nm program.
7332 # A symbol stripping program
7335 # Used to examine libraries when file_magic_cmd begins "file"
7336 MAGIC_CMD=$MAGIC_CMD
7338 # Used on cygwin: DLL creation program.
7341 # Used on cygwin: object dumper.
7344 # Used on cygwin: assembler.
7347 # The name of the directory that contains temporary libtool files.
7350 # How to create reloadable object files.
7351 reload_flag=$lt_reload_flag
7352 reload_cmds=$lt_reload_cmds
7354 # How to pass a linker flag through the compiler.
7357 # Object file suffix (normally "o").
7360 # Old archive suffix (normally "a").
7363 # Executable file suffix (normally "").
7366 # Additional compiler flags for building library objects.
7367 pic_flag=$lt_pic_flag
7370 # Does compiler simultaneously support -c and -o options?
7371 compiler_c_o=$lt_compiler_c_o
7373 # Can we write directly to a .lo ?
7374 compiler_o_lo=$lt_compiler_o_lo
7376 # Must we lock files when doing compilation ?
7377 need_locks=$lt_need_locks
7379 # Do we need the lib prefix for modules?
7380 need_lib_prefix=$need_lib_prefix
7382 # Do we need a version for libraries?
7383 need_version=$need_version
7385 # Whether dlopen is supported.
7386 dlopen_support=$enable_dlopen
7388 # Whether dlopen of programs is supported.
7389 dlopen_self=$enable_dlopen_self
7391 # Whether dlopen of statically linked programs is supported.
7392 dlopen_self_static=$enable_dlopen_self_static
7394 # Compiler flag to prevent dynamic linking.
7395 link_static_flag=$lt_link_static_flag
7397 # Compiler flag to turn off builtin functions.
7398 no_builtin_flag=$lt_no_builtin_flag
7400 # Compiler flag to allow reflexive dlopens.
7401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7403 # Compiler flag to generate shared objects directly from archives.
7404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7406 # Compiler flag to generate thread-safe objects.
7407 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7409 # Library versioning type.
7410 version_type=$version_type
7412 # Format of library name prefix.
7413 libname_spec=$lt_libname_spec
7415 # List of archive names. First name is the real one, the rest are links.
7416 # The last name is the one that the linker finds with -lNAME.
7417 library_names_spec=$lt_library_names_spec
7419 # The coded name of the library, if different from the real name.
7420 soname_spec=$lt_soname_spec
7422 # Commands used to build and install an old-style archive.
7424 old_archive_cmds=$lt_old_archive_cmds
7425 old_postinstall_cmds=$lt_old_postinstall_cmds
7426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7428 # Create an old-style archive from a shared archive.
7429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7431 # Create a temporary old-style archive to link instead of a shared archive.
7432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7434 # Commands used to build and install a shared archive.
7435 archive_cmds=$lt_archive_cmds
7436 archive_expsym_cmds=$lt_archive_expsym_cmds
7437 postinstall_cmds=$lt_postinstall_cmds
7438 postuninstall_cmds=$lt_postuninstall_cmds
7440 # Commands to strip libraries.
7441 old_striplib=$lt_old_striplib
7442 striplib=$lt_striplib
7444 # Method to check whether dependent libraries are shared objects.
7445 deplibs_check_method=$lt_deplibs_check_method
7447 # Command to use when deplibs_check_method == file_magic.
7448 file_magic_cmd=$lt_file_magic_cmd
7450 # Flag that allows shared libraries with undefined symbols to be built.
7451 allow_undefined_flag=$lt_allow_undefined_flag
7453 # Flag that forces no undefined symbols.
7454 no_undefined_flag=$lt_no_undefined_flag
7456 # Commands used to finish a libtool library installation in a directory.
7457 finish_cmds=$lt_finish_cmds
7459 # Same as above, but a single script fragment to be evaled but not shown.
7460 finish_eval=$lt_finish_eval
7462 # Take the output of nm and produce a listing of raw symbols and C names.
7463 global_symbol_pipe=$lt_global_symbol_pipe
7465 # Transform the output of nm in a proper C declaration
7466 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7468 # Transform the output of nm in a C name address pair
7469 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7471 # This is the shared library runtime path variable.
7472 runpath_var=$runpath_var
7474 # This is the shared library path variable.
7475 shlibpath_var=$shlibpath_var
7477 # Is shlibpath searched before the hard-coded library search path?
7478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7480 # How to hardcode a shared library path into an executable.
7481 hardcode_action=$hardcode_action
7483 # Whether we should hardcode library paths into libraries.
7484 hardcode_into_libs=$hardcode_into_libs
7486 # Flag to hardcode \$libdir into a binary during linking.
7487 # This must work even if \$libdir does not exist.
7488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7490 # Whether we need a single -rpath flag with a separated argument.
7491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7493 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7495 hardcode_direct=$hardcode_direct
7497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7499 hardcode_minus_L=$hardcode_minus_L
7501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7502 # the resulting binary.
7503 hardcode_shlibpath_var=$hardcode_shlibpath_var
7505 # Variables whose values should be saved in libtool wrapper scripts and
7506 # restored at relink time.
7507 variables_saved_for_relink="$variables_saved_for_relink"
7509 # Whether libtool must link a program against all its dependency libraries.
7510 link_all_deplibs=$link_all_deplibs
7512 # Compile-time system search path for libraries
7513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7515 # Run-time system search path for libraries
7516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7518 # Fix the shell variable \$srcfile for the compiler.
7519 fix_srcfile_path="$fix_srcfile_path"
7521 # Set to yes if exported symbols are required.
7522 always_export_symbols=$always_export_symbols
7524 # The commands to list exported symbols.
7525 export_symbols_cmds=$lt_export_symbols_cmds
7527 # The commands to extract the exported symbol list from a shared archive.
7528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7530 # Symbols that should not be listed in the preloaded symbols.
7531 exclude_expsyms=$lt_exclude_expsyms
7533 # Symbols that must always be exported.
7534 include_expsyms=$lt_include_expsyms
7536 # ### END LIBTOOL CONFIG
7542 cat <<\EOF >> "${ofile}T"
7544 # AIX sometimes has problems with the GCC collect2 program. For some
7545 # reason, if we set the COLLECT_NAMES environment variable, the problems
7546 # vanish in a puff of smoke.
7547 if test "X${COLLECT_NAMES+set}" != Xset; then
7549 export COLLECT_NAMES
7556 cygwin* | mingw* | pw32* | os2*)
7557 cat <<'EOF' >> "${ofile}T"
7558 # This is a source program that is used to create dlls on Windows
7559 # Don't remove nor modify the starting and closing comments
7560 # /* ltdll.c starts here */
7561 # #define WIN32_LEAN_AND_MEAN
7562 # #include <windows.h>
7563 # #undef WIN32_LEAN_AND_MEAN
7564 # #include <stdio.h>
7566 # #ifndef __CYGWIN__
7567 # # ifdef __CYGWIN32__
7568 # # define __CYGWIN__ __CYGWIN32__
7572 # #ifdef __cplusplus
7575 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7576 # #ifdef __cplusplus
7581 # #include <cygwin/cygwin_dll.h>
7582 # DECLARE_CYGWIN_DLL( DllMain );
7584 # HINSTANCE __hDllInstance_base;
7587 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7589 # __hDllInstance_base = hInst;
7592 # /* ltdll.c ends here */
7593 # This is a source program that is used to create import libraries
7594 # on Windows for dlls which lack them. Don't remove nor modify the
7595 # starting and closing comments
7596 # /* impgen.c starts here */
7597 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7599 # This file is part of GNU libtool.
7601 # This program is free software; you can redistribute it and/or modify
7602 # it under the terms of the GNU General Public License as published by
7603 # the Free Software Foundation; either version 2 of the License, or
7604 # (at your option) any later version.
7606 # This program is distributed in the hope that it will be useful,
7607 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7608 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7609 # GNU General Public License for more details.
7611 # You should have received a copy of the GNU General Public License
7612 # along with this program; if not, write to the Free Software
7613 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7616 # #include <stdio.h> /* for printf() */
7617 # #include <unistd.h> /* for open(), lseek(), read() */
7618 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7619 # #include <string.h> /* for strdup() */
7621 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7623 # #define O_BINARY 0
7626 # static unsigned int
7627 # pe_get16 (fd, offset)
7631 # unsigned char b[2];
7632 # lseek (fd, offset, SEEK_SET);
7634 # return b[0] + (b[1]<<8);
7637 # static unsigned int
7638 # pe_get32 (fd, offset)
7642 # unsigned char b[4];
7643 # lseek (fd, offset, SEEK_SET);
7645 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7648 # static unsigned int
7652 # unsigned char *b = ptr;
7653 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7662 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7663 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7664 # unsigned long name_rvas, nexp;
7665 # unsigned char *expdata, *erva;
7666 # char *filename, *dll_name;
7668 # filename = argv[1];
7670 # dll = open(filename, O_RDONLY|O_BINARY);
7674 # dll_name = filename;
7676 # for (i=0; filename[i]; i++)
7677 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7678 # dll_name = filename + i +1;
7680 # pe_header_offset = pe_get32 (dll, 0x3c);
7681 # opthdr_ofs = pe_header_offset + 4 + 20;
7682 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7684 # if (num_entries < 1) /* no exports */
7687 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7688 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7689 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7690 # secptr = (pe_header_offset + 4 + 20 +
7691 # pe_get16 (dll, pe_header_offset + 4 + 16));
7694 # for (i = 0; i < nsections; i++)
7697 # unsigned long secptr1 = secptr + 40 * i;
7698 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7699 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7700 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7701 # lseek(dll, secptr1, SEEK_SET);
7702 # read(dll, sname, 8);
7703 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7705 # expptr = fptr + (export_rva - vaddr);
7706 # if (export_rva + export_size > vaddr + vsize)
7707 # export_size = vsize - (export_rva - vaddr);
7712 # expdata = (unsigned char*)malloc(export_size);
7713 # lseek (dll, expptr, SEEK_SET);
7714 # read (dll, expdata, export_size);
7715 # erva = expdata - export_rva;
7717 # nexp = pe_as32 (expdata+24);
7718 # name_rvas = pe_as32 (expdata+32);
7720 # printf ("EXPORTS\n");
7721 # for (i = 0; i<nexp; i++)
7723 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7724 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7729 # /* impgen.c ends here */
7735 # We use sed instead of cat because bash on DJGPP gets confused if
7736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7737 # text mode, it properly converts lines to CR/LF. This bash problem
7738 # is reportedly fixed, but why not run on old versions too?
7739 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7741 mv -f "${ofile}T" "$ofile" || \
7742 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7750 # This can be used to rebuild libtool when needed
7751 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7753 # Always use our own libtool.
7754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7756 # Prevent multiple expansion
7760 # test for ln hardlink support
7761 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7762 echo "configure:7763: checking whether ln works" >&5
7763 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7766 rm -f conftest.src conftest.dst
7767 echo "conftest" > conftest.src
7768 if ln conftest.src conftest.dst 2>/dev/null
7770 ol_cv_prog_LN_H="ln"
7772 ol_cv_prog_LN_H="cp"
7774 rm -f conftest.src conftest.dst
7777 LN_H="$ol_cv_prog_LN_H"
7778 if test "$ol_cv_prog_LN_H" = "ln"; then
7779 echo "$ac_t""yes" 1>&6
7781 echo "$ac_t""no" 1>&6
7784 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7785 echo "configure:7786: checking whether ln -s works" >&5
7786 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7790 if ln -s X conftestdata 2>/dev/null
7793 ac_cv_prog_LN_S="ln -s"
7798 LN_S="$ac_cv_prog_LN_S"
7799 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7800 echo "$ac_t""yes" 1>&6
7802 echo "$ac_t""no" 1>&6
7807 if test $ol_enable_perl != no ; then
7808 # Extract the first word of "perl", so it can be a program name with args.
7809 set dummy perl; ac_word=$2
7810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7811 echo "configure:7812: checking for $ac_word" >&5
7812 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7817 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7820 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7825 for ac_dir in $ac_dummy; do
7826 test -z "$ac_dir" && ac_dir=.
7827 if test -f $ac_dir/$ac_word; then
7828 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7833 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7837 PERLBIN="$ac_cv_path_PERLBIN"
7838 if test -n "$PERLBIN"; then
7839 echo "$ac_t""$PERLBIN" 1>&6
7841 echo "$ac_t""no" 1>&6
7845 if test "no$PERLBIN" = "no" ; then
7846 if test $ol_enable_perl = yes ; then
7847 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7851 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7852 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /'`"
7854 if test x"$ol_with_perl_module" = "xstatic" ; then
7855 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7857 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7863 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7864 echo "configure:7865: checking how to run the C preprocessor" >&5
7865 # On Suns, sometimes $CPP names a directory.
7866 if test -n "$CPP" && test -d "$CPP"; then
7869 if test -z "$CPP"; then
7870 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 # This must be in double quotes, not single quotes, because CPP may get
7874 # substituted into the Makefile and "${CC-cc}" will confuse make.
7876 # On the NeXT, cc -E runs the code through the compiler's parser,
7877 # not just through cpp.
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7885 { (eval echo configure:7886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7887 if test -z "$ac_err"; then
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 CPP="${CC-cc} -E -traditional-cpp"
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7902 { (eval echo configure:7903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7904 if test -z "$ac_err"; then
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 CPP="${CC-cc} -nologo -E"
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7919 { (eval echo configure:7920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7921 if test -z "$ac_err"; then
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7935 ac_cv_prog_CPP="$CPP"
7937 CPP="$ac_cv_prog_CPP"
7939 ac_cv_prog_CPP="$CPP"
7941 echo "$ac_t""$CPP" 1>&6
7944 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7945 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7947 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7948 echo "configure: warning: programs compiled here do run here..." 1>&2
7949 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7951 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7952 echo "configure: warning: programs compiled here do not run here..." 1>&2
7953 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7957 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7958 echo "configure:7959: checking for Cygwin environment" >&5
7959 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7969 #define __CYGWIN__ __CYGWIN32__
7974 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7986 echo "$ac_t""$ac_cv_cygwin" 1>&6
7988 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7989 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7990 echo "configure:7991: checking for mingw32 environment" >&5
7991 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7994 cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
8002 if { (eval echo configure:8003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8006 echo "configure: failed program was:" >&5
8007 cat conftest.$ac_ext >&5
8014 echo "$ac_t""$ac_cv_mingw32" 1>&6
8016 test "$ac_cv_mingw32" = yes && MINGW32=yes
8020 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8021 echo "configure:8022: checking for executable suffix" >&5
8022 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8025 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8029 echo 'int main () { return 0; }' > conftest.$ac_ext
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8032 for file in conftest.*; do
8034 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8035 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8039 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8042 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8047 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8048 echo "$ac_t""${ac_cv_exeext}" 1>&6
8051 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8052 echo "configure:8053: checking for object suffix" >&5
8053 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8057 echo 'int i = 1;' > conftest.$ac_ext
8058 if { (eval echo configure:8059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8059 for ac_file in conftest.*; do
8062 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8066 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8071 echo "$ac_t""$ac_cv_objext" 1>&6
8072 OBJEXT=$ac_cv_objext
8073 ac_objext=$ac_cv_objext
8076 cat >> confdefs.h <<EOF
8077 #define EXEEXT "${EXEEXT}"
8081 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8082 echo "configure:8083: checking for be_app in -lbe" >&5
8083 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8085 echo $ac_n "(cached) $ac_c" 1>&6
8087 ac_save_LIBS="$LIBS"
8088 LIBS="-lbe -lroot -lnet $LIBS"
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* Override any gcc2 internal prototype to avoid an error. */
8093 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8103 eval "ac_cv_lib_$ac_lib_var=yes"
8105 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8108 eval "ac_cv_lib_$ac_lib_var=no"
8111 LIBS="$ac_save_LIBS"
8114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8115 echo "$ac_t""yes" 1>&6
8116 LIBS="$LIBS -lbe -lroot -lnet"
8118 echo "$ac_t""no" 1>&6
8126 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8127 echo "configure:8128: checking for ${CC-cc} option to accept ANSI C" >&5
8128 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6
8131 am_cv_prog_cc_stdc=no
8133 # Don't try gcc -ansi; that turns off useful extensions and
8134 # breaks some systems' header files.
8135 # AIX -qlanglvl=ansi
8136 # Ultrix and OSF/1 -std1
8137 # HP-UX 10.20 and later -Ae
8138 # HP-UX older versions -Aa -D_HPUX_SOURCE
8139 # SVR4 -Xc -D__EXTENSIONS__
8140 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8142 CC="$ac_save_CC $ac_arg"
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8148 #include <sys/types.h>
8149 #include <sys/stat.h>
8150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8151 struct buf { int x; };
8152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8153 static char *e (p, i)
8159 static char *f (char * (*g) (char **, int), char **p, ...)
8164 s = g (p, va_arg (v,int));
8168 int test (int i, double x);
8169 struct s1 {int (*f) (int a);};
8170 struct s2 {int (*f) (double a);};
8171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8181 if { (eval echo configure:8182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8183 am_cv_prog_cc_stdc="$ac_arg"; break
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8194 if test -z "$am_cv_prog_cc_stdc"; then
8195 echo "$ac_t""none needed" 1>&6
8197 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8199 case "x$am_cv_prog_cc_stdc" in
8201 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8204 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8205 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8208 # test for make depend flag
8211 if test -z "${MKDEP}"; then
8213 if test -z "${MKDEP_FLAGS}"; then
8214 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8215 echo "configure:8216: checking for ${OL_MKDEP} depend flag" >&5
8216 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8221 for flag in "-M" "-xM"; do
8222 cat > conftest.c <<EOF
8225 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8226 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8228 if test ! -f conftest."${ac_object}" ; then
8230 OL_MKDEP_FLAGS="$flag"
8239 echo "$ac_t""$ol_cv_mkdep" 1>&6
8242 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8247 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8252 if test "${ol_cv_mkdep}" = no ; then
8253 # this will soon become an error
8254 echo "configure: warning: do not know how to generate dependencies" 1>&2
8257 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8258 echo "configure:8259: checking for afopen in -ls" >&5
8259 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8263 ac_save_LIBS="$LIBS"
8265 cat > conftest.$ac_ext <<EOF
8266 #line 8267 "configure"
8267 #include "confdefs.h"
8268 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8277 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8279 eval "ac_cv_lib_$ac_lib_var=yes"
8281 echo "configure: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8284 eval "ac_cv_lib_$ac_lib_var=no"
8287 LIBS="$ac_save_LIBS"
8290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8291 echo "$ac_t""yes" 1>&6
8294 cat >> confdefs.h <<\EOF
8295 #define HAVE_AIX_SECURITY 1
8300 echo "$ac_t""no" 1>&6
8306 ac_cv_func_getopt=no
8307 cat >> confdefs.h <<\EOF
8308 #define BOTH_STRINGS_H 1
8315 if test $ol_enable_modules != no ; then
8316 for ac_hdr in ltdl.h
8318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8320 echo "configure:8321: checking for $ac_hdr" >&5
8321 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8332 if test -z "$ac_err"; then
8334 eval "ac_cv_header_$ac_safe=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 eval "ac_cv_header_$ac_safe=no"
8344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8345 echo "$ac_t""yes" 1>&6
8346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8347 cat >> confdefs.h <<EOF
8348 #define $ac_tr_hdr 1
8352 echo "$ac_t""no" 1>&6
8357 if test $ac_cv_header_ltdl_h = no ; then
8358 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8361 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8362 echo "configure:8363: checking for lt_dlinit in -lltdl" >&5
8363 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8367 ac_save_LIBS="$LIBS"
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8381 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 eval "ac_cv_lib_$ac_lib_var=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8388 eval "ac_cv_lib_$ac_lib_var=no"
8391 LIBS="$ac_save_LIBS"
8394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8398 cat >> confdefs.h <<\EOF
8399 #define HAVE_LIBLTDL 1
8404 echo "$ac_t""no" 1>&6
8408 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8409 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8413 ol_with_bdb_module=static
8414 ol_with_dnssrv_module=static
8415 ol_with_hdb_module=static
8416 ol_with_ldap_module=static
8417 ol_with_ldbm_module=static
8418 ol_with_meta_module=static
8419 ol_with_monitor_module=static
8420 ol_with_null_module=static
8421 ol_with_passwd_module=static
8422 ol_with_perl_module=static
8423 ol_with_shell_module=static
8424 ol_with_tcl_module=static
8425 ol_with_sql_module=static
8429 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8430 echo "configure:8431: checking for EBCDIC" >&5
8431 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8440 #include <__ASCII__/generate_error.h>
8444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8445 { (eval echo configure:8446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8447 if test -z "$ac_err"; then
8449 ol_cv_cpp_ebcdic=yes
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8460 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8461 if test $ol_cv_cpp_ebcdic = yes ; then
8462 cat >> confdefs.h <<\EOF
8463 #define HAVE_EBCDIC 1
8468 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8469 echo "configure:8470: checking for ANSI C header files" >&5
8470 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8482 { (eval echo configure:8483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8484 if test -z "$ac_err"; then
8486 ol_cv_header_stdc=yes
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 ol_cv_header_stdc=no
8496 if test $ol_cv_header_stdc = yes; then
8497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504 egrep "memchr" >/dev/null 2>&1; then
8508 ol_cv_header_stdc=no
8514 if test $ol_cv_header_stdc = yes; then
8515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8516 cat > conftest.$ac_ext <<EOF
8517 #line 8518 "configure"
8518 #include "confdefs.h"
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 egrep "free" >/dev/null 2>&1; then
8526 ol_cv_header_stdc=no
8532 if test $ol_cv_header_stdc = yes; then
8533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8534 if test "$cross_compiling" = yes; then
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8545 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8546 || ('j' <= (c) && (c) <= 'r') \
8547 || ('s' <= (c) && (c) <= 'z'))
8548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8551 int main () { int i; for (i = 0; i < 256; i++)
8552 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8556 if { (eval echo configure:8557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8563 ol_cv_header_stdc=no
8571 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8572 if test $ol_cv_header_stdc = yes; then
8573 cat >> confdefs.h <<\EOF
8574 #define STDC_HEADERS 1
8578 ac_cv_header_stdc=disable
8581 if test $ol_cv_header_stdc != yes; then
8582 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8586 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8589 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8590 echo "configure:8591: checking for $ac_hdr that defines DIR" >&5
8591 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 #include <sys/types.h>
8603 if { (eval echo configure:8604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8605 eval "ac_cv_header_dirent_$ac_safe=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 eval "ac_cv_header_dirent_$ac_safe=no"
8614 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8617 cat >> confdefs.h <<EOF
8618 #define $ac_tr_hdr 1
8620 ac_header_dirent=$ac_hdr; break
8622 echo "$ac_t""no" 1>&6
8625 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8626 if test $ac_header_dirent = dirent.h; then
8627 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8628 echo "configure:8629: checking for opendir in -ldir" >&5
8629 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8630 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8633 ac_save_LIBS="$LIBS"
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8649 eval "ac_cv_lib_$ac_lib_var=yes"
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8654 eval "ac_cv_lib_$ac_lib_var=no"
8657 LIBS="$ac_save_LIBS"
8660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8664 echo "$ac_t""no" 1>&6
8668 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8669 echo "configure:8670: checking for opendir in -lx" >&5
8670 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8671 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8674 ac_save_LIBS="$LIBS"
8676 cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8679 /* Override any gcc2 internal prototype to avoid an error. */
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8690 eval "ac_cv_lib_$ac_lib_var=yes"
8692 echo "configure: failed program was:" >&5
8693 cat conftest.$ac_ext >&5
8695 eval "ac_cv_lib_$ac_lib_var=no"
8698 LIBS="$ac_save_LIBS"
8701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8702 echo "$ac_t""yes" 1>&6
8705 echo "$ac_t""no" 1>&6
8710 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8711 echo "configure:8712: checking for sys/wait.h that is POSIX.1 compatible" >&5
8712 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8718 #include <sys/types.h>
8719 #include <sys/wait.h>
8721 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8724 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8729 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8732 if { (eval echo configure:8733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8734 ac_cv_header_sys_wait_h=yes
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8739 ac_cv_header_sys_wait_h=no
8744 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8745 if test $ac_cv_header_sys_wait_h = yes; then
8746 cat >> confdefs.h <<\EOF
8747 #define HAVE_SYS_WAIT_H 1
8752 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8753 echo "configure:8754: checking POSIX termios" >&5
8754 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8757 cat > conftest.$ac_ext <<EOF
8758 #line 8759 "configure"
8759 #include "confdefs.h"
8760 #include <sys/types.h>
8762 #include <termios.h>
8764 /* SunOS 4.0.3 has termios.h but not the library calls. */
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8770 am_cv_sys_posix_termios=yes
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 am_cv_sys_posix_termios=no
8780 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8783 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8784 echo "configure:8785: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8785 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8790 gwinsz_in_termios_h=no
8791 if test $am_cv_sys_posix_termios = yes; then
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 #include <sys/types.h>
8796 # include <termios.h>
8802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8803 egrep "yes" >/dev/null 2>&1; then
8805 gwinsz_in_termios_h=yes
8811 if test $gwinsz_in_termios_h = no; then
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 #include <sys/types.h>
8816 # include <sys/ioctl.h>
8822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8823 egrep "yes" >/dev/null 2>&1; then
8825 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8833 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8834 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8835 cat >> confdefs.h <<\EOF
8836 #define GWINSZ_IN_SYS_IOCTL 1
8841 if test $am_cv_sys_posix_termios = yes ; then
8842 cat >> confdefs.h <<\EOF
8843 #define HAVE_POSIX_TERMIOS 1
8898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8900 echo "configure:8901: checking for $ac_hdr" >&5
8901 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8910 { (eval echo configure:8911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8912 if test -z "$ac_err"; then
8914 eval "ac_cv_header_$ac_safe=yes"
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 eval "ac_cv_header_$ac_safe=no"
8924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8925 echo "$ac_t""yes" 1>&6
8926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8927 cat >> confdefs.h <<EOF
8928 #define $ac_tr_hdr 1
8932 echo "$ac_t""no" 1>&6
8939 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8940 echo "configure:8941: checking for dlopen" >&5
8941 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8944 cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure"
8946 #include "confdefs.h"
8947 /* System header to define __stub macros and hopefully few prototypes,
8948 which can conflict with char dlopen(); below. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 /* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8958 /* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
8961 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8969 if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8971 eval "ac_cv_func_dlopen=yes"
8973 echo "configure: failed program was:" >&5
8974 cat conftest.$ac_ext >&5
8976 eval "ac_cv_func_dlopen=no"
8981 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8982 echo "$ac_t""yes" 1>&6
8985 echo "$ac_t""no" 1>&6
8986 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8987 echo "configure:8988: checking for dlopen in -ldl" >&5
8988 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8992 ac_save_LIBS="$LIBS"
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9008 eval "ac_cv_lib_$ac_lib_var=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_lib_$ac_lib_var=no"
9016 LIBS="$ac_save_LIBS"
9019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9022 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9023 cat >> confdefs.h <<EOF
9024 #define $ac_tr_lib 1
9030 echo "$ac_t""no" 1>&6
9036 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9037 echo "configure:9038: checking for sigset in -lV3" >&5
9038 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9039 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9042 ac_save_LIBS="$LIBS"
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* Override any gcc2 internal prototype to avoid an error. */
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 eval "ac_cv_lib_$ac_lib_var=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_lib_$ac_lib_var=no"
9066 LIBS="$ac_save_LIBS"
9069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9070 echo "$ac_t""yes" 1>&6
9071 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9072 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9073 cat >> confdefs.h <<EOF
9074 #define $ac_tr_lib 1
9080 echo "$ac_t""no" 1>&6
9084 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9085 echo "configure:9086: checking for winsock" >&5
9087 for curlib in ws2_32 wsock32; do
9088 LIBS="$LIBS -l$curlib"
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9095 char closesocket@4();
9096 char gethostname@8();
9107 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9118 if test $have_winsock = yes; then
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_WINSOCK 1
9123 ac_cv_func_socket=yes
9124 ac_cv_func_select=yes
9125 ac_cv_func_closesocket=yes
9126 ac_cv_func_gethostname=yes
9127 if test $curlib = ws2_32; then
9128 have_winsock=winsock2
9129 cat >> confdefs.h <<\EOF
9130 #define HAVE_WINSOCK2 1
9138 echo "$ac_t""$have_winsock" 1>&6
9141 echo $ac_n "checking for socket""... $ac_c" 1>&6
9142 echo "configure:9143: checking for socket" >&5
9143 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9149 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char socket(); below. */
9152 /* Override any gcc2 internal prototype to avoid an error. */
9153 /* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9160 /* The GNU C library defines this for functions which it implements
9161 to always fail with ENOSYS. Some functions are actually named
9162 something starting with __ and the normal name is an alias. */
9163 #if defined (__stub_socket) || defined (__stub___socket)
9171 if { (eval echo configure:9172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9173 eval "ac_cv_func_socket=yes"
9175 echo "configure: failed program was:" >&5
9176 cat conftest.$ac_ext >&5
9178 eval "ac_cv_func_socket=no"
9183 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9184 echo "$ac_t""yes" 1>&6
9187 echo "$ac_t""no" 1>&6
9189 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9190 echo "configure:9191: checking for main in -lsocket" >&5
9191 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9192 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9193 echo $ac_n "(cached) $ac_c" 1>&6
9195 ac_save_LIBS="$LIBS"
9196 LIBS="-lsocket $LIBS"
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9205 if { (eval echo configure:9206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9207 eval "ac_cv_lib_$ac_lib_var=yes"
9209 echo "configure: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9212 eval "ac_cv_lib_$ac_lib_var=no"
9215 LIBS="$ac_save_LIBS"
9218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9219 echo "$ac_t""yes" 1>&6
9220 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9222 cat >> confdefs.h <<EOF
9223 #define $ac_tr_lib 1
9226 LIBS="-lsocket $LIBS"
9229 echo "$ac_t""no" 1>&6
9232 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9233 echo "configure:9234: checking for main in -lnet" >&5
9234 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9235 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9238 ac_save_LIBS="$LIBS"
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9248 if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9250 eval "ac_cv_lib_$ac_lib_var=yes"
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9255 eval "ac_cv_lib_$ac_lib_var=no"
9258 LIBS="$ac_save_LIBS"
9261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9262 echo "$ac_t""yes" 1>&6
9263 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9265 cat >> confdefs.h <<EOF
9266 #define $ac_tr_lib 1
9272 echo "$ac_t""no" 1>&6
9275 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9276 echo "configure:9277: checking for main in -lnsl_s" >&5
9277 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9278 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9281 ac_save_LIBS="$LIBS"
9282 LIBS="-lnsl_s $LIBS"
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9291 if { (eval echo configure:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9293 eval "ac_cv_lib_$ac_lib_var=yes"
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9298 eval "ac_cv_lib_$ac_lib_var=no"
9301 LIBS="$ac_save_LIBS"
9304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9305 echo "$ac_t""yes" 1>&6
9306 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9308 cat >> confdefs.h <<EOF
9309 #define $ac_tr_lib 1
9312 LIBS="-lnsl_s $LIBS"
9315 echo "$ac_t""no" 1>&6
9318 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9319 echo "configure:9320: checking for main in -lnsl" >&5
9320 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9324 ac_save_LIBS="$LIBS"
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_lib_$ac_lib_var=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_lib_$ac_lib_var=no"
9344 LIBS="$ac_save_LIBS"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9348 echo "$ac_t""yes" 1>&6
9349 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9351 cat >> confdefs.h <<EOF
9352 #define $ac_tr_lib 1
9358 echo "$ac_t""no" 1>&6
9361 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9362 echo "configure:9363: checking for socket in -linet" >&5
9363 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9367 ac_save_LIBS="$LIBS"
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9372 /* Override any gcc2 internal prototype to avoid an error. */
9373 /* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */
9381 if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9383 eval "ac_cv_lib_$ac_lib_var=yes"
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9388 eval "ac_cv_lib_$ac_lib_var=no"
9391 LIBS="$ac_save_LIBS"
9394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9396 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9398 cat >> confdefs.h <<EOF
9399 #define $ac_tr_lib 1
9405 echo "$ac_t""no" 1>&6
9408 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9409 echo "configure:9410: checking for main in -lgen" >&5
9410 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9411 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9414 ac_save_LIBS="$LIBS"
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9426 eval "ac_cv_lib_$ac_lib_var=yes"
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9431 eval "ac_cv_lib_$ac_lib_var=no"
9434 LIBS="$ac_save_LIBS"
9437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9438 echo "$ac_t""yes" 1>&6
9439 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9441 cat >> confdefs.h <<EOF
9442 #define $ac_tr_lib 1
9448 echo "$ac_t""no" 1>&6
9455 echo $ac_n "checking for select""... $ac_c" 1>&6
9456 echo "configure:9457: checking for select" >&5
9457 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9460 cat > conftest.$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 /* System header to define __stub macros and hopefully few prototypes,
9464 which can conflict with char select(); below. */
9466 /* Override any gcc2 internal prototype to avoid an error. */
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9474 /* The GNU C library defines this for functions which it implements
9475 to always fail with ENOSYS. Some functions are actually named
9476 something starting with __ and the normal name is an alias. */
9477 #if defined (__stub_select) || defined (__stub___select)
9485 if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9487 eval "ac_cv_func_select=yes"
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9492 eval "ac_cv_func_select=no"
9497 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9498 echo "$ac_t""yes" 1>&6
9501 echo "$ac_t""no" 1>&6
9502 { echo "configure: error: select() required." 1>&2; exit 1; }
9506 if test "${ac_cv_header_winsock_h}" != yes; then
9507 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9508 echo "configure:9509: checking types of arguments for select()" >&5
9509 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9512 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9515 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9516 echo $ac_n "(cached) $ac_c" 1>&6
9518 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9519 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9520 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #ifdef HAVE_SYS_TYPES_H
9525 #include <sys/types.h>
9527 #ifdef HAVE_SYS_TIME_H
9528 #include <sys/time.h>
9530 #ifdef HAVE_SYS_SELECT_H
9531 #include <sys/select.h>
9533 #ifdef HAVE_SYS_SOCKET_H
9534 #include <sys/socket.h>
9536 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);
9541 if { (eval echo configure:9542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9543 ac_not_found=no ; break 3
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9560 if test "$ac_not_found" = yes; then
9561 ac_cv_func_select_arg1=int
9562 ac_cv_func_select_arg234='int *'
9563 ac_cv_func_select_arg5='struct timeval *'
9565 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9566 cat >> confdefs.h <<EOF
9567 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9570 cat >> confdefs.h <<EOF
9571 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9574 cat >> confdefs.h <<EOF
9575 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9582 for ac_hdr in regex.h
9584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9586 echo "configure:9587: checking for $ac_hdr" >&5
9587 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9596 { (eval echo configure:9597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9598 if test -z "$ac_err"; then
9600 eval "ac_cv_header_$ac_safe=yes"
9603 echo "configure: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9606 eval "ac_cv_header_$ac_safe=no"
9610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9611 echo "$ac_t""yes" 1>&6
9612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9613 cat >> confdefs.h <<EOF
9614 #define $ac_tr_hdr 1
9618 echo "$ac_t""no" 1>&6
9622 if test "$ac_cv_header_regex_h" != yes ; then
9623 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9626 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9627 echo "configure:9628: checking for library containing regfree" >&5
9628 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9631 ac_func_search_save_LIBS="$LIBS"
9632 ac_cv_search_regfree="no"
9633 cat > conftest.$ac_ext <<EOF
9634 #line 9635 "configure"
9635 #include "confdefs.h"
9636 /* Override any gcc2 internal prototype to avoid an error. */
9637 /* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9645 if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9647 ac_cv_search_regfree="none required"
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9653 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 /* Override any gcc2 internal prototype to avoid an error. */
9659 /* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */
9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9669 ac_cv_search_regfree="-l$ac_lib"
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9677 LIBS="$ac_func_search_save_LIBS"
9680 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9681 if test "$ac_cv_search_regfree" != "no"; then
9682 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9685 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9689 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9690 echo "configure:9691: checking for compatible POSIX regex" >&5
9691 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9695 if test "$cross_compiling" = yes; then
9696 ol_cv_c_posix_regex=cross
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9702 #include <sys/types.h>
9704 static char *pattern, *string;
9712 if(regcomp(&re, pattern, 0)) {
9716 string = "ALL MATCH";
9718 rc = regexec(&re, string, 0, (void*)0, 0);
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9727 ol_cv_c_posix_regex=yes
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 ol_cv_c_posix_regex=no
9739 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9741 if test "$ol_cv_c_posix_regex" = no ; then
9742 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9747 for ac_hdr in sys/uuid.h
9749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9751 echo "configure:9752: checking for $ac_hdr" >&5
9752 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9761 { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9763 if test -z "$ac_err"; then
9765 eval "ac_cv_header_$ac_safe=yes"
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 eval "ac_cv_header_$ac_safe=no"
9775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9778 cat >> confdefs.h <<EOF
9779 #define $ac_tr_hdr 1
9783 echo "$ac_t""no" 1>&6
9787 if test $ac_cv_header_sys_uuid_h = yes ; then
9790 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9791 echo "configure:9792: checking for library containing uuid_to_str" >&5
9792 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9793 echo $ac_n "(cached) $ac_c" 1>&6
9795 ac_func_search_save_LIBS="$LIBS"
9796 ac_cv_search_uuid_to_str="no"
9797 cat > conftest.$ac_ext <<EOF
9798 #line 9799 "configure"
9799 #include "confdefs.h"
9800 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9809 if { (eval echo configure:9810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9811 ac_cv_search_uuid_to_str="none required"
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9817 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9819 cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9831 if { (eval echo configure:9832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9833 ac_cv_search_uuid_to_str="-l$ac_lib"
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9841 LIBS="$ac_func_search_save_LIBS"
9844 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9845 if test "$ac_cv_search_uuid_to_str" != "no"; then
9846 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9853 if test have_uuid = yes ; then
9854 cat >> confdefs.h <<\EOF
9855 #define HAVE_UUID_TO_STR 1
9859 test "$ac_cv_search_uuid_to_str" = "none required" || \
9860 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9864 if test $have_uuid = no ; then
9865 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9866 echo "configure:9867: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9868 LIBS="$LIBS -lrpcrt4"
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9873 char UuidCreate@4();
9874 char UuidToStringA@8();
9883 if { (eval echo configure:9884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9893 if test $need_rpcrt = yes; then
9894 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9897 echo "$ac_t""$need_rpcrt" 1>&6
9901 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9902 echo "configure:9903: checking for res_query" >&5
9903 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 /* System header to define __stub macros and hopefully few prototypes,
9910 which can conflict with char res_query(); below. */
9912 /* Override any gcc2 internal prototype to avoid an error. */
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9920 /* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923 #if defined (__stub_res_query) || defined (__stub___res_query)
9931 if { (eval echo configure:9932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9933 eval "ac_cv_func_res_query=yes"
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9938 eval "ac_cv_func_res_query=no"
9943 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9947 echo "$ac_t""no" 1>&6
9950 if test $ac_cv_func_res_query = no ; then
9951 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9952 echo "configure:9953: checking for __res_query" >&5
9953 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959 /* System header to define __stub macros and hopefully few prototypes,
9960 which can conflict with char __res_query(); below. */
9962 /* Override any gcc2 internal prototype to avoid an error. */
9963 /* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9970 /* The GNU C library defines this for functions which it implements
9971 to always fail with ENOSYS. Some functions are actually named
9972 something starting with __ and the normal name is an alias. */
9973 #if defined (__stub___res_query) || defined (__stub_____res_query)
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9983 eval "ac_cv_func___res_query=yes"
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9988 eval "ac_cv_func___res_query=no"
9993 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9994 echo "$ac_t""yes" 1>&6
9997 echo "$ac_t""no" 1>&6
10000 ac_cv_func_res_query=$ac_cv_func___res_query
10003 if test $ac_cv_func_res_query = no ; then
10004 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10005 echo "configure:10006: checking for res_query in -lbind" >&5
10006 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10008 echo $ac_n "(cached) $ac_c" 1>&6
10010 ac_save_LIBS="$LIBS"
10011 LIBS="-lbind $LIBS"
10012 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 /* Override any gcc2 internal prototype to avoid an error. */
10016 /* We use char because int might match the return type of a gcc2
10017 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_lib_$ac_lib_var=no"
10034 LIBS="$ac_save_LIBS"
10037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6
10039 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10041 cat >> confdefs.h <<EOF
10042 #define $ac_tr_lib 1
10045 LIBS="-lbind $LIBS"
10048 echo "$ac_t""no" 1>&6
10051 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10054 if test $ac_cv_func_res_query = no ; then
10055 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10056 echo "configure:10057: checking for __res_query in -lbind" >&5
10057 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10061 ac_save_LIBS="$LIBS"
10062 LIBS="-lbind $LIBS"
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char __res_query();
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10077 eval "ac_cv_lib_$ac_lib_var=yes"
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10082 eval "ac_cv_lib_$ac_lib_var=no"
10085 LIBS="$ac_save_LIBS"
10088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10089 echo "$ac_t""yes" 1>&6
10090 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10092 cat >> confdefs.h <<EOF
10093 #define $ac_tr_lib 1
10096 LIBS="-lbind $LIBS"
10099 echo "$ac_t""no" 1>&6
10102 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10105 if test $ac_cv_func_res_query = no ; then
10106 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10107 echo "configure:10108: checking for res_query in -lresolv" >&5
10108 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10112 ac_save_LIBS="$LIBS"
10113 LIBS="-lresolv $LIBS"
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 /* Override any gcc2 internal prototype to avoid an error. */
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10126 if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10128 eval "ac_cv_lib_$ac_lib_var=yes"
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 eval "ac_cv_lib_$ac_lib_var=no"
10136 LIBS="$ac_save_LIBS"
10139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10143 cat >> confdefs.h <<EOF
10144 #define $ac_tr_lib 1
10147 LIBS="-lresolv $LIBS"
10150 echo "$ac_t""no" 1>&6
10153 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10156 if test $ac_cv_func_res_query = no ; then
10157 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10158 echo "configure:10159: checking for __res_query in -lresolv" >&5
10159 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10160 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10163 ac_save_LIBS="$LIBS"
10164 LIBS="-lresolv $LIBS"
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 /* Override any gcc2 internal prototype to avoid an error. */
10169 /* We use char because int might match the return type of a gcc2
10170 builtin and then its argument prototype would still apply. */
10171 char __res_query();
10177 if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10179 eval "ac_cv_lib_$ac_lib_var=yes"
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10184 eval "ac_cv_lib_$ac_lib_var=no"
10187 LIBS="$ac_save_LIBS"
10190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10192 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10194 cat >> confdefs.h <<EOF
10195 #define $ac_tr_lib 1
10198 LIBS="-lresolv $LIBS"
10201 echo "$ac_t""no" 1>&6
10204 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10207 if test "$ac_cv_func_res_query" = yes ; then
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_RES_QUERY 1
10213 if test $ol_enable_dnssrv != no ; then
10218 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10219 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10222 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10225 echo "configure:10226: checking for $ac_func" >&5
10226 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func(); below. */
10234 #include <assert.h>
10235 /* Override any gcc2 internal prototype to avoid an error. */
10236 /* We use char because int might match the return type of a gcc2
10237 builtin and then its argument prototype would still apply. */
10243 /* The GNU C library defines this for functions which it implements
10244 to always fail with ENOSYS. Some functions are actually named
10245 something starting with __ and the normal name is an alias. */
10246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10254 if { (eval echo configure:10255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10256 eval "ac_cv_func_$ac_func=yes"
10258 echo "configure: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10261 eval "ac_cv_func_$ac_func=no"
10266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10267 echo "$ac_t""yes" 1>&6
10268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10269 cat >> confdefs.h <<EOF
10270 #define $ac_tr_func 1
10274 echo "$ac_t""no" 1>&6
10280 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10281 if test $ol_enable_ipv6 = yes ; then
10282 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10284 elif test $ol_enable_ipv6 != no ; then
10285 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10286 echo "configure:10287: checking INET6_ADDRSTRLEN" >&5
10287 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10295 # include <netinet/in.h>
10296 # ifdef INET6_ADDRSTRLEN
10297 __has_inet6_addrstrlen__;
10301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10302 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10304 ol_cv_inet6_addrstrlen=yes
10307 ol_cv_inet6_addrstrlen=no
10313 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10316 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10317 echo "configure:10318: checking struct sockaddr_storage" >&5
10318 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10326 #include <sys/types.h>
10327 #include <sys/socket.h>
10331 struct sockaddr_storage ss;
10335 if { (eval echo configure:10336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10337 ol_cv_struct_sockaddr_storage=yes
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10342 ol_cv_struct_sockaddr_storage=no
10347 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10349 if test $ol_cv_inet6_addrstrlen = yes \
10350 -a $ol_cv_struct_sockaddr_storage = yes ; then
10352 elif test $ol_enable_ipv6 = yes \
10353 -a $ol_cv_inet6_addrstrlen = no ; then
10354 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10355 elif test $ol_enable_ipv6 = yes \
10356 -a $ol_cv_struct_sockaddr_storage = no ; then
10357 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10361 if test $ol_enable_local != no ; then
10362 for ac_hdr in sys/un.h
10364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10366 echo "configure:10367: checking for $ac_hdr" >&5
10367 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10376 { (eval echo configure:10377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10378 if test -z "$ac_err"; then
10380 eval "ac_cv_header_$ac_safe=yes"
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10386 eval "ac_cv_header_$ac_safe=no"
10390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10391 echo "$ac_t""yes" 1>&6
10392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10393 cat >> confdefs.h <<EOF
10394 #define $ac_tr_hdr 1
10398 echo "$ac_t""no" 1>&6
10403 if test $ol_enable_local = auto ; then
10404 ol_enable_local=$ac_cv_header_sys_un_h
10405 elif test $ac_cv_header_sys_un_h = no ; then
10406 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10415 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10416 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10417 -o $ol_with_kerberos = k425 ; then
10419 for ac_hdr in krb5.h
10421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10423 echo "configure:10424: checking for $ac_hdr" >&5
10424 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10425 echo $ac_n "(cached) $ac_c" 1>&6
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10433 { (eval echo configure:10434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10435 if test -z "$ac_err"; then
10437 eval "ac_cv_header_$ac_safe=yes"
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10443 eval "ac_cv_header_$ac_safe=no"
10447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10448 echo "$ac_t""yes" 1>&6
10449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10450 cat >> confdefs.h <<EOF
10451 #define $ac_tr_hdr 1
10455 echo "$ac_t""no" 1>&6
10460 if test $ac_cv_header_krb5_h = yes ; then
10461 for ac_hdr in heim_err.h
10463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10465 echo "configure:10466: checking for $ac_hdr" >&5
10466 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10475 { (eval echo configure:10476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10477 if test -z "$ac_err"; then
10479 eval "ac_cv_header_$ac_safe=yes"
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10485 eval "ac_cv_header_$ac_safe=no"
10489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10490 echo "$ac_t""yes" 1>&6
10491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10492 cat >> confdefs.h <<EOF
10493 #define $ac_tr_hdr 1
10497 echo "$ac_t""no" 1>&6
10501 if test $ac_cv_header_heim_err_h = yes ; then
10507 if test $krb5_impl = mit; then
10508 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10509 echo "configure:10510: checking for main in -lk5crypto" >&5
10510 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10511 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10514 ac_save_LIBS="$LIBS"
10515 LIBS="-lk5crypto $LIBS"
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10524 if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10526 eval "ac_cv_lib_$ac_lib_var=yes"
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10531 eval "ac_cv_lib_$ac_lib_var=no"
10534 LIBS="$ac_save_LIBS"
10537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10538 echo "$ac_t""yes" 1>&6
10539 krb5crypto=k5crypto
10541 echo "$ac_t""no" 1>&6
10546 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10547 echo "configure:10548: checking for main in -lkrb5" >&5
10548 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10549 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10552 ac_save_LIBS="$LIBS"
10553 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10554 cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10564 eval "ac_cv_lib_$ac_lib_var=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_lib_$ac_lib_var=no"
10572 LIBS="$ac_save_LIBS"
10575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10578 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10580 echo "$ac_t""no" 1>&6
10585 elif test $krb5_impl = heimdal; then
10586 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10587 echo "configure:10588: checking for main in -ldes" >&5
10588 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10589 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10592 ac_save_LIBS="$LIBS"
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10602 if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10604 eval "ac_cv_lib_$ac_lib_var=yes"
10606 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10609 eval "ac_cv_lib_$ac_lib_var=no"
10612 LIBS="$ac_save_LIBS"
10615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10616 echo "$ac_t""yes" 1>&6
10619 echo "$ac_t""no" 1>&6
10624 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10625 echo "configure:10626: checking for main in -lkrb5" >&5
10626 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10627 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10630 ac_save_LIBS="$LIBS"
10631 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure"
10634 #include "confdefs.h"
10640 if { (eval echo configure:10641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10642 eval "ac_cv_lib_$ac_lib_var=yes"
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10647 eval "ac_cv_lib_$ac_lib_var=no"
10650 LIBS="$ac_save_LIBS"
10653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10654 echo "$ac_t""yes" 1>&6
10656 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10658 echo "$ac_t""no" 1>&6
10663 cat >> confdefs.h <<\EOF
10664 #define HAVE_HEIMDAL_KERBEROS 1
10670 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10673 if test $have_krb5 = yes ; then
10676 cat >> confdefs.h <<\EOF
10677 #define HAVE_KRB5 1
10681 if test $ol_enable_kpasswd != no ; then
10682 ol_link_kpasswd=yes;
10685 if test $ol_with_kerberos = k5only ; then
10686 ol_with_kerberos=found
10689 elif test $ol_with_kerberos != auto ; then
10690 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10696 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10697 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10699 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10703 echo "configure:10704: checking for $ac_hdr" >&5
10704 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10705 echo $ac_n "(cached) $ac_c" 1>&6
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10713 { (eval echo configure:10714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10715 if test -z "$ac_err"; then
10717 eval "ac_cv_header_$ac_safe=yes"
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10723 eval "ac_cv_header_$ac_safe=no"
10727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10728 echo "$ac_t""yes" 1>&6
10729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10730 cat >> confdefs.h <<EOF
10731 #define $ac_tr_hdr 1
10735 echo "$ac_t""no" 1>&6
10740 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10741 if test $krb5_impl = mit; then
10742 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10743 echo "configure:10744: checking for main in -lkrb4" >&5
10744 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10745 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10748 ac_save_LIBS="$LIBS"
10749 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10750 cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure"
10752 #include "confdefs.h"
10758 if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10760 eval "ac_cv_lib_$ac_lib_var=yes"
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10765 eval "ac_cv_lib_$ac_lib_var=no"
10768 LIBS="$ac_save_LIBS"
10771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10772 echo "$ac_t""yes" 1>&6
10774 KRB4_LIBS="-lkrb4 -ldes425"
10776 echo "$ac_t""no" 1>&6
10781 elif test $krb5_impl = heimdal; then
10782 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10783 echo "configure:10784: checking for main in -lkrb4" >&5
10784 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10785 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10788 ac_save_LIBS="$LIBS"
10789 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10800 eval "ac_cv_lib_$ac_lib_var=yes"
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 eval "ac_cv_lib_$ac_lib_var=no"
10808 LIBS="$ac_save_LIBS"
10811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10816 echo "$ac_t""no" 1>&6
10823 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10826 if test $have_k425 = yes ; then
10827 ol_with_kerberos=found
10830 cat >> confdefs.h <<\EOF
10831 #define HAVE_KRB425 1
10834 cat >> confdefs.h <<\EOF
10835 #define HAVE_KRB4 1
10839 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10840 echo "configure:10841: checking for des_debug in Kerberos libraries" >&5
10841 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10846 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10851 #include <kerberosIV/krb.h>
10852 #include <kerberosIV/des.h>
10853 extern int des_debug;
10861 if { (eval echo configure:10862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10863 ol_cv_var_des_debug=yes
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10868 ol_cv_var_des_debug=no
10875 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10877 if test $ol_cv_var_des_debug = yes ; then
10878 cat >> confdefs.h <<\EOF
10879 #define HAVE_DES_DEBUG 1
10889 if test $ol_link_krb5 = yes ; then
10890 ol_with_kerberos=found
10893 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10894 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10896 for ac_hdr in krb.h des.h krb-archaeology.h
10898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10900 echo "configure:10901: checking for $ac_hdr" >&5
10901 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10910 { (eval echo configure:10911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10912 if test -z "$ac_err"; then
10914 eval "ac_cv_header_$ac_safe=yes"
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10920 eval "ac_cv_header_$ac_safe=no"
10924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10925 echo "$ac_t""yes" 1>&6
10926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10927 cat >> confdefs.h <<EOF
10928 #define $ac_tr_hdr 1
10932 echo "$ac_t""no" 1>&6
10937 if test $ac_cv_header_krb_h = yes ; then
10938 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10939 echo "configure:10940: checking for main in -lkrb" >&5
10940 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10941 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10942 echo $ac_n "(cached) $ac_c" 1>&6
10944 ac_save_LIBS="$LIBS"
10945 LIBS="-lkrb -ldes $LIBS"
10946 cat > conftest.$ac_ext <<EOF
10947 #line 10948 "configure"
10948 #include "confdefs.h"
10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10956 eval "ac_cv_lib_$ac_lib_var=yes"
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10961 eval "ac_cv_lib_$ac_lib_var=no"
10964 LIBS="$ac_save_LIBS"
10967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10968 echo "$ac_t""yes" 1>&6
10971 echo "$ac_t""no" 1>&6
10976 if test $have_k4 = yes ; then
10977 ol_with_kerberos=found
10980 cat >> confdefs.h <<\EOF
10981 #define HAVE_KRB4 1
10985 KRB4_LIBS="-lkrb -ldes"
10987 if test $ac_cv_header_krb_archaeology_h = yes ; then
10988 cat >> confdefs.h <<\EOF
10989 #define HAVE_KTH_KERBEROS 1
10997 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10998 ol_link_kpasswd=yes
11001 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11004 elif test $ol_enable_kbind = yes ; then
11005 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11008 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11009 cat >> confdefs.h <<\EOF
11010 #define HAVE_KERBEROS 1
11014 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11015 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11019 if test $ol_with_tls != no ; then
11020 for ac_hdr in openssl/ssl.h ssl.h
11022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11024 echo "configure:11025: checking for $ac_hdr" >&5
11025 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11026 echo $ac_n "(cached) $ac_c" 1>&6
11028 cat > conftest.$ac_ext <<EOF
11029 #line 11030 "configure"
11030 #include "confdefs.h"
11033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11034 { (eval echo configure:11035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11036 if test -z "$ac_err"; then
11038 eval "ac_cv_header_$ac_safe=yes"
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11044 eval "ac_cv_header_$ac_safe=no"
11048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11051 cat >> confdefs.h <<EOF
11052 #define $ac_tr_hdr 1
11056 echo "$ac_t""no" 1>&6
11061 if test $ac_cv_header_openssl_ssl_h = yes \
11062 -o $ac_cv_header_ssl_h = yes ; then
11063 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11064 echo "configure:11065: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11065 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11066 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11069 ac_save_LIBS="$LIBS"
11070 LIBS="-lssl -lcrypto $LIBS"
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11074 /* Override any gcc2 internal prototype to avoid an error. */
11075 /* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077 char SSLeay_add_ssl_algorithms();
11080 SSLeay_add_ssl_algorithms()
11083 if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11085 eval "ac_cv_lib_$ac_lib_var=yes"
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11090 eval "ac_cv_lib_$ac_lib_var=no"
11093 LIBS="$ac_save_LIBS"
11096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11101 echo "$ac_t""no" 1>&6
11106 if test $have_ssleay = no ; then
11107 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11108 echo "configure:11109: checking for SSL_library_init in -lssl" >&5
11109 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11110 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11111 echo $ac_n "(cached) $ac_c" 1>&6
11113 ac_save_LIBS="$LIBS"
11114 LIBS="-lssl -lcrypto $LIBS"
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char SSL_library_init();
11127 if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11129 eval "ac_cv_lib_$ac_lib_var=yes"
11131 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11134 eval "ac_cv_lib_$ac_lib_var=no"
11137 LIBS="$ac_save_LIBS"
11140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11145 echo "$ac_t""no" 1>&6
11151 if test $have_ssleay = no ; then
11152 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11153 echo "configure:11154: checking for ssl3_accept in -lssl" >&5
11154 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11158 ac_save_LIBS="$LIBS"
11159 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11160 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure"
11162 #include "confdefs.h"
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166 char ssl3_accept();
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 eval "ac_cv_lib_$ac_lib_var=yes"
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 eval "ac_cv_lib_$ac_lib_var=no"
11182 LIBS="$ac_save_LIBS"
11185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11186 echo "$ac_t""yes" 1>&6
11190 echo "$ac_t""no" 1>&6
11196 if test $have_ssleay = yes ; then
11200 cat >> confdefs.h <<\EOF
11201 #define HAVE_SSLEAY 1
11205 if test $need_rsaref = yes; then
11206 cat >> confdefs.h <<\EOF
11207 #define HAVE_RSAREF 1
11211 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11213 TLS_LIBS="-lssl -lcrypto"
11219 echo "configure: warning: TLS data protection not supported!" 1>&2
11223 if test $ol_link_tls = yes ; then
11224 cat >> confdefs.h <<\EOF
11230 elif test $ol_with_tls = auto ; then
11231 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11232 echo "configure: warning: TLS data protection not supported!" 1>&2
11234 elif test $ol_with_tls != no ; then
11235 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11238 if test $ol_enable_lmpasswd != no; then
11239 if test $ol_link_tls != yes ; then
11240 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11243 cat >> confdefs.h <<\EOF
11244 #define SLAPD_LMHASH 1
11251 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11252 -o $ol_with_threads = nt ; then
11255 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11256 echo "configure:11257: checking for _beginthread" >&5
11257 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11260 cat > conftest.$ac_ext <<EOF
11261 #line 11262 "configure"
11262 #include "confdefs.h"
11263 /* System header to define __stub macros and hopefully few prototypes,
11264 which can conflict with char _beginthread(); below. */
11265 #include <assert.h>
11266 /* Override any gcc2 internal prototype to avoid an error. */
11267 /* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11269 char _beginthread();
11274 /* The GNU C library defines this for functions which it implements
11275 to always fail with ENOSYS. Some functions are actually named
11276 something starting with __ and the normal name is an alias. */
11277 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11285 if { (eval echo configure:11286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11287 eval "ac_cv_func__beginthread=yes"
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11292 eval "ac_cv_func__beginthread=no"
11297 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11298 echo "$ac_t""yes" 1>&6
11301 echo "$ac_t""no" 1>&6
11305 if test $ac_cv_func__beginthread = yes ; then
11306 cat >> confdefs.h <<\EOF
11307 #define HAVE_NT_THREADS 1
11310 ol_cv_nt_threads=yes
11314 if test "$ol_cv_nt_threads" = yes ; then
11316 ol_with_threads=found
11317 ol_with_yielding_select=yes
11319 cat >> confdefs.h <<\EOF
11320 #define HAVE_NT_SERVICE_MANAGER 1
11323 cat >> confdefs.h <<\EOF
11324 #define HAVE_NT_EVENT_LOG 1
11329 if test $ol_with_threads = nt ; then
11330 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11334 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11335 -o $ol_with_threads = posix ; then
11337 for ac_hdr in pthread.h
11339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11341 echo "configure:11342: checking for $ac_hdr" >&5
11342 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11343 echo $ac_n "(cached) $ac_c" 1>&6
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11351 { (eval echo configure:11352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11353 if test -z "$ac_err"; then
11355 eval "ac_cv_header_$ac_safe=yes"
11358 echo "configure: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11361 eval "ac_cv_header_$ac_safe=no"
11365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11366 echo "$ac_t""yes" 1>&6
11367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11368 cat >> confdefs.h <<EOF
11369 #define $ac_tr_hdr 1
11373 echo "$ac_t""no" 1>&6
11378 if test $ac_cv_header_pthread_h = yes ; then
11379 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11380 echo "configure:11381: checking POSIX thread version" >&5
11381 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11389 # include <pthread.h>
11393 int i = PTHREAD_CREATE_JOINABLE;
11397 if { (eval echo configure:11398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403 #include <pthread.h>
11405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11406 egrep "pthread_detach" >/dev/null 2>&1; then
11408 ol_cv_pthread_version=10
11411 ol_cv_pthread_version=8
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11424 # include <pthread.h>
11425 # ifdef PTHREAD_CREATE_UNDETACHED
11430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11431 egrep "draft7" >/dev/null 2>&1; then
11433 ol_cv_pthread_version=7
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11440 #include <pthread.h>
11442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11443 egrep "pthread_attr_init" >/dev/null 2>&1; then
11445 ol_cv_pthread_version=6
11449 cat > conftest.$ac_ext <<EOF
11450 #line 11451 "configure"
11451 #include "confdefs.h"
11453 # include <pthread.h>
11454 #ifdef PTHREAD_MUTEX_INITIALIZER
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 egrep "draft5" >/dev/null 2>&1; then
11462 ol_cv_pthread_version=5
11465 ol_cv_pthread_version=4
11480 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11483 if test $ol_cv_pthread_version != 0 ; then
11484 cat >> confdefs.h <<EOF
11485 #define HAVE_PTHREADS $ol_cv_pthread_version
11489 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11492 # consider threads found
11493 ol_with_threads=found
11496 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11497 echo "configure:11498: checking for LinuxThreads pthread.h" >&5
11498 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11501 cat > conftest.$ac_ext <<EOF
11502 #line 11503 "configure"
11503 #include "confdefs.h"
11504 #include <pthread.h>
11506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11507 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11509 ol_cv_header_linux_threads=yes
11512 ol_cv_header_linux_threads=no
11519 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11520 if test $ol_cv_header_linux_threads = yes; then
11521 cat >> confdefs.h <<\EOF
11522 #define HAVE_LINUX_THREADS 1
11528 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11529 echo "configure:11530: checking for GNU Pth pthread.h" >&5
11530 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11531 echo $ac_n "(cached) $ac_c" 1>&6
11533 cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11536 #include <pthread.h>
11537 #ifdef _POSIX_THREAD_IS_GNU_PTH
11542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11543 egrep "__gnu_pth__" >/dev/null 2>&1; then
11545 ol_cv_header_gnu_pth_pthread_h=yes
11548 ol_cv_header_gnu_pth_pthread_h=no
11555 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11558 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11559 for ac_hdr in sched.h
11561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11563 echo "configure:11564: checking for $ac_hdr" >&5
11564 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11573 { (eval echo configure:11574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11575 if test -z "$ac_err"; then
11577 eval "ac_cv_header_$ac_safe=yes"
11580 echo "configure: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11583 eval "ac_cv_header_$ac_safe=no"
11587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11588 echo "$ac_t""yes" 1>&6
11589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11590 cat >> confdefs.h <<EOF
11591 #define $ac_tr_hdr 1
11595 echo "$ac_t""no" 1>&6
11602 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11603 echo "configure:11604: checking for pthread_create in default libraries" >&5
11604 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11605 echo $ac_n "(cached) $ac_c" 1>&6
11608 if test "$cross_compiling" = yes; then
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 /* pthread test headers */
11613 #include <pthread.h>
11614 #if HAVE_PTHREADS < 7
11618 #define NULL (void*)0
11621 static void *task(p)
11624 return (void *) (p == NULL);
11629 /* pthread test function */
11630 #ifndef PTHREAD_CREATE_DETACHED
11631 #define PTHREAD_CREATE_DETACHED 1
11635 int detach = PTHREAD_CREATE_DETACHED;
11637 #if HAVE_PTHREADS > 4
11638 /* Final pthreads */
11639 pthread_attr_t attr;
11641 status = pthread_attr_init(&attr);
11642 if( status ) return status;
11644 #if HAVE_PTHREADS < 7
11645 status = pthread_attr_setdetachstate(&attr, &detach);
11646 if( status < 0 ) status = errno;
11648 status = pthread_attr_setdetachstate(&attr, detach);
11650 if( status ) return status;
11651 status = pthread_create( &t, &attr, task, NULL );
11652 #if HAVE_PTHREADS < 7
11653 if( status < 0 ) status = errno;
11655 if( status ) return status;
11657 /* Draft 4 pthreads */
11658 status = pthread_create( &t, pthread_attr_default, task, NULL );
11659 if( status ) return errno;
11661 /* give thread a chance to complete */
11662 /* it should remain joinable and hence detachable */
11665 status = pthread_detach( &t );
11666 if( status ) return errno;
11669 #ifdef HAVE_LINUX_THREADS
11670 pthread_kill_other_threads_np();
11677 if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11679 ol_cv_pthread_create=yes
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11684 ol_cv_pthread_create=no
11688 cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 /* pthread test headers */
11692 #include <pthread.h>
11693 #if HAVE_PTHREADS < 7
11697 #define NULL (void*)0
11700 static void *task(p)
11703 return (void *) (p == NULL);
11707 int main(argc, argv)
11712 /* pthread test function */
11713 #ifndef PTHREAD_CREATE_DETACHED
11714 #define PTHREAD_CREATE_DETACHED 1
11718 int detach = PTHREAD_CREATE_DETACHED;
11720 #if HAVE_PTHREADS > 4
11721 /* Final pthreads */
11722 pthread_attr_t attr;
11724 status = pthread_attr_init(&attr);
11725 if( status ) return status;
11727 #if HAVE_PTHREADS < 7
11728 status = pthread_attr_setdetachstate(&attr, &detach);
11729 if( status < 0 ) status = errno;
11731 status = pthread_attr_setdetachstate(&attr, detach);
11733 if( status ) return status;
11734 status = pthread_create( &t, &attr, task, NULL );
11735 #if HAVE_PTHREADS < 7
11736 if( status < 0 ) status = errno;
11738 if( status ) return status;
11740 /* Draft 4 pthreads */
11741 status = pthread_create( &t, pthread_attr_default, task, NULL );
11742 if( status ) return errno;
11744 /* give thread a chance to complete */
11745 /* it should remain joinable and hence detachable */
11748 status = pthread_detach( &t );
11749 if( status ) return errno;
11752 #ifdef HAVE_LINUX_THREADS
11753 pthread_kill_other_threads_np();
11761 if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11763 ol_cv_pthread_create=yes
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11768 ol_cv_pthread_create=no
11775 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11777 if test $ol_cv_pthread_create != no ; then
11778 ol_link_threads=posix
11779 ol_link_pthreads=""
11782 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11783 if test "$ol_link_threads" = no ; then
11785 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11786 echo "configure:11787: checking for pthread link with -kthread" >&5
11787 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11788 echo $ac_n "(cached) $ac_c" 1>&6
11793 LIBS="-kthread $LIBS"
11795 if test "$cross_compiling" = yes; then
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 /* pthread test headers */
11800 #include <pthread.h>
11801 #if HAVE_PTHREADS < 7
11805 #define NULL (void*)0
11808 static void *task(p)
11811 return (void *) (p == NULL);
11816 /* pthread test function */
11817 #ifndef PTHREAD_CREATE_DETACHED
11818 #define PTHREAD_CREATE_DETACHED 1
11822 int detach = PTHREAD_CREATE_DETACHED;
11824 #if HAVE_PTHREADS > 4
11825 /* Final pthreads */
11826 pthread_attr_t attr;
11828 status = pthread_attr_init(&attr);
11829 if( status ) return status;
11831 #if HAVE_PTHREADS < 7
11832 status = pthread_attr_setdetachstate(&attr, &detach);
11833 if( status < 0 ) status = errno;
11835 status = pthread_attr_setdetachstate(&attr, detach);
11837 if( status ) return status;
11838 status = pthread_create( &t, &attr, task, NULL );
11839 #if HAVE_PTHREADS < 7
11840 if( status < 0 ) status = errno;
11842 if( status ) return status;
11844 /* Draft 4 pthreads */
11845 status = pthread_create( &t, pthread_attr_default, task, NULL );
11846 if( status ) return errno;
11848 /* give thread a chance to complete */
11849 /* it should remain joinable and hence detachable */
11852 status = pthread_detach( &t );
11853 if( status ) return errno;
11856 #ifdef HAVE_LINUX_THREADS
11857 pthread_kill_other_threads_np();
11864 if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11866 ol_cv_pthread_kthread=yes
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11871 ol_cv_pthread_kthread=no
11875 cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure"
11877 #include "confdefs.h"
11878 /* pthread test headers */
11879 #include <pthread.h>
11880 #if HAVE_PTHREADS < 7
11884 #define NULL (void*)0
11887 static void *task(p)
11890 return (void *) (p == NULL);
11894 int main(argc, argv)
11899 /* pthread test function */
11900 #ifndef PTHREAD_CREATE_DETACHED
11901 #define PTHREAD_CREATE_DETACHED 1
11905 int detach = PTHREAD_CREATE_DETACHED;
11907 #if HAVE_PTHREADS > 4
11908 /* Final pthreads */
11909 pthread_attr_t attr;
11911 status = pthread_attr_init(&attr);
11912 if( status ) return status;
11914 #if HAVE_PTHREADS < 7
11915 status = pthread_attr_setdetachstate(&attr, &detach);
11916 if( status < 0 ) status = errno;
11918 status = pthread_attr_setdetachstate(&attr, detach);
11920 if( status ) return status;
11921 status = pthread_create( &t, &attr, task, NULL );
11922 #if HAVE_PTHREADS < 7
11923 if( status < 0 ) status = errno;
11925 if( status ) return status;
11927 /* Draft 4 pthreads */
11928 status = pthread_create( &t, pthread_attr_default, task, NULL );
11929 if( status ) return errno;
11931 /* give thread a chance to complete */
11932 /* it should remain joinable and hence detachable */
11935 status = pthread_detach( &t );
11936 if( status ) return errno;
11939 #ifdef HAVE_LINUX_THREADS
11940 pthread_kill_other_threads_np();
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11950 ol_cv_pthread_kthread=yes
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11955 ol_cv_pthread_kthread=no
11966 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11968 if test $ol_cv_pthread_kthread = yes ; then
11969 ol_link_pthreads="-kthread"
11970 ol_link_threads=posix
11974 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11975 if test "$ol_link_threads" = no ; then
11977 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11978 echo "configure:11979: checking for pthread link with -pthread" >&5
11979 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11980 echo $ac_n "(cached) $ac_c" 1>&6
11985 LIBS="-pthread $LIBS"
11987 if test "$cross_compiling" = yes; then
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991 /* pthread test headers */
11992 #include <pthread.h>
11993 #if HAVE_PTHREADS < 7
11997 #define NULL (void*)0
12000 static void *task(p)
12003 return (void *) (p == NULL);
12008 /* pthread test function */
12009 #ifndef PTHREAD_CREATE_DETACHED
12010 #define PTHREAD_CREATE_DETACHED 1
12014 int detach = PTHREAD_CREATE_DETACHED;
12016 #if HAVE_PTHREADS > 4
12017 /* Final pthreads */
12018 pthread_attr_t attr;
12020 status = pthread_attr_init(&attr);
12021 if( status ) return status;
12023 #if HAVE_PTHREADS < 7
12024 status = pthread_attr_setdetachstate(&attr, &detach);
12025 if( status < 0 ) status = errno;
12027 status = pthread_attr_setdetachstate(&attr, detach);
12029 if( status ) return status;
12030 status = pthread_create( &t, &attr, task, NULL );
12031 #if HAVE_PTHREADS < 7
12032 if( status < 0 ) status = errno;
12034 if( status ) return status;
12036 /* Draft 4 pthreads */
12037 status = pthread_create( &t, pthread_attr_default, task, NULL );
12038 if( status ) return errno;
12040 /* give thread a chance to complete */
12041 /* it should remain joinable and hence detachable */
12044 status = pthread_detach( &t );
12045 if( status ) return errno;
12048 #ifdef HAVE_LINUX_THREADS
12049 pthread_kill_other_threads_np();
12056 if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12058 ol_cv_pthread_pthread=yes
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12063 ol_cv_pthread_pthread=no
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12070 /* pthread test headers */
12071 #include <pthread.h>
12072 #if HAVE_PTHREADS < 7
12076 #define NULL (void*)0
12079 static void *task(p)
12082 return (void *) (p == NULL);
12086 int main(argc, argv)
12091 /* pthread test function */
12092 #ifndef PTHREAD_CREATE_DETACHED
12093 #define PTHREAD_CREATE_DETACHED 1
12097 int detach = PTHREAD_CREATE_DETACHED;
12099 #if HAVE_PTHREADS > 4
12100 /* Final pthreads */
12101 pthread_attr_t attr;
12103 status = pthread_attr_init(&attr);
12104 if( status ) return status;
12106 #if HAVE_PTHREADS < 7
12107 status = pthread_attr_setdetachstate(&attr, &detach);
12108 if( status < 0 ) status = errno;
12110 status = pthread_attr_setdetachstate(&attr, detach);
12112 if( status ) return status;
12113 status = pthread_create( &t, &attr, task, NULL );
12114 #if HAVE_PTHREADS < 7
12115 if( status < 0 ) status = errno;
12117 if( status ) return status;
12119 /* Draft 4 pthreads */
12120 status = pthread_create( &t, pthread_attr_default, task, NULL );
12121 if( status ) return errno;
12123 /* give thread a chance to complete */
12124 /* it should remain joinable and hence detachable */
12127 status = pthread_detach( &t );
12128 if( status ) return errno;
12131 #ifdef HAVE_LINUX_THREADS
12132 pthread_kill_other_threads_np();
12140 if { (eval echo configure:12141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12142 ol_cv_pthread_pthread=yes
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12147 ol_cv_pthread_pthread=no
12158 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12160 if test $ol_cv_pthread_pthread = yes ; then
12161 ol_link_pthreads="-pthread"
12162 ol_link_threads=posix
12166 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12167 if test "$ol_link_threads" = no ; then
12169 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12170 echo "configure:12171: checking for pthread link with -pthreads" >&5
12171 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12177 LIBS="-pthreads $LIBS"
12179 if test "$cross_compiling" = yes; then
12180 cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12183 /* pthread test headers */
12184 #include <pthread.h>
12185 #if HAVE_PTHREADS < 7
12189 #define NULL (void*)0
12192 static void *task(p)
12195 return (void *) (p == NULL);
12200 /* pthread test function */
12201 #ifndef PTHREAD_CREATE_DETACHED
12202 #define PTHREAD_CREATE_DETACHED 1
12206 int detach = PTHREAD_CREATE_DETACHED;
12208 #if HAVE_PTHREADS > 4
12209 /* Final pthreads */
12210 pthread_attr_t attr;
12212 status = pthread_attr_init(&attr);
12213 if( status ) return status;
12215 #if HAVE_PTHREADS < 7
12216 status = pthread_attr_setdetachstate(&attr, &detach);
12217 if( status < 0 ) status = errno;
12219 status = pthread_attr_setdetachstate(&attr, detach);
12221 if( status ) return status;
12222 status = pthread_create( &t, &attr, task, NULL );
12223 #if HAVE_PTHREADS < 7
12224 if( status < 0 ) status = errno;
12226 if( status ) return status;
12228 /* Draft 4 pthreads */
12229 status = pthread_create( &t, pthread_attr_default, task, NULL );
12230 if( status ) return errno;
12232 /* give thread a chance to complete */
12233 /* it should remain joinable and hence detachable */
12236 status = pthread_detach( &t );
12237 if( status ) return errno;
12240 #ifdef HAVE_LINUX_THREADS
12241 pthread_kill_other_threads_np();
12248 if { (eval echo configure:12249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12250 ol_cv_pthread_pthreads=yes
12252 echo "configure: failed program was:" >&5
12253 cat conftest.$ac_ext >&5
12255 ol_cv_pthread_pthreads=no
12259 cat > conftest.$ac_ext <<EOF
12260 #line 12261 "configure"
12261 #include "confdefs.h"
12262 /* pthread test headers */
12263 #include <pthread.h>
12264 #if HAVE_PTHREADS < 7
12268 #define NULL (void*)0
12271 static void *task(p)
12274 return (void *) (p == NULL);
12278 int main(argc, argv)
12283 /* pthread test function */
12284 #ifndef PTHREAD_CREATE_DETACHED
12285 #define PTHREAD_CREATE_DETACHED 1
12289 int detach = PTHREAD_CREATE_DETACHED;
12291 #if HAVE_PTHREADS > 4
12292 /* Final pthreads */
12293 pthread_attr_t attr;
12295 status = pthread_attr_init(&attr);
12296 if( status ) return status;
12298 #if HAVE_PTHREADS < 7
12299 status = pthread_attr_setdetachstate(&attr, &detach);
12300 if( status < 0 ) status = errno;
12302 status = pthread_attr_setdetachstate(&attr, detach);
12304 if( status ) return status;
12305 status = pthread_create( &t, &attr, task, NULL );
12306 #if HAVE_PTHREADS < 7
12307 if( status < 0 ) status = errno;
12309 if( status ) return status;
12311 /* Draft 4 pthreads */
12312 status = pthread_create( &t, pthread_attr_default, task, NULL );
12313 if( status ) return errno;
12315 /* give thread a chance to complete */
12316 /* it should remain joinable and hence detachable */
12319 status = pthread_detach( &t );
12320 if( status ) return errno;
12323 #ifdef HAVE_LINUX_THREADS
12324 pthread_kill_other_threads_np();
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12334 ol_cv_pthread_pthreads=yes
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12339 ol_cv_pthread_pthreads=no
12350 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12352 if test $ol_cv_pthread_pthreads = yes ; then
12353 ol_link_pthreads="-pthreads"
12354 ol_link_threads=posix
12358 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12359 if test "$ol_link_threads" = no ; then
12361 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12362 echo "configure:12363: checking for pthread link with -mthreads" >&5
12363 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12369 LIBS="-mthreads $LIBS"
12371 if test "$cross_compiling" = yes; then
12372 cat > conftest.$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12375 /* pthread test headers */
12376 #include <pthread.h>
12377 #if HAVE_PTHREADS < 7
12381 #define NULL (void*)0
12384 static void *task(p)
12387 return (void *) (p == NULL);
12392 /* pthread test function */
12393 #ifndef PTHREAD_CREATE_DETACHED
12394 #define PTHREAD_CREATE_DETACHED 1
12398 int detach = PTHREAD_CREATE_DETACHED;
12400 #if HAVE_PTHREADS > 4
12401 /* Final pthreads */
12402 pthread_attr_t attr;
12404 status = pthread_attr_init(&attr);
12405 if( status ) return status;
12407 #if HAVE_PTHREADS < 7
12408 status = pthread_attr_setdetachstate(&attr, &detach);
12409 if( status < 0 ) status = errno;
12411 status = pthread_attr_setdetachstate(&attr, detach);
12413 if( status ) return status;
12414 status = pthread_create( &t, &attr, task, NULL );
12415 #if HAVE_PTHREADS < 7
12416 if( status < 0 ) status = errno;
12418 if( status ) return status;
12420 /* Draft 4 pthreads */
12421 status = pthread_create( &t, pthread_attr_default, task, NULL );
12422 if( status ) return errno;
12424 /* give thread a chance to complete */
12425 /* it should remain joinable and hence detachable */
12428 status = pthread_detach( &t );
12429 if( status ) return errno;
12432 #ifdef HAVE_LINUX_THREADS
12433 pthread_kill_other_threads_np();
12440 if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12442 ol_cv_pthread_mthreads=yes
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12447 ol_cv_pthread_mthreads=no
12451 cat > conftest.$ac_ext <<EOF
12452 #line 12453 "configure"
12453 #include "confdefs.h"
12454 /* pthread test headers */
12455 #include <pthread.h>
12456 #if HAVE_PTHREADS < 7
12460 #define NULL (void*)0
12463 static void *task(p)
12466 return (void *) (p == NULL);
12470 int main(argc, argv)
12475 /* pthread test function */
12476 #ifndef PTHREAD_CREATE_DETACHED
12477 #define PTHREAD_CREATE_DETACHED 1
12481 int detach = PTHREAD_CREATE_DETACHED;
12483 #if HAVE_PTHREADS > 4
12484 /* Final pthreads */
12485 pthread_attr_t attr;
12487 status = pthread_attr_init(&attr);
12488 if( status ) return status;
12490 #if HAVE_PTHREADS < 7
12491 status = pthread_attr_setdetachstate(&attr, &detach);
12492 if( status < 0 ) status = errno;
12494 status = pthread_attr_setdetachstate(&attr, detach);
12496 if( status ) return status;
12497 status = pthread_create( &t, &attr, task, NULL );
12498 #if HAVE_PTHREADS < 7
12499 if( status < 0 ) status = errno;
12501 if( status ) return status;
12503 /* Draft 4 pthreads */
12504 status = pthread_create( &t, pthread_attr_default, task, NULL );
12505 if( status ) return errno;
12507 /* give thread a chance to complete */
12508 /* it should remain joinable and hence detachable */
12511 status = pthread_detach( &t );
12512 if( status ) return errno;
12515 #ifdef HAVE_LINUX_THREADS
12516 pthread_kill_other_threads_np();
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12526 ol_cv_pthread_mthreads=yes
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12531 ol_cv_pthread_mthreads=no
12542 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12544 if test $ol_cv_pthread_mthreads = yes ; then
12545 ol_link_pthreads="-mthreads"
12546 ol_link_threads=posix
12550 # Pthread try link: -thread (ol_cv_pthread_thread)
12551 if test "$ol_link_threads" = no ; then
12553 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12554 echo "configure:12555: checking for pthread link with -thread" >&5
12555 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12556 echo $ac_n "(cached) $ac_c" 1>&6
12561 LIBS="-thread $LIBS"
12563 if test "$cross_compiling" = yes; then
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 /* pthread test headers */
12568 #include <pthread.h>
12569 #if HAVE_PTHREADS < 7
12573 #define NULL (void*)0
12576 static void *task(p)
12579 return (void *) (p == NULL);
12584 /* pthread test function */
12585 #ifndef PTHREAD_CREATE_DETACHED
12586 #define PTHREAD_CREATE_DETACHED 1
12590 int detach = PTHREAD_CREATE_DETACHED;
12592 #if HAVE_PTHREADS > 4
12593 /* Final pthreads */
12594 pthread_attr_t attr;
12596 status = pthread_attr_init(&attr);
12597 if( status ) return status;
12599 #if HAVE_PTHREADS < 7
12600 status = pthread_attr_setdetachstate(&attr, &detach);
12601 if( status < 0 ) status = errno;
12603 status = pthread_attr_setdetachstate(&attr, detach);
12605 if( status ) return status;
12606 status = pthread_create( &t, &attr, task, NULL );
12607 #if HAVE_PTHREADS < 7
12608 if( status < 0 ) status = errno;
12610 if( status ) return status;
12612 /* Draft 4 pthreads */
12613 status = pthread_create( &t, pthread_attr_default, task, NULL );
12614 if( status ) return errno;
12616 /* give thread a chance to complete */
12617 /* it should remain joinable and hence detachable */
12620 status = pthread_detach( &t );
12621 if( status ) return errno;
12624 #ifdef HAVE_LINUX_THREADS
12625 pthread_kill_other_threads_np();
12632 if { (eval echo configure:12633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12634 ol_cv_pthread_thread=yes
12636 echo "configure: failed program was:" >&5
12637 cat conftest.$ac_ext >&5
12639 ol_cv_pthread_thread=no
12643 cat > conftest.$ac_ext <<EOF
12644 #line 12645 "configure"
12645 #include "confdefs.h"
12646 /* pthread test headers */
12647 #include <pthread.h>
12648 #if HAVE_PTHREADS < 7
12652 #define NULL (void*)0
12655 static void *task(p)
12658 return (void *) (p == NULL);
12662 int main(argc, argv)
12667 /* pthread test function */
12668 #ifndef PTHREAD_CREATE_DETACHED
12669 #define PTHREAD_CREATE_DETACHED 1
12673 int detach = PTHREAD_CREATE_DETACHED;
12675 #if HAVE_PTHREADS > 4
12676 /* Final pthreads */
12677 pthread_attr_t attr;
12679 status = pthread_attr_init(&attr);
12680 if( status ) return status;
12682 #if HAVE_PTHREADS < 7
12683 status = pthread_attr_setdetachstate(&attr, &detach);
12684 if( status < 0 ) status = errno;
12686 status = pthread_attr_setdetachstate(&attr, detach);
12688 if( status ) return status;
12689 status = pthread_create( &t, &attr, task, NULL );
12690 #if HAVE_PTHREADS < 7
12691 if( status < 0 ) status = errno;
12693 if( status ) return status;
12695 /* Draft 4 pthreads */
12696 status = pthread_create( &t, pthread_attr_default, task, NULL );
12697 if( status ) return errno;
12699 /* give thread a chance to complete */
12700 /* it should remain joinable and hence detachable */
12703 status = pthread_detach( &t );
12704 if( status ) return errno;
12707 #ifdef HAVE_LINUX_THREADS
12708 pthread_kill_other_threads_np();
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12718 ol_cv_pthread_thread=yes
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 ol_cv_pthread_thread=no
12734 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12736 if test $ol_cv_pthread_thread = yes ; then
12737 ol_link_pthreads="-thread"
12738 ol_link_threads=posix
12743 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12744 if test "$ol_link_threads" = no ; then
12745 # try -lpthread -lmach -lexc -lc_r
12746 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12747 echo "configure:12748: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12748 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12749 echo $ac_n "(cached) $ac_c" 1>&6
12754 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12756 if test "$cross_compiling" = yes; then
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12760 /* pthread test headers */
12761 #include <pthread.h>
12762 #if HAVE_PTHREADS < 7
12766 #define NULL (void*)0
12769 static void *task(p)
12772 return (void *) (p == NULL);
12777 /* pthread test function */
12778 #ifndef PTHREAD_CREATE_DETACHED
12779 #define PTHREAD_CREATE_DETACHED 1
12783 int detach = PTHREAD_CREATE_DETACHED;
12785 #if HAVE_PTHREADS > 4
12786 /* Final pthreads */
12787 pthread_attr_t attr;
12789 status = pthread_attr_init(&attr);
12790 if( status ) return status;
12792 #if HAVE_PTHREADS < 7
12793 status = pthread_attr_setdetachstate(&attr, &detach);
12794 if( status < 0 ) status = errno;
12796 status = pthread_attr_setdetachstate(&attr, detach);
12798 if( status ) return status;
12799 status = pthread_create( &t, &attr, task, NULL );
12800 #if HAVE_PTHREADS < 7
12801 if( status < 0 ) status = errno;
12803 if( status ) return status;
12805 /* Draft 4 pthreads */
12806 status = pthread_create( &t, pthread_attr_default, task, NULL );
12807 if( status ) return errno;
12809 /* give thread a chance to complete */
12810 /* it should remain joinable and hence detachable */
12813 status = pthread_detach( &t );
12814 if( status ) return errno;
12817 #ifdef HAVE_LINUX_THREADS
12818 pthread_kill_other_threads_np();
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12827 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12832 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12836 cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839 /* pthread test headers */
12840 #include <pthread.h>
12841 #if HAVE_PTHREADS < 7
12845 #define NULL (void*)0
12848 static void *task(p)
12851 return (void *) (p == NULL);
12855 int main(argc, argv)
12860 /* pthread test function */
12861 #ifndef PTHREAD_CREATE_DETACHED
12862 #define PTHREAD_CREATE_DETACHED 1
12866 int detach = PTHREAD_CREATE_DETACHED;
12868 #if HAVE_PTHREADS > 4
12869 /* Final pthreads */
12870 pthread_attr_t attr;
12872 status = pthread_attr_init(&attr);
12873 if( status ) return status;
12875 #if HAVE_PTHREADS < 7
12876 status = pthread_attr_setdetachstate(&attr, &detach);
12877 if( status < 0 ) status = errno;
12879 status = pthread_attr_setdetachstate(&attr, detach);
12881 if( status ) return status;
12882 status = pthread_create( &t, &attr, task, NULL );
12883 #if HAVE_PTHREADS < 7
12884 if( status < 0 ) status = errno;
12886 if( status ) return status;
12888 /* Draft 4 pthreads */
12889 status = pthread_create( &t, pthread_attr_default, task, NULL );
12890 if( status ) return errno;
12892 /* give thread a chance to complete */
12893 /* it should remain joinable and hence detachable */
12896 status = pthread_detach( &t );
12897 if( status ) return errno;
12900 #ifdef HAVE_LINUX_THREADS
12901 pthread_kill_other_threads_np();
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12911 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12916 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12927 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12929 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12930 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12931 ol_link_threads=posix
12935 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12936 if test "$ol_link_threads" = no ; then
12937 # try -lpthread -lmach -lexc
12938 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12939 echo "configure:12940: checking for pthread link with -lpthread -lmach -lexc" >&5
12940 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12946 LIBS="-lpthread -lmach -lexc $LIBS"
12948 if test "$cross_compiling" = yes; then
12949 cat > conftest.$ac_ext <<EOF
12950 #line 12951 "configure"
12951 #include "confdefs.h"
12952 /* pthread test headers */
12953 #include <pthread.h>
12954 #if HAVE_PTHREADS < 7
12958 #define NULL (void*)0
12961 static void *task(p)
12964 return (void *) (p == NULL);
12969 /* pthread test function */
12970 #ifndef PTHREAD_CREATE_DETACHED
12971 #define PTHREAD_CREATE_DETACHED 1
12975 int detach = PTHREAD_CREATE_DETACHED;
12977 #if HAVE_PTHREADS > 4
12978 /* Final pthreads */
12979 pthread_attr_t attr;
12981 status = pthread_attr_init(&attr);
12982 if( status ) return status;
12984 #if HAVE_PTHREADS < 7
12985 status = pthread_attr_setdetachstate(&attr, &detach);
12986 if( status < 0 ) status = errno;
12988 status = pthread_attr_setdetachstate(&attr, detach);
12990 if( status ) return status;
12991 status = pthread_create( &t, &attr, task, NULL );
12992 #if HAVE_PTHREADS < 7
12993 if( status < 0 ) status = errno;
12995 if( status ) return status;
12997 /* Draft 4 pthreads */
12998 status = pthread_create( &t, pthread_attr_default, task, NULL );
12999 if( status ) return errno;
13001 /* give thread a chance to complete */
13002 /* it should remain joinable and hence detachable */
13005 status = pthread_detach( &t );
13006 if( status ) return errno;
13009 #ifdef HAVE_LINUX_THREADS
13010 pthread_kill_other_threads_np();
13017 if { (eval echo configure:13018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13019 ol_cv_pthread_lpthread_lmach_lexc=yes
13021 echo "configure: failed program was:" >&5
13022 cat conftest.$ac_ext >&5
13024 ol_cv_pthread_lpthread_lmach_lexc=no
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13031 /* pthread test headers */
13032 #include <pthread.h>
13033 #if HAVE_PTHREADS < 7
13037 #define NULL (void*)0
13040 static void *task(p)
13043 return (void *) (p == NULL);
13047 int main(argc, argv)
13052 /* pthread test function */
13053 #ifndef PTHREAD_CREATE_DETACHED
13054 #define PTHREAD_CREATE_DETACHED 1
13058 int detach = PTHREAD_CREATE_DETACHED;
13060 #if HAVE_PTHREADS > 4
13061 /* Final pthreads */
13062 pthread_attr_t attr;
13064 status = pthread_attr_init(&attr);
13065 if( status ) return status;
13067 #if HAVE_PTHREADS < 7
13068 status = pthread_attr_setdetachstate(&attr, &detach);
13069 if( status < 0 ) status = errno;
13071 status = pthread_attr_setdetachstate(&attr, detach);
13073 if( status ) return status;
13074 status = pthread_create( &t, &attr, task, NULL );
13075 #if HAVE_PTHREADS < 7
13076 if( status < 0 ) status = errno;
13078 if( status ) return status;
13080 /* Draft 4 pthreads */
13081 status = pthread_create( &t, pthread_attr_default, task, NULL );
13082 if( status ) return errno;
13084 /* give thread a chance to complete */
13085 /* it should remain joinable and hence detachable */
13088 status = pthread_detach( &t );
13089 if( status ) return errno;
13092 #ifdef HAVE_LINUX_THREADS
13093 pthread_kill_other_threads_np();
13101 if { (eval echo configure:13102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13103 ol_cv_pthread_lpthread_lmach_lexc=yes
13105 echo "configure: failed program was:" >&5
13106 cat conftest.$ac_ext >&5
13108 ol_cv_pthread_lpthread_lmach_lexc=no
13119 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13121 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13122 ol_link_pthreads="-lpthread -lmach -lexc"
13123 ol_link_threads=posix
13128 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13129 if test "$ol_link_threads" = no ; then
13130 # try -lpthread -Wl,-woff,85
13131 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13132 echo "configure:13133: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13133 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13134 echo $ac_n "(cached) $ac_c" 1>&6
13139 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13141 if test "$cross_compiling" = yes; then
13142 cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 /* pthread test headers */
13146 #include <pthread.h>
13147 #if HAVE_PTHREADS < 7
13151 #define NULL (void*)0
13154 static void *task(p)
13157 return (void *) (p == NULL);
13162 /* pthread test function */
13163 #ifndef PTHREAD_CREATE_DETACHED
13164 #define PTHREAD_CREATE_DETACHED 1
13168 int detach = PTHREAD_CREATE_DETACHED;
13170 #if HAVE_PTHREADS > 4
13171 /* Final pthreads */
13172 pthread_attr_t attr;
13174 status = pthread_attr_init(&attr);
13175 if( status ) return status;
13177 #if HAVE_PTHREADS < 7
13178 status = pthread_attr_setdetachstate(&attr, &detach);
13179 if( status < 0 ) status = errno;
13181 status = pthread_attr_setdetachstate(&attr, detach);
13183 if( status ) return status;
13184 status = pthread_create( &t, &attr, task, NULL );
13185 #if HAVE_PTHREADS < 7
13186 if( status < 0 ) status = errno;
13188 if( status ) return status;
13190 /* Draft 4 pthreads */
13191 status = pthread_create( &t, pthread_attr_default, task, NULL );
13192 if( status ) return errno;
13194 /* give thread a chance to complete */
13195 /* it should remain joinable and hence detachable */
13198 status = pthread_detach( &t );
13199 if( status ) return errno;
13202 #ifdef HAVE_LINUX_THREADS
13203 pthread_kill_other_threads_np();
13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13212 ol_cv_pthread_lib_lpthread_woff=yes
13214 echo "configure: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13217 ol_cv_pthread_lib_lpthread_woff=no
13221 cat > conftest.$ac_ext <<EOF
13222 #line 13223 "configure"
13223 #include "confdefs.h"
13224 /* pthread test headers */
13225 #include <pthread.h>
13226 #if HAVE_PTHREADS < 7
13230 #define NULL (void*)0
13233 static void *task(p)
13236 return (void *) (p == NULL);
13240 int main(argc, argv)
13245 /* pthread test function */
13246 #ifndef PTHREAD_CREATE_DETACHED
13247 #define PTHREAD_CREATE_DETACHED 1
13251 int detach = PTHREAD_CREATE_DETACHED;
13253 #if HAVE_PTHREADS > 4
13254 /* Final pthreads */
13255 pthread_attr_t attr;
13257 status = pthread_attr_init(&attr);
13258 if( status ) return status;
13260 #if HAVE_PTHREADS < 7
13261 status = pthread_attr_setdetachstate(&attr, &detach);
13262 if( status < 0 ) status = errno;
13264 status = pthread_attr_setdetachstate(&attr, detach);
13266 if( status ) return status;
13267 status = pthread_create( &t, &attr, task, NULL );
13268 #if HAVE_PTHREADS < 7
13269 if( status < 0 ) status = errno;
13271 if( status ) return status;
13273 /* Draft 4 pthreads */
13274 status = pthread_create( &t, pthread_attr_default, task, NULL );
13275 if( status ) return errno;
13277 /* give thread a chance to complete */
13278 /* it should remain joinable and hence detachable */
13281 status = pthread_detach( &t );
13282 if( status ) return errno;
13285 #ifdef HAVE_LINUX_THREADS
13286 pthread_kill_other_threads_np();
13294 if { (eval echo configure:13295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13296 ol_cv_pthread_lib_lpthread_woff=yes
13298 echo "configure: failed program was:" >&5
13299 cat conftest.$ac_ext >&5
13301 ol_cv_pthread_lib_lpthread_woff=no
13312 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13314 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13315 ol_link_pthreads="-lpthread -Wl,-woff,85"
13316 ol_link_threads=posix
13321 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13322 if test "$ol_link_threads" = no ; then
13324 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13325 echo "configure:13326: checking for pthread link with -lpthread" >&5
13326 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13327 echo $ac_n "(cached) $ac_c" 1>&6
13332 LIBS="-lpthread $LIBS"
13334 if test "$cross_compiling" = yes; then
13335 cat > conftest.$ac_ext <<EOF
13336 #line 13337 "configure"
13337 #include "confdefs.h"
13338 /* pthread test headers */
13339 #include <pthread.h>
13340 #if HAVE_PTHREADS < 7
13344 #define NULL (void*)0
13347 static void *task(p)
13350 return (void *) (p == NULL);
13355 /* pthread test function */
13356 #ifndef PTHREAD_CREATE_DETACHED
13357 #define PTHREAD_CREATE_DETACHED 1
13361 int detach = PTHREAD_CREATE_DETACHED;
13363 #if HAVE_PTHREADS > 4
13364 /* Final pthreads */
13365 pthread_attr_t attr;
13367 status = pthread_attr_init(&attr);
13368 if( status ) return status;
13370 #if HAVE_PTHREADS < 7
13371 status = pthread_attr_setdetachstate(&attr, &detach);
13372 if( status < 0 ) status = errno;
13374 status = pthread_attr_setdetachstate(&attr, detach);
13376 if( status ) return status;
13377 status = pthread_create( &t, &attr, task, NULL );
13378 #if HAVE_PTHREADS < 7
13379 if( status < 0 ) status = errno;
13381 if( status ) return status;
13383 /* Draft 4 pthreads */
13384 status = pthread_create( &t, pthread_attr_default, task, NULL );
13385 if( status ) return errno;
13387 /* give thread a chance to complete */
13388 /* it should remain joinable and hence detachable */
13391 status = pthread_detach( &t );
13392 if( status ) return errno;
13395 #ifdef HAVE_LINUX_THREADS
13396 pthread_kill_other_threads_np();
13403 if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13405 ol_cv_pthread_lpthread=yes
13407 echo "configure: failed program was:" >&5
13408 cat conftest.$ac_ext >&5
13410 ol_cv_pthread_lpthread=no
13414 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13417 /* pthread test headers */
13418 #include <pthread.h>
13419 #if HAVE_PTHREADS < 7
13423 #define NULL (void*)0
13426 static void *task(p)
13429 return (void *) (p == NULL);
13433 int main(argc, argv)
13438 /* pthread test function */
13439 #ifndef PTHREAD_CREATE_DETACHED
13440 #define PTHREAD_CREATE_DETACHED 1
13444 int detach = PTHREAD_CREATE_DETACHED;
13446 #if HAVE_PTHREADS > 4
13447 /* Final pthreads */
13448 pthread_attr_t attr;
13450 status = pthread_attr_init(&attr);
13451 if( status ) return status;
13453 #if HAVE_PTHREADS < 7
13454 status = pthread_attr_setdetachstate(&attr, &detach);
13455 if( status < 0 ) status = errno;
13457 status = pthread_attr_setdetachstate(&attr, detach);
13459 if( status ) return status;
13460 status = pthread_create( &t, &attr, task, NULL );
13461 #if HAVE_PTHREADS < 7
13462 if( status < 0 ) status = errno;
13464 if( status ) return status;
13466 /* Draft 4 pthreads */
13467 status = pthread_create( &t, pthread_attr_default, task, NULL );
13468 if( status ) return errno;
13470 /* give thread a chance to complete */
13471 /* it should remain joinable and hence detachable */
13474 status = pthread_detach( &t );
13475 if( status ) return errno;
13478 #ifdef HAVE_LINUX_THREADS
13479 pthread_kill_other_threads_np();
13487 if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13489 ol_cv_pthread_lpthread=yes
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13494 ol_cv_pthread_lpthread=no
13505 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13507 if test $ol_cv_pthread_lpthread = yes ; then
13508 ol_link_pthreads="-lpthread"
13509 ol_link_threads=posix
13513 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13514 if test "$ol_link_threads" = no ; then
13516 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13517 echo "configure:13518: checking for pthread link with -lc_r" >&5
13518 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13519 echo $ac_n "(cached) $ac_c" 1>&6
13526 if test "$cross_compiling" = yes; then
13527 cat > conftest.$ac_ext <<EOF
13528 #line 13529 "configure"
13529 #include "confdefs.h"
13530 /* pthread test headers */
13531 #include <pthread.h>
13532 #if HAVE_PTHREADS < 7
13536 #define NULL (void*)0
13539 static void *task(p)
13542 return (void *) (p == NULL);
13547 /* pthread test function */
13548 #ifndef PTHREAD_CREATE_DETACHED
13549 #define PTHREAD_CREATE_DETACHED 1
13553 int detach = PTHREAD_CREATE_DETACHED;
13555 #if HAVE_PTHREADS > 4
13556 /* Final pthreads */
13557 pthread_attr_t attr;
13559 status = pthread_attr_init(&attr);
13560 if( status ) return status;
13562 #if HAVE_PTHREADS < 7
13563 status = pthread_attr_setdetachstate(&attr, &detach);
13564 if( status < 0 ) status = errno;
13566 status = pthread_attr_setdetachstate(&attr, detach);
13568 if( status ) return status;
13569 status = pthread_create( &t, &attr, task, NULL );
13570 #if HAVE_PTHREADS < 7
13571 if( status < 0 ) status = errno;
13573 if( status ) return status;
13575 /* Draft 4 pthreads */
13576 status = pthread_create( &t, pthread_attr_default, task, NULL );
13577 if( status ) return errno;
13579 /* give thread a chance to complete */
13580 /* it should remain joinable and hence detachable */
13583 status = pthread_detach( &t );
13584 if( status ) return errno;
13587 #ifdef HAVE_LINUX_THREADS
13588 pthread_kill_other_threads_np();
13595 if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13597 ol_cv_pthread_lc_r=yes
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13602 ol_cv_pthread_lc_r=no
13606 cat > conftest.$ac_ext <<EOF
13607 #line 13608 "configure"
13608 #include "confdefs.h"
13609 /* pthread test headers */
13610 #include <pthread.h>
13611 #if HAVE_PTHREADS < 7
13615 #define NULL (void*)0
13618 static void *task(p)
13621 return (void *) (p == NULL);
13625 int main(argc, argv)
13630 /* pthread test function */
13631 #ifndef PTHREAD_CREATE_DETACHED
13632 #define PTHREAD_CREATE_DETACHED 1
13636 int detach = PTHREAD_CREATE_DETACHED;
13638 #if HAVE_PTHREADS > 4
13639 /* Final pthreads */
13640 pthread_attr_t attr;
13642 status = pthread_attr_init(&attr);
13643 if( status ) return status;
13645 #if HAVE_PTHREADS < 7
13646 status = pthread_attr_setdetachstate(&attr, &detach);
13647 if( status < 0 ) status = errno;
13649 status = pthread_attr_setdetachstate(&attr, detach);
13651 if( status ) return status;
13652 status = pthread_create( &t, &attr, task, NULL );
13653 #if HAVE_PTHREADS < 7
13654 if( status < 0 ) status = errno;
13656 if( status ) return status;
13658 /* Draft 4 pthreads */
13659 status = pthread_create( &t, pthread_attr_default, task, NULL );
13660 if( status ) return errno;
13662 /* give thread a chance to complete */
13663 /* it should remain joinable and hence detachable */
13666 status = pthread_detach( &t );
13667 if( status ) return errno;
13670 #ifdef HAVE_LINUX_THREADS
13671 pthread_kill_other_threads_np();
13679 if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13681 ol_cv_pthread_lc_r=yes
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13686 ol_cv_pthread_lc_r=no
13697 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13699 if test $ol_cv_pthread_lc_r = yes ; then
13700 ol_link_pthreads="-lc_r"
13701 ol_link_threads=posix
13706 # Pthread try link: -threads (ol_cv_pthread_threads)
13707 if test "$ol_link_threads" = no ; then
13709 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13710 echo "configure:13711: checking for pthread link with -threads" >&5
13711 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13712 echo $ac_n "(cached) $ac_c" 1>&6
13717 LIBS="-threads $LIBS"
13719 if test "$cross_compiling" = yes; then
13720 cat > conftest.$ac_ext <<EOF
13721 #line 13722 "configure"
13722 #include "confdefs.h"
13723 /* pthread test headers */
13724 #include <pthread.h>
13725 #if HAVE_PTHREADS < 7
13729 #define NULL (void*)0
13732 static void *task(p)
13735 return (void *) (p == NULL);
13740 /* pthread test function */
13741 #ifndef PTHREAD_CREATE_DETACHED
13742 #define PTHREAD_CREATE_DETACHED 1
13746 int detach = PTHREAD_CREATE_DETACHED;
13748 #if HAVE_PTHREADS > 4
13749 /* Final pthreads */
13750 pthread_attr_t attr;
13752 status = pthread_attr_init(&attr);
13753 if( status ) return status;
13755 #if HAVE_PTHREADS < 7
13756 status = pthread_attr_setdetachstate(&attr, &detach);
13757 if( status < 0 ) status = errno;
13759 status = pthread_attr_setdetachstate(&attr, detach);
13761 if( status ) return status;
13762 status = pthread_create( &t, &attr, task, NULL );
13763 #if HAVE_PTHREADS < 7
13764 if( status < 0 ) status = errno;
13766 if( status ) return status;
13768 /* Draft 4 pthreads */
13769 status = pthread_create( &t, pthread_attr_default, task, NULL );
13770 if( status ) return errno;
13772 /* give thread a chance to complete */
13773 /* it should remain joinable and hence detachable */
13776 status = pthread_detach( &t );
13777 if( status ) return errno;
13780 #ifdef HAVE_LINUX_THREADS
13781 pthread_kill_other_threads_np();
13788 if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13790 ol_cv_pthread_threads=yes
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13795 ol_cv_pthread_threads=no
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* pthread test headers */
13803 #include <pthread.h>
13804 #if HAVE_PTHREADS < 7
13808 #define NULL (void*)0
13811 static void *task(p)
13814 return (void *) (p == NULL);
13818 int main(argc, argv)
13823 /* pthread test function */
13824 #ifndef PTHREAD_CREATE_DETACHED
13825 #define PTHREAD_CREATE_DETACHED 1
13829 int detach = PTHREAD_CREATE_DETACHED;
13831 #if HAVE_PTHREADS > 4
13832 /* Final pthreads */
13833 pthread_attr_t attr;
13835 status = pthread_attr_init(&attr);
13836 if( status ) return status;
13838 #if HAVE_PTHREADS < 7
13839 status = pthread_attr_setdetachstate(&attr, &detach);
13840 if( status < 0 ) status = errno;
13842 status = pthread_attr_setdetachstate(&attr, detach);
13844 if( status ) return status;
13845 status = pthread_create( &t, &attr, task, NULL );
13846 #if HAVE_PTHREADS < 7
13847 if( status < 0 ) status = errno;
13849 if( status ) return status;
13851 /* Draft 4 pthreads */
13852 status = pthread_create( &t, pthread_attr_default, task, NULL );
13853 if( status ) return errno;
13855 /* give thread a chance to complete */
13856 /* it should remain joinable and hence detachable */
13859 status = pthread_detach( &t );
13860 if( status ) return errno;
13863 #ifdef HAVE_LINUX_THREADS
13864 pthread_kill_other_threads_np();
13872 if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13874 ol_cv_pthread_threads=yes
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13879 ol_cv_pthread_threads=no
13890 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13892 if test $ol_cv_pthread_threads = yes ; then
13893 ol_link_pthreads="-threads"
13894 ol_link_threads=posix
13899 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13900 if test "$ol_link_threads" = no ; then
13901 # try -lpthreads -lmach -lexc -lc_r
13902 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13903 echo "configure:13904: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13904 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13905 echo $ac_n "(cached) $ac_c" 1>&6
13910 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13912 if test "$cross_compiling" = yes; then
13913 cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13916 /* pthread test headers */
13917 #include <pthread.h>
13918 #if HAVE_PTHREADS < 7
13922 #define NULL (void*)0
13925 static void *task(p)
13928 return (void *) (p == NULL);
13933 /* pthread test function */
13934 #ifndef PTHREAD_CREATE_DETACHED
13935 #define PTHREAD_CREATE_DETACHED 1
13939 int detach = PTHREAD_CREATE_DETACHED;
13941 #if HAVE_PTHREADS > 4
13942 /* Final pthreads */
13943 pthread_attr_t attr;
13945 status = pthread_attr_init(&attr);
13946 if( status ) return status;
13948 #if HAVE_PTHREADS < 7
13949 status = pthread_attr_setdetachstate(&attr, &detach);
13950 if( status < 0 ) status = errno;
13952 status = pthread_attr_setdetachstate(&attr, detach);
13954 if( status ) return status;
13955 status = pthread_create( &t, &attr, task, NULL );
13956 #if HAVE_PTHREADS < 7
13957 if( status < 0 ) status = errno;
13959 if( status ) return status;
13961 /* Draft 4 pthreads */
13962 status = pthread_create( &t, pthread_attr_default, task, NULL );
13963 if( status ) return errno;
13965 /* give thread a chance to complete */
13966 /* it should remain joinable and hence detachable */
13969 status = pthread_detach( &t );
13970 if( status ) return errno;
13973 #ifdef HAVE_LINUX_THREADS
13974 pthread_kill_other_threads_np();
13981 if { (eval echo configure:13982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13983 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13985 echo "configure: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13988 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13992 cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 /* pthread test headers */
13996 #include <pthread.h>
13997 #if HAVE_PTHREADS < 7
14001 #define NULL (void*)0
14004 static void *task(p)
14007 return (void *) (p == NULL);
14011 int main(argc, argv)
14016 /* pthread test function */
14017 #ifndef PTHREAD_CREATE_DETACHED
14018 #define PTHREAD_CREATE_DETACHED 1
14022 int detach = PTHREAD_CREATE_DETACHED;
14024 #if HAVE_PTHREADS > 4
14025 /* Final pthreads */
14026 pthread_attr_t attr;
14028 status = pthread_attr_init(&attr);
14029 if( status ) return status;
14031 #if HAVE_PTHREADS < 7
14032 status = pthread_attr_setdetachstate(&attr, &detach);
14033 if( status < 0 ) status = errno;
14035 status = pthread_attr_setdetachstate(&attr, detach);
14037 if( status ) return status;
14038 status = pthread_create( &t, &attr, task, NULL );
14039 #if HAVE_PTHREADS < 7
14040 if( status < 0 ) status = errno;
14042 if( status ) return status;
14044 /* Draft 4 pthreads */
14045 status = pthread_create( &t, pthread_attr_default, task, NULL );
14046 if( status ) return errno;
14048 /* give thread a chance to complete */
14049 /* it should remain joinable and hence detachable */
14052 status = pthread_detach( &t );
14053 if( status ) return errno;
14056 #ifdef HAVE_LINUX_THREADS
14057 pthread_kill_other_threads_np();
14065 if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14067 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14072 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14083 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14085 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14086 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14087 ol_link_threads=posix
14091 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14092 if test "$ol_link_threads" = no ; then
14093 # try -lpthreads -lmach -lexc
14094 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14095 echo "configure:14096: checking for pthread link with -lpthreads -lmach -lexc" >&5
14096 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14097 echo $ac_n "(cached) $ac_c" 1>&6
14102 LIBS="-lpthreads -lmach -lexc $LIBS"
14104 if test "$cross_compiling" = yes; then
14105 cat > conftest.$ac_ext <<EOF
14106 #line 14107 "configure"
14107 #include "confdefs.h"
14108 /* pthread test headers */
14109 #include <pthread.h>
14110 #if HAVE_PTHREADS < 7
14114 #define NULL (void*)0
14117 static void *task(p)
14120 return (void *) (p == NULL);
14125 /* pthread test function */
14126 #ifndef PTHREAD_CREATE_DETACHED
14127 #define PTHREAD_CREATE_DETACHED 1
14131 int detach = PTHREAD_CREATE_DETACHED;
14133 #if HAVE_PTHREADS > 4
14134 /* Final pthreads */
14135 pthread_attr_t attr;
14137 status = pthread_attr_init(&attr);
14138 if( status ) return status;
14140 #if HAVE_PTHREADS < 7
14141 status = pthread_attr_setdetachstate(&attr, &detach);
14142 if( status < 0 ) status = errno;
14144 status = pthread_attr_setdetachstate(&attr, detach);
14146 if( status ) return status;
14147 status = pthread_create( &t, &attr, task, NULL );
14148 #if HAVE_PTHREADS < 7
14149 if( status < 0 ) status = errno;
14151 if( status ) return status;
14153 /* Draft 4 pthreads */
14154 status = pthread_create( &t, pthread_attr_default, task, NULL );
14155 if( status ) return errno;
14157 /* give thread a chance to complete */
14158 /* it should remain joinable and hence detachable */
14161 status = pthread_detach( &t );
14162 if( status ) return errno;
14165 #ifdef HAVE_LINUX_THREADS
14166 pthread_kill_other_threads_np();
14173 if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14175 ol_cv_pthread_lpthreads_lmach_lexc=yes
14177 echo "configure: failed program was:" >&5
14178 cat conftest.$ac_ext >&5
14180 ol_cv_pthread_lpthreads_lmach_lexc=no
14184 cat > conftest.$ac_ext <<EOF
14185 #line 14186 "configure"
14186 #include "confdefs.h"
14187 /* pthread test headers */
14188 #include <pthread.h>
14189 #if HAVE_PTHREADS < 7
14193 #define NULL (void*)0
14196 static void *task(p)
14199 return (void *) (p == NULL);
14203 int main(argc, argv)
14208 /* pthread test function */
14209 #ifndef PTHREAD_CREATE_DETACHED
14210 #define PTHREAD_CREATE_DETACHED 1
14214 int detach = PTHREAD_CREATE_DETACHED;
14216 #if HAVE_PTHREADS > 4
14217 /* Final pthreads */
14218 pthread_attr_t attr;
14220 status = pthread_attr_init(&attr);
14221 if( status ) return status;
14223 #if HAVE_PTHREADS < 7
14224 status = pthread_attr_setdetachstate(&attr, &detach);
14225 if( status < 0 ) status = errno;
14227 status = pthread_attr_setdetachstate(&attr, detach);
14229 if( status ) return status;
14230 status = pthread_create( &t, &attr, task, NULL );
14231 #if HAVE_PTHREADS < 7
14232 if( status < 0 ) status = errno;
14234 if( status ) return status;
14236 /* Draft 4 pthreads */
14237 status = pthread_create( &t, pthread_attr_default, task, NULL );
14238 if( status ) return errno;
14240 /* give thread a chance to complete */
14241 /* it should remain joinable and hence detachable */
14244 status = pthread_detach( &t );
14245 if( status ) return errno;
14248 #ifdef HAVE_LINUX_THREADS
14249 pthread_kill_other_threads_np();
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14259 ol_cv_pthread_lpthreads_lmach_lexc=yes
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14264 ol_cv_pthread_lpthreads_lmach_lexc=no
14275 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14277 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14278 ol_link_pthreads="-lpthreads -lmach -lexc"
14279 ol_link_threads=posix
14283 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14284 if test "$ol_link_threads" = no ; then
14285 # try -lpthreads -lexc
14286 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14287 echo "configure:14288: checking for pthread link with -lpthreads -lexc" >&5
14288 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
14294 LIBS="-lpthreads -lexc $LIBS"
14296 if test "$cross_compiling" = yes; then
14297 cat > conftest.$ac_ext <<EOF
14298 #line 14299 "configure"
14299 #include "confdefs.h"
14300 /* pthread test headers */
14301 #include <pthread.h>
14302 #if HAVE_PTHREADS < 7
14306 #define NULL (void*)0
14309 static void *task(p)
14312 return (void *) (p == NULL);
14317 /* pthread test function */
14318 #ifndef PTHREAD_CREATE_DETACHED
14319 #define PTHREAD_CREATE_DETACHED 1
14323 int detach = PTHREAD_CREATE_DETACHED;
14325 #if HAVE_PTHREADS > 4
14326 /* Final pthreads */
14327 pthread_attr_t attr;
14329 status = pthread_attr_init(&attr);
14330 if( status ) return status;
14332 #if HAVE_PTHREADS < 7
14333 status = pthread_attr_setdetachstate(&attr, &detach);
14334 if( status < 0 ) status = errno;
14336 status = pthread_attr_setdetachstate(&attr, detach);
14338 if( status ) return status;
14339 status = pthread_create( &t, &attr, task, NULL );
14340 #if HAVE_PTHREADS < 7
14341 if( status < 0 ) status = errno;
14343 if( status ) return status;
14345 /* Draft 4 pthreads */
14346 status = pthread_create( &t, pthread_attr_default, task, NULL );
14347 if( status ) return errno;
14349 /* give thread a chance to complete */
14350 /* it should remain joinable and hence detachable */
14353 status = pthread_detach( &t );
14354 if( status ) return errno;
14357 #ifdef HAVE_LINUX_THREADS
14358 pthread_kill_other_threads_np();
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14367 ol_cv_pthread_lpthreads_lexc=yes
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14372 ol_cv_pthread_lpthreads_lexc=no
14376 cat > conftest.$ac_ext <<EOF
14377 #line 14378 "configure"
14378 #include "confdefs.h"
14379 /* pthread test headers */
14380 #include <pthread.h>
14381 #if HAVE_PTHREADS < 7
14385 #define NULL (void*)0
14388 static void *task(p)
14391 return (void *) (p == NULL);
14395 int main(argc, argv)
14400 /* pthread test function */
14401 #ifndef PTHREAD_CREATE_DETACHED
14402 #define PTHREAD_CREATE_DETACHED 1
14406 int detach = PTHREAD_CREATE_DETACHED;
14408 #if HAVE_PTHREADS > 4
14409 /* Final pthreads */
14410 pthread_attr_t attr;
14412 status = pthread_attr_init(&attr);
14413 if( status ) return status;
14415 #if HAVE_PTHREADS < 7
14416 status = pthread_attr_setdetachstate(&attr, &detach);
14417 if( status < 0 ) status = errno;
14419 status = pthread_attr_setdetachstate(&attr, detach);
14421 if( status ) return status;
14422 status = pthread_create( &t, &attr, task, NULL );
14423 #if HAVE_PTHREADS < 7
14424 if( status < 0 ) status = errno;
14426 if( status ) return status;
14428 /* Draft 4 pthreads */
14429 status = pthread_create( &t, pthread_attr_default, task, NULL );
14430 if( status ) return errno;
14432 /* give thread a chance to complete */
14433 /* it should remain joinable and hence detachable */
14436 status = pthread_detach( &t );
14437 if( status ) return errno;
14440 #ifdef HAVE_LINUX_THREADS
14441 pthread_kill_other_threads_np();
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14451 ol_cv_pthread_lpthreads_lexc=yes
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14456 ol_cv_pthread_lpthreads_lexc=no
14467 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14469 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14470 ol_link_pthreads="-lpthreads -lexc"
14471 ol_link_threads=posix
14476 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14477 if test "$ol_link_threads" = no ; then
14479 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14480 echo "configure:14481: checking for pthread link with -lpthreads" >&5
14481 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14482 echo $ac_n "(cached) $ac_c" 1>&6
14487 LIBS="-lpthreads $LIBS"
14489 if test "$cross_compiling" = yes; then
14490 cat > conftest.$ac_ext <<EOF
14491 #line 14492 "configure"
14492 #include "confdefs.h"
14493 /* pthread test headers */
14494 #include <pthread.h>
14495 #if HAVE_PTHREADS < 7
14499 #define NULL (void*)0
14502 static void *task(p)
14505 return (void *) (p == NULL);
14510 /* pthread test function */
14511 #ifndef PTHREAD_CREATE_DETACHED
14512 #define PTHREAD_CREATE_DETACHED 1
14516 int detach = PTHREAD_CREATE_DETACHED;
14518 #if HAVE_PTHREADS > 4
14519 /* Final pthreads */
14520 pthread_attr_t attr;
14522 status = pthread_attr_init(&attr);
14523 if( status ) return status;
14525 #if HAVE_PTHREADS < 7
14526 status = pthread_attr_setdetachstate(&attr, &detach);
14527 if( status < 0 ) status = errno;
14529 status = pthread_attr_setdetachstate(&attr, detach);
14531 if( status ) return status;
14532 status = pthread_create( &t, &attr, task, NULL );
14533 #if HAVE_PTHREADS < 7
14534 if( status < 0 ) status = errno;
14536 if( status ) return status;
14538 /* Draft 4 pthreads */
14539 status = pthread_create( &t, pthread_attr_default, task, NULL );
14540 if( status ) return errno;
14542 /* give thread a chance to complete */
14543 /* it should remain joinable and hence detachable */
14546 status = pthread_detach( &t );
14547 if( status ) return errno;
14550 #ifdef HAVE_LINUX_THREADS
14551 pthread_kill_other_threads_np();
14558 if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14560 ol_cv_pthread_lib_lpthreads=yes
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14565 ol_cv_pthread_lib_lpthreads=no
14569 cat > conftest.$ac_ext <<EOF
14570 #line 14571 "configure"
14571 #include "confdefs.h"
14572 /* pthread test headers */
14573 #include <pthread.h>
14574 #if HAVE_PTHREADS < 7
14578 #define NULL (void*)0
14581 static void *task(p)
14584 return (void *) (p == NULL);
14588 int main(argc, argv)
14593 /* pthread test function */
14594 #ifndef PTHREAD_CREATE_DETACHED
14595 #define PTHREAD_CREATE_DETACHED 1
14599 int detach = PTHREAD_CREATE_DETACHED;
14601 #if HAVE_PTHREADS > 4
14602 /* Final pthreads */
14603 pthread_attr_t attr;
14605 status = pthread_attr_init(&attr);
14606 if( status ) return status;
14608 #if HAVE_PTHREADS < 7
14609 status = pthread_attr_setdetachstate(&attr, &detach);
14610 if( status < 0 ) status = errno;
14612 status = pthread_attr_setdetachstate(&attr, detach);
14614 if( status ) return status;
14615 status = pthread_create( &t, &attr, task, NULL );
14616 #if HAVE_PTHREADS < 7
14617 if( status < 0 ) status = errno;
14619 if( status ) return status;
14621 /* Draft 4 pthreads */
14622 status = pthread_create( &t, pthread_attr_default, task, NULL );
14623 if( status ) return errno;
14625 /* give thread a chance to complete */
14626 /* it should remain joinable and hence detachable */
14629 status = pthread_detach( &t );
14630 if( status ) return errno;
14633 #ifdef HAVE_LINUX_THREADS
14634 pthread_kill_other_threads_np();
14642 if { (eval echo configure:14643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14644 ol_cv_pthread_lib_lpthreads=yes
14646 echo "configure: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14649 ol_cv_pthread_lib_lpthreads=no
14660 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14662 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14663 ol_link_pthreads="-lpthreads"
14664 ol_link_threads=posix
14669 if test $ol_link_threads != no ; then
14670 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14672 save_CPPFLAGS="$CPPFLAGS"
14674 LIBS="$LTHREAD_LIBS $LIBS"
14676 for ac_func in sched_yield pthread_yield thr_yield
14678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14679 echo "configure:14680: checking for $ac_func" >&5
14680 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14681 echo $ac_n "(cached) $ac_c" 1>&6
14683 cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14686 /* System header to define __stub macros and hopefully few prototypes,
14687 which can conflict with char $ac_func(); below. */
14688 #include <assert.h>
14689 /* Override any gcc2 internal prototype to avoid an error. */
14690 /* We use char because int might match the return type of a gcc2
14691 builtin and then its argument prototype would still apply. */
14697 /* The GNU C library defines this for functions which it implements
14698 to always fail with ENOSYS. Some functions are actually named
14699 something starting with __ and the normal name is an alias. */
14700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14708 if { (eval echo configure:14709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14710 eval "ac_cv_func_$ac_func=yes"
14712 echo "configure: failed program was:" >&5
14713 cat conftest.$ac_ext >&5
14715 eval "ac_cv_func_$ac_func=no"
14720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14721 echo "$ac_t""yes" 1>&6
14722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14723 cat >> confdefs.h <<EOF
14724 #define $ac_tr_func 1
14728 echo "$ac_t""no" 1>&6
14733 if test $ac_cv_func_sched_yield = no -a \
14734 $ac_cv_func_pthread_yield = no -a \
14735 $ac_cv_func_thr_yield = no ; then
14736 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14737 echo "configure:14738: checking for sched_yield in -lrt" >&5
14738 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14742 ac_save_LIBS="$LIBS"
14744 cat > conftest.$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14747 /* Override any gcc2 internal prototype to avoid an error. */
14748 /* We use char because int might match the return type of a gcc2
14749 builtin and then its argument prototype would still apply. */
14750 char sched_yield();
14756 if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14758 eval "ac_cv_lib_$ac_lib_var=yes"
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14763 eval "ac_cv_lib_$ac_lib_var=no"
14766 LIBS="$ac_save_LIBS"
14769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14770 echo "$ac_t""yes" 1>&6
14771 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14772 cat >> confdefs.h <<\EOF
14773 #define HAVE_SCHED_YIELD 1
14776 ac_cv_func_sched_yield=yes
14778 echo "$ac_t""no" 1>&6
14779 ac_cv_func_sched_yield=no
14783 if test $ac_cv_func_sched_yield = no -a \
14784 $ac_cv_func_pthread_yield = no -a \
14785 "$ac_cv_func_thr_yield" = no ; then
14786 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14789 for ac_func in pthread_kill pthread_rwlock_destroy
14791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14792 echo "configure:14793: checking for $ac_func" >&5
14793 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14794 echo $ac_n "(cached) $ac_c" 1>&6
14796 cat > conftest.$ac_ext <<EOF
14797 #line 14798 "configure"
14798 #include "confdefs.h"
14799 /* System header to define __stub macros and hopefully few prototypes,
14800 which can conflict with char $ac_func(); below. */
14801 #include <assert.h>
14802 /* Override any gcc2 internal prototype to avoid an error. */
14803 /* We use char because int might match the return type of a gcc2
14804 builtin and then its argument prototype would still apply. */
14810 /* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14821 if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14823 eval "ac_cv_func_$ac_func=yes"
14825 echo "configure: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14828 eval "ac_cv_func_$ac_func=no"
14833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14834 echo "$ac_t""yes" 1>&6
14835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14836 cat >> confdefs.h <<EOF
14837 #define $ac_tr_func 1
14841 echo "$ac_t""no" 1>&6
14846 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14847 echo "configure:14848: checking for pthread_detach with <pthread.h>" >&5
14848 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14849 echo $ac_n "(cached) $ac_c" 1>&6
14852 cat > conftest.$ac_ext <<EOF
14853 #line 14854 "configure"
14854 #include "confdefs.h"
14856 #include <pthread.h>
14858 #define NULL (void*)0
14862 pthread_detach(NULL);
14865 if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14867 ol_cv_func_pthread_detach=yes
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14872 ol_cv_func_pthread_detach=no
14878 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14880 if test $ol_cv_func_pthread_detach = no ; then
14881 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14884 cat >> confdefs.h <<\EOF
14885 #define HAVE_PTHREAD_DETACH 1
14890 pthread_setconcurrency \
14891 pthread_getconcurrency \
14892 thr_setconcurrency \
14893 thr_getconcurrency \
14896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14897 echo "configure:14898: checking for $ac_func" >&5
14898 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14899 echo $ac_n "(cached) $ac_c" 1>&6
14901 cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904 /* System header to define __stub macros and hopefully few prototypes,
14905 which can conflict with char $ac_func(); below. */
14906 #include <assert.h>
14907 /* Override any gcc2 internal prototype to avoid an error. */
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14915 /* The GNU C library defines this for functions which it implements
14916 to always fail with ENOSYS. Some functions are actually named
14917 something starting with __ and the normal name is an alias. */
14918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14926 if { (eval echo configure:14927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14928 eval "ac_cv_func_$ac_func=yes"
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14933 eval "ac_cv_func_$ac_func=no"
14938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14939 echo "$ac_t""yes" 1>&6
14940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14941 cat >> confdefs.h <<EOF
14942 #define $ac_tr_func 1
14946 echo "$ac_t""no" 1>&6
14952 for ac_func in pthread_kill_other_threads_np
14954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14955 echo "configure:14956: checking for $ac_func" >&5
14956 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14957 echo $ac_n "(cached) $ac_c" 1>&6
14959 cat > conftest.$ac_ext <<EOF
14960 #line 14961 "configure"
14961 #include "confdefs.h"
14962 /* System header to define __stub macros and hopefully few prototypes,
14963 which can conflict with char $ac_func(); below. */
14964 #include <assert.h>
14965 /* Override any gcc2 internal prototype to avoid an error. */
14966 /* We use char because int might match the return type of a gcc2
14967 builtin and then its argument prototype would still apply. */
14973 /* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14984 if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14986 eval "ac_cv_func_$ac_func=yes"
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14991 eval "ac_cv_func_$ac_func=no"
14996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14997 echo "$ac_t""yes" 1>&6
14998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14999 cat >> confdefs.h <<EOF
15000 #define $ac_tr_func 1
15004 echo "$ac_t""no" 1>&6
15008 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15009 echo "configure:15010: checking for LinuxThreads implementation" >&5
15010 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15011 echo $ac_n "(cached) $ac_c" 1>&6
15013 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15016 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15021 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15022 echo "configure:15023: checking for LinuxThreads consistency" >&5
15023 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15024 echo $ac_n "(cached) $ac_c" 1>&6
15027 if test $ol_cv_header_linux_threads = yes -a \
15028 $ol_cv_sys_linux_threads = yes; then
15029 ol_cv_linux_threads=yes
15030 elif test $ol_cv_header_linux_threads = no -a \
15031 $ol_cv_sys_linux_threads = no; then
15032 ol_cv_linux_threads=no
15034 ol_cv_linux_threads=error
15039 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15042 if test $ol_cv_linux_threads = error; then
15043 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15046 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15047 echo "configure:15048: checking if pthread_create() works" >&5
15048 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15049 echo $ac_n "(cached) $ac_c" 1>&6
15052 if test "$cross_compiling" = yes; then
15053 ol_cv_pthread_create_works=yes
15055 cat > conftest.$ac_ext <<EOF
15056 #line 15057 "configure"
15057 #include "confdefs.h"
15058 /* pthread test headers */
15059 #include <pthread.h>
15060 #if HAVE_PTHREADS < 7
15064 #define NULL (void*)0
15067 static void *task(p)
15070 return (void *) (p == NULL);
15074 int main(argc, argv)
15079 /* pthread test function */
15080 #ifndef PTHREAD_CREATE_DETACHED
15081 #define PTHREAD_CREATE_DETACHED 1
15085 int detach = PTHREAD_CREATE_DETACHED;
15087 #if HAVE_PTHREADS > 4
15088 /* Final pthreads */
15089 pthread_attr_t attr;
15091 status = pthread_attr_init(&attr);
15092 if( status ) return status;
15094 #if HAVE_PTHREADS < 7
15095 status = pthread_attr_setdetachstate(&attr, &detach);
15096 if( status < 0 ) status = errno;
15098 status = pthread_attr_setdetachstate(&attr, detach);
15100 if( status ) return status;
15101 status = pthread_create( &t, &attr, task, NULL );
15102 #if HAVE_PTHREADS < 7
15103 if( status < 0 ) status = errno;
15105 if( status ) return status;
15107 /* Draft 4 pthreads */
15108 status = pthread_create( &t, pthread_attr_default, task, NULL );
15109 if( status ) return errno;
15111 /* give thread a chance to complete */
15112 /* it should remain joinable and hence detachable */
15115 status = pthread_detach( &t );
15116 if( status ) return errno;
15119 #ifdef HAVE_LINUX_THREADS
15120 pthread_kill_other_threads_np();
15128 if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15130 ol_cv_pthread_create_works=yes
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15135 ol_cv_pthread_create_works=no
15142 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15144 if test $ol_cv_pthread_create_works = no ; then
15145 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15148 if test $ol_with_yielding_select = auto ; then
15149 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15150 echo "configure:15151: checking if select yields when using pthreads" >&5
15151 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15152 echo $ac_n "(cached) $ac_c" 1>&6
15155 if test "$cross_compiling" = yes; then
15156 ol_cv_pthread_select_yields=cross
15158 cat > conftest.$ac_ext <<EOF
15159 #line 15160 "configure"
15160 #include "confdefs.h"
15162 #include <sys/types.h>
15163 #include <sys/time.h>
15164 #include <unistd.h>
15165 #include <pthread.h>
15167 #define NULL (void*) 0
15170 static int fildes[2];
15172 static void *task(p)
15184 FD_SET(fildes[0], &rfds);
15186 /* we're not interested in any fds */
15187 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15194 exit(0); /* if we exit here, the select blocked the whole process */
15197 int main(argc, argv)
15203 /* create a pipe to select */
15204 if(pipe(&fildes[0])) {
15209 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15210 (void) pthread_setconcurrency(2);
15212 #ifdef HAVE_THR_SETCONCURRENCY
15213 /* Set Solaris LWP concurrency to 2 */
15214 thr_setconcurrency(2);
15218 #if HAVE_PTHREADS < 6
15219 pthread_create(&t, pthread_attr_default, task, NULL);
15221 pthread_create(&t, NULL, task, NULL);
15224 /* make sure task runs first */
15227 #elif defined( HAVE_SCHED_YIELD )
15229 #elif defined( HAVE_PTHREAD_YIELD )
15236 if { (eval echo configure:15237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15238 ol_cv_pthread_select_yields=no
15240 echo "configure: failed program was:" >&5
15241 cat conftest.$ac_ext >&5
15243 ol_cv_pthread_select_yields=yes
15250 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15252 if test $ol_cv_pthread_select_yields = cross ; then
15253 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15256 if test $ol_cv_pthread_select_yields = yes ; then
15257 ol_with_yielding_select=yes
15261 CPPFLAGS="$save_CPPFLAGS"
15264 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15268 if test $ol_with_threads = posix ; then
15269 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15273 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15274 -o $ol_with_threads = mach ; then
15276 for ac_hdr in mach/cthreads.h cthreads.h
15278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15280 echo "configure:15281: checking for $ac_hdr" >&5
15281 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15282 echo $ac_n "(cached) $ac_c" 1>&6
15284 cat > conftest.$ac_ext <<EOF
15285 #line 15286 "configure"
15286 #include "confdefs.h"
15289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15290 { (eval echo configure:15291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15292 if test -z "$ac_err"; then
15294 eval "ac_cv_header_$ac_safe=yes"
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15300 eval "ac_cv_header_$ac_safe=no"
15304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15305 echo "$ac_t""yes" 1>&6
15306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15307 cat >> confdefs.h <<EOF
15308 #define $ac_tr_hdr 1
15312 echo "$ac_t""no" 1>&6
15316 if test $ac_cv_header_mach_cthreads_h = yes ; then
15317 ol_with_threads=found
15319 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15320 echo "configure:15321: checking for cthread_fork" >&5
15321 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15322 echo $ac_n "(cached) $ac_c" 1>&6
15324 cat > conftest.$ac_ext <<EOF
15325 #line 15326 "configure"
15326 #include "confdefs.h"
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char cthread_fork(); below. */
15329 #include <assert.h>
15330 /* Override any gcc2 internal prototype to avoid an error. */
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15333 char cthread_fork();
15338 /* The GNU C library defines this for functions which it implements
15339 to always fail with ENOSYS. Some functions are actually named
15340 something starting with __ and the normal name is an alias. */
15341 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15349 if { (eval echo configure:15350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351 eval "ac_cv_func_cthread_fork=yes"
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15356 eval "ac_cv_func_cthread_fork=no"
15361 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15362 echo "$ac_t""yes" 1>&6
15363 ol_link_threads=yes
15365 echo "$ac_t""no" 1>&6
15369 if test $ol_link_threads = no ; then
15370 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15371 echo "configure:15372: checking for cthread_fork with -all_load" >&5
15372 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15373 echo $ac_n "(cached) $ac_c" 1>&6
15377 LIBS="-all_load $LIBS"
15378 cat > conftest.$ac_ext <<EOF
15379 #line 15380 "configure"
15380 #include "confdefs.h"
15381 #include <mach/cthreads.h>
15384 cthread_fork((void *)0, (void *)0);
15388 if { (eval echo configure:15389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15390 ol_cv_cthread_all_load=yes
15392 echo "configure: failed program was:" >&5
15393 cat conftest.$ac_ext >&5
15395 ol_cv_cthread_all_load=no
15402 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15404 if test $ol_cv_cthread_all_load = yes ; then
15405 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15406 ol_link_threads=mach
15407 ol_with_threads=found
15411 elif test $ac_cv_header_cthreads_h = yes ; then
15413 ol_with_threads=found
15416 LIBS="$LIBS -lthreads"
15417 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15418 echo "configure:15419: checking for cthread_fork" >&5
15419 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char cthread_fork(); below. */
15427 #include <assert.h>
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15431 char cthread_fork();
15436 /* The GNU C library defines this for functions which it implements
15437 to always fail with ENOSYS. Some functions are actually named
15438 something starting with __ and the normal name is an alias. */
15439 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15447 if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15449 eval "ac_cv_func_cthread_fork=yes"
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15454 eval "ac_cv_func_cthread_fork=no"
15459 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15460 echo "$ac_t""yes" 1>&6
15461 ol_link_threads=yes
15463 echo "$ac_t""no" 1>&6
15468 if test $ol_link_threads = yes ; then
15469 LTHREAD_LIBS="-lthreads"
15470 ol_link_threads=mach
15471 ol_with_threads=found
15473 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15476 elif test $ol_with_threads = mach ; then
15477 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15480 if test $ol_link_threads = mach ; then
15481 cat >> confdefs.h <<\EOF
15482 #define HAVE_MACH_CTHREADS 1
15485 elif test $ol_with_threads = found ; then
15486 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15490 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15491 -o $ol_with_threads = pth ; then
15493 for ac_hdr in pth.h
15495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15497 echo "configure:15498: checking for $ac_hdr" >&5
15498 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15499 echo $ac_n "(cached) $ac_c" 1>&6
15501 cat > conftest.$ac_ext <<EOF
15502 #line 15503 "configure"
15503 #include "confdefs.h"
15506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15507 { (eval echo configure:15508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15509 if test -z "$ac_err"; then
15511 eval "ac_cv_header_$ac_safe=yes"
15514 echo "configure: failed program was:" >&5
15515 cat conftest.$ac_ext >&5
15517 eval "ac_cv_header_$ac_safe=no"
15521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15522 echo "$ac_t""yes" 1>&6
15523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15524 cat >> confdefs.h <<EOF
15525 #define $ac_tr_hdr 1
15529 echo "$ac_t""no" 1>&6
15534 if test $ac_cv_header_pth_h = yes ; then
15535 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15536 echo "configure:15537: checking for pth_version in -lpth" >&5
15537 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15538 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15539 echo $ac_n "(cached) $ac_c" 1>&6
15541 ac_save_LIBS="$LIBS"
15543 cat > conftest.$ac_ext <<EOF
15544 #line 15545 "configure"
15545 #include "confdefs.h"
15546 /* Override any gcc2 internal prototype to avoid an error. */
15547 /* We use char because int might match the return type of a gcc2
15548 builtin and then its argument prototype would still apply. */
15549 char pth_version();
15555 if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15557 eval "ac_cv_lib_$ac_lib_var=yes"
15559 echo "configure: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15562 eval "ac_cv_lib_$ac_lib_var=no"
15565 LIBS="$ac_save_LIBS"
15568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15569 echo "$ac_t""yes" 1>&6
15572 echo "$ac_t""no" 1>&6
15577 if test $have_pth = yes ; then
15578 cat >> confdefs.h <<\EOF
15579 #define HAVE_GNU_PTH 1
15582 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15583 ol_link_threads=pth
15584 ol_with_threads=found
15586 if test $ol_with_yielding_select = auto ; then
15587 ol_with_yielding_select=yes
15593 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15594 -o $ol_with_threads = lwp ; then
15596 for ac_hdr in thread.h synch.h
15598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15600 echo "configure:15601: checking for $ac_hdr" >&5
15601 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15604 cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15610 { (eval echo configure:15611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15612 if test -z "$ac_err"; then
15614 eval "ac_cv_header_$ac_safe=yes"
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15620 eval "ac_cv_header_$ac_safe=no"
15624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
15626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15627 cat >> confdefs.h <<EOF
15628 #define $ac_tr_hdr 1
15632 echo "$ac_t""no" 1>&6
15636 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15637 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15638 echo "configure:15639: checking for thr_create in -lthread" >&5
15639 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15643 ac_save_LIBS="$LIBS"
15644 LIBS="-lthread $LIBS"
15645 cat > conftest.$ac_ext <<EOF
15646 #line 15647 "configure"
15647 #include "confdefs.h"
15648 /* Override any gcc2 internal prototype to avoid an error. */
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15659 eval "ac_cv_lib_$ac_lib_var=yes"
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15664 eval "ac_cv_lib_$ac_lib_var=no"
15667 LIBS="$ac_save_LIBS"
15670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15671 echo "$ac_t""yes" 1>&6
15674 echo "$ac_t""no" 1>&6
15679 if test $have_thr = yes ; then
15680 cat >> confdefs.h <<\EOF
15684 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15685 ol_link_threads=thr
15687 if test $ol_with_yielding_select = auto ; then
15688 ol_with_yielding_select=yes
15692 thr_setconcurrency \
15693 thr_getconcurrency \
15696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15697 echo "configure:15698: checking for $ac_func" >&5
15698 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15699 echo $ac_n "(cached) $ac_c" 1>&6
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 /* System header to define __stub macros and hopefully few prototypes,
15705 which can conflict with char $ac_func(); below. */
15706 #include <assert.h>
15707 /* Override any gcc2 internal prototype to avoid an error. */
15708 /* We use char because int might match the return type of a gcc2
15709 builtin and then its argument prototype would still apply. */
15715 /* The GNU C library defines this for functions which it implements
15716 to always fail with ENOSYS. Some functions are actually named
15717 something starting with __ and the normal name is an alias. */
15718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15726 if { (eval echo configure:15727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15728 eval "ac_cv_func_$ac_func=yes"
15730 echo "configure: failed program was:" >&5
15731 cat conftest.$ac_ext >&5
15733 eval "ac_cv_func_$ac_func=no"
15738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15739 echo "$ac_t""yes" 1>&6
15740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15741 cat >> confdefs.h <<EOF
15742 #define $ac_tr_func 1
15746 echo "$ac_t""no" 1>&6
15753 for ac_hdr in lwp/lwp.h
15755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15757 echo "configure:15758: checking for $ac_hdr" >&5
15758 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15759 echo $ac_n "(cached) $ac_c" 1>&6
15761 cat > conftest.$ac_ext <<EOF
15762 #line 15763 "configure"
15763 #include "confdefs.h"
15766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15767 { (eval echo configure:15768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15769 if test -z "$ac_err"; then
15771 eval "ac_cv_header_$ac_safe=yes"
15774 echo "configure: failed program was:" >&5
15775 cat conftest.$ac_ext >&5
15777 eval "ac_cv_header_$ac_safe=no"
15781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15782 echo "$ac_t""yes" 1>&6
15783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15784 cat >> confdefs.h <<EOF
15785 #define $ac_tr_hdr 1
15789 echo "$ac_t""no" 1>&6
15793 if test $ac_cv_header_lwp_lwp_h = yes ; then
15794 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15795 echo "configure:15796: checking for lwp_create in -llwp" >&5
15796 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15797 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15798 echo $ac_n "(cached) $ac_c" 1>&6
15800 ac_save_LIBS="$LIBS"
15802 cat > conftest.$ac_ext <<EOF
15803 #line 15804 "configure"
15804 #include "confdefs.h"
15805 /* Override any gcc2 internal prototype to avoid an error. */
15806 /* We use char because int might match the return type of a gcc2
15807 builtin and then its argument prototype would still apply. */
15814 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15816 eval "ac_cv_lib_$ac_lib_var=yes"
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15821 eval "ac_cv_lib_$ac_lib_var=no"
15824 LIBS="$ac_save_LIBS"
15827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15828 echo "$ac_t""yes" 1>&6
15831 echo "$ac_t""no" 1>&6
15836 if test $have_lwp = yes ; then
15837 cat >> confdefs.h <<\EOF
15841 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15842 ol_link_threads=lwp
15844 if test $ol_with_yielding_select = auto ; then
15845 ol_with_yielding_select=no
15851 if test $ol_with_yielding_select = yes ; then
15852 cat >> confdefs.h <<\EOF
15853 #define HAVE_YIELDING_SELECT 1
15858 if test $ol_with_threads = manual ; then
15859 ol_link_threads=yes
15861 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15863 for ac_hdr in pthread.h sched.h
15865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15867 echo "configure:15868: checking for $ac_hdr" >&5
15868 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15869 echo $ac_n "(cached) $ac_c" 1>&6
15871 cat > conftest.$ac_ext <<EOF
15872 #line 15873 "configure"
15873 #include "confdefs.h"
15876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15877 { (eval echo configure:15878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15879 if test -z "$ac_err"; then
15881 eval "ac_cv_header_$ac_safe=yes"
15884 echo "configure: failed program was:" >&5
15885 cat conftest.$ac_ext >&5
15887 eval "ac_cv_header_$ac_safe=no"
15891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15892 echo "$ac_t""yes" 1>&6
15893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15894 cat >> confdefs.h <<EOF
15895 #define $ac_tr_hdr 1
15899 echo "$ac_t""no" 1>&6
15903 for ac_func in sched_yield pthread_yield
15905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15906 echo "configure:15907: checking for $ac_func" >&5
15907 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15908 echo $ac_n "(cached) $ac_c" 1>&6
15910 cat > conftest.$ac_ext <<EOF
15911 #line 15912 "configure"
15912 #include "confdefs.h"
15913 /* System header to define __stub macros and hopefully few prototypes,
15914 which can conflict with char $ac_func(); below. */
15915 #include <assert.h>
15916 /* Override any gcc2 internal prototype to avoid an error. */
15917 /* We use char because int might match the return type of a gcc2
15918 builtin and then its argument prototype would still apply. */
15924 /* The GNU C library defines this for functions which it implements
15925 to always fail with ENOSYS. Some functions are actually named
15926 something starting with __ and the normal name is an alias. */
15927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15935 if { (eval echo configure:15936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15937 eval "ac_cv_func_$ac_func=yes"
15939 echo "configure: failed program was:" >&5
15940 cat conftest.$ac_ext >&5
15942 eval "ac_cv_func_$ac_func=no"
15947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15948 echo "$ac_t""yes" 1>&6
15949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15950 cat >> confdefs.h <<EOF
15951 #define $ac_tr_func 1
15955 echo "$ac_t""no" 1>&6
15960 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15961 echo "configure:15962: checking for LinuxThreads pthread.h" >&5
15962 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15963 echo $ac_n "(cached) $ac_c" 1>&6
15965 cat > conftest.$ac_ext <<EOF
15966 #line 15967 "configure"
15967 #include "confdefs.h"
15968 #include <pthread.h>
15970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15971 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15973 ol_cv_header_linux_threads=yes
15976 ol_cv_header_linux_threads=no
15983 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15984 if test $ol_cv_header_linux_threads = yes; then
15985 cat >> confdefs.h <<\EOF
15986 #define HAVE_LINUX_THREADS 1
15992 for ac_hdr in mach/cthreads.h
15994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15996 echo "configure:15997: checking for $ac_hdr" >&5
15997 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15998 echo $ac_n "(cached) $ac_c" 1>&6
16000 cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16006 { (eval echo configure:16007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16008 if test -z "$ac_err"; then
16010 eval "ac_cv_header_$ac_safe=yes"
16013 echo "configure: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16016 eval "ac_cv_header_$ac_safe=no"
16020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16021 echo "$ac_t""yes" 1>&6
16022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16023 cat >> confdefs.h <<EOF
16024 #define $ac_tr_hdr 1
16028 echo "$ac_t""no" 1>&6
16032 for ac_hdr in lwp/lwp.h
16034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16036 echo "configure:16037: checking for $ac_hdr" >&5
16037 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16038 echo $ac_n "(cached) $ac_c" 1>&6
16040 cat > conftest.$ac_ext <<EOF
16041 #line 16042 "configure"
16042 #include "confdefs.h"
16045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16046 { (eval echo configure:16047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16048 if test -z "$ac_err"; then
16050 eval "ac_cv_header_$ac_safe=yes"
16053 echo "configure: failed program was:" >&5
16054 cat conftest.$ac_ext >&5
16056 eval "ac_cv_header_$ac_safe=no"
16060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16061 echo "$ac_t""yes" 1>&6
16062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16063 cat >> confdefs.h <<EOF
16064 #define $ac_tr_hdr 1
16068 echo "$ac_t""no" 1>&6
16072 for ac_hdr in thread.h synch.h
16074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16076 echo "configure:16077: checking for $ac_hdr" >&5
16077 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16078 echo $ac_n "(cached) $ac_c" 1>&6
16080 cat > conftest.$ac_ext <<EOF
16081 #line 16082 "configure"
16082 #include "confdefs.h"
16085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16086 { (eval echo configure:16087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16088 if test -z "$ac_err"; then
16090 eval "ac_cv_header_$ac_safe=yes"
16093 echo "configure: failed program was:" >&5
16094 cat conftest.$ac_ext >&5
16096 eval "ac_cv_header_$ac_safe=no"
16100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16101 echo "$ac_t""yes" 1>&6
16102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16103 cat >> confdefs.h <<EOF
16104 #define $ac_tr_hdr 1
16108 echo "$ac_t""no" 1>&6
16114 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16115 cat >> confdefs.h <<\EOF
16116 #define REENTRANT 1
16119 cat >> confdefs.h <<\EOF
16120 #define _REENTRANT 1
16123 cat >> confdefs.h <<\EOF
16124 #define THREAD_SAFE 1
16127 cat >> confdefs.h <<\EOF
16128 #define _THREAD_SAFE 1
16131 cat >> confdefs.h <<\EOF
16132 #define THREADSAFE 1
16135 cat >> confdefs.h <<\EOF
16136 #define _THREADSAFE 1
16139 cat >> confdefs.h <<\EOF
16140 #define _SGI_MP_SOURCE 1
16144 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16145 echo "configure:16146: checking for thread specific errno" >&5
16146 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16147 echo $ac_n "(cached) $ac_c" 1>&6
16150 cat > conftest.$ac_ext <<EOF
16151 #line 16152 "configure"
16152 #include "confdefs.h"
16158 if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16160 ol_cv_errno_thread_specific=yes
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16165 ol_cv_errno_thread_specific=no
16171 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16173 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16174 echo "configure:16175: checking for thread specific h_errno" >&5
16175 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16176 echo $ac_n "(cached) $ac_c" 1>&6
16179 cat > conftest.$ac_ext <<EOF
16180 #line 16181 "configure"
16181 #include "confdefs.h"
16187 if { (eval echo configure:16188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16189 ol_cv_h_errno_thread_specific=yes
16191 echo "configure: failed program was:" >&5
16192 cat conftest.$ac_ext >&5
16194 ol_cv_h_errno_thread_specific=no
16200 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16202 if test $ol_cv_errno_thread_specific != yes \
16203 -o $ol_cv_h_errno_thread_specific != yes ; then
16204 LIBS="$LTHREAD_LIBS $LIBS"
16210 if test $ol_link_threads = no ; then
16211 if test $ol_with_threads = yes ; then
16212 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16215 if test $ol_with_threads = auto ; then
16216 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16220 cat >> confdefs.h <<\EOF
16221 #define NO_THREADS 1
16227 if test $ol_link_threads != no ; then
16228 cat >> confdefs.h <<\EOF
16229 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16236 gethostbyname_r gethostbyaddr_r \
16239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16240 echo "configure:16241: checking for $ac_func" >&5
16241 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16242 echo $ac_n "(cached) $ac_c" 1>&6
16244 cat > conftest.$ac_ext <<EOF
16245 #line 16246 "configure"
16246 #include "confdefs.h"
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func(); below. */
16249 #include <assert.h>
16250 /* Override any gcc2 internal prototype to avoid an error. */
16251 /* We use char because int might match the return type of a gcc2
16252 builtin and then its argument prototype would still apply. */
16258 /* The GNU C library defines this for functions which it implements
16259 to always fail with ENOSYS. Some functions are actually named
16260 something starting with __ and the normal name is an alias. */
16261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16269 if { (eval echo configure:16270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16271 eval "ac_cv_func_$ac_func=yes"
16273 echo "configure: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16276 eval "ac_cv_func_$ac_func=no"
16281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16282 echo "$ac_t""yes" 1>&6
16283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16284 cat >> confdefs.h <<EOF
16285 #define $ac_tr_func 1
16289 echo "$ac_t""no" 1>&6
16294 if test "$ac_cv_func_ctime_r" = no ; then
16295 ol_cv_func_ctime_r_nargs=0
16297 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16298 echo "configure:16299: checking number of arguments of ctime_r" >&5
16299 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16302 cat > conftest.$ac_ext <<EOF
16303 #line 16304 "configure"
16304 #include "confdefs.h"
16307 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16310 if { (eval echo configure:16311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16312 ol_cv_func_ctime_r_nargs3=yes
16314 echo "configure: failed program was:" >&5
16315 cat conftest.$ac_ext >&5
16317 ol_cv_func_ctime_r_nargs3=no
16321 cat > conftest.$ac_ext <<EOF
16322 #line 16323 "configure"
16323 #include "confdefs.h"
16326 time_t ti; char *buffer; ctime_r(&ti,buffer);
16329 if { (eval echo configure:16330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16331 ol_cv_func_ctime_r_nargs2=yes
16333 echo "configure: failed program was:" >&5
16334 cat conftest.$ac_ext >&5
16336 ol_cv_func_ctime_r_nargs2=no
16340 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16341 $ol_cv_func_ctime_r_nargs2 = no ; then
16343 ol_cv_func_ctime_r_nargs=3
16345 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16346 $ol_cv_func_ctime_r_nargs2 = yes ; then
16348 ol_cv_func_ctime_r_nargs=2
16351 ol_cv_func_ctime_r_nargs=0
16356 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16358 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16359 cat >> confdefs.h <<EOF
16360 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16367 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16368 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16369 echo "configure:16370: checking number of arguments of gethostbyname_r" >&5
16370 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16373 cat > conftest.$ac_ext <<EOF
16374 #line 16375 "configure"
16375 #include "confdefs.h"
16376 #include <sys/types.h>
16377 #include <sys/socket.h>
16378 #include <netinet/in.h>
16380 #define BUFSIZE (sizeof(struct hostent)+10)
16382 struct hostent hent; char buffer[BUFSIZE];
16383 int bufsize=BUFSIZE;int h_errno;
16384 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16385 buffer, bufsize, &h_errno);
16388 if { (eval echo configure:16389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16390 ol_cv_func_gethostbyname_r_nargs5=yes
16392 echo "configure: failed program was:" >&5
16393 cat conftest.$ac_ext >&5
16395 ol_cv_func_gethostbyname_r_nargs5=no
16399 cat > conftest.$ac_ext <<EOF
16400 #line 16401 "configure"
16401 #include "confdefs.h"
16402 #include <sys/types.h>
16403 #include <sys/socket.h>
16404 #include <netinet/in.h>
16406 #define BUFSIZE (sizeof(struct hostent)+10)
16408 struct hostent hent;struct hostent *rhent;
16409 char buffer[BUFSIZE];
16410 int bufsize=BUFSIZE;int h_errno;
16411 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16415 if { (eval echo configure:16416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16417 ol_cv_func_gethostbyname_r_nargs6=yes
16419 echo "configure: failed program was:" >&5
16420 cat conftest.$ac_ext >&5
16422 ol_cv_func_gethostbyname_r_nargs6=no
16426 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16427 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16429 ol_cv_func_gethostbyname_r_nargs=5
16431 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16432 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16434 ol_cv_func_gethostbyname_r_nargs=6
16437 ol_cv_func_gethostbyname_r_nargs=0
16442 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16443 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16444 cat >> confdefs.h <<EOF
16445 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16451 ol_cv_func_gethostbyname_r_nargs=0
16454 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16455 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16456 echo "configure:16457: checking number of arguments of gethostbyaddr_r" >&5
16457 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16460 cat > conftest.$ac_ext <<EOF
16461 #line 16462 "configure"
16462 #include "confdefs.h"
16463 #include <sys/types.h>
16464 #include <sys/socket.h>
16465 #include <netinet/in.h>
16467 #define BUFSIZE (sizeof(struct hostent)+10)
16469 struct hostent hent; char buffer[BUFSIZE];
16470 struct in_addr add;
16471 size_t alen=sizeof(struct in_addr);
16472 int bufsize=BUFSIZE;int h_errno;
16473 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16474 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16477 if { (eval echo configure:16478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16479 ol_cv_func_gethostbyaddr_r_nargs7=yes
16481 echo "configure: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16484 ol_cv_func_gethostbyaddr_r_nargs7=no
16488 cat > conftest.$ac_ext <<EOF
16489 #line 16490 "configure"
16490 #include "confdefs.h"
16491 #include <sys/types.h>
16492 #include <sys/socket.h>
16493 #include <netinet/in.h>
16495 #define BUFSIZE (sizeof(struct hostent)+10)
16497 struct hostent hent;
16498 struct hostent *rhent; char buffer[BUFSIZE];
16499 struct in_addr add;
16500 size_t alen=sizeof(struct in_addr);
16501 int bufsize=BUFSIZE;int h_errno;
16502 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16503 alen, AF_INET, &hent, buffer, bufsize,
16507 if { (eval echo configure:16508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16509 ol_cv_func_gethostbyaddr_r_nargs8=yes
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16514 ol_cv_func_gethostbyaddr_r_nargs8=no
16518 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16519 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16521 ol_cv_func_gethostbyaddr_r_nargs=7
16523 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16524 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16526 ol_cv_func_gethostbyaddr_r_nargs=8
16529 ol_cv_func_gethostbyaddr_r_nargs=0
16534 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16535 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16536 cat >> confdefs.h <<EOF
16537 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16543 ol_cv_func_gethostbyaddr_r_nargs=0
16548 if test $ol_with_ldbm_api = auto \
16549 -o $ol_with_ldbm_api = berkeley \
16550 -o $ol_with_ldbm_api = bcompat ; then
16552 if test $ol_with_ldbm_api = bcompat; then \
16553 for ac_hdr in db_185.h db.h
16555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16557 echo "configure:16558: checking for $ac_hdr" >&5
16558 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16559 echo $ac_n "(cached) $ac_c" 1>&6
16561 cat > conftest.$ac_ext <<EOF
16562 #line 16563 "configure"
16563 #include "confdefs.h"
16566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16567 { (eval echo configure:16568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16569 if test -z "$ac_err"; then
16571 eval "ac_cv_header_$ac_safe=yes"
16574 echo "configure: failed program was:" >&5
16575 cat conftest.$ac_ext >&5
16577 eval "ac_cv_header_$ac_safe=no"
16581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16582 echo "$ac_t""yes" 1>&6
16583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16584 cat >> confdefs.h <<EOF
16585 #define $ac_tr_hdr 1
16589 echo "$ac_t""no" 1>&6
16593 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16594 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16595 echo "configure:16596: checking if Berkeley DB header compatibility" >&5
16596 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16597 echo $ac_n "(cached) $ac_c" 1>&6
16600 cat > conftest.$ac_ext <<EOF
16601 #line 16602 "configure"
16602 #include "confdefs.h"
16605 # include <db_185.h>
16610 /* this check could be improved */
16611 #ifndef DB_VERSION_MAJOR
16612 # define DB_VERSION_MAJOR 1
16615 #if DB_VERSION_MAJOR == 1
16620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16621 egrep "__db_version_1" >/dev/null 2>&1; then
16623 ol_cv_header_db1=yes
16626 ol_cv_header_db1=no
16632 echo "$ac_t""$ol_cv_header_db1" 1>&6
16634 if test $ol_cv_header_db1 = yes ; then
16636 if test $ol_cv_lib_db = no ; then
16637 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16638 echo "configure:16639: checking for Berkeley DB link (default)" >&5
16639 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16640 echo $ac_n "(cached) $ac_c" 1>&6
16645 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16647 cat > conftest.$ac_ext <<EOF
16648 #line 16649 "configure"
16649 #include "confdefs.h"
16651 #ifdef HAVE_DB_185_H
16652 # include <db_185.h>
16657 #ifndef DB_VERSION_MAJOR
16658 # define DB_VERSION_MAJOR 1
16662 #define NULL ((void*)0)
16667 #if DB_VERSION_MAJOR > 1
16670 int major, minor, patch;
16672 version = db_version( &major, &minor, &patch );
16674 if( major != DB_VERSION_MAJOR ||
16675 minor < DB_VERSION_MINOR )
16677 printf("Berkeley DB version mismatch\n"
16678 "\texpected: %s\n\tgot: %s\n",
16679 DB_VERSION_STRING, version);
16685 #if DB_VERSION_MAJOR > 2
16686 db_env_create( NULL, 0 );
16687 #elif DB_VERSION_MAJOR > 1
16688 db_appexit( NULL );
16690 (void) dbopen( NULL, 0, 0, 0, NULL);
16695 if { (eval echo configure:16696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16699 echo "configure: failed program was:" >&5
16700 cat conftest.$ac_ext >&5
16710 echo "$ac_t""$ol_cv_db_none" 1>&6
16712 if test $ol_cv_db_none = yes ; then
16717 if test $ol_cv_lib_db = no ; then
16718 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16719 echo "configure:16720: checking for Berkeley DB link (-ldb42)" >&5
16720 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
16726 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16728 cat > conftest.$ac_ext <<EOF
16729 #line 16730 "configure"
16730 #include "confdefs.h"
16732 #ifdef HAVE_DB_185_H
16733 # include <db_185.h>
16738 #ifndef DB_VERSION_MAJOR
16739 # define DB_VERSION_MAJOR 1
16743 #define NULL ((void*)0)
16748 #if DB_VERSION_MAJOR > 1
16751 int major, minor, patch;
16753 version = db_version( &major, &minor, &patch );
16755 if( major != DB_VERSION_MAJOR ||
16756 minor < DB_VERSION_MINOR )
16758 printf("Berkeley DB version mismatch\n"
16759 "\texpected: %s\n\tgot: %s\n",
16760 DB_VERSION_STRING, version);
16766 #if DB_VERSION_MAJOR > 2
16767 db_env_create( NULL, 0 );
16768 #elif DB_VERSION_MAJOR > 1
16769 db_appexit( NULL );
16771 (void) dbopen( NULL, 0, 0, 0, NULL);
16776 if { (eval echo configure:16777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16780 echo "configure: failed program was:" >&5
16781 cat conftest.$ac_ext >&5
16791 echo "$ac_t""$ol_cv_db_db42" 1>&6
16793 if test $ol_cv_db_db42 = yes ; then
16794 ol_cv_lib_db=-ldb42
16798 if test $ol_cv_lib_db = no ; then
16799 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16800 echo "configure:16801: checking for Berkeley DB link (-ldb-42)" >&5
16801 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16802 echo $ac_n "(cached) $ac_c" 1>&6
16807 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16809 cat > conftest.$ac_ext <<EOF
16810 #line 16811 "configure"
16811 #include "confdefs.h"
16813 #ifdef HAVE_DB_185_H
16814 # include <db_185.h>
16819 #ifndef DB_VERSION_MAJOR
16820 # define DB_VERSION_MAJOR 1
16824 #define NULL ((void*)0)
16829 #if DB_VERSION_MAJOR > 1
16832 int major, minor, patch;
16834 version = db_version( &major, &minor, &patch );
16836 if( major != DB_VERSION_MAJOR ||
16837 minor < DB_VERSION_MINOR )
16839 printf("Berkeley DB version mismatch\n"
16840 "\texpected: %s\n\tgot: %s\n",
16841 DB_VERSION_STRING, version);
16847 #if DB_VERSION_MAJOR > 2
16848 db_env_create( NULL, 0 );
16849 #elif DB_VERSION_MAJOR > 1
16850 db_appexit( NULL );
16852 (void) dbopen( NULL, 0, 0, 0, NULL);
16857 if { (eval echo configure:16858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16861 echo "configure: failed program was:" >&5
16862 cat conftest.$ac_ext >&5
16872 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16874 if test $ol_cv_db_db_42 = yes ; then
16875 ol_cv_lib_db=-ldb-42
16879 if test $ol_cv_lib_db = no ; then
16880 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16881 echo "configure:16882: checking for Berkeley DB link (-ldb-4.2)" >&5
16882 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16883 echo $ac_n "(cached) $ac_c" 1>&6
16888 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16890 cat > conftest.$ac_ext <<EOF
16891 #line 16892 "configure"
16892 #include "confdefs.h"
16894 #ifdef HAVE_DB_185_H
16895 # include <db_185.h>
16900 #ifndef DB_VERSION_MAJOR
16901 # define DB_VERSION_MAJOR 1
16905 #define NULL ((void*)0)
16910 #if DB_VERSION_MAJOR > 1
16913 int major, minor, patch;
16915 version = db_version( &major, &minor, &patch );
16917 if( major != DB_VERSION_MAJOR ||
16918 minor < DB_VERSION_MINOR )
16920 printf("Berkeley DB version mismatch\n"
16921 "\texpected: %s\n\tgot: %s\n",
16922 DB_VERSION_STRING, version);
16928 #if DB_VERSION_MAJOR > 2
16929 db_env_create( NULL, 0 );
16930 #elif DB_VERSION_MAJOR > 1
16931 db_appexit( NULL );
16933 (void) dbopen( NULL, 0, 0, 0, NULL);
16938 if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16940 ol_cv_db_db_4_dot_2=yes
16942 echo "configure: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16945 ol_cv_db_db_4_dot_2=no
16953 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16955 if test $ol_cv_db_db_4_dot_2 = yes ; then
16956 ol_cv_lib_db=-ldb-4.2
16960 if test $ol_cv_lib_db = no ; then
16961 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16962 echo "configure:16963: checking for Berkeley DB link (-ldb-4-2)" >&5
16963 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16964 echo $ac_n "(cached) $ac_c" 1>&6
16969 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16971 cat > conftest.$ac_ext <<EOF
16972 #line 16973 "configure"
16973 #include "confdefs.h"
16975 #ifdef HAVE_DB_185_H
16976 # include <db_185.h>
16981 #ifndef DB_VERSION_MAJOR
16982 # define DB_VERSION_MAJOR 1
16986 #define NULL ((void*)0)
16991 #if DB_VERSION_MAJOR > 1
16994 int major, minor, patch;
16996 version = db_version( &major, &minor, &patch );
16998 if( major != DB_VERSION_MAJOR ||
16999 minor < DB_VERSION_MINOR )
17001 printf("Berkeley DB version mismatch\n"
17002 "\texpected: %s\n\tgot: %s\n",
17003 DB_VERSION_STRING, version);
17009 #if DB_VERSION_MAJOR > 2
17010 db_env_create( NULL, 0 );
17011 #elif DB_VERSION_MAJOR > 1
17012 db_appexit( NULL );
17014 (void) dbopen( NULL, 0, 0, 0, NULL);
17019 if { (eval echo configure:17020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17021 ol_cv_db_db_4_2=yes
17023 echo "configure: failed program was:" >&5
17024 cat conftest.$ac_ext >&5
17034 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17036 if test $ol_cv_db_db_4_2 = yes ; then
17037 ol_cv_lib_db=-ldb-4-2
17041 if test $ol_cv_lib_db = no ; then
17042 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17043 echo "configure:17044: checking for Berkeley DB link (-ldb-4)" >&5
17044 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17045 echo $ac_n "(cached) $ac_c" 1>&6
17050 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17052 cat > conftest.$ac_ext <<EOF
17053 #line 17054 "configure"
17054 #include "confdefs.h"
17056 #ifdef HAVE_DB_185_H
17057 # include <db_185.h>
17062 #ifndef DB_VERSION_MAJOR
17063 # define DB_VERSION_MAJOR 1
17067 #define NULL ((void*)0)
17072 #if DB_VERSION_MAJOR > 1
17075 int major, minor, patch;
17077 version = db_version( &major, &minor, &patch );
17079 if( major != DB_VERSION_MAJOR ||
17080 minor < DB_VERSION_MINOR )
17082 printf("Berkeley DB version mismatch\n"
17083 "\texpected: %s\n\tgot: %s\n",
17084 DB_VERSION_STRING, version);
17090 #if DB_VERSION_MAJOR > 2
17091 db_env_create( NULL, 0 );
17092 #elif DB_VERSION_MAJOR > 1
17093 db_appexit( NULL );
17095 (void) dbopen( NULL, 0, 0, 0, NULL);
17100 if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17104 echo "configure: failed program was:" >&5
17105 cat conftest.$ac_ext >&5
17115 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17117 if test $ol_cv_db_db_4 = yes ; then
17118 ol_cv_lib_db=-ldb-4
17122 if test $ol_cv_lib_db = no ; then
17123 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17124 echo "configure:17125: checking for Berkeley DB link (-ldb4)" >&5
17125 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17126 echo $ac_n "(cached) $ac_c" 1>&6
17131 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17133 cat > conftest.$ac_ext <<EOF
17134 #line 17135 "configure"
17135 #include "confdefs.h"
17137 #ifdef HAVE_DB_185_H
17138 # include <db_185.h>
17143 #ifndef DB_VERSION_MAJOR
17144 # define DB_VERSION_MAJOR 1
17148 #define NULL ((void*)0)
17153 #if DB_VERSION_MAJOR > 1
17156 int major, minor, patch;
17158 version = db_version( &major, &minor, &patch );
17160 if( major != DB_VERSION_MAJOR ||
17161 minor < DB_VERSION_MINOR )
17163 printf("Berkeley DB version mismatch\n"
17164 "\texpected: %s\n\tgot: %s\n",
17165 DB_VERSION_STRING, version);
17171 #if DB_VERSION_MAJOR > 2
17172 db_env_create( NULL, 0 );
17173 #elif DB_VERSION_MAJOR > 1
17174 db_appexit( NULL );
17176 (void) dbopen( NULL, 0, 0, 0, NULL);
17181 if { (eval echo configure:17182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17185 echo "configure: failed program was:" >&5
17186 cat conftest.$ac_ext >&5
17196 echo "$ac_t""$ol_cv_db_db4" 1>&6
17198 if test $ol_cv_db_db4 = yes ; then
17203 if test $ol_cv_lib_db = no ; then
17204 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17205 echo "configure:17206: checking for Berkeley DB link (-ldb41)" >&5
17206 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17207 echo $ac_n "(cached) $ac_c" 1>&6
17212 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17214 cat > conftest.$ac_ext <<EOF
17215 #line 17216 "configure"
17216 #include "confdefs.h"
17218 #ifdef HAVE_DB_185_H
17219 # include <db_185.h>
17224 #ifndef DB_VERSION_MAJOR
17225 # define DB_VERSION_MAJOR 1
17229 #define NULL ((void*)0)
17234 #if DB_VERSION_MAJOR > 1
17237 int major, minor, patch;
17239 version = db_version( &major, &minor, &patch );
17241 if( major != DB_VERSION_MAJOR ||
17242 minor < DB_VERSION_MINOR )
17244 printf("Berkeley DB version mismatch\n"
17245 "\texpected: %s\n\tgot: %s\n",
17246 DB_VERSION_STRING, version);
17252 #if DB_VERSION_MAJOR > 2
17253 db_env_create( NULL, 0 );
17254 #elif DB_VERSION_MAJOR > 1
17255 db_appexit( NULL );
17257 (void) dbopen( NULL, 0, 0, 0, NULL);
17262 if { (eval echo configure:17263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17266 echo "configure: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17277 echo "$ac_t""$ol_cv_db_db41" 1>&6
17279 if test $ol_cv_db_db41 = yes ; then
17280 ol_cv_lib_db=-ldb41
17284 if test $ol_cv_lib_db = no ; then
17285 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17286 echo "configure:17287: checking for Berkeley DB link (-ldb-41)" >&5
17287 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17288 echo $ac_n "(cached) $ac_c" 1>&6
17293 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17295 cat > conftest.$ac_ext <<EOF
17296 #line 17297 "configure"
17297 #include "confdefs.h"
17299 #ifdef HAVE_DB_185_H
17300 # include <db_185.h>
17305 #ifndef DB_VERSION_MAJOR
17306 # define DB_VERSION_MAJOR 1
17310 #define NULL ((void*)0)
17315 #if DB_VERSION_MAJOR > 1
17318 int major, minor, patch;
17320 version = db_version( &major, &minor, &patch );
17322 if( major != DB_VERSION_MAJOR ||
17323 minor < DB_VERSION_MINOR )
17325 printf("Berkeley DB version mismatch\n"
17326 "\texpected: %s\n\tgot: %s\n",
17327 DB_VERSION_STRING, version);
17333 #if DB_VERSION_MAJOR > 2
17334 db_env_create( NULL, 0 );
17335 #elif DB_VERSION_MAJOR > 1
17336 db_appexit( NULL );
17338 (void) dbopen( NULL, 0, 0, 0, NULL);
17343 if { (eval echo configure:17344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17347 echo "configure: failed program was:" >&5
17348 cat conftest.$ac_ext >&5
17358 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17360 if test $ol_cv_db_db_41 = yes ; then
17361 ol_cv_lib_db=-ldb-41
17365 if test $ol_cv_lib_db = no ; then
17366 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17367 echo "configure:17368: checking for Berkeley DB link (-ldb-4.1)" >&5
17368 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17369 echo $ac_n "(cached) $ac_c" 1>&6
17374 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17376 cat > conftest.$ac_ext <<EOF
17377 #line 17378 "configure"
17378 #include "confdefs.h"
17380 #ifdef HAVE_DB_185_H
17381 # include <db_185.h>
17386 #ifndef DB_VERSION_MAJOR
17387 # define DB_VERSION_MAJOR 1
17391 #define NULL ((void*)0)
17396 #if DB_VERSION_MAJOR > 1
17399 int major, minor, patch;
17401 version = db_version( &major, &minor, &patch );
17403 if( major != DB_VERSION_MAJOR ||
17404 minor < DB_VERSION_MINOR )
17406 printf("Berkeley DB version mismatch\n"
17407 "\texpected: %s\n\tgot: %s\n",
17408 DB_VERSION_STRING, version);
17414 #if DB_VERSION_MAJOR > 2
17415 db_env_create( NULL, 0 );
17416 #elif DB_VERSION_MAJOR > 1
17417 db_appexit( NULL );
17419 (void) dbopen( NULL, 0, 0, 0, NULL);
17424 if { (eval echo configure:17425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17426 ol_cv_db_db_4_dot_1=yes
17428 echo "configure: failed program was:" >&5
17429 cat conftest.$ac_ext >&5
17431 ol_cv_db_db_4_dot_1=no
17439 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17441 if test $ol_cv_db_db_4_dot_1 = yes ; then
17442 ol_cv_lib_db=-ldb-4.1
17446 if test $ol_cv_lib_db = no ; then
17447 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17448 echo "configure:17449: checking for Berkeley DB link (-ldb-4-1)" >&5
17449 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17450 echo $ac_n "(cached) $ac_c" 1>&6
17455 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17457 cat > conftest.$ac_ext <<EOF
17458 #line 17459 "configure"
17459 #include "confdefs.h"
17461 #ifdef HAVE_DB_185_H
17462 # include <db_185.h>
17467 #ifndef DB_VERSION_MAJOR
17468 # define DB_VERSION_MAJOR 1
17472 #define NULL ((void*)0)
17477 #if DB_VERSION_MAJOR > 1
17480 int major, minor, patch;
17482 version = db_version( &major, &minor, &patch );
17484 if( major != DB_VERSION_MAJOR ||
17485 minor < DB_VERSION_MINOR )
17487 printf("Berkeley DB version mismatch\n"
17488 "\texpected: %s\n\tgot: %s\n",
17489 DB_VERSION_STRING, version);
17495 #if DB_VERSION_MAJOR > 2
17496 db_env_create( NULL, 0 );
17497 #elif DB_VERSION_MAJOR > 1
17498 db_appexit( NULL );
17500 (void) dbopen( NULL, 0, 0, 0, NULL);
17505 if { (eval echo configure:17506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17507 ol_cv_db_db_4_1=yes
17509 echo "configure: failed program was:" >&5
17510 cat conftest.$ac_ext >&5
17520 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17522 if test $ol_cv_db_db_4_1 = yes ; then
17523 ol_cv_lib_db=-ldb-4-1
17527 if test $ol_cv_lib_db = no ; then
17528 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17529 echo "configure:17530: checking for Berkeley DB link (-ldb-4)" >&5
17530 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17531 echo $ac_n "(cached) $ac_c" 1>&6
17536 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17538 cat > conftest.$ac_ext <<EOF
17539 #line 17540 "configure"
17540 #include "confdefs.h"
17542 #ifdef HAVE_DB_185_H
17543 # include <db_185.h>
17548 #ifndef DB_VERSION_MAJOR
17549 # define DB_VERSION_MAJOR 1
17553 #define NULL ((void*)0)
17558 #if DB_VERSION_MAJOR > 1
17561 int major, minor, patch;
17563 version = db_version( &major, &minor, &patch );
17565 if( major != DB_VERSION_MAJOR ||
17566 minor < DB_VERSION_MINOR )
17568 printf("Berkeley DB version mismatch\n"
17569 "\texpected: %s\n\tgot: %s\n",
17570 DB_VERSION_STRING, version);
17576 #if DB_VERSION_MAJOR > 2
17577 db_env_create( NULL, 0 );
17578 #elif DB_VERSION_MAJOR > 1
17579 db_appexit( NULL );
17581 (void) dbopen( NULL, 0, 0, 0, NULL);
17586 if { (eval echo configure:17587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17590 echo "configure: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17601 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17603 if test $ol_cv_db_db_4 = yes ; then
17604 ol_cv_lib_db=-ldb-4
17608 if test $ol_cv_lib_db = no ; then
17609 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17610 echo "configure:17611: checking for Berkeley DB link (-ldb)" >&5
17611 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17612 echo $ac_n "(cached) $ac_c" 1>&6
17617 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17619 cat > conftest.$ac_ext <<EOF
17620 #line 17621 "configure"
17621 #include "confdefs.h"
17623 #ifdef HAVE_DB_185_H
17624 # include <db_185.h>
17629 #ifndef DB_VERSION_MAJOR
17630 # define DB_VERSION_MAJOR 1
17634 #define NULL ((void*)0)
17639 #if DB_VERSION_MAJOR > 1
17642 int major, minor, patch;
17644 version = db_version( &major, &minor, &patch );
17646 if( major != DB_VERSION_MAJOR ||
17647 minor < DB_VERSION_MINOR )
17649 printf("Berkeley DB version mismatch\n"
17650 "\texpected: %s\n\tgot: %s\n",
17651 DB_VERSION_STRING, version);
17657 #if DB_VERSION_MAJOR > 2
17658 db_env_create( NULL, 0 );
17659 #elif DB_VERSION_MAJOR > 1
17660 db_appexit( NULL );
17662 (void) dbopen( NULL, 0, 0, 0, NULL);
17667 if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17671 echo "configure: failed program was:" >&5
17672 cat conftest.$ac_ext >&5
17682 echo "$ac_t""$ol_cv_db_db" 1>&6
17684 if test $ol_cv_db_db = yes ; then
17689 if test $ol_cv_lib_db = no ; then
17690 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17691 echo "configure:17692: checking for Berkeley DB link (-ldb3)" >&5
17692 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17693 echo $ac_n "(cached) $ac_c" 1>&6
17698 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17700 cat > conftest.$ac_ext <<EOF
17701 #line 17702 "configure"
17702 #include "confdefs.h"
17704 #ifdef HAVE_DB_185_H
17705 # include <db_185.h>
17710 #ifndef DB_VERSION_MAJOR
17711 # define DB_VERSION_MAJOR 1
17715 #define NULL ((void*)0)
17720 #if DB_VERSION_MAJOR > 1
17723 int major, minor, patch;
17725 version = db_version( &major, &minor, &patch );
17727 if( major != DB_VERSION_MAJOR ||
17728 minor < DB_VERSION_MINOR )
17730 printf("Berkeley DB version mismatch\n"
17731 "\texpected: %s\n\tgot: %s\n",
17732 DB_VERSION_STRING, version);
17738 #if DB_VERSION_MAJOR > 2
17739 db_env_create( NULL, 0 );
17740 #elif DB_VERSION_MAJOR > 1
17741 db_appexit( NULL );
17743 (void) dbopen( NULL, 0, 0, 0, NULL);
17748 if { (eval echo configure:17749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17763 echo "$ac_t""$ol_cv_db_db3" 1>&6
17765 if test $ol_cv_db_db3 = yes ; then
17770 if test $ol_cv_lib_db = no ; then
17771 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17772 echo "configure:17773: checking for Berkeley DB link (-ldb-3)" >&5
17773 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17774 echo $ac_n "(cached) $ac_c" 1>&6
17779 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17781 cat > conftest.$ac_ext <<EOF
17782 #line 17783 "configure"
17783 #include "confdefs.h"
17785 #ifdef HAVE_DB_185_H
17786 # include <db_185.h>
17791 #ifndef DB_VERSION_MAJOR
17792 # define DB_VERSION_MAJOR 1
17796 #define NULL ((void*)0)
17801 #if DB_VERSION_MAJOR > 1
17804 int major, minor, patch;
17806 version = db_version( &major, &minor, &patch );
17808 if( major != DB_VERSION_MAJOR ||
17809 minor < DB_VERSION_MINOR )
17811 printf("Berkeley DB version mismatch\n"
17812 "\texpected: %s\n\tgot: %s\n",
17813 DB_VERSION_STRING, version);
17819 #if DB_VERSION_MAJOR > 2
17820 db_env_create( NULL, 0 );
17821 #elif DB_VERSION_MAJOR > 1
17822 db_appexit( NULL );
17824 (void) dbopen( NULL, 0, 0, 0, NULL);
17829 if { (eval echo configure:17830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17833 echo "configure: failed program was:" >&5
17834 cat conftest.$ac_ext >&5
17844 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17846 if test $ol_cv_db_db_3 = yes ; then
17847 ol_cv_lib_db=-ldb-3
17851 if test $ol_cv_lib_db = no ; then
17852 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17853 echo "configure:17854: checking for Berkeley DB link (-ldb2)" >&5
17854 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17855 echo $ac_n "(cached) $ac_c" 1>&6
17860 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17862 cat > conftest.$ac_ext <<EOF
17863 #line 17864 "configure"
17864 #include "confdefs.h"
17866 #ifdef HAVE_DB_185_H
17867 # include <db_185.h>
17872 #ifndef DB_VERSION_MAJOR
17873 # define DB_VERSION_MAJOR 1
17877 #define NULL ((void*)0)
17882 #if DB_VERSION_MAJOR > 1
17885 int major, minor, patch;
17887 version = db_version( &major, &minor, &patch );
17889 if( major != DB_VERSION_MAJOR ||
17890 minor < DB_VERSION_MINOR )
17892 printf("Berkeley DB version mismatch\n"
17893 "\texpected: %s\n\tgot: %s\n",
17894 DB_VERSION_STRING, version);
17900 #if DB_VERSION_MAJOR > 2
17901 db_env_create( NULL, 0 );
17902 #elif DB_VERSION_MAJOR > 1
17903 db_appexit( NULL );
17905 (void) dbopen( NULL, 0, 0, 0, NULL);
17910 if { (eval echo configure:17911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17914 echo "configure: failed program was:" >&5
17915 cat conftest.$ac_ext >&5
17925 echo "$ac_t""$ol_cv_db_db2" 1>&6
17927 if test $ol_cv_db_db2 = yes ; then
17932 if test $ol_cv_lib_db = no ; then
17933 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17934 echo "configure:17935: checking for Berkeley DB link (-ldb-2)" >&5
17935 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17936 echo $ac_n "(cached) $ac_c" 1>&6
17941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17943 cat > conftest.$ac_ext <<EOF
17944 #line 17945 "configure"
17945 #include "confdefs.h"
17947 #ifdef HAVE_DB_185_H
17948 # include <db_185.h>
17953 #ifndef DB_VERSION_MAJOR
17954 # define DB_VERSION_MAJOR 1
17958 #define NULL ((void*)0)
17963 #if DB_VERSION_MAJOR > 1
17966 int major, minor, patch;
17968 version = db_version( &major, &minor, &patch );
17970 if( major != DB_VERSION_MAJOR ||
17971 minor < DB_VERSION_MINOR )
17973 printf("Berkeley DB version mismatch\n"
17974 "\texpected: %s\n\tgot: %s\n",
17975 DB_VERSION_STRING, version);
17981 #if DB_VERSION_MAJOR > 2
17982 db_env_create( NULL, 0 );
17983 #elif DB_VERSION_MAJOR > 1
17984 db_appexit( NULL );
17986 (void) dbopen( NULL, 0, 0, 0, NULL);
17991 if { (eval echo configure:17992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17995 echo "configure: failed program was:" >&5
17996 cat conftest.$ac_ext >&5
18006 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18008 if test $ol_cv_db_db_2 = yes ; then
18009 ol_cv_lib_db=-ldb-2
18013 if test $ol_cv_lib_db = no ; then
18014 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18015 echo "configure:18016: checking for Berkeley DB link (-ldb1)" >&5
18016 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18017 echo $ac_n "(cached) $ac_c" 1>&6
18022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18024 cat > conftest.$ac_ext <<EOF
18025 #line 18026 "configure"
18026 #include "confdefs.h"
18028 #ifdef HAVE_DB_185_H
18029 # include <db_185.h>
18034 #ifndef DB_VERSION_MAJOR
18035 # define DB_VERSION_MAJOR 1
18039 #define NULL ((void*)0)
18044 #if DB_VERSION_MAJOR > 1
18047 int major, minor, patch;
18049 version = db_version( &major, &minor, &patch );
18051 if( major != DB_VERSION_MAJOR ||
18052 minor < DB_VERSION_MINOR )
18054 printf("Berkeley DB version mismatch\n"
18055 "\texpected: %s\n\tgot: %s\n",
18056 DB_VERSION_STRING, version);
18062 #if DB_VERSION_MAJOR > 2
18063 db_env_create( NULL, 0 );
18064 #elif DB_VERSION_MAJOR > 1
18065 db_appexit( NULL );
18067 (void) dbopen( NULL, 0, 0, 0, NULL);
18072 if { (eval echo configure:18073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18076 echo "configure: failed program was:" >&5
18077 cat conftest.$ac_ext >&5
18087 echo "$ac_t""$ol_cv_db_db1" 1>&6
18089 if test $ol_cv_db_db1 = yes ; then
18094 if test $ol_cv_lib_db = no ; then
18095 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18096 echo "configure:18097: checking for Berkeley DB link (-ldb-1)" >&5
18097 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18098 echo $ac_n "(cached) $ac_c" 1>&6
18103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18105 cat > conftest.$ac_ext <<EOF
18106 #line 18107 "configure"
18107 #include "confdefs.h"
18109 #ifdef HAVE_DB_185_H
18110 # include <db_185.h>
18115 #ifndef DB_VERSION_MAJOR
18116 # define DB_VERSION_MAJOR 1
18120 #define NULL ((void*)0)
18125 #if DB_VERSION_MAJOR > 1
18128 int major, minor, patch;
18130 version = db_version( &major, &minor, &patch );
18132 if( major != DB_VERSION_MAJOR ||
18133 minor < DB_VERSION_MINOR )
18135 printf("Berkeley DB version mismatch\n"
18136 "\texpected: %s\n\tgot: %s\n",
18137 DB_VERSION_STRING, version);
18143 #if DB_VERSION_MAJOR > 2
18144 db_env_create( NULL, 0 );
18145 #elif DB_VERSION_MAJOR > 1
18146 db_appexit( NULL );
18148 (void) dbopen( NULL, 0, 0, 0, NULL);
18153 if { (eval echo configure:18154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18157 echo "configure: failed program was:" >&5
18158 cat conftest.$ac_ext >&5
18168 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18170 if test $ol_cv_db_db_1 = yes ; then
18171 ol_cv_lib_db=-ldb-1
18176 if test "$ol_cv_lib_db" != no ; then
18177 ol_cv_berkeley_db=yes
18183 ol_cv_berkeley_db=no
18186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18188 echo "configure:18189: checking for $ac_hdr" >&5
18189 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18190 echo $ac_n "(cached) $ac_c" 1>&6
18192 cat > conftest.$ac_ext <<EOF
18193 #line 18194 "configure"
18194 #include "confdefs.h"
18197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18198 { (eval echo configure:18199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18200 if test -z "$ac_err"; then
18202 eval "ac_cv_header_$ac_safe=yes"
18205 echo "configure: failed program was:" >&5
18206 cat conftest.$ac_ext >&5
18208 eval "ac_cv_header_$ac_safe=no"
18212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18213 echo "$ac_t""yes" 1>&6
18214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18215 cat >> confdefs.h <<EOF
18216 #define $ac_tr_hdr 1
18220 echo "$ac_t""no" 1>&6
18224 if test $ac_cv_header_db_h = yes; then
18226 if test $ol_cv_lib_db = no ; then
18227 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18228 echo "configure:18229: checking for Berkeley DB link (default)" >&5
18229 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18230 echo $ac_n "(cached) $ac_c" 1>&6
18235 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18237 cat > conftest.$ac_ext <<EOF
18238 #line 18239 "configure"
18239 #include "confdefs.h"
18241 #ifdef HAVE_DB_185_H
18242 # include <db_185.h>
18247 #ifndef DB_VERSION_MAJOR
18248 # define DB_VERSION_MAJOR 1
18252 #define NULL ((void*)0)
18257 #if DB_VERSION_MAJOR > 1
18260 int major, minor, patch;
18262 version = db_version( &major, &minor, &patch );
18264 if( major != DB_VERSION_MAJOR ||
18265 minor < DB_VERSION_MINOR )
18267 printf("Berkeley DB version mismatch\n"
18268 "\texpected: %s\n\tgot: %s\n",
18269 DB_VERSION_STRING, version);
18275 #if DB_VERSION_MAJOR > 2
18276 db_env_create( NULL, 0 );
18277 #elif DB_VERSION_MAJOR > 1
18278 db_appexit( NULL );
18280 (void) dbopen( NULL, 0, 0, 0, NULL);
18285 if { (eval echo configure:18286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18289 echo "configure: failed program was:" >&5
18290 cat conftest.$ac_ext >&5
18300 echo "$ac_t""$ol_cv_db_none" 1>&6
18302 if test $ol_cv_db_none = yes ; then
18307 if test $ol_cv_lib_db = no ; then
18308 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18309 echo "configure:18310: checking for Berkeley DB link (-ldb42)" >&5
18310 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18311 echo $ac_n "(cached) $ac_c" 1>&6
18316 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18318 cat > conftest.$ac_ext <<EOF
18319 #line 18320 "configure"
18320 #include "confdefs.h"
18322 #ifdef HAVE_DB_185_H
18323 # include <db_185.h>
18328 #ifndef DB_VERSION_MAJOR
18329 # define DB_VERSION_MAJOR 1
18333 #define NULL ((void*)0)
18338 #if DB_VERSION_MAJOR > 1
18341 int major, minor, patch;
18343 version = db_version( &major, &minor, &patch );
18345 if( major != DB_VERSION_MAJOR ||
18346 minor < DB_VERSION_MINOR )
18348 printf("Berkeley DB version mismatch\n"
18349 "\texpected: %s\n\tgot: %s\n",
18350 DB_VERSION_STRING, version);
18356 #if DB_VERSION_MAJOR > 2
18357 db_env_create( NULL, 0 );
18358 #elif DB_VERSION_MAJOR > 1
18359 db_appexit( NULL );
18361 (void) dbopen( NULL, 0, 0, 0, NULL);
18366 if { (eval echo configure:18367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18370 echo "configure: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18381 echo "$ac_t""$ol_cv_db_db42" 1>&6
18383 if test $ol_cv_db_db42 = yes ; then
18384 ol_cv_lib_db=-ldb42
18388 if test $ol_cv_lib_db = no ; then
18389 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18390 echo "configure:18391: checking for Berkeley DB link (-ldb-42)" >&5
18391 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18392 echo $ac_n "(cached) $ac_c" 1>&6
18397 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18399 cat > conftest.$ac_ext <<EOF
18400 #line 18401 "configure"
18401 #include "confdefs.h"
18403 #ifdef HAVE_DB_185_H
18404 # include <db_185.h>
18409 #ifndef DB_VERSION_MAJOR
18410 # define DB_VERSION_MAJOR 1
18414 #define NULL ((void*)0)
18419 #if DB_VERSION_MAJOR > 1
18422 int major, minor, patch;
18424 version = db_version( &major, &minor, &patch );
18426 if( major != DB_VERSION_MAJOR ||
18427 minor < DB_VERSION_MINOR )
18429 printf("Berkeley DB version mismatch\n"
18430 "\texpected: %s\n\tgot: %s\n",
18431 DB_VERSION_STRING, version);
18437 #if DB_VERSION_MAJOR > 2
18438 db_env_create( NULL, 0 );
18439 #elif DB_VERSION_MAJOR > 1
18440 db_appexit( NULL );
18442 (void) dbopen( NULL, 0, 0, 0, NULL);
18447 if { (eval echo configure:18448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18451 echo "configure: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18462 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18464 if test $ol_cv_db_db_42 = yes ; then
18465 ol_cv_lib_db=-ldb-42
18469 if test $ol_cv_lib_db = no ; then
18470 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18471 echo "configure:18472: checking for Berkeley DB link (-ldb-4.2)" >&5
18472 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18473 echo $ac_n "(cached) $ac_c" 1>&6
18478 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18480 cat > conftest.$ac_ext <<EOF
18481 #line 18482 "configure"
18482 #include "confdefs.h"
18484 #ifdef HAVE_DB_185_H
18485 # include <db_185.h>
18490 #ifndef DB_VERSION_MAJOR
18491 # define DB_VERSION_MAJOR 1
18495 #define NULL ((void*)0)
18500 #if DB_VERSION_MAJOR > 1
18503 int major, minor, patch;
18505 version = db_version( &major, &minor, &patch );
18507 if( major != DB_VERSION_MAJOR ||
18508 minor < DB_VERSION_MINOR )
18510 printf("Berkeley DB version mismatch\n"
18511 "\texpected: %s\n\tgot: %s\n",
18512 DB_VERSION_STRING, version);
18518 #if DB_VERSION_MAJOR > 2
18519 db_env_create( NULL, 0 );
18520 #elif DB_VERSION_MAJOR > 1
18521 db_appexit( NULL );
18523 (void) dbopen( NULL, 0, 0, 0, NULL);
18528 if { (eval echo configure:18529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18530 ol_cv_db_db_4_dot_2=yes
18532 echo "configure: failed program was:" >&5
18533 cat conftest.$ac_ext >&5
18535 ol_cv_db_db_4_dot_2=no
18543 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18545 if test $ol_cv_db_db_4_dot_2 = yes ; then
18546 ol_cv_lib_db=-ldb-4.2
18550 if test $ol_cv_lib_db = no ; then
18551 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18552 echo "configure:18553: checking for Berkeley DB link (-ldb-4-2)" >&5
18553 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18554 echo $ac_n "(cached) $ac_c" 1>&6
18559 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18561 cat > conftest.$ac_ext <<EOF
18562 #line 18563 "configure"
18563 #include "confdefs.h"
18565 #ifdef HAVE_DB_185_H
18566 # include <db_185.h>
18571 #ifndef DB_VERSION_MAJOR
18572 # define DB_VERSION_MAJOR 1
18576 #define NULL ((void*)0)
18581 #if DB_VERSION_MAJOR > 1
18584 int major, minor, patch;
18586 version = db_version( &major, &minor, &patch );
18588 if( major != DB_VERSION_MAJOR ||
18589 minor < DB_VERSION_MINOR )
18591 printf("Berkeley DB version mismatch\n"
18592 "\texpected: %s\n\tgot: %s\n",
18593 DB_VERSION_STRING, version);
18599 #if DB_VERSION_MAJOR > 2
18600 db_env_create( NULL, 0 );
18601 #elif DB_VERSION_MAJOR > 1
18602 db_appexit( NULL );
18604 (void) dbopen( NULL, 0, 0, 0, NULL);
18609 if { (eval echo configure:18610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18611 ol_cv_db_db_4_2=yes
18613 echo "configure: failed program was:" >&5
18614 cat conftest.$ac_ext >&5
18624 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18626 if test $ol_cv_db_db_4_2 = yes ; then
18627 ol_cv_lib_db=-ldb-4-2
18631 if test $ol_cv_lib_db = no ; then
18632 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18633 echo "configure:18634: checking for Berkeley DB link (-ldb-4)" >&5
18634 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18635 echo $ac_n "(cached) $ac_c" 1>&6
18640 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18642 cat > conftest.$ac_ext <<EOF
18643 #line 18644 "configure"
18644 #include "confdefs.h"
18646 #ifdef HAVE_DB_185_H
18647 # include <db_185.h>
18652 #ifndef DB_VERSION_MAJOR
18653 # define DB_VERSION_MAJOR 1
18657 #define NULL ((void*)0)
18662 #if DB_VERSION_MAJOR > 1
18665 int major, minor, patch;
18667 version = db_version( &major, &minor, &patch );
18669 if( major != DB_VERSION_MAJOR ||
18670 minor < DB_VERSION_MINOR )
18672 printf("Berkeley DB version mismatch\n"
18673 "\texpected: %s\n\tgot: %s\n",
18674 DB_VERSION_STRING, version);
18680 #if DB_VERSION_MAJOR > 2
18681 db_env_create( NULL, 0 );
18682 #elif DB_VERSION_MAJOR > 1
18683 db_appexit( NULL );
18685 (void) dbopen( NULL, 0, 0, 0, NULL);
18690 if { (eval echo configure:18691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18694 echo "configure: failed program was:" >&5
18695 cat conftest.$ac_ext >&5
18705 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18707 if test $ol_cv_db_db_4 = yes ; then
18708 ol_cv_lib_db=-ldb-4
18712 if test $ol_cv_lib_db = no ; then
18713 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18714 echo "configure:18715: checking for Berkeley DB link (-ldb4)" >&5
18715 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18716 echo $ac_n "(cached) $ac_c" 1>&6
18721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18723 cat > conftest.$ac_ext <<EOF
18724 #line 18725 "configure"
18725 #include "confdefs.h"
18727 #ifdef HAVE_DB_185_H
18728 # include <db_185.h>
18733 #ifndef DB_VERSION_MAJOR
18734 # define DB_VERSION_MAJOR 1
18738 #define NULL ((void*)0)
18743 #if DB_VERSION_MAJOR > 1
18746 int major, minor, patch;
18748 version = db_version( &major, &minor, &patch );
18750 if( major != DB_VERSION_MAJOR ||
18751 minor < DB_VERSION_MINOR )
18753 printf("Berkeley DB version mismatch\n"
18754 "\texpected: %s\n\tgot: %s\n",
18755 DB_VERSION_STRING, version);
18761 #if DB_VERSION_MAJOR > 2
18762 db_env_create( NULL, 0 );
18763 #elif DB_VERSION_MAJOR > 1
18764 db_appexit( NULL );
18766 (void) dbopen( NULL, 0, 0, 0, NULL);
18771 if { (eval echo configure:18772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18775 echo "configure: failed program was:" >&5
18776 cat conftest.$ac_ext >&5
18786 echo "$ac_t""$ol_cv_db_db4" 1>&6
18788 if test $ol_cv_db_db4 = yes ; then
18793 if test $ol_cv_lib_db = no ; then
18794 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18795 echo "configure:18796: checking for Berkeley DB link (-ldb41)" >&5
18796 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18797 echo $ac_n "(cached) $ac_c" 1>&6
18802 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18804 cat > conftest.$ac_ext <<EOF
18805 #line 18806 "configure"
18806 #include "confdefs.h"
18808 #ifdef HAVE_DB_185_H
18809 # include <db_185.h>
18814 #ifndef DB_VERSION_MAJOR
18815 # define DB_VERSION_MAJOR 1
18819 #define NULL ((void*)0)
18824 #if DB_VERSION_MAJOR > 1
18827 int major, minor, patch;
18829 version = db_version( &major, &minor, &patch );
18831 if( major != DB_VERSION_MAJOR ||
18832 minor < DB_VERSION_MINOR )
18834 printf("Berkeley DB version mismatch\n"
18835 "\texpected: %s\n\tgot: %s\n",
18836 DB_VERSION_STRING, version);
18842 #if DB_VERSION_MAJOR > 2
18843 db_env_create( NULL, 0 );
18844 #elif DB_VERSION_MAJOR > 1
18845 db_appexit( NULL );
18847 (void) dbopen( NULL, 0, 0, 0, NULL);
18852 if { (eval echo configure:18853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18856 echo "configure: failed program was:" >&5
18857 cat conftest.$ac_ext >&5
18867 echo "$ac_t""$ol_cv_db_db41" 1>&6
18869 if test $ol_cv_db_db41 = yes ; then
18870 ol_cv_lib_db=-ldb41
18874 if test $ol_cv_lib_db = no ; then
18875 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18876 echo "configure:18877: checking for Berkeley DB link (-ldb-41)" >&5
18877 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18878 echo $ac_n "(cached) $ac_c" 1>&6
18883 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18885 cat > conftest.$ac_ext <<EOF
18886 #line 18887 "configure"
18887 #include "confdefs.h"
18889 #ifdef HAVE_DB_185_H
18890 # include <db_185.h>
18895 #ifndef DB_VERSION_MAJOR
18896 # define DB_VERSION_MAJOR 1
18900 #define NULL ((void*)0)
18905 #if DB_VERSION_MAJOR > 1
18908 int major, minor, patch;
18910 version = db_version( &major, &minor, &patch );
18912 if( major != DB_VERSION_MAJOR ||
18913 minor < DB_VERSION_MINOR )
18915 printf("Berkeley DB version mismatch\n"
18916 "\texpected: %s\n\tgot: %s\n",
18917 DB_VERSION_STRING, version);
18923 #if DB_VERSION_MAJOR > 2
18924 db_env_create( NULL, 0 );
18925 #elif DB_VERSION_MAJOR > 1
18926 db_appexit( NULL );
18928 (void) dbopen( NULL, 0, 0, 0, NULL);
18933 if { (eval echo configure:18934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18937 echo "configure: failed program was:" >&5
18938 cat conftest.$ac_ext >&5
18948 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18950 if test $ol_cv_db_db_41 = yes ; then
18951 ol_cv_lib_db=-ldb-41
18955 if test $ol_cv_lib_db = no ; then
18956 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18957 echo "configure:18958: checking for Berkeley DB link (-ldb-4.1)" >&5
18958 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18959 echo $ac_n "(cached) $ac_c" 1>&6
18964 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18966 cat > conftest.$ac_ext <<EOF
18967 #line 18968 "configure"
18968 #include "confdefs.h"
18970 #ifdef HAVE_DB_185_H
18971 # include <db_185.h>
18976 #ifndef DB_VERSION_MAJOR
18977 # define DB_VERSION_MAJOR 1
18981 #define NULL ((void*)0)
18986 #if DB_VERSION_MAJOR > 1
18989 int major, minor, patch;
18991 version = db_version( &major, &minor, &patch );
18993 if( major != DB_VERSION_MAJOR ||
18994 minor < DB_VERSION_MINOR )
18996 printf("Berkeley DB version mismatch\n"
18997 "\texpected: %s\n\tgot: %s\n",
18998 DB_VERSION_STRING, version);
19004 #if DB_VERSION_MAJOR > 2
19005 db_env_create( NULL, 0 );
19006 #elif DB_VERSION_MAJOR > 1
19007 db_appexit( NULL );
19009 (void) dbopen( NULL, 0, 0, 0, NULL);
19014 if { (eval echo configure:19015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19016 ol_cv_db_db_4_dot_1=yes
19018 echo "configure: failed program was:" >&5
19019 cat conftest.$ac_ext >&5
19021 ol_cv_db_db_4_dot_1=no
19029 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19031 if test $ol_cv_db_db_4_dot_1 = yes ; then
19032 ol_cv_lib_db=-ldb-4.1
19036 if test $ol_cv_lib_db = no ; then
19037 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19038 echo "configure:19039: checking for Berkeley DB link (-ldb-4-1)" >&5
19039 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19040 echo $ac_n "(cached) $ac_c" 1>&6
19045 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19047 cat > conftest.$ac_ext <<EOF
19048 #line 19049 "configure"
19049 #include "confdefs.h"
19051 #ifdef HAVE_DB_185_H
19052 # include <db_185.h>
19057 #ifndef DB_VERSION_MAJOR
19058 # define DB_VERSION_MAJOR 1
19062 #define NULL ((void*)0)
19067 #if DB_VERSION_MAJOR > 1
19070 int major, minor, patch;
19072 version = db_version( &major, &minor, &patch );
19074 if( major != DB_VERSION_MAJOR ||
19075 minor < DB_VERSION_MINOR )
19077 printf("Berkeley DB version mismatch\n"
19078 "\texpected: %s\n\tgot: %s\n",
19079 DB_VERSION_STRING, version);
19085 #if DB_VERSION_MAJOR > 2
19086 db_env_create( NULL, 0 );
19087 #elif DB_VERSION_MAJOR > 1
19088 db_appexit( NULL );
19090 (void) dbopen( NULL, 0, 0, 0, NULL);
19095 if { (eval echo configure:19096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19097 ol_cv_db_db_4_1=yes
19099 echo "configure: failed program was:" >&5
19100 cat conftest.$ac_ext >&5
19110 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19112 if test $ol_cv_db_db_4_1 = yes ; then
19113 ol_cv_lib_db=-ldb-4-1
19117 if test $ol_cv_lib_db = no ; then
19118 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19119 echo "configure:19120: checking for Berkeley DB link (-ldb-4)" >&5
19120 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19121 echo $ac_n "(cached) $ac_c" 1>&6
19126 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19128 cat > conftest.$ac_ext <<EOF
19129 #line 19130 "configure"
19130 #include "confdefs.h"
19132 #ifdef HAVE_DB_185_H
19133 # include <db_185.h>
19138 #ifndef DB_VERSION_MAJOR
19139 # define DB_VERSION_MAJOR 1
19143 #define NULL ((void*)0)
19148 #if DB_VERSION_MAJOR > 1
19151 int major, minor, patch;
19153 version = db_version( &major, &minor, &patch );
19155 if( major != DB_VERSION_MAJOR ||
19156 minor < DB_VERSION_MINOR )
19158 printf("Berkeley DB version mismatch\n"
19159 "\texpected: %s\n\tgot: %s\n",
19160 DB_VERSION_STRING, version);
19166 #if DB_VERSION_MAJOR > 2
19167 db_env_create( NULL, 0 );
19168 #elif DB_VERSION_MAJOR > 1
19169 db_appexit( NULL );
19171 (void) dbopen( NULL, 0, 0, 0, NULL);
19176 if { (eval echo configure:19177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19180 echo "configure: failed program was:" >&5
19181 cat conftest.$ac_ext >&5
19191 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19193 if test $ol_cv_db_db_4 = yes ; then
19194 ol_cv_lib_db=-ldb-4
19198 if test $ol_cv_lib_db = no ; then
19199 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19200 echo "configure:19201: checking for Berkeley DB link (-ldb)" >&5
19201 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19202 echo $ac_n "(cached) $ac_c" 1>&6
19207 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19209 cat > conftest.$ac_ext <<EOF
19210 #line 19211 "configure"
19211 #include "confdefs.h"
19213 #ifdef HAVE_DB_185_H
19214 # include <db_185.h>
19219 #ifndef DB_VERSION_MAJOR
19220 # define DB_VERSION_MAJOR 1
19224 #define NULL ((void*)0)
19229 #if DB_VERSION_MAJOR > 1
19232 int major, minor, patch;
19234 version = db_version( &major, &minor, &patch );
19236 if( major != DB_VERSION_MAJOR ||
19237 minor < DB_VERSION_MINOR )
19239 printf("Berkeley DB version mismatch\n"
19240 "\texpected: %s\n\tgot: %s\n",
19241 DB_VERSION_STRING, version);
19247 #if DB_VERSION_MAJOR > 2
19248 db_env_create( NULL, 0 );
19249 #elif DB_VERSION_MAJOR > 1
19250 db_appexit( NULL );
19252 (void) dbopen( NULL, 0, 0, 0, NULL);
19257 if { (eval echo configure:19258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19261 echo "configure: failed program was:" >&5
19262 cat conftest.$ac_ext >&5
19272 echo "$ac_t""$ol_cv_db_db" 1>&6
19274 if test $ol_cv_db_db = yes ; then
19279 if test $ol_cv_lib_db = no ; then
19280 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19281 echo "configure:19282: checking for Berkeley DB link (-ldb3)" >&5
19282 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19283 echo $ac_n "(cached) $ac_c" 1>&6
19288 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19290 cat > conftest.$ac_ext <<EOF
19291 #line 19292 "configure"
19292 #include "confdefs.h"
19294 #ifdef HAVE_DB_185_H
19295 # include <db_185.h>
19300 #ifndef DB_VERSION_MAJOR
19301 # define DB_VERSION_MAJOR 1
19305 #define NULL ((void*)0)
19310 #if DB_VERSION_MAJOR > 1
19313 int major, minor, patch;
19315 version = db_version( &major, &minor, &patch );
19317 if( major != DB_VERSION_MAJOR ||
19318 minor < DB_VERSION_MINOR )
19320 printf("Berkeley DB version mismatch\n"
19321 "\texpected: %s\n\tgot: %s\n",
19322 DB_VERSION_STRING, version);
19328 #if DB_VERSION_MAJOR > 2
19329 db_env_create( NULL, 0 );
19330 #elif DB_VERSION_MAJOR > 1
19331 db_appexit( NULL );
19333 (void) dbopen( NULL, 0, 0, 0, NULL);
19338 if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19342 echo "configure: failed program was:" >&5
19343 cat conftest.$ac_ext >&5
19353 echo "$ac_t""$ol_cv_db_db3" 1>&6
19355 if test $ol_cv_db_db3 = yes ; then
19360 if test $ol_cv_lib_db = no ; then
19361 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19362 echo "configure:19363: checking for Berkeley DB link (-ldb-3)" >&5
19363 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19364 echo $ac_n "(cached) $ac_c" 1>&6
19369 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19371 cat > conftest.$ac_ext <<EOF
19372 #line 19373 "configure"
19373 #include "confdefs.h"
19375 #ifdef HAVE_DB_185_H
19376 # include <db_185.h>
19381 #ifndef DB_VERSION_MAJOR
19382 # define DB_VERSION_MAJOR 1
19386 #define NULL ((void*)0)
19391 #if DB_VERSION_MAJOR > 1
19394 int major, minor, patch;
19396 version = db_version( &major, &minor, &patch );
19398 if( major != DB_VERSION_MAJOR ||
19399 minor < DB_VERSION_MINOR )
19401 printf("Berkeley DB version mismatch\n"
19402 "\texpected: %s\n\tgot: %s\n",
19403 DB_VERSION_STRING, version);
19409 #if DB_VERSION_MAJOR > 2
19410 db_env_create( NULL, 0 );
19411 #elif DB_VERSION_MAJOR > 1
19412 db_appexit( NULL );
19414 (void) dbopen( NULL, 0, 0, 0, NULL);
19419 if { (eval echo configure:19420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19423 echo "configure: failed program was:" >&5
19424 cat conftest.$ac_ext >&5
19434 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19436 if test $ol_cv_db_db_3 = yes ; then
19437 ol_cv_lib_db=-ldb-3
19441 if test $ol_cv_lib_db = no ; then
19442 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19443 echo "configure:19444: checking for Berkeley DB link (-ldb2)" >&5
19444 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19445 echo $ac_n "(cached) $ac_c" 1>&6
19450 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19452 cat > conftest.$ac_ext <<EOF
19453 #line 19454 "configure"
19454 #include "confdefs.h"
19456 #ifdef HAVE_DB_185_H
19457 # include <db_185.h>
19462 #ifndef DB_VERSION_MAJOR
19463 # define DB_VERSION_MAJOR 1
19467 #define NULL ((void*)0)
19472 #if DB_VERSION_MAJOR > 1
19475 int major, minor, patch;
19477 version = db_version( &major, &minor, &patch );
19479 if( major != DB_VERSION_MAJOR ||
19480 minor < DB_VERSION_MINOR )
19482 printf("Berkeley DB version mismatch\n"
19483 "\texpected: %s\n\tgot: %s\n",
19484 DB_VERSION_STRING, version);
19490 #if DB_VERSION_MAJOR > 2
19491 db_env_create( NULL, 0 );
19492 #elif DB_VERSION_MAJOR > 1
19493 db_appexit( NULL );
19495 (void) dbopen( NULL, 0, 0, 0, NULL);
19500 if { (eval echo configure:19501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19504 echo "configure: failed program was:" >&5
19505 cat conftest.$ac_ext >&5
19515 echo "$ac_t""$ol_cv_db_db2" 1>&6
19517 if test $ol_cv_db_db2 = yes ; then
19522 if test $ol_cv_lib_db = no ; then
19523 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19524 echo "configure:19525: checking for Berkeley DB link (-ldb-2)" >&5
19525 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19526 echo $ac_n "(cached) $ac_c" 1>&6
19531 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19533 cat > conftest.$ac_ext <<EOF
19534 #line 19535 "configure"
19535 #include "confdefs.h"
19537 #ifdef HAVE_DB_185_H
19538 # include <db_185.h>
19543 #ifndef DB_VERSION_MAJOR
19544 # define DB_VERSION_MAJOR 1
19548 #define NULL ((void*)0)
19553 #if DB_VERSION_MAJOR > 1
19556 int major, minor, patch;
19558 version = db_version( &major, &minor, &patch );
19560 if( major != DB_VERSION_MAJOR ||
19561 minor < DB_VERSION_MINOR )
19563 printf("Berkeley DB version mismatch\n"
19564 "\texpected: %s\n\tgot: %s\n",
19565 DB_VERSION_STRING, version);
19571 #if DB_VERSION_MAJOR > 2
19572 db_env_create( NULL, 0 );
19573 #elif DB_VERSION_MAJOR > 1
19574 db_appexit( NULL );
19576 (void) dbopen( NULL, 0, 0, 0, NULL);
19581 if { (eval echo configure:19582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19585 echo "configure: failed program was:" >&5
19586 cat conftest.$ac_ext >&5
19596 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19598 if test $ol_cv_db_db_2 = yes ; then
19599 ol_cv_lib_db=-ldb-2
19603 if test $ol_cv_lib_db = no ; then
19604 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19605 echo "configure:19606: checking for Berkeley DB link (-ldb1)" >&5
19606 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19607 echo $ac_n "(cached) $ac_c" 1>&6
19612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19614 cat > conftest.$ac_ext <<EOF
19615 #line 19616 "configure"
19616 #include "confdefs.h"
19618 #ifdef HAVE_DB_185_H
19619 # include <db_185.h>
19624 #ifndef DB_VERSION_MAJOR
19625 # define DB_VERSION_MAJOR 1
19629 #define NULL ((void*)0)
19634 #if DB_VERSION_MAJOR > 1
19637 int major, minor, patch;
19639 version = db_version( &major, &minor, &patch );
19641 if( major != DB_VERSION_MAJOR ||
19642 minor < DB_VERSION_MINOR )
19644 printf("Berkeley DB version mismatch\n"
19645 "\texpected: %s\n\tgot: %s\n",
19646 DB_VERSION_STRING, version);
19652 #if DB_VERSION_MAJOR > 2
19653 db_env_create( NULL, 0 );
19654 #elif DB_VERSION_MAJOR > 1
19655 db_appexit( NULL );
19657 (void) dbopen( NULL, 0, 0, 0, NULL);
19662 if { (eval echo configure:19663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19666 echo "configure: failed program was:" >&5
19667 cat conftest.$ac_ext >&5
19677 echo "$ac_t""$ol_cv_db_db1" 1>&6
19679 if test $ol_cv_db_db1 = yes ; then
19684 if test $ol_cv_lib_db = no ; then
19685 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19686 echo "configure:19687: checking for Berkeley DB link (-ldb-1)" >&5
19687 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19688 echo $ac_n "(cached) $ac_c" 1>&6
19693 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19695 cat > conftest.$ac_ext <<EOF
19696 #line 19697 "configure"
19697 #include "confdefs.h"
19699 #ifdef HAVE_DB_185_H
19700 # include <db_185.h>
19705 #ifndef DB_VERSION_MAJOR
19706 # define DB_VERSION_MAJOR 1
19710 #define NULL ((void*)0)
19715 #if DB_VERSION_MAJOR > 1
19718 int major, minor, patch;
19720 version = db_version( &major, &minor, &patch );
19722 if( major != DB_VERSION_MAJOR ||
19723 minor < DB_VERSION_MINOR )
19725 printf("Berkeley DB version mismatch\n"
19726 "\texpected: %s\n\tgot: %s\n",
19727 DB_VERSION_STRING, version);
19733 #if DB_VERSION_MAJOR > 2
19734 db_env_create( NULL, 0 );
19735 #elif DB_VERSION_MAJOR > 1
19736 db_appexit( NULL );
19738 (void) dbopen( NULL, 0, 0, 0, NULL);
19743 if { (eval echo configure:19744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19747 echo "configure: failed program was:" >&5
19748 cat conftest.$ac_ext >&5
19758 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19760 if test $ol_cv_db_db_1 = yes ; then
19761 ol_cv_lib_db=-ldb-1
19766 if test "$ol_cv_lib_db" != no ; then
19767 ol_cv_berkeley_db=yes
19768 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19769 echo "configure:19770: checking for Berkeley DB thread support" >&5
19770 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19771 echo $ac_n "(cached) $ac_c" 1>&6
19775 LIBS="$LTHREAD_LIBS $LIBS"
19776 if test $ol_cv_lib_db != yes ; then
19777 LIBS="$ol_cv_lib_db $LIBS"
19780 if test "$cross_compiling" = yes; then
19781 ol_cv_berkeley_db_thread=cross
19783 cat > conftest.$ac_ext <<EOF
19784 #line 19785 "configure"
19785 #include "confdefs.h"
19787 #ifdef HAVE_DB_185_H
19793 #define NULL ((void *)0)
19798 u_int32_t flags = DB_CREATE |
19804 #if DB_VERSION_MAJOR > 2
19805 DB_ENV *env = NULL;
19807 rc = db_env_create( &env, 0 );
19809 flags |= DB_INIT_MPOOL;
19810 #ifdef DB_MPOOL_PRIVATE
19811 flags |= DB_MPOOL_PRIVATE;
19815 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19819 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19820 rc = env->open( env, NULL, flags, 0 );
19822 rc = env->open( env, NULL, NULL, flags, 0 );
19826 rc = env->close( env, 0 );
19830 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19836 memset( &env, '\0', sizeof(env) );
19838 rc = db_appinit( NULL, NULL, &env, flags );
19841 db_appexit( &env );
19844 unlink("__db_mpool.share");
19845 unlink("__db_lock.share");
19851 if { (eval echo configure:19852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19853 ol_cv_berkeley_db_thread=yes
19855 echo "configure: failed program was:" >&5
19856 cat conftest.$ac_ext >&5
19858 ol_cv_berkeley_db_thread=no
19868 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19870 if test $ol_cv_berkeley_db_thread != no ; then
19871 cat >> confdefs.h <<\EOF
19872 #define HAVE_BERKELEY_DB_THREAD 1
19882 if test $ol_cv_berkeley_db != no ; then
19883 cat >> confdefs.h <<\EOF
19884 #define HAVE_BERKELEY_DB 1
19888 ol_link_ldbm=berkeley
19889 ol_with_ldbm_api=berkeley
19891 if test $ol_with_ldbm_type = hash ; then
19892 cat >> confdefs.h <<\EOF
19893 #define LDBM_USE_DBHASH 1
19897 cat >> confdefs.h <<\EOF
19898 #define LDBM_USE_DBBTREE 1
19903 if test $ol_cv_lib_db != yes ; then
19904 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19909 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19910 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19911 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19912 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19913 echo "configure:19914: checking Berkeley DB version for BDB backend" >&5
19914 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19915 echo $ac_n "(cached) $ac_c" 1>&6
19918 cat > conftest.$ac_ext <<EOF
19919 #line 19920 "configure"
19920 #include "confdefs.h"
19924 /* this check could be improved */
19925 #ifndef DB_VERSION_MAJOR
19926 # define DB_VERSION_MAJOR 1
19928 #ifndef DB_VERSION_MINOR
19929 # define DB_VERSION_MINOR 0
19932 /* require 4.2 or later */
19933 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19934 __db_version_compat
19938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19939 egrep "__db_version_compat" >/dev/null 2>&1; then
19941 ol_cv_bdb_compat=yes
19944 ol_cv_bdb_compat=no
19950 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19953 if test $ol_cv_bdb_compat = yes ; then
19955 elif test $ol_enable_bdb = yes ; then
19956 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19961 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19962 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19965 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19966 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19967 ol_with_ldbm_api=none
19970 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19971 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19972 echo "configure:19973: checking for MDBM library" >&5
19973 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19974 echo $ac_n "(cached) $ac_c" 1>&6
19977 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19978 echo "configure:19979: checking for mdbm_set_chain" >&5
19979 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19980 echo $ac_n "(cached) $ac_c" 1>&6
19982 cat > conftest.$ac_ext <<EOF
19983 #line 19984 "configure"
19984 #include "confdefs.h"
19985 /* System header to define __stub macros and hopefully few prototypes,
19986 which can conflict with char mdbm_set_chain(); below. */
19987 #include <assert.h>
19988 /* Override any gcc2 internal prototype to avoid an error. */
19989 /* We use char because int might match the return type of a gcc2
19990 builtin and then its argument prototype would still apply. */
19991 char mdbm_set_chain();
19996 /* The GNU C library defines this for functions which it implements
19997 to always fail with ENOSYS. Some functions are actually named
19998 something starting with __ and the normal name is an alias. */
19999 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20002 f = mdbm_set_chain;
20007 if { (eval echo configure:20008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20009 eval "ac_cv_func_mdbm_set_chain=yes"
20011 echo "configure: failed program was:" >&5
20012 cat conftest.$ac_ext >&5
20014 eval "ac_cv_func_mdbm_set_chain=no"
20019 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20020 echo "$ac_t""yes" 1>&6
20023 echo "$ac_t""no" 1>&6
20025 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20026 echo "configure:20027: checking for mdbm_set_chain in -lmdbm" >&5
20027 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20029 echo $ac_n "(cached) $ac_c" 1>&6
20031 ac_save_LIBS="$LIBS"
20032 LIBS="-lmdbm $LIBS"
20033 cat > conftest.$ac_ext <<EOF
20034 #line 20035 "configure"
20035 #include "confdefs.h"
20036 /* Override any gcc2 internal prototype to avoid an error. */
20037 /* We use char because int might match the return type of a gcc2
20038 builtin and then its argument prototype would still apply. */
20039 char mdbm_set_chain();
20045 if { (eval echo configure:20046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20047 eval "ac_cv_lib_$ac_lib_var=yes"
20049 echo "configure: failed program was:" >&5
20050 cat conftest.$ac_ext >&5
20052 eval "ac_cv_lib_$ac_lib_var=no"
20055 LIBS="$ac_save_LIBS"
20058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20059 echo "$ac_t""yes" 1>&6
20060 ol_cv_lib_mdbm=-lmdbm
20062 echo "$ac_t""no" 1>&6
20073 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20076 for ac_hdr in mdbm.h
20078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20080 echo "configure:20081: checking for $ac_hdr" >&5
20081 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20082 echo $ac_n "(cached) $ac_c" 1>&6
20084 cat > conftest.$ac_ext <<EOF
20085 #line 20086 "configure"
20086 #include "confdefs.h"
20089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20090 { (eval echo configure:20091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20092 if test -z "$ac_err"; then
20094 eval "ac_cv_header_$ac_safe=yes"
20097 echo "configure: failed program was:" >&5
20098 cat conftest.$ac_ext >&5
20100 eval "ac_cv_header_$ac_safe=no"
20104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20105 echo "$ac_t""yes" 1>&6
20106 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20107 cat >> confdefs.h <<EOF
20108 #define $ac_tr_hdr 1
20112 echo "$ac_t""no" 1>&6
20116 echo $ac_n "checking for db""... $ac_c" 1>&6
20117 echo "configure:20118: checking for db" >&5
20118 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20119 echo $ac_n "(cached) $ac_c" 1>&6
20122 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20130 echo "$ac_t""$ol_cv_mdbm" 1>&6
20131 if test $ol_cv_mdbm = yes ; then
20132 cat >> confdefs.h <<\EOF
20133 #define HAVE_MDBM 1
20139 if test $ol_cv_mdbm = yes ; then
20141 ol_with_ldbm_api=mdbm
20142 if test $ol_cv_lib_mdbm != yes ; then
20143 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20148 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20149 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20150 echo "configure:20151: checking for GDBM library" >&5
20151 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20152 echo $ac_n "(cached) $ac_c" 1>&6
20155 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20156 echo "configure:20157: checking for gdbm_open" >&5
20157 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20158 echo $ac_n "(cached) $ac_c" 1>&6
20160 cat > conftest.$ac_ext <<EOF
20161 #line 20162 "configure"
20162 #include "confdefs.h"
20163 /* System header to define __stub macros and hopefully few prototypes,
20164 which can conflict with char gdbm_open(); below. */
20165 #include <assert.h>
20166 /* Override any gcc2 internal prototype to avoid an error. */
20167 /* We use char because int might match the return type of a gcc2
20168 builtin and then its argument prototype would still apply. */
20174 /* The GNU C library defines this for functions which it implements
20175 to always fail with ENOSYS. Some functions are actually named
20176 something starting with __ and the normal name is an alias. */
20177 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20185 if { (eval echo configure:20186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20187 eval "ac_cv_func_gdbm_open=yes"
20189 echo "configure: failed program was:" >&5
20190 cat conftest.$ac_ext >&5
20192 eval "ac_cv_func_gdbm_open=no"
20197 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20198 echo "$ac_t""yes" 1>&6
20201 echo "$ac_t""no" 1>&6
20203 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20204 echo "configure:20205: checking for gdbm_open in -lgdbm" >&5
20205 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20207 echo $ac_n "(cached) $ac_c" 1>&6
20209 ac_save_LIBS="$LIBS"
20210 LIBS="-lgdbm $LIBS"
20211 cat > conftest.$ac_ext <<EOF
20212 #line 20213 "configure"
20213 #include "confdefs.h"
20214 /* Override any gcc2 internal prototype to avoid an error. */
20215 /* We use char because int might match the return type of a gcc2
20216 builtin and then its argument prototype would still apply. */
20223 if { (eval echo configure:20224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20225 eval "ac_cv_lib_$ac_lib_var=yes"
20227 echo "configure: failed program was:" >&5
20228 cat conftest.$ac_ext >&5
20230 eval "ac_cv_lib_$ac_lib_var=no"
20233 LIBS="$ac_save_LIBS"
20236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20237 echo "$ac_t""yes" 1>&6
20238 ol_cv_lib_gdbm=-lgdbm
20240 echo "$ac_t""no" 1>&6
20251 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20254 for ac_hdr in gdbm.h
20256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20258 echo "configure:20259: checking for $ac_hdr" >&5
20259 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20260 echo $ac_n "(cached) $ac_c" 1>&6
20262 cat > conftest.$ac_ext <<EOF
20263 #line 20264 "configure"
20264 #include "confdefs.h"
20267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20268 { (eval echo configure:20269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20270 if test -z "$ac_err"; then
20272 eval "ac_cv_header_$ac_safe=yes"
20275 echo "configure: failed program was:" >&5
20276 cat conftest.$ac_ext >&5
20278 eval "ac_cv_header_$ac_safe=no"
20282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20283 echo "$ac_t""yes" 1>&6
20284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20285 cat >> confdefs.h <<EOF
20286 #define $ac_tr_hdr 1
20290 echo "$ac_t""no" 1>&6
20294 echo $ac_n "checking for db""... $ac_c" 1>&6
20295 echo "configure:20296: checking for db" >&5
20296 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20297 echo $ac_n "(cached) $ac_c" 1>&6
20300 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20308 echo "$ac_t""$ol_cv_gdbm" 1>&6
20309 if test $ol_cv_gdbm = yes ; then
20310 cat >> confdefs.h <<\EOF
20311 #define HAVE_GDBM 1
20317 if test $ol_cv_gdbm = yes ; then
20319 ol_with_ldbm_api=gdbm
20321 if test $ol_cv_lib_gdbm != yes ; then
20322 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20327 if test $ol_with_ldbm_api = ndbm ; then
20328 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20329 echo "configure:20330: checking for NDBM library" >&5
20330 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20331 echo $ac_n "(cached) $ac_c" 1>&6
20334 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20335 echo "configure:20336: checking for dbm_open" >&5
20336 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20337 echo $ac_n "(cached) $ac_c" 1>&6
20339 cat > conftest.$ac_ext <<EOF
20340 #line 20341 "configure"
20341 #include "confdefs.h"
20342 /* System header to define __stub macros and hopefully few prototypes,
20343 which can conflict with char dbm_open(); below. */
20344 #include <assert.h>
20345 /* Override any gcc2 internal prototype to avoid an error. */
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20353 /* The GNU C library defines this for functions which it implements
20354 to always fail with ENOSYS. Some functions are actually named
20355 something starting with __ and the normal name is an alias. */
20356 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20364 if { (eval echo configure:20365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20366 eval "ac_cv_func_dbm_open=yes"
20368 echo "configure: failed program was:" >&5
20369 cat conftest.$ac_ext >&5
20371 eval "ac_cv_func_dbm_open=no"
20376 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20377 echo "$ac_t""yes" 1>&6
20380 echo "$ac_t""no" 1>&6
20382 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20383 echo "configure:20384: checking for dbm_open in -lndbm" >&5
20384 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20385 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20386 echo $ac_n "(cached) $ac_c" 1>&6
20388 ac_save_LIBS="$LIBS"
20389 LIBS="-lndbm $LIBS"
20390 cat > conftest.$ac_ext <<EOF
20391 #line 20392 "configure"
20392 #include "confdefs.h"
20393 /* Override any gcc2 internal prototype to avoid an error. */
20394 /* We use char because int might match the return type of a gcc2
20395 builtin and then its argument prototype would still apply. */
20402 if { (eval echo configure:20403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20404 eval "ac_cv_lib_$ac_lib_var=yes"
20406 echo "configure: failed program was:" >&5
20407 cat conftest.$ac_ext >&5
20409 eval "ac_cv_lib_$ac_lib_var=no"
20412 LIBS="$ac_save_LIBS"
20415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20416 echo "$ac_t""yes" 1>&6
20417 ol_cv_lib_ndbm=-lndbm
20419 echo "$ac_t""no" 1>&6
20421 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20422 echo "configure:20423: checking for dbm_open in -ldbm" >&5
20423 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20424 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20425 echo $ac_n "(cached) $ac_c" 1>&6
20427 ac_save_LIBS="$LIBS"
20429 cat > conftest.$ac_ext <<EOF
20430 #line 20431 "configure"
20431 #include "confdefs.h"
20432 /* Override any gcc2 internal prototype to avoid an error. */
20433 /* We use char because int might match the return type of a gcc2
20434 builtin and then its argument prototype would still apply. */
20441 if { (eval echo configure:20442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20443 eval "ac_cv_lib_$ac_lib_var=yes"
20445 echo "configure: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20448 eval "ac_cv_lib_$ac_lib_var=no"
20451 LIBS="$ac_save_LIBS"
20454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20455 echo "$ac_t""yes" 1>&6
20456 ol_cv_lib_ndbm=-ldbm
20458 echo "$ac_t""no" 1>&6
20471 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20474 for ac_hdr in ndbm.h
20476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20478 echo "configure:20479: checking for $ac_hdr" >&5
20479 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20480 echo $ac_n "(cached) $ac_c" 1>&6
20482 cat > conftest.$ac_ext <<EOF
20483 #line 20484 "configure"
20484 #include "confdefs.h"
20487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20488 { (eval echo configure:20489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20490 if test -z "$ac_err"; then
20492 eval "ac_cv_header_$ac_safe=yes"
20495 echo "configure: failed program was:" >&5
20496 cat conftest.$ac_ext >&5
20498 eval "ac_cv_header_$ac_safe=no"
20502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20503 echo "$ac_t""yes" 1>&6
20504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20505 cat >> confdefs.h <<EOF
20506 #define $ac_tr_hdr 1
20510 echo "$ac_t""no" 1>&6
20514 echo $ac_n "checking for db""... $ac_c" 1>&6
20515 echo "configure:20516: checking for db" >&5
20516 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20517 echo $ac_n "(cached) $ac_c" 1>&6
20520 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20528 echo "$ac_t""$ol_cv_ndbm" 1>&6
20529 if test $ol_cv_ndbm = yes ; then
20530 cat >> confdefs.h <<\EOF
20531 #define HAVE_NDBM 1
20537 if test $ol_cv_ndbm = yes ; then
20539 ol_with_ldbm_api=ndbm
20541 if test $ol_cv_lib_ndbm != yes ; then
20542 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20547 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20548 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20549 if test $ol_enable_ldbm = yes ; then
20550 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20553 echo "configure: warning: disabling LDBM" 1>&2
20558 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20559 BUILD_LIBS_DYNAMIC=shared
20560 cat >> confdefs.h <<\EOF
20561 #define LDAP_LIBS_DYNAMIC 1
20566 BUILD_LIBS_DYNAMIC=static
20570 if test $ol_enable_wrappers != no ; then
20571 for ac_hdr in tcpd.h
20573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20575 echo "configure:20576: checking for $ac_hdr" >&5
20576 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20577 echo $ac_n "(cached) $ac_c" 1>&6
20579 cat > conftest.$ac_ext <<EOF
20580 #line 20581 "configure"
20581 #include "confdefs.h"
20584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20585 { (eval echo configure:20586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20587 if test -z "$ac_err"; then
20589 eval "ac_cv_header_$ac_safe=yes"
20592 echo "configure: failed program was:" >&5
20593 cat conftest.$ac_ext >&5
20595 eval "ac_cv_header_$ac_safe=no"
20599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20600 echo "$ac_t""yes" 1>&6
20601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20602 cat >> confdefs.h <<EOF
20603 #define $ac_tr_hdr 1
20606 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20607 echo "configure:20608: checking for TCP wrappers library" >&5
20609 LIBS="$LIBS -lwrap"
20610 cat > conftest.$ac_ext <<EOF
20611 #line 20612 "configure"
20612 #include "confdefs.h"
20615 int allow_severity = 0;
20616 int deny_severity = 0;
20618 struct request_info *req;
20626 if { (eval echo configure:20627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20628 echo "$ac_t""-lwrap" 1>&6
20632 echo "configure: failed program was:" >&5
20633 cat conftest.$ac_ext >&5
20637 cat > conftest.$ac_ext <<EOF
20638 #line 20639 "configure"
20639 #include "confdefs.h"
20642 int allow_severity = 0;
20643 int deny_severity = 0;
20645 struct request_info *req;
20653 if { (eval echo configure:20654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20655 echo "$ac_t""-lwrap -lnsl" 1>&6
20657 LIBS="$save_LIBS -lnsl"
20659 echo "configure: failed program was:" >&5
20660 cat conftest.$ac_ext >&5
20663 echo "$ac_t""no" 1>&6
20671 echo "$ac_t""no" 1>&6
20677 if test $have_wrappers = yes ; then
20678 cat >> confdefs.h <<\EOF
20679 #define HAVE_TCPD 1
20683 elif test $ol_enable_wrappers = yes ; then
20684 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
20686 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20691 if test $ol_enable_syslog != no ; then
20692 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20693 echo "configure:20694: checking for openlog" >&5
20694 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20695 echo $ac_n "(cached) $ac_c" 1>&6
20697 cat > conftest.$ac_ext <<EOF
20698 #line 20699 "configure"
20699 #include "confdefs.h"
20700 /* System header to define __stub macros and hopefully few prototypes,
20701 which can conflict with char openlog(); below. */
20702 #include <assert.h>
20703 /* Override any gcc2 internal prototype to avoid an error. */
20704 /* We use char because int might match the return type of a gcc2
20705 builtin and then its argument prototype would still apply. */
20711 /* The GNU C library defines this for functions which it implements
20712 to always fail with ENOSYS. Some functions are actually named
20713 something starting with __ and the normal name is an alias. */
20714 #if defined (__stub_openlog) || defined (__stub___openlog)
20722 if { (eval echo configure:20723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20724 eval "ac_cv_func_openlog=yes"
20726 echo "configure: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20729 eval "ac_cv_func_openlog=no"
20734 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20735 echo "$ac_t""yes" 1>&6
20738 echo "$ac_t""no" 1>&6
20741 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20742 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20744 ol_enable_syslog=$ac_cv_func_openlog
20749 if test $ol_enable_sql != no ; then
20750 for ac_hdr in sql.h sqlext.h
20752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20754 echo "configure:20755: checking for $ac_hdr" >&5
20755 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20756 echo $ac_n "(cached) $ac_c" 1>&6
20758 cat > conftest.$ac_ext <<EOF
20759 #line 20760 "configure"
20760 #include "confdefs.h"
20763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20764 { (eval echo configure:20765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20766 if test -z "$ac_err"; then
20768 eval "ac_cv_header_$ac_safe=yes"
20771 echo "configure: failed program was:" >&5
20772 cat conftest.$ac_ext >&5
20774 eval "ac_cv_header_$ac_safe=no"
20778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20779 echo "$ac_t""yes" 1>&6
20780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20781 cat >> confdefs.h <<EOF
20782 #define $ac_tr_hdr 1
20786 echo "$ac_t""no" 1>&6
20787 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20793 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20794 echo "configure:20795: checking for SQLDriverConnect in -liodbc" >&5
20795 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20796 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20797 echo $ac_n "(cached) $ac_c" 1>&6
20799 ac_save_LIBS="$LIBS"
20800 LIBS="-liodbc $LIBS"
20801 cat > conftest.$ac_ext <<EOF
20802 #line 20803 "configure"
20803 #include "confdefs.h"
20804 /* Override any gcc2 internal prototype to avoid an error. */
20805 /* We use char because int might match the return type of a gcc2
20806 builtin and then its argument prototype would still apply. */
20807 char SQLDriverConnect();
20813 if { (eval echo configure:20814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20815 eval "ac_cv_lib_$ac_lib_var=yes"
20817 echo "configure: failed program was:" >&5
20818 cat conftest.$ac_ext >&5
20820 eval "ac_cv_lib_$ac_lib_var=no"
20823 LIBS="$ac_save_LIBS"
20826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20827 echo "$ac_t""yes" 1>&6
20830 echo "$ac_t""no" 1>&6
20834 if test $have_iodbc = yes ; then
20835 ol_link_sql="-liodbc"
20837 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20838 echo "configure:20839: checking for SQLDriverConnect in -lodbc" >&5
20839 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20840 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20841 echo $ac_n "(cached) $ac_c" 1>&6
20843 ac_save_LIBS="$LIBS"
20844 LIBS="-lodbc $LIBS"
20845 cat > conftest.$ac_ext <<EOF
20846 #line 20847 "configure"
20847 #include "confdefs.h"
20848 /* Override any gcc2 internal prototype to avoid an error. */
20849 /* We use char because int might match the return type of a gcc2
20850 builtin and then its argument prototype would still apply. */
20851 char SQLDriverConnect();
20857 if { (eval echo configure:20858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20859 eval "ac_cv_lib_$ac_lib_var=yes"
20861 echo "configure: failed program was:" >&5
20862 cat conftest.$ac_ext >&5
20864 eval "ac_cv_lib_$ac_lib_var=no"
20867 LIBS="$ac_save_LIBS"
20870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20871 echo "$ac_t""yes" 1>&6
20874 echo "$ac_t""no" 1>&6
20878 if test $have_odbc = yes ; then
20879 ol_link_sql="-lodbc"
20883 if test $ol_link_sql != no ; then
20884 SLAPD_SQL_LIBS="$ol_link_sql"
20886 elif test $ol_enable_sql != auto ; then
20887 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20891 if test $ol_enable_tcl != no ; then
20892 for ac_hdr in tcl.h
20894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20896 echo "configure:20897: checking for $ac_hdr" >&5
20897 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20898 echo $ac_n "(cached) $ac_c" 1>&6
20900 cat > conftest.$ac_ext <<EOF
20901 #line 20902 "configure"
20902 #include "confdefs.h"
20905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20906 { (eval echo configure:20907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20908 if test -z "$ac_err"; then
20910 eval "ac_cv_header_$ac_safe=yes"
20913 echo "configure: failed program was:" >&5
20914 cat conftest.$ac_ext >&5
20916 eval "ac_cv_header_$ac_safe=no"
20920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20921 echo "$ac_t""yes" 1>&6
20922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20923 cat >> confdefs.h <<EOF
20924 #define $ac_tr_hdr 1
20928 echo "$ac_t""no" 1>&6
20933 if test $ac_cv_header_tcl_h != yes ; then
20936 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
20937 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
20938 echo "configure:20939: checking for main in -l$lib" >&5
20939 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
20940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20941 echo $ac_n "(cached) $ac_c" 1>&6
20943 ac_save_LIBS="$LIBS"
20944 LIBS="-l$lib $LIBS"
20945 cat > conftest.$ac_ext <<EOF
20946 #line 20947 "configure"
20947 #include "confdefs.h"
20953 if { (eval echo configure:20954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20955 eval "ac_cv_lib_$ac_lib_var=yes"
20957 echo "configure: failed program was:" >&5
20958 cat conftest.$ac_ext >&5
20960 eval "ac_cv_lib_$ac_lib_var=no"
20963 LIBS="$ac_save_LIBS"
20966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20967 echo "$ac_t""yes" 1>&6
20969 if test x"$ol_with_tcl_module" = "xstatic" ; then
20970 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
20972 MOD_TCL_LIB="-l${lib}"
20975 echo "$ac_t""no" 1>&6
20982 if test $have_tcl != yes ; then
20983 echo "configure: warning: could not find -ltcl" 1>&2
20984 if test $ol_enable_tcl = yes ; then
20985 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
20993 for ac_hdr in termcap.h ncurses.h
20995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20997 echo "configure:20998: checking for $ac_hdr" >&5
20998 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20999 echo $ac_n "(cached) $ac_c" 1>&6
21001 cat > conftest.$ac_ext <<EOF
21002 #line 21003 "configure"
21003 #include "confdefs.h"
21006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21007 { (eval echo configure:21008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21009 if test -z "$ac_err"; then
21011 eval "ac_cv_header_$ac_safe=yes"
21014 echo "configure: failed program was:" >&5
21015 cat conftest.$ac_ext >&5
21017 eval "ac_cv_header_$ac_safe=no"
21021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21022 echo "$ac_t""yes" 1>&6
21023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21024 cat >> confdefs.h <<EOF
21025 #define $ac_tr_hdr 1
21029 echo "$ac_t""no" 1>&6
21034 if test $ol_link_termcap = no ; then
21035 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
21036 echo "configure:21037: checking for tputs in -ltermcap" >&5
21037 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
21038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21039 echo $ac_n "(cached) $ac_c" 1>&6
21041 ac_save_LIBS="$LIBS"
21042 LIBS="-ltermcap $LIBS"
21043 cat > conftest.$ac_ext <<EOF
21044 #line 21045 "configure"
21045 #include "confdefs.h"
21046 /* Override any gcc2 internal prototype to avoid an error. */
21047 /* We use char because int might match the return type of a gcc2
21048 builtin and then its argument prototype would still apply. */
21055 if { (eval echo configure:21056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21057 eval "ac_cv_lib_$ac_lib_var=yes"
21059 echo "configure: failed program was:" >&5
21060 cat conftest.$ac_ext >&5
21062 eval "ac_cv_lib_$ac_lib_var=no"
21065 LIBS="$ac_save_LIBS"
21068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21069 echo "$ac_t""yes" 1>&6
21072 echo "$ac_t""no" 1>&6
21076 if test $have_termcap = yes ; then
21077 cat >> confdefs.h <<\EOF
21078 #define HAVE_TERMCAP 1
21081 ol_link_termcap=yes
21082 TERMCAP_LIBS=-ltermcap
21086 if test $ol_link_termcap = no ; then
21087 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
21088 echo "configure:21089: checking for initscr in -lncurses" >&5
21089 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
21090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21091 echo $ac_n "(cached) $ac_c" 1>&6
21093 ac_save_LIBS="$LIBS"
21094 LIBS="-lncurses $LIBS"
21095 cat > conftest.$ac_ext <<EOF
21096 #line 21097 "configure"
21097 #include "confdefs.h"
21098 /* Override any gcc2 internal prototype to avoid an error. */
21099 /* We use char because int might match the return type of a gcc2
21100 builtin and then its argument prototype would still apply. */
21107 if { (eval echo configure:21108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21109 eval "ac_cv_lib_$ac_lib_var=yes"
21111 echo "configure: failed program was:" >&5
21112 cat conftest.$ac_ext >&5
21114 eval "ac_cv_lib_$ac_lib_var=no"
21117 LIBS="$ac_save_LIBS"
21120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21121 echo "$ac_t""yes" 1>&6
21124 echo "$ac_t""no" 1>&6
21128 if test $have_ncurses = yes ; then
21129 cat >> confdefs.h <<\EOF
21130 #define HAVE_NCURSES 1
21133 ol_link_termcap=yes
21134 TERMCAP_LIBS=-lncurses
21138 if test $ol_link_termcap = no ; then
21139 cat >> confdefs.h <<\EOF
21140 #define NO_TERMCAP 1
21148 if test $ol_with_cyrus_sasl != no ; then
21149 for ac_hdr in sasl/sasl.h sasl.h
21151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21153 echo "configure:21154: checking for $ac_hdr" >&5
21154 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21155 echo $ac_n "(cached) $ac_c" 1>&6
21157 cat > conftest.$ac_ext <<EOF
21158 #line 21159 "configure"
21159 #include "confdefs.h"
21162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21163 { (eval echo configure:21164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21165 if test -z "$ac_err"; then
21167 eval "ac_cv_header_$ac_safe=yes"
21170 echo "configure: failed program was:" >&5
21171 cat conftest.$ac_ext >&5
21173 eval "ac_cv_header_$ac_safe=no"
21177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21178 echo "$ac_t""yes" 1>&6
21179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21180 cat >> confdefs.h <<EOF
21181 #define $ac_tr_hdr 1
21185 echo "$ac_t""no" 1>&6
21190 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21191 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21192 echo "configure:21193: checking for sasl_client_init in -lsasl2" >&5
21193 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21195 echo $ac_n "(cached) $ac_c" 1>&6
21197 ac_save_LIBS="$LIBS"
21198 LIBS="-lsasl2 $LIBS"
21199 cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 /* Override any gcc2 internal prototype to avoid an error. */
21203 /* We use char because int might match the return type of a gcc2
21204 builtin and then its argument prototype would still apply. */
21205 char sasl_client_init();
21211 if { (eval echo configure:21212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21213 eval "ac_cv_lib_$ac_lib_var=yes"
21215 echo "configure: failed program was:" >&5
21216 cat conftest.$ac_ext >&5
21218 eval "ac_cv_lib_$ac_lib_var=no"
21221 LIBS="$ac_save_LIBS"
21224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21225 echo "$ac_t""yes" 1>&6
21226 ol_link_sasl="-lsasl2"
21228 echo "$ac_t""no" 1>&6
21229 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21230 echo "configure:21231: checking for sasl_client_init in -lsasl" >&5
21231 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21233 echo $ac_n "(cached) $ac_c" 1>&6
21235 ac_save_LIBS="$LIBS"
21236 LIBS="-lsasl $LIBS"
21237 cat > conftest.$ac_ext <<EOF
21238 #line 21239 "configure"
21239 #include "confdefs.h"
21240 /* Override any gcc2 internal prototype to avoid an error. */
21241 /* We use char because int might match the return type of a gcc2
21242 builtin and then its argument prototype would still apply. */
21243 char sasl_client_init();
21249 if { (eval echo configure:21250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21251 eval "ac_cv_lib_$ac_lib_var=yes"
21253 echo "configure: failed program was:" >&5
21254 cat conftest.$ac_ext >&5
21256 eval "ac_cv_lib_$ac_lib_var=no"
21259 LIBS="$ac_save_LIBS"
21262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21263 echo "$ac_t""yes" 1>&6
21264 ol_link_sasl="-lsasl"
21266 echo "$ac_t""no" 1>&6
21273 if test $ol_link_sasl = no ; then
21274 if test $ol_with_cyrus_sasl != auto ; then
21275 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21277 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21278 echo "configure: warning: SASL authentication not supported!" 1>&2
21279 if test $ol_link_tls = no ; then
21280 echo "configure: warning: Strong authentication not supported!" 1>&2
21284 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21285 echo "configure:21286: checking Cyrus SASL library version" >&5
21286 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21287 echo $ac_n "(cached) $ac_c" 1>&6
21290 cat > conftest.$ac_ext <<EOF
21291 #line 21292 "configure"
21292 #include "confdefs.h"
21294 #ifdef HAVE_SASL_SASL_H
21295 #include <sasl/sasl.h>
21300 /* require 2.1.3 or later */
21301 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21302 char *__sasl_compat = "2.2+ or better okay (we guess)";
21303 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21304 && SASL_VERSION_STEP >=3
21305 char *__sasl_compat = "2.1.3+ or better okay";
21309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21310 egrep "__sasl_compat" >/dev/null 2>&1; then
21312 ol_cv_sasl_compat=yes
21315 ol_cv_sasl_compat=no
21321 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21323 if test $ol_cv_sasl_compat = no ; then
21325 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
21328 cat >> confdefs.h <<\EOF
21329 #define HAVE_CYRUS_SASL 1
21332 SASL_LIBS="$ol_link_sasl"
21333 if test $ol_enable_spasswd != no ; then
21334 ol_link_spasswd=yes
21337 ac_save_LIBS="$LIBS"
21338 LIBS="$LIBS $ol_link_sasl"
21339 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21340 echo "configure:21341: checking for sasl_version" >&5
21341 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21342 echo $ac_n "(cached) $ac_c" 1>&6
21344 cat > conftest.$ac_ext <<EOF
21345 #line 21346 "configure"
21346 #include "confdefs.h"
21347 /* System header to define __stub macros and hopefully few prototypes,
21348 which can conflict with char sasl_version(); below. */
21349 #include <assert.h>
21350 /* Override any gcc2 internal prototype to avoid an error. */
21351 /* We use char because int might match the return type of a gcc2
21352 builtin and then its argument prototype would still apply. */
21353 char sasl_version();
21358 /* The GNU C library defines this for functions which it implements
21359 to always fail with ENOSYS. Some functions are actually named
21360 something starting with __ and the normal name is an alias. */
21361 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21369 if { (eval echo configure:21370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21371 eval "ac_cv_func_sasl_version=yes"
21373 echo "configure: failed program was:" >&5
21374 cat conftest.$ac_ext >&5
21376 eval "ac_cv_func_sasl_version=no"
21381 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21382 echo "$ac_t""yes" 1>&6
21383 cat >> confdefs.h <<\EOF
21384 #define HAVE_SASL_VERSION 1
21388 echo "$ac_t""no" 1>&6
21391 LIBS="$ac_save_LIBS"
21395 echo "configure: warning: SASL authentication not supported!" 1>&2
21396 if test $ol_link_tls = no ; then
21397 echo "configure: warning: Strong authentication not supported!" 1>&2
21401 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21403 if test -r /dev/urandom ; then
21404 dev="/dev/urandom";
21405 elif test -r /idev/urandom ; then
21406 dev="/idev/urandom";
21407 elif test -r /dev/srandom ; then
21408 dev="/dev/srandom";
21409 elif test -r /dev/random ; then
21411 elif test -r /idev/random ; then
21412 dev="/idev/random";
21415 if test $dev != no ; then
21416 cat >> confdefs.h <<EOF
21417 #define URANDOM_DEVICE "$dev"
21424 if test $ol_with_fetch != no ; then
21426 LIBS="-lfetch -lcom_err $LIBS"
21427 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21428 echo "configure:21429: checking fetch(3) library" >&5
21429 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21430 echo $ac_n "(cached) $ac_c" 1>&6
21433 cat > conftest.$ac_ext <<EOF
21434 #line 21435 "configure"
21435 #include "confdefs.h"
21437 #include <sys/param.h>
21441 struct url *u = fetchParseURL("file:///");
21444 if { (eval echo configure:21445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21446 ol_cv_lib_fetch=yes
21448 echo "configure: failed program was:" >&5
21449 cat conftest.$ac_ext >&5
21456 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21458 if test $ol_cv_lib_fetch != no ; then
21459 ol_link_fetch="-lfetch -lcom_err"
21460 cat >> confdefs.h <<\EOF
21461 #define HAVE_FETCH 1
21467 if test $ol_cv_lib_fetch != no ; then
21468 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21469 ol_link_fetch=freebsd
21471 elif test $ol_with_fetch != auto ; then
21472 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21476 if test $ol_enable_crypt != no ; then
21478 LIBS="$TLS_LIBS $LIBS"
21480 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21481 echo "configure:21482: checking for crypt" >&5
21482 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21483 echo $ac_n "(cached) $ac_c" 1>&6
21485 cat > conftest.$ac_ext <<EOF
21486 #line 21487 "configure"
21487 #include "confdefs.h"
21488 /* System header to define __stub macros and hopefully few prototypes,
21489 which can conflict with char crypt(); below. */
21490 #include <assert.h>
21491 /* Override any gcc2 internal prototype to avoid an error. */
21492 /* We use char because int might match the return type of a gcc2
21493 builtin and then its argument prototype would still apply. */
21499 /* The GNU C library defines this for functions which it implements
21500 to always fail with ENOSYS. Some functions are actually named
21501 something starting with __ and the normal name is an alias. */
21502 #if defined (__stub_crypt) || defined (__stub___crypt)
21510 if { (eval echo configure:21511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21512 eval "ac_cv_func_crypt=yes"
21514 echo "configure: failed program was:" >&5
21515 cat conftest.$ac_ext >&5
21517 eval "ac_cv_func_crypt=no"
21522 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21523 echo "$ac_t""yes" 1>&6
21526 echo "$ac_t""no" 1>&6
21529 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21530 echo "configure:21531: checking for crypt in -lcrypt" >&5
21531 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21533 echo $ac_n "(cached) $ac_c" 1>&6
21535 ac_save_LIBS="$LIBS"
21536 LIBS="-lcrypt $LIBS"
21537 cat > conftest.$ac_ext <<EOF
21538 #line 21539 "configure"
21539 #include "confdefs.h"
21540 /* Override any gcc2 internal prototype to avoid an error. */
21541 /* We use char because int might match the return type of a gcc2
21542 builtin and then its argument prototype would still apply. */
21549 if { (eval echo configure:21550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21551 eval "ac_cv_lib_$ac_lib_var=yes"
21553 echo "configure: failed program was:" >&5
21554 cat conftest.$ac_ext >&5
21556 eval "ac_cv_lib_$ac_lib_var=no"
21559 LIBS="$ac_save_LIBS"
21562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21563 echo "$ac_t""yes" 1>&6
21564 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21567 echo "$ac_t""no" 1>&6
21576 if test $have_crypt = yes ; then
21577 cat >> confdefs.h <<\EOF
21578 #define HAVE_CRYPT 1
21582 echo "configure: warning: could not find crypt" 1>&2
21583 if test $ol_enable_crypt = yes ; then
21584 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21587 echo "configure: warning: disabling crypt support" 1>&2
21592 if test $ol_enable_proctitle != no ; then
21593 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21594 echo "configure:21595: checking for setproctitle" >&5
21595 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21596 echo $ac_n "(cached) $ac_c" 1>&6
21598 cat > conftest.$ac_ext <<EOF
21599 #line 21600 "configure"
21600 #include "confdefs.h"
21601 /* System header to define __stub macros and hopefully few prototypes,
21602 which can conflict with char setproctitle(); below. */
21603 #include <assert.h>
21604 /* Override any gcc2 internal prototype to avoid an error. */
21605 /* We use char because int might match the return type of a gcc2
21606 builtin and then its argument prototype would still apply. */
21607 char setproctitle();
21612 /* The GNU C library defines this for functions which it implements
21613 to always fail with ENOSYS. Some functions are actually named
21614 something starting with __ and the normal name is an alias. */
21615 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21623 if { (eval echo configure:21624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21625 eval "ac_cv_func_setproctitle=yes"
21627 echo "configure: failed program was:" >&5
21628 cat conftest.$ac_ext >&5
21630 eval "ac_cv_func_setproctitle=no"
21635 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21636 echo "$ac_t""yes" 1>&6
21637 have_setproctitle=yes
21639 echo "$ac_t""no" 1>&6
21641 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21642 echo "configure:21643: checking for setproctitle in -lutil" >&5
21643 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21645 echo $ac_n "(cached) $ac_c" 1>&6
21647 ac_save_LIBS="$LIBS"
21648 LIBS="-lutil $LIBS"
21649 cat > conftest.$ac_ext <<EOF
21650 #line 21651 "configure"
21651 #include "confdefs.h"
21652 /* Override any gcc2 internal prototype to avoid an error. */
21653 /* We use char because int might match the return type of a gcc2
21654 builtin and then its argument prototype would still apply. */
21655 char setproctitle();
21661 if { (eval echo configure:21662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21663 eval "ac_cv_lib_$ac_lib_var=yes"
21665 echo "configure: failed program was:" >&5
21666 cat conftest.$ac_ext >&5
21668 eval "ac_cv_lib_$ac_lib_var=no"
21671 LIBS="$ac_save_LIBS"
21674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21675 echo "$ac_t""yes" 1>&6
21676 have_setproctitle=yes
21677 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21679 echo "$ac_t""no" 1>&6
21680 have_setproctitle=no
21681 LIBOBJS="$LIBOBJS setproctitle.o"
21682 LIBSRCS="$LIBSRCS setproctitle.c"
21688 if test $have_setproctitle = yes ; then
21689 cat >> confdefs.h <<\EOF
21690 #define HAVE_SETPROCTITLE 1
21696 if test $ol_enable_slp != no ; then
21697 for ac_hdr in slp.h
21699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21701 echo "configure:21702: checking for $ac_hdr" >&5
21702 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21703 echo $ac_n "(cached) $ac_c" 1>&6
21705 cat > conftest.$ac_ext <<EOF
21706 #line 21707 "configure"
21707 #include "confdefs.h"
21710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21711 { (eval echo configure:21712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21713 if test -z "$ac_err"; then
21715 eval "ac_cv_header_$ac_safe=yes"
21718 echo "configure: failed program was:" >&5
21719 cat conftest.$ac_ext >&5
21721 eval "ac_cv_header_$ac_safe=no"
21725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21726 echo "$ac_t""yes" 1>&6
21727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21728 cat >> confdefs.h <<EOF
21729 #define $ac_tr_hdr 1
21733 echo "$ac_t""no" 1>&6
21738 if test $ac_cv_header_slp_h = yes ; then
21739 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21740 echo "configure:21741: checking for SLPOpen in -lslp" >&5
21741 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21742 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21743 echo $ac_n "(cached) $ac_c" 1>&6
21745 ac_save_LIBS="$LIBS"
21747 cat > conftest.$ac_ext <<EOF
21748 #line 21749 "configure"
21749 #include "confdefs.h"
21750 /* Override any gcc2 internal prototype to avoid an error. */
21751 /* We use char because int might match the return type of a gcc2
21752 builtin and then its argument prototype would still apply. */
21759 if { (eval echo configure:21760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21761 eval "ac_cv_lib_$ac_lib_var=yes"
21763 echo "configure: failed program was:" >&5
21764 cat conftest.$ac_ext >&5
21766 eval "ac_cv_lib_$ac_lib_var=no"
21769 LIBS="$ac_save_LIBS"
21772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21773 echo "$ac_t""yes" 1>&6
21776 echo "$ac_t""no" 1>&6
21780 if test $have_slp = yes ; then
21781 cat >> confdefs.h <<\EOF
21785 SLAPD_SLP_LIBS=-lslp
21788 elif test $ol_enable_slp = yes ; then
21789 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21794 echo $ac_n "checking long long""... $ac_c" 1>&6
21795 echo "configure:21796: checking long long" >&5
21796 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21797 echo $ac_n "(cached) $ac_c" 1>&6
21800 cat > conftest.$ac_ext <<EOF
21801 #line 21802 "configure"
21802 #include "confdefs.h"
21808 if { (eval echo configure:21809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21810 ol_cv_type_long_long=yes
21812 echo "configure: failed program was:" >&5
21813 cat conftest.$ac_ext >&5
21815 ol_cv_type_long_long=no
21820 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21821 if test $ol_cv_type_long_long = yes; then
21822 cat >> confdefs.h <<\EOF
21823 #define HAVE_LONG_LONG 1
21828 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21829 echo "configure:21830: checking for ANSI C header files" >&5
21830 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21831 echo $ac_n "(cached) $ac_c" 1>&6
21833 cat > conftest.$ac_ext <<EOF
21834 #line 21835 "configure"
21835 #include "confdefs.h"
21836 #include <stdlib.h>
21837 #include <stdarg.h>
21838 #include <string.h>
21841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21842 { (eval echo configure:21843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21844 if test -z "$ac_err"; then
21846 ac_cv_header_stdc=yes
21849 echo "configure: failed program was:" >&5
21850 cat conftest.$ac_ext >&5
21852 ac_cv_header_stdc=no
21856 if test $ac_cv_header_stdc = yes; then
21857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21858 cat > conftest.$ac_ext <<EOF
21859 #line 21860 "configure"
21860 #include "confdefs.h"
21861 #include <string.h>
21863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21864 egrep "memchr" >/dev/null 2>&1; then
21868 ac_cv_header_stdc=no
21874 if test $ac_cv_header_stdc = yes; then
21875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21876 cat > conftest.$ac_ext <<EOF
21877 #line 21878 "configure"
21878 #include "confdefs.h"
21879 #include <stdlib.h>
21881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21882 egrep "free" >/dev/null 2>&1; then
21886 ac_cv_header_stdc=no
21892 if test $ac_cv_header_stdc = yes; then
21893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21894 if test "$cross_compiling" = yes; then
21897 cat > conftest.$ac_ext <<EOF
21898 #line 21899 "configure"
21899 #include "confdefs.h"
21901 #if ((' ' & 0x0FF) == 0x020)
21902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21905 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21906 || ('j' <= (c) && (c) <= 'r') \
21907 || ('s' <= (c) && (c) <= 'z'))
21908 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21911 int main () { int i; for (i = 0; i < 256; i++)
21912 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21916 if { (eval echo configure:21917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21920 echo "configure: failed program was:" >&5
21921 cat conftest.$ac_ext >&5
21923 ac_cv_header_stdc=no
21931 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21932 if test $ac_cv_header_stdc = yes; then
21933 cat >> confdefs.h <<\EOF
21934 #define STDC_HEADERS 1
21939 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21940 echo "configure:21941: checking for mode_t" >&5
21941 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21942 echo $ac_n "(cached) $ac_c" 1>&6
21944 cat > conftest.$ac_ext <<EOF
21945 #line 21946 "configure"
21946 #include "confdefs.h"
21947 #include <sys/types.h>
21949 #include <stdlib.h>
21950 #include <stddef.h>
21954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21955 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21957 eval "ac_cv_type_mode_t=yes"
21960 eval "ac_cv_type_mode_t=no"
21965 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21966 echo "$ac_t""yes" 1>&6
21968 echo "$ac_t""no" 1>&6
21969 cat >> confdefs.h <<EOF
21975 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21976 echo "configure:21977: checking for off_t" >&5
21977 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21978 echo $ac_n "(cached) $ac_c" 1>&6
21980 cat > conftest.$ac_ext <<EOF
21981 #line 21982 "configure"
21982 #include "confdefs.h"
21983 #include <sys/types.h>
21985 #include <stdlib.h>
21986 #include <stddef.h>
21990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21991 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21993 eval "ac_cv_type_off_t=yes"
21996 eval "ac_cv_type_off_t=no"
22001 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22002 echo "$ac_t""yes" 1>&6
22004 echo "$ac_t""no" 1>&6
22005 cat >> confdefs.h <<EOF
22011 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22012 echo "configure:22013: checking for pid_t" >&5
22013 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22014 echo $ac_n "(cached) $ac_c" 1>&6
22016 cat > conftest.$ac_ext <<EOF
22017 #line 22018 "configure"
22018 #include "confdefs.h"
22019 #include <sys/types.h>
22021 #include <stdlib.h>
22022 #include <stddef.h>
22026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22027 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22029 eval "ac_cv_type_pid_t=yes"
22032 eval "ac_cv_type_pid_t=no"
22037 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22038 echo "$ac_t""yes" 1>&6
22040 echo "$ac_t""no" 1>&6
22041 cat >> confdefs.h <<EOF
22047 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
22048 echo "configure:22049: checking for ptrdiff_t" >&5
22049 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
22050 echo $ac_n "(cached) $ac_c" 1>&6
22052 cat > conftest.$ac_ext <<EOF
22053 #line 22054 "configure"
22054 #include "confdefs.h"
22055 #include <stddef.h>
22060 if { (eval echo configure:22061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22062 am_cv_type_ptrdiff_t=yes
22064 echo "configure: failed program was:" >&5
22065 cat conftest.$ac_ext >&5
22067 am_cv_type_ptrdiff_t=no
22072 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
22073 if test $am_cv_type_ptrdiff_t = yes; then
22074 cat >> confdefs.h <<\EOF
22075 #define HAVE_PTRDIFF_T 1
22080 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
22081 echo "configure:22082: checking return type of signal handlers" >&5
22082 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
22083 echo $ac_n "(cached) $ac_c" 1>&6
22085 cat > conftest.$ac_ext <<EOF
22086 #line 22087 "configure"
22087 #include "confdefs.h"
22088 #include <sys/types.h>
22089 #include <signal.h>
22094 extern "C" void (*signal (int, void (*)(int)))(int);
22096 void (*signal ()) ();
22103 if { (eval echo configure:22104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22105 ac_cv_type_signal=void
22107 echo "configure: failed program was:" >&5
22108 cat conftest.$ac_ext >&5
22110 ac_cv_type_signal=int
22115 echo "$ac_t""$ac_cv_type_signal" 1>&6
22116 cat >> confdefs.h <<EOF
22117 #define RETSIGTYPE $ac_cv_type_signal
22121 echo $ac_n "checking for size_t""... $ac_c" 1>&6
22122 echo "configure:22123: checking for size_t" >&5
22123 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
22124 echo $ac_n "(cached) $ac_c" 1>&6
22126 cat > conftest.$ac_ext <<EOF
22127 #line 22128 "configure"
22128 #include "confdefs.h"
22129 #include <sys/types.h>
22131 #include <stdlib.h>
22132 #include <stddef.h>
22136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22137 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22139 eval "ac_cv_type_size_t=yes"
22142 eval "ac_cv_type_size_t=no"
22147 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
22148 echo "$ac_t""yes" 1>&6
22150 echo "$ac_t""no" 1>&6
22151 cat >> confdefs.h <<EOF
22152 #define size_t unsigned
22158 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
22159 echo "configure:22160: checking for ssize_t" >&5
22160 if eval "test \"\${ac_cv_type_ssize_t+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>
22168 #include <stdlib.h>
22169 #include <stddef.h>
22173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22174 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22176 eval "ac_cv_type_ssize_t=yes"
22179 eval "ac_cv_type_ssize_t=no"
22184 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
22185 echo "$ac_t""yes" 1>&6
22187 echo "$ac_t""no" 1>&6
22188 cat >> confdefs.h <<EOF
22189 #define ssize_t signed int
22194 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
22195 echo "configure:22196: checking for caddr_t" >&5
22196 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
22197 echo $ac_n "(cached) $ac_c" 1>&6
22199 cat > conftest.$ac_ext <<EOF
22200 #line 22201 "configure"
22201 #include "confdefs.h"
22202 #include <sys/types.h>
22204 #include <stdlib.h>
22205 #include <stddef.h>
22209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22210 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22212 eval "ac_cv_type_caddr_t=yes"
22215 eval "ac_cv_type_caddr_t=no"
22220 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
22221 echo "$ac_t""yes" 1>&6
22223 echo "$ac_t""no" 1>&6
22224 cat >> confdefs.h <<EOF
22225 #define caddr_t char *
22231 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
22232 echo "configure:22233: checking for socklen_t" >&5
22233 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
22234 echo $ac_n "(cached) $ac_c" 1>&6
22236 cat > conftest.$ac_ext <<EOF
22237 #line 22238 "configure"
22238 #include "confdefs.h"
22240 #ifdef HAVE_SYS_TYPES_H
22241 #include <sys/types.h>
22243 #ifdef HAVE_SYS_SOCKET_H
22244 #include <sys/socket.h>
22251 if { (eval echo configure:22252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22253 ol_cv_type_socklen_t=yes
22255 echo "configure: failed program was:" >&5
22256 cat conftest.$ac_ext >&5
22258 ol_cv_type_socklen_t=no
22263 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
22264 if test $ol_cv_type_socklen_t = no; then
22265 cat >> confdefs.h <<\EOF
22266 #define socklen_t int
22271 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22272 echo "configure:22273: checking for member st_blksize in aggregate type struct stat" >&5
22273 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22274 echo $ac_n "(cached) $ac_c" 1>&6
22276 cat > conftest.$ac_ext <<EOF
22277 #line 22278 "configure"
22278 #include "confdefs.h"
22279 #include <sys/types.h>
22280 #include <sys/stat.h>
22282 struct stat foo; foo.st_blksize;
22285 if { (eval echo configure:22286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22287 ac_cv_c_struct_member_st_blksize=yes
22289 echo "configure: failed program was:" >&5
22290 cat conftest.$ac_ext >&5
22292 ac_cv_c_struct_member_st_blksize=no
22297 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22298 st_blksize="$ac_cv_c_struct_member_st_blksize"
22299 if test $ac_cv_c_struct_member_st_blksize = yes; then
22300 cat >> confdefs.h <<\EOF
22301 #define HAVE_ST_BLKSIZE 1
22306 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22307 echo "configure:22308: checking whether time.h and sys/time.h may both be included" >&5
22308 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22309 echo $ac_n "(cached) $ac_c" 1>&6
22311 cat > conftest.$ac_ext <<EOF
22312 #line 22313 "configure"
22313 #include "confdefs.h"
22314 #include <sys/types.h>
22315 #include <sys/time.h>
22321 if { (eval echo configure:22322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22323 ac_cv_header_time=yes
22325 echo "configure: failed program was:" >&5
22326 cat conftest.$ac_ext >&5
22328 ac_cv_header_time=no
22333 echo "$ac_t""$ac_cv_header_time" 1>&6
22334 if test $ac_cv_header_time = yes; then
22335 cat >> confdefs.h <<\EOF
22336 #define TIME_WITH_SYS_TIME 1
22341 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22342 echo "configure:22343: checking whether struct tm is in sys/time.h or time.h" >&5
22343 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22344 echo $ac_n "(cached) $ac_c" 1>&6
22346 cat > conftest.$ac_ext <<EOF
22347 #line 22348 "configure"
22348 #include "confdefs.h"
22349 #include <sys/types.h>
22352 struct tm *tp; tp->tm_sec;
22355 if { (eval echo configure:22356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22357 ac_cv_struct_tm=time.h
22359 echo "configure: failed program was:" >&5
22360 cat conftest.$ac_ext >&5
22362 ac_cv_struct_tm=sys/time.h
22367 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22368 if test $ac_cv_struct_tm = sys/time.h; then
22369 cat >> confdefs.h <<\EOF
22370 #define TM_IN_SYS_TIME 1
22375 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22376 echo "configure:22377: checking for uid_t in sys/types.h" >&5
22377 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22378 echo $ac_n "(cached) $ac_c" 1>&6
22380 cat > conftest.$ac_ext <<EOF
22381 #line 22382 "configure"
22382 #include "confdefs.h"
22383 #include <sys/types.h>
22385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22386 egrep "uid_t" >/dev/null 2>&1; then
22388 ac_cv_type_uid_t=yes
22391 ac_cv_type_uid_t=no
22397 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22398 if test $ac_cv_type_uid_t = no; then
22399 cat >> confdefs.h <<\EOF
22403 cat >> confdefs.h <<\EOF
22409 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22410 echo "configure:22411: checking for sig_atomic_t" >&5
22411 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22412 echo $ac_n "(cached) $ac_c" 1>&6
22414 cat > conftest.$ac_ext <<EOF
22415 #line 22416 "configure"
22416 #include "confdefs.h"
22417 #include <signal.h>
22419 sig_atomic_t atomic;
22422 if { (eval echo configure:22423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22424 ol_cv_type_sig_atomic_t=yes
22426 echo "configure: failed program was:" >&5
22427 cat conftest.$ac_ext >&5
22429 ol_cv_type_sig_atomic_t=no
22434 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22435 if test $ol_cv_type_sig_atomic_t = no; then
22436 cat >> confdefs.h <<\EOF
22437 #define sig_atomic_t int
22444 # test for pw_gecos in struct passwd
22445 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22446 echo "configure:22447: checking struct passwd for pw_gecos" >&5
22447 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22448 echo $ac_n "(cached) $ac_c" 1>&6
22451 cat > conftest.$ac_ext <<EOF
22452 #line 22453 "configure"
22453 #include "confdefs.h"
22458 pwd.pw_gecos = pwd.pw_name;
22462 if { (eval echo configure:22463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22464 ol_cv_struct_passwd_pw_gecos=yes
22466 echo "configure: failed program was:" >&5
22467 cat conftest.$ac_ext >&5
22469 ol_cv_struct_passwd_pw_gecos=no
22474 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22475 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22476 cat >> confdefs.h <<\EOF
22477 #define HAVE_PW_GECOS 1
22482 # test for pw_passwd in struct passwd
22483 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22484 echo "configure:22485: checking struct passwd for pw_passwd" >&5
22485 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22486 echo $ac_n "(cached) $ac_c" 1>&6
22489 cat > conftest.$ac_ext <<EOF
22490 #line 22491 "configure"
22491 #include "confdefs.h"
22496 pwd.pw_passwd = pwd.pw_name;
22500 if { (eval echo configure:22501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22502 ol_cv_struct_passwd_pw_passwd=yes
22504 echo "configure: failed program was:" >&5
22505 cat conftest.$ac_ext >&5
22507 ol_cv_struct_passwd_pw_passwd=no
22512 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22513 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22514 cat >> confdefs.h <<\EOF
22515 #define HAVE_PW_PASSWD 1
22521 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22522 echo "configure:22523: checking if toupper() requires islower()" >&5
22523 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22524 echo $ac_n "(cached) $ac_c" 1>&6
22527 if test "$cross_compiling" = yes; then
22528 ol_cv_c_upper_lower=safe
22530 cat > conftest.$ac_ext <<EOF
22531 #line 22532 "configure"
22532 #include "confdefs.h"
22537 if ('C' == toupper('C'))
22543 if { (eval echo configure:22544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22545 ol_cv_c_upper_lower=no
22547 echo "configure: failed program was:" >&5
22548 cat conftest.$ac_ext >&5
22550 ol_cv_c_upper_lower=yes
22557 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22558 if test $ol_cv_c_upper_lower != no ; then
22559 cat >> confdefs.h <<\EOF
22560 #define C_UPPER_LOWER 1
22565 echo $ac_n "checking for working const""... $ac_c" 1>&6
22566 echo "configure:22567: checking for working const" >&5
22567 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22568 echo $ac_n "(cached) $ac_c" 1>&6
22570 cat > conftest.$ac_ext <<EOF
22571 #line 22572 "configure"
22572 #include "confdefs.h"
22576 /* Ultrix mips cc rejects this. */
22577 typedef int charset[2]; const charset x;
22578 /* SunOS 4.1.1 cc rejects this. */
22579 char const *const *ccp;
22581 /* NEC SVR4.0.2 mips cc rejects this. */
22582 struct point {int x, y;};
22583 static struct point const zero = {0,0};
22584 /* AIX XL C 1.02.0.0 rejects this.
22585 It does not let you subtract one const X* pointer from another in an arm
22586 of an if-expression whose if-part is not a constant expression */
22587 const char *g = "string";
22588 ccp = &g + (g ? g-g : 0);
22589 /* HPUX 7.0 cc rejects these. */
22592 ccp = (char const *const *) p;
22593 { /* SCO 3.2v4 cc rejects this. */
22595 char const *s = 0 ? (char *) 0 : (char const *) 0;
22599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22600 int x[] = {25, 17};
22601 const int *foo = &x[0];
22604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22605 typedef const int *iptr;
22609 { /* AIX XL C 1.02.0.0 rejects this saying
22610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22611 struct s { int j; const int *ap[3]; };
22612 struct s *b; b->j = 5;
22614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22615 const int foo = 10;
22620 if { (eval echo configure:22621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22624 echo "configure: failed program was:" >&5
22625 cat conftest.$ac_ext >&5
22632 echo "$ac_t""$ac_cv_c_const" 1>&6
22633 if test $ac_cv_c_const = no; then
22634 cat >> confdefs.h <<\EOF
22640 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22641 echo "configure:22642: checking if compiler understands volatile" >&5
22642 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22643 echo $ac_n "(cached) $ac_c" 1>&6
22645 cat > conftest.$ac_ext <<EOF
22646 #line 22647 "configure"
22647 #include "confdefs.h"
22650 volatile int a; int * volatile b = x ? &y : &z;
22651 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22655 if { (eval echo configure:22656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22657 ol_cv_c_volatile=yes
22659 echo "configure: failed program was:" >&5
22660 cat conftest.$ac_ext >&5
22662 ol_cv_c_volatile=no
22667 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22668 if test $ol_cv_c_volatile = yes; then
22671 cat >> confdefs.h <<\EOF
22678 if test $cross_compiling = yes ; then
22679 cat >> confdefs.h <<\EOF
22680 #define CROSS_COMPILING 1
22684 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22685 echo "configure:22686: checking whether byte ordering is bigendian" >&5
22686 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22687 echo $ac_n "(cached) $ac_c" 1>&6
22689 ac_cv_c_bigendian=unknown
22690 # See if sys/param.h defines the BYTE_ORDER macro.
22691 cat > conftest.$ac_ext <<EOF
22692 #line 22693 "configure"
22693 #include "confdefs.h"
22694 #include <sys/types.h>
22695 #include <sys/param.h>
22698 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22699 bogus endian macros
22703 if { (eval echo configure:22704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22705 # It does; now see whether it defined to BIG_ENDIAN or not.
22706 cat > conftest.$ac_ext <<EOF
22707 #line 22708 "configure"
22708 #include "confdefs.h"
22709 #include <sys/types.h>
22710 #include <sys/param.h>
22713 #if BYTE_ORDER != BIG_ENDIAN
22718 if { (eval echo configure:22719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22720 ac_cv_c_bigendian=yes
22722 echo "configure: failed program was:" >&5
22723 cat conftest.$ac_ext >&5
22725 ac_cv_c_bigendian=no
22729 echo "configure: failed program was:" >&5
22730 cat conftest.$ac_ext >&5
22733 if test $ac_cv_c_bigendian = unknown; then
22734 if test "$cross_compiling" = yes; then
22735 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22737 cat > conftest.$ac_ext <<EOF
22738 #line 22739 "configure"
22739 #include "confdefs.h"
22741 /* Are we little or big endian? From Harbison&Steele. */
22745 char c[sizeof (long)];
22748 exit (u.c[sizeof (long) - 1] == 1);
22751 if { (eval echo configure:22752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22753 ac_cv_c_bigendian=no
22755 echo "configure: failed program was:" >&5
22756 cat conftest.$ac_ext >&5
22758 ac_cv_c_bigendian=yes
22766 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22767 if test $ac_cv_c_bigendian = yes; then
22768 cat >> confdefs.h <<\EOF
22769 #define WORDS_BIGENDIAN 1
22776 echo $ac_n "checking size of short""... $ac_c" 1>&6
22777 echo "configure:22778: checking size of short" >&5
22778 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22779 echo $ac_n "(cached) $ac_c" 1>&6
22781 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22782 cat > conftest.$ac_ext <<EOF
22783 #line 22784 "configure"
22784 #include "confdefs.h"
22785 #include "confdefs.h"
22786 #include <sys/types.h>
22790 switch (0) case 0: case (sizeof (short) == $ac_size):;
22793 if { (eval echo configure:22794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22795 ac_cv_sizeof_short=$ac_size
22797 echo "configure: failed program was:" >&5
22798 cat conftest.$ac_ext >&5
22801 if test x$ac_cv_sizeof_short != x ; then break; fi
22806 if test x$ac_cv_sizeof_short = x ; then
22807 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22809 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22810 cat >> confdefs.h <<EOF
22811 #define SIZEOF_SHORT $ac_cv_sizeof_short
22815 echo $ac_n "checking size of int""... $ac_c" 1>&6
22816 echo "configure:22817: checking size of int" >&5
22817 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22818 echo $ac_n "(cached) $ac_c" 1>&6
22820 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22821 cat > conftest.$ac_ext <<EOF
22822 #line 22823 "configure"
22823 #include "confdefs.h"
22824 #include "confdefs.h"
22825 #include <sys/types.h>
22829 switch (0) case 0: case (sizeof (int) == $ac_size):;
22832 if { (eval echo configure:22833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22834 ac_cv_sizeof_int=$ac_size
22836 echo "configure: failed program was:" >&5
22837 cat conftest.$ac_ext >&5
22840 if test x$ac_cv_sizeof_int != x ; then break; fi
22845 if test x$ac_cv_sizeof_int = x ; then
22846 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22848 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22849 cat >> confdefs.h <<EOF
22850 #define SIZEOF_INT $ac_cv_sizeof_int
22854 echo $ac_n "checking size of long""... $ac_c" 1>&6
22855 echo "configure:22856: checking size of long" >&5
22856 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22857 echo $ac_n "(cached) $ac_c" 1>&6
22859 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22860 cat > conftest.$ac_ext <<EOF
22861 #line 22862 "configure"
22862 #include "confdefs.h"
22863 #include "confdefs.h"
22864 #include <sys/types.h>
22868 switch (0) case 0: case (sizeof (long) == $ac_size):;
22871 if { (eval echo configure:22872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22873 ac_cv_sizeof_long=$ac_size
22875 echo "configure: failed program was:" >&5
22876 cat conftest.$ac_ext >&5
22879 if test x$ac_cv_sizeof_long != x ; then break; fi
22884 if test x$ac_cv_sizeof_long = x ; then
22885 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22887 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22888 cat >> confdefs.h <<EOF
22889 #define SIZEOF_LONG $ac_cv_sizeof_long
22894 if test "$ac_cv_sizeof_int" -lt 4 ; then
22895 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22897 cat >> confdefs.h <<\EOF
22898 #define LBER_INT_T long
22902 cat >> confdefs.h <<\EOF
22903 #define LBER_INT_T int
22908 cat >> confdefs.h <<\EOF
22909 #define LBER_LEN_T long
22912 cat >> confdefs.h <<\EOF
22913 #define LBER_SOCKET_T int
22916 cat >> confdefs.h <<\EOF
22917 #define LBER_TAG_T long
22921 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22922 echo "configure:22923: checking for 8-bit clean memcmp" >&5
22923 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22924 echo $ac_n "(cached) $ac_c" 1>&6
22926 if test "$cross_compiling" = yes; then
22927 ac_cv_func_memcmp_clean=no
22929 cat > conftest.$ac_ext <<EOF
22930 #line 22931 "configure"
22931 #include "confdefs.h"
22935 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22936 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22940 if { (eval echo configure:22941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22942 ac_cv_func_memcmp_clean=yes
22944 echo "configure: failed program was:" >&5
22945 cat conftest.$ac_ext >&5
22947 ac_cv_func_memcmp_clean=no
22954 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22955 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22957 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22958 echo "configure:22959: checking for strftime" >&5
22959 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22960 echo $ac_n "(cached) $ac_c" 1>&6
22962 cat > conftest.$ac_ext <<EOF
22963 #line 22964 "configure"
22964 #include "confdefs.h"
22965 /* System header to define __stub macros and hopefully few prototypes,
22966 which can conflict with char strftime(); below. */
22967 #include <assert.h>
22968 /* Override any gcc2 internal prototype to avoid an error. */
22969 /* We use char because int might match the return type of a gcc2
22970 builtin and then its argument prototype would still apply. */
22976 /* The GNU C library defines this for functions which it implements
22977 to always fail with ENOSYS. Some functions are actually named
22978 something starting with __ and the normal name is an alias. */
22979 #if defined (__stub_strftime) || defined (__stub___strftime)
22987 if { (eval echo configure:22988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22989 eval "ac_cv_func_strftime=yes"
22991 echo "configure: failed program was:" >&5
22992 cat conftest.$ac_ext >&5
22994 eval "ac_cv_func_strftime=no"
22999 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
23000 echo "$ac_t""yes" 1>&6
23001 cat >> confdefs.h <<\EOF
23002 #define HAVE_STRFTIME 1
23006 echo "$ac_t""no" 1>&6
23007 # strftime is in -lintl on SCO UNIX.
23008 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
23009 echo "configure:23010: checking for strftime in -lintl" >&5
23010 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
23011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23012 echo $ac_n "(cached) $ac_c" 1>&6
23014 ac_save_LIBS="$LIBS"
23015 LIBS="-lintl $LIBS"
23016 cat > conftest.$ac_ext <<EOF
23017 #line 23018 "configure"
23018 #include "confdefs.h"
23019 /* Override any gcc2 internal prototype to avoid an error. */
23020 /* We use char because int might match the return type of a gcc2
23021 builtin and then its argument prototype would still apply. */
23028 if { (eval echo configure:23029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23030 eval "ac_cv_lib_$ac_lib_var=yes"
23032 echo "configure: failed program was:" >&5
23033 cat conftest.$ac_ext >&5
23035 eval "ac_cv_lib_$ac_lib_var=no"
23038 LIBS="$ac_save_LIBS"
23041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23042 echo "$ac_t""yes" 1>&6
23043 cat >> confdefs.h <<\EOF
23044 #define HAVE_STRFTIME 1
23047 LIBS="-lintl $LIBS"
23049 echo "$ac_t""no" 1>&6
23055 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
23056 echo "configure:23057: checking for inet_aton()" >&5
23057 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
23058 echo $ac_n "(cached) $ac_c" 1>&6
23060 cat > conftest.$ac_ext <<EOF
23061 #line 23062 "configure"
23062 #include "confdefs.h"
23064 #ifdef HAVE_SYS_TYPES_H
23065 # include <sys/types.h>
23067 #ifdef HAVE_SYS_SOCKET_H
23068 # include <sys/socket.h>
23069 # ifdef HAVE_SYS_SELECT_H
23070 # include <sys/select.h>
23072 # include <netinet/in.h>
23073 # ifdef HAVE_ARPA_INET_H
23074 # include <arpa/inet.h>
23080 int rc = inet_aton( "255.255.255.255", &in );
23083 if { (eval echo configure:23084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23085 ol_cv_func_inet_aton=yes
23087 echo "configure: failed program was:" >&5
23088 cat conftest.$ac_ext >&5
23090 ol_cv_func_inet_aton=no
23095 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
23096 if test $ol_cv_func_inet_aton != no; then
23097 cat >> confdefs.h <<\EOF
23098 #define HAVE_INET_ATON 1
23104 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
23105 echo "configure:23106: checking for _spawnlp" >&5
23106 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
23107 echo $ac_n "(cached) $ac_c" 1>&6
23109 cat > conftest.$ac_ext <<EOF
23110 #line 23111 "configure"
23111 #include "confdefs.h"
23112 /* System header to define __stub macros and hopefully few prototypes,
23113 which can conflict with char _spawnlp(); below. */
23114 #include <assert.h>
23115 /* Override any gcc2 internal prototype to avoid an error. */
23116 /* We use char because int might match the return type of a gcc2
23117 builtin and then its argument prototype would still apply. */
23123 /* The GNU C library defines this for functions which it implements
23124 to always fail with ENOSYS. Some functions are actually named
23125 something starting with __ and the normal name is an alias. */
23126 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
23134 if { (eval echo configure:23135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23136 eval "ac_cv_func__spawnlp=yes"
23138 echo "configure: failed program was:" >&5
23139 cat conftest.$ac_ext >&5
23141 eval "ac_cv_func__spawnlp=no"
23146 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
23147 echo "$ac_t""yes" 1>&6
23148 cat >> confdefs.h <<\EOF
23149 #define HAVE_SPAWNLP 1
23153 echo "$ac_t""no" 1>&6
23157 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
23158 echo "configure:23159: checking for _snprintf" >&5
23159 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
23160 echo $ac_n "(cached) $ac_c" 1>&6
23162 cat > conftest.$ac_ext <<EOF
23163 #line 23164 "configure"
23164 #include "confdefs.h"
23165 /* System header to define __stub macros and hopefully few prototypes,
23166 which can conflict with char _snprintf(); below. */
23167 #include <assert.h>
23168 /* Override any gcc2 internal prototype to avoid an error. */
23169 /* We use char because int might match the return type of a gcc2
23170 builtin and then its argument prototype would still apply. */
23176 /* The GNU C library defines this for functions which it implements
23177 to always fail with ENOSYS. Some functions are actually named
23178 something starting with __ and the normal name is an alias. */
23179 #if defined (__stub__snprintf) || defined (__stub____snprintf)
23187 if { (eval echo configure:23188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23189 eval "ac_cv_func__snprintf=yes"
23191 echo "configure: failed program was:" >&5
23192 cat conftest.$ac_ext >&5
23194 eval "ac_cv_func__snprintf=no"
23199 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
23200 echo "$ac_t""yes" 1>&6
23201 ac_cv_func_snprintf=yes
23202 cat >> confdefs.h <<\EOF
23203 #define snprintf _snprintf
23208 echo "$ac_t""no" 1>&6
23212 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
23213 echo "configure:23214: checking for _vsnprintf" >&5
23214 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
23215 echo $ac_n "(cached) $ac_c" 1>&6
23217 cat > conftest.$ac_ext <<EOF
23218 #line 23219 "configure"
23219 #include "confdefs.h"
23220 /* System header to define __stub macros and hopefully few prototypes,
23221 which can conflict with char _vsnprintf(); below. */
23222 #include <assert.h>
23223 /* Override any gcc2 internal prototype to avoid an error. */
23224 /* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
23231 /* The GNU C library defines this for functions which it implements
23232 to always fail with ENOSYS. Some functions are actually named
23233 something starting with __ and the normal name is an alias. */
23234 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
23242 if { (eval echo configure:23243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23244 eval "ac_cv_func__vsnprintf=yes"
23246 echo "configure: failed program was:" >&5
23247 cat conftest.$ac_ext >&5
23249 eval "ac_cv_func__vsnprintf=no"
23254 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
23255 echo "$ac_t""yes" 1>&6
23256 ac_cv_func_vsnprintf=yes
23257 cat >> confdefs.h <<\EOF
23258 #define vsnprintf _vsnprintf
23263 echo "$ac_t""no" 1>&6
23267 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23268 echo "configure:23269: checking for vprintf" >&5
23269 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23270 echo $ac_n "(cached) $ac_c" 1>&6
23272 cat > conftest.$ac_ext <<EOF
23273 #line 23274 "configure"
23274 #include "confdefs.h"
23275 /* System header to define __stub macros and hopefully few prototypes,
23276 which can conflict with char vprintf(); below. */
23277 #include <assert.h>
23278 /* Override any gcc2 internal prototype to avoid an error. */
23279 /* We use char because int might match the return type of a gcc2
23280 builtin and then its argument prototype would still apply. */
23286 /* The GNU C library defines this for functions which it implements
23287 to always fail with ENOSYS. Some functions are actually named
23288 something starting with __ and the normal name is an alias. */
23289 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23297 if { (eval echo configure:23298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23299 eval "ac_cv_func_vprintf=yes"
23301 echo "configure: failed program was:" >&5
23302 cat conftest.$ac_ext >&5
23304 eval "ac_cv_func_vprintf=no"
23309 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23310 echo "$ac_t""yes" 1>&6
23311 cat >> confdefs.h <<\EOF
23312 #define HAVE_VPRINTF 1
23316 echo "$ac_t""no" 1>&6
23319 if test "$ac_cv_func_vprintf" != yes; then
23320 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23321 echo "configure:23322: checking for _doprnt" >&5
23322 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23323 echo $ac_n "(cached) $ac_c" 1>&6
23325 cat > conftest.$ac_ext <<EOF
23326 #line 23327 "configure"
23327 #include "confdefs.h"
23328 /* System header to define __stub macros and hopefully few prototypes,
23329 which can conflict with char _doprnt(); below. */
23330 #include <assert.h>
23331 /* Override any gcc2 internal prototype to avoid an error. */
23332 /* We use char because int might match the return type of a gcc2
23333 builtin and then its argument prototype would still apply. */
23339 /* The GNU C library defines this for functions which it implements
23340 to always fail with ENOSYS. Some functions are actually named
23341 something starting with __ and the normal name is an alias. */
23342 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23350 if { (eval echo configure:23351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23352 eval "ac_cv_func__doprnt=yes"
23354 echo "configure: failed program was:" >&5
23355 cat conftest.$ac_ext >&5
23357 eval "ac_cv_func__doprnt=no"
23362 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23363 echo "$ac_t""yes" 1>&6
23364 cat >> confdefs.h <<\EOF
23365 #define HAVE_DOPRNT 1
23369 echo "$ac_t""no" 1>&6
23375 if test $ac_cv_func_vprintf = yes ; then
23376 for ac_func in snprintf vsnprintf
23378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23379 echo "configure:23380: checking for $ac_func" >&5
23380 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23381 echo $ac_n "(cached) $ac_c" 1>&6
23383 cat > conftest.$ac_ext <<EOF
23384 #line 23385 "configure"
23385 #include "confdefs.h"
23386 /* System header to define __stub macros and hopefully few prototypes,
23387 which can conflict with char $ac_func(); below. */
23388 #include <assert.h>
23389 /* Override any gcc2 internal prototype to avoid an error. */
23390 /* We use char because int might match the return type of a gcc2
23391 builtin and then its argument prototype would still apply. */
23397 /* The GNU C library defines this for functions which it implements
23398 to always fail with ENOSYS. Some functions are actually named
23399 something starting with __ and the normal name is an alias. */
23400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23408 if { (eval echo configure:23409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23410 eval "ac_cv_func_$ac_func=yes"
23412 echo "configure: failed program was:" >&5
23413 cat conftest.$ac_ext >&5
23415 eval "ac_cv_func_$ac_func=no"
23420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23421 echo "$ac_t""yes" 1>&6
23422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23423 cat >> confdefs.h <<EOF
23424 #define $ac_tr_func 1
23428 echo "$ac_t""no" 1>&6
23493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23494 echo "configure:23495: checking for $ac_func" >&5
23495 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23496 echo $ac_n "(cached) $ac_c" 1>&6
23498 cat > conftest.$ac_ext <<EOF
23499 #line 23500 "configure"
23500 #include "confdefs.h"
23501 /* System header to define __stub macros and hopefully few prototypes,
23502 which can conflict with char $ac_func(); below. */
23503 #include <assert.h>
23504 /* Override any gcc2 internal prototype to avoid an error. */
23505 /* We use char because int might match the return type of a gcc2
23506 builtin and then its argument prototype would still apply. */
23512 /* The GNU C library defines this for functions which it implements
23513 to always fail with ENOSYS. Some functions are actually named
23514 something starting with __ and the normal name is an alias. */
23515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23523 if { (eval echo configure:23524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23525 eval "ac_cv_func_$ac_func=yes"
23527 echo "configure: failed program was:" >&5
23528 cat conftest.$ac_ext >&5
23530 eval "ac_cv_func_$ac_func=no"
23535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23536 echo "$ac_t""yes" 1>&6
23537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23538 cat >> confdefs.h <<EOF
23539 #define $ac_tr_func 1
23543 echo "$ac_t""no" 1>&6
23548 for ac_func in getopt getpeereid
23550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23551 echo "configure:23552: checking for $ac_func" >&5
23552 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23553 echo $ac_n "(cached) $ac_c" 1>&6
23555 cat > conftest.$ac_ext <<EOF
23556 #line 23557 "configure"
23557 #include "confdefs.h"
23558 /* System header to define __stub macros and hopefully few prototypes,
23559 which can conflict with char $ac_func(); below. */
23560 #include <assert.h>
23561 /* Override any gcc2 internal prototype to avoid an error. */
23562 /* We use char because int might match the return type of a gcc2
23563 builtin and then its argument prototype would still apply. */
23569 /* The GNU C library defines this for functions which it implements
23570 to always fail with ENOSYS. Some functions are actually named
23571 something starting with __ and the normal name is an alias. */
23572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23580 if { (eval echo configure:23581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23582 eval "ac_cv_func_$ac_func=yes"
23584 echo "configure: failed program was:" >&5
23585 cat conftest.$ac_ext >&5
23587 eval "ac_cv_func_$ac_func=no"
23592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23593 echo "$ac_t""yes" 1>&6
23594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23595 cat >> confdefs.h <<EOF
23596 #define $ac_tr_func 1
23600 echo "$ac_t""no" 1>&6
23601 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23607 if test "$ac_cv_func_getopt" != yes; then
23608 LIBSRCS="$LIBSRCS getopt.c"
23610 if test "$ac_cv_func_getpeereid" != yes; then
23611 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23612 echo "configure:23613: checking for msg_accrights in msghdr" >&5
23613 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23614 echo $ac_n "(cached) $ac_c" 1>&6
23616 cat > conftest.$ac_ext <<EOF
23617 #line 23618 "configure"
23618 #include "confdefs.h"
23619 #include <sys/socket.h>
23621 struct msghdr m; m.msg_accrightslen=0
23624 if { (eval echo configure:23625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23626 ol_cv_msghdr_msg_accrights=yes
23628 echo "configure: failed program was:" >&5
23629 cat conftest.$ac_ext >&5
23631 ol_cv_msghdr_msg_accrights=no
23637 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23638 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23639 cat >> confdefs.h <<\EOF
23640 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23645 LIBSRCS="$LIBSRCS getpeereid.c"
23647 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23648 if test "$ac_cv_func_snprintf" != yes; then
23649 cat >> confdefs.h <<\EOF
23650 #define snprintf ber_pvt_snprintf
23654 if test "$ac_cv_func_vsnprintf" != yes; then
23655 cat >> confdefs.h <<\EOF
23656 #define vsnprintf ber_pvt_vsnprintf
23662 # Check Configuration
23663 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23664 echo "configure:23665: checking declaration of sys_errlist" >&5
23665 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23666 echo $ac_n "(cached) $ac_c" 1>&6
23669 cat > conftest.$ac_ext <<EOF
23670 #line 23671 "configure"
23671 #include "confdefs.h"
23674 #include <sys/types.h>
23677 #include <stdlib.h>
23680 char *c = (char *) *sys_errlist
23683 if { (eval echo configure:23684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23685 ol_cv_dcl_sys_errlist=yes
23686 ol_cv_have_sys_errlist=yes
23688 echo "configure: failed program was:" >&5
23689 cat conftest.$ac_ext >&5
23691 ol_cv_dcl_sys_errlist=no
23696 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23698 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23699 if test $ol_cv_dcl_sys_errlist = no ; then
23700 cat >> confdefs.h <<\EOF
23701 #define DECL_SYS_ERRLIST 1
23705 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23706 echo "configure:23707: checking existence of sys_errlist" >&5
23707 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23708 echo $ac_n "(cached) $ac_c" 1>&6
23711 cat > conftest.$ac_ext <<EOF
23712 #line 23713 "configure"
23713 #include "confdefs.h"
23716 char *c = (char *) *sys_errlist
23719 if { (eval echo configure:23720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23721 ol_cv_have_sys_errlist=yes
23723 echo "configure: failed program was:" >&5
23724 cat conftest.$ac_ext >&5
23726 ol_cv_have_sys_errlist=no
23731 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23733 if test $ol_cv_have_sys_errlist = yes ; then
23734 cat >> confdefs.h <<\EOF
23735 #define HAVE_SYS_ERRLIST 1
23742 if test "$ol_enable_slapi" != no ; then
23743 for ac_hdr in ltdl.h
23745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23747 echo "configure:23748: checking for $ac_hdr" >&5
23748 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23749 echo $ac_n "(cached) $ac_c" 1>&6
23751 cat > conftest.$ac_ext <<EOF
23752 #line 23753 "configure"
23753 #include "confdefs.h"
23756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23757 { (eval echo configure:23758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23759 if test -z "$ac_err"; then
23761 eval "ac_cv_header_$ac_safe=yes"
23764 echo "configure: failed program was:" >&5
23765 cat conftest.$ac_ext >&5
23767 eval "ac_cv_header_$ac_safe=no"
23771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23772 echo "$ac_t""yes" 1>&6
23773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23774 cat >> confdefs.h <<EOF
23775 #define $ac_tr_hdr 1
23779 echo "$ac_t""no" 1>&6
23784 if test $ac_cv_header_ltdl_h != yes ; then
23785 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23787 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23788 echo "configure:23789: checking for lt_dlinit in -lltdl" >&5
23789 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23790 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23791 echo $ac_n "(cached) $ac_c" 1>&6
23793 ac_save_LIBS="$LIBS"
23794 LIBS="-lltdl $LIBS"
23795 cat > conftest.$ac_ext <<EOF
23796 #line 23797 "configure"
23797 #include "confdefs.h"
23798 /* Override any gcc2 internal prototype to avoid an error. */
23799 /* We use char because int might match the return type of a gcc2
23800 builtin and then its argument prototype would still apply. */
23807 if { (eval echo configure:23808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23809 eval "ac_cv_lib_$ac_lib_var=yes"
23811 echo "configure: failed program was:" >&5
23812 cat conftest.$ac_ext >&5
23814 eval "ac_cv_lib_$ac_lib_var=no"
23817 LIBS="$ac_save_LIBS"
23820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23821 echo "$ac_t""yes" 1>&6
23824 LIBSLAPI=libslapi.a
23825 LIBSLAPITOOLS=../libslapi.a
23826 cat >> confdefs.h <<\EOF
23827 #define HAVE_LIBLTDL 1
23832 echo "$ac_t""no" 1>&6
23833 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23837 cat >> confdefs.h <<\EOF
23838 #define LDAP_SLAPI 1
23843 if test "$ol_enable_debug" != no ; then
23844 cat >> confdefs.h <<\EOF
23845 #define LDAP_DEBUG 1
23849 if test "$ol_enable_syslog" = yes ; then
23850 cat >> confdefs.h <<\EOF
23851 #define LDAP_SYSLOG 1
23855 if test "$ol_link_kbind" != no ; then
23856 cat >> confdefs.h <<\EOF
23857 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23861 if test "$ol_enable_proctitle" != no ; then
23862 cat >> confdefs.h <<\EOF
23863 #define LDAP_PROCTITLE 1
23867 if test "$ol_enable_referrals" != no ; then
23868 cat >> confdefs.h <<\EOF
23869 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23873 if test "$ol_enable_local" != no; then
23874 cat >> confdefs.h <<\EOF
23875 #define LDAP_PF_LOCAL 1
23879 if test "$ol_link_ipv6" != no; then
23880 cat >> confdefs.h <<\EOF
23881 #define LDAP_PF_INET6 1
23885 if test "$ol_enable_cleartext" != no ; then
23886 cat >> confdefs.h <<\EOF
23887 #define SLAPD_CLEARTEXT 1
23891 if test "$ol_enable_crypt" != no ; then
23892 cat >> confdefs.h <<\EOF
23893 #define SLAPD_CRYPT 1
23897 if test "$ol_link_kpasswd" != no ; then
23898 cat >> confdefs.h <<\EOF
23899 #define SLAPD_KPASSWD 1
23903 if test "$ol_link_spasswd" != no ; then
23904 cat >> confdefs.h <<\EOF
23905 #define SLAPD_SPASSWD 1
23909 if test "$ol_enable_multimaster" != no ; then
23910 cat >> confdefs.h <<\EOF
23911 #define SLAPD_MULTIMASTER 1
23915 if test "$ol_enable_rlookups" != no ; then
23916 cat >> confdefs.h <<\EOF
23917 #define SLAPD_RLOOKUPS 1
23921 if test "$ol_enable_aci" != no ; then
23922 cat >> confdefs.h <<\EOF
23923 #define SLAPD_ACI_ENABLED 1
23928 if test "$ol_link_modules" != no ; then
23929 cat >> confdefs.h <<\EOF
23930 #define SLAPD_MODULES 1
23934 SLAPD_MODULES_LDFLAGS="-dlopen self"
23937 if test "$ol_enable_bdb" != no ; then
23938 cat >> confdefs.h <<\EOF
23939 #define SLAPD_BDB 1
23944 if test "$ol_with_bdb_module" != static ; then
23945 cat >> confdefs.h <<\EOF
23946 #define SLAPD_BDB_DYNAMIC 1
23950 BUILD_BDB_DYNAMIC=shared
23951 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23953 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23957 if test "$ol_link_dnssrv" != no ; then
23958 cat >> confdefs.h <<\EOF
23959 #define SLAPD_DNSSRV 1
23964 if test "$ol_with_dnssrv_module" != static ; then
23965 cat >> confdefs.h <<\EOF
23966 #define SLAPD_DNSSRV_DYNAMIC 1
23970 BUILD_DNSSRV_DYNAMIC=shared
23971 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23973 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23977 if test "$ol_enable_hdb" != no ; then
23978 cat >> confdefs.h <<\EOF
23979 #define SLAPD_HDB 1
23984 if test "$ol_with_hdb_module" != static ; then
23985 cat >> confdefs.h <<\EOF
23986 #define SLAPD_HDB_DYNAMIC 1
23990 BUILD_HDB_DYNAMIC=shared
23991 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23993 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23997 if test "$ol_enable_ldap" != no ; then
23998 cat >> confdefs.h <<\EOF
23999 #define SLAPD_LDAP 1
24004 if test "$ol_with_ldap_module" != static ; then
24005 cat >> confdefs.h <<\EOF
24006 #define SLAPD_LDAP_DYNAMIC 1
24010 BUILD_LDAP_DYNAMIC=shared
24011 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24013 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24017 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24018 cat >> confdefs.h <<\EOF
24019 #define SLAPD_LDBM 1
24024 if test "$ol_with_ldbm_module" != static ; then
24025 cat >> confdefs.h <<\EOF
24026 #define SLAPD_LDBM_DYNAMIC 1
24030 BUILD_LDBM_DYNAMIC=shared
24031 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24033 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24037 if test "$ol_enable_meta" != no ; then
24038 if test "$ol_enable_ldap" = no ; then
24039 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
24041 if test "$ol_enable_rewrite" = no ; then
24042 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
24044 cat >> confdefs.h <<\EOF
24045 #define SLAPD_META 1
24051 if test $ol_enable_ldbm = yes -o \
24052 $ol_enable_bdb = yes ; then
24055 if test "$ol_with_meta_module" != static ; then
24056 cat >> confdefs.h <<\EOF
24057 #define SLAPD_META_DYNAMIC 1
24061 BUILD_META_DYNAMIC=shared
24062 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24064 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24068 if test "$ol_enable_monitor" != no ; then
24069 cat >> confdefs.h <<\EOF
24070 #define SLAPD_MONITOR 1
24075 if test "$ol_with_monitor_module" != static ; then
24076 cat >> confdefs.h <<\EOF
24077 #define SLAPD_MONITOR_DYNAMIC 1
24081 BUILD_MONITOR_DYNAMIC=shared
24082 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24084 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24088 if test "$ol_enable_null" != no ; then
24089 cat >> confdefs.h <<\EOF
24090 #define SLAPD_NULL 1
24095 if test "$ol_with_null_module" != static ; then
24096 cat >> confdefs.h <<\EOF
24097 #define SLAPD_NULL_DYNAMIC 1
24101 BUILD_NULL_DYNAMIC=shared
24102 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24104 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24108 if test "$ol_enable_passwd" != no ; then
24109 cat >> confdefs.h <<\EOF
24110 #define SLAPD_PASSWD 1
24115 if test "$ol_with_passwd_module" != static ; then
24116 cat >> confdefs.h <<\EOF
24117 #define SLAPD_PASSWD_DYNAMIC 1
24121 BUILD_PASSWD_DYNAMIC=shared
24122 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24124 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24128 if test "$ol_link_perl" != no ; then
24129 cat >> confdefs.h <<\EOF
24130 #define SLAPD_PERL 1
24135 if test "$ol_with_perl_module" != static ; then
24136 cat >> confdefs.h <<\EOF
24137 #define SLAPD_PERL_DYNAMIC 1
24141 BUILD_PERL_DYNAMIC=shared
24142 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24144 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24148 if test "$ol_enable_shell" != no ; then
24149 if test "$ol_link_thread" != no ; then
24150 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
24152 cat >> confdefs.h <<\EOF
24153 #define SLAPD_SHELL 1
24158 if test "$ol_with_shell_module" != static ; then
24159 cat >> confdefs.h <<\EOF
24160 #define SLAPD_SHELL_DYNAMIC 1
24164 BUILD_SHELL_DYNAMIC=shared
24165 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24167 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24171 if test "$ol_enable_tcl" != no ; then
24172 cat >> confdefs.h <<\EOF
24173 #define SLAPD_TCL 1
24178 if test "$ol_with_tcl_module" != static; then
24179 cat >> confdefs.h <<\EOF
24180 #define SLAPD_TCL_DYNAMIC 1
24184 BUILD_TCL_DYNAMIC=shared
24185 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
24187 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
24191 if test "$ol_link_sql" != no ; then
24192 cat >> confdefs.h <<\EOF
24193 #define SLAPD_SQL 1
24198 if test "$ol_with_sql_module" != static; then
24199 cat >> confdefs.h <<\EOF
24200 #define SLAPD_SQL_DYNAMIC 1
24204 BUILD_SQL_DYNAMIC=shared
24205 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24207 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24211 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24212 $BUILD_SLAPD = yes ; then
24216 if test "$ol_enable_rewrite" != no ; then
24217 cat >> confdefs.h <<\EOF
24218 #define ENABLE_REWRITE 1
24224 if test "$ol_enable_slapi" != no ; then
24225 cat >> confdefs.h <<\EOF
24226 #define ENABLE_SLAPI 1
24230 SLAPD_SLAPI_DEPEND=libslapi.a
24235 if test "$ac_cv_mingw32" = yes ; then
24237 SLAPD_MODULES_LDFLAGS=
24242 if test -z "$SLAPD_STATIC_BACKENDS"; then
24243 SLAPD_NO_STATIC='#'
24322 # Check whether --with-xxinstall or --without-xxinstall was given.
24323 if test "${with_xxinstall+set}" = set; then
24324 withval="$with_xxinstall"
24332 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24334 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24335 # Let make expand exec_prefix.
24336 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24338 # Any assignment to VPATH causes Sun make to only execute
24339 # the first set of double-colon rules, so remove it if not needed.
24340 # If there is a colon in the path, we need to keep it.
24341 if test "x$srcdir" = x.; then
24342 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24345 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24347 DEFS=-DHAVE_CONFIG_H
24349 # Without the "./", some shells look in PATH for config.status.
24350 : ${CONFIG_STATUS=./config.status}
24352 echo creating $CONFIG_STATUS
24353 rm -f $CONFIG_STATUS
24354 cat > $CONFIG_STATUS <<EOF
24356 # Generated automatically by configure.
24357 # Run this file to recreate the current configuration.
24358 # This directory was configured as follows,
24359 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24361 # $0 $ac_configure_args
24363 # Compiler output produced by configure, useful for debugging
24364 # configure, is in ./config.log if it exists.
24366 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24369 case "\$ac_option" in
24370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24371 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24372 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24373 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24374 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24376 -help | --help | --hel | --he | --h)
24377 echo "\$ac_cs_usage"; exit 0 ;;
24378 *) echo "\$ac_cs_usage"; exit 1 ;;
24382 ac_given_srcdir=$srcdir
24383 ac_given_INSTALL="$INSTALL"
24385 trap 'rm -fr `echo "\
24386 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24387 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24388 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24389 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24390 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24391 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24392 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24393 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24394 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24395 include/Makefile:build/top.mk:include/Makefile.in \
24396 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24397 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24398 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24399 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24400 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
24401 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24402 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24403 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24404 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24405 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24406 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24407 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24408 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24409 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24410 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24411 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24412 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24413 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24414 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24415 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24416 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24417 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24418 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
24419 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24420 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24421 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24422 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24423 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24425 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24426 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24428 cat >> $CONFIG_STATUS <<EOF
24430 # Protect against being on the right side of a sed subst in config.status.
24431 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24432 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24436 s%@CFLAGS@%$CFLAGS%g
24437 s%@CPPFLAGS@%$CPPFLAGS%g
24438 s%@CXXFLAGS@%$CXXFLAGS%g
24439 s%@FFLAGS@%$FFLAGS%g
24441 s%@LDFLAGS@%$LDFLAGS%g
24443 s%@exec_prefix@%$exec_prefix%g
24444 s%@prefix@%$prefix%g
24445 s%@program_transform_name@%$program_transform_name%g
24446 s%@bindir@%$bindir%g
24447 s%@sbindir@%$sbindir%g
24448 s%@libexecdir@%$libexecdir%g
24449 s%@datadir@%$datadir%g
24450 s%@sysconfdir@%$sysconfdir%g
24451 s%@sharedstatedir@%$sharedstatedir%g
24452 s%@localstatedir@%$localstatedir%g
24453 s%@libdir@%$libdir%g
24454 s%@includedir@%$includedir%g
24455 s%@oldincludedir@%$oldincludedir%g
24456 s%@infodir@%$infodir%g
24457 s%@mandir@%$mandir%g
24459 s%@host_alias@%$host_alias%g
24460 s%@host_cpu@%$host_cpu%g
24461 s%@host_vendor@%$host_vendor%g
24462 s%@host_os@%$host_os%g
24463 s%@target@%$target%g
24464 s%@target_alias@%$target_alias%g
24465 s%@target_cpu@%$target_cpu%g
24466 s%@target_vendor@%$target_vendor%g
24467 s%@target_os@%$target_os%g
24469 s%@build_alias@%$build_alias%g
24470 s%@build_cpu@%$build_cpu%g
24471 s%@build_vendor@%$build_vendor%g
24472 s%@build_os@%$build_os%g
24473 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24474 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24475 s%@INSTALL_DATA@%$INSTALL_DATA%g
24476 s%@PACKAGE@%$PACKAGE%g
24477 s%@VERSION@%$VERSION%g
24478 s%@ACLOCAL@%$ACLOCAL%g
24479 s%@AUTOCONF@%$AUTOCONF%g
24480 s%@AUTOMAKE@%$AUTOMAKE%g
24481 s%@AUTOHEADER@%$AUTOHEADER%g
24482 s%@MAKEINFO@%$MAKEINFO%g
24483 s%@install_sh@%$install_sh%g
24486 s%@AMTARFLAGS@%$AMTARFLAGS%g
24487 s%@SET_MAKE@%$SET_MAKE%g
24488 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24489 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24490 s%@top_builddir@%$top_builddir%g
24491 s%@ldap_subdir@%$ldap_subdir%g
24495 s%@OBJEXT@%$OBJEXT%g
24496 s%@EXEEXT@%$EXEEXT%g
24498 s%@RANLIB@%$RANLIB%g
24500 s%@DLLTOOL@%$DLLTOOL%g
24502 s%@OBJDUMP@%$OBJDUMP%g
24504 s%@LIBTOOL@%$LIBTOOL%g
24506 s%@PERLBIN@%$PERLBIN%g
24507 s%@OL_MKDEP@%$OL_MKDEP%g
24508 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24509 s%@LTSTATIC@%$LTSTATIC%g
24510 s%@LIBOBJS@%$LIBOBJS%g
24511 s%@LIBSRCS@%$LIBSRCS%g
24513 s%@WITH_TLS@%$WITH_TLS%g
24514 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24515 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24516 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24517 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24518 s%@BUILD_BDB@%$BUILD_BDB%g
24519 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24520 s%@BUILD_HDB@%$BUILD_HDB%g
24521 s%@BUILD_LDAP@%$BUILD_LDAP%g
24522 s%@BUILD_LDBM@%$BUILD_LDBM%g
24523 s%@BUILD_META@%$BUILD_META%g
24524 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24525 s%@BUILD_CACHE@%$BUILD_CACHE%g
24526 s%@BUILD_NULL@%$BUILD_NULL%g
24527 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24528 s%@BUILD_PERL@%$BUILD_PERL%g
24529 s%@BUILD_SHELL@%$BUILD_SHELL%g
24530 s%@BUILD_SQL@%$BUILD_SQL%g
24531 s%@BUILD_TCL@%$BUILD_TCL%g
24532 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24533 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24534 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24535 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24536 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24537 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24538 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24539 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24540 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24541 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24542 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24543 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24544 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
24545 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24546 s%@LDAP_LIBS@%$LDAP_LIBS%g
24547 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24548 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24549 s%@LDBM_LIBS@%$LDBM_LIBS%g
24550 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24551 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24552 s%@WRAP_LIBS@%$WRAP_LIBS%g
24553 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
24554 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24555 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24556 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24557 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24558 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24559 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24560 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24561 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24562 s%@KRB4_LIBS@%$KRB4_LIBS%g
24563 s%@KRB5_LIBS@%$KRB5_LIBS%g
24564 s%@SASL_LIBS@%$SASL_LIBS%g
24565 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
24566 s%@TLS_LIBS@%$TLS_LIBS%g
24567 s%@MODULES_LIBS@%$MODULES_LIBS%g
24568 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24569 s%@LIBSLAPI@%$LIBSLAPI%g
24570 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24571 s%@AUTH_LIBS@%$AUTH_LIBS%g
24572 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24573 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24574 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24575 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24580 cat >> $CONFIG_STATUS <<\EOF
24582 # Split the substitutions into bite-sized pieces for seds with
24583 # small command number limits, like on Digital OSF/1 and HP-UX.
24584 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24585 ac_file=1 # Number of current file.
24586 ac_beg=1 # First line for current file.
24587 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24590 while $ac_more_lines; do
24591 if test $ac_beg -gt 1; then
24592 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24594 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24596 if test ! -s conftest.s$ac_file; then
24597 ac_more_lines=false
24598 rm -f conftest.s$ac_file
24600 if test -z "$ac_sed_cmds"; then
24601 ac_sed_cmds="sed -f conftest.s$ac_file"
24603 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24605 ac_file=`expr $ac_file + 1`
24607 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24610 if test -z "$ac_sed_cmds"; then
24615 cat >> $CONFIG_STATUS <<EOF
24617 CONFIG_FILES=\${CONFIG_FILES-"\
24618 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24619 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24620 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24621 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24622 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24623 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24624 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24625 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24626 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24627 include/Makefile:build/top.mk:include/Makefile.in \
24628 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24629 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24630 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24631 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24632 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
24633 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24634 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24635 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24636 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24637 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24638 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24639 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24640 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24641 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24642 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24643 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24644 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24645 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24646 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24647 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24648 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24649 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24650 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
24651 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24652 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24653 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24654 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24655 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24657 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24660 cat >> $CONFIG_STATUS <<\EOF
24661 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24664 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24665 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24666 *) ac_file_in="${ac_file}.in" ;;
24669 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24671 # Remove last slash and all that follows it. Not all systems have dirname.
24672 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24673 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24674 # The file is in a subdirectory.
24675 test ! -d "$ac_dir" && mkdir "$ac_dir"
24676 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24677 # A "../" for each directory in $ac_dir_suffix.
24678 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24680 ac_dir_suffix= ac_dots=
24683 case "$ac_given_srcdir" in
24685 if test -z "$ac_dots"; then top_srcdir=.
24686 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24687 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24688 *) # Relative path.
24689 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24690 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24693 case "$ac_given_INSTALL" in
24694 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24695 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24698 echo creating "$ac_file"
24700 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24702 *[Mm]akefile*) ac_comsub="1i\\
24703 # $configure_input" ;;
24707 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24709 s%@configure_input@%$configure_input%g
24710 s%@srcdir@%$srcdir%g
24711 s%@top_srcdir@%$top_srcdir%g
24712 s%@INSTALL@%$INSTALL%g
24713 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24717 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24718 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24720 # ac_d sets the value in "#define NAME VALUE" lines.
24721 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24722 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24725 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24726 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24727 ac_uB='\([ ]\)%\1#\2define\3'
24730 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24731 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24732 ac_eB='$%\1#\2define\3'
24736 if test "${CONFIG_HEADERS+set}" != set; then
24738 cat >> $CONFIG_STATUS <<EOF
24739 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24741 cat >> $CONFIG_STATUS <<\EOF
24743 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24746 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24747 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24748 *) ac_file_in="${ac_file}.in" ;;
24751 echo creating $ac_file
24753 rm -f conftest.frag conftest.in conftest.out
24754 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24755 cat $ac_file_inputs > conftest.in
24759 # Transform confdefs.h into a sed script conftest.vals that substitutes
24760 # the proper values into config.h.in to produce config.h. And first:
24761 # Protect against being on the right side of a sed subst in config.status.
24762 # Protect against being in an unquoted here document in config.status.
24763 rm -f conftest.vals
24764 cat > conftest.hdr <<\EOF
24767 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24771 sed -n -f conftest.hdr confdefs.h > conftest.vals
24774 # This sed command replaces #undef with comments. This is necessary, for
24775 # example, in the case of _POSIX_SOURCE, which is predefined and required
24776 # on some systems where configure will not decide to define it.
24777 cat >> conftest.vals <<\EOF
24778 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24781 # Break up conftest.vals because some shells have a limit on
24782 # the size of here documents, and old seds have small limits too.
24784 rm -f conftest.tail
24787 ac_lines=`grep -c . conftest.vals`
24788 # grep -c gives empty output for an empty file on some AIX systems.
24789 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24790 # Write a limited-size here document to conftest.frag.
24791 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24792 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24794 sed -f conftest.frag conftest.in > conftest.out
24796 mv conftest.out conftest.in
24797 ' >> $CONFIG_STATUS
24798 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24799 rm -f conftest.vals
24800 mv conftest.tail conftest.vals
24802 rm -f conftest.vals
24804 cat >> $CONFIG_STATUS <<\EOF
24805 rm -f conftest.frag conftest.h
24806 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24807 cat conftest.in >> conftest.h
24809 if cmp -s $ac_file conftest.h 2>/dev/null; then
24810 echo "$ac_file is unchanged"
24813 # Remove last slash and all that follows it. Not all systems have dirname.
24814 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24815 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24816 # The file is in a subdirectory.
24817 test ! -d "$ac_dir" && mkdir "$ac_dir"
24820 mv conftest.h $ac_file
24825 cat >> $CONFIG_STATUS <<EOF
24828 cat >> $CONFIG_STATUS <<\EOF
24832 echo Please run \"make depend\" to build dependencies
24836 chmod +x $CONFIG_STATUS
24837 rm -fr confdefs* $ac_clean_files
24838 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1