3 # from OpenLDAP: pkg/ldap/configure.in,v 1.519 2004/03/24 21:42:21 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-bdb enable Berkeley DB backend [yes]"
87 --with-bdb-module module type static|dynamic [static]"
89 --enable-dnssrv enable dnssrv backend [no]"
91 --with-dnssrv-module module type static|dynamic [static]"
93 --enable-hdb enable Hierarchical DB backend [no]"
95 --with-hdb-module module type static|dynamic [static]"
97 --enable-ldap enable ldap backend [no]"
99 --with-ldap-module module type static|dynamic [static]"
101 --enable-ldbm enable ldbm backend [no]"
103 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
105 --with-ldbm-module module type static|dynamic [static]"
107 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
109 --enable-meta enable metadirectory backend [no]"
111 --with-meta-module module type static|dynamic [static]"
113 --enable-monitor enable monitor backend [yes]"
115 --with-monitor-module module type static|dynamic [static]"
117 --enable-null enable null backend [no]"
119 --with-null-module module type static|dynamic [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type static|dynamic [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type static|dynamic [static]"
129 --enable-relay enable relay backend [yes]"
131 --with-relay-module module type static|dynamic [static]"
133 --enable-shell enable shell backend [no]"
135 --with-shell-module module type static|dynamic [static]"
137 --enable-sql enable sql backend [no]"
139 --with-sql-module module type static|dynamic [static]"
142 SLAPD Overlay Options:"
144 --with-chain LDAP Chain Response no|yes|mod [no]"
146 --with-denyop Deny Operation overlay no|yes|mod [no]"
148 --with-dyngroup Dynamic Group overlay no|yes|mod [no]"
150 --with-ppolicy Password Policy overlay no|yes|mod [no]"
152 --with-proxycache Proxy Cache overlay no|yes|mod [no]"
154 --with-rwm Rewrite/Remap overlay no|yes|mod [no]"
157 SLURPD (Replication Daemon) Options:"
159 --enable-slurpd enable building slurpd [auto]"
162 Library Generation & Linking Options"
164 --enable-static[=PKGS] build static libraries [default=yes]"
166 --enable-shared[=PKGS] build shared libraries [default=yes]"
168 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
170 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
172 # Find the correct PATH separator. Usually this is `:', but
173 # DJGPP uses `;' like DOS.
174 if test "X${PATH_SEPARATOR+set}" != Xset; then
175 UNAME=${UNAME-`uname 2>/dev/null`}
177 *-DOS) lt_cv_sys_path_separator=';' ;;
178 *) lt_cv_sys_path_separator=':' ;;
180 PATH_SEPARATOR=$lt_cv_sys_path_separator
184 # Check that we are running under the correct shell.
185 SHELL=${CONFIG_SHELL-/bin/sh}
189 # Remove one level of quotation (which was required for Make).
190 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
195 if test "X$1" = X--no-reexec; then
196 # Discard the --no-reexec flag, and continue.
198 elif test "X$1" = X--fallback-echo; then
199 # Avoid inline document here, it may be left over
201 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
202 # Yippee, $echo works!
205 # Restart under the correct shell.
206 exec $SHELL "$0" --no-reexec ${1+"$@"}
209 if test "X$1" = X--fallback-echo; then
210 # used as fallback echo
218 # The HP-UX ksh and POSIX shell print the target directory to stdout
220 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
222 if test -z "$ECHO"; then
223 if test "X${echo_test_string+set}" != Xset; then
224 # find a string as large as possible, as long as the shell can cope with it
225 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
226 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
227 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
228 echo_test_string="`eval $cmd`" &&
229 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
236 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
237 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
238 test "X$echo_testing_string" = "X$echo_test_string"; then
241 # The Solaris, AIX, and Digital Unix default echo programs unquote
242 # backslashes. This makes it impossible to quote backslashes using
243 # echo "$something" | sed 's/\\/\\\\/g'
245 # So, first we look for a working echo in the user's PATH.
247 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
248 for dir in $PATH /usr/ucb; do
249 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
250 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
251 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
252 test "X$echo_testing_string" = "X$echo_test_string"; then
259 if test "X$echo" = Xecho; then
260 # We didn't find a better echo, so look for alternatives.
261 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
262 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
263 test "X$echo_testing_string" = "X$echo_test_string"; then
264 # This shell has a builtin print -r that does the trick.
266 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
267 test "X$CONFIG_SHELL" != X/bin/ksh; then
268 # If we have ksh, try running configure again with it.
269 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
270 export ORIGINAL_CONFIG_SHELL
271 CONFIG_SHELL=/bin/ksh
273 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
277 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
278 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
279 test "X$echo_testing_string" = "X$echo_test_string"; then
282 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
283 test "X$echo_testing_string" = 'X\t' &&
284 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
285 test "X$echo_testing_string" = "X$echo_test_string"; then
286 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
288 SHELL="$CONFIG_SHELL"
290 echo="$CONFIG_SHELL $0 --fallback-echo"
291 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
292 test "X$echo_testing_string" = 'X\t' &&
293 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
294 test "X$echo_testing_string" = "X$echo_test_string"; then
295 echo="$CONFIG_SHELL $0 --fallback-echo"
297 # maybe with a smaller string...
300 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
301 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
308 if test "$prev" != 'sed 50q "$0"'; then
309 echo_test_string=`eval $prev`
310 export echo_test_string
311 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
313 # Oops. We lost completely, so just stick with echo.
322 # Copy echo and quote the copy suitably for passing to libtool from
323 # the Makefile, instead of quoting the original, which is used later.
325 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
326 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
331 --disable-libtool-lock avoid locking (might break parallel builds)"
333 --with-pic try to use only PIC/non-PIC objects [default=use both]"
336 See INSTALL file for further details."
338 # Initialize some variables set by options.
339 # The variables have the same names as the options, with
340 # dashes changed to underlines.
342 cache_file=./config.cache
351 program_transform_name=s,x,x,
359 bindir='${exec_prefix}/bin'
360 sbindir='${exec_prefix}/sbin'
361 libexecdir='${exec_prefix}/libexec'
362 datadir='${prefix}/share'
363 sysconfdir='${prefix}/etc'
364 sharedstatedir='${prefix}/com'
365 localstatedir='${prefix}/var'
366 libdir='${exec_prefix}/lib'
367 includedir='${prefix}/include'
368 oldincludedir='/usr/include'
369 infodir='${prefix}/info'
370 mandir='${prefix}/man'
372 # Initialize some other variables.
375 SHELL=${CONFIG_SHELL-/bin/sh}
376 # Maximum number of lines to put in a shell here document.
383 # If the previous option needs an argument, assign it.
384 if test -n "$ac_prev"; then
385 eval "$ac_prev=\$ac_option"
391 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
395 # Accept the important Cygnus configure options, so we can diagnose typos.
399 -bindir | --bindir | --bindi | --bind | --bin | --bi)
401 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
402 bindir="$ac_optarg" ;;
404 -build | --build | --buil | --bui | --bu)
406 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
407 build="$ac_optarg" ;;
409 -cache-file | --cache-file | --cache-fil | --cache-fi \
410 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
411 ac_prev=cache_file ;;
412 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
413 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
414 cache_file="$ac_optarg" ;;
416 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
418 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
420 datadir="$ac_optarg" ;;
422 -disable-* | --disable-*)
423 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
428 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
429 eval "enable_${ac_feature}=no" ;;
431 -enable-* | --enable-*)
432 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
435 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
437 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
442 eval "enable_${ac_feature}='$ac_optarg'" ;;
444 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
445 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
446 | --exec | --exe | --ex)
447 ac_prev=exec_prefix ;;
448 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
449 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
450 | --exec=* | --exe=* | --ex=*)
451 exec_prefix="$ac_optarg" ;;
453 -gas | --gas | --ga | --g)
454 # Obsolete; use --with-gas.
457 -help | --help | --hel | --he)
458 # Omit some internal or obsolete options to make the list less imposing.
459 # This message is too long to be a string in the A/UX 3.1 sh.
461 Usage: configure [options] [host]
462 Options: [defaults in brackets after descriptions]
464 --cache-file=FILE cache test results in FILE
465 --help print this message
466 --no-create do not create output files
467 --quiet, --silent do not print \`checking...' messages
468 --version print the version of autoconf that created configure
469 Directory and file names:
470 --prefix=PREFIX install architecture-independent files in PREFIX
472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
474 --bindir=DIR user executables in DIR [EPREFIX/bin]
475 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
476 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
477 --datadir=DIR read-only architecture-independent data in DIR
479 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
480 --sharedstatedir=DIR modifiable architecture-independent data in DIR
482 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
483 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
484 --includedir=DIR C header files in DIR [PREFIX/include]
485 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
486 --infodir=DIR info documentation in DIR [PREFIX/info]
487 --mandir=DIR man documentation in DIR [PREFIX/man]
488 --srcdir=DIR find the sources in DIR [configure dir or ..]
489 --program-prefix=PREFIX prepend PREFIX to installed program names
490 --program-suffix=SUFFIX append SUFFIX to installed program names
491 --program-transform-name=PROGRAM
492 run sed PROGRAM on installed program names
496 --build=BUILD configure for building on BUILD [BUILD=HOST]
497 --host=HOST configure for HOST [guessed]
498 --target=TARGET configure for TARGET [TARGET=HOST]
499 Features and packages:
500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
504 --x-includes=DIR X include files are in DIR
505 --x-libraries=DIR X library files are in DIR
507 if test -n "$ac_help"; then
508 echo "--enable and --with options recognized:$ac_help"
512 -host | --host | --hos | --ho)
514 -host=* | --host=* | --hos=* | --ho=*)
517 -includedir | --includedir | --includedi | --included | --include \
518 | --includ | --inclu | --incl | --inc)
519 ac_prev=includedir ;;
520 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
521 | --includ=* | --inclu=* | --incl=* | --inc=*)
522 includedir="$ac_optarg" ;;
524 -infodir | --infodir | --infodi | --infod | --info | --inf)
526 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
527 infodir="$ac_optarg" ;;
529 -libdir | --libdir | --libdi | --libd)
531 -libdir=* | --libdir=* | --libdi=* | --libd=*)
532 libdir="$ac_optarg" ;;
534 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
535 | --libexe | --libex | --libe)
536 ac_prev=libexecdir ;;
537 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
538 | --libexe=* | --libex=* | --libe=*)
539 libexecdir="$ac_optarg" ;;
541 -localstatedir | --localstatedir | --localstatedi | --localstated \
542 | --localstate | --localstat | --localsta | --localst \
543 | --locals | --local | --loca | --loc | --lo)
544 ac_prev=localstatedir ;;
545 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
546 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
547 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
548 localstatedir="$ac_optarg" ;;
550 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
552 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
553 mandir="$ac_optarg" ;;
556 # Obsolete; use --without-fp.
559 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
563 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
564 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
567 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
568 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
569 | --oldin | --oldi | --old | --ol | --o)
570 ac_prev=oldincludedir ;;
571 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
572 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
573 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
574 oldincludedir="$ac_optarg" ;;
576 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
578 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
579 prefix="$ac_optarg" ;;
581 -program-prefix | --program-prefix | --program-prefi | --program-pref \
582 | --program-pre | --program-pr | --program-p)
583 ac_prev=program_prefix ;;
584 -program-prefix=* | --program-prefix=* | --program-prefi=* \
585 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
586 program_prefix="$ac_optarg" ;;
588 -program-suffix | --program-suffix | --program-suffi | --program-suff \
589 | --program-suf | --program-su | --program-s)
590 ac_prev=program_suffix ;;
591 -program-suffix=* | --program-suffix=* | --program-suffi=* \
592 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
593 program_suffix="$ac_optarg" ;;
595 -program-transform-name | --program-transform-name \
596 | --program-transform-nam | --program-transform-na \
597 | --program-transform-n | --program-transform- \
598 | --program-transform | --program-transfor \
599 | --program-transfo | --program-transf \
600 | --program-trans | --program-tran \
601 | --progr-tra | --program-tr | --program-t)
602 ac_prev=program_transform_name ;;
603 -program-transform-name=* | --program-transform-name=* \
604 | --program-transform-nam=* | --program-transform-na=* \
605 | --program-transform-n=* | --program-transform-=* \
606 | --program-transform=* | --program-transfor=* \
607 | --program-transfo=* | --program-transf=* \
608 | --program-trans=* | --program-tran=* \
609 | --progr-tra=* | --program-tr=* | --program-t=*)
610 program_transform_name="$ac_optarg" ;;
612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
613 | -silent | --silent | --silen | --sile | --sil)
616 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
618 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
620 sbindir="$ac_optarg" ;;
622 -sharedstatedir | --sharedstatedir | --sharedstatedi \
623 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
624 | --sharedst | --shareds | --shared | --share | --shar \
626 ac_prev=sharedstatedir ;;
627 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
628 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
629 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
631 sharedstatedir="$ac_optarg" ;;
633 -site | --site | --sit)
635 -site=* | --site=* | --sit=*)
638 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
640 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
641 srcdir="$ac_optarg" ;;
643 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
644 | --syscon | --sysco | --sysc | --sys | --sy)
645 ac_prev=sysconfdir ;;
646 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
647 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
648 sysconfdir="$ac_optarg" ;;
650 -target | --target | --targe | --targ | --tar | --ta | --t)
652 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
653 target="$ac_optarg" ;;
655 -v | -verbose | --verbose | --verbos | --verbo | --verb)
658 -version | --version | --versio | --versi | --vers)
659 echo "configure generated by autoconf version 2.13.1"
663 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
673 eval "with_${ac_package}='$ac_optarg'" ;;
675 -without-* | --without-*)
676 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
677 # Reject names that are not valid shell variable names.
678 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
679 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
681 ac_package=`echo $ac_package| sed 's/-/_/g'`
682 eval "with_${ac_package}=no" ;;
685 # Obsolete; use --with-x.
688 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
689 | --x-incl | --x-inc | --x-in | --x-i)
690 ac_prev=x_includes ;;
691 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
692 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
693 x_includes="$ac_optarg" ;;
695 -x-libraries | --x-libraries | --x-librarie | --x-librari \
696 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
697 ac_prev=x_libraries ;;
698 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
699 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
700 x_libraries="$ac_optarg" ;;
702 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
706 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
707 echo "configure: warning: $ac_option: invalid host type" 1>&2
709 if test "x$nonopt" != xNONE; then
710 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
718 if test -n "$ac_prev"; then
719 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
722 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
724 # File descriptor usage:
727 # 2 errors and warnings
728 # 3 some systems may open it to /dev/tty
729 # 4 used on the Kubota Titan
730 # 6 checking for... messages and results
731 # 5 compiler messages saved in config.log
732 if test "$silent" = yes; then
740 This file contains any messages produced by compilers while
741 running configure, to aid debugging if configure makes a mistake.
744 # Strip out --no-create and --no-recursion so they do not pile up.
745 # Also quote any args containing shell metacharacters.
750 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
751 | --no-cr | --no-c) ;;
752 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
753 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
754 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
755 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
756 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
761 # Only set these to C if already set. These must not be set unconditionally
762 # because not all systems understand e.g. LANG=C (notably SCO).
763 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
764 # Non-C LC_CTYPE values break the ctype check.
765 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
766 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
767 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
768 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
771 rm -rf conftest* confdefs.h
772 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
775 # A filename unique to this package, relative to the directory that
776 # configure is in, which we can look for to find out if srcdir is correct.
777 ac_unique_file=build/version.sh
779 # Find the source files, if location was not specified.
780 if test -z "$srcdir"; then
781 ac_srcdir_defaulted=yes
782 # Try the directory containing this script, then its parent.
784 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
785 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
787 if test ! -r $srcdir/$ac_unique_file; then
791 ac_srcdir_defaulted=no
793 if test ! -r $srcdir/$ac_unique_file; then
794 if test "$ac_srcdir_defaulted" = yes; then
795 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
797 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
800 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
802 # Prefer explicitly selected file to automatically selected ones.
803 if test -z "$CONFIG_SITE"; then
804 if test "x$prefix" != xNONE; then
805 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
807 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
810 for ac_site_file in $CONFIG_SITE; do
811 if test -r "$ac_site_file"; then
812 echo "loading site script $ac_site_file"
819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp='$CPP $CPPFLAGS'
821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling=$ac_cv_prog_cc_cross
827 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
828 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
829 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
836 ac_n= ac_c='\c' ac_t=
840 # set unset (borrowed from autoconf 2.49c)
841 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
847 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
850 for ac_dir in build $srcdir/build; do
851 if test -f $ac_dir/install-sh; then
853 ac_install_sh="$ac_aux_dir/install-sh -c"
855 elif test -f $ac_dir/install.sh; then
857 ac_install_sh="$ac_aux_dir/install.sh -c"
859 elif test -f $ac_dir/shtool; then
861 ac_install_sh="$ac_aux_dir/shtool install -c"
865 if test -z "$ac_aux_dir"; then
866 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
868 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
869 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
870 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
872 eval `$ac_aux_dir/version.sh`
873 if test -z "$OL_STRING"; then
874 { echo "configure: error: could not determine version" 1>&2; exit 1; }
877 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
878 ac_cv_shtool="$ac_aux_dir/shtool"
880 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
883 SHTOOL="$ac_cv_shtool"
885 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
886 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
889 if test -d $ac_aux_dir/CVS; then
890 OPENLDAP_CVS="(from CVS sources) "
893 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
896 echo $ac_n "checking host system type""... $ac_c" 1>&6
897 echo "configure:898: checking host system type" >&5
898 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
900 # Make sure we can run config.sub.
901 if $ac_config_sub sun4 >/dev/null 2>&1; then :
902 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
905 ac_cv_host_alias=$host
906 case "$ac_cv_host_alias" in
910 if ac_cv_host_alias=`$ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
913 *) ac_cv_host_alias=$nonopt ;;
917 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
918 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
922 echo $ac_n "(cached) $ac_c" 1>&6
925 echo "$ac_t""$ac_cv_host" 1>&6
928 host_alias=$ac_cv_host_alias
929 host_cpu=$ac_cv_host_cpu
930 host_vendor=$ac_cv_host_vendor
931 host_os=$ac_cv_host_os
937 echo $ac_n "checking target system type""... $ac_c" 1>&6
938 echo "configure:939: checking target system type" >&5
939 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
941 # Make sure we can run config.sub.
942 if $ac_config_sub sun4 >/dev/null 2>&1; then :
943 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
946 ac_cv_target_alias=$target
947 case "$ac_cv_target_alias" in
951 ac_cv_target_alias=$host_alias ;;
953 *) ac_cv_target_alias=$nonopt ;;
957 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
958 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
959 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
960 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
962 echo $ac_n "(cached) $ac_c" 1>&6
965 echo "$ac_t""$ac_cv_target" 1>&6
968 target_alias=$ac_cv_target_alias
969 target_cpu=$ac_cv_target_cpu
970 target_vendor=$ac_cv_target_vendor
971 target_os=$ac_cv_target_os
977 echo $ac_n "checking build system type""... $ac_c" 1>&6
978 echo "configure:979: checking build system type" >&5
979 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
981 # Make sure we can run config.sub.
982 if $ac_config_sub sun4 >/dev/null 2>&1; then :
983 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
986 ac_cv_build_alias=$build
987 case "$ac_cv_build_alias" in
991 ac_cv_build_alias=$host_alias ;;
993 *) ac_cv_build_alias=$nonopt ;;
997 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
998 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1002 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo "$ac_t""$ac_cv_build" 1>&6
1008 build_alias=$ac_cv_build_alias
1009 build_cpu=$ac_cv_build_cpu
1010 build_vendor=$ac_cv_build_vendor
1011 build_os=$ac_cv_build_os
1017 # Do some error checking and defaulting for the host and target type.
1019 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1022 # 1. You are not allowed to specify --host, --target, and nonopt at the
1024 # 2. Host defaults to nonopt.
1025 # 3. If nonopt is not specified, then host defaults to the current host,
1026 # as determined by config.guess.
1027 # 4. Target and build default to nonopt.
1028 # 5. If nonopt is not specified, then target and build default to host.
1030 # The aliases save the names the user supplied, while $host etc.
1031 # will get canonicalized.
1032 case $host---$target---$nonopt in
1033 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1034 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1037 test "$host_alias" != "$target_alias" &&
1038 test "$program_prefix$program_suffix$program_transform_name" = \
1040 program_prefix=${target_alias}-
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1061 for ac_dir in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1064 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1069 for ac_prog in ginstall scoinst install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1075 elif test $ac_prog = install &&
1076 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1077 # program-specific install script used by HP pwplus--don't use.
1080 ac_cv_path_install="$ac_dir/$ac_prog -c"
1091 if test "${ac_cv_path_install+set}" = set; then
1092 INSTALL="$ac_cv_path_install"
1094 # As a last resort, use the slow shell script. We don't cache a
1095 # path for INSTALL within a source directory, because that will
1096 # break other packages using the cache if that directory is
1097 # removed, or if the path is relative.
1098 INSTALL="$ac_install_sh"
1101 echo "$ac_t""$INSTALL" 1>&6
1103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1104 # It thinks the first close brace ends the variable substitution.
1105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1111 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether build environment is sane" >&5
1115 echo timestamp > conftestfile
1116 # Do `set' in a subshell so we don't clobber the current shell's
1117 # arguments. Must try -L first in case configure is actually a
1118 # symlink; some systems play weird games with the mod time of symlinks
1119 # (eg FreeBSD returns the mod time of the symlink's containing
1122 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1123 if test "$*" = "X"; then
1125 set X `ls -t $srcdir/configure conftestfile`
1127 if test "$*" != "X $srcdir/configure conftestfile" \
1128 && test "$*" != "X conftestfile $srcdir/configure"; then
1130 # If neither matched, then we have a broken ls. This can happen
1131 # if, for instance, CONFIG_SHELL is bash and it inherits a
1132 # broken ls alias from the environment. This has actually
1133 # happened. Such a system could not be considered "sane".
1134 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1135 alias in your environment" 1>&2; exit 1; }
1138 test "$2" = conftestfile
1144 { echo "configure: error: newly created file is older than distributed files!
1145 Check your system clock" 1>&2; exit 1; }
1148 echo "$ac_t""yes" 1>&6
1149 if test "$program_transform_name" = s,x,x,; then
1150 program_transform_name=
1152 # Double any \ or $. echo might interpret backslashes.
1153 cat <<\EOF_SED > conftestsed
1154 s,\\,\\\\,g; s,\$,$$,g
1156 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1159 test "$program_prefix" != NONE &&
1160 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1161 # Use a double $ so make ignores it.
1162 test "$program_suffix" != NONE &&
1163 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1165 # sed with no file args requires a program.
1166 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1168 for ac_prog in mawk gawk nawk awk
1170 # Extract the first word of "$ac_prog", so it can be a program name with args.
1171 set dummy $ac_prog; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$AWK"; then
1178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_AWK="$ac_prog"
1192 AWK="$ac_cv_prog_AWK"
1193 if test -n "$AWK"; then
1194 echo "$ac_t""$AWK" 1>&6
1196 echo "$ac_t""no" 1>&6
1199 test -n "$AWK" && break
1202 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether ${MAKE-make} sets \${MAKE}" >&5
1204 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1205 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 cat > conftestmake <<\EOF
1210 @echo 'ac_maketemp="${MAKE}"'
1212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1213 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1214 if test -n "$ac_maketemp"; then
1215 eval ac_cv_prog_make_${ac_make}_set=yes
1217 eval ac_cv_prog_make_${ac_make}_set=no
1221 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1225 echo "$ac_t""no" 1>&6
1226 SET_MAKE="MAKE=${MAKE-make}"
1235 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1236 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1241 missing_dir=`cd $ac_aux_dir && pwd`
1242 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working aclocal" >&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 (aclocal --version) < /dev/null > /dev/null 2>&1; then
1249 echo "$ac_t""found" 1>&6
1251 ACLOCAL="$missing_dir/missing aclocal"
1252 echo "$ac_t""missing" 1>&6
1255 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1262 echo "$ac_t""found" 1>&6
1264 AUTOCONF="$missing_dir/missing autoconf"
1265 echo "$ac_t""missing" 1>&6
1268 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1275 echo "$ac_t""found" 1>&6
1277 AUTOMAKE="$missing_dir/missing automake"
1278 echo "$ac_t""missing" 1>&6
1281 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1282 echo "configure:1283: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
1287 AUTOHEADER=autoheader
1288 echo "$ac_t""found" 1>&6
1290 AUTOHEADER="$missing_dir/missing autoheader"
1291 echo "$ac_t""missing" 1>&6
1294 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1295 echo "configure:1296: checking for working makeinfo" >&5
1296 # Run test in a subshell; some versions of sh will print an error if
1297 # an executable is not found, even if stderr is redirected.
1298 # Redirect stdin to placate older versions of autoconf. Sigh.
1299 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1301 echo "$ac_t""found" 1>&6
1303 MAKEINFO="$missing_dir/missing makeinfo"
1304 echo "$ac_t""missing" 1>&6
1307 install_sh="$missing_dir/install-sh"
1308 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1310 for ac_prog in gnutar gtar tar
1312 # Extract the first word of "$ac_prog", so it can be a program name with args.
1313 set dummy $ac_prog; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 if test -n "$AMTAR"; then
1320 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_prog_AMTAR="$ac_prog"
1334 AMTAR="$ac_cv_prog_AMTAR"
1335 if test -n "$AMTAR"; then
1336 echo "$ac_t""$AMTAR" 1>&6
1338 echo "$ac_t""no" 1>&6
1341 test -n "$AMTAR" && break
1346 if test -n "$AMTAR"; then
1347 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1352 cat >> confdefs.h <<EOF
1353 #define OPENLDAP_PACKAGE "$PACKAGE"
1356 cat >> confdefs.h <<EOF
1357 #define OPENLDAP_VERSION "$VERSION"
1361 cat >> confdefs.h <<EOF
1362 #define LDAP_VENDOR_VERSION $OL_API_INC
1365 cat >> confdefs.h <<EOF
1366 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1369 cat >> confdefs.h <<EOF
1370 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1373 cat >> confdefs.h <<EOF
1374 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1378 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1380 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1382 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1386 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1387 echo "configure:1388: checking configure arguments" >&5
1392 ldap_subdir="/openldap"
1394 # Check whether --with-subdir or --without-subdir was given.
1395 if test "${with_subdir+set}" = set; then
1396 withval="$with_subdir"
1403 ldap_subdir="$withval"
1406 ldap_subdir="/$withval"
1413 # OpenLDAP --enable-debug
1414 # Check whether --enable-debug or --disable-debug was given.
1415 if test "${enable_debug+set}" = set; then
1416 enableval="$enable_debug"
1419 for ol_val in auto yes no ; do
1420 if test "$enableval" = "$ol_val" ; then
1424 if test "$ol_arg" = "invalid" ; then
1425 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1427 ol_enable_debug="$ol_arg"
1430 ol_enable_debug="yes"
1432 # end --enable-debug
1433 # OpenLDAP --enable-dynamic
1434 # Check whether --enable-dynamic or --disable-dynamic was given.
1435 if test "${enable_dynamic+set}" = set; then
1436 enableval="$enable_dynamic"
1439 for ol_val in auto yes no ; do
1440 if test "$enableval" = "$ol_val" ; then
1444 if test "$ol_arg" = "invalid" ; then
1445 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1447 ol_enable_dynamic="$ol_arg"
1450 ol_enable_dynamic="no"
1452 # end --enable-dynamic
1453 # OpenLDAP --enable-syslog
1454 # Check whether --enable-syslog or --disable-syslog was given.
1455 if test "${enable_syslog+set}" = set; then
1456 enableval="$enable_syslog"
1459 for ol_val in auto yes no ; do
1460 if test "$enableval" = "$ol_val" ; then
1464 if test "$ol_arg" = "invalid" ; then
1465 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1467 ol_enable_syslog="$ol_arg"
1470 ol_enable_syslog="auto"
1472 # end --enable-syslog
1473 # OpenLDAP --enable-proctitle
1474 # Check whether --enable-proctitle or --disable-proctitle was given.
1475 if test "${enable_proctitle+set}" = set; then
1476 enableval="$enable_proctitle"
1479 for ol_val in auto yes no ; do
1480 if test "$enableval" = "$ol_val" ; then
1484 if test "$ol_arg" = "invalid" ; then
1485 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1487 ol_enable_proctitle="$ol_arg"
1490 ol_enable_proctitle="yes"
1492 # end --enable-proctitle
1493 ol_enable_referrals=${ol_enable_referrals-no}
1494 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1537 # OpenLDAP --with-cyrus_sasl
1538 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1539 if test "${with_cyrus_sasl+set}" = set; then
1540 withval="$with_cyrus_sasl"
1543 for ol_val in auto yes no ; do
1544 if test "$withval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1551 ol_with_cyrus_sasl="$ol_arg"
1554 ol_with_cyrus_sasl="auto"
1556 # end --with-cyrus_sasl
1558 # OpenLDAP --with-fetch
1559 # Check whether --with-fetch or --without-fetch was given.
1560 if test "${with_fetch+set}" = set; then
1561 withval="$with_fetch"
1564 for ol_val in auto yes no ; do
1565 if test "$withval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1572 ol_with_fetch="$ol_arg"
1575 ol_with_fetch="auto"
1579 ol_with_kerberos=${ol_with_kerberos-auto}
1580 # OpenLDAP --with-threads
1581 # Check whether --with-threads or --without-threads was given.
1582 if test "${with_threads+set}" = set; then
1583 withval="$with_threads"
1586 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1587 if test "$withval" = "$ol_val" ; then
1591 if test "$ol_arg" = "invalid" ; then
1592 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1594 ol_with_threads="$ol_arg"
1597 ol_with_threads="auto"
1599 # end --with-threads
1601 # OpenLDAP --with-tls
1602 # Check whether --with-tls or --without-tls was given.
1603 if test "${with_tls+set}" = set; then
1607 for ol_val in auto ssleay openssl yes no ; do
1608 if test "$withval" = "$ol_val" ; then
1612 if test "$ol_arg" = "invalid" ; then
1613 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1615 ol_with_tls="$ol_arg"
1622 # OpenLDAP --with-yielding_select
1623 # Check whether --with-yielding_select or --without-yielding_select was given.
1624 if test "${with_yielding_select+set}" = set; then
1625 withval="$with_yielding_select"
1628 for ol_val in auto yes no manual ; do
1629 if test "$withval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1636 ol_with_yielding_select="$ol_arg"
1639 ol_with_yielding_select="auto"
1641 # end --with-yielding_select
1645 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1646 if test "${with_xxslapdoptions+set}" = set; then
1647 withval="$with_xxslapdoptions"
1651 # OpenLDAP --enable-slapd
1652 # Check whether --enable-slapd or --disable-slapd was given.
1653 if test "${enable_slapd+set}" = set; then
1654 enableval="$enable_slapd"
1657 for ol_val in auto yes no ; do
1658 if test "$enableval" = "$ol_val" ; then
1662 if test "$ol_arg" = "invalid" ; then
1663 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1665 ol_enable_slapd="$ol_arg"
1668 ol_enable_slapd="yes"
1670 # end --enable-slapd
1671 # OpenLDAP --enable-aci
1672 # Check whether --enable-aci or --disable-aci was given.
1673 if test "${enable_aci+set}" = set; then
1674 enableval="$enable_aci"
1677 for ol_val in auto yes no ; do
1678 if test "$enableval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1685 ol_enable_aci="$ol_arg"
1691 # OpenLDAP --enable-cleartext
1692 # Check whether --enable-cleartext or --disable-cleartext was given.
1693 if test "${enable_cleartext+set}" = set; then
1694 enableval="$enable_cleartext"
1697 for ol_val in auto yes no ; do
1698 if test "$enableval" = "$ol_val" ; then
1702 if test "$ol_arg" = "invalid" ; then
1703 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1705 ol_enable_cleartext="$ol_arg"
1708 ol_enable_cleartext="yes"
1710 # end --enable-cleartext
1711 # OpenLDAP --enable-crypt
1712 # Check whether --enable-crypt or --disable-crypt was given.
1713 if test "${enable_crypt+set}" = set; then
1714 enableval="$enable_crypt"
1717 for ol_val in auto yes no ; do
1718 if test "$enableval" = "$ol_val" ; then
1722 if test "$ol_arg" = "invalid" ; then
1723 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1725 ol_enable_crypt="$ol_arg"
1728 ol_enable_crypt="no"
1730 # end --enable-crypt
1731 # OpenLDAP --enable-lmpasswd
1732 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1733 if test "${enable_lmpasswd+set}" = set; then
1734 enableval="$enable_lmpasswd"
1737 for ol_val in auto yes no ; do
1738 if test "$enableval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1745 ol_enable_lmpasswd="$ol_arg"
1748 ol_enable_lmpasswd="no"
1750 # end --enable-lmpasswd
1751 # OpenLDAP --enable-spasswd
1752 # Check whether --enable-spasswd or --disable-spasswd was given.
1753 if test "${enable_spasswd+set}" = set; then
1754 enableval="$enable_spasswd"
1757 for ol_val in auto yes no ; do
1758 if test "$enableval" = "$ol_val" ; then
1762 if test "$ol_arg" = "invalid" ; then
1763 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1765 ol_enable_spasswd="$ol_arg"
1768 ol_enable_spasswd="no"
1770 # end --enable-spasswd
1771 # OpenLDAP --enable-modules
1772 # Check whether --enable-modules or --disable-modules was given.
1773 if test "${enable_modules+set}" = set; then
1774 enableval="$enable_modules"
1777 for ol_val in auto yes no ; do
1778 if test "$enableval" = "$ol_val" ; then
1782 if test "$ol_arg" = "invalid" ; then
1783 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1785 ol_enable_modules="$ol_arg"
1788 ol_enable_modules="no"
1790 # end --enable-modules
1791 ol_enable_multimaster=${ol_enable_multimaster-no}
1792 # OpenLDAP --enable-rewrite
1793 # Check whether --enable-rewrite or --disable-rewrite was given.
1794 if test "${enable_rewrite+set}" = set; then
1795 enableval="$enable_rewrite"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1806 ol_enable_rewrite="$ol_arg"
1809 ol_enable_rewrite="no"
1811 # end --enable-rewrite
1812 # OpenLDAP --enable-rlookups
1813 # Check whether --enable-rlookups or --disable-rlookups was given.
1814 if test "${enable_rlookups+set}" = set; then
1815 enableval="$enable_rlookups"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1826 ol_enable_rlookups="$ol_arg"
1829 ol_enable_rlookups="no"
1831 # end --enable-rlookups
1832 # OpenLDAP --enable-slapi
1833 # Check whether --enable-slapi or --disable-slapi was given.
1834 if test "${enable_slapi+set}" = set; then
1835 enableval="$enable_slapi"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1846 ol_enable_slapi="$ol_arg"
1849 ol_enable_slapi="no"
1851 # end --enable-slapi
1852 # OpenLDAP --enable-slp
1853 # Check whether --enable-slp or --disable-slp was given.
1854 if test "${enable_slp+set}" = set; then
1855 enableval="$enable_slp"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1866 ol_enable_slp="$ol_arg"
1872 # OpenLDAP --enable-wrappers
1873 # Check whether --enable-wrappers or --disable-wrappers was given.
1874 if test "${enable_wrappers+set}" = set; then
1875 enableval="$enable_wrappers"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1886 ol_enable_wrappers="$ol_arg"
1889 ol_enable_wrappers="no"
1891 # end --enable-wrappers
1894 # OpenLDAP --enable-bdb
1895 # Check whether --enable-bdb or --disable-bdb was given.
1896 if test "${enable_bdb+set}" = set; then
1897 enableval="$enable_bdb"
1900 for ol_val in auto yes no ; do
1901 if test "$enableval" = "$ol_val" ; then
1905 if test "$ol_arg" = "invalid" ; then
1906 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1908 ol_enable_bdb="$ol_arg"
1914 # OpenLDAP --with-bdb_module
1915 # Check whether --with-bdb_module or --without-bdb_module was given.
1916 if test "${with_bdb_module+set}" = set; then
1917 withval="$with_bdb_module"
1920 for ol_val in static dynamic ; do
1921 if test "$withval" = "$ol_val" ; then
1925 if test "$ol_arg" = "invalid" ; then
1926 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1928 ol_with_bdb_module="$ol_arg"
1931 ol_with_bdb_module="static"
1933 # end --with-bdb_module
1935 # OpenLDAP --enable-dnssrv
1936 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1937 if test "${enable_dnssrv+set}" = set; then
1938 enableval="$enable_dnssrv"
1941 for ol_val in auto yes no ; do
1942 if test "$enableval" = "$ol_val" ; then
1946 if test "$ol_arg" = "invalid" ; then
1947 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1949 ol_enable_dnssrv="$ol_arg"
1952 ol_enable_dnssrv="no"
1954 # end --enable-dnssrv
1955 # OpenLDAP --with-dnssrv_module
1956 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1957 if test "${with_dnssrv_module+set}" = set; then
1958 withval="$with_dnssrv_module"
1961 for ol_val in static dynamic ; do
1962 if test "$withval" = "$ol_val" ; then
1966 if test "$ol_arg" = "invalid" ; then
1967 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1969 ol_with_dnssrv_module="$ol_arg"
1972 ol_with_dnssrv_module="static"
1974 # end --with-dnssrv_module
1976 # OpenLDAP --enable-hdb
1977 # Check whether --enable-hdb or --disable-hdb was given.
1978 if test "${enable_hdb+set}" = set; then
1979 enableval="$enable_hdb"
1982 for ol_val in auto yes no ; do
1983 if test "$enableval" = "$ol_val" ; then
1987 if test "$ol_arg" = "invalid" ; then
1988 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1990 ol_enable_hdb="$ol_arg"
1996 # OpenLDAP --with-hdb_module
1997 # Check whether --with-hdb_module or --without-hdb_module was given.
1998 if test "${with_hdb_module+set}" = set; then
1999 withval="$with_hdb_module"
2002 for ol_val in static dynamic ; do
2003 if test "$withval" = "$ol_val" ; then
2007 if test "$ol_arg" = "invalid" ; then
2008 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2010 ol_with_hdb_module="$ol_arg"
2013 ol_with_hdb_module="static"
2015 # end --with-hdb_module
2017 # OpenLDAP --enable-ldap
2018 # Check whether --enable-ldap or --disable-ldap was given.
2019 if test "${enable_ldap+set}" = set; then
2020 enableval="$enable_ldap"
2023 for ol_val in auto yes no ; do
2024 if test "$enableval" = "$ol_val" ; then
2028 if test "$ol_arg" = "invalid" ; then
2029 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2031 ol_enable_ldap="$ol_arg"
2037 # OpenLDAP --with-ldap_module
2038 # Check whether --with-ldap_module or --without-ldap_module was given.
2039 if test "${with_ldap_module+set}" = set; then
2040 withval="$with_ldap_module"
2043 for ol_val in static dynamic ; do
2044 if test "$withval" = "$ol_val" ; then
2048 if test "$ol_arg" = "invalid" ; then
2049 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2051 ol_with_ldap_module="$ol_arg"
2054 ol_with_ldap_module="static"
2056 # end --with-ldap_module
2058 # OpenLDAP --enable-ldbm
2059 # Check whether --enable-ldbm or --disable-ldbm was given.
2060 if test "${enable_ldbm+set}" = set; then
2061 enableval="$enable_ldbm"
2064 for ol_val in auto yes no ; do
2065 if test "$enableval" = "$ol_val" ; then
2069 if test "$ol_arg" = "invalid" ; then
2070 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2072 ol_enable_ldbm="$ol_arg"
2078 # OpenLDAP --with-ldbm_api
2079 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2080 if test "${with_ldbm_api+set}" = set; then
2081 withval="$with_ldbm_api"
2084 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2085 if test "$withval" = "$ol_val" ; then
2089 if test "$ol_arg" = "invalid" ; then
2090 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2092 ol_with_ldbm_api="$ol_arg"
2095 ol_with_ldbm_api="auto"
2097 # end --with-ldbm_api
2099 # OpenLDAP --with-ldbm_module
2100 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2101 if test "${with_ldbm_module+set}" = set; then
2102 withval="$with_ldbm_module"
2105 for ol_val in static dynamic ; do
2106 if test "$withval" = "$ol_val" ; then
2110 if test "$ol_arg" = "invalid" ; then
2111 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2113 ol_with_ldbm_module="$ol_arg"
2116 ol_with_ldbm_module="static"
2118 # end --with-ldbm_module
2120 # OpenLDAP --with-ldbm_type
2121 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2122 if test "${with_ldbm_type+set}" = set; then
2123 withval="$with_ldbm_type"
2126 for ol_val in auto btree hash ; do
2127 if test "$withval" = "$ol_val" ; then
2131 if test "$ol_arg" = "invalid" ; then
2132 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2134 ol_with_ldbm_type="$ol_arg"
2137 ol_with_ldbm_type="auto"
2139 # end --with-ldbm_type
2141 # OpenLDAP --enable-meta
2142 # Check whether --enable-meta or --disable-meta was given.
2143 if test "${enable_meta+set}" = set; then
2144 enableval="$enable_meta"
2147 for ol_val in auto yes no ; do
2148 if test "$enableval" = "$ol_val" ; then
2152 if test "$ol_arg" = "invalid" ; then
2153 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2155 ol_enable_meta="$ol_arg"
2161 # OpenLDAP --with-meta_module
2162 # Check whether --with-meta_module or --without-meta_module was given.
2163 if test "${with_meta_module+set}" = set; then
2164 withval="$with_meta_module"
2167 for ol_val in static dynamic ; do
2168 if test "$withval" = "$ol_val" ; then
2172 if test "$ol_arg" = "invalid" ; then
2173 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2175 ol_with_meta_module="$ol_arg"
2178 ol_with_meta_module="static"
2180 # end --with-meta_module
2182 # OpenLDAP --enable-monitor
2183 # Check whether --enable-monitor or --disable-monitor was given.
2184 if test "${enable_monitor+set}" = set; then
2185 enableval="$enable_monitor"
2188 for ol_val in auto yes no ; do
2189 if test "$enableval" = "$ol_val" ; then
2193 if test "$ol_arg" = "invalid" ; then
2194 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2196 ol_enable_monitor="$ol_arg"
2199 ol_enable_monitor="yes"
2201 # end --enable-monitor
2202 # OpenLDAP --with-monitor_module
2203 # Check whether --with-monitor_module or --without-monitor_module was given.
2204 if test "${with_monitor_module+set}" = set; then
2205 withval="$with_monitor_module"
2208 for ol_val in static dynamic ; do
2209 if test "$withval" = "$ol_val" ; then
2213 if test "$ol_arg" = "invalid" ; then
2214 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2216 ol_with_monitor_module="$ol_arg"
2219 ol_with_monitor_module="static"
2221 # end --with-monitor_module
2223 # OpenLDAP --enable-null
2224 # Check whether --enable-null or --disable-null was given.
2225 if test "${enable_null+set}" = set; then
2226 enableval="$enable_null"
2229 for ol_val in auto yes no ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2237 ol_enable_null="$ol_arg"
2243 # OpenLDAP --with-null_module
2244 # Check whether --with-null_module or --without-null_module was given.
2245 if test "${with_null_module+set}" = set; then
2246 withval="$with_null_module"
2249 for ol_val in static dynamic ; do
2250 if test "$withval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2257 ol_with_null_module="$ol_arg"
2260 ol_with_null_module="static"
2262 # end --with-null_module
2264 # OpenLDAP --enable-passwd
2265 # Check whether --enable-passwd or --disable-passwd was given.
2266 if test "${enable_passwd+set}" = set; then
2267 enableval="$enable_passwd"
2270 for ol_val in auto yes no ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2278 ol_enable_passwd="$ol_arg"
2281 ol_enable_passwd="no"
2283 # end --enable-passwd
2284 # OpenLDAP --with-passwd_module
2285 # Check whether --with-passwd_module or --without-passwd_module was given.
2286 if test "${with_passwd_module+set}" = set; then
2287 withval="$with_passwd_module"
2290 for ol_val in static dynamic ; do
2291 if test "$withval" = "$ol_val" ; then
2295 if test "$ol_arg" = "invalid" ; then
2296 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2298 ol_with_passwd_module="$ol_arg"
2301 ol_with_passwd_module="static"
2303 # end --with-passwd_module
2305 # OpenLDAP --enable-perl
2306 # Check whether --enable-perl or --disable-perl was given.
2307 if test "${enable_perl+set}" = set; then
2308 enableval="$enable_perl"
2311 for ol_val in auto yes no ; do
2312 if test "$enableval" = "$ol_val" ; then
2316 if test "$ol_arg" = "invalid" ; then
2317 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2319 ol_enable_perl="$ol_arg"
2325 # OpenLDAP --with-perl_module
2326 # Check whether --with-perl_module or --without-perl_module was given.
2327 if test "${with_perl_module+set}" = set; then
2328 withval="$with_perl_module"
2331 for ol_val in static dynamic ; do
2332 if test "$withval" = "$ol_val" ; then
2336 if test "$ol_arg" = "invalid" ; then
2337 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2339 ol_with_perl_module="$ol_arg"
2342 ol_with_perl_module="static"
2344 # end --with-perl_module
2346 # OpenLDAP --enable-relay
2347 # Check whether --enable-relay or --disable-relay was given.
2348 if test "${enable_relay+set}" = set; then
2349 enableval="$enable_relay"
2352 for ol_val in auto yes no ; do
2353 if test "$enableval" = "$ol_val" ; then
2357 if test "$ol_arg" = "invalid" ; then
2358 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2360 ol_enable_relay="$ol_arg"
2363 ol_enable_relay="yes"
2365 # end --enable-relay
2366 # OpenLDAP --with-relay_module
2367 # Check whether --with-relay_module or --without-relay_module was given.
2368 if test "${with_relay_module+set}" = set; then
2369 withval="$with_relay_module"
2372 for ol_val in static dynamic ; do
2373 if test "$withval" = "$ol_val" ; then
2377 if test "$ol_arg" = "invalid" ; then
2378 { echo "configure: error: bad value $withval for --with-relay_module" 1>&2; exit 1; }
2380 ol_with_relay_module="$ol_arg"
2383 ol_with_relay_module="static"
2385 # end --with-relay_module
2387 # OpenLDAP --enable-shell
2388 # Check whether --enable-shell or --disable-shell was given.
2389 if test "${enable_shell+set}" = set; then
2390 enableval="$enable_shell"
2393 for ol_val in auto yes no ; do
2394 if test "$enableval" = "$ol_val" ; then
2398 if test "$ol_arg" = "invalid" ; then
2399 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2401 ol_enable_shell="$ol_arg"
2404 ol_enable_shell="no"
2406 # end --enable-shell
2407 # OpenLDAP --with-shell_module
2408 # Check whether --with-shell_module or --without-shell_module was given.
2409 if test "${with_shell_module+set}" = set; then
2410 withval="$with_shell_module"
2413 for ol_val in static dynamic ; do
2414 if test "$withval" = "$ol_val" ; then
2418 if test "$ol_arg" = "invalid" ; then
2419 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2421 ol_with_shell_module="$ol_arg"
2424 ol_with_shell_module="static"
2426 # end --with-shell_module
2428 # OpenLDAP --enable-sql
2429 # Check whether --enable-sql or --disable-sql was given.
2430 if test "${enable_sql+set}" = set; then
2431 enableval="$enable_sql"
2434 for ol_val in auto yes no ; do
2435 if test "$enableval" = "$ol_val" ; then
2439 if test "$ol_arg" = "invalid" ; then
2440 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2442 ol_enable_sql="$ol_arg"
2448 # OpenLDAP --with-sql_module
2449 # Check whether --with-sql_module or --without-sql_module was given.
2450 if test "${with_sql_module+set}" = set; then
2451 withval="$with_sql_module"
2454 for ol_val in static dynamic ; do
2455 if test "$withval" = "$ol_val" ; then
2459 if test "$ol_arg" = "invalid" ; then
2460 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2462 ol_with_sql_module="$ol_arg"
2465 ol_with_sql_module="static"
2467 # end --with-sql_module
2470 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2471 if test "${with_xxslapoverlays+set}" = set; then
2472 withval="$with_xxslapoverlays"
2476 # OpenLDAP --with-chain
2477 # Check whether --with-chain or --without-chain was given.
2478 if test "${with_chain+set}" = set; then
2479 withval="$with_chain"
2482 for ol_val in no yes mod ; do
2483 if test "$withval" = "$ol_val" ; then
2487 if test "$ol_arg" = "invalid" ; then
2488 { echo "configure: error: bad value $withval for --with-chain" 1>&2; exit 1; }
2490 ol_with_chain="$ol_arg"
2497 # OpenLDAP --with-denyop
2498 # Check whether --with-denyop or --without-denyop was given.
2499 if test "${with_denyop+set}" = set; then
2500 withval="$with_denyop"
2503 for ol_val in no yes mod ; do
2504 if test "$withval" = "$ol_val" ; then
2508 if test "$ol_arg" = "invalid" ; then
2509 { echo "configure: error: bad value $withval for --with-denyop" 1>&2; exit 1; }
2511 ol_with_denyop="$ol_arg"
2518 # OpenLDAP --with-dyngroup
2519 # Check whether --with-dyngroup or --without-dyngroup was given.
2520 if test "${with_dyngroup+set}" = set; then
2521 withval="$with_dyngroup"
2524 for ol_val in no yes mod ; do
2525 if test "$withval" = "$ol_val" ; then
2529 if test "$ol_arg" = "invalid" ; then
2530 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2532 ol_with_dyngroup="$ol_arg"
2535 ol_with_dyngroup="no"
2537 # end --with-dyngroup
2539 # OpenLDAP --with-ppolicy
2540 # Check whether --with-ppolicy or --without-ppolicy was given.
2541 if test "${with_ppolicy+set}" = set; then
2542 withval="$with_ppolicy"
2545 for ol_val in no yes mod ; do
2546 if test "$withval" = "$ol_val" ; then
2550 if test "$ol_arg" = "invalid" ; then
2551 { echo "configure: error: bad value $withval for --with-ppolicy" 1>&2; exit 1; }
2553 ol_with_ppolicy="$ol_arg"
2556 ol_with_ppolicy="no"
2558 # end --with-ppolicy
2560 # OpenLDAP --with-proxycache
2561 # Check whether --with-proxycache or --without-proxycache was given.
2562 if test "${with_proxycache+set}" = set; then
2563 withval="$with_proxycache"
2566 for ol_val in no yes mod ; do
2567 if test "$withval" = "$ol_val" ; then
2571 if test "$ol_arg" = "invalid" ; then
2572 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2574 ol_with_proxycache="$ol_arg"
2577 ol_with_proxycache="no"
2579 # end --with-proxycache
2581 # OpenLDAP --with-rwm
2582 # Check whether --with-rwm or --without-rwm was given.
2583 if test "${with_rwm+set}" = set; then
2587 for ol_val in no yes mod ; do
2588 if test "$withval" = "$ol_val" ; then
2592 if test "$ol_arg" = "invalid" ; then
2593 { echo "configure: error: bad value $withval for --with-rwm" 1>&2; exit 1; }
2595 ol_with_rwm="$ol_arg"
2603 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2604 if test "${with_xxslurpdoptions+set}" = set; then
2605 withval="$with_xxslurpdoptions"
2609 # OpenLDAP --enable-slurpd
2610 # Check whether --enable-slurpd or --disable-slurpd was given.
2611 if test "${enable_slurpd+set}" = set; then
2612 enableval="$enable_slurpd"
2615 for ol_val in auto yes no ; do
2616 if test "$enableval" = "$ol_val" ; then
2620 if test "$ol_arg" = "invalid" ; then
2621 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2623 ol_enable_slurpd="$ol_arg"
2626 ol_enable_slurpd="auto"
2628 # end --enable-slurpd
2630 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2631 if test "${with_xxliboptions+set}" = set; then
2632 withval="$with_xxliboptions"
2636 # Check whether --enable-static or --disable-static was given.
2637 if test "${enable_static+set}" = set; then
2638 enableval="$enable_static"
2639 p=${PACKAGE-default}
2641 yes) enable_static=yes ;;
2642 no) enable_static=no ;;
2645 # Look at the argument we got. We use all the common list separators.
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2647 for pkg in $enableval; do
2648 if test "X$pkg" = "X$p"; then
2659 # Check whether --enable-shared or --disable-shared was given.
2660 if test "${enable_shared+set}" = set; then
2661 enableval="$enable_shared"
2662 p=${PACKAGE-default}
2664 yes) enable_shared=yes ;;
2665 no) enable_shared=no ;;
2668 # Look at the argument we got. We use all the common list separators.
2669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2670 for pkg in $enableval; do
2671 if test "X$pkg" = "X$p"; then
2685 if test $ol_enable_slapd = no ; then
2686 if test $ol_enable_slapi = yes ; then
2687 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2689 if test $ol_enable_bdb = yes ; then
2690 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2692 if test $ol_enable_dnssrv = yes ; then
2693 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2695 if test $ol_enable_hdb = yes ; then
2696 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2698 if test $ol_enable_ldap = yes ; then
2699 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2701 if test $ol_enable_ldbm = yes ; then
2702 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2704 if test $ol_enable_meta = yes ; then
2705 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2707 if test $ol_enable_monitor = yes ; then
2708 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2710 if test $ol_enable_null = yes ; then
2711 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2713 if test $ol_enable_passwd = yes ; then
2714 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2716 if test $ol_enable_perl = yes ; then
2717 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2719 if test $ol_enable_relay = yes ; then
2720 echo "configure: warning: slapd disabled, ignoring --enable-relay argument" 1>&2
2722 if test $ol_enable_shell = yes ; then
2723 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2725 if test $ol_enable_sql = yes ; then
2726 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2728 if test $ol_enable_modules = yes ; then
2729 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2731 if test $ol_enable_multimaster = yes ; then
2732 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2734 if test $ol_enable_wrappers = yes ; then
2735 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2737 if test $ol_enable_rlookups = yes ; then
2738 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2740 if test $ol_enable_aci = yes ; then
2741 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2743 if test $ol_with_ldbm_api != auto ; then
2744 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2746 if test $ol_with_ldbm_type != auto ; then
2747 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2749 if test $ol_with_bdb_module != static ; then
2750 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2752 if test $ol_with_dnssrv_module != static ; then
2753 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2755 if test $ol_with_hdb_module != static ; then
2756 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2758 if test $ol_with_ldap_module != static ; then
2759 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2761 if test $ol_with_ldbm_module != static ; then
2762 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2764 if test $ol_with_meta_module != static ; then
2765 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2767 if test $ol_with_monitor_module != static ; then
2768 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2770 if test $ol_with_null_module != static ; then
2771 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2773 if test $ol_with_passwd_module != static ; then
2774 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2776 if test $ol_with_perl_module != static ; then
2777 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2779 if test $ol_with_relay_module != static ; then
2780 echo "configure: warning: slapd disabled, ignoring --with-relay-module argument" 1>&2
2782 if test $ol_with_shell_module != static ; then
2783 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2785 if test $ol_with_sql_module != static ; then
2786 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2788 if test $ol_enable_slurpd = yes ; then
2789 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2791 if test $ol_enable_rewrite = yes ; then
2792 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2794 if test $ol_with_chain != no ; then
2795 echo "configure: warning: slapd disabled, ignoring --with-chain argument" 1>&2
2797 if test $ol_with_denyop != no ; then
2798 echo "configure: warning: slapd disabled, ignoring --with-denyop argument" 1>&2
2800 if test $ol_with_dyngroup != no ; then
2801 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2803 if test $ol_with_ppolicy != no ; then
2804 echo "configure: warning: slapd disabled, ignoring --with-ppolicy argument" 1>&2
2806 if test $ol_with_proxycache != no ; then
2807 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2809 if test $ol_with_rwm != no ; then
2810 echo "configure: warning: slapd disabled, ignoring --with-rwm argument" 1>&2
2813 # force settings to no
2821 ol_enable_monitor=no
2829 ol_enable_modules=no
2830 ol_enable_multimaster=no
2831 ol_enable_rlookups=no
2833 ol_enable_wrappers=no
2836 ol_with_ldbm_type=no
2838 ol_with_bdb_module=static
2839 ol_with_dnssrv_module=static
2840 ol_with_hdb_module=static
2841 ol_with_ldap_module=static
2842 ol_with_ldbm_module=static
2843 ol_with_meta_module=static
2844 ol_with_monitor_module=static
2845 ol_with_null_module=static
2846 ol_with_passwd_module=static
2847 ol_with_perl_module=static
2848 ol_with_relay_module=static
2849 ol_with_shell_module=static
2850 ol_with_sql_module=static
2854 ol_enable_rewrite=no
2860 ol_with_proxycache=no
2863 elif test $ol_enable_ldbm = no ; then
2865 if test $ol_with_ldbm_api != auto ; then
2866 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2869 if test $ol_with_ldbm_type != auto ; then
2870 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2873 if test $ol_with_ldbm_module != static ; then
2874 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2877 if test $ol_enable_modules != yes -a \
2878 $ol_enable_bdb = no -a \
2879 $ol_enable_dnssrv = no -a \
2880 $ol_enable_hdb = no -a \
2881 $ol_enable_ldap = no -a \
2882 $ol_enable_meta = no -a \
2883 $ol_enable_monitor = no -a \
2884 $ol_enable_null = no -a \
2885 $ol_enable_passwd = no -a \
2886 $ol_enable_perl = no -a \
2887 $ol_enable_relay = no -a \
2888 $ol_enable_shell = no -a \
2889 $ol_enable_sql = no ; then
2891 if test $ol_enable_slapd = yes ; then
2892 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2894 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2900 ol_with_ldbm_type=no
2901 ol_with_ldbm_module=static
2903 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2904 ol_with_ldbm_api=berkeley
2908 if test $ol_with_ldbm_api = gdbm -a \
2909 $ol_with_ldbm_type = btree ; then
2910 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2912 if test $ol_with_ldbm_api = mdbm -a \
2913 $ol_with_ldbm_type = btree ; then
2914 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2916 if test $ol_with_ldbm_api = ndbm -a \
2917 $ol_with_ldbm_type = btree ; then
2918 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2921 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2922 if test $ol_with_ldbm_api = auto ; then
2923 ol_with_ldbm_api=berkeley
2924 elif test $ol_with_ldbm_api != berkeley ; then
2925 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2928 elif test $ol_enable_bdb = auto ; then
2929 if test $ol_with_ldbm_api != berkeley \
2930 -o $ol_with_ldbm_api != auto ; then
2931 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2937 if test $ol_enable_slurpd = yes ; then
2938 if test $ol_with_threads = no ; then
2939 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2943 if test $ol_enable_lmpasswd = yes ; then
2944 if test $ol_with_tls = no ; then
2945 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2949 if test $ol_enable_kbind = yes ; then
2950 if test $ol_with_kerberos = no ; then
2951 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2952 elif test $ol_with_kerberos = auto ; then
2953 ol_with_kerberos=yes
2956 elif test $ol_enable_kbind = no ; then
2957 if test $ol_with_kerberos = auto ; then
2959 elif test $ol_with_kerberos != no ; then
2960 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2965 if test $ol_enable_spasswd = yes ; then
2966 if test $ol_with_cyrus_sasl = no ; then
2967 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2969 ol_with_cyrus_sasl=yes
2972 echo "$ac_t""done" 1>&6
3004 BUILD_BDB_DYNAMIC=static
3005 BUILD_DNSSRV_DYNAMIC=static
3006 BUILD_HDB_DYNAMIC=static
3007 BUILD_LDAP_DYNAMIC=static
3008 BUILD_LDBM_DYNAMIC=static
3009 BUILD_META_DYNAMIC=static
3010 BUILD_MONITOR_DYNAMIC=static
3011 BUILD_NULL_DYNAMIC=static
3012 BUILD_PASSWD_DYNAMIC=static
3013 BUILD_PERL_DYNAMIC=static
3014 BUILD_RELAY_DYNAMIC=static
3015 BUILD_SHELL_DYNAMIC=static
3016 BUILD_SQL_DYNAMIC=static
3025 SLAPD_DYNAMIC_OVERLAYS=
3027 SLAPD_MODULES_LDFLAGS=
3028 SLAPD_MODULES_CPPFLAGS=
3030 SLAPD_STATIC_BACKENDS=
3031 SLAPD_DYNAMIC_BACKENDS=
3054 # Find a good install program. We prefer a C program (faster),
3055 # so one script is as good as another. But avoid the broken or
3056 # incompatible versions:
3057 # SysV /etc/install, /usr/sbin/install
3058 # SunOS /usr/etc/install
3059 # IRIX /sbin/install
3061 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3062 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3063 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3064 # ./install, which can be erroneously created by make from ./install.sh.
3065 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3066 echo "configure:3067: checking for a BSD compatible install" >&5
3067 if test -z "$INSTALL"; then
3068 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3072 for ac_dir in $PATH; do
3073 # Account for people who put trailing slashes in PATH elements.
3075 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3077 # OSF1 and SCO ODT 3.0 have their own names for install.
3078 # Don't use installbsd from OSF since it installs stuff as root
3080 for ac_prog in ginstall scoinst install; do
3081 if test -f $ac_dir/$ac_prog; then
3082 if test $ac_prog = install &&
3083 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3086 elif test $ac_prog = install &&
3087 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3091 ac_cv_path_install="$ac_dir/$ac_prog -c"
3102 if test "${ac_cv_path_install+set}" = set; then
3103 INSTALL="$ac_cv_path_install"
3105 # As a last resort, use the slow shell script. We don't cache a
3106 # path for INSTALL within a source directory, because that will
3107 # break other packages using the cache if that directory is
3108 # removed, or if the path is relative.
3109 INSTALL="$ac_install_sh"
3112 echo "$ac_t""$INSTALL" 1>&6
3114 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3115 # It thinks the first close brace ends the variable substitution.
3116 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3123 cat >> confdefs.h <<\EOF
3124 #define HAVE_MKVERSION 1
3132 *-*-aix*) if test -z "$CC" ; then
3133 case "$ol_with_threads" in
3134 auto | yes | posix) ol_aix_threads=yes ;;
3140 if test $ol_aix_threads = yes ; then
3141 if test -z "${CC}" ; then
3142 for ac_prog in cc_r xlc_r cc
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145 set dummy $ac_prog; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3156 for ac_dir in $ac_dummy; do
3157 test -z "$ac_dir" && ac_dir=.
3158 if test -f $ac_dir/$ac_word; then
3159 ac_cv_prog_CC="$ac_prog"
3167 if test -n "$CC"; then
3168 echo "$ac_t""$CC" 1>&6
3170 echo "$ac_t""no" 1>&6
3173 test -n "$CC" && break
3177 if test "$CC" = cc ; then
3178 if test $ol_with_threads != auto ; then
3179 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3181 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3187 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3188 ol_with_threads=posix
3189 ol_cv_pthread_create=yes
3193 if test -z "${CC}"; then
3194 for ac_prog in cc gcc
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3208 for ac_dir in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_CC="$ac_prog"
3219 if test -n "$CC"; then
3220 echo "$ac_t""$CC" 1>&6
3222 echo "$ac_t""no" 1>&6
3225 test -n "$CC" && break
3227 test -n "$CC" || CC="missing"
3230 if test "${CC}" = "missing" ; then
3231 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3235 if test -z "${AR}"; then
3236 for ac_prog in ar gar
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_word" >&5
3242 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 if test -n "$AR"; then
3246 ac_cv_prog_AR="$AR" # Let the user override the test.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3250 for ac_dir in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir=.
3252 if test -f $ac_dir/$ac_word; then
3253 ac_cv_prog_AR="$ac_prog"
3261 if test -n "$AR"; then
3262 echo "$ac_t""$AR" 1>&6
3264 echo "$ac_t""no" 1>&6
3267 test -n "$AR" && break
3269 test -n "$AR" || AR="missing"
3272 if test "${AR}" = "missing" ; then
3273 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3279 # Find the correct PATH separator. Usually this is `:', but
3280 # DJGPP uses `;' like DOS.
3281 if test "X${PATH_SEPARATOR+set}" != Xset; then
3282 UNAME=${UNAME-`uname 2>/dev/null`}
3284 *-DOS) lt_cv_sys_path_separator=';' ;;
3285 *) lt_cv_sys_path_separator=':' ;;
3287 PATH_SEPARATOR=$lt_cv_sys_path_separator
3290 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3291 echo "configure:3292: checking for Cygwin environment" >&5
3292 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3302 #define __CYGWIN__ __CYGWIN32__
3307 if { (eval echo configure:3308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3319 echo "$ac_t""$ac_cv_cygwin" 1>&6
3321 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3322 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3323 echo "configure:3324: checking for mingw32 environment" >&5
3324 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3347 echo "$ac_t""$ac_cv_mingw32" 1>&6
3349 test "$ac_cv_mingw32" = yes && MINGW32=yes
3350 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3351 echo "configure:3352: checking for EMX OS/2 environment" >&5
3352 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3375 echo "$ac_t""$ac_cv_emxos2" 1>&6
3377 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3378 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3379 echo "configure:3380: checking how to run the C preprocessor" >&5
3380 # On Suns, sometimes $CPP names a directory.
3381 if test -n "$CPP" && test -d "$CPP"; then
3384 if test -z "$CPP"; then
3385 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 # This must be in double quotes, not single quotes, because CPP may get
3389 # substituted into the Makefile and "${CC-cc}" will confuse make.
3391 # On the NeXT, cc -E runs the code through the compiler's parser,
3392 # not just through cpp.
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3400 { (eval echo configure:3401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3402 if test -z "$ac_err"; then
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 CPP="${CC-cc} -E -traditional-cpp"
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3417 { (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3419 if test -z "$ac_err"; then
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 CPP="${CC-cc} -nologo -E"
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3434 { (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3436 if test -z "$ac_err"; then
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3450 ac_cv_prog_CPP="$CPP"
3452 CPP="$ac_cv_prog_CPP"
3454 ac_cv_prog_CPP="$CPP"
3456 echo "$ac_t""$CPP" 1>&6
3458 # Check whether --enable-fast-install or --disable-fast-install was given.
3459 if test "${enable_fast_install+set}" = set; then
3460 enableval="$enable_fast_install"
3461 p=${PACKAGE-default}
3463 yes) enable_fast_install=yes ;;
3464 no) enable_fast_install=no ;;
3466 enable_fast_install=no
3467 # Look at the argument we got. We use all the common list separators.
3468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3469 for pkg in $enableval; do
3470 if test "X$pkg" = "X$p"; then
3471 enable_fast_install=yes
3478 enable_fast_install=yes
3481 # Extract the first word of "gcc", so it can be a program name with args.
3482 set dummy gcc; ac_word=$2
3483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3484 echo "configure:3485: checking for $ac_word" >&5
3485 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/$ac_word; then
3504 if test -n "$CC"; then
3505 echo "$ac_t""$CC" 1>&6
3507 echo "$ac_t""no" 1>&6
3510 if test -z "$CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3514 echo "configure:3515: checking for $ac_word" >&5
3515 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3524 for ac_dir in $ac_dummy; do
3525 test -z "$ac_dir" && ac_dir=.
3526 if test -f $ac_dir/$ac_word; then
3527 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3528 ac_prog_rejected=yes
3536 if test $ac_prog_rejected = yes; then
3537 # We found a bogon in the path, so make sure we never use it.
3538 set dummy $ac_cv_prog_CC
3540 if test $# -gt 0; then
3541 # We chose a different compiler from the bogus one.
3542 # However, it has the same basename, so the bogon will be chosen
3543 # first if we set CC to just the basename; use the full file name.
3545 set dummy "$ac_dir/$ac_word" "$@"
3553 if test -n "$CC"; then
3554 echo "$ac_t""$CC" 1>&6
3556 echo "$ac_t""no" 1>&6
3559 if test -z "$CC"; then
3560 case "`uname -s`" in
3561 *win32* | *WIN32* | *CYGWIN*)
3562 # Extract the first word of "cl", so it can be a program name with args.
3563 set dummy cl; ac_word=$2
3564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_word" >&5
3566 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3574 for ac_dir in $ac_dummy; do
3575 test -z "$ac_dir" && ac_dir=.
3576 if test -f $ac_dir/$ac_word; then
3585 if test -n "$CC"; then
3586 echo "$ac_t""$CC" 1>&6
3588 echo "$ac_t""no" 1>&6
3593 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3596 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3597 echo "configure:3598: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3604 cross_compiling=$ac_cv_prog_cc_cross
3606 cat > conftest.$ac_ext << EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3614 ac_cv_prog_cc_works=yes
3615 # If we can't run a trivial program, we are probably using a cross compiler.
3616 if (./conftest; exit) 2>/dev/null; then
3617 ac_cv_prog_cc_cross=no
3619 ac_cv_prog_cc_cross=yes
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3624 ac_cv_prog_cc_works=no
3628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3632 cross_compiling=$ac_cv_prog_cc_cross
3634 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3635 if test $ac_cv_prog_cc_works = no; then
3636 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3638 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3639 echo "configure:3640: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3640 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3641 cross_compiling=$ac_cv_prog_cc_cross
3643 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3644 echo "configure:3645: checking whether we are using GNU C" >&5
3645 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.c <<EOF
3653 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3660 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3662 if test $ac_cv_prog_gcc = yes; then
3668 ac_test_CFLAGS="${CFLAGS+set}"
3669 ac_save_CFLAGS="$CFLAGS"
3671 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3672 echo "configure:3673: checking whether ${CC-cc} accepts -g" >&5
3673 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 echo 'void f(){}' > conftest.c
3677 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3686 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3687 if test "$ac_test_CFLAGS" = set; then
3688 CFLAGS="$ac_save_CFLAGS"
3689 elif test $ac_cv_prog_cc_g = yes; then
3690 if test "$GCC" = yes; then
3696 if test "$GCC" = yes; then
3703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3704 if test "${with_gnu_ld+set}" = set; then
3705 withval="$with_gnu_ld"
3706 test "$withval" = no || with_gnu_ld=yes
3712 if test "$GCC" = yes; then
3713 # Check if gcc -print-prog-name=ld gives a path.
3714 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3715 echo "configure:3716: checking for ld used by GCC" >&5
3718 # gcc leaves a trailing carriage return which upsets mingw
3719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3724 # Accept absolute paths.
3725 [\\/]* | [A-Za-z]:[\\/]*)
3726 re_direlt='/[^/][^/]*/\.\./'
3727 # Canonicalize the path of ld
3728 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3729 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3730 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3732 test -z "$LD" && LD="$ac_prog"
3735 # If it fails, then pretend we aren't using GCC.
3739 # If it is relative, then search for the first ld in PATH.
3743 elif test "$with_gnu_ld" = yes; then
3744 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3745 echo "configure:3746: checking for GNU ld" >&5
3747 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3748 echo "configure:3749: checking for non-GNU ld" >&5
3750 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 if test -z "$LD"; then
3754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3755 for ac_dir in $PATH; do
3756 test -z "$ac_dir" && ac_dir=.
3757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3758 lt_cv_path_LD="$ac_dir/$ac_prog"
3759 # Check to see if the program is GNU ld. I'd rather use --version,
3760 # but apparently some GNU ld's only accept -v.
3761 # Break only if it was the GNU/non-GNU ld that we prefer.
3762 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3763 test "$with_gnu_ld" != no && break
3765 test "$with_gnu_ld" != yes && break
3771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3776 if test -n "$LD"; then
3777 echo "$ac_t""$LD" 1>&6
3779 echo "$ac_t""no" 1>&6
3781 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3782 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3783 echo "configure:3784: checking if the linker ($LD) is GNU ld" >&5
3784 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3788 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3789 lt_cv_prog_gnu_ld=yes
3791 lt_cv_prog_gnu_ld=no
3795 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3796 with_gnu_ld=$lt_cv_prog_gnu_ld
3799 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $LD option to reload object files" >&5
3801 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 lt_cv_ld_reload_flag='-r'
3807 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3808 reload_flag=$lt_cv_ld_reload_flag
3809 test -n "$reload_flag" && reload_flag=" $reload_flag"
3811 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3812 echo "configure:3813: checking for BSD-compatible nm" >&5
3813 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 if test -n "$NM"; then
3817 # Let the user override the test.
3820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3821 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3822 test -z "$ac_dir" && ac_dir=.
3823 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3824 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3825 # Check to see if the nm accepts a BSD-compat flag.
3826 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3827 # nm: unknown option "B" ignored
3828 # Tru64's nm complains that /dev/null is an invalid object file
3829 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3830 lt_cv_path_NM="$tmp_nm -B"
3832 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3833 lt_cv_path_NM="$tmp_nm -p"
3836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3837 continue # so that we can try to find one that supports BSD flags
3842 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3847 echo "$ac_t""$NM" 1>&6
3849 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3850 echo "configure:3851: checking for a sed that does not truncate output" >&5
3851 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 # Loop through the user's path and test for sed and gsed.
3855 # Then use that list of sed's as ones to test for truncation.
3856 as_executable_p="test -f"
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in sed gsed; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3865 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3871 # Create a temporary directory, and hook for its removal unless debugging.
3874 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3875 trap '{ (exit 1); exit 1; }' 1 2 13 15
3878 # Create a (secure) tmp directory for tmp files.
3881 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3882 test -n "$tmp" && test -d "$tmp"
3885 tmp=$TMPDIR/sed$$-$RANDOM
3886 (umask 077 && mkdir $tmp)
3889 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3890 { (exit 1); exit 1; }
3894 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3895 # along with /bin/sed that truncates output.
3896 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3897 test ! -f ${_sed} && break
3898 cat /dev/null > "$tmp/sed.in"
3900 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3901 # Check for GNU sed and select it if it is found.
3902 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3903 lt_cv_path_SED=${_sed}
3907 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3908 mv "$tmp/sed.tmp" "$tmp/sed.in"
3909 cp "$tmp/sed.in" "$tmp/sed.nl"
3910 echo >>"$tmp/sed.nl"
3911 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3912 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3913 # 40000 chars as input seems more than enough
3914 test $_count -gt 10 && break
3915 _count=`expr $_count + 1`
3916 if test $_count -gt $_max; then
3918 lt_cv_path_SED=$_sed
3926 if test "X$SED" != "X"; then
3931 echo "$ac_t""$SED" 1>&6
3933 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3934 echo "configure:3935: checking whether ln -s works" >&5
3935 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3939 if ln -s X conftestdata 2>/dev/null
3942 ac_cv_prog_LN_S="ln -s"
3947 LN_S="$ac_cv_prog_LN_S"
3948 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3949 echo "$ac_t""yes" 1>&6
3951 echo "$ac_t""no" 1>&6
3954 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3955 echo "configure:3956: checking how to recognise dependent libraries" >&5
3956 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 lt_cv_file_magic_cmd='$MAGIC_CMD'
3960 lt_cv_file_magic_test_file=
3961 lt_cv_deplibs_check_method='unknown'
3962 # Need to set the preceding variable on all platforms that support
3963 # interlibrary dependencies.
3964 # 'none' -- dependencies not supported.
3965 # `unknown' -- same as none, but documents that we really don't know.
3966 # 'pass_all' -- all dependencies passed with no checks.
3967 # 'test_compile' -- check by making test program.
3968 # 'file_magic [[regex]]' -- check by looking for files in library path
3969 # which responds to the $file_magic_cmd with a given egrep regex.
3970 # If you have `file' or equivalent on your system and you're not sure
3971 # whether `pass_all' will *always* work, you probably want this one.
3975 lt_cv_deplibs_check_method=pass_all
3979 lt_cv_deplibs_check_method=pass_all
3983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3984 lt_cv_file_magic_cmd='/usr/bin/file -L'
3985 lt_cv_file_magic_test_file=/shlib/libc.so
3988 cygwin* | mingw* | pw32*)
3989 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3990 lt_cv_file_magic_cmd='$OBJDUMP -f'
3993 darwin* | rhapsody*)
3994 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3995 lt_cv_file_magic_cmd='/usr/bin/file -L'
3997 rhapsody* | darwin1.[012])
3998 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4001 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4007 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4010 # Not sure whether the presence of OpenBSD here was a mistake.
4011 # Let's accept both of them until this is cleared up.
4012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4013 lt_cv_file_magic_cmd=/usr/bin/file
4014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4018 lt_cv_deplibs_check_method=pass_all
4023 lt_cv_deplibs_check_method=pass_all
4027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4028 lt_cv_file_magic_cmd=/usr/bin/file
4029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4032 irix5* | irix6* | nonstopux*)
4034 irix5* | nonstopux*)
4035 # this will be overridden with pass_all, but let us keep it just in case
4036 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4040 *-32|*"-32 ") libmagic=32-bit;;
4041 *-n32|*"-n32 ") libmagic=N32;;
4042 *-64|*"-64 ") libmagic=64-bit;;
4043 *) libmagic=never-match;;
4045 # this will be overridden with pass_all, but let us keep it just in case
4046 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4049 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4050 lt_cv_deplibs_check_method=pass_all
4053 # This must be Linux ELF.
4056 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4057 lt_cv_deplibs_check_method=pass_all ;;
4059 # glibc up to 2.1.1 does not perform some relocations on ARM
4060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4062 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4067 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4069 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4075 lt_cv_file_magic_cmd=/usr/bin/file
4076 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4080 lt_cv_file_magic_cmd=/usr/bin/file
4081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4085 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4090 lt_cv_deplibs_check_method=pass_all
4093 osf3* | osf4* | osf5*)
4094 # this will be overridden with pass_all, but let us keep it just in case
4095 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4096 lt_cv_file_magic_test_file=/shlib/libc.so
4097 lt_cv_deplibs_check_method=pass_all
4101 lt_cv_deplibs_check_method=pass_all
4105 lt_cv_deplibs_check_method=pass_all
4106 lt_cv_file_magic_test_file=/lib/libc.so
4109 sysv5uw[78]* | sysv4*uw2*)
4110 lt_cv_deplibs_check_method=pass_all
4113 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4114 case $host_vendor in
4116 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]'
4117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4120 lt_cv_deplibs_check_method=pass_all
4123 lt_cv_file_magic_cmd='/bin/file'
4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4127 lt_cv_file_magic_cmd='/bin/file'
4128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4129 lt_cv_file_magic_test_file=/lib/libc.so
4132 lt_cv_deplibs_check_method=pass_all
4140 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4141 file_magic_cmd=$lt_cv_file_magic_cmd
4142 deplibs_check_method=$lt_cv_deplibs_check_method
4144 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4145 echo "configure:4146: checking for object suffix" >&5
4146 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4150 echo 'int i = 1;' > conftest.$ac_ext
4151 if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4152 for ac_file in conftest.*; do
4155 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4159 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4164 echo "$ac_t""$ac_cv_objext" 1>&6
4165 OBJEXT=$ac_cv_objext
4166 ac_objext=$ac_cv_objext
4171 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4172 echo "configure:4173: checking for executable suffix" >&5
4173 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4180 echo 'int main () { return 0; }' > conftest.$ac_ext
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4183 for file in conftest.*; do
4185 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4186 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4190 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4193 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4198 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4199 echo "$ac_t""${ac_cv_exeext}" 1>&6
4202 if test $host != $build; then
4203 ac_tool_prefix=${host_alias}-
4211 # Check for command to grab the raw symbol name followed by C symbol from nm.
4212 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4213 echo "configure:4214: checking command to parse $NM output" >&5
4214 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4218 # These are sane defaults that work on at least a few old systems.
4219 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4221 # Character class describing NM global symbol codes.
4222 symcode='[BCDEGRST]'
4224 # Regexp to match symbols that can be accessed directly from C.
4225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4227 # Transform the above into a raw symbol and a C symbol.
4228 symxfrm='\1 \2\3 \3'
4230 # Transform an extracted symbol line into a proper C declaration
4231 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4233 # Transform an extracted symbol line into symbol name and symbol address
4234 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'"
4236 # Define system-specific variables.
4241 cygwin* | mingw* | pw32*)
4242 symcode='[ABCDGISTW]'
4244 hpux*) # Its linker distinguishes data from code symbols
4245 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4246 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'"
4249 symcode='[BCDEGRST]'
4252 symcode='[BCDEGQRST]'
4262 # Handle CRLF in mingw tool chain
4266 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4270 # If we're using GNU nm, then use its standard symbol codes.
4271 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4272 symcode='[ABCDGISTW]'
4275 # Try without a prefix undercore, then with it.
4276 for ac_symprfx in "" "_"; do
4278 # Write the raw and C identifiers.
4279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4281 # Check to see that the pipe works correctly.
4284 cat > conftest.$ac_ext <<EOF
4289 void nm_test_func(){}
4293 int main(){nm_test_var='a';nm_test_func();return(0);}
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4297 # Now try to grab the symbols.
4299 if { (eval echo configure:4300: \"$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
4300 # Try sorting and uniquifying the output.
4301 if sort "$nlist" | uniq > "$nlist"T; then
4302 mv -f "$nlist"T "$nlist"
4307 # Make sure that we snagged all the symbols we need.
4308 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4309 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4310 cat <<EOF > conftest.$ac_ext
4316 # Now generate the symbol file.
4317 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4319 cat <<EOF >> conftest.$ac_ext
4320 #if defined (__STDC__) && __STDC__
4321 # define lt_ptr void *
4323 # define lt_ptr char *
4327 /* The mapping between symbol names and symbols. */
4332 lt_preloaded_symbols[] =
4335 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4336 cat <<\EOF >> conftest.$ac_ext
4344 # Now try linking the two files.
4345 mv conftest.$ac_objext conftstm.$ac_objext
4347 save_CFLAGS="$CFLAGS"
4348 LIBS="conftstm.$ac_objext"
4349 CFLAGS="$CFLAGS$no_builtin_flag"
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4354 CFLAGS="$save_CFLAGS"
4356 echo "cannot find nm_test_func in $nlist" >&5
4359 echo "cannot find nm_test_var in $nlist" >&5
4362 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4365 echo "$progname: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4368 rm -f conftest* conftst*
4370 # Do not use the global_symbol_pipe unless it works.
4371 if test "$pipe_works" = yes; then
4374 lt_cv_sys_global_symbol_pipe=
4380 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4382 global_symbol_to_cdecl=
4383 global_symbol_to_c_name_address=
4385 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4386 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4388 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4390 echo "$ac_t""failed" 1>&6
4392 echo "$ac_t""ok" 1>&6
4395 for ac_hdr in dlfcn.h
4397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4399 echo "configure:4400: checking for $ac_hdr" >&5
4400 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4409 { (eval echo configure:4410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4411 if test -z "$ac_err"; then
4413 eval "ac_cv_header_$ac_safe=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_header_$ac_safe=no"
4423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4424 echo "$ac_t""yes" 1>&6
4425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4426 cat >> confdefs.h <<EOF
4427 #define $ac_tr_hdr 1
4431 echo "$ac_t""no" 1>&6
4440 # Only perform the check for file, if the check method requires it
4441 case $deplibs_check_method in
4443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4444 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4445 echo "configure:4446: checking for ${ac_tool_prefix}file" >&5
4446 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4457 ac_save_MAGIC_CMD="$MAGIC_CMD"
4458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4459 ac_dummy="/usr/bin:$PATH"
4460 for ac_dir in $ac_dummy; do
4461 test -z "$ac_dir" && ac_dir=.
4462 if test -f $ac_dir/${ac_tool_prefix}file; then
4463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4464 if test -n "$file_magic_test_file"; then
4465 case $deplibs_check_method in
4467 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4470 egrep "$file_magic_regex" > /dev/null; then
4475 *** Warning: the command libtool uses to detect shared libraries,
4476 *** $file_magic_cmd, produces output that libtool cannot recognize.
4477 *** The result is that libtool may fail to recognize shared libraries
4478 *** as such. This will affect the creation of libtool libraries that
4479 *** depend on shared libraries, but programs linked with such libtool
4480 *** libraries will work regardless of this problem. Nevertheless, you
4481 *** may want to report the problem to your system manager and/or to
4482 *** bug-libtool@gnu.org
4492 MAGIC_CMD="$ac_save_MAGIC_CMD"
4497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4498 if test -n "$MAGIC_CMD"; then
4499 echo "$ac_t""$MAGIC_CMD" 1>&6
4501 echo "$ac_t""no" 1>&6
4504 if test -z "$lt_cv_path_MAGIC_CMD"; then
4505 if test -n "$ac_tool_prefix"; then
4506 echo $ac_n "checking for file""... $ac_c" 1>&6
4507 echo "configure:4508: checking for file" >&5
4508 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4519 ac_save_MAGIC_CMD="$MAGIC_CMD"
4520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4521 ac_dummy="/usr/bin:$PATH"
4522 for ac_dir in $ac_dummy; do
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f $ac_dir/file; then
4525 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4526 if test -n "$file_magic_test_file"; then
4527 case $deplibs_check_method in
4529 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4532 egrep "$file_magic_regex" > /dev/null; then
4537 *** Warning: the command libtool uses to detect shared libraries,
4538 *** $file_magic_cmd, produces output that libtool cannot recognize.
4539 *** The result is that libtool may fail to recognize shared libraries
4540 *** as such. This will affect the creation of libtool libraries that
4541 *** depend on shared libraries, but programs linked with such libtool
4542 *** libraries will work regardless of this problem. Nevertheless, you
4543 *** may want to report the problem to your system manager and/or to
4544 *** bug-libtool@gnu.org
4554 MAGIC_CMD="$ac_save_MAGIC_CMD"
4559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4560 if test -n "$MAGIC_CMD"; then
4561 echo "$ac_t""$MAGIC_CMD" 1>&6
4563 echo "$ac_t""no" 1>&6
4575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_word" >&5
4579 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 if test -n "$RANLIB"; then
4583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4587 for ac_dir in $ac_dummy; do
4588 test -z "$ac_dir" && ac_dir=.
4589 if test -f $ac_dir/$ac_word; then
4590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4597 RANLIB="$ac_cv_prog_RANLIB"
4598 if test -n "$RANLIB"; then
4599 echo "$ac_t""$RANLIB" 1>&6
4601 echo "$ac_t""no" 1>&6
4605 if test -z "$ac_cv_prog_RANLIB"; then
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "ranlib", so it can be a program name with args.
4608 set dummy ranlib; ac_word=$2
4609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_word" >&5
4611 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 if test -n "$RANLIB"; then
4615 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4619 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 if test -f $ac_dir/$ac_word; then
4622 ac_cv_prog_RANLIB="ranlib"
4627 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4630 RANLIB="$ac_cv_prog_RANLIB"
4631 if test -n "$RANLIB"; then
4632 echo "$ac_t""$RANLIB" 1>&6
4634 echo "$ac_t""no" 1>&6
4642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}strip; ac_word=$2
4644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4645 echo "configure:4646: checking for $ac_word" >&5
4646 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 if test -n "$STRIP"; then
4650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4654 for ac_dir in $ac_dummy; do
4655 test -z "$ac_dir" && ac_dir=.
4656 if test -f $ac_dir/$ac_word; then
4657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4664 STRIP="$ac_cv_prog_STRIP"
4665 if test -n "$STRIP"; then
4666 echo "$ac_t""$STRIP" 1>&6
4668 echo "$ac_t""no" 1>&6
4672 if test -z "$ac_cv_prog_STRIP"; then
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "strip", so it can be a program name with args.
4675 set dummy strip; ac_word=$2
4676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4677 echo "configure:4678: checking for $ac_word" >&5
4678 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4681 if test -n "$STRIP"; then
4682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4686 for ac_dir in $ac_dummy; do
4687 test -z "$ac_dir" && ac_dir=.
4688 if test -f $ac_dir/$ac_word; then
4689 ac_cv_prog_STRIP="strip"
4694 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4697 STRIP="$ac_cv_prog_STRIP"
4698 if test -n "$STRIP"; then
4699 echo "$ac_t""$STRIP" 1>&6
4701 echo "$ac_t""no" 1>&6
4711 enable_win32_dll=yes
4713 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4714 if test "${enable_libtool_lock+set}" = set; then
4715 enableval="$enable_libtool_lock"
4719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4721 # Some flags need to be propagated to the compiler or linker for good
4725 # Find out which ABI we are using.
4726 echo '#line 4727 "configure"' > conftest.$ac_ext
4727 if { (eval echo configure:4728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4728 case `/usr/bin/file conftest.$ac_objext` in
4744 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4745 SAVE_CFLAGS="$CFLAGS"
4746 CFLAGS="$CFLAGS -belf"
4747 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4748 echo "configure:4749: checking whether the C compiler needs -belf" >&5
4749 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4755 ac_cpp='$CPP $CPPFLAGS'
4756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4758 cross_compiling=$ac_cv_prog_cc_cross
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770 lt_cv_cc_needs_belf=yes
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 lt_cv_cc_needs_belf=no
4779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 cross_compiling=$ac_cv_prog_cc_cross
4787 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4788 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4789 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4790 CFLAGS="$SAVE_CFLAGS"
4794 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4798 echo "configure:4799: checking for $ac_word" >&5
4799 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 if test -n "$DLLTOOL"; then
4803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4807 for ac_dir in $ac_dummy; do
4808 test -z "$ac_dir" && ac_dir=.
4809 if test -f $ac_dir/$ac_word; then
4810 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4817 DLLTOOL="$ac_cv_prog_DLLTOOL"
4818 if test -n "$DLLTOOL"; then
4819 echo "$ac_t""$DLLTOOL" 1>&6
4821 echo "$ac_t""no" 1>&6
4825 if test -z "$ac_cv_prog_DLLTOOL"; then
4826 if test -n "$ac_tool_prefix"; then
4827 # Extract the first word of "dlltool", so it can be a program name with args.
4828 set dummy dlltool; ac_word=$2
4829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4830 echo "configure:4831: checking for $ac_word" >&5
4831 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 if test -n "$DLLTOOL"; then
4835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4839 for ac_dir in $ac_dummy; do
4840 test -z "$ac_dir" && ac_dir=.
4841 if test -f $ac_dir/$ac_word; then
4842 ac_cv_prog_DLLTOOL="dlltool"
4847 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4850 DLLTOOL="$ac_cv_prog_DLLTOOL"
4851 if test -n "$DLLTOOL"; then
4852 echo "$ac_t""$DLLTOOL" 1>&6
4854 echo "$ac_t""no" 1>&6
4862 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4863 set dummy ${ac_tool_prefix}as; ac_word=$2
4864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_word" >&5
4866 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 if test -n "$AS"; then
4870 ac_cv_prog_AS="$AS" # Let the user override the test.
4872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4874 for ac_dir in $ac_dummy; do
4875 test -z "$ac_dir" && ac_dir=.
4876 if test -f $ac_dir/$ac_word; then
4877 ac_cv_prog_AS="${ac_tool_prefix}as"
4885 if test -n "$AS"; then
4886 echo "$ac_t""$AS" 1>&6
4888 echo "$ac_t""no" 1>&6
4892 if test -z "$ac_cv_prog_AS"; then
4893 if test -n "$ac_tool_prefix"; then
4894 # Extract the first word of "as", so it can be a program name with args.
4895 set dummy as; ac_word=$2
4896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4897 echo "configure:4898: checking for $ac_word" >&5
4898 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 if test -n "$AS"; then
4902 ac_cv_prog_AS="$AS" # Let the user override the test.
4904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4906 for ac_dir in $ac_dummy; do
4907 test -z "$ac_dir" && ac_dir=.
4908 if test -f $ac_dir/$ac_word; then
4914 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4918 if test -n "$AS"; then
4919 echo "$ac_t""$AS" 1>&6
4921 echo "$ac_t""no" 1>&6
4929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4932 echo "configure:4933: checking for $ac_word" >&5
4933 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4934 echo $ac_n "(cached) $ac_c" 1>&6
4936 if test -n "$OBJDUMP"; then
4937 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4941 for ac_dir in $ac_dummy; do
4942 test -z "$ac_dir" && ac_dir=.
4943 if test -f $ac_dir/$ac_word; then
4944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4951 OBJDUMP="$ac_cv_prog_OBJDUMP"
4952 if test -n "$OBJDUMP"; then
4953 echo "$ac_t""$OBJDUMP" 1>&6
4955 echo "$ac_t""no" 1>&6
4959 if test -z "$ac_cv_prog_OBJDUMP"; then
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "objdump", so it can be a program name with args.
4962 set dummy objdump; ac_word=$2
4963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4964 echo "configure:4965: checking for $ac_word" >&5
4965 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4968 if test -n "$OBJDUMP"; then
4969 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4973 for ac_dir in $ac_dummy; do
4974 test -z "$ac_dir" && ac_dir=.
4975 if test -f $ac_dir/$ac_word; then
4976 ac_cv_prog_OBJDUMP="objdump"
4981 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4984 OBJDUMP="$ac_cv_prog_OBJDUMP"
4985 if test -n "$OBJDUMP"; then
4986 echo "$ac_t""$OBJDUMP" 1>&6
4988 echo "$ac_t""no" 1>&6
4997 # recent cygwin and mingw systems supply a stub DllMain which the user
4998 # can override, but on older systems we have to supply one
4999 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
5000 echo "configure:5001: checking if libtool should supply DllMain function" >&5
5001 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5009 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5015 lt_cv_need_dllmain=no
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 lt_cv_need_dllmain=yes
5025 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
5028 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
5029 # old mingw systems require "-dll" to link a DLL, while more recent ones
5031 SAVE_CFLAGS="$CFLAGS"
5032 CFLAGS="$CFLAGS -mdll"
5033 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
5034 echo "configure:5035: checking how to link DLLs" >&5
5035 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 lt_cv_cc_dll_switch=-mdll
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 lt_cv_cc_dll_switch=-dll
5058 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
5059 CFLAGS="$SAVE_CFLAGS" ;;
5060 *-*-cygwin* | *-*-pw32*)
5061 # cygwin systems need to pass --dll to the linker, and not link
5062 # crt.o which will require a WinMain@16 definition.
5063 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
5069 # Sed substitution that helps us do robust quoting. It backslashifies
5070 # metacharacters that are still active within double-quoted strings.
5071 Xsed='sed -e s/^X//'
5072 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5074 # Same as above, but do not quote variable references.
5075 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5077 # Sed substitution to delay expansion of an escaped shell variable in a
5078 # double_quote_subst'ed string.
5079 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5085 default_ofile=libtool
5086 can_build_shared=yes
5088 # All known linkers require a `.a' archive for static linking (except M$VC,
5089 # which needs '.lib').
5091 ltmain="$ac_aux_dir/ltmain.sh"
5092 ofile="$default_ofile"
5093 with_gnu_ld="$lt_cv_prog_gnu_ld"
5094 need_locks="$enable_libtool_lock"
5097 old_CFLAGS="$CFLAGS"
5099 # Set sane defaults for various variables
5100 test -z "$AR" && AR=ar
5101 test -z "$AR_FLAGS" && AR_FLAGS=cru
5102 test -z "$AS" && AS=as
5103 test -z "$CC" && CC=cc
5104 test -z "$DLLTOOL" && DLLTOOL=dlltool
5105 test -z "$LD" && LD=ld
5106 test -z "$LN_S" && LN_S="ln -s"
5107 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5108 test -z "$NM" && NM=nm
5109 test -z "$OBJDUMP" && OBJDUMP=objdump
5110 test -z "$RANLIB" && RANLIB=:
5111 test -z "$STRIP" && STRIP=:
5112 test -z "$ac_objext" && ac_objext=o
5114 if test x"$host" != x"$build"; then
5115 ac_tool_prefix=${host_alias}-
5120 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5123 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5128 # AIX sometimes has problems with the GCC collect2 program. For some
5129 # reason, if we set the COLLECT_NAMES environment variable, the problems
5130 # vanish in a puff of smoke.
5131 if test "X${COLLECT_NAMES+set}" != Xset; then
5133 export COLLECT_NAMES
5138 # Determine commands to create old-style static archives.
5139 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5140 old_postinstall_cmds='chmod 644 $oldlib'
5141 old_postuninstall_cmds=
5143 if test -n "$RANLIB"; then
5146 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5149 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5152 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5155 # Allow CC to be a program name with arguments.
5159 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5160 echo "configure:5161: checking for objdir" >&5
5161 rm -f .libs 2>/dev/null
5162 mkdir .libs 2>/dev/null
5163 if test -d .libs; then
5166 # MS-DOS does not allow filenames that begin with a dot.
5169 rmdir .libs 2>/dev/null
5170 echo "$ac_t""$objdir" 1>&6
5173 # Check whether --with-pic or --without-pic was given.
5174 if test "${with_pic+set}" = set; then
5181 test -z "$pic_mode" && pic_mode=default
5183 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5184 # in isolation, and that seeing it set (from the cache) indicates that
5185 # the associated values are set (in the cache) correctly too.
5186 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5187 echo "configure:5188: checking for $compiler option to produce PIC" >&5
5188 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5192 lt_cv_prog_cc_shlib=
5194 lt_cv_prog_cc_static=
5195 lt_cv_prog_cc_no_builtin=
5196 lt_cv_prog_cc_can_build_shared=$can_build_shared
5198 if test "$GCC" = yes; then
5199 lt_cv_prog_cc_wl='-Wl,'
5200 lt_cv_prog_cc_static='-static'
5204 # Below there is a dirty hack to force normal static linking with -ldl
5205 # The problem is because libdl dynamically linked with both libc and
5206 # libC (AIX C++ library), which obviously doesn't included in libraries
5207 # list by gcc. This cause undefined symbols with -static flags.
5208 # This hack allows C programs to be linked with "-static -ldl", but
5209 # not sure about C++ programs.
5210 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5213 # FIXME: we need at least 68020 code to build shared libraries, but
5214 # adding the `-m68020' flag to GCC prevents building anything better,
5216 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5218 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5219 # PIC is the default for these OSes.
5221 darwin* | rhapsody*)
5222 # PIC is the default on this platform
5223 # Common symbols not allowed in MH_DYLIB files
5224 lt_cv_prog_cc_pic='-fno-common'
5226 cygwin* | mingw* | pw32* | os2*)
5227 # This hack is so that the source file can tell whether it is being
5228 # built for inclusion in a dll (and should export symbols for example).
5229 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5232 if test -d /usr/nec; then
5233 lt_cv_prog_cc_pic=-Kconform_pic
5237 lt_cv_prog_cc_pic='-fPIC'
5241 # PORTME Check for PIC flags for the system compiler.
5243 aix3* | aix4* | aix5*)
5244 lt_cv_prog_cc_wl='-Wl,'
5245 # All AIX code is PIC.
5246 if test "$host_cpu" = ia64; then
5247 # AIX 5 now supports IA64 processor
5248 lt_cv_prog_cc_static='-Bstatic'
5250 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5254 hpux9* | hpux10* | hpux11*)
5255 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5256 lt_cv_prog_cc_wl='-Wl,'
5257 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5258 lt_cv_prog_cc_pic='+Z'
5261 irix5* | irix6* | nonstopux*)
5262 lt_cv_prog_cc_wl='-Wl,'
5263 lt_cv_prog_cc_static='-non_shared'
5264 # PIC (with -KPIC) is the default.
5267 cygwin* | mingw* | pw32* | os2*)
5268 # This hack is so that the source file can tell whether it is being
5269 # built for inclusion in a dll (and should export symbols for example).
5270 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5274 lt_cv_prog_cc_pic='-KPIC'
5275 lt_cv_prog_cc_static='-Bstatic'
5279 # XPLINK code is PIC by default
5282 osf3* | osf4* | osf5*)
5283 # All OSF/1 code is PIC.
5284 lt_cv_prog_cc_wl='-Wl,'
5285 lt_cv_prog_cc_static='-non_shared'
5289 lt_cv_prog_cc_pic='-Kpic'
5290 lt_cv_prog_cc_static='-dn'
5291 lt_cv_prog_cc_shlib='-belf'
5295 lt_cv_prog_cc_pic='-KPIC'
5296 lt_cv_prog_cc_static='-Bstatic'
5297 lt_cv_prog_cc_wl='-Wl,'
5301 lt_cv_prog_cc_pic='-PIC'
5302 lt_cv_prog_cc_static='-Bstatic'
5303 lt_cv_prog_cc_wl='-Qoption ld '
5306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5307 lt_cv_prog_cc_pic='-KPIC'
5308 lt_cv_prog_cc_static='-Bstatic'
5309 lt_cv_prog_cc_wl='-Wl,'
5313 lt_cv_prog_cc_pic='-pic'
5314 lt_cv_prog_cc_static='-Bstatic'
5318 if test -d /usr/nec ;then
5319 lt_cv_prog_cc_pic='-Kconform_pic'
5320 lt_cv_prog_cc_static='-Bstatic'
5325 lt_cv_prog_cc_can_build_shared=no
5332 if test -z "$lt_cv_prog_cc_pic"; then
5333 echo "$ac_t""none" 1>&6
5335 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5337 # Check to make sure the pic_flag actually works.
5338 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5339 echo "configure:5340: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5340 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 save_CFLAGS="$CFLAGS"
5344 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5353 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5356 hpux9* | hpux10* | hpux11*)
5357 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5358 # they create non-PIC objects. So, if there were any warnings, we
5359 # assume that PIC is not supported.
5360 if test -s conftest.err; then
5361 lt_cv_prog_cc_pic_works=no
5363 lt_cv_prog_cc_pic_works=yes
5367 lt_cv_prog_cc_pic_works=yes
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 lt_cv_prog_cc_pic_works=no
5379 CFLAGS="$save_CFLAGS"
5384 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5386 lt_cv_prog_cc_can_build_shared=no
5388 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5391 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5394 # Check for any special shared library compilation flags.
5395 if test -n "$lt_cv_prog_cc_shlib"; then
5396 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5397 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5399 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5400 lt_cv_prog_cc_can_build_shared=no
5404 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5405 echo "configure:5406: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5406 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 lt_cv_prog_cc_static_works=no
5410 save_LDFLAGS="$LDFLAGS"
5411 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 lt_cv_prog_cc_static_works=yes
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5428 LDFLAGS="$save_LDFLAGS"
5433 # Belt *and* braces to stop my trousers falling down:
5434 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5435 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5437 pic_flag="$lt_cv_prog_cc_pic"
5438 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5439 wl="$lt_cv_prog_cc_wl"
5440 link_static_flag="$lt_cv_prog_cc_static"
5441 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5442 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5445 # Check to see if options -o and -c are simultaneously supported by compiler
5446 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5447 echo "configure:5448: checking if $compiler supports -c -o file.$ac_objext" >&5
5448 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5452 $rm -r conftest 2>/dev/null
5455 echo "int some_variable = 0;" > conftest.$ac_ext
5457 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5458 # that will create temporary files in the current directory regardless of
5459 # the output directory. Thus, making CWD read-only will cause this test
5460 # to fail, enabling locking or at least warning the user not to do parallel
5463 save_CFLAGS="$CFLAGS"
5464 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5466 if { (eval echo configure:5467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5467 # The compiler can only warn and ignore the option if not recognized
5468 # So say no if there are warnings
5469 if test -s out/conftest.err; then
5470 lt_cv_compiler_c_o=no
5472 lt_cv_compiler_c_o=yes
5475 # Append any errors to the config.log.
5476 cat out/conftest.err 1>&5
5477 lt_cv_compiler_c_o=no
5479 CFLAGS="$save_CFLAGS"
5485 $rm -r conftest 2>/dev/null
5489 compiler_c_o=$lt_cv_compiler_c_o
5490 echo "$ac_t""$compiler_c_o" 1>&6
5492 if test x"$compiler_c_o" = x"yes"; then
5493 # Check to see if we can write to a .lo
5494 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5495 echo "configure:5496: checking if $compiler supports -c -o file.lo" >&5
5496 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5500 lt_cv_compiler_o_lo=no
5501 save_CFLAGS="$CFLAGS"
5502 CFLAGS="$CFLAGS -c -o conftest.lo"
5503 save_objext="$ac_objext"
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5510 int some_variable = 0;
5513 if { (eval echo configure:5514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515 # The compiler can only warn and ignore the option if not recognized
5516 # So say no if there are warnings
5517 if test -s conftest.err; then
5518 lt_cv_compiler_o_lo=no
5520 lt_cv_compiler_o_lo=yes
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5528 ac_objext="$save_objext"
5529 CFLAGS="$save_CFLAGS"
5533 compiler_o_lo=$lt_cv_compiler_o_lo
5534 echo "$ac_t""$compiler_o_lo" 1>&6
5539 # Check to see if we can do hard links to lock some files if needed
5540 hard_links="nottested"
5541 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5542 # do not overwrite the value of need_locks provided by the user
5543 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5544 echo "configure:5545: checking if we can lock with hard links" >&5
5547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5549 ln conftest.a conftest.b 2>&5 || hard_links=no
5550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5551 echo "$ac_t""$hard_links" 1>&6
5552 if test "$hard_links" = no; then
5553 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5560 if test "$GCC" = yes; then
5561 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5562 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5563 echo "configure:5564: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5564 echo "int some_variable = 0;" > conftest.$ac_ext
5565 save_CFLAGS="$CFLAGS"
5566 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5567 compiler_rtti_exceptions=no
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5573 int some_variable = 0;
5576 if { (eval echo configure:5577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5578 # The compiler can only warn and ignore the option if not recognized
5579 # So say no if there are warnings
5580 if test -s conftest.err; then
5581 compiler_rtti_exceptions=no
5583 compiler_rtti_exceptions=yes
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5591 CFLAGS="$save_CFLAGS"
5592 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5594 if test "$compiler_rtti_exceptions" = "yes"; then
5595 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5597 no_builtin_flag=' -fno-builtin'
5601 # See if the linker supports building shared libraries.
5602 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5603 echo "configure:5604: checking whether the linker ($LD) supports shared libraries" >&5
5605 allow_undefined_flag=
5607 need_lib_prefix=unknown
5608 need_version=unknown
5609 # when you set need_version to no, make sure it does not cause -set_version
5610 # flags to be left without arguments
5612 archive_expsym_cmds=
5613 old_archive_from_new_cmds=
5614 old_archive_from_expsyms_cmds=
5615 export_dynamic_flag_spec=
5616 whole_archive_flag_spec=
5617 thread_safe_flag_spec=
5618 hardcode_into_libs=no
5619 hardcode_libdir_flag_spec=
5620 hardcode_libdir_separator=
5623 hardcode_shlibpath_var=unsupported
5625 link_all_deplibs=unknown
5626 always_export_symbols=no
5627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5628 # include_expsyms should be a list of space-separated symbols to be *always*
5629 # included in the symbol list
5631 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5632 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5633 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5634 # as well as any symbol that contains `d'.
5635 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5636 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5637 # platforms (ab)use it in PIC code, but their linkers get confused if
5638 # the symbol is explicitly referenced. Since portable code cannot
5639 # rely on this symbol name, it's probably fine to never include it in
5640 # preloaded symbol tables.
5641 extract_expsyms_cmds=
5644 cygwin* | mingw* | pw32*)
5645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5646 # When not using gcc, we currently assume that we are using
5647 # Microsoft Visual C++.
5648 if test "$GCC" != yes; then
5658 if test "$with_gnu_ld" = yes; then
5659 # If archive_cmds runs LD, not CC, wlarc should be empty
5662 # See if GNU ld supports shared libraries.
5664 aix3* | aix4* | aix5*)
5665 # On AIX, the GNU linker is very broken
5666 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5670 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5671 *** to be unable to reliably create shared libraries on AIX.
5672 *** Therefore, libtool is disabling shared libraries support. If you
5673 *** really care for shared libraries, you may want to modify your PATH
5674 *** so that a non-GNU linker is found, and then restart.
5680 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)'
5681 hardcode_libdir_flag_spec='-L$libdir'
5682 hardcode_minus_L=yes
5684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5685 # that the semantics of dynamic libraries on AmigaOS, at least up
5686 # to version 4, is to share data among multiple programs linked
5687 # with the same dynamic library. Since this doesn't match the
5688 # behavior of shared libraries on other platforms, we can use
5694 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5695 allow_undefined_flag=unsupported
5696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5697 # support --undefined. This deserves some investigation. FIXME
5698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5704 cygwin* | mingw* | pw32*)
5705 # hardcode_libdir_flag_spec is actually meaningless, as there is
5706 # no search path for DLLs.
5707 hardcode_libdir_flag_spec='-L$libdir'
5708 allow_undefined_flag=unsupported
5709 always_export_symbols=yes
5711 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5712 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5713 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5714 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5715 else $CC -o impgen impgen.c ; fi)~
5716 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5718 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5720 # cygwin and mingw dlls have different entry points and sets of symbols
5722 # FIXME: what about values for MSVC?
5723 dll_entry=__cygwin_dll_entry@12
5724 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5728 dll_entry=_DllMainCRTStartup@12
5729 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5733 # mingw and cygwin differ, and it's simplest to just exclude the union
5734 # of the two symbol sets.
5735 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5737 # recent cygwin and mingw systems supply a stub DllMain which the user
5738 # can override, but on older systems we have to supply one (in ltdll.c)
5739 if test "x$lt_cv_need_dllmain" = "xyes"; then
5740 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5741 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~
5742 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5748 # Extract the symbol export list from an `--export-all' def file,
5749 # then regenerate the def file from the symbol export list, so that
5750 # the compiled dll only exports the symbol export list.
5751 # Be careful not to strip the DATA tag left be newer dlltools.
5752 export_symbols_cmds="$ltdll_cmds"'
5753 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5754 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5756 # If the export-symbols file already is a .def file (1st line
5757 # is EXPORTS), use it as is.
5758 # If DATA tags from a recent dlltool are present, honour them!
5759 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5760 cp $export_symbols $output_objdir/$soname-def;
5762 echo EXPORTS > $output_objdir/$soname-def;
5764 cat $export_symbols | while read symbol; do
5767 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5768 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5769 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5771 _lt_hint=`expr 1 + \$_lt_hint`;
5775 $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~
5776 $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~
5777 $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~
5778 $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~
5779 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5787 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5788 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5793 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5798 *** create shared libraries on Solaris systems. Therefore, libtool
5799 *** is disabling shared libraries support. We urge you to upgrade GNU
5800 *** binutils to release 2.9.1 or newer. Another option is to modify
5801 *** your PATH or compiler configuration so that the native linker is
5802 *** used, and then restart.
5805 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5817 hardcode_shlibpath_var=no
5821 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5830 if test "$ld_shlibs" = yes; then
5831 runpath_var=LD_RUN_PATH
5832 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5833 export_dynamic_flag_spec='${wl}--export-dynamic'
5835 cygwin* | mingw* | pw32*)
5836 # dlltool doesn't understand --whole-archive et. al.
5837 whole_archive_flag_spec=
5840 # ancient GNU ld didn't support --whole-archive et. al.
5841 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5842 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5844 whole_archive_flag_spec=
5850 # PORTME fill in a description of your system's linker (not GNU ld)
5853 allow_undefined_flag=unsupported
5854 always_export_symbols=yes
5855 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'
5856 # Note: this linker hardcodes the directories in LIBPATH if there
5857 # are no directories specified by -L.
5858 hardcode_minus_L=yes
5859 if test "$GCC" = yes && test -z "$link_static_flag"; then
5860 # Neither direct hardcoding nor static linking is supported with a
5862 hardcode_direct=unsupported
5867 if test "$host_cpu" = ia64; then
5868 # On IA64, the linker does run time linking by default, so we don't
5869 # have to do anything special.
5870 aix_use_runtimelinking=no
5871 exp_sym_flag='-Bexport'
5874 aix_use_runtimelinking=no
5876 # Test if we are trying to use run time linking or normal
5877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5878 # need to do runtime linking.
5879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5880 for ld_flag in $LDFLAGS; do
5883 aix_use_runtimelinking=yes
5890 exp_sym_flag='-bexport'
5891 no_entry_flag='-bnoentry'
5894 # When large executables or shared objects are built, AIX ld can
5895 # have problems creating the table of contents. If linking a library
5896 # or program results in "error TOC overflow" add -mminimal-toc to
5897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5902 hardcode_libdir_separator=':'
5903 if test "$GCC" = yes; then
5904 case $host_os in aix4.[012]|aix4.[012].*)
5905 collect2name=`${CC} -print-prog-name=collect2`
5906 if test -f "$collect2name" && \
5907 strings "$collect2name" | grep resolve_lib_name >/dev/null
5909 # We have reworked collect2
5912 # We have old collect2
5913 hardcode_direct=unsupported
5914 # It fails to find uninstalled libraries when the uninstalled
5915 # path is not listed in the libpath. Setting hardcode_minus_L
5916 # to unsupported forces relinking
5917 hardcode_minus_L=yes
5918 hardcode_libdir_flag_spec='-L$libdir'
5919 hardcode_libdir_separator=
5923 shared_flag='-shared'
5926 if test "$host_cpu" = ia64; then
5927 shared_flag='${wl}-G'
5929 if test "$aix_use_runtimelinking" = yes; then
5930 shared_flag='${wl}-G'
5932 shared_flag='${wl}-bM:SRE'
5937 # It seems that -bexpall can do strange things, so it is better to
5938 # generate a list of symbols to export.
5939 always_export_symbols=yes
5940 if test "$aix_use_runtimelinking" = yes; then
5941 # Warning - without using the other runtime loading flags (-brtl),
5942 # -berok will link without error, but may produce a broken library.
5943 allow_undefined_flag='-berok'
5944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5945 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"
5947 if test "$host_cpu" = ia64; then
5948 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5949 allow_undefined_flag="-z nodefs"
5950 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"
5952 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5953 # Warning - without using the other run time loading flags,
5954 # -berok will link without error, but may produce a broken library.
5955 allow_undefined_flag='${wl}-berok'
5956 # This is a bit strange, but is similar to how AIX traditionally builds
5957 # it's shared libraries.
5958 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'
5964 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)'
5965 hardcode_libdir_flag_spec='-L$libdir'
5966 hardcode_minus_L=yes
5967 # see comment about different semantics on the GNU ld section
5971 cygwin* | mingw* | pw32*)
5972 # When not using gcc, we currently assume that we are using
5973 # Microsoft Visual C++.
5974 # hardcode_libdir_flag_spec is actually meaningless, as there is
5975 # no search path for DLLs.
5976 hardcode_libdir_flag_spec=' '
5977 allow_undefined_flag=unsupported
5978 # Tell ltmain to make .lib files, not .a files.
5980 # FIXME: Setting linknames here is a bad hack.
5981 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5982 # The linker will automatically build a .lib file if we build a DLL.
5983 old_archive_from_new_cmds='true'
5984 # FIXME: Should let the user specify the lib program.
5985 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5986 fix_srcfile_path='`cygpath -w "$srcfile"`'
5989 darwin* | rhapsody*)
5991 rhapsody* | darwin1.[012])
5992 allow_undefined_flag='-undefined suppress'
5995 allow_undefined_flag='-flat_namespace -undefined suppress'
5998 # FIXME: Relying on posixy $() will cause problems for
5999 # cross-compilation, but unfortunately the echo tests do not
6000 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6001 # `"' quotes if we put them in here... so don't!
6002 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)'
6003 # We need to add '_' to the symbols in $export_symbols first
6004 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6006 hardcode_shlibpath_var=no
6007 whole_archive_flag_spec='-all_load $convenience'
6014 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6015 # support. Future versions do this automatically, but an explicit c++rt0.o
6016 # does not break anything, and helps significantly (at the cost of a little
6019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6020 hardcode_libdir_flag_spec='-R$libdir'
6022 hardcode_shlibpath_var=no
6025 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6029 hardcode_minus_L=yes
6030 hardcode_shlibpath_var=no
6033 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6035 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6036 hardcode_libdir_flag_spec='-R$libdir'
6038 hardcode_shlibpath_var=no
6041 hpux9* | hpux10* | hpux11*)
6043 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' ;;
6044 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6047 hardcode_libdir_separator=:
6049 hardcode_minus_L=yes # Not in the search PATH, but as the default
6050 # location of the library.
6051 export_dynamic_flag_spec='${wl}-E'
6054 irix5* | irix6* | nonstopux*)
6055 if test "$GCC" = yes; then
6056 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'
6057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6059 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'
6060 hardcode_libdir_flag_spec='-rpath $libdir'
6062 hardcode_libdir_separator=:
6063 link_all_deplibs=yes
6067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6070 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6072 hardcode_libdir_flag_spec='-R$libdir'
6074 hardcode_shlibpath_var=no
6078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6081 hardcode_libdir_separator=:
6082 hardcode_shlibpath_var=no
6087 hardcode_shlibpath_var=no
6088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6091 export_dynamic_flag_spec='${wl}-E'
6094 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6096 hardcode_libdir_flag_spec='-R$libdir'
6099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6107 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
6108 cp \$linknames \$output_objdir && linknames=''"
6109 export_dynamic_flag_spec="-Wl,DLL"
6113 hardcode_libdir_flag_spec='-L$libdir'
6114 hardcode_minus_L=yes
6115 allow_undefined_flag=unsupported
6116 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'
6117 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6121 if test "$GCC" = yes; then
6122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6123 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'
6125 allow_undefined_flag=' -expect_unresolved \*'
6126 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'
6128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6129 hardcode_libdir_separator=:
6132 osf4* | osf5*) # as osf3* with the addition of -msym flag
6133 if test "$GCC" = yes; then
6134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6135 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'
6136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6138 allow_undefined_flag=' -expect_unresolved \*'
6139 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'
6140 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6141 $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'
6143 #Both c and cxx compiler support -rpath directly
6144 hardcode_libdir_flag_spec='-rpath $libdir'
6146 hardcode_libdir_separator=:
6150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6151 hardcode_shlibpath_var=no
6152 runpath_var=LD_RUN_PATH
6153 hardcode_runpath_var=yes
6154 export_dynamic_flag_spec='${wl}-Bexport'
6158 # gcc --version < 3.0 without binutils cannot create self contained
6159 # shared libraries reliably, requiring libgcc.a to resolve some of
6160 # the object symbols generated in some cases. Libraries that use
6161 # assert need libgcc.a to resolve __eprintf, for example. Linking
6162 # a copy of libgcc.a into every shared library to guarantee resolving
6163 # such symbols causes other problems: According to Tim Van Holder
6164 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6165 # (to the application) exception stack for one thing.
6166 no_undefined_flag=' -z defs'
6167 if test "$GCC" = yes; then
6168 case `$CC --version 2>/dev/null` in
6172 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6173 *** create self contained shared libraries on Solaris systems, without
6174 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6175 *** -no-undefined support, which will at least allow you to build shared
6176 *** libraries. However, you may find that when you link such libraries
6177 *** into an application without using GCC, you have to manually add
6178 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6179 *** upgrade to a newer version of GCC. Another option is to rebuild your
6180 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6187 # $CC -shared without GNU ld will not create a library from C++
6188 # object files and a static libstdc++, better avoid it by now
6189 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6190 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6192 hardcode_libdir_flag_spec='-R$libdir'
6193 hardcode_shlibpath_var=no
6195 solaris2.[0-5] | solaris2.[0-5].*) ;;
6196 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6199 link_all_deplibs=yes
6203 if test "x$host_vendor" = xsequent; then
6204 # Use $CC to link under sequent, because it throws in some extra .o
6205 # files that make .init and .fini sections work.
6206 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6208 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6210 hardcode_libdir_flag_spec='-L$libdir'
6212 hardcode_minus_L=yes
6213 hardcode_shlibpath_var=no
6217 case $host_vendor in
6219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220 hardcode_direct=yes # is this really true???
6223 ## LD is ld it makes a PLAMLIB
6224 ## CC just makes a GrossModule.
6225 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6226 reload_cmds='$CC -r -o $output$reload_objs'
6230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6231 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6234 runpath_var='LD_RUN_PATH'
6235 hardcode_shlibpath_var=no
6239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6240 hardcode_shlibpath_var=no
6241 export_dynamic_flag_spec='-Bexport'
6245 no_undefined_flag=' -z text'
6246 # $CC -shared without GNU ld will not create a library from C++
6247 # object files and a static libstdc++, better avoid it by now
6248 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6249 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6250 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6251 hardcode_libdir_flag_spec=
6252 hardcode_shlibpath_var=no
6253 runpath_var='LD_RUN_PATH'
6257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6258 hardcode_libdir_flag_spec='-L$libdir'
6259 hardcode_shlibpath_var=no
6263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6264 hardcode_libdir_flag_spec='-L$libdir'
6265 hardcode_shlibpath_var=no
6269 if test -d /usr/nec; then
6270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271 hardcode_shlibpath_var=no
6272 runpath_var=LD_RUN_PATH
6273 hardcode_runpath_var=yes
6279 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6282 hardcode_shlibpath_var=no
6283 hardcode_runpath_var=yes
6284 runpath_var=LD_RUN_PATH
6287 sysv5uw7* | unixware7*)
6288 no_undefined_flag='${wl}-z ${wl}text'
6289 if test "$GCC" = yes; then
6290 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6292 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6294 runpath_var='LD_RUN_PATH'
6295 hardcode_shlibpath_var=no
6303 echo "$ac_t""$ld_shlibs" 1>&6
6304 test "$ld_shlibs" = no && can_build_shared=no
6306 # Check hardcoding attributes.
6307 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6308 echo "configure:6309: checking how to hardcode library paths into programs" >&5
6310 if test -n "$hardcode_libdir_flag_spec" || \
6311 test -n "$runpath_var"; then
6313 # We can hardcode non-existant directories.
6314 if test "$hardcode_direct" != no &&
6315 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6316 # have to relink, otherwise we might link with an installed library
6317 # when we should be linking with a yet-to-be-installed one
6318 ## test "$hardcode_shlibpath_var" != no &&
6319 test "$hardcode_minus_L" != no; then
6320 # Linking always hardcodes the temporary library directory.
6321 hardcode_action=relink
6323 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6324 hardcode_action=immediate
6327 # We cannot hardcode anything, or else we can only hardcode existing
6329 hardcode_action=unsupported
6331 echo "$ac_t""$hardcode_action" 1>&6
6335 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6336 echo "configure:6337: checking whether stripping libraries is possible" >&5
6337 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6338 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6339 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6340 echo "$ac_t""yes" 1>&6
6342 echo "$ac_t""no" 1>&6
6345 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6346 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6348 # PORTME Fill in your ld.so characteristics
6349 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6350 echo "configure:6351: checking dynamic linker characteristics" >&5
6352 libname_spec='lib$name'
6359 shlibpath_overrides_runpath=unknown
6361 dynamic_linker="$host_os ld.so"
6362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6368 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6369 shlibpath_var=LIBPATH
6371 # AIX has no versioning support, so we append a major version to the name.
6372 soname_spec='${libname}${release}.so$major'
6379 hardcode_into_libs=yes
6380 if test "$host_cpu" = ia64; then
6381 # AIX 5 supports IA64
6382 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6383 shlibpath_var=LD_LIBRARY_PATH
6385 # With GCC up to 2.95.x, collect2 would create an import file
6386 # for dependence libraries. The import file would start with
6387 # the line `#! .'. This would cause the generated library to
6388 # depend on `.', always an invalid library. This was fixed in
6389 # development snapshots of GCC prior to 3.0.
6391 aix4 | aix4.[01] | aix4.[01].*)
6392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6394 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6401 # AIX (on Power*) has no versioning support, so currently we can
6402 # not hardcode correct soname into executable. Probably we can
6403 # add versioning support to collect2, so additional links can
6404 # be useful in future.
6405 if test "$aix_use_runtimelinking" = yes; then
6406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6407 # instead of lib<name>.a to let people know that these are not
6408 # typical AIX shared libraries.
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6411 # We preserve .a as extension for shared libraries through AIX4.2
6412 # and later when we are not doing run time linking.
6413 library_names_spec='${libname}${release}.a $libname.a'
6414 soname_spec='${libname}${release}.so$major'
6416 shlibpath_var=LIBPATH
6418 hardcode_into_libs=yes
6422 library_names_spec='$libname.ixlibrary $libname.a'
6423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6424 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'
6428 library_names_spec='${libname}.so'
6429 dynamic_linker="$host_os ld.so"
6430 shlibpath_var=LIBRARY_PATH
6436 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6437 soname_spec='${libname}${release}.so$major'
6438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6439 shlibpath_var=LD_LIBRARY_PATH
6440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6442 export_dynamic_flag_spec=-rdynamic
6443 # the default ld.so.conf also contains /usr/contrib/lib and
6444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6445 # libtool to hard-code these into programs
6448 cygwin* | mingw* | pw32*)
6449 version_type=windows
6452 case $GCC,$host_os in
6454 library_names_spec='$libname.dll.a'
6455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6456 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6457 dldir=$destdir/`dirname \$dlpath`~
6458 test -d \$dldir || mkdir -p \$dldir~
6459 $install_prog .libs/$dlname \$dldir/$dlname'
6460 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6461 dlpath=$dir/\$dldll~
6465 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6466 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6469 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6472 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6475 dynamic_linker='Win32 ld.exe'
6476 # FIXME: first we should search . and the directory the executable is in
6480 darwin* | rhapsody*)
6481 dynamic_linker="$host_os dyld"
6485 # FIXME: Relying on posixy $() will cause problems for
6486 # cross-compilation, but unfortunately the echo tests do not
6487 # yet detect zsh echo's removal of \ escapes.
6488 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)'
6489 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6490 shlibpath_overrides_runpath=yes
6491 shlibpath_var=DYLD_LIBRARY_PATH
6499 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6500 version_type=freebsd-$objformat
6501 case $version_type in
6503 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6508 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6512 shlibpath_var=LD_LIBRARY_PATH
6515 shlibpath_overrides_runpath=yes
6518 shlibpath_overrides_runpath=no
6519 hardcode_into_libs=yes
6528 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6529 soname_spec='${libname}${release}.so$major'
6530 shlibpath_var=LD_LIBRARY_PATH
6531 hardcode_into_libs=yes
6534 hpux9* | hpux10* | hpux11*)
6535 # Give a soname corresponding to the major version so that dld.sl refuses to
6536 # link against other versions.
6537 dynamic_linker="$host_os dld.sl"
6541 shlibpath_var=SHLIB_PATH
6542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6543 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6544 soname_spec='${libname}${release}.sl$major'
6545 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6546 postinstall_cmds='chmod 555 $lib'
6549 irix5* | irix6* | nonstopux*)
6551 nonstopux*) version_type=nonstopux ;;
6552 *) version_type=irix ;;
6556 soname_spec='${libname}${release}.so$major'
6557 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6559 irix5* | nonstopux*)
6563 case $LD in # libtool.m4 will add one of these switches to LD
6564 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6565 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6566 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6567 *) libsuff= shlibsuff= libmagic=never-match;;
6571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6572 shlibpath_overrides_runpath=no
6573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6577 # No shared lib support for Linux oldld, aout, or coff.
6578 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6582 # This must be Linux ELF.
6587 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6588 soname_spec='${libname}${release}.so$major'
6589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6590 shlibpath_var=LD_LIBRARY_PATH
6591 shlibpath_overrides_runpath=no
6592 # This implies no fast_install, which is unacceptable.
6593 # Some rework will be needed to allow for fast_install
6594 # before this can be enabled.
6595 hardcode_into_libs=yes
6597 # We used to test for /lib/ld.so.1 and disable shared libraries on
6598 # powerpc, because MkLinux only supported shared libraries with the
6599 # GNU dynamic linker. Since this was broken with cross compilers,
6600 # most powerpc-linux boxes support dynamic linking these days and
6601 # people can always --disable-shared, the test was removed, and we
6602 # assume the GNU/Linux dynamic linker is in use.
6603 dynamic_linker='GNU/Linux ld.so'
6610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6611 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6613 dynamic_linker='NetBSD (a.out) ld.so'
6615 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6616 soname_spec='${libname}${release}.so$major'
6617 dynamic_linker='NetBSD ld.elf_so'
6619 shlibpath_var=LD_LIBRARY_PATH
6620 shlibpath_overrides_runpath=yes
6621 hardcode_into_libs=yes
6626 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6627 shlibpath_var=LD_LIBRARY_PATH
6628 shlibpath_overrides_runpath=yes
6635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6637 openbsd2.[89] | openbsd2.[89].*)
6638 shlibpath_overrides_runpath=no
6641 shlibpath_overrides_runpath=yes
6645 shlibpath_overrides_runpath=yes
6647 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6649 shlibpath_var=LD_LIBRARY_PATH
6655 shlibpath_overrides_runpath=yes
6656 shlibpath_var=LIBPATH
6657 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6658 # the library's exports are in libname.x; this is the file that must
6659 # actually be linked with to use a DLL.
6660 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6664 libname_spec='$name'
6666 library_names_spec='$libname.dll $libname.a'
6667 dynamic_linker='OS/2 ld.exe'
6668 shlibpath_var=LIBPATH
6671 osf3* | osf4* | osf5*)
6674 soname_spec='${libname}${release}.so$major'
6675 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6676 shlibpath_var=LD_LIBRARY_PATH
6677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6678 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6679 hardcode_into_libs=yes
6684 soname_spec='${libname}${release}.so$major'
6685 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686 shlibpath_var=LD_LIBRARY_PATH
6693 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694 soname_spec='${libname}${release}.so$major'
6695 shlibpath_var=LD_LIBRARY_PATH
6696 shlibpath_overrides_runpath=yes
6697 hardcode_into_libs=yes
6698 # ldd complains unless libraries are executable
6699 postinstall_cmds='chmod +x $lib'
6704 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6706 shlibpath_var=LD_LIBRARY_PATH
6707 shlibpath_overrides_runpath=yes
6708 if test "$with_gnu_ld" = yes; then
6714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6716 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717 soname_spec='${libname}${release}.so$major'
6718 shlibpath_var=LD_LIBRARY_PATH
6719 case $host_vendor in
6721 shlibpath_overrides_runpath=no
6723 export_dynamic_flag_spec='${wl}-Blargedynsym'
6724 runpath_var=LD_RUN_PATH
6732 shlibpath_overrides_runpath=no
6733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6740 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6741 soname_spec='${libname}${release}.so$major'
6742 shlibpath_var=LD_LIBRARY_PATH
6749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6750 soname_spec='${libname}${release}.so$major'
6751 shlibpath_var=LD_LIBRARY_PATH
6755 if test -d /usr/nec ;then
6757 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6758 soname_spec='$libname.so.$major'
6759 shlibpath_var=LD_LIBRARY_PATH
6767 echo "$ac_t""$dynamic_linker" 1>&6
6768 test "$dynamic_linker" = no && can_build_shared=no
6770 # Report the final consequences.
6771 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6772 echo "configure:6773: checking if libtool supports shared libraries" >&5
6773 echo "$ac_t""$can_build_shared" 1>&6
6775 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6776 echo "configure:6777: checking whether to build shared libraries" >&5
6777 test "$can_build_shared" = "no" && enable_shared=no
6779 # On AIX, shared libraries and static libraries use the same namespace, and
6780 # are all built from PIC.
6783 test "$enable_shared" = yes && enable_static=no
6784 if test -n "$RANLIB"; then
6785 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6786 postinstall_cmds='$RANLIB $lib'
6791 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6792 test "$enable_shared" = yes && enable_static=no
6796 echo "$ac_t""$enable_shared" 1>&6
6798 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6799 echo "configure:6800: checking whether to build static libraries" >&5
6800 # Make sure either enable_shared or enable_static is yes.
6801 test "$enable_shared" = yes || enable_static=yes
6802 echo "$ac_t""$enable_static" 1>&6
6804 if test "$hardcode_action" = relink; then
6805 # Fast installation is not supported
6806 enable_fast_install=no
6807 elif test "$shlibpath_overrides_runpath" = yes ||
6808 test "$enable_shared" = no; then
6809 # Fast installation is not necessary
6810 enable_fast_install=needless
6813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6814 if test "$GCC" = yes; then
6815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6818 if test "x$enable_dlopen" != xyes; then
6819 enable_dlopen=unknown
6820 enable_dlopen_self=unknown
6821 enable_dlopen_self_static=unknown
6828 lt_cv_dlopen="load_add_on"
6830 lt_cv_dlopen_self=yes
6833 cygwin* | mingw* | pw32*)
6834 lt_cv_dlopen="LoadLibrary"
6839 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6840 echo "configure:6841: checking for dllload" >&5
6841 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char dllload(); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_dllload) || defined (__stub___dllload)
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_func_dllload=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_func_dllload=no"
6881 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 lt_cv_dlopen="dllload"
6885 echo "$ac_t""no" 1>&6
6886 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6887 echo "configure:6888: checking for shl_load" >&5
6888 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char shl_load(); below. */
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918 eval "ac_cv_func_shl_load=yes"
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6923 eval "ac_cv_func_shl_load=no"
6928 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 lt_cv_dlopen="shl_load"
6932 echo "$ac_t""no" 1>&6
6933 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6934 echo "configure:6935: checking for shl_load in -ldld" >&5
6935 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6936 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 ac_save_LIBS="$LIBS"
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 /* Override any gcc2 internal prototype to avoid an error. */
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6955 eval "ac_cv_lib_$ac_lib_var=yes"
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6960 eval "ac_cv_lib_$ac_lib_var=no"
6963 LIBS="$ac_save_LIBS"
6966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6967 echo "$ac_t""yes" 1>&6
6968 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6970 echo "$ac_t""no" 1>&6
6971 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6972 echo "configure:6973: checking for dlopen" >&5
6973 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 /* System header to define __stub macros and hopefully few prototypes,
6980 which can conflict with char dlopen(); below. */
6982 /* Override any gcc2 internal prototype to avoid an error. */
6983 /* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6990 /* The GNU C library defines this for functions which it implements
6991 to always fail with ENOSYS. Some functions are actually named
6992 something starting with __ and the normal name is an alias. */
6993 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7001 if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7003 eval "ac_cv_func_dlopen=yes"
7005 echo "configure: failed program was:" >&5
7006 cat conftest.$ac_ext >&5
7008 eval "ac_cv_func_dlopen=no"
7013 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7015 lt_cv_dlopen="dlopen"
7017 echo "$ac_t""no" 1>&6
7018 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7019 echo "configure:7020: checking for dlopen in -ldl" >&5
7020 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
7021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 ac_save_LIBS="$LIBS"
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* Override any gcc2 internal prototype to avoid an error. */
7030 /* We use char because int might match the return type of a gcc2
7031 builtin and then its argument prototype would still apply. */
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7048 LIBS="$ac_save_LIBS"
7051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7055 echo "$ac_t""no" 1>&6
7056 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
7057 echo "configure:7058: checking for dlopen in -lsvld" >&5
7058 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
7059 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7062 ac_save_LIBS="$LIBS"
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7076 if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7078 eval "ac_cv_lib_$ac_lib_var=yes"
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7083 eval "ac_cv_lib_$ac_lib_var=no"
7086 LIBS="$ac_save_LIBS"
7089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7093 echo "$ac_t""no" 1>&6
7094 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
7095 echo "configure:7096: checking for dld_link in -ldld" >&5
7096 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
7097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7100 ac_save_LIBS="$LIBS"
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* Override any gcc2 internal prototype to avoid an error. */
7106 /* We use char because int might match the return type of a gcc2
7107 builtin and then its argument prototype would still apply. */
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116 eval "ac_cv_lib_$ac_lib_var=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_lib_$ac_lib_var=no"
7124 LIBS="$ac_save_LIBS"
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7131 echo "$ac_t""no" 1>&6
7155 if test "x$lt_cv_dlopen" != xno; then
7161 case $lt_cv_dlopen in
7163 save_CPPFLAGS="$CPPFLAGS"
7164 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7166 save_LDFLAGS="$LDFLAGS"
7167 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7170 LIBS="$lt_cv_dlopen_libs $LIBS"
7172 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7173 echo "configure:7174: checking whether a program can dlopen itself" >&5
7174 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7177 if test "$cross_compiling" = yes; then :
7178 lt_cv_dlopen_self=cross
7180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7181 lt_status=$lt_dlunknown
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7193 # define LT_DLGLOBAL RTLD_GLOBAL
7196 # define LT_DLGLOBAL DL_GLOBAL
7198 # define LT_DLGLOBAL 0
7202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7203 find out it does not work in some platform. */
7204 #ifndef LT_DLLAZY_OR_NOW
7206 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7209 # define LT_DLLAZY_OR_NOW DL_LAZY
7212 # define LT_DLLAZY_OR_NOW RTLD_NOW
7215 # define LT_DLLAZY_OR_NOW DL_NOW
7217 # define LT_DLLAZY_OR_NOW 0
7225 extern "C" void exit (int);
7228 void fnord() { int i=42;}
7231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7232 int status = $lt_dlunknown;
7236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7238 /* dlclose (self); */
7244 if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7245 (./conftest; exit; ) 2>/dev/null
7248 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7249 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7250 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7253 # compilation failed
7254 lt_cv_dlopen_self=no
7262 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7264 if test "x$lt_cv_dlopen_self" = xyes; then
7265 LDFLAGS="$LDFLAGS $link_static_flag"
7266 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7267 echo "configure:7268: checking whether a statically linked program can dlopen itself" >&5
7268 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7271 if test "$cross_compiling" = yes; then :
7272 lt_cv_dlopen_self_static=cross
7274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7275 lt_status=$lt_dlunknown
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7287 # define LT_DLGLOBAL RTLD_GLOBAL
7290 # define LT_DLGLOBAL DL_GLOBAL
7292 # define LT_DLGLOBAL 0
7296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7297 find out it does not work in some platform. */
7298 #ifndef LT_DLLAZY_OR_NOW
7300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7303 # define LT_DLLAZY_OR_NOW DL_LAZY
7306 # define LT_DLLAZY_OR_NOW RTLD_NOW
7309 # define LT_DLLAZY_OR_NOW DL_NOW
7311 # define LT_DLLAZY_OR_NOW 0
7319 extern "C" void exit (int);
7322 void fnord() { int i=42;}
7325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7326 int status = $lt_dlunknown;
7330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7332 /* dlclose (self); */
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7339 (./conftest; exit; ) 2>/dev/null
7342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7344 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7347 # compilation failed
7348 lt_cv_dlopen_self_static=no
7356 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7359 CPPFLAGS="$save_CPPFLAGS"
7360 LDFLAGS="$save_LDFLAGS"
7365 case $lt_cv_dlopen_self in
7366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7367 *) enable_dlopen_self=unknown ;;
7370 case $lt_cv_dlopen_self_static in
7371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7372 *) enable_dlopen_self_static=unknown ;;
7377 if test "$enable_shared" = yes && test "$GCC" = yes; then
7378 case $archive_cmds in
7380 # FIXME: we may have to deal with multi-command sequences.
7383 # Test whether the compiler implicitly links with -lc since on some
7384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7385 # to ld, don't add -lc before -lgcc.
7386 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7387 echo "configure:7388: checking whether -lc should be explicitly linked in" >&5
7388 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7392 echo 'static int dummy;' > conftest.$ac_ext
7394 if { (eval echo configure:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7397 libobjs=conftest.$ac_objext
7399 wl=$lt_cv_prog_cc_wl
7405 save_allow_undefined_flag=$allow_undefined_flag
7406 allow_undefined_flag=
7407 if { (eval echo configure:7408: \"$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; }
7409 lt_cv_archive_cmds_need_lc=no
7411 lt_cv_archive_cmds_need_lc=yes
7413 allow_undefined_flag=$save_allow_undefined_flag
7415 cat conftest.err 1>&5
7419 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7423 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7425 # The second clause should only fire when bootstrapping the
7426 # libtool distribution, otherwise you forgot to ship ltmain.sh
7427 # with your package, and you will get complaints that there are
7428 # no rules to generate ltmain.sh.
7429 if test -f "$ltmain"; then
7432 # If there is no Makefile yet, we rely on a make rule to execute
7433 # `config.status --recheck' to rerun these tests and create the
7434 # libtool script then.
7435 test -f Makefile && make "$ltmain"
7438 if test -f "$ltmain"; then
7439 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7442 echo creating $ofile
7444 # Now quote all the things that may contain metacharacters while being
7445 # careful not to overquote the AC_SUBSTed values. We take copies of the
7446 # variables and quote the copies for generation of the libtool script.
7447 for var in echo old_CC old_CFLAGS SED \
7448 AR AR_FLAGS CC LD LN_S NM SHELL \
7449 reload_flag reload_cmds wl \
7450 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7451 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7452 library_names_spec soname_spec \
7453 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7454 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7455 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7456 old_striplib striplib file_magic_cmd export_symbols_cmds \
7457 deplibs_check_method allow_undefined_flag no_undefined_flag \
7458 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7459 global_symbol_to_c_name_address \
7460 hardcode_libdir_flag_spec hardcode_libdir_separator \
7461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7462 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7465 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7466 old_postinstall_cmds | old_postuninstall_cmds | \
7467 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7468 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7469 postinstall_cmds | postuninstall_cmds | \
7470 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7471 # Double-quote double-evaled strings.
7472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7480 cat <<__EOF__ > "${ofile}T"
7483 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7484 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7485 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7487 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7488 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7490 # This program is free software; you can redistribute it and/or modify
7491 # it under the terms of the GNU General Public License as published by
7492 # the Free Software Foundation; either version 2 of the License, or
7493 # (at your option) any later version.
7495 # This program is distributed in the hope that it will be useful, but
7496 # WITHOUT ANY WARRANTY; without even the implied warranty of
7497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7498 # General Public License for more details.
7500 # You should have received a copy of the GNU General Public License
7501 # along with this program; if not, write to the Free Software
7502 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7504 # As a special exception to the GNU General Public License, if you
7505 # distribute this file as part of a program that contains a
7506 # configuration script generated by Autoconf, you may include it under
7507 # the same distribution terms that you use for the rest of that program.
7509 # A sed that does not truncate output.
7512 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7513 Xsed="${SED} -e s/^X//"
7515 # The HP-UX ksh and POSIX shell print the target directory to stdout
7517 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7519 # ### BEGIN LIBTOOL CONFIG
7521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7523 # Shell to use when invoking shell scripts.
7526 # Whether or not to build shared libraries.
7527 build_libtool_libs=$enable_shared
7529 # Whether or not to build static libraries.
7530 build_old_libs=$enable_static
7532 # Whether or not to add -lc for building shared libraries.
7533 build_libtool_need_lc=$need_lc
7535 # Whether or not to optimize for fast installation.
7536 fast_install=$enable_fast_install
7539 host_alias=$host_alias
7542 # An echo program that does not interpret backslashes.
7547 AR_FLAGS=$lt_AR_FLAGS
7549 # The default C compiler.
7552 # Is the compiler the GNU C compiler?
7555 # The linker used to build libraries.
7558 # Whether we need hard or soft links.
7561 # A BSD-compatible nm program.
7564 # A symbol stripping program
7567 # Used to examine libraries when file_magic_cmd begins "file"
7568 MAGIC_CMD=$MAGIC_CMD
7570 # Used on cygwin: DLL creation program.
7573 # Used on cygwin: object dumper.
7576 # Used on cygwin: assembler.
7579 # The name of the directory that contains temporary libtool files.
7582 # How to create reloadable object files.
7583 reload_flag=$lt_reload_flag
7584 reload_cmds=$lt_reload_cmds
7586 # How to pass a linker flag through the compiler.
7589 # Object file suffix (normally "o").
7592 # Old archive suffix (normally "a").
7595 # Executable file suffix (normally "").
7598 # Additional compiler flags for building library objects.
7599 pic_flag=$lt_pic_flag
7602 # Does compiler simultaneously support -c and -o options?
7603 compiler_c_o=$lt_compiler_c_o
7605 # Can we write directly to a .lo ?
7606 compiler_o_lo=$lt_compiler_o_lo
7608 # Must we lock files when doing compilation ?
7609 need_locks=$lt_need_locks
7611 # Do we need the lib prefix for modules?
7612 need_lib_prefix=$need_lib_prefix
7614 # Do we need a version for libraries?
7615 need_version=$need_version
7617 # Whether dlopen is supported.
7618 dlopen_support=$enable_dlopen
7620 # Whether dlopen of programs is supported.
7621 dlopen_self=$enable_dlopen_self
7623 # Whether dlopen of statically linked programs is supported.
7624 dlopen_self_static=$enable_dlopen_self_static
7626 # Compiler flag to prevent dynamic linking.
7627 link_static_flag=$lt_link_static_flag
7629 # Compiler flag to turn off builtin functions.
7630 no_builtin_flag=$lt_no_builtin_flag
7632 # Compiler flag to allow reflexive dlopens.
7633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7635 # Compiler flag to generate shared objects directly from archives.
7636 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7638 # Compiler flag to generate thread-safe objects.
7639 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7641 # Library versioning type.
7642 version_type=$version_type
7644 # Format of library name prefix.
7645 libname_spec=$lt_libname_spec
7647 # List of archive names. First name is the real one, the rest are links.
7648 # The last name is the one that the linker finds with -lNAME.
7649 library_names_spec=$lt_library_names_spec
7651 # The coded name of the library, if different from the real name.
7652 soname_spec=$lt_soname_spec
7654 # Commands used to build and install an old-style archive.
7656 old_archive_cmds=$lt_old_archive_cmds
7657 old_postinstall_cmds=$lt_old_postinstall_cmds
7658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7660 # Create an old-style archive from a shared archive.
7661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7663 # Create a temporary old-style archive to link instead of a shared archive.
7664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7666 # Commands used to build and install a shared archive.
7667 archive_cmds=$lt_archive_cmds
7668 archive_expsym_cmds=$lt_archive_expsym_cmds
7669 postinstall_cmds=$lt_postinstall_cmds
7670 postuninstall_cmds=$lt_postuninstall_cmds
7672 # Commands to strip libraries.
7673 old_striplib=$lt_old_striplib
7674 striplib=$lt_striplib
7676 # Method to check whether dependent libraries are shared objects.
7677 deplibs_check_method=$lt_deplibs_check_method
7679 # Command to use when deplibs_check_method == file_magic.
7680 file_magic_cmd=$lt_file_magic_cmd
7682 # Flag that allows shared libraries with undefined symbols to be built.
7683 allow_undefined_flag=$lt_allow_undefined_flag
7685 # Flag that forces no undefined symbols.
7686 no_undefined_flag=$lt_no_undefined_flag
7688 # Commands used to finish a libtool library installation in a directory.
7689 finish_cmds=$lt_finish_cmds
7691 # Same as above, but a single script fragment to be evaled but not shown.
7692 finish_eval=$lt_finish_eval
7694 # Take the output of nm and produce a listing of raw symbols and C names.
7695 global_symbol_pipe=$lt_global_symbol_pipe
7697 # Transform the output of nm in a proper C declaration
7698 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7700 # Transform the output of nm in a C name address pair
7701 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7703 # This is the shared library runtime path variable.
7704 runpath_var=$runpath_var
7706 # This is the shared library path variable.
7707 shlibpath_var=$shlibpath_var
7709 # Is shlibpath searched before the hard-coded library search path?
7710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7712 # How to hardcode a shared library path into an executable.
7713 hardcode_action=$hardcode_action
7715 # Whether we should hardcode library paths into libraries.
7716 hardcode_into_libs=$hardcode_into_libs
7718 # Flag to hardcode \$libdir into a binary during linking.
7719 # This must work even if \$libdir does not exist.
7720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7722 # Whether we need a single -rpath flag with a separated argument.
7723 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7725 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7727 hardcode_direct=$hardcode_direct
7729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7731 hardcode_minus_L=$hardcode_minus_L
7733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7734 # the resulting binary.
7735 hardcode_shlibpath_var=$hardcode_shlibpath_var
7737 # Variables whose values should be saved in libtool wrapper scripts and
7738 # restored at relink time.
7739 variables_saved_for_relink="$variables_saved_for_relink"
7741 # Whether libtool must link a program against all its dependency libraries.
7742 link_all_deplibs=$link_all_deplibs
7744 # Compile-time system search path for libraries
7745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7747 # Run-time system search path for libraries
7748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7750 # Fix the shell variable \$srcfile for the compiler.
7751 fix_srcfile_path="$fix_srcfile_path"
7753 # Set to yes if exported symbols are required.
7754 always_export_symbols=$always_export_symbols
7756 # The commands to list exported symbols.
7757 export_symbols_cmds=$lt_export_symbols_cmds
7759 # The commands to extract the exported symbol list from a shared archive.
7760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7762 # Symbols that should not be listed in the preloaded symbols.
7763 exclude_expsyms=$lt_exclude_expsyms
7765 # Symbols that must always be exported.
7766 include_expsyms=$lt_include_expsyms
7768 # ### END LIBTOOL CONFIG
7774 cat <<\EOF >> "${ofile}T"
7776 # AIX sometimes has problems with the GCC collect2 program. For some
7777 # reason, if we set the COLLECT_NAMES environment variable, the problems
7778 # vanish in a puff of smoke.
7779 if test "X${COLLECT_NAMES+set}" != Xset; then
7781 export COLLECT_NAMES
7788 cygwin* | mingw* | pw32* | os2*)
7789 cat <<'EOF' >> "${ofile}T"
7790 # This is a source program that is used to create dlls on Windows
7791 # Don't remove nor modify the starting and closing comments
7792 # /* ltdll.c starts here */
7793 # #define WIN32_LEAN_AND_MEAN
7794 # #include <windows.h>
7795 # #undef WIN32_LEAN_AND_MEAN
7796 # #include <stdio.h>
7798 # #ifndef __CYGWIN__
7799 # # ifdef __CYGWIN32__
7800 # # define __CYGWIN__ __CYGWIN32__
7804 # #ifdef __cplusplus
7807 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7808 # #ifdef __cplusplus
7813 # #include <cygwin/cygwin_dll.h>
7814 # DECLARE_CYGWIN_DLL( DllMain );
7816 # HINSTANCE __hDllInstance_base;
7819 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7821 # __hDllInstance_base = hInst;
7824 # /* ltdll.c ends here */
7825 # This is a source program that is used to create import libraries
7826 # on Windows for dlls which lack them. Don't remove nor modify the
7827 # starting and closing comments
7828 # /* impgen.c starts here */
7829 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7831 # This file is part of GNU libtool.
7833 # This program is free software; you can redistribute it and/or modify
7834 # it under the terms of the GNU General Public License as published by
7835 # the Free Software Foundation; either version 2 of the License, or
7836 # (at your option) any later version.
7838 # This program is distributed in the hope that it will be useful,
7839 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7840 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7841 # GNU General Public License for more details.
7843 # You should have received a copy of the GNU General Public License
7844 # along with this program; if not, write to the Free Software
7845 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7848 # #include <stdio.h> /* for printf() */
7849 # #include <unistd.h> /* for open(), lseek(), read() */
7850 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7851 # #include <string.h> /* for strdup() */
7853 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7855 # #define O_BINARY 0
7858 # static unsigned int
7859 # pe_get16 (fd, offset)
7863 # unsigned char b[2];
7864 # lseek (fd, offset, SEEK_SET);
7866 # return b[0] + (b[1]<<8);
7869 # static unsigned int
7870 # pe_get32 (fd, offset)
7874 # unsigned char b[4];
7875 # lseek (fd, offset, SEEK_SET);
7877 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7880 # static unsigned int
7884 # unsigned char *b = ptr;
7885 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7894 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7895 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7896 # unsigned long name_rvas, nexp;
7897 # unsigned char *expdata, *erva;
7898 # char *filename, *dll_name;
7900 # filename = argv[1];
7902 # dll = open(filename, O_RDONLY|O_BINARY);
7906 # dll_name = filename;
7908 # for (i=0; filename[i]; i++)
7909 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7910 # dll_name = filename + i +1;
7912 # pe_header_offset = pe_get32 (dll, 0x3c);
7913 # opthdr_ofs = pe_header_offset + 4 + 20;
7914 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7916 # if (num_entries < 1) /* no exports */
7919 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7920 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7921 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7922 # secptr = (pe_header_offset + 4 + 20 +
7923 # pe_get16 (dll, pe_header_offset + 4 + 16));
7926 # for (i = 0; i < nsections; i++)
7929 # unsigned long secptr1 = secptr + 40 * i;
7930 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7931 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7932 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7933 # lseek(dll, secptr1, SEEK_SET);
7934 # read(dll, sname, 8);
7935 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7937 # expptr = fptr + (export_rva - vaddr);
7938 # if (export_rva + export_size > vaddr + vsize)
7939 # export_size = vsize - (export_rva - vaddr);
7944 # expdata = (unsigned char*)malloc(export_size);
7945 # lseek (dll, expptr, SEEK_SET);
7946 # read (dll, expdata, export_size);
7947 # erva = expdata - export_rva;
7949 # nexp = pe_as32 (expdata+24);
7950 # name_rvas = pe_as32 (expdata+32);
7952 # printf ("EXPORTS\n");
7953 # for (i = 0; i<nexp; i++)
7955 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7956 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7961 # /* impgen.c ends here */
7967 # We use sed instead of cat because bash on DJGPP gets confused if
7968 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7969 # text mode, it properly converts lines to CR/LF. This bash problem
7970 # is reportedly fixed, but why not run on old versions too?
7971 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7973 mv -f "${ofile}T" "$ofile" || \
7974 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7982 # This can be used to rebuild libtool when needed
7983 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7985 # Always use our own libtool.
7986 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7988 # Prevent multiple expansion
7992 # test for ln hardlink support
7993 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7994 echo "configure:7995: checking whether ln works" >&5
7995 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 rm -f conftest.src conftest.dst
7999 echo "conftest" > conftest.src
8000 if ln conftest.src conftest.dst 2>/dev/null
8002 ol_cv_prog_LN_H="ln"
8004 ol_cv_prog_LN_H="cp"
8006 rm -f conftest.src conftest.dst
8009 LN_H="$ol_cv_prog_LN_H"
8010 if test "$ol_cv_prog_LN_H" = "ln"; then
8011 echo "$ac_t""yes" 1>&6
8013 echo "$ac_t""no" 1>&6
8016 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8017 echo "configure:8018: checking whether ln -s works" >&5
8018 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8022 if ln -s X conftestdata 2>/dev/null
8025 ac_cv_prog_LN_S="ln -s"
8030 LN_S="$ac_cv_prog_LN_S"
8031 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8032 echo "$ac_t""yes" 1>&6
8034 echo "$ac_t""no" 1>&6
8039 if test $ol_enable_perl != no ; then
8040 # Extract the first word of "perl", so it can be a program name with args.
8041 set dummy perl; ac_word=$2
8042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8043 echo "configure:8044: checking for $ac_word" >&5
8044 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8049 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
8052 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
8055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8057 for ac_dir in $ac_dummy; do
8058 test -z "$ac_dir" && ac_dir=.
8059 if test -f $ac_dir/$ac_word; then
8060 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
8065 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
8069 PERLBIN="$ac_cv_path_PERLBIN"
8070 if test -n "$PERLBIN"; then
8071 echo "$ac_t""$PERLBIN" 1>&6
8073 echo "$ac_t""no" 1>&6
8077 if test "no$PERLBIN" = "no" ; then
8078 if test $ol_enable_perl = yes ; then
8079 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
8083 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
8084 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
8086 if test x"$ol_with_perl_module" = "xstatic" ; then
8087 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
8089 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
8095 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8096 echo "configure:8097: checking how to run the C preprocessor" >&5
8097 # On Suns, sometimes $CPP names a directory.
8098 if test -n "$CPP" && test -d "$CPP"; then
8101 if test -z "$CPP"; then
8102 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 # This must be in double quotes, not single quotes, because CPP may get
8106 # substituted into the Makefile and "${CC-cc}" will confuse make.
8108 # On the NeXT, cc -E runs the code through the compiler's parser,
8109 # not just through cpp.
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8117 { (eval echo configure:8118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8119 if test -z "$ac_err"; then
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 CPP="${CC-cc} -E -traditional-cpp"
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8134 { (eval echo configure:8135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8136 if test -z "$ac_err"; then
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 CPP="${CC-cc} -nologo -E"
8144 cat > conftest.$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8151 { (eval echo configure:8152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8153 if test -z "$ac_err"; then
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8167 ac_cv_prog_CPP="$CPP"
8169 CPP="$ac_cv_prog_CPP"
8171 ac_cv_prog_CPP="$CPP"
8173 echo "$ac_t""$CPP" 1>&6
8177 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8178 echo "configure:8179: checking for Cygwin environment" >&5
8179 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8180 echo $ac_n "(cached) $ac_c" 1>&6
8182 cat > conftest.$ac_ext <<EOF
8183 #line 8184 "configure"
8184 #include "confdefs.h"
8189 #define __CYGWIN__ __CYGWIN32__
8194 if { (eval echo configure:8195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8206 echo "$ac_t""$ac_cv_cygwin" 1>&6
8208 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8209 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8210 echo "configure:8211: checking for mingw32 environment" >&5
8211 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8212 echo $ac_n "(cached) $ac_c" 1>&6
8214 cat > conftest.$ac_ext <<EOF
8215 #line 8216 "configure"
8216 #include "confdefs.h"
8222 if { (eval echo configure:8223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8234 echo "$ac_t""$ac_cv_mingw32" 1>&6
8236 test "$ac_cv_mingw32" = yes && MINGW32=yes
8240 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8241 echo "configure:8242: checking for executable suffix" >&5
8242 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8243 echo $ac_n "(cached) $ac_c" 1>&6
8245 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8249 echo 'int main () { return 0; }' > conftest.$ac_ext
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8252 for file in conftest.*; do
8254 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8255 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8259 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8262 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8267 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8268 echo "$ac_t""${ac_cv_exeext}" 1>&6
8271 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8272 echo "configure:8273: checking for object suffix" >&5
8273 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8277 echo 'int i = 1;' > conftest.$ac_ext
8278 if { (eval echo configure:8279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8279 for ac_file in conftest.*; do
8282 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8286 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8291 echo "$ac_t""$ac_cv_objext" 1>&6
8292 OBJEXT=$ac_cv_objext
8293 ac_objext=$ac_cv_objext
8296 cat >> confdefs.h <<EOF
8297 #define EXEEXT "${EXEEXT}"
8301 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8302 echo "configure:8303: checking for be_app in -lbe" >&5
8303 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8304 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8305 echo $ac_n "(cached) $ac_c" 1>&6
8307 ac_save_LIBS="$LIBS"
8308 LIBS="-lbe -lroot -lnet $LIBS"
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8312 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8323 eval "ac_cv_lib_$ac_lib_var=yes"
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8328 eval "ac_cv_lib_$ac_lib_var=no"
8331 LIBS="$ac_save_LIBS"
8334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8335 echo "$ac_t""yes" 1>&6
8336 LIBS="$LIBS -lbe -lroot -lnet"
8338 echo "$ac_t""no" 1>&6
8346 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8347 echo "configure:8348: checking for ${CC-cc} option to accept ANSI C" >&5
8348 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8351 am_cv_prog_cc_stdc=no
8353 # Don't try gcc -ansi; that turns off useful extensions and
8354 # breaks some systems' header files.
8355 # AIX -qlanglvl=ansi
8356 # Ultrix and OSF/1 -std1
8357 # HP-UX 10.20 and later -Ae
8358 # HP-UX older versions -Aa -D_HPUX_SOURCE
8359 # SVR4 -Xc -D__EXTENSIONS__
8360 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8362 CC="$ac_save_CC $ac_arg"
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8368 #include <sys/types.h>
8369 #include <sys/stat.h>
8370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8371 struct buf { int x; };
8372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8373 static char *e (p, i)
8379 static char *f (char * (*g) (char **, int), char **p, ...)
8384 s = g (p, va_arg (v,int));
8388 int test (int i, double x);
8389 struct s1 {int (*f) (int a);};
8390 struct s2 {int (*f) (double a);};
8391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8397 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8401 if { (eval echo configure:8402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8403 am_cv_prog_cc_stdc="$ac_arg"; break
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8414 if test -z "$am_cv_prog_cc_stdc"; then
8415 echo "$ac_t""none needed" 1>&6
8417 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8419 case "x$am_cv_prog_cc_stdc" in
8421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8424 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8425 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8428 # test for make depend flag
8431 if test -z "${MKDEP}"; then
8433 if test -z "${MKDEP_FLAGS}"; then
8434 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8435 echo "configure:8436: checking for ${OL_MKDEP} depend flag" >&5
8436 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8441 for flag in "-M" "-xM"; do
8442 cat > conftest.c <<EOF
8445 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8446 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8448 if test ! -f conftest."${ac_object}" ; then
8450 OL_MKDEP_FLAGS="$flag"
8459 echo "$ac_t""$ol_cv_mkdep" 1>&6
8462 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8467 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8472 if test "${ol_cv_mkdep}" = no ; then
8473 # this will soon become an error
8474 echo "configure: warning: do not know how to generate dependencies" 1>&2
8477 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8478 echo "configure:8479: checking for afopen in -ls" >&5
8479 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8480 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8483 ac_save_LIBS="$LIBS"
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8497 if { (eval echo configure:8498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8499 eval "ac_cv_lib_$ac_lib_var=yes"
8501 echo "configure: failed program was:" >&5
8502 cat conftest.$ac_ext >&5
8504 eval "ac_cv_lib_$ac_lib_var=no"
8507 LIBS="$ac_save_LIBS"
8510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8514 cat >> confdefs.h <<\EOF
8515 #define HAVE_AIX_SECURITY 1
8520 echo "$ac_t""no" 1>&6
8526 ac_cv_func_getopt=no
8527 cat >> confdefs.h <<\EOF
8528 #define BOTH_STRINGS_H 1
8535 if test $ol_enable_modules != no ; then
8536 for ac_hdr in ltdl.h
8538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8540 echo "configure:8541: checking for $ac_hdr" >&5
8541 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8550 { (eval echo configure:8551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8552 if test -z "$ac_err"; then
8554 eval "ac_cv_header_$ac_safe=yes"
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 eval "ac_cv_header_$ac_safe=no"
8564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8565 echo "$ac_t""yes" 1>&6
8566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8567 cat >> confdefs.h <<EOF
8568 #define $ac_tr_hdr 1
8572 echo "$ac_t""no" 1>&6
8577 if test $ac_cv_header_ltdl_h = no ; then
8578 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8581 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8582 echo "configure:8583: checking for lt_dlinit in -lltdl" >&5
8583 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8587 ac_save_LIBS="$LIBS"
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_lib_$ac_lib_var=no"
8611 LIBS="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8618 cat >> confdefs.h <<\EOF
8619 #define HAVE_LIBLTDL 1
8624 echo "$ac_t""no" 1>&6
8628 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8629 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8633 ol_with_bdb_module=static
8634 ol_with_dnssrv_module=static
8635 ol_with_hdb_module=static
8636 ol_with_ldap_module=static
8637 ol_with_ldbm_module=static
8638 ol_with_meta_module=static
8639 ol_with_monitor_module=static
8640 ol_with_null_module=static
8641 ol_with_passwd_module=static
8642 ol_with_perl_module=static
8643 ol_with_relay_module=static
8644 ol_with_shell_module=static
8645 ol_with_sql_module=static
8646 if test $ol_with_chain = mod ; then
8647 echo "configure: warning: building static chain overlay" 1>&2
8650 if test $ol_with_denyop = mod ; then
8651 echo "configure: warning: building static denyop overlay" 1>&2
8654 if test $ol_with_dyngroup = mod ; then
8655 echo "configure: warning: building static dyngroup overlay" 1>&2
8656 ol_with_dyngroup=yes
8658 if test $ol_with_ppolicy = mod ; then
8659 echo "configure: warning: building static ppolicy overlay" 1>&2
8662 if test $ol_with_proxycache = mod ; then
8663 echo "configure: warning: building static proxycache overlay" 1>&2
8664 ol_with_proxycache=yes
8666 if test $ol_with_rwm = mod ; then
8667 echo "configure: warning: building static rwm overlay" 1>&2
8673 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8674 echo "configure:8675: checking for EBCDIC" >&5
8675 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8676 echo $ac_n "(cached) $ac_c" 1>&6
8679 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure"
8681 #include "confdefs.h"
8684 #include <__ASCII__/generate_error.h>
8688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8689 { (eval echo configure:8690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8691 if test -z "$ac_err"; then
8693 ol_cv_cpp_ebcdic=yes
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8704 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8705 if test $ol_cv_cpp_ebcdic = yes ; then
8706 cat >> confdefs.h <<\EOF
8707 #define HAVE_EBCDIC 1
8712 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8713 echo "configure:8714: checking for ANSI C header files" >&5
8714 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8728 if test -z "$ac_err"; then
8730 ol_cv_header_stdc=yes
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 ol_cv_header_stdc=no
8740 if test $ol_cv_header_stdc = yes; then
8741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8742 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8748 egrep "memchr" >/dev/null 2>&1; then
8752 ol_cv_header_stdc=no
8758 if test $ol_cv_header_stdc = yes; then
8759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8766 egrep "free" >/dev/null 2>&1; then
8770 ol_cv_header_stdc=no
8776 if test $ol_cv_header_stdc = yes; then
8777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8778 if test "$cross_compiling" = yes; then
8781 cat > conftest.$ac_ext <<EOF
8782 #line 8783 "configure"
8783 #include "confdefs.h"
8786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8789 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8790 || ('j' <= (c) && (c) <= 'r') \
8791 || ('s' <= (c) && (c) <= 'z'))
8792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8795 int main () { int i; for (i = 0; i < 256; i++)
8796 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8800 if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8804 echo "configure: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8807 ol_cv_header_stdc=no
8815 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8816 if test $ol_cv_header_stdc = yes; then
8817 cat >> confdefs.h <<\EOF
8818 #define STDC_HEADERS 1
8822 ac_cv_header_stdc=disable
8825 if test $ol_cv_header_stdc != yes; then
8826 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8830 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8833 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8834 echo "configure:8835: checking for $ac_hdr that defines DIR" >&5
8835 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 #include <sys/types.h>
8847 if { (eval echo configure:8848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8849 eval "ac_cv_header_dirent_$ac_safe=yes"
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8854 eval "ac_cv_header_dirent_$ac_safe=no"
8858 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8859 echo "$ac_t""yes" 1>&6
8860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8861 cat >> confdefs.h <<EOF
8862 #define $ac_tr_hdr 1
8864 ac_header_dirent=$ac_hdr; break
8866 echo "$ac_t""no" 1>&6
8869 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8870 if test $ac_header_dirent = dirent.h; then
8871 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8872 echo "configure:8873: checking for opendir in -ldir" >&5
8873 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8877 ac_save_LIBS="$LIBS"
8879 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure"
8881 #include "confdefs.h"
8882 /* Override any gcc2 internal prototype to avoid an error. */
8883 /* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8893 eval "ac_cv_lib_$ac_lib_var=yes"
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 eval "ac_cv_lib_$ac_lib_var=no"
8901 LIBS="$ac_save_LIBS"
8904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8905 echo "$ac_t""yes" 1>&6
8908 echo "$ac_t""no" 1>&6
8912 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8913 echo "configure:8914: checking for opendir in -lx" >&5
8914 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8918 ac_save_LIBS="$LIBS"
8920 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8923 /* Override any gcc2 internal prototype to avoid an error. */
8924 /* We use char because int might match the return type of a gcc2
8925 builtin and then its argument prototype would still apply. */
8932 if { (eval echo configure:8933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8934 eval "ac_cv_lib_$ac_lib_var=yes"
8936 echo "configure: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8939 eval "ac_cv_lib_$ac_lib_var=no"
8942 LIBS="$ac_save_LIBS"
8945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8946 echo "$ac_t""yes" 1>&6
8949 echo "$ac_t""no" 1>&6
8954 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8955 echo "configure:8956: checking for sys/wait.h that is POSIX.1 compatible" >&5
8956 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8959 cat > conftest.$ac_ext <<EOF
8960 #line 8961 "configure"
8961 #include "confdefs.h"
8962 #include <sys/types.h>
8963 #include <sys/wait.h>
8965 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8968 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8973 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8976 if { (eval echo configure:8977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8978 ac_cv_header_sys_wait_h=yes
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 ac_cv_header_sys_wait_h=no
8988 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8989 if test $ac_cv_header_sys_wait_h = yes; then
8990 cat >> confdefs.h <<\EOF
8991 #define HAVE_SYS_WAIT_H 1
8996 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8997 echo "configure:8998: checking POSIX termios" >&5
8998 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 #include <sys/types.h>
9006 #include <termios.h>
9008 /* SunOS 4.0.3 has termios.h but not the library calls. */
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9014 am_cv_sys_posix_termios=yes
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9019 am_cv_sys_posix_termios=no
9024 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9027 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9028 echo "configure:9029: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9029 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9032 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9034 gwinsz_in_termios_h=no
9035 if test $am_cv_sys_posix_termios = yes; then
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 #include <sys/types.h>
9040 # include <termios.h>
9046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9047 egrep "yes" >/dev/null 2>&1; then
9049 gwinsz_in_termios_h=yes
9055 if test $gwinsz_in_termios_h = no; then
9056 cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059 #include <sys/types.h>
9060 # include <sys/ioctl.h>
9066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9067 egrep "yes" >/dev/null 2>&1; then
9069 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9077 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9078 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9079 cat >> confdefs.h <<\EOF
9080 #define GWINSZ_IN_SYS_IOCTL 1
9085 if test $am_cv_sys_posix_termios = yes ; then
9086 cat >> confdefs.h <<\EOF
9087 #define HAVE_POSIX_TERMIOS 1
9143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9145 echo "configure:9146: checking for $ac_hdr" >&5
9146 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9149 cat > conftest.$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9155 { (eval echo configure:9156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9157 if test -z "$ac_err"; then
9159 eval "ac_cv_header_$ac_safe=yes"
9162 echo "configure: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 eval "ac_cv_header_$ac_safe=no"
9169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9170 echo "$ac_t""yes" 1>&6
9171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9172 cat >> confdefs.h <<EOF
9173 #define $ac_tr_hdr 1
9177 echo "$ac_t""no" 1>&6
9184 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9185 echo "configure:9186: checking for sigset in -lV3" >&5
9186 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9187 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9190 ac_save_LIBS="$LIBS"
9192 cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9195 /* Override any gcc2 internal prototype to avoid an error. */
9196 /* We use char because int might match the return type of a gcc2
9197 builtin and then its argument prototype would still apply. */
9204 if { (eval echo configure:9205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9206 eval "ac_cv_lib_$ac_lib_var=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 eval "ac_cv_lib_$ac_lib_var=no"
9214 LIBS="$ac_save_LIBS"
9217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9218 echo "$ac_t""yes" 1>&6
9219 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9221 cat >> confdefs.h <<EOF
9222 #define $ac_tr_lib 1
9228 echo "$ac_t""no" 1>&6
9232 if test "$ac_cv_header_winsock_h" = yes; then
9233 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9234 echo "configure:9235: checking for winsock" >&5
9235 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9239 for curlib in ws2_32 wsock32; do
9240 LIBS="$LIBS -l$curlib"
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9244 #include <winsock.h>
9249 select(0,NULL,NULL,NULL,NULL);
9251 gethostname(NULL,0);
9255 if { (eval echo configure:9256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9266 if test $ol_cv_winsock = yes; then
9267 cat >> confdefs.h <<\EOF
9268 #define HAVE_WINSOCK 1
9271 ac_cv_func_socket=yes
9272 ac_cv_func_select=yes
9273 ac_cv_func_closesocket=yes
9274 ac_cv_func_gethostname=yes
9275 if test $curlib = ws2_32; then
9276 ol_cv_winsock=winsock2
9277 cat >> confdefs.h <<\EOF
9278 #define HAVE_WINSOCK2 1
9288 echo "$ac_t""$ol_cv_winsock" 1>&6
9292 echo $ac_n "checking for socket""... $ac_c" 1>&6
9293 echo "configure:9294: checking for socket" >&5
9294 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9300 /* System header to define __stub macros and hopefully few prototypes,
9301 which can conflict with char socket(); below. */
9303 /* Override any gcc2 internal prototype to avoid an error. */
9304 /* We use char because int might match the return type of a gcc2
9305 builtin and then its argument prototype would still apply. */
9311 /* The GNU C library defines this for functions which it implements
9312 to always fail with ENOSYS. Some functions are actually named
9313 something starting with __ and the normal name is an alias. */
9314 #if defined (__stub_socket) || defined (__stub___socket)
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9324 eval "ac_cv_func_socket=yes"
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9329 eval "ac_cv_func_socket=no"
9334 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9335 echo "$ac_t""yes" 1>&6
9338 echo "$ac_t""no" 1>&6
9340 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9341 echo "configure:9342: checking for main in -lsocket" >&5
9342 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9343 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9346 ac_save_LIBS="$LIBS"
9347 LIBS="-lsocket $LIBS"
9348 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure"
9350 #include "confdefs.h"
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9358 eval "ac_cv_lib_$ac_lib_var=yes"
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9363 eval "ac_cv_lib_$ac_lib_var=no"
9366 LIBS="$ac_save_LIBS"
9369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9370 echo "$ac_t""yes" 1>&6
9371 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9372 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9373 cat >> confdefs.h <<EOF
9374 #define $ac_tr_lib 1
9377 LIBS="-lsocket $LIBS"
9380 echo "$ac_t""no" 1>&6
9383 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9384 echo "configure:9385: checking for main in -lnet" >&5
9385 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9389 ac_save_LIBS="$LIBS"
9391 cat > conftest.$ac_ext <<EOF
9392 #line 9393 "configure"
9393 #include "confdefs.h"
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9401 eval "ac_cv_lib_$ac_lib_var=yes"
9403 echo "configure: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9406 eval "ac_cv_lib_$ac_lib_var=no"
9409 LIBS="$ac_save_LIBS"
9412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9413 echo "$ac_t""yes" 1>&6
9414 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9416 cat >> confdefs.h <<EOF
9417 #define $ac_tr_lib 1
9423 echo "$ac_t""no" 1>&6
9426 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9427 echo "configure:9428: checking for main in -lnsl_s" >&5
9428 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9429 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9432 ac_save_LIBS="$LIBS"
9433 LIBS="-lnsl_s $LIBS"
9434 cat > conftest.$ac_ext <<EOF
9435 #line 9436 "configure"
9436 #include "confdefs.h"
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9444 eval "ac_cv_lib_$ac_lib_var=yes"
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9449 eval "ac_cv_lib_$ac_lib_var=no"
9452 LIBS="$ac_save_LIBS"
9455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9456 echo "$ac_t""yes" 1>&6
9457 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9459 cat >> confdefs.h <<EOF
9460 #define $ac_tr_lib 1
9463 LIBS="-lnsl_s $LIBS"
9466 echo "$ac_t""no" 1>&6
9469 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9470 echo "configure:9471: checking for main in -lnsl" >&5
9471 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9472 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9475 ac_save_LIBS="$LIBS"
9477 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure"
9479 #include "confdefs.h"
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_lib_$ac_lib_var=yes"
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9492 eval "ac_cv_lib_$ac_lib_var=no"
9495 LIBS="$ac_save_LIBS"
9498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9499 echo "$ac_t""yes" 1>&6
9500 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9502 cat >> confdefs.h <<EOF
9503 #define $ac_tr_lib 1
9509 echo "$ac_t""no" 1>&6
9512 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9513 echo "configure:9514: checking for socket in -linet" >&5
9514 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9515 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9516 echo $ac_n "(cached) $ac_c" 1>&6
9518 ac_save_LIBS="$LIBS"
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 /* Override any gcc2 internal prototype to avoid an error. */
9524 /* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9532 if { (eval echo configure:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9534 eval "ac_cv_lib_$ac_lib_var=yes"
9536 echo "configure: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9539 eval "ac_cv_lib_$ac_lib_var=no"
9542 LIBS="$ac_save_LIBS"
9545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9546 echo "$ac_t""yes" 1>&6
9547 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9549 cat >> confdefs.h <<EOF
9550 #define $ac_tr_lib 1
9556 echo "$ac_t""no" 1>&6
9559 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9560 echo "configure:9561: checking for main in -lgen" >&5
9561 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9562 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9565 ac_save_LIBS="$LIBS"
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9577 eval "ac_cv_lib_$ac_lib_var=yes"
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9582 eval "ac_cv_lib_$ac_lib_var=no"
9585 LIBS="$ac_save_LIBS"
9588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9592 cat >> confdefs.h <<EOF
9593 #define $ac_tr_lib 1
9599 echo "$ac_t""no" 1>&6
9606 echo $ac_n "checking for select""... $ac_c" 1>&6
9607 echo "configure:9608: checking for select" >&5
9608 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9609 echo $ac_n "(cached) $ac_c" 1>&6
9611 cat > conftest.$ac_ext <<EOF
9612 #line 9613 "configure"
9613 #include "confdefs.h"
9614 /* System header to define __stub macros and hopefully few prototypes,
9615 which can conflict with char select(); below. */
9617 /* Override any gcc2 internal prototype to avoid an error. */
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9625 /* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628 #if defined (__stub_select) || defined (__stub___select)
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9638 eval "ac_cv_func_select=yes"
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9643 eval "ac_cv_func_select=no"
9648 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9649 echo "$ac_t""yes" 1>&6
9652 echo "$ac_t""no" 1>&6
9653 { echo "configure: error: select() required." 1>&2; exit 1; }
9657 if test "${ac_cv_header_winsock_h}" != yes; then
9658 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9659 echo "configure:9660: checking types of arguments for select()" >&5
9660 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9661 echo $ac_n "(cached) $ac_c" 1>&6
9663 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9666 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9669 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9670 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9671 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9672 cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure"
9674 #include "confdefs.h"
9675 #ifdef HAVE_SYS_TYPES_H
9676 #include <sys/types.h>
9678 #ifdef HAVE_SYS_TIME_H
9679 #include <sys/time.h>
9681 #ifdef HAVE_SYS_SELECT_H
9682 #include <sys/select.h>
9684 #ifdef HAVE_SYS_SOCKET_H
9685 #include <sys/socket.h>
9687 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);
9692 if { (eval echo configure:9693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9694 ac_not_found=no ; break 3
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9711 if test "$ac_not_found" = yes; then
9712 ac_cv_func_select_arg1=int
9713 ac_cv_func_select_arg234='int *'
9714 ac_cv_func_select_arg5='struct timeval *'
9716 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9717 cat >> confdefs.h <<EOF
9718 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9721 cat >> confdefs.h <<EOF
9722 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9725 cat >> confdefs.h <<EOF
9726 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9733 for ac_hdr in regex.h
9735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9737 echo "configure:9738: checking for $ac_hdr" >&5
9738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9747 { (eval echo configure:9748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9749 if test -z "$ac_err"; then
9751 eval "ac_cv_header_$ac_safe=yes"
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9757 eval "ac_cv_header_$ac_safe=no"
9761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9764 cat >> confdefs.h <<EOF
9765 #define $ac_tr_hdr 1
9769 echo "$ac_t""no" 1>&6
9773 if test "$ac_cv_header_regex_h" != yes ; then
9774 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9777 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9778 echo "configure:9779: checking for library containing regfree" >&5
9779 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9782 ac_func_search_save_LIBS="$LIBS"
9783 ac_cv_search_regfree="no"
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9787 /* Override any gcc2 internal prototype to avoid an error. */
9788 /* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9798 ac_cv_search_regfree="none required"
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9804 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 /* Override any gcc2 internal prototype to avoid an error. */
9810 /* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9820 ac_cv_search_regfree="-l$ac_lib"
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9828 LIBS="$ac_func_search_save_LIBS"
9831 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9832 if test "$ac_cv_search_regfree" != "no"; then
9833 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9836 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9840 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9841 echo "configure:9842: checking for compatible POSIX regex" >&5
9842 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9843 echo $ac_n "(cached) $ac_c" 1>&6
9846 if test "$cross_compiling" = yes; then
9847 ol_cv_c_posix_regex=cross
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9853 #include <sys/types.h>
9855 static char *pattern, *string;
9863 if(regcomp(&re, pattern, 0)) {
9867 string = "ALL MATCH";
9869 rc = regexec(&re, string, 0, (void*)0, 0);
9876 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9878 ol_cv_c_posix_regex=yes
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9883 ol_cv_c_posix_regex=no
9890 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9892 if test "$ol_cv_c_posix_regex" = no ; then
9893 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9898 for ac_hdr in sys/uuid.h
9900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9902 echo "configure:9903: checking for $ac_hdr" >&5
9903 if eval "test \"\${ac_cv_header_$ac_safe+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"
9911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9912 { (eval echo configure:9913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9914 if test -z "$ac_err"; then
9916 eval "ac_cv_header_$ac_safe=yes"
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9922 eval "ac_cv_header_$ac_safe=no"
9926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9929 cat >> confdefs.h <<EOF
9930 #define $ac_tr_hdr 1
9934 echo "$ac_t""no" 1>&6
9938 if test $ac_cv_header_sys_uuid_h = yes ; then
9941 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9942 echo "configure:9943: checking for library containing uuid_to_str" >&5
9943 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9944 echo $ac_n "(cached) $ac_c" 1>&6
9946 ac_func_search_save_LIBS="$LIBS"
9947 ac_cv_search_uuid_to_str="no"
9948 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 ac_cv_search_uuid_to_str="none required"
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9968 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 ac_cv_search_uuid_to_str="-l$ac_lib"
9987 echo "configure: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9992 LIBS="$ac_func_search_save_LIBS"
9995 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9996 if test "$ac_cv_search_uuid_to_str" != "no"; then
9997 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10004 if test have_uuid = yes ; then
10005 cat >> confdefs.h <<\EOF
10006 #define HAVE_UUID_TO_STR 1
10010 test "$ac_cv_search_uuid_to_str" = "none required" || \
10011 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10015 if test $have_uuid = no ; then
10016 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10017 echo "configure:10018: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10019 LIBS="$LIBS -lrpcrt4"
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10024 int __stdcall UuidCreate(void *);
10025 int __stdcall UuidToStringA(void *,void **);
10030 UuidToStringA(0,0);
10034 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10044 if test $need_rpcrt = yes; then
10045 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10048 echo "$ac_t""$need_rpcrt" 1>&6
10052 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10053 echo "configure:10054: checking for res_query" >&5
10054 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10057 cat > conftest.$ac_ext <<EOF
10058 #line 10059 "configure"
10059 #include "confdefs.h"
10060 /* System header to define __stub macros and hopefully few prototypes,
10061 which can conflict with char res_query(); below. */
10062 #include <assert.h>
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_res_query) || defined (__stub___res_query)
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084 eval "ac_cv_func_res_query=yes"
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10089 eval "ac_cv_func_res_query=no"
10094 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10098 echo "$ac_t""no" 1>&6
10101 if test $ac_cv_func_res_query = no ; then
10102 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10103 echo "configure:10104: checking for __res_query" >&5
10104 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10105 echo $ac_n "(cached) $ac_c" 1>&6
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 /* System header to define __stub macros and hopefully few prototypes,
10111 which can conflict with char __res_query(); below. */
10112 #include <assert.h>
10113 /* Override any gcc2 internal prototype to avoid an error. */
10114 /* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10116 char __res_query();
10121 /* The GNU C library defines this for functions which it implements
10122 to always fail with ENOSYS. Some functions are actually named
10123 something starting with __ and the normal name is an alias. */
10124 #if defined (__stub___res_query) || defined (__stub_____res_query)
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10134 eval "ac_cv_func___res_query=yes"
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10139 eval "ac_cv_func___res_query=no"
10144 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10145 echo "$ac_t""yes" 1>&6
10148 echo "$ac_t""no" 1>&6
10151 ac_cv_func_res_query=$ac_cv_func___res_query
10154 if test $ac_cv_func_res_query = no ; then
10155 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10156 echo "configure:10157: checking for res_query in -lbind" >&5
10157 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10158 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10161 ac_save_LIBS="$LIBS"
10162 LIBS="-lbind $LIBS"
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 eval "ac_cv_lib_$ac_lib_var=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_lib_$ac_lib_var=no"
10185 LIBS="$ac_save_LIBS"
10188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10192 cat >> confdefs.h <<EOF
10193 #define $ac_tr_lib 1
10196 LIBS="-lbind $LIBS"
10199 echo "$ac_t""no" 1>&6
10202 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10205 if test $ac_cv_func_res_query = no ; then
10206 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10207 echo "configure:10208: checking for __res_query in -lbind" >&5
10208 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10209 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10212 ac_save_LIBS="$LIBS"
10213 LIBS="-lbind $LIBS"
10214 cat > conftest.$ac_ext <<EOF
10215 #line 10216 "configure"
10216 #include "confdefs.h"
10217 /* Override any gcc2 internal prototype to avoid an error. */
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220 char __res_query();
10226 if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10228 eval "ac_cv_lib_$ac_lib_var=yes"
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10233 eval "ac_cv_lib_$ac_lib_var=no"
10236 LIBS="$ac_save_LIBS"
10239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10240 echo "$ac_t""yes" 1>&6
10241 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10243 cat >> confdefs.h <<EOF
10244 #define $ac_tr_lib 1
10247 LIBS="-lbind $LIBS"
10250 echo "$ac_t""no" 1>&6
10253 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10256 if test $ac_cv_func_res_query = no ; then
10257 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10258 echo "configure:10259: checking for res_query in -lresolv" >&5
10259 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10263 ac_save_LIBS="$LIBS"
10264 LIBS="-lresolv $LIBS"
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10267 "configure"
10267 #include "confdefs.h"
10268 /* Override any gcc2 internal prototype to avoid an error. */
10269 /* We use char because int might match the return type of a gcc2
10270 builtin and then its argument prototype would still apply. */
10277 if { (eval echo configure:10278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10279 eval "ac_cv_lib_$ac_lib_var=yes"
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10284 eval "ac_cv_lib_$ac_lib_var=no"
10287 LIBS="$ac_save_LIBS"
10290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10294 cat >> confdefs.h <<EOF
10295 #define $ac_tr_lib 1
10298 LIBS="-lresolv $LIBS"
10301 echo "$ac_t""no" 1>&6
10304 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10307 if test $ac_cv_func_res_query = no ; then
10308 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10309 echo "configure:10310: checking for __res_query in -lresolv" >&5
10310 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10312 echo $ac_n "(cached) $ac_c" 1>&6
10314 ac_save_LIBS="$LIBS"
10315 LIBS="-lresolv $LIBS"
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 /* Override any gcc2 internal prototype to avoid an error. */
10320 /* We use char because int might match the return type of a gcc2
10321 builtin and then its argument prototype would still apply. */
10322 char __res_query();
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330 eval "ac_cv_lib_$ac_lib_var=yes"
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10335 eval "ac_cv_lib_$ac_lib_var=no"
10338 LIBS="$ac_save_LIBS"
10341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10345 cat >> confdefs.h <<EOF
10346 #define $ac_tr_lib 1
10349 LIBS="-lresolv $LIBS"
10352 echo "$ac_t""no" 1>&6
10355 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10358 if test "$ac_cv_func_res_query" = yes ; then
10359 cat >> confdefs.h <<\EOF
10360 #define HAVE_RES_QUERY 1
10364 if test $ol_enable_dnssrv != no ; then
10369 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10370 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10373 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10376 echo "configure:10377: checking for $ac_func" >&5
10377 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 cat > conftest.$ac_ext <<EOF
10381 #line 10382 "configure"
10382 #include "confdefs.h"
10383 /* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func(); below. */
10385 #include <assert.h>
10386 /* Override any gcc2 internal prototype to avoid an error. */
10387 /* We use char because int might match the return type of a gcc2
10388 builtin and then its argument prototype would still apply. */
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407 eval "ac_cv_func_$ac_func=yes"
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 eval "ac_cv_func_$ac_func=no"
10417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10418 echo "$ac_t""yes" 1>&6
10419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10420 cat >> confdefs.h <<EOF
10421 #define $ac_tr_func 1
10425 echo "$ac_t""no" 1>&6
10431 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10432 if test $ol_enable_ipv6 = yes ; then
10433 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10435 elif test $ol_enable_ipv6 != no ; then
10436 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10437 echo "configure:10438: checking INET6_ADDRSTRLEN" >&5
10438 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10446 # include <netinet/in.h>
10447 # ifdef INET6_ADDRSTRLEN
10448 __has_inet6_addrstrlen__;
10452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10453 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10455 ol_cv_inet6_addrstrlen=yes
10458 ol_cv_inet6_addrstrlen=no
10464 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10467 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10468 echo "configure:10469: checking struct sockaddr_storage" >&5
10469 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10477 #include <sys/types.h>
10478 #include <sys/socket.h>
10482 struct sockaddr_storage ss;
10486 if { (eval echo configure:10487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10488 ol_cv_struct_sockaddr_storage=yes
10490 echo "configure: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10493 ol_cv_struct_sockaddr_storage=no
10498 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10500 if test $ol_cv_inet6_addrstrlen = yes \
10501 -a $ol_cv_struct_sockaddr_storage = yes ; then
10503 elif test $ol_enable_ipv6 = yes \
10504 -a $ol_cv_inet6_addrstrlen = no ; then
10505 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10506 elif test $ol_enable_ipv6 = yes \
10507 -a $ol_cv_struct_sockaddr_storage = no ; then
10508 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10512 if test $ol_enable_local != no ; then
10513 for ac_hdr in sys/un.h
10515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10517 echo "configure:10518: checking for $ac_hdr" >&5
10518 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10527 { (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10529 if test -z "$ac_err"; then
10531 eval "ac_cv_header_$ac_safe=yes"
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10537 eval "ac_cv_header_$ac_safe=no"
10541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10542 echo "$ac_t""yes" 1>&6
10543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10544 cat >> confdefs.h <<EOF
10545 #define $ac_tr_hdr 1
10549 echo "$ac_t""no" 1>&6
10554 if test $ol_enable_local = auto ; then
10555 ol_enable_local=$ac_cv_header_sys_un_h
10556 elif test $ac_cv_header_sys_un_h = no ; then
10557 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10565 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10566 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10567 -o $ol_with_kerberos = k425 ; then
10569 for ac_hdr in krb5.h
10571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10573 echo "configure:10574: checking for $ac_hdr" >&5
10574 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10583 { (eval echo configure:10584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10585 if test -z "$ac_err"; then
10587 eval "ac_cv_header_$ac_safe=yes"
10590 echo "configure: failed program was:" >&5
10591 cat conftest.$ac_ext >&5
10593 eval "ac_cv_header_$ac_safe=no"
10597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10598 echo "$ac_t""yes" 1>&6
10599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10600 cat >> confdefs.h <<EOF
10601 #define $ac_tr_hdr 1
10605 echo "$ac_t""no" 1>&6
10610 if test $ac_cv_header_krb5_h = yes ; then
10611 for ac_hdr in heim_err.h
10613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10615 echo "configure:10616: checking for $ac_hdr" >&5
10616 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10619 cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10625 { (eval echo configure:10626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10627 if test -z "$ac_err"; then
10629 eval "ac_cv_header_$ac_safe=yes"
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10635 eval "ac_cv_header_$ac_safe=no"
10639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10642 cat >> confdefs.h <<EOF
10643 #define $ac_tr_hdr 1
10647 echo "$ac_t""no" 1>&6
10651 if test $ac_cv_header_heim_err_h = yes ; then
10657 if test $krb5_impl = mit; then
10658 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10659 echo "configure:10660: checking for main in -lk5crypto" >&5
10660 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10661 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10664 ac_save_LIBS="$LIBS"
10665 LIBS="-lk5crypto $LIBS"
10666 cat > conftest.$ac_ext <<EOF
10667 #line 10668 "configure"
10668 #include "confdefs.h"
10674 if { (eval echo configure:10675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10676 eval "ac_cv_lib_$ac_lib_var=yes"
10678 echo "configure: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10681 eval "ac_cv_lib_$ac_lib_var=no"
10684 LIBS="$ac_save_LIBS"
10687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10688 echo "$ac_t""yes" 1>&6
10689 krb5crypto=k5crypto
10691 echo "$ac_t""no" 1>&6
10696 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10697 echo "configure:10698: checking for main in -lkrb5" >&5
10698 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10702 ac_save_LIBS="$LIBS"
10703 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10714 eval "ac_cv_lib_$ac_lib_var=yes"
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10719 eval "ac_cv_lib_$ac_lib_var=no"
10722 LIBS="$ac_save_LIBS"
10725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10726 echo "$ac_t""yes" 1>&6
10728 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10730 echo "$ac_t""no" 1>&6
10735 elif test $krb5_impl = heimdal; then
10736 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10737 echo "configure:10738: checking for main in -ldes" >&5
10738 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10742 ac_save_LIBS="$LIBS"
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10754 eval "ac_cv_lib_$ac_lib_var=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_lib_$ac_lib_var=no"
10762 LIBS="$ac_save_LIBS"
10765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10769 echo "$ac_t""no" 1>&6
10774 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10775 echo "configure:10776: checking for main in -lkrb5" >&5
10776 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10780 ac_save_LIBS="$LIBS"
10781 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10792 eval "ac_cv_lib_$ac_lib_var=yes"
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 eval "ac_cv_lib_$ac_lib_var=no"
10800 LIBS="$ac_save_LIBS"
10803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10804 echo "$ac_t""yes" 1>&6
10806 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10808 echo "$ac_t""no" 1>&6
10813 cat >> confdefs.h <<\EOF
10814 #define HAVE_HEIMDAL_KERBEROS 1
10820 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10823 if test $have_krb5 = yes ; then
10826 cat >> confdefs.h <<\EOF
10827 #define HAVE_KRB5 1
10831 if test $ol_with_kerberos = k5only ; then
10832 ol_with_kerberos=found
10835 elif test $ol_with_kerberos != auto ; then
10836 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10842 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10843 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10845 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10849 echo "configure:10850: checking for $ac_hdr" >&5
10850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10859 { (eval echo configure:10860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10861 if test -z "$ac_err"; then
10863 eval "ac_cv_header_$ac_safe=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_header_$ac_safe=no"
10873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10874 echo "$ac_t""yes" 1>&6
10875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10876 cat >> confdefs.h <<EOF
10877 #define $ac_tr_hdr 1
10881 echo "$ac_t""no" 1>&6
10886 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10887 if test $krb5_impl = mit; then
10888 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10889 echo "configure:10890: checking for main in -lkrb4" >&5
10890 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10891 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10894 ac_save_LIBS="$LIBS"
10895 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10896 cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10906 eval "ac_cv_lib_$ac_lib_var=yes"
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10911 eval "ac_cv_lib_$ac_lib_var=no"
10914 LIBS="$ac_save_LIBS"
10917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10920 KRB4_LIBS="-lkrb4 -ldes425"
10922 echo "$ac_t""no" 1>&6
10927 elif test $krb5_impl = heimdal; then
10928 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10929 echo "configure:10930: checking for main in -lkrb4" >&5
10930 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10932 echo $ac_n "(cached) $ac_c" 1>&6
10934 ac_save_LIBS="$LIBS"
10935 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 eval "ac_cv_lib_$ac_lib_var=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_lib_$ac_lib_var=no"
10954 LIBS="$ac_save_LIBS"
10957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10962 echo "$ac_t""no" 1>&6
10969 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10972 if test $have_k425 = yes ; then
10973 ol_with_kerberos=found
10976 cat >> confdefs.h <<\EOF
10977 #define HAVE_KRB425 1
10980 cat >> confdefs.h <<\EOF
10981 #define HAVE_KRB4 1
10985 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10986 echo "configure:10987: checking for des_debug in Kerberos libraries" >&5
10987 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10992 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10993 cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10997 #include <kerberosIV/krb.h>
10998 #include <kerberosIV/des.h>
10999 extern int des_debug;
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11009 ol_cv_var_des_debug=yes
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11014 ol_cv_var_des_debug=no
11021 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11023 if test $ol_cv_var_des_debug = yes ; then
11024 cat >> confdefs.h <<\EOF
11025 #define HAVE_DES_DEBUG 1
11035 if test $ol_link_krb5 = yes ; then
11036 ol_with_kerberos=found
11039 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11040 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11042 for ac_hdr in krb.h des.h krb-archaeology.h
11044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11046 echo "configure:11047: checking for $ac_hdr" >&5
11047 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058 if test -z "$ac_err"; then
11060 eval "ac_cv_header_$ac_safe=yes"
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 eval "ac_cv_header_$ac_safe=no"
11070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11073 cat >> confdefs.h <<EOF
11074 #define $ac_tr_hdr 1
11078 echo "$ac_t""no" 1>&6
11083 if test $ac_cv_header_krb_h = yes ; then
11084 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11085 echo "configure:11086: checking for main in -lkrb" >&5
11086 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11090 ac_save_LIBS="$LIBS"
11091 LIBS="-lkrb -ldes $LIBS"
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11102 eval "ac_cv_lib_$ac_lib_var=yes"
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 eval "ac_cv_lib_$ac_lib_var=no"
11110 LIBS="$ac_save_LIBS"
11113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11114 echo "$ac_t""yes" 1>&6
11117 echo "$ac_t""no" 1>&6
11122 if test $have_k4 = yes ; then
11123 ol_with_kerberos=found
11126 cat >> confdefs.h <<\EOF
11127 #define HAVE_KRB4 1
11131 KRB4_LIBS="-lkrb -ldes"
11133 if test $ac_cv_header_krb_archaeology_h = yes ; then
11134 cat >> confdefs.h <<\EOF
11135 #define HAVE_KTH_KERBEROS 1
11143 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11146 elif test $ol_enable_kbind = yes ; then
11147 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11150 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11151 cat >> confdefs.h <<\EOF
11152 #define HAVE_KERBEROS 1
11156 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11157 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11161 if test $ol_with_tls != no ; then
11162 for ac_hdr in openssl/ssl.h ssl.h
11164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11166 echo "configure:11167: checking for $ac_hdr" >&5
11167 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11176 { (eval echo configure:11177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11178 if test -z "$ac_err"; then
11180 eval "ac_cv_header_$ac_safe=yes"
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 eval "ac_cv_header_$ac_safe=no"
11190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11193 cat >> confdefs.h <<EOF
11194 #define $ac_tr_hdr 1
11198 echo "$ac_t""no" 1>&6
11203 if test $ac_cv_header_openssl_ssl_h = yes \
11204 -o $ac_cv_header_ssl_h = yes ; then
11205 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11206 echo "configure:11207: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11207 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11208 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11211 ac_save_LIBS="$LIBS"
11212 LIBS="-lssl -lcrypto $LIBS"
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char SSLeay_add_ssl_algorithms();
11222 SSLeay_add_ssl_algorithms()
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11227 eval "ac_cv_lib_$ac_lib_var=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_lib_$ac_lib_var=no"
11235 LIBS="$ac_save_LIBS"
11238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11243 echo "$ac_t""no" 1>&6
11248 if test $have_ssleay = no ; then
11249 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11250 echo "configure:11251: checking for SSL_library_init in -lssl" >&5
11251 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 ac_save_LIBS="$LIBS"
11256 LIBS="-lssl -lcrypto $LIBS"
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263 char SSL_library_init();
11269 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11271 eval "ac_cv_lib_$ac_lib_var=yes"
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 eval "ac_cv_lib_$ac_lib_var=no"
11279 LIBS="$ac_save_LIBS"
11282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11287 echo "$ac_t""no" 1>&6
11293 if test $have_ssleay = no ; then
11294 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11295 echo "configure:11296: checking for ssl3_accept in -lssl" >&5
11296 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11297 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11300 ac_save_LIBS="$LIBS"
11301 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11308 char ssl3_accept();
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11316 eval "ac_cv_lib_$ac_lib_var=yes"
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11321 eval "ac_cv_lib_$ac_lib_var=no"
11324 LIBS="$ac_save_LIBS"
11327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11332 echo "$ac_t""no" 1>&6
11338 if test $have_ssleay = yes ; then
11342 cat >> confdefs.h <<\EOF
11343 #define HAVE_SSLEAY 1
11347 if test $need_rsaref = yes; then
11348 cat >> confdefs.h <<\EOF
11349 #define HAVE_RSAREF 1
11353 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11355 TLS_LIBS="-lssl -lcrypto"
11361 echo "configure: warning: TLS data protection not supported!" 1>&2
11365 if test $ol_link_tls = yes ; then
11366 cat >> confdefs.h <<\EOF
11372 elif test $ol_with_tls = auto ; then
11373 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11374 echo "configure: warning: TLS data protection not supported!" 1>&2
11376 elif test $ol_with_tls != no ; then
11377 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11380 if test $ol_enable_lmpasswd != no; then
11381 if test $ol_link_tls != yes ; then
11382 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11385 cat >> confdefs.h <<\EOF
11386 #define SLAPD_LMHASH 1
11393 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11394 -o $ol_with_threads = nt ; then
11397 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11398 echo "configure:11399: checking for _beginthread" >&5
11399 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char _beginthread(); below. */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error. */
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411 char _beginthread();
11416 /* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11427 if { (eval echo configure:11428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11429 eval "ac_cv_func__beginthread=yes"
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11434 eval "ac_cv_func__beginthread=no"
11439 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11440 echo "$ac_t""yes" 1>&6
11443 echo "$ac_t""no" 1>&6
11447 if test $ac_cv_func__beginthread = yes ; then
11448 cat >> confdefs.h <<\EOF
11449 #define HAVE_NT_THREADS 1
11452 ol_cv_nt_threads=yes
11456 if test "$ol_cv_nt_threads" = yes ; then
11458 ol_with_threads=found
11459 ol_with_yielding_select=yes
11461 cat >> confdefs.h <<\EOF
11462 #define HAVE_NT_SERVICE_MANAGER 1
11465 cat >> confdefs.h <<\EOF
11466 #define HAVE_NT_EVENT_LOG 1
11471 if test $ol_with_threads = nt ; then
11472 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11476 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11477 -o $ol_with_threads = posix ; then
11479 for ac_hdr in pthread.h
11481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $ac_hdr" >&5
11484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11493 { (eval echo configure:11494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11495 if test -z "$ac_err"; then
11497 eval "ac_cv_header_$ac_safe=yes"
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 eval "ac_cv_header_$ac_safe=no"
11507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11508 echo "$ac_t""yes" 1>&6
11509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11510 cat >> confdefs.h <<EOF
11511 #define $ac_tr_hdr 1
11515 echo "$ac_t""no" 1>&6
11520 if test $ac_cv_header_pthread_h = yes ; then
11521 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11522 echo "configure:11523: checking POSIX thread version" >&5
11523 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11531 # include <pthread.h>
11535 int i = PTHREAD_CREATE_JOINABLE;
11539 if { (eval echo configure:11540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 #include <pthread.h>
11547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11548 egrep "pthread_detach" >/dev/null 2>&1; then
11550 ol_cv_pthread_version=10
11553 ol_cv_pthread_version=8
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11566 # include <pthread.h>
11567 # ifdef PTHREAD_CREATE_UNDETACHED
11572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11573 egrep "draft7" >/dev/null 2>&1; then
11575 ol_cv_pthread_version=7
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 #include <pthread.h>
11584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11585 egrep "pthread_attr_init" >/dev/null 2>&1; then
11587 ol_cv_pthread_version=6
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11595 # include <pthread.h>
11596 #ifdef PTHREAD_MUTEX_INITIALIZER
11601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11602 egrep "draft5" >/dev/null 2>&1; then
11604 ol_cv_pthread_version=5
11607 ol_cv_pthread_version=4
11622 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11625 if test $ol_cv_pthread_version != 0 ; then
11626 cat >> confdefs.h <<EOF
11627 #define HAVE_PTHREADS $ol_cv_pthread_version
11631 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11634 # consider threads found
11635 ol_with_threads=found
11638 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11639 echo "configure:11640: checking for LinuxThreads pthread.h" >&5
11640 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11641 echo $ac_n "(cached) $ac_c" 1>&6
11643 cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11646 #include <pthread.h>
11648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11649 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11651 ol_cv_header_linux_threads=yes
11654 ol_cv_header_linux_threads=no
11661 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11662 if test $ol_cv_header_linux_threads = yes; then
11663 cat >> confdefs.h <<\EOF
11664 #define HAVE_LINUX_THREADS 1
11670 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11671 echo "configure:11672: checking for GNU Pth pthread.h" >&5
11672 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11678 #include <pthread.h>
11679 #ifdef _POSIX_THREAD_IS_GNU_PTH
11684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685 egrep "__gnu_pth__" >/dev/null 2>&1; then
11687 ol_cv_header_gnu_pth_pthread_h=yes
11690 ol_cv_header_gnu_pth_pthread_h=no
11697 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11700 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11701 for ac_hdr in sched.h
11703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11705 echo "configure:11706: checking for $ac_hdr" >&5
11706 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11715 { (eval echo configure:11716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11717 if test -z "$ac_err"; then
11719 eval "ac_cv_header_$ac_safe=yes"
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11725 eval "ac_cv_header_$ac_safe=no"
11729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11730 echo "$ac_t""yes" 1>&6
11731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11732 cat >> confdefs.h <<EOF
11733 #define $ac_tr_hdr 1
11737 echo "$ac_t""no" 1>&6
11744 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11745 echo "configure:11746: checking for pthread_create in default libraries" >&5
11746 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11750 if test "$cross_compiling" = yes; then
11751 cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 /* pthread test headers */
11755 #include <pthread.h>
11756 #if HAVE_PTHREADS < 7
11760 #define NULL (void*)0
11763 static void *task(p)
11766 return (void *) (p == NULL);
11771 /* pthread test function */
11772 #ifndef PTHREAD_CREATE_DETACHED
11773 #define PTHREAD_CREATE_DETACHED 1
11777 int detach = PTHREAD_CREATE_DETACHED;
11779 #if HAVE_PTHREADS > 4
11780 /* Final pthreads */
11781 pthread_attr_t attr;
11783 status = pthread_attr_init(&attr);
11784 if( status ) return status;
11786 #if HAVE_PTHREADS < 7
11787 status = pthread_attr_setdetachstate(&attr, &detach);
11788 if( status < 0 ) status = errno;
11790 status = pthread_attr_setdetachstate(&attr, detach);
11792 if( status ) return status;
11793 status = pthread_create( &t, &attr, task, NULL );
11794 #if HAVE_PTHREADS < 7
11795 if( status < 0 ) status = errno;
11797 if( status ) return status;
11799 /* Draft 4 pthreads */
11800 status = pthread_create( &t, pthread_attr_default, task, NULL );
11801 if( status ) return errno;
11803 /* give thread a chance to complete */
11804 /* it should remain joinable and hence detachable */
11807 status = pthread_detach( &t );
11808 if( status ) return errno;
11811 #ifdef HAVE_LINUX_THREADS
11812 pthread_kill_other_threads_np();
11819 if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821 ol_cv_pthread_create=yes
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 ol_cv_pthread_create=no
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 /* pthread test headers */
11834 #include <pthread.h>
11835 #if HAVE_PTHREADS < 7
11839 #define NULL (void*)0
11842 static void *task(p)
11845 return (void *) (p == NULL);
11849 int main(argc, argv)
11854 /* pthread test function */
11855 #ifndef PTHREAD_CREATE_DETACHED
11856 #define PTHREAD_CREATE_DETACHED 1
11860 int detach = PTHREAD_CREATE_DETACHED;
11862 #if HAVE_PTHREADS > 4
11863 /* Final pthreads */
11864 pthread_attr_t attr;
11866 status = pthread_attr_init(&attr);
11867 if( status ) return status;
11869 #if HAVE_PTHREADS < 7
11870 status = pthread_attr_setdetachstate(&attr, &detach);
11871 if( status < 0 ) status = errno;
11873 status = pthread_attr_setdetachstate(&attr, detach);
11875 if( status ) return status;
11876 status = pthread_create( &t, &attr, task, NULL );
11877 #if HAVE_PTHREADS < 7
11878 if( status < 0 ) status = errno;
11880 if( status ) return status;
11882 /* Draft 4 pthreads */
11883 status = pthread_create( &t, pthread_attr_default, task, NULL );
11884 if( status ) return errno;
11886 /* give thread a chance to complete */
11887 /* it should remain joinable and hence detachable */
11890 status = pthread_detach( &t );
11891 if( status ) return errno;
11894 #ifdef HAVE_LINUX_THREADS
11895 pthread_kill_other_threads_np();
11903 if { (eval echo configure:11904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11905 ol_cv_pthread_create=yes
11907 echo "configure: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11910 ol_cv_pthread_create=no
11917 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11919 if test $ol_cv_pthread_create != no ; then
11920 ol_link_threads=posix
11921 ol_link_pthreads=""
11924 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11925 if test "$ol_link_threads" = no ; then
11927 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11928 echo "configure:11929: checking for pthread link with -kthread" >&5
11929 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11935 LIBS="-kthread $LIBS"
11937 if test "$cross_compiling" = yes; then
11938 cat > conftest.$ac_ext <<EOF
11939 #line 11940 "configure"
11940 #include "confdefs.h"
11941 /* pthread test headers */
11942 #include <pthread.h>
11943 #if HAVE_PTHREADS < 7
11947 #define NULL (void*)0
11950 static void *task(p)
11953 return (void *) (p == NULL);
11958 /* pthread test function */
11959 #ifndef PTHREAD_CREATE_DETACHED
11960 #define PTHREAD_CREATE_DETACHED 1
11964 int detach = PTHREAD_CREATE_DETACHED;
11966 #if HAVE_PTHREADS > 4
11967 /* Final pthreads */
11968 pthread_attr_t attr;
11970 status = pthread_attr_init(&attr);
11971 if( status ) return status;
11973 #if HAVE_PTHREADS < 7
11974 status = pthread_attr_setdetachstate(&attr, &detach);
11975 if( status < 0 ) status = errno;
11977 status = pthread_attr_setdetachstate(&attr, detach);
11979 if( status ) return status;
11980 status = pthread_create( &t, &attr, task, NULL );
11981 #if HAVE_PTHREADS < 7
11982 if( status < 0 ) status = errno;
11984 if( status ) return status;
11986 /* Draft 4 pthreads */
11987 status = pthread_create( &t, pthread_attr_default, task, NULL );
11988 if( status ) return errno;
11990 /* give thread a chance to complete */
11991 /* it should remain joinable and hence detachable */
11994 status = pthread_detach( &t );
11995 if( status ) return errno;
11998 #ifdef HAVE_LINUX_THREADS
11999 pthread_kill_other_threads_np();
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12008 ol_cv_pthread_kthread=yes
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12013 ol_cv_pthread_kthread=no
12017 cat > conftest.$ac_ext <<EOF
12018 #line 12019 "configure"
12019 #include "confdefs.h"
12020 /* pthread test headers */
12021 #include <pthread.h>
12022 #if HAVE_PTHREADS < 7
12026 #define NULL (void*)0
12029 static void *task(p)
12032 return (void *) (p == NULL);
12036 int main(argc, argv)
12041 /* pthread test function */
12042 #ifndef PTHREAD_CREATE_DETACHED
12043 #define PTHREAD_CREATE_DETACHED 1
12047 int detach = PTHREAD_CREATE_DETACHED;
12049 #if HAVE_PTHREADS > 4
12050 /* Final pthreads */
12051 pthread_attr_t attr;
12053 status = pthread_attr_init(&attr);
12054 if( status ) return status;
12056 #if HAVE_PTHREADS < 7
12057 status = pthread_attr_setdetachstate(&attr, &detach);
12058 if( status < 0 ) status = errno;
12060 status = pthread_attr_setdetachstate(&attr, detach);
12062 if( status ) return status;
12063 status = pthread_create( &t, &attr, task, NULL );
12064 #if HAVE_PTHREADS < 7
12065 if( status < 0 ) status = errno;
12067 if( status ) return status;
12069 /* Draft 4 pthreads */
12070 status = pthread_create( &t, pthread_attr_default, task, NULL );
12071 if( status ) return errno;
12073 /* give thread a chance to complete */
12074 /* it should remain joinable and hence detachable */
12077 status = pthread_detach( &t );
12078 if( status ) return errno;
12081 #ifdef HAVE_LINUX_THREADS
12082 pthread_kill_other_threads_np();
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12092 ol_cv_pthread_kthread=yes
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12097 ol_cv_pthread_kthread=no
12108 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12110 if test $ol_cv_pthread_kthread = yes ; then
12111 ol_link_pthreads="-kthread"
12112 ol_link_threads=posix
12116 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12117 if test "$ol_link_threads" = no ; then
12119 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12120 echo "configure:12121: checking for pthread link with -pthread" >&5
12121 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12127 LIBS="-pthread $LIBS"
12129 if test "$cross_compiling" = yes; then
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* pthread test headers */
12134 #include <pthread.h>
12135 #if HAVE_PTHREADS < 7
12139 #define NULL (void*)0
12142 static void *task(p)
12145 return (void *) (p == NULL);
12150 /* pthread test function */
12151 #ifndef PTHREAD_CREATE_DETACHED
12152 #define PTHREAD_CREATE_DETACHED 1
12156 int detach = PTHREAD_CREATE_DETACHED;
12158 #if HAVE_PTHREADS > 4
12159 /* Final pthreads */
12160 pthread_attr_t attr;
12162 status = pthread_attr_init(&attr);
12163 if( status ) return status;
12165 #if HAVE_PTHREADS < 7
12166 status = pthread_attr_setdetachstate(&attr, &detach);
12167 if( status < 0 ) status = errno;
12169 status = pthread_attr_setdetachstate(&attr, detach);
12171 if( status ) return status;
12172 status = pthread_create( &t, &attr, task, NULL );
12173 #if HAVE_PTHREADS < 7
12174 if( status < 0 ) status = errno;
12176 if( status ) return status;
12178 /* Draft 4 pthreads */
12179 status = pthread_create( &t, pthread_attr_default, task, NULL );
12180 if( status ) return errno;
12182 /* give thread a chance to complete */
12183 /* it should remain joinable and hence detachable */
12186 status = pthread_detach( &t );
12187 if( status ) return errno;
12190 #ifdef HAVE_LINUX_THREADS
12191 pthread_kill_other_threads_np();
12198 if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12200 ol_cv_pthread_pthread=yes
12202 echo "configure: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12205 ol_cv_pthread_pthread=no
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212 /* pthread test headers */
12213 #include <pthread.h>
12214 #if HAVE_PTHREADS < 7
12218 #define NULL (void*)0
12221 static void *task(p)
12224 return (void *) (p == NULL);
12228 int main(argc, argv)
12233 /* pthread test function */
12234 #ifndef PTHREAD_CREATE_DETACHED
12235 #define PTHREAD_CREATE_DETACHED 1
12239 int detach = PTHREAD_CREATE_DETACHED;
12241 #if HAVE_PTHREADS > 4
12242 /* Final pthreads */
12243 pthread_attr_t attr;
12245 status = pthread_attr_init(&attr);
12246 if( status ) return status;
12248 #if HAVE_PTHREADS < 7
12249 status = pthread_attr_setdetachstate(&attr, &detach);
12250 if( status < 0 ) status = errno;
12252 status = pthread_attr_setdetachstate(&attr, detach);
12254 if( status ) return status;
12255 status = pthread_create( &t, &attr, task, NULL );
12256 #if HAVE_PTHREADS < 7
12257 if( status < 0 ) status = errno;
12259 if( status ) return status;
12261 /* Draft 4 pthreads */
12262 status = pthread_create( &t, pthread_attr_default, task, NULL );
12263 if( status ) return errno;
12265 /* give thread a chance to complete */
12266 /* it should remain joinable and hence detachable */
12269 status = pthread_detach( &t );
12270 if( status ) return errno;
12273 #ifdef HAVE_LINUX_THREADS
12274 pthread_kill_other_threads_np();
12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12284 ol_cv_pthread_pthread=yes
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12289 ol_cv_pthread_pthread=no
12300 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12302 if test $ol_cv_pthread_pthread = yes ; then
12303 ol_link_pthreads="-pthread"
12304 ol_link_threads=posix
12308 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12309 if test "$ol_link_threads" = no ; then
12311 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12312 echo "configure:12313: checking for pthread link with -pthreads" >&5
12313 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12319 LIBS="-pthreads $LIBS"
12321 if test "$cross_compiling" = yes; then
12322 cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 /* pthread test headers */
12326 #include <pthread.h>
12327 #if HAVE_PTHREADS < 7
12331 #define NULL (void*)0
12334 static void *task(p)
12337 return (void *) (p == NULL);
12342 /* pthread test function */
12343 #ifndef PTHREAD_CREATE_DETACHED
12344 #define PTHREAD_CREATE_DETACHED 1
12348 int detach = PTHREAD_CREATE_DETACHED;
12350 #if HAVE_PTHREADS > 4
12351 /* Final pthreads */
12352 pthread_attr_t attr;
12354 status = pthread_attr_init(&attr);
12355 if( status ) return status;
12357 #if HAVE_PTHREADS < 7
12358 status = pthread_attr_setdetachstate(&attr, &detach);
12359 if( status < 0 ) status = errno;
12361 status = pthread_attr_setdetachstate(&attr, detach);
12363 if( status ) return status;
12364 status = pthread_create( &t, &attr, task, NULL );
12365 #if HAVE_PTHREADS < 7
12366 if( status < 0 ) status = errno;
12368 if( status ) return status;
12370 /* Draft 4 pthreads */
12371 status = pthread_create( &t, pthread_attr_default, task, NULL );
12372 if( status ) return errno;
12374 /* give thread a chance to complete */
12375 /* it should remain joinable and hence detachable */
12378 status = pthread_detach( &t );
12379 if( status ) return errno;
12382 #ifdef HAVE_LINUX_THREADS
12383 pthread_kill_other_threads_np();
12390 if { (eval echo configure:12391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12392 ol_cv_pthread_pthreads=yes
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12397 ol_cv_pthread_pthreads=no
12401 cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404 /* pthread test headers */
12405 #include <pthread.h>
12406 #if HAVE_PTHREADS < 7
12410 #define NULL (void*)0
12413 static void *task(p)
12416 return (void *) (p == NULL);
12420 int main(argc, argv)
12425 /* pthread test function */
12426 #ifndef PTHREAD_CREATE_DETACHED
12427 #define PTHREAD_CREATE_DETACHED 1
12431 int detach = PTHREAD_CREATE_DETACHED;
12433 #if HAVE_PTHREADS > 4
12434 /* Final pthreads */
12435 pthread_attr_t attr;
12437 status = pthread_attr_init(&attr);
12438 if( status ) return status;
12440 #if HAVE_PTHREADS < 7
12441 status = pthread_attr_setdetachstate(&attr, &detach);
12442 if( status < 0 ) status = errno;
12444 status = pthread_attr_setdetachstate(&attr, detach);
12446 if( status ) return status;
12447 status = pthread_create( &t, &attr, task, NULL );
12448 #if HAVE_PTHREADS < 7
12449 if( status < 0 ) status = errno;
12451 if( status ) return status;
12453 /* Draft 4 pthreads */
12454 status = pthread_create( &t, pthread_attr_default, task, NULL );
12455 if( status ) return errno;
12457 /* give thread a chance to complete */
12458 /* it should remain joinable and hence detachable */
12461 status = pthread_detach( &t );
12462 if( status ) return errno;
12465 #ifdef HAVE_LINUX_THREADS
12466 pthread_kill_other_threads_np();
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12476 ol_cv_pthread_pthreads=yes
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 ol_cv_pthread_pthreads=no
12492 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12494 if test $ol_cv_pthread_pthreads = yes ; then
12495 ol_link_pthreads="-pthreads"
12496 ol_link_threads=posix
12500 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12501 if test "$ol_link_threads" = no ; then
12503 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12504 echo "configure:12505: checking for pthread link with -mthreads" >&5
12505 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
12511 LIBS="-mthreads $LIBS"
12513 if test "$cross_compiling" = yes; then
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517 /* pthread test headers */
12518 #include <pthread.h>
12519 #if HAVE_PTHREADS < 7
12523 #define NULL (void*)0
12526 static void *task(p)
12529 return (void *) (p == NULL);
12534 /* pthread test function */
12535 #ifndef PTHREAD_CREATE_DETACHED
12536 #define PTHREAD_CREATE_DETACHED 1
12540 int detach = PTHREAD_CREATE_DETACHED;
12542 #if HAVE_PTHREADS > 4
12543 /* Final pthreads */
12544 pthread_attr_t attr;
12546 status = pthread_attr_init(&attr);
12547 if( status ) return status;
12549 #if HAVE_PTHREADS < 7
12550 status = pthread_attr_setdetachstate(&attr, &detach);
12551 if( status < 0 ) status = errno;
12553 status = pthread_attr_setdetachstate(&attr, detach);
12555 if( status ) return status;
12556 status = pthread_create( &t, &attr, task, NULL );
12557 #if HAVE_PTHREADS < 7
12558 if( status < 0 ) status = errno;
12560 if( status ) return status;
12562 /* Draft 4 pthreads */
12563 status = pthread_create( &t, pthread_attr_default, task, NULL );
12564 if( status ) return errno;
12566 /* give thread a chance to complete */
12567 /* it should remain joinable and hence detachable */
12570 status = pthread_detach( &t );
12571 if( status ) return errno;
12574 #ifdef HAVE_LINUX_THREADS
12575 pthread_kill_other_threads_np();
12582 if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12584 ol_cv_pthread_mthreads=yes
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12589 ol_cv_pthread_mthreads=no
12593 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 /* pthread test headers */
12597 #include <pthread.h>
12598 #if HAVE_PTHREADS < 7
12602 #define NULL (void*)0
12605 static void *task(p)
12608 return (void *) (p == NULL);
12612 int main(argc, argv)
12617 /* pthread test function */
12618 #ifndef PTHREAD_CREATE_DETACHED
12619 #define PTHREAD_CREATE_DETACHED 1
12623 int detach = PTHREAD_CREATE_DETACHED;
12625 #if HAVE_PTHREADS > 4
12626 /* Final pthreads */
12627 pthread_attr_t attr;
12629 status = pthread_attr_init(&attr);
12630 if( status ) return status;
12632 #if HAVE_PTHREADS < 7
12633 status = pthread_attr_setdetachstate(&attr, &detach);
12634 if( status < 0 ) status = errno;
12636 status = pthread_attr_setdetachstate(&attr, detach);
12638 if( status ) return status;
12639 status = pthread_create( &t, &attr, task, NULL );
12640 #if HAVE_PTHREADS < 7
12641 if( status < 0 ) status = errno;
12643 if( status ) return status;
12645 /* Draft 4 pthreads */
12646 status = pthread_create( &t, pthread_attr_default, task, NULL );
12647 if( status ) return errno;
12649 /* give thread a chance to complete */
12650 /* it should remain joinable and hence detachable */
12653 status = pthread_detach( &t );
12654 if( status ) return errno;
12657 #ifdef HAVE_LINUX_THREADS
12658 pthread_kill_other_threads_np();
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12668 ol_cv_pthread_mthreads=yes
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12673 ol_cv_pthread_mthreads=no
12684 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12686 if test $ol_cv_pthread_mthreads = yes ; then
12687 ol_link_pthreads="-mthreads"
12688 ol_link_threads=posix
12692 # Pthread try link: -thread (ol_cv_pthread_thread)
12693 if test "$ol_link_threads" = no ; then
12695 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12696 echo "configure:12697: checking for pthread link with -thread" >&5
12697 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12698 echo $ac_n "(cached) $ac_c" 1>&6
12703 LIBS="-thread $LIBS"
12705 if test "$cross_compiling" = yes; then
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12709 /* pthread test headers */
12710 #include <pthread.h>
12711 #if HAVE_PTHREADS < 7
12715 #define NULL (void*)0
12718 static void *task(p)
12721 return (void *) (p == NULL);
12726 /* pthread test function */
12727 #ifndef PTHREAD_CREATE_DETACHED
12728 #define PTHREAD_CREATE_DETACHED 1
12732 int detach = PTHREAD_CREATE_DETACHED;
12734 #if HAVE_PTHREADS > 4
12735 /* Final pthreads */
12736 pthread_attr_t attr;
12738 status = pthread_attr_init(&attr);
12739 if( status ) return status;
12741 #if HAVE_PTHREADS < 7
12742 status = pthread_attr_setdetachstate(&attr, &detach);
12743 if( status < 0 ) status = errno;
12745 status = pthread_attr_setdetachstate(&attr, detach);
12747 if( status ) return status;
12748 status = pthread_create( &t, &attr, task, NULL );
12749 #if HAVE_PTHREADS < 7
12750 if( status < 0 ) status = errno;
12752 if( status ) return status;
12754 /* Draft 4 pthreads */
12755 status = pthread_create( &t, pthread_attr_default, task, NULL );
12756 if( status ) return errno;
12758 /* give thread a chance to complete */
12759 /* it should remain joinable and hence detachable */
12762 status = pthread_detach( &t );
12763 if( status ) return errno;
12766 #ifdef HAVE_LINUX_THREADS
12767 pthread_kill_other_threads_np();
12774 if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12776 ol_cv_pthread_thread=yes
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12781 ol_cv_pthread_thread=no
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12788 /* pthread test headers */
12789 #include <pthread.h>
12790 #if HAVE_PTHREADS < 7
12794 #define NULL (void*)0
12797 static void *task(p)
12800 return (void *) (p == NULL);
12804 int main(argc, argv)
12809 /* pthread test function */
12810 #ifndef PTHREAD_CREATE_DETACHED
12811 #define PTHREAD_CREATE_DETACHED 1
12815 int detach = PTHREAD_CREATE_DETACHED;
12817 #if HAVE_PTHREADS > 4
12818 /* Final pthreads */
12819 pthread_attr_t attr;
12821 status = pthread_attr_init(&attr);
12822 if( status ) return status;
12824 #if HAVE_PTHREADS < 7
12825 status = pthread_attr_setdetachstate(&attr, &detach);
12826 if( status < 0 ) status = errno;
12828 status = pthread_attr_setdetachstate(&attr, detach);
12830 if( status ) return status;
12831 status = pthread_create( &t, &attr, task, NULL );
12832 #if HAVE_PTHREADS < 7
12833 if( status < 0 ) status = errno;
12835 if( status ) return status;
12837 /* Draft 4 pthreads */
12838 status = pthread_create( &t, pthread_attr_default, task, NULL );
12839 if( status ) return errno;
12841 /* give thread a chance to complete */
12842 /* it should remain joinable and hence detachable */
12845 status = pthread_detach( &t );
12846 if( status ) return errno;
12849 #ifdef HAVE_LINUX_THREADS
12850 pthread_kill_other_threads_np();
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12860 ol_cv_pthread_thread=yes
12862 echo "configure: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12865 ol_cv_pthread_thread=no
12876 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12878 if test $ol_cv_pthread_thread = yes ; then
12879 ol_link_pthreads="-thread"
12880 ol_link_threads=posix
12885 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12886 if test "$ol_link_threads" = no ; then
12887 # try -lpthread -lmach -lexc -lc_r
12888 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12889 echo "configure:12890: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12890 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12891 echo $ac_n "(cached) $ac_c" 1>&6
12896 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12898 if test "$cross_compiling" = yes; then
12899 cat > conftest.$ac_ext <<EOF
12900 #line 12901 "configure"
12901 #include "confdefs.h"
12902 /* pthread test headers */
12903 #include <pthread.h>
12904 #if HAVE_PTHREADS < 7
12908 #define NULL (void*)0
12911 static void *task(p)
12914 return (void *) (p == NULL);
12919 /* pthread test function */
12920 #ifndef PTHREAD_CREATE_DETACHED
12921 #define PTHREAD_CREATE_DETACHED 1
12925 int detach = PTHREAD_CREATE_DETACHED;
12927 #if HAVE_PTHREADS > 4
12928 /* Final pthreads */
12929 pthread_attr_t attr;
12931 status = pthread_attr_init(&attr);
12932 if( status ) return status;
12934 #if HAVE_PTHREADS < 7
12935 status = pthread_attr_setdetachstate(&attr, &detach);
12936 if( status < 0 ) status = errno;
12938 status = pthread_attr_setdetachstate(&attr, detach);
12940 if( status ) return status;
12941 status = pthread_create( &t, &attr, task, NULL );
12942 #if HAVE_PTHREADS < 7
12943 if( status < 0 ) status = errno;
12945 if( status ) return status;
12947 /* Draft 4 pthreads */
12948 status = pthread_create( &t, pthread_attr_default, task, NULL );
12949 if( status ) return errno;
12951 /* give thread a chance to complete */
12952 /* it should remain joinable and hence detachable */
12955 status = pthread_detach( &t );
12956 if( status ) return errno;
12959 #ifdef HAVE_LINUX_THREADS
12960 pthread_kill_other_threads_np();
12967 if { (eval echo configure:12968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12969 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12971 echo "configure: failed program was:" >&5
12972 cat conftest.$ac_ext >&5
12974 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12978 cat > conftest.$ac_ext <<EOF
12979 #line 12980 "configure"
12980 #include "confdefs.h"
12981 /* pthread test headers */
12982 #include <pthread.h>
12983 #if HAVE_PTHREADS < 7
12987 #define NULL (void*)0
12990 static void *task(p)
12993 return (void *) (p == NULL);
12997 int main(argc, argv)
13002 /* pthread test function */
13003 #ifndef PTHREAD_CREATE_DETACHED
13004 #define PTHREAD_CREATE_DETACHED 1
13008 int detach = PTHREAD_CREATE_DETACHED;
13010 #if HAVE_PTHREADS > 4
13011 /* Final pthreads */
13012 pthread_attr_t attr;
13014 status = pthread_attr_init(&attr);
13015 if( status ) return status;
13017 #if HAVE_PTHREADS < 7
13018 status = pthread_attr_setdetachstate(&attr, &detach);
13019 if( status < 0 ) status = errno;
13021 status = pthread_attr_setdetachstate(&attr, detach);
13023 if( status ) return status;
13024 status = pthread_create( &t, &attr, task, NULL );
13025 #if HAVE_PTHREADS < 7
13026 if( status < 0 ) status = errno;
13028 if( status ) return status;
13030 /* Draft 4 pthreads */
13031 status = pthread_create( &t, pthread_attr_default, task, NULL );
13032 if( status ) return errno;
13034 /* give thread a chance to complete */
13035 /* it should remain joinable and hence detachable */
13038 status = pthread_detach( &t );
13039 if( status ) return errno;
13042 #ifdef HAVE_LINUX_THREADS
13043 pthread_kill_other_threads_np();
13051 if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13053 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13058 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13069 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13071 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13072 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13073 ol_link_threads=posix
13077 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13078 if test "$ol_link_threads" = no ; then
13079 # try -lpthread -lmach -lexc
13080 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13081 echo "configure:13082: checking for pthread link with -lpthread -lmach -lexc" >&5
13082 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13083 echo $ac_n "(cached) $ac_c" 1>&6
13088 LIBS="-lpthread -lmach -lexc $LIBS"
13090 if test "$cross_compiling" = yes; then
13091 cat > conftest.$ac_ext <<EOF
13092 #line 13093 "configure"
13093 #include "confdefs.h"
13094 /* pthread test headers */
13095 #include <pthread.h>
13096 #if HAVE_PTHREADS < 7
13100 #define NULL (void*)0
13103 static void *task(p)
13106 return (void *) (p == NULL);
13111 /* pthread test function */
13112 #ifndef PTHREAD_CREATE_DETACHED
13113 #define PTHREAD_CREATE_DETACHED 1
13117 int detach = PTHREAD_CREATE_DETACHED;
13119 #if HAVE_PTHREADS > 4
13120 /* Final pthreads */
13121 pthread_attr_t attr;
13123 status = pthread_attr_init(&attr);
13124 if( status ) return status;
13126 #if HAVE_PTHREADS < 7
13127 status = pthread_attr_setdetachstate(&attr, &detach);
13128 if( status < 0 ) status = errno;
13130 status = pthread_attr_setdetachstate(&attr, detach);
13132 if( status ) return status;
13133 status = pthread_create( &t, &attr, task, NULL );
13134 #if HAVE_PTHREADS < 7
13135 if( status < 0 ) status = errno;
13137 if( status ) return status;
13139 /* Draft 4 pthreads */
13140 status = pthread_create( &t, pthread_attr_default, task, NULL );
13141 if( status ) return errno;
13143 /* give thread a chance to complete */
13144 /* it should remain joinable and hence detachable */
13147 status = pthread_detach( &t );
13148 if( status ) return errno;
13151 #ifdef HAVE_LINUX_THREADS
13152 pthread_kill_other_threads_np();
13159 if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161 ol_cv_pthread_lpthread_lmach_lexc=yes
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13166 ol_cv_pthread_lpthread_lmach_lexc=no
13170 cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 /* pthread test headers */
13174 #include <pthread.h>
13175 #if HAVE_PTHREADS < 7
13179 #define NULL (void*)0
13182 static void *task(p)
13185 return (void *) (p == NULL);
13189 int main(argc, argv)
13194 /* pthread test function */
13195 #ifndef PTHREAD_CREATE_DETACHED
13196 #define PTHREAD_CREATE_DETACHED 1
13200 int detach = PTHREAD_CREATE_DETACHED;
13202 #if HAVE_PTHREADS > 4
13203 /* Final pthreads */
13204 pthread_attr_t attr;
13206 status = pthread_attr_init(&attr);
13207 if( status ) return status;
13209 #if HAVE_PTHREADS < 7
13210 status = pthread_attr_setdetachstate(&attr, &detach);
13211 if( status < 0 ) status = errno;
13213 status = pthread_attr_setdetachstate(&attr, detach);
13215 if( status ) return status;
13216 status = pthread_create( &t, &attr, task, NULL );
13217 #if HAVE_PTHREADS < 7
13218 if( status < 0 ) status = errno;
13220 if( status ) return status;
13222 /* Draft 4 pthreads */
13223 status = pthread_create( &t, pthread_attr_default, task, NULL );
13224 if( status ) return errno;
13226 /* give thread a chance to complete */
13227 /* it should remain joinable and hence detachable */
13230 status = pthread_detach( &t );
13231 if( status ) return errno;
13234 #ifdef HAVE_LINUX_THREADS
13235 pthread_kill_other_threads_np();
13243 if { (eval echo configure:13244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13245 ol_cv_pthread_lpthread_lmach_lexc=yes
13247 echo "configure: failed program was:" >&5
13248 cat conftest.$ac_ext >&5
13250 ol_cv_pthread_lpthread_lmach_lexc=no
13261 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13263 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13264 ol_link_pthreads="-lpthread -lmach -lexc"
13265 ol_link_threads=posix
13270 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13271 if test "$ol_link_threads" = no ; then
13272 # try -lpthread -Wl,-woff,85
13273 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13274 echo "configure:13275: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13275 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13276 echo $ac_n "(cached) $ac_c" 1>&6
13281 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13283 if test "$cross_compiling" = yes; then
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 /* pthread test headers */
13288 #include <pthread.h>
13289 #if HAVE_PTHREADS < 7
13293 #define NULL (void*)0
13296 static void *task(p)
13299 return (void *) (p == NULL);
13304 /* pthread test function */
13305 #ifndef PTHREAD_CREATE_DETACHED
13306 #define PTHREAD_CREATE_DETACHED 1
13310 int detach = PTHREAD_CREATE_DETACHED;
13312 #if HAVE_PTHREADS > 4
13313 /* Final pthreads */
13314 pthread_attr_t attr;
13316 status = pthread_attr_init(&attr);
13317 if( status ) return status;
13319 #if HAVE_PTHREADS < 7
13320 status = pthread_attr_setdetachstate(&attr, &detach);
13321 if( status < 0 ) status = errno;
13323 status = pthread_attr_setdetachstate(&attr, detach);
13325 if( status ) return status;
13326 status = pthread_create( &t, &attr, task, NULL );
13327 #if HAVE_PTHREADS < 7
13328 if( status < 0 ) status = errno;
13330 if( status ) return status;
13332 /* Draft 4 pthreads */
13333 status = pthread_create( &t, pthread_attr_default, task, NULL );
13334 if( status ) return errno;
13336 /* give thread a chance to complete */
13337 /* it should remain joinable and hence detachable */
13340 status = pthread_detach( &t );
13341 if( status ) return errno;
13344 #ifdef HAVE_LINUX_THREADS
13345 pthread_kill_other_threads_np();
13352 if { (eval echo configure:13353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13354 ol_cv_pthread_lib_lpthread_woff=yes
13356 echo "configure: failed program was:" >&5
13357 cat conftest.$ac_ext >&5
13359 ol_cv_pthread_lib_lpthread_woff=no
13363 cat > conftest.$ac_ext <<EOF
13364 #line 13365 "configure"
13365 #include "confdefs.h"
13366 /* pthread test headers */
13367 #include <pthread.h>
13368 #if HAVE_PTHREADS < 7
13372 #define NULL (void*)0
13375 static void *task(p)
13378 return (void *) (p == NULL);
13382 int main(argc, argv)
13387 /* pthread test function */
13388 #ifndef PTHREAD_CREATE_DETACHED
13389 #define PTHREAD_CREATE_DETACHED 1
13393 int detach = PTHREAD_CREATE_DETACHED;
13395 #if HAVE_PTHREADS > 4
13396 /* Final pthreads */
13397 pthread_attr_t attr;
13399 status = pthread_attr_init(&attr);
13400 if( status ) return status;
13402 #if HAVE_PTHREADS < 7
13403 status = pthread_attr_setdetachstate(&attr, &detach);
13404 if( status < 0 ) status = errno;
13406 status = pthread_attr_setdetachstate(&attr, detach);
13408 if( status ) return status;
13409 status = pthread_create( &t, &attr, task, NULL );
13410 #if HAVE_PTHREADS < 7
13411 if( status < 0 ) status = errno;
13413 if( status ) return status;
13415 /* Draft 4 pthreads */
13416 status = pthread_create( &t, pthread_attr_default, task, NULL );
13417 if( status ) return errno;
13419 /* give thread a chance to complete */
13420 /* it should remain joinable and hence detachable */
13423 status = pthread_detach( &t );
13424 if( status ) return errno;
13427 #ifdef HAVE_LINUX_THREADS
13428 pthread_kill_other_threads_np();
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13438 ol_cv_pthread_lib_lpthread_woff=yes
13440 echo "configure: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13443 ol_cv_pthread_lib_lpthread_woff=no
13454 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13456 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13457 ol_link_pthreads="-lpthread -Wl,-woff,85"
13458 ol_link_threads=posix
13463 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13464 if test "$ol_link_threads" = no ; then
13466 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13467 echo "configure:13468: checking for pthread link with -lpthread" >&5
13468 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13469 echo $ac_n "(cached) $ac_c" 1>&6
13474 LIBS="-lpthread $LIBS"
13476 if test "$cross_compiling" = yes; then
13477 cat > conftest.$ac_ext <<EOF
13478 #line 13479 "configure"
13479 #include "confdefs.h"
13480 /* pthread test headers */
13481 #include <pthread.h>
13482 #if HAVE_PTHREADS < 7
13486 #define NULL (void*)0
13489 static void *task(p)
13492 return (void *) (p == NULL);
13497 /* pthread test function */
13498 #ifndef PTHREAD_CREATE_DETACHED
13499 #define PTHREAD_CREATE_DETACHED 1
13503 int detach = PTHREAD_CREATE_DETACHED;
13505 #if HAVE_PTHREADS > 4
13506 /* Final pthreads */
13507 pthread_attr_t attr;
13509 status = pthread_attr_init(&attr);
13510 if( status ) return status;
13512 #if HAVE_PTHREADS < 7
13513 status = pthread_attr_setdetachstate(&attr, &detach);
13514 if( status < 0 ) status = errno;
13516 status = pthread_attr_setdetachstate(&attr, detach);
13518 if( status ) return status;
13519 status = pthread_create( &t, &attr, task, NULL );
13520 #if HAVE_PTHREADS < 7
13521 if( status < 0 ) status = errno;
13523 if( status ) return status;
13525 /* Draft 4 pthreads */
13526 status = pthread_create( &t, pthread_attr_default, task, NULL );
13527 if( status ) return errno;
13529 /* give thread a chance to complete */
13530 /* it should remain joinable and hence detachable */
13533 status = pthread_detach( &t );
13534 if( status ) return errno;
13537 #ifdef HAVE_LINUX_THREADS
13538 pthread_kill_other_threads_np();
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13547 ol_cv_pthread_lpthread=yes
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 ol_cv_pthread_lpthread=no
13556 cat > conftest.$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13559 /* pthread test headers */
13560 #include <pthread.h>
13561 #if HAVE_PTHREADS < 7
13565 #define NULL (void*)0
13568 static void *task(p)
13571 return (void *) (p == NULL);
13575 int main(argc, argv)
13580 /* pthread test function */
13581 #ifndef PTHREAD_CREATE_DETACHED
13582 #define PTHREAD_CREATE_DETACHED 1
13586 int detach = PTHREAD_CREATE_DETACHED;
13588 #if HAVE_PTHREADS > 4
13589 /* Final pthreads */
13590 pthread_attr_t attr;
13592 status = pthread_attr_init(&attr);
13593 if( status ) return status;
13595 #if HAVE_PTHREADS < 7
13596 status = pthread_attr_setdetachstate(&attr, &detach);
13597 if( status < 0 ) status = errno;
13599 status = pthread_attr_setdetachstate(&attr, detach);
13601 if( status ) return status;
13602 status = pthread_create( &t, &attr, task, NULL );
13603 #if HAVE_PTHREADS < 7
13604 if( status < 0 ) status = errno;
13606 if( status ) return status;
13608 /* Draft 4 pthreads */
13609 status = pthread_create( &t, pthread_attr_default, task, NULL );
13610 if( status ) return errno;
13612 /* give thread a chance to complete */
13613 /* it should remain joinable and hence detachable */
13616 status = pthread_detach( &t );
13617 if( status ) return errno;
13620 #ifdef HAVE_LINUX_THREADS
13621 pthread_kill_other_threads_np();
13629 if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13631 ol_cv_pthread_lpthread=yes
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13636 ol_cv_pthread_lpthread=no
13647 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13649 if test $ol_cv_pthread_lpthread = yes ; then
13650 ol_link_pthreads="-lpthread"
13651 ol_link_threads=posix
13655 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13656 if test "$ol_link_threads" = no ; then
13658 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13659 echo "configure:13660: checking for pthread link with -lc_r" >&5
13660 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13661 echo $ac_n "(cached) $ac_c" 1>&6
13668 if test "$cross_compiling" = yes; then
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13672 /* pthread test headers */
13673 #include <pthread.h>
13674 #if HAVE_PTHREADS < 7
13678 #define NULL (void*)0
13681 static void *task(p)
13684 return (void *) (p == NULL);
13689 /* pthread test function */
13690 #ifndef PTHREAD_CREATE_DETACHED
13691 #define PTHREAD_CREATE_DETACHED 1
13695 int detach = PTHREAD_CREATE_DETACHED;
13697 #if HAVE_PTHREADS > 4
13698 /* Final pthreads */
13699 pthread_attr_t attr;
13701 status = pthread_attr_init(&attr);
13702 if( status ) return status;
13704 #if HAVE_PTHREADS < 7
13705 status = pthread_attr_setdetachstate(&attr, &detach);
13706 if( status < 0 ) status = errno;
13708 status = pthread_attr_setdetachstate(&attr, detach);
13710 if( status ) return status;
13711 status = pthread_create( &t, &attr, task, NULL );
13712 #if HAVE_PTHREADS < 7
13713 if( status < 0 ) status = errno;
13715 if( status ) return status;
13717 /* Draft 4 pthreads */
13718 status = pthread_create( &t, pthread_attr_default, task, NULL );
13719 if( status ) return errno;
13721 /* give thread a chance to complete */
13722 /* it should remain joinable and hence detachable */
13725 status = pthread_detach( &t );
13726 if( status ) return errno;
13729 #ifdef HAVE_LINUX_THREADS
13730 pthread_kill_other_threads_np();
13737 if { (eval echo configure:13738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13739 ol_cv_pthread_lc_r=yes
13741 echo "configure: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
13744 ol_cv_pthread_lc_r=no
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 /* pthread test headers */
13752 #include <pthread.h>
13753 #if HAVE_PTHREADS < 7
13757 #define NULL (void*)0
13760 static void *task(p)
13763 return (void *) (p == NULL);
13767 int main(argc, argv)
13772 /* pthread test function */
13773 #ifndef PTHREAD_CREATE_DETACHED
13774 #define PTHREAD_CREATE_DETACHED 1
13778 int detach = PTHREAD_CREATE_DETACHED;
13780 #if HAVE_PTHREADS > 4
13781 /* Final pthreads */
13782 pthread_attr_t attr;
13784 status = pthread_attr_init(&attr);
13785 if( status ) return status;
13787 #if HAVE_PTHREADS < 7
13788 status = pthread_attr_setdetachstate(&attr, &detach);
13789 if( status < 0 ) status = errno;
13791 status = pthread_attr_setdetachstate(&attr, detach);
13793 if( status ) return status;
13794 status = pthread_create( &t, &attr, task, NULL );
13795 #if HAVE_PTHREADS < 7
13796 if( status < 0 ) status = errno;
13798 if( status ) return status;
13800 /* Draft 4 pthreads */
13801 status = pthread_create( &t, pthread_attr_default, task, NULL );
13802 if( status ) return errno;
13804 /* give thread a chance to complete */
13805 /* it should remain joinable and hence detachable */
13808 status = pthread_detach( &t );
13809 if( status ) return errno;
13812 #ifdef HAVE_LINUX_THREADS
13813 pthread_kill_other_threads_np();
13821 if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13823 ol_cv_pthread_lc_r=yes
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13828 ol_cv_pthread_lc_r=no
13839 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13841 if test $ol_cv_pthread_lc_r = yes ; then
13842 ol_link_pthreads="-lc_r"
13843 ol_link_threads=posix
13848 # Pthread try link: -threads (ol_cv_pthread_threads)
13849 if test "$ol_link_threads" = no ; then
13851 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13852 echo "configure:13853: checking for pthread link with -threads" >&5
13853 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13859 LIBS="-threads $LIBS"
13861 if test "$cross_compiling" = yes; then
13862 cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 /* pthread test headers */
13866 #include <pthread.h>
13867 #if HAVE_PTHREADS < 7
13871 #define NULL (void*)0
13874 static void *task(p)
13877 return (void *) (p == NULL);
13882 /* pthread test function */
13883 #ifndef PTHREAD_CREATE_DETACHED
13884 #define PTHREAD_CREATE_DETACHED 1
13888 int detach = PTHREAD_CREATE_DETACHED;
13890 #if HAVE_PTHREADS > 4
13891 /* Final pthreads */
13892 pthread_attr_t attr;
13894 status = pthread_attr_init(&attr);
13895 if( status ) return status;
13897 #if HAVE_PTHREADS < 7
13898 status = pthread_attr_setdetachstate(&attr, &detach);
13899 if( status < 0 ) status = errno;
13901 status = pthread_attr_setdetachstate(&attr, detach);
13903 if( status ) return status;
13904 status = pthread_create( &t, &attr, task, NULL );
13905 #if HAVE_PTHREADS < 7
13906 if( status < 0 ) status = errno;
13908 if( status ) return status;
13910 /* Draft 4 pthreads */
13911 status = pthread_create( &t, pthread_attr_default, task, NULL );
13912 if( status ) return errno;
13914 /* give thread a chance to complete */
13915 /* it should remain joinable and hence detachable */
13918 status = pthread_detach( &t );
13919 if( status ) return errno;
13922 #ifdef HAVE_LINUX_THREADS
13923 pthread_kill_other_threads_np();
13930 if { (eval echo configure:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13932 ol_cv_pthread_threads=yes
13934 echo "configure: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13937 ol_cv_pthread_threads=no
13941 cat > conftest.$ac_ext <<EOF
13942 #line 13943 "configure"
13943 #include "confdefs.h"
13944 /* pthread test headers */
13945 #include <pthread.h>
13946 #if HAVE_PTHREADS < 7
13950 #define NULL (void*)0
13953 static void *task(p)
13956 return (void *) (p == NULL);
13960 int main(argc, argv)
13965 /* pthread test function */
13966 #ifndef PTHREAD_CREATE_DETACHED
13967 #define PTHREAD_CREATE_DETACHED 1
13971 int detach = PTHREAD_CREATE_DETACHED;
13973 #if HAVE_PTHREADS > 4
13974 /* Final pthreads */
13975 pthread_attr_t attr;
13977 status = pthread_attr_init(&attr);
13978 if( status ) return status;
13980 #if HAVE_PTHREADS < 7
13981 status = pthread_attr_setdetachstate(&attr, &detach);
13982 if( status < 0 ) status = errno;
13984 status = pthread_attr_setdetachstate(&attr, detach);
13986 if( status ) return status;
13987 status = pthread_create( &t, &attr, task, NULL );
13988 #if HAVE_PTHREADS < 7
13989 if( status < 0 ) status = errno;
13991 if( status ) return status;
13993 /* Draft 4 pthreads */
13994 status = pthread_create( &t, pthread_attr_default, task, NULL );
13995 if( status ) return errno;
13997 /* give thread a chance to complete */
13998 /* it should remain joinable and hence detachable */
14001 status = pthread_detach( &t );
14002 if( status ) return errno;
14005 #ifdef HAVE_LINUX_THREADS
14006 pthread_kill_other_threads_np();
14014 if { (eval echo configure:14015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14016 ol_cv_pthread_threads=yes
14018 echo "configure: failed program was:" >&5
14019 cat conftest.$ac_ext >&5
14021 ol_cv_pthread_threads=no
14032 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14034 if test $ol_cv_pthread_threads = yes ; then
14035 ol_link_pthreads="-threads"
14036 ol_link_threads=posix
14041 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14042 if test "$ol_link_threads" = no ; then
14043 # try -lpthreads -lmach -lexc -lc_r
14044 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14045 echo "configure:14046: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14046 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14047 echo $ac_n "(cached) $ac_c" 1>&6
14052 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14054 if test "$cross_compiling" = yes; then
14055 cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058 /* pthread test headers */
14059 #include <pthread.h>
14060 #if HAVE_PTHREADS < 7
14064 #define NULL (void*)0
14067 static void *task(p)
14070 return (void *) (p == NULL);
14075 /* pthread test function */
14076 #ifndef PTHREAD_CREATE_DETACHED
14077 #define PTHREAD_CREATE_DETACHED 1
14081 int detach = PTHREAD_CREATE_DETACHED;
14083 #if HAVE_PTHREADS > 4
14084 /* Final pthreads */
14085 pthread_attr_t attr;
14087 status = pthread_attr_init(&attr);
14088 if( status ) return status;
14090 #if HAVE_PTHREADS < 7
14091 status = pthread_attr_setdetachstate(&attr, &detach);
14092 if( status < 0 ) status = errno;
14094 status = pthread_attr_setdetachstate(&attr, detach);
14096 if( status ) return status;
14097 status = pthread_create( &t, &attr, task, NULL );
14098 #if HAVE_PTHREADS < 7
14099 if( status < 0 ) status = errno;
14101 if( status ) return status;
14103 /* Draft 4 pthreads */
14104 status = pthread_create( &t, pthread_attr_default, task, NULL );
14105 if( status ) return errno;
14107 /* give thread a chance to complete */
14108 /* it should remain joinable and hence detachable */
14111 status = pthread_detach( &t );
14112 if( status ) return errno;
14115 #ifdef HAVE_LINUX_THREADS
14116 pthread_kill_other_threads_np();
14123 if { (eval echo configure:14124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14125 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14127 echo "configure: failed program was:" >&5
14128 cat conftest.$ac_ext >&5
14130 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14134 cat > conftest.$ac_ext <<EOF
14135 #line 14136 "configure"
14136 #include "confdefs.h"
14137 /* pthread test headers */
14138 #include <pthread.h>
14139 #if HAVE_PTHREADS < 7
14143 #define NULL (void*)0
14146 static void *task(p)
14149 return (void *) (p == NULL);
14153 int main(argc, argv)
14158 /* pthread test function */
14159 #ifndef PTHREAD_CREATE_DETACHED
14160 #define PTHREAD_CREATE_DETACHED 1
14164 int detach = PTHREAD_CREATE_DETACHED;
14166 #if HAVE_PTHREADS > 4
14167 /* Final pthreads */
14168 pthread_attr_t attr;
14170 status = pthread_attr_init(&attr);
14171 if( status ) return status;
14173 #if HAVE_PTHREADS < 7
14174 status = pthread_attr_setdetachstate(&attr, &detach);
14175 if( status < 0 ) status = errno;
14177 status = pthread_attr_setdetachstate(&attr, detach);
14179 if( status ) return status;
14180 status = pthread_create( &t, &attr, task, NULL );
14181 #if HAVE_PTHREADS < 7
14182 if( status < 0 ) status = errno;
14184 if( status ) return status;
14186 /* Draft 4 pthreads */
14187 status = pthread_create( &t, pthread_attr_default, task, NULL );
14188 if( status ) return errno;
14190 /* give thread a chance to complete */
14191 /* it should remain joinable and hence detachable */
14194 status = pthread_detach( &t );
14195 if( status ) return errno;
14198 #ifdef HAVE_LINUX_THREADS
14199 pthread_kill_other_threads_np();
14207 if { (eval echo configure:14208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14209 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14211 echo "configure: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14214 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14225 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14227 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14228 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14229 ol_link_threads=posix
14233 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14234 if test "$ol_link_threads" = no ; then
14235 # try -lpthreads -lmach -lexc
14236 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14237 echo "configure:14238: checking for pthread link with -lpthreads -lmach -lexc" >&5
14238 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14244 LIBS="-lpthreads -lmach -lexc $LIBS"
14246 if test "$cross_compiling" = yes; then
14247 cat > conftest.$ac_ext <<EOF
14248 #line 14249 "configure"
14249 #include "confdefs.h"
14250 /* pthread test headers */
14251 #include <pthread.h>
14252 #if HAVE_PTHREADS < 7
14256 #define NULL (void*)0
14259 static void *task(p)
14262 return (void *) (p == NULL);
14267 /* pthread test function */
14268 #ifndef PTHREAD_CREATE_DETACHED
14269 #define PTHREAD_CREATE_DETACHED 1
14273 int detach = PTHREAD_CREATE_DETACHED;
14275 #if HAVE_PTHREADS > 4
14276 /* Final pthreads */
14277 pthread_attr_t attr;
14279 status = pthread_attr_init(&attr);
14280 if( status ) return status;
14282 #if HAVE_PTHREADS < 7
14283 status = pthread_attr_setdetachstate(&attr, &detach);
14284 if( status < 0 ) status = errno;
14286 status = pthread_attr_setdetachstate(&attr, detach);
14288 if( status ) return status;
14289 status = pthread_create( &t, &attr, task, NULL );
14290 #if HAVE_PTHREADS < 7
14291 if( status < 0 ) status = errno;
14293 if( status ) return status;
14295 /* Draft 4 pthreads */
14296 status = pthread_create( &t, pthread_attr_default, task, NULL );
14297 if( status ) return errno;
14299 /* give thread a chance to complete */
14300 /* it should remain joinable and hence detachable */
14303 status = pthread_detach( &t );
14304 if( status ) return errno;
14307 #ifdef HAVE_LINUX_THREADS
14308 pthread_kill_other_threads_np();
14315 if { (eval echo configure:14316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14317 ol_cv_pthread_lpthreads_lmach_lexc=yes
14319 echo "configure: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14322 ol_cv_pthread_lpthreads_lmach_lexc=no
14326 cat > conftest.$ac_ext <<EOF
14327 #line 14328 "configure"
14328 #include "confdefs.h"
14329 /* pthread test headers */
14330 #include <pthread.h>
14331 #if HAVE_PTHREADS < 7
14335 #define NULL (void*)0
14338 static void *task(p)
14341 return (void *) (p == NULL);
14345 int main(argc, argv)
14350 /* pthread test function */
14351 #ifndef PTHREAD_CREATE_DETACHED
14352 #define PTHREAD_CREATE_DETACHED 1
14356 int detach = PTHREAD_CREATE_DETACHED;
14358 #if HAVE_PTHREADS > 4
14359 /* Final pthreads */
14360 pthread_attr_t attr;
14362 status = pthread_attr_init(&attr);
14363 if( status ) return status;
14365 #if HAVE_PTHREADS < 7
14366 status = pthread_attr_setdetachstate(&attr, &detach);
14367 if( status < 0 ) status = errno;
14369 status = pthread_attr_setdetachstate(&attr, detach);
14371 if( status ) return status;
14372 status = pthread_create( &t, &attr, task, NULL );
14373 #if HAVE_PTHREADS < 7
14374 if( status < 0 ) status = errno;
14376 if( status ) return status;
14378 /* Draft 4 pthreads */
14379 status = pthread_create( &t, pthread_attr_default, task, NULL );
14380 if( status ) return errno;
14382 /* give thread a chance to complete */
14383 /* it should remain joinable and hence detachable */
14386 status = pthread_detach( &t );
14387 if( status ) return errno;
14390 #ifdef HAVE_LINUX_THREADS
14391 pthread_kill_other_threads_np();
14399 if { (eval echo configure:14400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14401 ol_cv_pthread_lpthreads_lmach_lexc=yes
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14406 ol_cv_pthread_lpthreads_lmach_lexc=no
14417 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14419 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14420 ol_link_pthreads="-lpthreads -lmach -lexc"
14421 ol_link_threads=posix
14425 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14426 if test "$ol_link_threads" = no ; then
14427 # try -lpthreads -lexc
14428 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14429 echo "configure:14430: checking for pthread link with -lpthreads -lexc" >&5
14430 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14431 echo $ac_n "(cached) $ac_c" 1>&6
14436 LIBS="-lpthreads -lexc $LIBS"
14438 if test "$cross_compiling" = yes; then
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442 /* pthread test headers */
14443 #include <pthread.h>
14444 #if HAVE_PTHREADS < 7
14448 #define NULL (void*)0
14451 static void *task(p)
14454 return (void *) (p == NULL);
14459 /* pthread test function */
14460 #ifndef PTHREAD_CREATE_DETACHED
14461 #define PTHREAD_CREATE_DETACHED 1
14465 int detach = PTHREAD_CREATE_DETACHED;
14467 #if HAVE_PTHREADS > 4
14468 /* Final pthreads */
14469 pthread_attr_t attr;
14471 status = pthread_attr_init(&attr);
14472 if( status ) return status;
14474 #if HAVE_PTHREADS < 7
14475 status = pthread_attr_setdetachstate(&attr, &detach);
14476 if( status < 0 ) status = errno;
14478 status = pthread_attr_setdetachstate(&attr, detach);
14480 if( status ) return status;
14481 status = pthread_create( &t, &attr, task, NULL );
14482 #if HAVE_PTHREADS < 7
14483 if( status < 0 ) status = errno;
14485 if( status ) return status;
14487 /* Draft 4 pthreads */
14488 status = pthread_create( &t, pthread_attr_default, task, NULL );
14489 if( status ) return errno;
14491 /* give thread a chance to complete */
14492 /* it should remain joinable and hence detachable */
14495 status = pthread_detach( &t );
14496 if( status ) return errno;
14499 #ifdef HAVE_LINUX_THREADS
14500 pthread_kill_other_threads_np();
14507 if { (eval echo configure:14508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14509 ol_cv_pthread_lpthreads_lexc=yes
14511 echo "configure: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14514 ol_cv_pthread_lpthreads_lexc=no
14518 cat > conftest.$ac_ext <<EOF
14519 #line 14520 "configure"
14520 #include "confdefs.h"
14521 /* pthread test headers */
14522 #include <pthread.h>
14523 #if HAVE_PTHREADS < 7
14527 #define NULL (void*)0
14530 static void *task(p)
14533 return (void *) (p == NULL);
14537 int main(argc, argv)
14542 /* pthread test function */
14543 #ifndef PTHREAD_CREATE_DETACHED
14544 #define PTHREAD_CREATE_DETACHED 1
14548 int detach = PTHREAD_CREATE_DETACHED;
14550 #if HAVE_PTHREADS > 4
14551 /* Final pthreads */
14552 pthread_attr_t attr;
14554 status = pthread_attr_init(&attr);
14555 if( status ) return status;
14557 #if HAVE_PTHREADS < 7
14558 status = pthread_attr_setdetachstate(&attr, &detach);
14559 if( status < 0 ) status = errno;
14561 status = pthread_attr_setdetachstate(&attr, detach);
14563 if( status ) return status;
14564 status = pthread_create( &t, &attr, task, NULL );
14565 #if HAVE_PTHREADS < 7
14566 if( status < 0 ) status = errno;
14568 if( status ) return status;
14570 /* Draft 4 pthreads */
14571 status = pthread_create( &t, pthread_attr_default, task, NULL );
14572 if( status ) return errno;
14574 /* give thread a chance to complete */
14575 /* it should remain joinable and hence detachable */
14578 status = pthread_detach( &t );
14579 if( status ) return errno;
14582 #ifdef HAVE_LINUX_THREADS
14583 pthread_kill_other_threads_np();
14591 if { (eval echo configure:14592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14593 ol_cv_pthread_lpthreads_lexc=yes
14595 echo "configure: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14598 ol_cv_pthread_lpthreads_lexc=no
14609 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14611 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14612 ol_link_pthreads="-lpthreads -lexc"
14613 ol_link_threads=posix
14618 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14619 if test "$ol_link_threads" = no ; then
14621 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14622 echo "configure:14623: checking for pthread link with -lpthreads" >&5
14623 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14624 echo $ac_n "(cached) $ac_c" 1>&6
14629 LIBS="-lpthreads $LIBS"
14631 if test "$cross_compiling" = yes; then
14632 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 /* pthread test headers */
14636 #include <pthread.h>
14637 #if HAVE_PTHREADS < 7
14641 #define NULL (void*)0
14644 static void *task(p)
14647 return (void *) (p == NULL);
14652 /* pthread test function */
14653 #ifndef PTHREAD_CREATE_DETACHED
14654 #define PTHREAD_CREATE_DETACHED 1
14658 int detach = PTHREAD_CREATE_DETACHED;
14660 #if HAVE_PTHREADS > 4
14661 /* Final pthreads */
14662 pthread_attr_t attr;
14664 status = pthread_attr_init(&attr);
14665 if( status ) return status;
14667 #if HAVE_PTHREADS < 7
14668 status = pthread_attr_setdetachstate(&attr, &detach);
14669 if( status < 0 ) status = errno;
14671 status = pthread_attr_setdetachstate(&attr, detach);
14673 if( status ) return status;
14674 status = pthread_create( &t, &attr, task, NULL );
14675 #if HAVE_PTHREADS < 7
14676 if( status < 0 ) status = errno;
14678 if( status ) return status;
14680 /* Draft 4 pthreads */
14681 status = pthread_create( &t, pthread_attr_default, task, NULL );
14682 if( status ) return errno;
14684 /* give thread a chance to complete */
14685 /* it should remain joinable and hence detachable */
14688 status = pthread_detach( &t );
14689 if( status ) return errno;
14692 #ifdef HAVE_LINUX_THREADS
14693 pthread_kill_other_threads_np();
14700 if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 ol_cv_pthread_lib_lpthreads=yes
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14707 ol_cv_pthread_lib_lpthreads=no
14711 cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 /* pthread test headers */
14715 #include <pthread.h>
14716 #if HAVE_PTHREADS < 7
14720 #define NULL (void*)0
14723 static void *task(p)
14726 return (void *) (p == NULL);
14730 int main(argc, argv)
14735 /* pthread test function */
14736 #ifndef PTHREAD_CREATE_DETACHED
14737 #define PTHREAD_CREATE_DETACHED 1
14741 int detach = PTHREAD_CREATE_DETACHED;
14743 #if HAVE_PTHREADS > 4
14744 /* Final pthreads */
14745 pthread_attr_t attr;
14747 status = pthread_attr_init(&attr);
14748 if( status ) return status;
14750 #if HAVE_PTHREADS < 7
14751 status = pthread_attr_setdetachstate(&attr, &detach);
14752 if( status < 0 ) status = errno;
14754 status = pthread_attr_setdetachstate(&attr, detach);
14756 if( status ) return status;
14757 status = pthread_create( &t, &attr, task, NULL );
14758 #if HAVE_PTHREADS < 7
14759 if( status < 0 ) status = errno;
14761 if( status ) return status;
14763 /* Draft 4 pthreads */
14764 status = pthread_create( &t, pthread_attr_default, task, NULL );
14765 if( status ) return errno;
14767 /* give thread a chance to complete */
14768 /* it should remain joinable and hence detachable */
14771 status = pthread_detach( &t );
14772 if( status ) return errno;
14775 #ifdef HAVE_LINUX_THREADS
14776 pthread_kill_other_threads_np();
14784 if { (eval echo configure:14785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14786 ol_cv_pthread_lib_lpthreads=yes
14788 echo "configure: failed program was:" >&5
14789 cat conftest.$ac_ext >&5
14791 ol_cv_pthread_lib_lpthreads=no
14802 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14804 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14805 ol_link_pthreads="-lpthreads"
14806 ol_link_threads=posix
14811 if test $ol_link_threads != no ; then
14812 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14814 save_CPPFLAGS="$CPPFLAGS"
14816 LIBS="$LTHREAD_LIBS $LIBS"
14818 for ac_func in sched_yield pthread_yield thr_yield
14820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14821 echo "configure:14822: checking for $ac_func" >&5
14822 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14823 echo $ac_n "(cached) $ac_c" 1>&6
14825 cat > conftest.$ac_ext <<EOF
14826 #line 14827 "configure"
14827 #include "confdefs.h"
14828 /* System header to define __stub macros and hopefully few prototypes,
14829 which can conflict with char $ac_func(); below. */
14830 #include <assert.h>
14831 /* Override any gcc2 internal prototype to avoid an error. */
14832 /* We use char because int might match the return type of a gcc2
14833 builtin and then its argument prototype would still apply. */
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14850 if { (eval echo configure:14851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14852 eval "ac_cv_func_$ac_func=yes"
14854 echo "configure: failed program was:" >&5
14855 cat conftest.$ac_ext >&5
14857 eval "ac_cv_func_$ac_func=no"
14862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14863 echo "$ac_t""yes" 1>&6
14864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14865 cat >> confdefs.h <<EOF
14866 #define $ac_tr_func 1
14870 echo "$ac_t""no" 1>&6
14875 if test $ac_cv_func_sched_yield = no -a \
14876 $ac_cv_func_pthread_yield = no -a \
14877 $ac_cv_func_thr_yield = no ; then
14878 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14879 echo "configure:14880: checking for sched_yield in -lrt" >&5
14880 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14881 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14882 echo $ac_n "(cached) $ac_c" 1>&6
14884 ac_save_LIBS="$LIBS"
14886 cat > conftest.$ac_ext <<EOF
14887 #line 14888 "configure"
14888 #include "confdefs.h"
14889 /* Override any gcc2 internal prototype to avoid an error. */
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892 char sched_yield();
14898 if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14900 eval "ac_cv_lib_$ac_lib_var=yes"
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14905 eval "ac_cv_lib_$ac_lib_var=no"
14908 LIBS="$ac_save_LIBS"
14911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14912 echo "$ac_t""yes" 1>&6
14913 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14914 cat >> confdefs.h <<\EOF
14915 #define HAVE_SCHED_YIELD 1
14918 ac_cv_func_sched_yield=yes
14920 echo "$ac_t""no" 1>&6
14921 ac_cv_func_sched_yield=no
14925 if test $ac_cv_func_sched_yield = no -a \
14926 $ac_cv_func_pthread_yield = no -a \
14927 "$ac_cv_func_thr_yield" = no ; then
14928 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14931 for ac_func in pthread_kill pthread_rwlock_destroy
14933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14934 echo "configure:14935: checking for $ac_func" >&5
14935 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14936 echo $ac_n "(cached) $ac_c" 1>&6
14938 cat > conftest.$ac_ext <<EOF
14939 #line 14940 "configure"
14940 #include "confdefs.h"
14941 /* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func(); below. */
14943 #include <assert.h>
14944 /* Override any gcc2 internal prototype to avoid an error. */
14945 /* We use char because int might match the return type of a gcc2
14946 builtin and then its argument prototype would still apply. */
14952 /* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14963 if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14965 eval "ac_cv_func_$ac_func=yes"
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14970 eval "ac_cv_func_$ac_func=no"
14975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14978 cat >> confdefs.h <<EOF
14979 #define $ac_tr_func 1
14983 echo "$ac_t""no" 1>&6
14988 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14989 echo "configure:14990: checking for pthread_detach with <pthread.h>" >&5
14990 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14991 echo $ac_n "(cached) $ac_c" 1>&6
14994 cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14998 #include <pthread.h>
15000 #define NULL (void*)0
15004 pthread_detach(NULL);
15007 if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15009 ol_cv_func_pthread_detach=yes
15011 echo "configure: failed program was:" >&5
15012 cat conftest.$ac_ext >&5
15014 ol_cv_func_pthread_detach=no
15020 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15022 if test $ol_cv_func_pthread_detach = no ; then
15023 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15026 cat >> confdefs.h <<\EOF
15027 #define HAVE_PTHREAD_DETACH 1
15032 pthread_setconcurrency \
15033 pthread_getconcurrency \
15034 thr_setconcurrency \
15035 thr_getconcurrency \
15038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15039 echo "configure:15040: checking for $ac_func" >&5
15040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15041 echo $ac_n "(cached) $ac_c" 1>&6
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 /* System header to define __stub macros and hopefully few prototypes,
15047 which can conflict with char $ac_func(); below. */
15048 #include <assert.h>
15049 /* Override any gcc2 internal prototype to avoid an error. */
15050 /* We use char because int might match the return type of a gcc2
15051 builtin and then its argument prototype would still apply. */
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070 eval "ac_cv_func_$ac_func=yes"
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 eval "ac_cv_func_$ac_func=no"
15080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15083 cat >> confdefs.h <<EOF
15084 #define $ac_tr_func 1
15088 echo "$ac_t""no" 1>&6
15094 for ac_func in pthread_kill_other_threads_np
15096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15097 echo "configure:15098: checking for $ac_func" >&5
15098 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15101 cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 /* System header to define __stub macros and hopefully few prototypes,
15105 which can conflict with char $ac_func(); below. */
15106 #include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error. */
15108 /* We use char because int might match the return type of a gcc2
15109 builtin and then its argument prototype would still apply. */
15115 /* The GNU C library defines this for functions which it implements
15116 to always fail with ENOSYS. Some functions are actually named
15117 something starting with __ and the normal name is an alias. */
15118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15126 if { (eval echo configure:15127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15128 eval "ac_cv_func_$ac_func=yes"
15130 echo "configure: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15133 eval "ac_cv_func_$ac_func=no"
15138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15139 echo "$ac_t""yes" 1>&6
15140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15141 cat >> confdefs.h <<EOF
15142 #define $ac_tr_func 1
15146 echo "$ac_t""no" 1>&6
15150 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15151 echo "configure:15152: checking for LinuxThreads implementation" >&5
15152 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15153 echo $ac_n "(cached) $ac_c" 1>&6
15155 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15158 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15163 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15164 echo "configure:15165: checking for LinuxThreads consistency" >&5
15165 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15166 echo $ac_n "(cached) $ac_c" 1>&6
15169 if test $ol_cv_header_linux_threads = yes -a \
15170 $ol_cv_sys_linux_threads = yes; then
15171 ol_cv_linux_threads=yes
15172 elif test $ol_cv_header_linux_threads = no -a \
15173 $ol_cv_sys_linux_threads = no; then
15174 ol_cv_linux_threads=no
15176 ol_cv_linux_threads=error
15181 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15184 if test $ol_cv_linux_threads = error; then
15185 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15188 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15189 echo "configure:15190: checking if pthread_create() works" >&5
15190 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15191 echo $ac_n "(cached) $ac_c" 1>&6
15194 if test "$cross_compiling" = yes; then
15195 ol_cv_pthread_create_works=yes
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200 /* pthread test headers */
15201 #include <pthread.h>
15202 #if HAVE_PTHREADS < 7
15206 #define NULL (void*)0
15209 static void *task(p)
15212 return (void *) (p == NULL);
15216 int main(argc, argv)
15221 /* pthread test function */
15222 #ifndef PTHREAD_CREATE_DETACHED
15223 #define PTHREAD_CREATE_DETACHED 1
15227 int detach = PTHREAD_CREATE_DETACHED;
15229 #if HAVE_PTHREADS > 4
15230 /* Final pthreads */
15231 pthread_attr_t attr;
15233 status = pthread_attr_init(&attr);
15234 if( status ) return status;
15236 #if HAVE_PTHREADS < 7
15237 status = pthread_attr_setdetachstate(&attr, &detach);
15238 if( status < 0 ) status = errno;
15240 status = pthread_attr_setdetachstate(&attr, detach);
15242 if( status ) return status;
15243 status = pthread_create( &t, &attr, task, NULL );
15244 #if HAVE_PTHREADS < 7
15245 if( status < 0 ) status = errno;
15247 if( status ) return status;
15249 /* Draft 4 pthreads */
15250 status = pthread_create( &t, pthread_attr_default, task, NULL );
15251 if( status ) return errno;
15253 /* give thread a chance to complete */
15254 /* it should remain joinable and hence detachable */
15257 status = pthread_detach( &t );
15258 if( status ) return errno;
15261 #ifdef HAVE_LINUX_THREADS
15262 pthread_kill_other_threads_np();
15270 if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15272 ol_cv_pthread_create_works=yes
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15277 ol_cv_pthread_create_works=no
15284 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15286 if test $ol_cv_pthread_create_works = no ; then
15287 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15290 if test $ol_with_yielding_select = auto ; then
15291 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15292 echo "configure:15293: checking if select yields when using pthreads" >&5
15293 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15294 echo $ac_n "(cached) $ac_c" 1>&6
15297 if test "$cross_compiling" = yes; then
15298 ol_cv_pthread_select_yields=cross
15300 cat > conftest.$ac_ext <<EOF
15301 #line 15302 "configure"
15302 #include "confdefs.h"
15304 #include <sys/types.h>
15305 #include <sys/time.h>
15306 #include <unistd.h>
15307 #include <pthread.h>
15309 #define NULL (void*) 0
15312 static int fildes[2];
15314 static void *task(p)
15326 FD_SET(fildes[0], &rfds);
15328 /* we're not interested in any fds */
15329 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15336 exit(0); /* if we exit here, the select blocked the whole process */
15339 int main(argc, argv)
15345 /* create a pipe to select */
15346 if(pipe(&fildes[0])) {
15351 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15352 (void) pthread_setconcurrency(2);
15354 #ifdef HAVE_THR_SETCONCURRENCY
15355 /* Set Solaris LWP concurrency to 2 */
15356 thr_setconcurrency(2);
15360 #if HAVE_PTHREADS < 6
15361 pthread_create(&t, pthread_attr_default, task, NULL);
15363 pthread_create(&t, NULL, task, NULL);
15366 /* make sure task runs first */
15369 #elif defined( HAVE_SCHED_YIELD )
15371 #elif defined( HAVE_PTHREAD_YIELD )
15378 if { (eval echo configure:15379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15380 ol_cv_pthread_select_yields=no
15382 echo "configure: failed program was:" >&5
15383 cat conftest.$ac_ext >&5
15385 ol_cv_pthread_select_yields=yes
15392 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15394 if test $ol_cv_pthread_select_yields = cross ; then
15395 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15398 if test $ol_cv_pthread_select_yields = yes ; then
15399 ol_with_yielding_select=yes
15403 CPPFLAGS="$save_CPPFLAGS"
15406 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15410 if test $ol_with_threads = posix ; then
15411 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15415 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15416 -o $ol_with_threads = mach ; then
15418 for ac_hdr in mach/cthreads.h cthreads.h
15420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15422 echo "configure:15423: checking for $ac_hdr" >&5
15423 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15424 echo $ac_n "(cached) $ac_c" 1>&6
15426 cat > conftest.$ac_ext <<EOF
15427 #line 15428 "configure"
15428 #include "confdefs.h"
15431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15432 { (eval echo configure:15433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15434 if test -z "$ac_err"; then
15436 eval "ac_cv_header_$ac_safe=yes"
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15442 eval "ac_cv_header_$ac_safe=no"
15446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15447 echo "$ac_t""yes" 1>&6
15448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15449 cat >> confdefs.h <<EOF
15450 #define $ac_tr_hdr 1
15454 echo "$ac_t""no" 1>&6
15458 if test $ac_cv_header_mach_cthreads_h = yes ; then
15459 ol_with_threads=found
15461 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15462 echo "configure:15463: checking for cthread_fork" >&5
15463 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15464 echo $ac_n "(cached) $ac_c" 1>&6
15466 cat > conftest.$ac_ext <<EOF
15467 #line 15468 "configure"
15468 #include "confdefs.h"
15469 /* System header to define __stub macros and hopefully few prototypes,
15470 which can conflict with char cthread_fork(); below. */
15471 #include <assert.h>
15472 /* Override any gcc2 internal prototype to avoid an error. */
15473 /* We use char because int might match the return type of a gcc2
15474 builtin and then its argument prototype would still apply. */
15475 char cthread_fork();
15480 /* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15491 if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15493 eval "ac_cv_func_cthread_fork=yes"
15495 echo "configure: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15498 eval "ac_cv_func_cthread_fork=no"
15503 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15504 echo "$ac_t""yes" 1>&6
15505 ol_link_threads=yes
15507 echo "$ac_t""no" 1>&6
15511 if test $ol_link_threads = no ; then
15512 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15513 echo "configure:15514: checking for cthread_fork with -all_load" >&5
15514 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
15519 LIBS="-all_load $LIBS"
15520 cat > conftest.$ac_ext <<EOF
15521 #line 15522 "configure"
15522 #include "confdefs.h"
15523 #include <mach/cthreads.h>
15526 cthread_fork((void *)0, (void *)0);
15530 if { (eval echo configure:15531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15532 ol_cv_cthread_all_load=yes
15534 echo "configure: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15537 ol_cv_cthread_all_load=no
15544 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15546 if test $ol_cv_cthread_all_load = yes ; then
15547 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15548 ol_link_threads=mach
15549 ol_with_threads=found
15553 elif test $ac_cv_header_cthreads_h = yes ; then
15555 ol_with_threads=found
15558 LIBS="$LIBS -lthreads"
15559 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15560 echo "configure:15561: checking for cthread_fork" >&5
15561 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15564 cat > conftest.$ac_ext <<EOF
15565 #line 15566 "configure"
15566 #include "confdefs.h"
15567 /* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char cthread_fork(); below. */
15569 #include <assert.h>
15570 /* Override any gcc2 internal prototype to avoid an error. */
15571 /* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15573 char cthread_fork();
15578 /* The GNU C library defines this for functions which it implements
15579 to always fail with ENOSYS. Some functions are actually named
15580 something starting with __ and the normal name is an alias. */
15581 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15589 if { (eval echo configure:15590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15591 eval "ac_cv_func_cthread_fork=yes"
15593 echo "configure: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15596 eval "ac_cv_func_cthread_fork=no"
15601 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15602 echo "$ac_t""yes" 1>&6
15603 ol_link_threads=yes
15605 echo "$ac_t""no" 1>&6
15610 if test $ol_link_threads = yes ; then
15611 LTHREAD_LIBS="-lthreads"
15612 ol_link_threads=mach
15613 ol_with_threads=found
15615 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15618 elif test $ol_with_threads = mach ; then
15619 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15622 if test $ol_link_threads = mach ; then
15623 cat >> confdefs.h <<\EOF
15624 #define HAVE_MACH_CTHREADS 1
15627 elif test $ol_with_threads = found ; then
15628 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15632 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15633 -o $ol_with_threads = pth ; then
15635 for ac_hdr in pth.h
15637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15639 echo "configure:15640: checking for $ac_hdr" >&5
15640 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15649 { (eval echo configure:15650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15651 if test -z "$ac_err"; then
15653 eval "ac_cv_header_$ac_safe=yes"
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15659 eval "ac_cv_header_$ac_safe=no"
15663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15664 echo "$ac_t""yes" 1>&6
15665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15666 cat >> confdefs.h <<EOF
15667 #define $ac_tr_hdr 1
15671 echo "$ac_t""no" 1>&6
15676 if test $ac_cv_header_pth_h = yes ; then
15677 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15678 echo "configure:15679: checking for pth_version in -lpth" >&5
15679 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15681 echo $ac_n "(cached) $ac_c" 1>&6
15683 ac_save_LIBS="$LIBS"
15685 cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 /* Override any gcc2 internal prototype to avoid an error. */
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15691 char pth_version();
15697 if { (eval echo configure:15698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15699 eval "ac_cv_lib_$ac_lib_var=yes"
15701 echo "configure: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 eval "ac_cv_lib_$ac_lib_var=no"
15707 LIBS="$ac_save_LIBS"
15710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15711 echo "$ac_t""yes" 1>&6
15714 echo "$ac_t""no" 1>&6
15719 if test $have_pth = yes ; then
15720 cat >> confdefs.h <<\EOF
15721 #define HAVE_GNU_PTH 1
15724 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15725 ol_link_threads=pth
15726 ol_with_threads=found
15728 if test $ol_with_yielding_select = auto ; then
15729 ol_with_yielding_select=yes
15735 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15736 -o $ol_with_threads = lwp ; then
15738 for ac_hdr in thread.h synch.h
15740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15742 echo "configure:15743: checking for $ac_hdr" >&5
15743 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15744 echo $ac_n "(cached) $ac_c" 1>&6
15746 cat > conftest.$ac_ext <<EOF
15747 #line 15748 "configure"
15748 #include "confdefs.h"
15751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15752 { (eval echo configure:15753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15754 if test -z "$ac_err"; then
15756 eval "ac_cv_header_$ac_safe=yes"
15759 echo "configure: failed program was:" >&5
15760 cat conftest.$ac_ext >&5
15762 eval "ac_cv_header_$ac_safe=no"
15766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15767 echo "$ac_t""yes" 1>&6
15768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15769 cat >> confdefs.h <<EOF
15770 #define $ac_tr_hdr 1
15774 echo "$ac_t""no" 1>&6
15778 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15779 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15780 echo "configure:15781: checking for thr_create in -lthread" >&5
15781 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15782 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15785 ac_save_LIBS="$LIBS"
15786 LIBS="-lthread $LIBS"
15787 cat > conftest.$ac_ext <<EOF
15788 #line 15789 "configure"
15789 #include "confdefs.h"
15790 /* Override any gcc2 internal prototype to avoid an error. */
15791 /* We use char because int might match the return type of a gcc2
15792 builtin and then its argument prototype would still apply. */
15799 if { (eval echo configure:15800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15801 eval "ac_cv_lib_$ac_lib_var=yes"
15803 echo "configure: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15806 eval "ac_cv_lib_$ac_lib_var=no"
15809 LIBS="$ac_save_LIBS"
15812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15813 echo "$ac_t""yes" 1>&6
15816 echo "$ac_t""no" 1>&6
15821 if test $have_thr = yes ; then
15822 cat >> confdefs.h <<\EOF
15826 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15827 ol_link_threads=thr
15829 if test $ol_with_yielding_select = auto ; then
15830 ol_with_yielding_select=yes
15834 thr_setconcurrency \
15835 thr_getconcurrency \
15838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15839 echo "configure:15840: checking for $ac_func" >&5
15840 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15841 echo $ac_n "(cached) $ac_c" 1>&6
15843 cat > conftest.$ac_ext <<EOF
15844 #line 15845 "configure"
15845 #include "confdefs.h"
15846 /* System header to define __stub macros and hopefully few prototypes,
15847 which can conflict with char $ac_func(); below. */
15848 #include <assert.h>
15849 /* Override any gcc2 internal prototype to avoid an error. */
15850 /* We use char because int might match the return type of a gcc2
15851 builtin and then its argument prototype would still apply. */
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15868 if { (eval echo configure:15869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15870 eval "ac_cv_func_$ac_func=yes"
15872 echo "configure: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15875 eval "ac_cv_func_$ac_func=no"
15880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15881 echo "$ac_t""yes" 1>&6
15882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15883 cat >> confdefs.h <<EOF
15884 #define $ac_tr_func 1
15888 echo "$ac_t""no" 1>&6
15895 for ac_hdr in lwp/lwp.h
15897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15899 echo "configure:15900: checking for $ac_hdr" >&5
15900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15901 echo $ac_n "(cached) $ac_c" 1>&6
15903 cat > conftest.$ac_ext <<EOF
15904 #line 15905 "configure"
15905 #include "confdefs.h"
15908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15909 { (eval echo configure:15910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15911 if test -z "$ac_err"; then
15913 eval "ac_cv_header_$ac_safe=yes"
15916 echo "configure: failed program was:" >&5
15917 cat conftest.$ac_ext >&5
15919 eval "ac_cv_header_$ac_safe=no"
15923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15924 echo "$ac_t""yes" 1>&6
15925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15926 cat >> confdefs.h <<EOF
15927 #define $ac_tr_hdr 1
15931 echo "$ac_t""no" 1>&6
15935 if test $ac_cv_header_lwp_lwp_h = yes ; then
15936 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15937 echo "configure:15938: checking for lwp_create in -llwp" >&5
15938 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15940 echo $ac_n "(cached) $ac_c" 1>&6
15942 ac_save_LIBS="$LIBS"
15944 cat > conftest.$ac_ext <<EOF
15945 #line 15946 "configure"
15946 #include "confdefs.h"
15947 /* Override any gcc2 internal prototype to avoid an error. */
15948 /* We use char because int might match the return type of a gcc2
15949 builtin and then its argument prototype would still apply. */
15956 if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15958 eval "ac_cv_lib_$ac_lib_var=yes"
15960 echo "configure: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15963 eval "ac_cv_lib_$ac_lib_var=no"
15966 LIBS="$ac_save_LIBS"
15969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15970 echo "$ac_t""yes" 1>&6
15973 echo "$ac_t""no" 1>&6
15978 if test $have_lwp = yes ; then
15979 cat >> confdefs.h <<\EOF
15983 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15984 ol_link_threads=lwp
15986 if test $ol_with_yielding_select = auto ; then
15987 ol_with_yielding_select=no
15993 if test $ol_with_yielding_select = yes ; then
15994 cat >> confdefs.h <<\EOF
15995 #define HAVE_YIELDING_SELECT 1
16000 if test $ol_with_threads = manual ; then
16001 ol_link_threads=yes
16003 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16005 for ac_hdr in pthread.h sched.h
16007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16009 echo "configure:16010: checking for $ac_hdr" >&5
16010 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16013 cat > conftest.$ac_ext <<EOF
16014 #line 16015 "configure"
16015 #include "confdefs.h"
16018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16019 { (eval echo configure:16020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16021 if test -z "$ac_err"; then
16023 eval "ac_cv_header_$ac_safe=yes"
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16029 eval "ac_cv_header_$ac_safe=no"
16033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16034 echo "$ac_t""yes" 1>&6
16035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16036 cat >> confdefs.h <<EOF
16037 #define $ac_tr_hdr 1
16041 echo "$ac_t""no" 1>&6
16045 for ac_func in sched_yield pthread_yield
16047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16048 echo "configure:16049: checking for $ac_func" >&5
16049 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
16052 cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055 /* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char $ac_func(); below. */
16057 #include <assert.h>
16058 /* Override any gcc2 internal prototype to avoid an error. */
16059 /* We use char because int might match the return type of a gcc2
16060 builtin and then its argument prototype would still apply. */
16066 /* The GNU C library defines this for functions which it implements
16067 to always fail with ENOSYS. Some functions are actually named
16068 something starting with __ and the normal name is an alias. */
16069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16077 if { (eval echo configure:16078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16079 eval "ac_cv_func_$ac_func=yes"
16081 echo "configure: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16084 eval "ac_cv_func_$ac_func=no"
16089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16090 echo "$ac_t""yes" 1>&6
16091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16092 cat >> confdefs.h <<EOF
16093 #define $ac_tr_func 1
16097 echo "$ac_t""no" 1>&6
16102 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16103 echo "configure:16104: checking for LinuxThreads pthread.h" >&5
16104 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16105 echo $ac_n "(cached) $ac_c" 1>&6
16107 cat > conftest.$ac_ext <<EOF
16108 #line 16109 "configure"
16109 #include "confdefs.h"
16110 #include <pthread.h>
16112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16113 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16115 ol_cv_header_linux_threads=yes
16118 ol_cv_header_linux_threads=no
16125 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16126 if test $ol_cv_header_linux_threads = yes; then
16127 cat >> confdefs.h <<\EOF
16128 #define HAVE_LINUX_THREADS 1
16134 for ac_hdr in mach/cthreads.h
16136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16138 echo "configure:16139: checking for $ac_hdr" >&5
16139 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16140 echo $ac_n "(cached) $ac_c" 1>&6
16142 cat > conftest.$ac_ext <<EOF
16143 #line 16144 "configure"
16144 #include "confdefs.h"
16147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16148 { (eval echo configure:16149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16150 if test -z "$ac_err"; then
16152 eval "ac_cv_header_$ac_safe=yes"
16155 echo "configure: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16158 eval "ac_cv_header_$ac_safe=no"
16162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16163 echo "$ac_t""yes" 1>&6
16164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16165 cat >> confdefs.h <<EOF
16166 #define $ac_tr_hdr 1
16170 echo "$ac_t""no" 1>&6
16174 for ac_hdr in lwp/lwp.h
16176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16178 echo "configure:16179: checking for $ac_hdr" >&5
16179 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16180 echo $ac_n "(cached) $ac_c" 1>&6
16182 cat > conftest.$ac_ext <<EOF
16183 #line 16184 "configure"
16184 #include "confdefs.h"
16187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16188 { (eval echo configure:16189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16190 if test -z "$ac_err"; then
16192 eval "ac_cv_header_$ac_safe=yes"
16195 echo "configure: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16198 eval "ac_cv_header_$ac_safe=no"
16202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16203 echo "$ac_t""yes" 1>&6
16204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16205 cat >> confdefs.h <<EOF
16206 #define $ac_tr_hdr 1
16210 echo "$ac_t""no" 1>&6
16214 for ac_hdr in thread.h synch.h
16216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16218 echo "configure:16219: checking for $ac_hdr" >&5
16219 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
16222 cat > conftest.$ac_ext <<EOF
16223 #line 16224 "configure"
16224 #include "confdefs.h"
16227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16228 { (eval echo configure:16229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16230 if test -z "$ac_err"; then
16232 eval "ac_cv_header_$ac_safe=yes"
16235 echo "configure: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16238 eval "ac_cv_header_$ac_safe=no"
16242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16243 echo "$ac_t""yes" 1>&6
16244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16245 cat >> confdefs.h <<EOF
16246 #define $ac_tr_hdr 1
16250 echo "$ac_t""no" 1>&6
16256 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16257 cat >> confdefs.h <<\EOF
16258 #define REENTRANT 1
16261 cat >> confdefs.h <<\EOF
16262 #define _REENTRANT 1
16265 cat >> confdefs.h <<\EOF
16266 #define THREAD_SAFE 1
16269 cat >> confdefs.h <<\EOF
16270 #define _THREAD_SAFE 1
16273 cat >> confdefs.h <<\EOF
16274 #define THREADSAFE 1
16277 cat >> confdefs.h <<\EOF
16278 #define _THREADSAFE 1
16281 cat >> confdefs.h <<\EOF
16282 #define _SGI_MP_SOURCE 1
16286 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16287 echo "configure:16288: checking for thread specific errno" >&5
16288 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16289 echo $ac_n "(cached) $ac_c" 1>&6
16292 cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16300 if { (eval echo configure:16301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16302 ol_cv_errno_thread_specific=yes
16304 echo "configure: failed program was:" >&5
16305 cat conftest.$ac_ext >&5
16307 ol_cv_errno_thread_specific=no
16313 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16315 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16316 echo "configure:16317: checking for thread specific h_errno" >&5
16317 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16318 echo $ac_n "(cached) $ac_c" 1>&6
16321 cat > conftest.$ac_ext <<EOF
16322 #line 16323 "configure"
16323 #include "confdefs.h"
16329 if { (eval echo configure:16330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16331 ol_cv_h_errno_thread_specific=yes
16333 echo "configure: failed program was:" >&5
16334 cat conftest.$ac_ext >&5
16336 ol_cv_h_errno_thread_specific=no
16342 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16344 if test $ol_cv_errno_thread_specific != yes \
16345 -o $ol_cv_h_errno_thread_specific != yes ; then
16346 LIBS="$LTHREAD_LIBS $LIBS"
16352 if test $ol_link_threads = no ; then
16353 if test $ol_with_threads = yes ; then
16354 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16357 if test $ol_with_threads = auto ; then
16358 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16362 cat >> confdefs.h <<\EOF
16363 #define NO_THREADS 1
16369 if test $ol_link_threads != no ; then
16370 cat >> confdefs.h <<\EOF
16371 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16378 gethostbyname_r gethostbyaddr_r \
16381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16382 echo "configure:16383: checking for $ac_func" >&5
16383 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func(); below. */
16391 #include <assert.h>
16392 /* Override any gcc2 internal prototype to avoid an error. */
16393 /* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16400 /* The GNU C library defines this for functions which it implements
16401 to always fail with ENOSYS. Some functions are actually named
16402 something starting with __ and the normal name is an alias. */
16403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16413 eval "ac_cv_func_$ac_func=yes"
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16418 eval "ac_cv_func_$ac_func=no"
16423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16424 echo "$ac_t""yes" 1>&6
16425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16426 cat >> confdefs.h <<EOF
16427 #define $ac_tr_func 1
16431 echo "$ac_t""no" 1>&6
16436 if test "$ac_cv_func_ctime_r" = no ; then
16437 ol_cv_func_ctime_r_nargs=0
16439 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16440 echo "configure:16441: checking number of arguments of ctime_r" >&5
16441 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16442 echo $ac_n "(cached) $ac_c" 1>&6
16444 cat > conftest.$ac_ext <<EOF
16445 #line 16446 "configure"
16446 #include "confdefs.h"
16449 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16452 if { (eval echo configure:16453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16454 ol_cv_func_ctime_r_nargs3=yes
16456 echo "configure: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16459 ol_cv_func_ctime_r_nargs3=no
16463 cat > conftest.$ac_ext <<EOF
16464 #line 16465 "configure"
16465 #include "confdefs.h"
16468 time_t ti; char *buffer; ctime_r(&ti,buffer);
16471 if { (eval echo configure:16472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16473 ol_cv_func_ctime_r_nargs2=yes
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16478 ol_cv_func_ctime_r_nargs2=no
16482 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16483 $ol_cv_func_ctime_r_nargs2 = no ; then
16485 ol_cv_func_ctime_r_nargs=3
16487 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16488 $ol_cv_func_ctime_r_nargs2 = yes ; then
16490 ol_cv_func_ctime_r_nargs=2
16493 ol_cv_func_ctime_r_nargs=0
16498 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16500 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16501 cat >> confdefs.h <<EOF
16502 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16509 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16510 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16511 echo "configure:16512: checking number of arguments of gethostbyname_r" >&5
16512 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16513 echo $ac_n "(cached) $ac_c" 1>&6
16515 cat > conftest.$ac_ext <<EOF
16516 #line 16517 "configure"
16517 #include "confdefs.h"
16518 #include <sys/types.h>
16519 #include <sys/socket.h>
16520 #include <netinet/in.h>
16522 #define BUFSIZE (sizeof(struct hostent)+10)
16524 struct hostent hent; char buffer[BUFSIZE];
16525 int bufsize=BUFSIZE;int h_errno;
16526 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16527 buffer, bufsize, &h_errno);
16530 if { (eval echo configure:16531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16532 ol_cv_func_gethostbyname_r_nargs5=yes
16534 echo "configure: failed program was:" >&5
16535 cat conftest.$ac_ext >&5
16537 ol_cv_func_gethostbyname_r_nargs5=no
16541 cat > conftest.$ac_ext <<EOF
16542 #line 16543 "configure"
16543 #include "confdefs.h"
16544 #include <sys/types.h>
16545 #include <sys/socket.h>
16546 #include <netinet/in.h>
16548 #define BUFSIZE (sizeof(struct hostent)+10)
16550 struct hostent hent;struct hostent *rhent;
16551 char buffer[BUFSIZE];
16552 int bufsize=BUFSIZE;int h_errno;
16553 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16557 if { (eval echo configure:16558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16559 ol_cv_func_gethostbyname_r_nargs6=yes
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16564 ol_cv_func_gethostbyname_r_nargs6=no
16568 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16569 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16571 ol_cv_func_gethostbyname_r_nargs=5
16573 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16574 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16576 ol_cv_func_gethostbyname_r_nargs=6
16579 ol_cv_func_gethostbyname_r_nargs=0
16584 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16585 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16586 cat >> confdefs.h <<EOF
16587 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16593 ol_cv_func_gethostbyname_r_nargs=0
16596 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16597 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16598 echo "configure:16599: checking number of arguments of gethostbyaddr_r" >&5
16599 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 #include <sys/types.h>
16606 #include <sys/socket.h>
16607 #include <netinet/in.h>
16609 #define BUFSIZE (sizeof(struct hostent)+10)
16611 struct hostent hent; char buffer[BUFSIZE];
16612 struct in_addr add;
16613 size_t alen=sizeof(struct in_addr);
16614 int bufsize=BUFSIZE;int h_errno;
16615 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16616 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16619 if { (eval echo configure:16620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16621 ol_cv_func_gethostbyaddr_r_nargs7=yes
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16626 ol_cv_func_gethostbyaddr_r_nargs7=no
16630 cat > conftest.$ac_ext <<EOF
16631 #line 16632 "configure"
16632 #include "confdefs.h"
16633 #include <sys/types.h>
16634 #include <sys/socket.h>
16635 #include <netinet/in.h>
16637 #define BUFSIZE (sizeof(struct hostent)+10)
16639 struct hostent hent;
16640 struct hostent *rhent; char buffer[BUFSIZE];
16641 struct in_addr add;
16642 size_t alen=sizeof(struct in_addr);
16643 int bufsize=BUFSIZE;int h_errno;
16644 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16645 alen, AF_INET, &hent, buffer, bufsize,
16649 if { (eval echo configure:16650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16651 ol_cv_func_gethostbyaddr_r_nargs8=yes
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16656 ol_cv_func_gethostbyaddr_r_nargs8=no
16660 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16661 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16663 ol_cv_func_gethostbyaddr_r_nargs=7
16665 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16666 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16668 ol_cv_func_gethostbyaddr_r_nargs=8
16671 ol_cv_func_gethostbyaddr_r_nargs=0
16676 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16677 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16678 cat >> confdefs.h <<EOF
16679 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16685 ol_cv_func_gethostbyaddr_r_nargs=0
16690 if test $ol_with_ldbm_api = auto \
16691 -o $ol_with_ldbm_api = berkeley \
16692 -o $ol_with_ldbm_api = bcompat ; then
16694 if test $ol_with_ldbm_api = bcompat; then \
16695 for ac_hdr in db_185.h db.h
16697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16699 echo "configure:16700: checking for $ac_hdr" >&5
16700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16701 echo $ac_n "(cached) $ac_c" 1>&6
16703 cat > conftest.$ac_ext <<EOF
16704 #line 16705 "configure"
16705 #include "confdefs.h"
16708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16709 { (eval echo configure:16710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16711 if test -z "$ac_err"; then
16713 eval "ac_cv_header_$ac_safe=yes"
16716 echo "configure: failed program was:" >&5
16717 cat conftest.$ac_ext >&5
16719 eval "ac_cv_header_$ac_safe=no"
16723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16724 echo "$ac_t""yes" 1>&6
16725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16726 cat >> confdefs.h <<EOF
16727 #define $ac_tr_hdr 1
16731 echo "$ac_t""no" 1>&6
16735 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16736 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16737 echo "configure:16738: checking if Berkeley DB header compatibility" >&5
16738 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16739 echo $ac_n "(cached) $ac_c" 1>&6
16742 cat > conftest.$ac_ext <<EOF
16743 #line 16744 "configure"
16744 #include "confdefs.h"
16747 # include <db_185.h>
16752 /* this check could be improved */
16753 #ifndef DB_VERSION_MAJOR
16754 # define DB_VERSION_MAJOR 1
16757 #if DB_VERSION_MAJOR == 1
16762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16763 egrep "__db_version_1" >/dev/null 2>&1; then
16765 ol_cv_header_db1=yes
16768 ol_cv_header_db1=no
16774 echo "$ac_t""$ol_cv_header_db1" 1>&6
16776 if test $ol_cv_header_db1 = yes ; then
16778 if test $ol_cv_lib_db = no ; then
16779 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16780 echo "configure:16781: checking for Berkeley DB link (default)" >&5
16781 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16782 echo $ac_n "(cached) $ac_c" 1>&6
16787 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16789 cat > conftest.$ac_ext <<EOF
16790 #line 16791 "configure"
16791 #include "confdefs.h"
16793 #ifdef HAVE_DB_185_H
16794 # include <db_185.h>
16799 #ifndef DB_VERSION_MAJOR
16800 # define DB_VERSION_MAJOR 1
16804 #define NULL ((void*)0)
16809 #if DB_VERSION_MAJOR > 1
16812 int major, minor, patch;
16814 version = db_version( &major, &minor, &patch );
16816 if( major != DB_VERSION_MAJOR ||
16817 minor < DB_VERSION_MINOR )
16819 printf("Berkeley DB version mismatch\n"
16820 "\texpected: %s\n\tgot: %s\n",
16821 DB_VERSION_STRING, version);
16827 #if DB_VERSION_MAJOR > 2
16828 db_env_create( NULL, 0 );
16829 #elif DB_VERSION_MAJOR > 1
16830 db_appexit( NULL );
16832 (void) dbopen( NULL, 0, 0, 0, NULL);
16837 if { (eval echo configure:16838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16841 echo "configure: failed program was:" >&5
16842 cat conftest.$ac_ext >&5
16852 echo "$ac_t""$ol_cv_db_none" 1>&6
16854 if test $ol_cv_db_none = yes ; then
16859 if test $ol_cv_lib_db = no ; then
16860 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16861 echo "configure:16862: checking for Berkeley DB link (-ldb42)" >&5
16862 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16868 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16870 cat > conftest.$ac_ext <<EOF
16871 #line 16872 "configure"
16872 #include "confdefs.h"
16874 #ifdef HAVE_DB_185_H
16875 # include <db_185.h>
16880 #ifndef DB_VERSION_MAJOR
16881 # define DB_VERSION_MAJOR 1
16885 #define NULL ((void*)0)
16890 #if DB_VERSION_MAJOR > 1
16893 int major, minor, patch;
16895 version = db_version( &major, &minor, &patch );
16897 if( major != DB_VERSION_MAJOR ||
16898 minor < DB_VERSION_MINOR )
16900 printf("Berkeley DB version mismatch\n"
16901 "\texpected: %s\n\tgot: %s\n",
16902 DB_VERSION_STRING, version);
16908 #if DB_VERSION_MAJOR > 2
16909 db_env_create( NULL, 0 );
16910 #elif DB_VERSION_MAJOR > 1
16911 db_appexit( NULL );
16913 (void) dbopen( NULL, 0, 0, 0, NULL);
16918 if { (eval echo configure:16919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16922 echo "configure: failed program was:" >&5
16923 cat conftest.$ac_ext >&5
16933 echo "$ac_t""$ol_cv_db_db42" 1>&6
16935 if test $ol_cv_db_db42 = yes ; then
16936 ol_cv_lib_db=-ldb42
16940 if test $ol_cv_lib_db = no ; then
16941 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16942 echo "configure:16943: checking for Berkeley DB link (-ldb-42)" >&5
16943 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16944 echo $ac_n "(cached) $ac_c" 1>&6
16949 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16951 cat > conftest.$ac_ext <<EOF
16952 #line 16953 "configure"
16953 #include "confdefs.h"
16955 #ifdef HAVE_DB_185_H
16956 # include <db_185.h>
16961 #ifndef DB_VERSION_MAJOR
16962 # define DB_VERSION_MAJOR 1
16966 #define NULL ((void*)0)
16971 #if DB_VERSION_MAJOR > 1
16974 int major, minor, patch;
16976 version = db_version( &major, &minor, &patch );
16978 if( major != DB_VERSION_MAJOR ||
16979 minor < DB_VERSION_MINOR )
16981 printf("Berkeley DB version mismatch\n"
16982 "\texpected: %s\n\tgot: %s\n",
16983 DB_VERSION_STRING, version);
16989 #if DB_VERSION_MAJOR > 2
16990 db_env_create( NULL, 0 );
16991 #elif DB_VERSION_MAJOR > 1
16992 db_appexit( NULL );
16994 (void) dbopen( NULL, 0, 0, 0, NULL);
16999 if { (eval echo configure:17000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17003 echo "configure: failed program was:" >&5
17004 cat conftest.$ac_ext >&5
17014 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17016 if test $ol_cv_db_db_42 = yes ; then
17017 ol_cv_lib_db=-ldb-42
17021 if test $ol_cv_lib_db = no ; then
17022 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17023 echo "configure:17024: checking for Berkeley DB link (-ldb-4.2)" >&5
17024 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17025 echo $ac_n "(cached) $ac_c" 1>&6
17030 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17032 cat > conftest.$ac_ext <<EOF
17033 #line 17034 "configure"
17034 #include "confdefs.h"
17036 #ifdef HAVE_DB_185_H
17037 # include <db_185.h>
17042 #ifndef DB_VERSION_MAJOR
17043 # define DB_VERSION_MAJOR 1
17047 #define NULL ((void*)0)
17052 #if DB_VERSION_MAJOR > 1
17055 int major, minor, patch;
17057 version = db_version( &major, &minor, &patch );
17059 if( major != DB_VERSION_MAJOR ||
17060 minor < DB_VERSION_MINOR )
17062 printf("Berkeley DB version mismatch\n"
17063 "\texpected: %s\n\tgot: %s\n",
17064 DB_VERSION_STRING, version);
17070 #if DB_VERSION_MAJOR > 2
17071 db_env_create( NULL, 0 );
17072 #elif DB_VERSION_MAJOR > 1
17073 db_appexit( NULL );
17075 (void) dbopen( NULL, 0, 0, 0, NULL);
17080 if { (eval echo configure:17081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17082 ol_cv_db_db_4_dot_2=yes
17084 echo "configure: failed program was:" >&5
17085 cat conftest.$ac_ext >&5
17087 ol_cv_db_db_4_dot_2=no
17095 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17097 if test $ol_cv_db_db_4_dot_2 = yes ; then
17098 ol_cv_lib_db=-ldb-4.2
17102 if test $ol_cv_lib_db = no ; then
17103 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17104 echo "configure:17105: checking for Berkeley DB link (-ldb-4-2)" >&5
17105 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17106 echo $ac_n "(cached) $ac_c" 1>&6
17111 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17113 cat > conftest.$ac_ext <<EOF
17114 #line 17115 "configure"
17115 #include "confdefs.h"
17117 #ifdef HAVE_DB_185_H
17118 # include <db_185.h>
17123 #ifndef DB_VERSION_MAJOR
17124 # define DB_VERSION_MAJOR 1
17128 #define NULL ((void*)0)
17133 #if DB_VERSION_MAJOR > 1
17136 int major, minor, patch;
17138 version = db_version( &major, &minor, &patch );
17140 if( major != DB_VERSION_MAJOR ||
17141 minor < DB_VERSION_MINOR )
17143 printf("Berkeley DB version mismatch\n"
17144 "\texpected: %s\n\tgot: %s\n",
17145 DB_VERSION_STRING, version);
17151 #if DB_VERSION_MAJOR > 2
17152 db_env_create( NULL, 0 );
17153 #elif DB_VERSION_MAJOR > 1
17154 db_appexit( NULL );
17156 (void) dbopen( NULL, 0, 0, 0, NULL);
17161 if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17163 ol_cv_db_db_4_2=yes
17165 echo "configure: failed program was:" >&5
17166 cat conftest.$ac_ext >&5
17176 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17178 if test $ol_cv_db_db_4_2 = yes ; then
17179 ol_cv_lib_db=-ldb-4-2
17183 if test $ol_cv_lib_db = no ; then
17184 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17185 echo "configure:17186: checking for Berkeley DB link (-ldb-4)" >&5
17186 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17187 echo $ac_n "(cached) $ac_c" 1>&6
17192 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17194 cat > conftest.$ac_ext <<EOF
17195 #line 17196 "configure"
17196 #include "confdefs.h"
17198 #ifdef HAVE_DB_185_H
17199 # include <db_185.h>
17204 #ifndef DB_VERSION_MAJOR
17205 # define DB_VERSION_MAJOR 1
17209 #define NULL ((void*)0)
17214 #if DB_VERSION_MAJOR > 1
17217 int major, minor, patch;
17219 version = db_version( &major, &minor, &patch );
17221 if( major != DB_VERSION_MAJOR ||
17222 minor < DB_VERSION_MINOR )
17224 printf("Berkeley DB version mismatch\n"
17225 "\texpected: %s\n\tgot: %s\n",
17226 DB_VERSION_STRING, version);
17232 #if DB_VERSION_MAJOR > 2
17233 db_env_create( NULL, 0 );
17234 #elif DB_VERSION_MAJOR > 1
17235 db_appexit( NULL );
17237 (void) dbopen( NULL, 0, 0, 0, NULL);
17242 if { (eval echo configure:17243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17246 echo "configure: failed program was:" >&5
17247 cat conftest.$ac_ext >&5
17257 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17259 if test $ol_cv_db_db_4 = yes ; then
17260 ol_cv_lib_db=-ldb-4
17264 if test $ol_cv_lib_db = no ; then
17265 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17266 echo "configure:17267: checking for Berkeley DB link (-ldb4)" >&5
17267 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17268 echo $ac_n "(cached) $ac_c" 1>&6
17273 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17275 cat > conftest.$ac_ext <<EOF
17276 #line 17277 "configure"
17277 #include "confdefs.h"
17279 #ifdef HAVE_DB_185_H
17280 # include <db_185.h>
17285 #ifndef DB_VERSION_MAJOR
17286 # define DB_VERSION_MAJOR 1
17290 #define NULL ((void*)0)
17295 #if DB_VERSION_MAJOR > 1
17298 int major, minor, patch;
17300 version = db_version( &major, &minor, &patch );
17302 if( major != DB_VERSION_MAJOR ||
17303 minor < DB_VERSION_MINOR )
17305 printf("Berkeley DB version mismatch\n"
17306 "\texpected: %s\n\tgot: %s\n",
17307 DB_VERSION_STRING, version);
17313 #if DB_VERSION_MAJOR > 2
17314 db_env_create( NULL, 0 );
17315 #elif DB_VERSION_MAJOR > 1
17316 db_appexit( NULL );
17318 (void) dbopen( NULL, 0, 0, 0, NULL);
17323 if { (eval echo configure:17324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17327 echo "configure: failed program was:" >&5
17328 cat conftest.$ac_ext >&5
17338 echo "$ac_t""$ol_cv_db_db4" 1>&6
17340 if test $ol_cv_db_db4 = yes ; then
17345 if test $ol_cv_lib_db = no ; then
17346 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17347 echo "configure:17348: checking for Berkeley DB link (-ldb)" >&5
17348 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17349 echo $ac_n "(cached) $ac_c" 1>&6
17354 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17356 cat > conftest.$ac_ext <<EOF
17357 #line 17358 "configure"
17358 #include "confdefs.h"
17360 #ifdef HAVE_DB_185_H
17361 # include <db_185.h>
17366 #ifndef DB_VERSION_MAJOR
17367 # define DB_VERSION_MAJOR 1
17371 #define NULL ((void*)0)
17376 #if DB_VERSION_MAJOR > 1
17379 int major, minor, patch;
17381 version = db_version( &major, &minor, &patch );
17383 if( major != DB_VERSION_MAJOR ||
17384 minor < DB_VERSION_MINOR )
17386 printf("Berkeley DB version mismatch\n"
17387 "\texpected: %s\n\tgot: %s\n",
17388 DB_VERSION_STRING, version);
17394 #if DB_VERSION_MAJOR > 2
17395 db_env_create( NULL, 0 );
17396 #elif DB_VERSION_MAJOR > 1
17397 db_appexit( NULL );
17399 (void) dbopen( NULL, 0, 0, 0, NULL);
17404 if { (eval echo configure:17405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17408 echo "configure: failed program was:" >&5
17409 cat conftest.$ac_ext >&5
17419 echo "$ac_t""$ol_cv_db_db" 1>&6
17421 if test $ol_cv_db_db = yes ; then
17426 if test $ol_cv_lib_db = no ; then
17427 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17428 echo "configure:17429: checking for Berkeley DB link (-ldb41)" >&5
17429 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17430 echo $ac_n "(cached) $ac_c" 1>&6
17435 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17437 cat > conftest.$ac_ext <<EOF
17438 #line 17439 "configure"
17439 #include "confdefs.h"
17441 #ifdef HAVE_DB_185_H
17442 # include <db_185.h>
17447 #ifndef DB_VERSION_MAJOR
17448 # define DB_VERSION_MAJOR 1
17452 #define NULL ((void*)0)
17457 #if DB_VERSION_MAJOR > 1
17460 int major, minor, patch;
17462 version = db_version( &major, &minor, &patch );
17464 if( major != DB_VERSION_MAJOR ||
17465 minor < DB_VERSION_MINOR )
17467 printf("Berkeley DB version mismatch\n"
17468 "\texpected: %s\n\tgot: %s\n",
17469 DB_VERSION_STRING, version);
17475 #if DB_VERSION_MAJOR > 2
17476 db_env_create( NULL, 0 );
17477 #elif DB_VERSION_MAJOR > 1
17478 db_appexit( NULL );
17480 (void) dbopen( NULL, 0, 0, 0, NULL);
17485 if { (eval echo configure:17486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17489 echo "configure: failed program was:" >&5
17490 cat conftest.$ac_ext >&5
17500 echo "$ac_t""$ol_cv_db_db41" 1>&6
17502 if test $ol_cv_db_db41 = yes ; then
17503 ol_cv_lib_db=-ldb41
17507 if test $ol_cv_lib_db = no ; then
17508 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17509 echo "configure:17510: checking for Berkeley DB link (-ldb-41)" >&5
17510 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17511 echo $ac_n "(cached) $ac_c" 1>&6
17516 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17518 cat > conftest.$ac_ext <<EOF
17519 #line 17520 "configure"
17520 #include "confdefs.h"
17522 #ifdef HAVE_DB_185_H
17523 # include <db_185.h>
17528 #ifndef DB_VERSION_MAJOR
17529 # define DB_VERSION_MAJOR 1
17533 #define NULL ((void*)0)
17538 #if DB_VERSION_MAJOR > 1
17541 int major, minor, patch;
17543 version = db_version( &major, &minor, &patch );
17545 if( major != DB_VERSION_MAJOR ||
17546 minor < DB_VERSION_MINOR )
17548 printf("Berkeley DB version mismatch\n"
17549 "\texpected: %s\n\tgot: %s\n",
17550 DB_VERSION_STRING, version);
17556 #if DB_VERSION_MAJOR > 2
17557 db_env_create( NULL, 0 );
17558 #elif DB_VERSION_MAJOR > 1
17559 db_appexit( NULL );
17561 (void) dbopen( NULL, 0, 0, 0, NULL);
17566 if { (eval echo configure:17567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17570 echo "configure: failed program was:" >&5
17571 cat conftest.$ac_ext >&5
17581 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17583 if test $ol_cv_db_db_41 = yes ; then
17584 ol_cv_lib_db=-ldb-41
17588 if test $ol_cv_lib_db = no ; then
17589 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17590 echo "configure:17591: checking for Berkeley DB link (-ldb-4.1)" >&5
17591 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17592 echo $ac_n "(cached) $ac_c" 1>&6
17597 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17599 cat > conftest.$ac_ext <<EOF
17600 #line 17601 "configure"
17601 #include "confdefs.h"
17603 #ifdef HAVE_DB_185_H
17604 # include <db_185.h>
17609 #ifndef DB_VERSION_MAJOR
17610 # define DB_VERSION_MAJOR 1
17614 #define NULL ((void*)0)
17619 #if DB_VERSION_MAJOR > 1
17622 int major, minor, patch;
17624 version = db_version( &major, &minor, &patch );
17626 if( major != DB_VERSION_MAJOR ||
17627 minor < DB_VERSION_MINOR )
17629 printf("Berkeley DB version mismatch\n"
17630 "\texpected: %s\n\tgot: %s\n",
17631 DB_VERSION_STRING, version);
17637 #if DB_VERSION_MAJOR > 2
17638 db_env_create( NULL, 0 );
17639 #elif DB_VERSION_MAJOR > 1
17640 db_appexit( NULL );
17642 (void) dbopen( NULL, 0, 0, 0, NULL);
17647 if { (eval echo configure:17648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17649 ol_cv_db_db_4_dot_1=yes
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17654 ol_cv_db_db_4_dot_1=no
17662 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17664 if test $ol_cv_db_db_4_dot_1 = yes ; then
17665 ol_cv_lib_db=-ldb-4.1
17669 if test $ol_cv_lib_db = no ; then
17670 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17671 echo "configure:17672: checking for Berkeley DB link (-ldb-4-1)" >&5
17672 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17673 echo $ac_n "(cached) $ac_c" 1>&6
17678 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17680 cat > conftest.$ac_ext <<EOF
17681 #line 17682 "configure"
17682 #include "confdefs.h"
17684 #ifdef HAVE_DB_185_H
17685 # include <db_185.h>
17690 #ifndef DB_VERSION_MAJOR
17691 # define DB_VERSION_MAJOR 1
17695 #define NULL ((void*)0)
17700 #if DB_VERSION_MAJOR > 1
17703 int major, minor, patch;
17705 version = db_version( &major, &minor, &patch );
17707 if( major != DB_VERSION_MAJOR ||
17708 minor < DB_VERSION_MINOR )
17710 printf("Berkeley DB version mismatch\n"
17711 "\texpected: %s\n\tgot: %s\n",
17712 DB_VERSION_STRING, version);
17718 #if DB_VERSION_MAJOR > 2
17719 db_env_create( NULL, 0 );
17720 #elif DB_VERSION_MAJOR > 1
17721 db_appexit( NULL );
17723 (void) dbopen( NULL, 0, 0, 0, NULL);
17728 if { (eval echo configure:17729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17730 ol_cv_db_db_4_1=yes
17732 echo "configure: failed program was:" >&5
17733 cat conftest.$ac_ext >&5
17743 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17745 if test $ol_cv_db_db_4_1 = yes ; then
17746 ol_cv_lib_db=-ldb-4-1
17750 if test $ol_cv_lib_db = no ; then
17751 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17752 echo "configure:17753: checking for Berkeley DB link (-ldb3)" >&5
17753 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17754 echo $ac_n "(cached) $ac_c" 1>&6
17759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17761 cat > conftest.$ac_ext <<EOF
17762 #line 17763 "configure"
17763 #include "confdefs.h"
17765 #ifdef HAVE_DB_185_H
17766 # include <db_185.h>
17771 #ifndef DB_VERSION_MAJOR
17772 # define DB_VERSION_MAJOR 1
17776 #define NULL ((void*)0)
17781 #if DB_VERSION_MAJOR > 1
17784 int major, minor, patch;
17786 version = db_version( &major, &minor, &patch );
17788 if( major != DB_VERSION_MAJOR ||
17789 minor < DB_VERSION_MINOR )
17791 printf("Berkeley DB version mismatch\n"
17792 "\texpected: %s\n\tgot: %s\n",
17793 DB_VERSION_STRING, version);
17799 #if DB_VERSION_MAJOR > 2
17800 db_env_create( NULL, 0 );
17801 #elif DB_VERSION_MAJOR > 1
17802 db_appexit( NULL );
17804 (void) dbopen( NULL, 0, 0, 0, NULL);
17809 if { (eval echo configure:17810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17813 echo "configure: failed program was:" >&5
17814 cat conftest.$ac_ext >&5
17824 echo "$ac_t""$ol_cv_db_db3" 1>&6
17826 if test $ol_cv_db_db3 = yes ; then
17831 if test $ol_cv_lib_db = no ; then
17832 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17833 echo "configure:17834: checking for Berkeley DB link (-ldb-3)" >&5
17834 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17835 echo $ac_n "(cached) $ac_c" 1>&6
17840 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17842 cat > conftest.$ac_ext <<EOF
17843 #line 17844 "configure"
17844 #include "confdefs.h"
17846 #ifdef HAVE_DB_185_H
17847 # include <db_185.h>
17852 #ifndef DB_VERSION_MAJOR
17853 # define DB_VERSION_MAJOR 1
17857 #define NULL ((void*)0)
17862 #if DB_VERSION_MAJOR > 1
17865 int major, minor, patch;
17867 version = db_version( &major, &minor, &patch );
17869 if( major != DB_VERSION_MAJOR ||
17870 minor < DB_VERSION_MINOR )
17872 printf("Berkeley DB version mismatch\n"
17873 "\texpected: %s\n\tgot: %s\n",
17874 DB_VERSION_STRING, version);
17880 #if DB_VERSION_MAJOR > 2
17881 db_env_create( NULL, 0 );
17882 #elif DB_VERSION_MAJOR > 1
17883 db_appexit( NULL );
17885 (void) dbopen( NULL, 0, 0, 0, NULL);
17890 if { (eval echo configure:17891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17894 echo "configure: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17905 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17907 if test $ol_cv_db_db_3 = yes ; then
17908 ol_cv_lib_db=-ldb-3
17912 if test $ol_cv_lib_db = no ; then
17913 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17914 echo "configure:17915: checking for Berkeley DB link (-ldb2)" >&5
17915 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17916 echo $ac_n "(cached) $ac_c" 1>&6
17921 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17923 cat > conftest.$ac_ext <<EOF
17924 #line 17925 "configure"
17925 #include "confdefs.h"
17927 #ifdef HAVE_DB_185_H
17928 # include <db_185.h>
17933 #ifndef DB_VERSION_MAJOR
17934 # define DB_VERSION_MAJOR 1
17938 #define NULL ((void*)0)
17943 #if DB_VERSION_MAJOR > 1
17946 int major, minor, patch;
17948 version = db_version( &major, &minor, &patch );
17950 if( major != DB_VERSION_MAJOR ||
17951 minor < DB_VERSION_MINOR )
17953 printf("Berkeley DB version mismatch\n"
17954 "\texpected: %s\n\tgot: %s\n",
17955 DB_VERSION_STRING, version);
17961 #if DB_VERSION_MAJOR > 2
17962 db_env_create( NULL, 0 );
17963 #elif DB_VERSION_MAJOR > 1
17964 db_appexit( NULL );
17966 (void) dbopen( NULL, 0, 0, 0, NULL);
17971 if { (eval echo configure:17972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17975 echo "configure: failed program was:" >&5
17976 cat conftest.$ac_ext >&5
17986 echo "$ac_t""$ol_cv_db_db2" 1>&6
17988 if test $ol_cv_db_db2 = yes ; then
17993 if test $ol_cv_lib_db = no ; then
17994 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17995 echo "configure:17996: checking for Berkeley DB link (-ldb-2)" >&5
17996 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17997 echo $ac_n "(cached) $ac_c" 1>&6
18002 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18004 cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18008 #ifdef HAVE_DB_185_H
18009 # include <db_185.h>
18014 #ifndef DB_VERSION_MAJOR
18015 # define DB_VERSION_MAJOR 1
18019 #define NULL ((void*)0)
18024 #if DB_VERSION_MAJOR > 1
18027 int major, minor, patch;
18029 version = db_version( &major, &minor, &patch );
18031 if( major != DB_VERSION_MAJOR ||
18032 minor < DB_VERSION_MINOR )
18034 printf("Berkeley DB version mismatch\n"
18035 "\texpected: %s\n\tgot: %s\n",
18036 DB_VERSION_STRING, version);
18042 #if DB_VERSION_MAJOR > 2
18043 db_env_create( NULL, 0 );
18044 #elif DB_VERSION_MAJOR > 1
18045 db_appexit( NULL );
18047 (void) dbopen( NULL, 0, 0, 0, NULL);
18052 if { (eval echo configure:18053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18056 echo "configure: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18067 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18069 if test $ol_cv_db_db_2 = yes ; then
18070 ol_cv_lib_db=-ldb-2
18074 if test $ol_cv_lib_db = no ; then
18075 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18076 echo "configure:18077: checking for Berkeley DB link (-ldb1)" >&5
18077 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18078 echo $ac_n "(cached) $ac_c" 1>&6
18083 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18085 cat > conftest.$ac_ext <<EOF
18086 #line 18087 "configure"
18087 #include "confdefs.h"
18089 #ifdef HAVE_DB_185_H
18090 # include <db_185.h>
18095 #ifndef DB_VERSION_MAJOR
18096 # define DB_VERSION_MAJOR 1
18100 #define NULL ((void*)0)
18105 #if DB_VERSION_MAJOR > 1
18108 int major, minor, patch;
18110 version = db_version( &major, &minor, &patch );
18112 if( major != DB_VERSION_MAJOR ||
18113 minor < DB_VERSION_MINOR )
18115 printf("Berkeley DB version mismatch\n"
18116 "\texpected: %s\n\tgot: %s\n",
18117 DB_VERSION_STRING, version);
18123 #if DB_VERSION_MAJOR > 2
18124 db_env_create( NULL, 0 );
18125 #elif DB_VERSION_MAJOR > 1
18126 db_appexit( NULL );
18128 (void) dbopen( NULL, 0, 0, 0, NULL);
18133 if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18137 echo "configure: failed program was:" >&5
18138 cat conftest.$ac_ext >&5
18148 echo "$ac_t""$ol_cv_db_db1" 1>&6
18150 if test $ol_cv_db_db1 = yes ; then
18155 if test $ol_cv_lib_db = no ; then
18156 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18157 echo "configure:18158: checking for Berkeley DB link (-ldb-1)" >&5
18158 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18159 echo $ac_n "(cached) $ac_c" 1>&6
18164 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18170 #ifdef HAVE_DB_185_H
18171 # include <db_185.h>
18176 #ifndef DB_VERSION_MAJOR
18177 # define DB_VERSION_MAJOR 1
18181 #define NULL ((void*)0)
18186 #if DB_VERSION_MAJOR > 1
18189 int major, minor, patch;
18191 version = db_version( &major, &minor, &patch );
18193 if( major != DB_VERSION_MAJOR ||
18194 minor < DB_VERSION_MINOR )
18196 printf("Berkeley DB version mismatch\n"
18197 "\texpected: %s\n\tgot: %s\n",
18198 DB_VERSION_STRING, version);
18204 #if DB_VERSION_MAJOR > 2
18205 db_env_create( NULL, 0 );
18206 #elif DB_VERSION_MAJOR > 1
18207 db_appexit( NULL );
18209 (void) dbopen( NULL, 0, 0, 0, NULL);
18214 if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18229 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18231 if test $ol_cv_db_db_1 = yes ; then
18232 ol_cv_lib_db=-ldb-1
18237 if test "$ol_cv_lib_db" != no ; then
18238 ol_cv_berkeley_db=yes
18244 ol_cv_berkeley_db=no
18247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18249 echo "configure:18250: checking for $ac_hdr" >&5
18250 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
18253 cat > conftest.$ac_ext <<EOF
18254 #line 18255 "configure"
18255 #include "confdefs.h"
18258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18259 { (eval echo configure:18260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18261 if test -z "$ac_err"; then
18263 eval "ac_cv_header_$ac_safe=yes"
18266 echo "configure: failed program was:" >&5
18267 cat conftest.$ac_ext >&5
18269 eval "ac_cv_header_$ac_safe=no"
18273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18274 echo "$ac_t""yes" 1>&6
18275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18276 cat >> confdefs.h <<EOF
18277 #define $ac_tr_hdr 1
18281 echo "$ac_t""no" 1>&6
18285 if test $ac_cv_header_db_h = yes; then
18287 if test $ol_cv_lib_db = no ; then
18288 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18289 echo "configure:18290: checking for Berkeley DB link (default)" >&5
18290 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18291 echo $ac_n "(cached) $ac_c" 1>&6
18296 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18298 cat > conftest.$ac_ext <<EOF
18299 #line 18300 "configure"
18300 #include "confdefs.h"
18302 #ifdef HAVE_DB_185_H
18303 # include <db_185.h>
18308 #ifndef DB_VERSION_MAJOR
18309 # define DB_VERSION_MAJOR 1
18313 #define NULL ((void*)0)
18318 #if DB_VERSION_MAJOR > 1
18321 int major, minor, patch;
18323 version = db_version( &major, &minor, &patch );
18325 if( major != DB_VERSION_MAJOR ||
18326 minor < DB_VERSION_MINOR )
18328 printf("Berkeley DB version mismatch\n"
18329 "\texpected: %s\n\tgot: %s\n",
18330 DB_VERSION_STRING, version);
18336 #if DB_VERSION_MAJOR > 2
18337 db_env_create( NULL, 0 );
18338 #elif DB_VERSION_MAJOR > 1
18339 db_appexit( NULL );
18341 (void) dbopen( NULL, 0, 0, 0, NULL);
18346 if { (eval echo configure:18347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18350 echo "configure: failed program was:" >&5
18351 cat conftest.$ac_ext >&5
18361 echo "$ac_t""$ol_cv_db_none" 1>&6
18363 if test $ol_cv_db_none = yes ; then
18368 if test $ol_cv_lib_db = no ; then
18369 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18370 echo "configure:18371: checking for Berkeley DB link (-ldb42)" >&5
18371 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18372 echo $ac_n "(cached) $ac_c" 1>&6
18377 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18379 cat > conftest.$ac_ext <<EOF
18380 #line 18381 "configure"
18381 #include "confdefs.h"
18383 #ifdef HAVE_DB_185_H
18384 # include <db_185.h>
18389 #ifndef DB_VERSION_MAJOR
18390 # define DB_VERSION_MAJOR 1
18394 #define NULL ((void*)0)
18399 #if DB_VERSION_MAJOR > 1
18402 int major, minor, patch;
18404 version = db_version( &major, &minor, &patch );
18406 if( major != DB_VERSION_MAJOR ||
18407 minor < DB_VERSION_MINOR )
18409 printf("Berkeley DB version mismatch\n"
18410 "\texpected: %s\n\tgot: %s\n",
18411 DB_VERSION_STRING, version);
18417 #if DB_VERSION_MAJOR > 2
18418 db_env_create( NULL, 0 );
18419 #elif DB_VERSION_MAJOR > 1
18420 db_appexit( NULL );
18422 (void) dbopen( NULL, 0, 0, 0, NULL);
18427 if { (eval echo configure:18428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18431 echo "configure: failed program was:" >&5
18432 cat conftest.$ac_ext >&5
18442 echo "$ac_t""$ol_cv_db_db42" 1>&6
18444 if test $ol_cv_db_db42 = yes ; then
18445 ol_cv_lib_db=-ldb42
18449 if test $ol_cv_lib_db = no ; then
18450 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18451 echo "configure:18452: checking for Berkeley DB link (-ldb-42)" >&5
18452 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
18458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18460 cat > conftest.$ac_ext <<EOF
18461 #line 18462 "configure"
18462 #include "confdefs.h"
18464 #ifdef HAVE_DB_185_H
18465 # include <db_185.h>
18470 #ifndef DB_VERSION_MAJOR
18471 # define DB_VERSION_MAJOR 1
18475 #define NULL ((void*)0)
18480 #if DB_VERSION_MAJOR > 1
18483 int major, minor, patch;
18485 version = db_version( &major, &minor, &patch );
18487 if( major != DB_VERSION_MAJOR ||
18488 minor < DB_VERSION_MINOR )
18490 printf("Berkeley DB version mismatch\n"
18491 "\texpected: %s\n\tgot: %s\n",
18492 DB_VERSION_STRING, version);
18498 #if DB_VERSION_MAJOR > 2
18499 db_env_create( NULL, 0 );
18500 #elif DB_VERSION_MAJOR > 1
18501 db_appexit( NULL );
18503 (void) dbopen( NULL, 0, 0, 0, NULL);
18508 if { (eval echo configure:18509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18512 echo "configure: failed program was:" >&5
18513 cat conftest.$ac_ext >&5
18523 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18525 if test $ol_cv_db_db_42 = yes ; then
18526 ol_cv_lib_db=-ldb-42
18530 if test $ol_cv_lib_db = no ; then
18531 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18532 echo "configure:18533: checking for Berkeley DB link (-ldb-4.2)" >&5
18533 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18534 echo $ac_n "(cached) $ac_c" 1>&6
18539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18541 cat > conftest.$ac_ext <<EOF
18542 #line 18543 "configure"
18543 #include "confdefs.h"
18545 #ifdef HAVE_DB_185_H
18546 # include <db_185.h>
18551 #ifndef DB_VERSION_MAJOR
18552 # define DB_VERSION_MAJOR 1
18556 #define NULL ((void*)0)
18561 #if DB_VERSION_MAJOR > 1
18564 int major, minor, patch;
18566 version = db_version( &major, &minor, &patch );
18568 if( major != DB_VERSION_MAJOR ||
18569 minor < DB_VERSION_MINOR )
18571 printf("Berkeley DB version mismatch\n"
18572 "\texpected: %s\n\tgot: %s\n",
18573 DB_VERSION_STRING, version);
18579 #if DB_VERSION_MAJOR > 2
18580 db_env_create( NULL, 0 );
18581 #elif DB_VERSION_MAJOR > 1
18582 db_appexit( NULL );
18584 (void) dbopen( NULL, 0, 0, 0, NULL);
18589 if { (eval echo configure:18590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18591 ol_cv_db_db_4_dot_2=yes
18593 echo "configure: failed program was:" >&5
18594 cat conftest.$ac_ext >&5
18596 ol_cv_db_db_4_dot_2=no
18604 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18606 if test $ol_cv_db_db_4_dot_2 = yes ; then
18607 ol_cv_lib_db=-ldb-4.2
18611 if test $ol_cv_lib_db = no ; then
18612 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18613 echo "configure:18614: checking for Berkeley DB link (-ldb-4-2)" >&5
18614 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18615 echo $ac_n "(cached) $ac_c" 1>&6
18620 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18622 cat > conftest.$ac_ext <<EOF
18623 #line 18624 "configure"
18624 #include "confdefs.h"
18626 #ifdef HAVE_DB_185_H
18627 # include <db_185.h>
18632 #ifndef DB_VERSION_MAJOR
18633 # define DB_VERSION_MAJOR 1
18637 #define NULL ((void*)0)
18642 #if DB_VERSION_MAJOR > 1
18645 int major, minor, patch;
18647 version = db_version( &major, &minor, &patch );
18649 if( major != DB_VERSION_MAJOR ||
18650 minor < DB_VERSION_MINOR )
18652 printf("Berkeley DB version mismatch\n"
18653 "\texpected: %s\n\tgot: %s\n",
18654 DB_VERSION_STRING, version);
18660 #if DB_VERSION_MAJOR > 2
18661 db_env_create( NULL, 0 );
18662 #elif DB_VERSION_MAJOR > 1
18663 db_appexit( NULL );
18665 (void) dbopen( NULL, 0, 0, 0, NULL);
18670 if { (eval echo configure:18671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18672 ol_cv_db_db_4_2=yes
18674 echo "configure: failed program was:" >&5
18675 cat conftest.$ac_ext >&5
18685 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18687 if test $ol_cv_db_db_4_2 = yes ; then
18688 ol_cv_lib_db=-ldb-4-2
18692 if test $ol_cv_lib_db = no ; then
18693 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18694 echo "configure:18695: checking for Berkeley DB link (-ldb-4)" >&5
18695 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18696 echo $ac_n "(cached) $ac_c" 1>&6
18701 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18703 cat > conftest.$ac_ext <<EOF
18704 #line 18705 "configure"
18705 #include "confdefs.h"
18707 #ifdef HAVE_DB_185_H
18708 # include <db_185.h>
18713 #ifndef DB_VERSION_MAJOR
18714 # define DB_VERSION_MAJOR 1
18718 #define NULL ((void*)0)
18723 #if DB_VERSION_MAJOR > 1
18726 int major, minor, patch;
18728 version = db_version( &major, &minor, &patch );
18730 if( major != DB_VERSION_MAJOR ||
18731 minor < DB_VERSION_MINOR )
18733 printf("Berkeley DB version mismatch\n"
18734 "\texpected: %s\n\tgot: %s\n",
18735 DB_VERSION_STRING, version);
18741 #if DB_VERSION_MAJOR > 2
18742 db_env_create( NULL, 0 );
18743 #elif DB_VERSION_MAJOR > 1
18744 db_appexit( NULL );
18746 (void) dbopen( NULL, 0, 0, 0, NULL);
18751 if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18755 echo "configure: failed program was:" >&5
18756 cat conftest.$ac_ext >&5
18766 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18768 if test $ol_cv_db_db_4 = yes ; then
18769 ol_cv_lib_db=-ldb-4
18773 if test $ol_cv_lib_db = no ; then
18774 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18775 echo "configure:18776: checking for Berkeley DB link (-ldb4)" >&5
18776 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18777 echo $ac_n "(cached) $ac_c" 1>&6
18782 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18784 cat > conftest.$ac_ext <<EOF
18785 #line 18786 "configure"
18786 #include "confdefs.h"
18788 #ifdef HAVE_DB_185_H
18789 # include <db_185.h>
18794 #ifndef DB_VERSION_MAJOR
18795 # define DB_VERSION_MAJOR 1
18799 #define NULL ((void*)0)
18804 #if DB_VERSION_MAJOR > 1
18807 int major, minor, patch;
18809 version = db_version( &major, &minor, &patch );
18811 if( major != DB_VERSION_MAJOR ||
18812 minor < DB_VERSION_MINOR )
18814 printf("Berkeley DB version mismatch\n"
18815 "\texpected: %s\n\tgot: %s\n",
18816 DB_VERSION_STRING, version);
18822 #if DB_VERSION_MAJOR > 2
18823 db_env_create( NULL, 0 );
18824 #elif DB_VERSION_MAJOR > 1
18825 db_appexit( NULL );
18827 (void) dbopen( NULL, 0, 0, 0, NULL);
18832 if { (eval echo configure:18833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18836 echo "configure: failed program was:" >&5
18837 cat conftest.$ac_ext >&5
18847 echo "$ac_t""$ol_cv_db_db4" 1>&6
18849 if test $ol_cv_db_db4 = yes ; then
18854 if test $ol_cv_lib_db = no ; then
18855 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18856 echo "configure:18857: checking for Berkeley DB link (-ldb)" >&5
18857 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18858 echo $ac_n "(cached) $ac_c" 1>&6
18863 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18865 cat > conftest.$ac_ext <<EOF
18866 #line 18867 "configure"
18867 #include "confdefs.h"
18869 #ifdef HAVE_DB_185_H
18870 # include <db_185.h>
18875 #ifndef DB_VERSION_MAJOR
18876 # define DB_VERSION_MAJOR 1
18880 #define NULL ((void*)0)
18885 #if DB_VERSION_MAJOR > 1
18888 int major, minor, patch;
18890 version = db_version( &major, &minor, &patch );
18892 if( major != DB_VERSION_MAJOR ||
18893 minor < DB_VERSION_MINOR )
18895 printf("Berkeley DB version mismatch\n"
18896 "\texpected: %s\n\tgot: %s\n",
18897 DB_VERSION_STRING, version);
18903 #if DB_VERSION_MAJOR > 2
18904 db_env_create( NULL, 0 );
18905 #elif DB_VERSION_MAJOR > 1
18906 db_appexit( NULL );
18908 (void) dbopen( NULL, 0, 0, 0, NULL);
18913 if { (eval echo configure:18914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18917 echo "configure: failed program was:" >&5
18918 cat conftest.$ac_ext >&5
18928 echo "$ac_t""$ol_cv_db_db" 1>&6
18930 if test $ol_cv_db_db = yes ; then
18935 if test $ol_cv_lib_db = no ; then
18936 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18937 echo "configure:18938: checking for Berkeley DB link (-ldb41)" >&5
18938 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18939 echo $ac_n "(cached) $ac_c" 1>&6
18944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18946 cat > conftest.$ac_ext <<EOF
18947 #line 18948 "configure"
18948 #include "confdefs.h"
18950 #ifdef HAVE_DB_185_H
18951 # include <db_185.h>
18956 #ifndef DB_VERSION_MAJOR
18957 # define DB_VERSION_MAJOR 1
18961 #define NULL ((void*)0)
18966 #if DB_VERSION_MAJOR > 1
18969 int major, minor, patch;
18971 version = db_version( &major, &minor, &patch );
18973 if( major != DB_VERSION_MAJOR ||
18974 minor < DB_VERSION_MINOR )
18976 printf("Berkeley DB version mismatch\n"
18977 "\texpected: %s\n\tgot: %s\n",
18978 DB_VERSION_STRING, version);
18984 #if DB_VERSION_MAJOR > 2
18985 db_env_create( NULL, 0 );
18986 #elif DB_VERSION_MAJOR > 1
18987 db_appexit( NULL );
18989 (void) dbopen( NULL, 0, 0, 0, NULL);
18994 if { (eval echo configure:18995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18998 echo "configure: failed program was:" >&5
18999 cat conftest.$ac_ext >&5
19009 echo "$ac_t""$ol_cv_db_db41" 1>&6
19011 if test $ol_cv_db_db41 = yes ; then
19012 ol_cv_lib_db=-ldb41
19016 if test $ol_cv_lib_db = no ; then
19017 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19018 echo "configure:19019: checking for Berkeley DB link (-ldb-41)" >&5
19019 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
19025 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19027 cat > conftest.$ac_ext <<EOF
19028 #line 19029 "configure"
19029 #include "confdefs.h"
19031 #ifdef HAVE_DB_185_H
19032 # include <db_185.h>
19037 #ifndef DB_VERSION_MAJOR
19038 # define DB_VERSION_MAJOR 1
19042 #define NULL ((void*)0)
19047 #if DB_VERSION_MAJOR > 1
19050 int major, minor, patch;
19052 version = db_version( &major, &minor, &patch );
19054 if( major != DB_VERSION_MAJOR ||
19055 minor < DB_VERSION_MINOR )
19057 printf("Berkeley DB version mismatch\n"
19058 "\texpected: %s\n\tgot: %s\n",
19059 DB_VERSION_STRING, version);
19065 #if DB_VERSION_MAJOR > 2
19066 db_env_create( NULL, 0 );
19067 #elif DB_VERSION_MAJOR > 1
19068 db_appexit( NULL );
19070 (void) dbopen( NULL, 0, 0, 0, NULL);
19075 if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19090 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19092 if test $ol_cv_db_db_41 = yes ; then
19093 ol_cv_lib_db=-ldb-41
19097 if test $ol_cv_lib_db = no ; then
19098 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19099 echo "configure:19100: checking for Berkeley DB link (-ldb-4.1)" >&5
19100 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19101 echo $ac_n "(cached) $ac_c" 1>&6
19106 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19108 cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19112 #ifdef HAVE_DB_185_H
19113 # include <db_185.h>
19118 #ifndef DB_VERSION_MAJOR
19119 # define DB_VERSION_MAJOR 1
19123 #define NULL ((void*)0)
19128 #if DB_VERSION_MAJOR > 1
19131 int major, minor, patch;
19133 version = db_version( &major, &minor, &patch );
19135 if( major != DB_VERSION_MAJOR ||
19136 minor < DB_VERSION_MINOR )
19138 printf("Berkeley DB version mismatch\n"
19139 "\texpected: %s\n\tgot: %s\n",
19140 DB_VERSION_STRING, version);
19146 #if DB_VERSION_MAJOR > 2
19147 db_env_create( NULL, 0 );
19148 #elif DB_VERSION_MAJOR > 1
19149 db_appexit( NULL );
19151 (void) dbopen( NULL, 0, 0, 0, NULL);
19156 if { (eval echo configure:19157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19158 ol_cv_db_db_4_dot_1=yes
19160 echo "configure: failed program was:" >&5
19161 cat conftest.$ac_ext >&5
19163 ol_cv_db_db_4_dot_1=no
19171 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19173 if test $ol_cv_db_db_4_dot_1 = yes ; then
19174 ol_cv_lib_db=-ldb-4.1
19178 if test $ol_cv_lib_db = no ; then
19179 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19180 echo "configure:19181: checking for Berkeley DB link (-ldb-4-1)" >&5
19181 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19182 echo $ac_n "(cached) $ac_c" 1>&6
19187 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19189 cat > conftest.$ac_ext <<EOF
19190 #line 19191 "configure"
19191 #include "confdefs.h"
19193 #ifdef HAVE_DB_185_H
19194 # include <db_185.h>
19199 #ifndef DB_VERSION_MAJOR
19200 # define DB_VERSION_MAJOR 1
19204 #define NULL ((void*)0)
19209 #if DB_VERSION_MAJOR > 1
19212 int major, minor, patch;
19214 version = db_version( &major, &minor, &patch );
19216 if( major != DB_VERSION_MAJOR ||
19217 minor < DB_VERSION_MINOR )
19219 printf("Berkeley DB version mismatch\n"
19220 "\texpected: %s\n\tgot: %s\n",
19221 DB_VERSION_STRING, version);
19227 #if DB_VERSION_MAJOR > 2
19228 db_env_create( NULL, 0 );
19229 #elif DB_VERSION_MAJOR > 1
19230 db_appexit( NULL );
19232 (void) dbopen( NULL, 0, 0, 0, NULL);
19237 if { (eval echo configure:19238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19239 ol_cv_db_db_4_1=yes
19241 echo "configure: failed program was:" >&5
19242 cat conftest.$ac_ext >&5
19252 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19254 if test $ol_cv_db_db_4_1 = yes ; then
19255 ol_cv_lib_db=-ldb-4-1
19259 if test $ol_cv_lib_db = no ; then
19260 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19261 echo "configure:19262: checking for Berkeley DB link (-ldb3)" >&5
19262 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19263 echo $ac_n "(cached) $ac_c" 1>&6
19268 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19270 cat > conftest.$ac_ext <<EOF
19271 #line 19272 "configure"
19272 #include "confdefs.h"
19274 #ifdef HAVE_DB_185_H
19275 # include <db_185.h>
19280 #ifndef DB_VERSION_MAJOR
19281 # define DB_VERSION_MAJOR 1
19285 #define NULL ((void*)0)
19290 #if DB_VERSION_MAJOR > 1
19293 int major, minor, patch;
19295 version = db_version( &major, &minor, &patch );
19297 if( major != DB_VERSION_MAJOR ||
19298 minor < DB_VERSION_MINOR )
19300 printf("Berkeley DB version mismatch\n"
19301 "\texpected: %s\n\tgot: %s\n",
19302 DB_VERSION_STRING, version);
19308 #if DB_VERSION_MAJOR > 2
19309 db_env_create( NULL, 0 );
19310 #elif DB_VERSION_MAJOR > 1
19311 db_appexit( NULL );
19313 (void) dbopen( NULL, 0, 0, 0, NULL);
19318 if { (eval echo configure:19319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19322 echo "configure: failed program was:" >&5
19323 cat conftest.$ac_ext >&5
19333 echo "$ac_t""$ol_cv_db_db3" 1>&6
19335 if test $ol_cv_db_db3 = yes ; then
19340 if test $ol_cv_lib_db = no ; then
19341 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19342 echo "configure:19343: checking for Berkeley DB link (-ldb-3)" >&5
19343 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19344 echo $ac_n "(cached) $ac_c" 1>&6
19349 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19351 cat > conftest.$ac_ext <<EOF
19352 #line 19353 "configure"
19353 #include "confdefs.h"
19355 #ifdef HAVE_DB_185_H
19356 # include <db_185.h>
19361 #ifndef DB_VERSION_MAJOR
19362 # define DB_VERSION_MAJOR 1
19366 #define NULL ((void*)0)
19371 #if DB_VERSION_MAJOR > 1
19374 int major, minor, patch;
19376 version = db_version( &major, &minor, &patch );
19378 if( major != DB_VERSION_MAJOR ||
19379 minor < DB_VERSION_MINOR )
19381 printf("Berkeley DB version mismatch\n"
19382 "\texpected: %s\n\tgot: %s\n",
19383 DB_VERSION_STRING, version);
19389 #if DB_VERSION_MAJOR > 2
19390 db_env_create( NULL, 0 );
19391 #elif DB_VERSION_MAJOR > 1
19392 db_appexit( NULL );
19394 (void) dbopen( NULL, 0, 0, 0, NULL);
19399 if { (eval echo configure:19400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19403 echo "configure: failed program was:" >&5
19404 cat conftest.$ac_ext >&5
19414 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19416 if test $ol_cv_db_db_3 = yes ; then
19417 ol_cv_lib_db=-ldb-3
19421 if test $ol_cv_lib_db = no ; then
19422 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19423 echo "configure:19424: checking for Berkeley DB link (-ldb2)" >&5
19424 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19425 echo $ac_n "(cached) $ac_c" 1>&6
19430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19432 cat > conftest.$ac_ext <<EOF
19433 #line 19434 "configure"
19434 #include "confdefs.h"
19436 #ifdef HAVE_DB_185_H
19437 # include <db_185.h>
19442 #ifndef DB_VERSION_MAJOR
19443 # define DB_VERSION_MAJOR 1
19447 #define NULL ((void*)0)
19452 #if DB_VERSION_MAJOR > 1
19455 int major, minor, patch;
19457 version = db_version( &major, &minor, &patch );
19459 if( major != DB_VERSION_MAJOR ||
19460 minor < DB_VERSION_MINOR )
19462 printf("Berkeley DB version mismatch\n"
19463 "\texpected: %s\n\tgot: %s\n",
19464 DB_VERSION_STRING, version);
19470 #if DB_VERSION_MAJOR > 2
19471 db_env_create( NULL, 0 );
19472 #elif DB_VERSION_MAJOR > 1
19473 db_appexit( NULL );
19475 (void) dbopen( NULL, 0, 0, 0, NULL);
19480 if { (eval echo configure:19481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19484 echo "configure: failed program was:" >&5
19485 cat conftest.$ac_ext >&5
19495 echo "$ac_t""$ol_cv_db_db2" 1>&6
19497 if test $ol_cv_db_db2 = yes ; then
19502 if test $ol_cv_lib_db = no ; then
19503 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19504 echo "configure:19505: checking for Berkeley DB link (-ldb-2)" >&5
19505 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19506 echo $ac_n "(cached) $ac_c" 1>&6
19511 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19513 cat > conftest.$ac_ext <<EOF
19514 #line 19515 "configure"
19515 #include "confdefs.h"
19517 #ifdef HAVE_DB_185_H
19518 # include <db_185.h>
19523 #ifndef DB_VERSION_MAJOR
19524 # define DB_VERSION_MAJOR 1
19528 #define NULL ((void*)0)
19533 #if DB_VERSION_MAJOR > 1
19536 int major, minor, patch;
19538 version = db_version( &major, &minor, &patch );
19540 if( major != DB_VERSION_MAJOR ||
19541 minor < DB_VERSION_MINOR )
19543 printf("Berkeley DB version mismatch\n"
19544 "\texpected: %s\n\tgot: %s\n",
19545 DB_VERSION_STRING, version);
19551 #if DB_VERSION_MAJOR > 2
19552 db_env_create( NULL, 0 );
19553 #elif DB_VERSION_MAJOR > 1
19554 db_appexit( NULL );
19556 (void) dbopen( NULL, 0, 0, 0, NULL);
19561 if { (eval echo configure:19562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19565 echo "configure: failed program was:" >&5
19566 cat conftest.$ac_ext >&5
19576 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19578 if test $ol_cv_db_db_2 = yes ; then
19579 ol_cv_lib_db=-ldb-2
19583 if test $ol_cv_lib_db = no ; then
19584 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19585 echo "configure:19586: checking for Berkeley DB link (-ldb1)" >&5
19586 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19587 echo $ac_n "(cached) $ac_c" 1>&6
19592 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19594 cat > conftest.$ac_ext <<EOF
19595 #line 19596 "configure"
19596 #include "confdefs.h"
19598 #ifdef HAVE_DB_185_H
19599 # include <db_185.h>
19604 #ifndef DB_VERSION_MAJOR
19605 # define DB_VERSION_MAJOR 1
19609 #define NULL ((void*)0)
19614 #if DB_VERSION_MAJOR > 1
19617 int major, minor, patch;
19619 version = db_version( &major, &minor, &patch );
19621 if( major != DB_VERSION_MAJOR ||
19622 minor < DB_VERSION_MINOR )
19624 printf("Berkeley DB version mismatch\n"
19625 "\texpected: %s\n\tgot: %s\n",
19626 DB_VERSION_STRING, version);
19632 #if DB_VERSION_MAJOR > 2
19633 db_env_create( NULL, 0 );
19634 #elif DB_VERSION_MAJOR > 1
19635 db_appexit( NULL );
19637 (void) dbopen( NULL, 0, 0, 0, NULL);
19642 if { (eval echo configure:19643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19646 echo "configure: failed program was:" >&5
19647 cat conftest.$ac_ext >&5
19657 echo "$ac_t""$ol_cv_db_db1" 1>&6
19659 if test $ol_cv_db_db1 = yes ; then
19664 if test $ol_cv_lib_db = no ; then
19665 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19666 echo "configure:19667: checking for Berkeley DB link (-ldb-1)" >&5
19667 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19668 echo $ac_n "(cached) $ac_c" 1>&6
19673 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19675 cat > conftest.$ac_ext <<EOF
19676 #line 19677 "configure"
19677 #include "confdefs.h"
19679 #ifdef HAVE_DB_185_H
19680 # include <db_185.h>
19685 #ifndef DB_VERSION_MAJOR
19686 # define DB_VERSION_MAJOR 1
19690 #define NULL ((void*)0)
19695 #if DB_VERSION_MAJOR > 1
19698 int major, minor, patch;
19700 version = db_version( &major, &minor, &patch );
19702 if( major != DB_VERSION_MAJOR ||
19703 minor < DB_VERSION_MINOR )
19705 printf("Berkeley DB version mismatch\n"
19706 "\texpected: %s\n\tgot: %s\n",
19707 DB_VERSION_STRING, version);
19713 #if DB_VERSION_MAJOR > 2
19714 db_env_create( NULL, 0 );
19715 #elif DB_VERSION_MAJOR > 1
19716 db_appexit( NULL );
19718 (void) dbopen( NULL, 0, 0, 0, NULL);
19723 if { (eval echo configure:19724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19727 echo "configure: failed program was:" >&5
19728 cat conftest.$ac_ext >&5
19738 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19740 if test $ol_cv_db_db_1 = yes ; then
19741 ol_cv_lib_db=-ldb-1
19746 if test "$ol_cv_lib_db" != no ; then
19747 ol_cv_berkeley_db=yes
19748 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19749 echo "configure:19750: checking for Berkeley DB thread support" >&5
19750 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19751 echo $ac_n "(cached) $ac_c" 1>&6
19755 LIBS="$LTHREAD_LIBS $LIBS"
19756 if test $ol_cv_lib_db != yes ; then
19757 LIBS="$ol_cv_lib_db $LIBS"
19760 if test "$cross_compiling" = yes; then
19761 ol_cv_berkeley_db_thread=cross
19763 cat > conftest.$ac_ext <<EOF
19764 #line 19765 "configure"
19765 #include "confdefs.h"
19767 #ifdef HAVE_DB_185_H
19773 #define NULL ((void *)0)
19778 u_int32_t flags = DB_CREATE |
19784 #if DB_VERSION_MAJOR > 2
19785 DB_ENV *env = NULL;
19787 rc = db_env_create( &env, 0 );
19789 flags |= DB_INIT_MPOOL;
19790 #ifdef DB_MPOOL_PRIVATE
19791 flags |= DB_MPOOL_PRIVATE;
19795 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19799 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19800 rc = env->open( env, NULL, flags, 0 );
19802 rc = env->open( env, NULL, NULL, flags, 0 );
19806 rc = env->close( env, 0 );
19810 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19816 memset( &env, '\0', sizeof(env) );
19818 rc = db_appinit( NULL, NULL, &env, flags );
19821 db_appexit( &env );
19824 unlink("__db_mpool.share");
19825 unlink("__db_lock.share");
19831 if { (eval echo configure:19832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19833 ol_cv_berkeley_db_thread=yes
19835 echo "configure: failed program was:" >&5
19836 cat conftest.$ac_ext >&5
19838 ol_cv_berkeley_db_thread=no
19848 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19850 if test $ol_cv_berkeley_db_thread != no ; then
19851 cat >> confdefs.h <<\EOF
19852 #define HAVE_BERKELEY_DB_THREAD 1
19862 if test $ol_cv_berkeley_db != no ; then
19863 cat >> confdefs.h <<\EOF
19864 #define HAVE_BERKELEY_DB 1
19868 ol_link_ldbm=berkeley
19869 ol_with_ldbm_api=berkeley
19871 if test $ol_with_ldbm_type = hash ; then
19872 cat >> confdefs.h <<\EOF
19873 #define LDBM_USE_DBHASH 1
19877 cat >> confdefs.h <<\EOF
19878 #define LDBM_USE_DBBTREE 1
19883 if test $ol_cv_lib_db != yes ; then
19884 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19889 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19890 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19891 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19892 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19893 echo "configure:19894: checking Berkeley DB version for BDB backend" >&5
19894 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19895 echo $ac_n "(cached) $ac_c" 1>&6
19898 cat > conftest.$ac_ext <<EOF
19899 #line 19900 "configure"
19900 #include "confdefs.h"
19904 /* this check could be improved */
19905 #ifndef DB_VERSION_MAJOR
19906 # define DB_VERSION_MAJOR 1
19908 #ifndef DB_VERSION_MINOR
19909 # define DB_VERSION_MINOR 0
19912 /* require 4.2 or later */
19913 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19914 __db_version_compat
19918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19919 egrep "__db_version_compat" >/dev/null 2>&1; then
19921 ol_cv_bdb_compat=yes
19924 ol_cv_bdb_compat=no
19930 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19933 if test $ol_cv_bdb_compat = yes ; then
19935 elif test $ol_enable_bdb = yes ; then
19936 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19941 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19942 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19945 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19946 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19947 ol_with_ldbm_api=none
19950 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19951 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19952 echo "configure:19953: checking for MDBM library" >&5
19953 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19954 echo $ac_n "(cached) $ac_c" 1>&6
19957 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19958 echo "configure:19959: checking for mdbm_set_chain" >&5
19959 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19960 echo $ac_n "(cached) $ac_c" 1>&6
19962 cat > conftest.$ac_ext <<EOF
19963 #line 19964 "configure"
19964 #include "confdefs.h"
19965 /* System header to define __stub macros and hopefully few prototypes,
19966 which can conflict with char mdbm_set_chain(); below. */
19967 #include <assert.h>
19968 /* Override any gcc2 internal prototype to avoid an error. */
19969 /* We use char because int might match the return type of a gcc2
19970 builtin and then its argument prototype would still apply. */
19971 char mdbm_set_chain();
19976 /* The GNU C library defines this for functions which it implements
19977 to always fail with ENOSYS. Some functions are actually named
19978 something starting with __ and the normal name is an alias. */
19979 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19982 f = mdbm_set_chain;
19987 if { (eval echo configure:19988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19989 eval "ac_cv_func_mdbm_set_chain=yes"
19991 echo "configure: failed program was:" >&5
19992 cat conftest.$ac_ext >&5
19994 eval "ac_cv_func_mdbm_set_chain=no"
19999 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20000 echo "$ac_t""yes" 1>&6
20003 echo "$ac_t""no" 1>&6
20005 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20006 echo "configure:20007: checking for mdbm_set_chain in -lmdbm" >&5
20007 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20008 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20011 ac_save_LIBS="$LIBS"
20012 LIBS="-lmdbm $LIBS"
20013 cat > conftest.$ac_ext <<EOF
20014 #line 20015 "configure"
20015 #include "confdefs.h"
20016 /* Override any gcc2 internal prototype to avoid an error. */
20017 /* We use char because int might match the return type of a gcc2
20018 builtin and then its argument prototype would still apply. */
20019 char mdbm_set_chain();
20025 if { (eval echo configure:20026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20027 eval "ac_cv_lib_$ac_lib_var=yes"
20029 echo "configure: failed program was:" >&5
20030 cat conftest.$ac_ext >&5
20032 eval "ac_cv_lib_$ac_lib_var=no"
20035 LIBS="$ac_save_LIBS"
20038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20039 echo "$ac_t""yes" 1>&6
20040 ol_cv_lib_mdbm=-lmdbm
20042 echo "$ac_t""no" 1>&6
20053 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20056 for ac_hdr in mdbm.h
20058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20060 echo "configure:20061: checking for $ac_hdr" >&5
20061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20062 echo $ac_n "(cached) $ac_c" 1>&6
20064 cat > conftest.$ac_ext <<EOF
20065 #line 20066 "configure"
20066 #include "confdefs.h"
20069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20070 { (eval echo configure:20071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20072 if test -z "$ac_err"; then
20074 eval "ac_cv_header_$ac_safe=yes"
20077 echo "configure: failed program was:" >&5
20078 cat conftest.$ac_ext >&5
20080 eval "ac_cv_header_$ac_safe=no"
20084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20085 echo "$ac_t""yes" 1>&6
20086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20087 cat >> confdefs.h <<EOF
20088 #define $ac_tr_hdr 1
20092 echo "$ac_t""no" 1>&6
20096 echo $ac_n "checking for db""... $ac_c" 1>&6
20097 echo "configure:20098: checking for db" >&5
20098 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20099 echo $ac_n "(cached) $ac_c" 1>&6
20102 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20110 echo "$ac_t""$ol_cv_mdbm" 1>&6
20111 if test $ol_cv_mdbm = yes ; then
20112 cat >> confdefs.h <<\EOF
20113 #define HAVE_MDBM 1
20119 if test $ol_cv_mdbm = yes ; then
20121 ol_with_ldbm_api=mdbm
20122 if test $ol_cv_lib_mdbm != yes ; then
20123 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20128 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20129 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20130 echo "configure:20131: checking for GDBM library" >&5
20131 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20132 echo $ac_n "(cached) $ac_c" 1>&6
20135 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20136 echo "configure:20137: checking for gdbm_open" >&5
20137 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20138 echo $ac_n "(cached) $ac_c" 1>&6
20140 cat > conftest.$ac_ext <<EOF
20141 #line 20142 "configure"
20142 #include "confdefs.h"
20143 /* System header to define __stub macros and hopefully few prototypes,
20144 which can conflict with char gdbm_open(); below. */
20145 #include <assert.h>
20146 /* Override any gcc2 internal prototype to avoid an error. */
20147 /* We use char because int might match the return type of a gcc2
20148 builtin and then its argument prototype would still apply. */
20154 /* The GNU C library defines this for functions which it implements
20155 to always fail with ENOSYS. Some functions are actually named
20156 something starting with __ and the normal name is an alias. */
20157 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20165 if { (eval echo configure:20166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20167 eval "ac_cv_func_gdbm_open=yes"
20169 echo "configure: failed program was:" >&5
20170 cat conftest.$ac_ext >&5
20172 eval "ac_cv_func_gdbm_open=no"
20177 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20178 echo "$ac_t""yes" 1>&6
20181 echo "$ac_t""no" 1>&6
20183 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20184 echo "configure:20185: checking for gdbm_open in -lgdbm" >&5
20185 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20187 echo $ac_n "(cached) $ac_c" 1>&6
20189 ac_save_LIBS="$LIBS"
20190 LIBS="-lgdbm $LIBS"
20191 cat > conftest.$ac_ext <<EOF
20192 #line 20193 "configure"
20193 #include "confdefs.h"
20194 /* Override any gcc2 internal prototype to avoid an error. */
20195 /* We use char because int might match the return type of a gcc2
20196 builtin and then its argument prototype would still apply. */
20203 if { (eval echo configure:20204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20205 eval "ac_cv_lib_$ac_lib_var=yes"
20207 echo "configure: failed program was:" >&5
20208 cat conftest.$ac_ext >&5
20210 eval "ac_cv_lib_$ac_lib_var=no"
20213 LIBS="$ac_save_LIBS"
20216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20217 echo "$ac_t""yes" 1>&6
20218 ol_cv_lib_gdbm=-lgdbm
20220 echo "$ac_t""no" 1>&6
20231 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20234 for ac_hdr in gdbm.h
20236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20238 echo "configure:20239: checking for $ac_hdr" >&5
20239 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20240 echo $ac_n "(cached) $ac_c" 1>&6
20242 cat > conftest.$ac_ext <<EOF
20243 #line 20244 "configure"
20244 #include "confdefs.h"
20247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20248 { (eval echo configure:20249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20250 if test -z "$ac_err"; then
20252 eval "ac_cv_header_$ac_safe=yes"
20255 echo "configure: failed program was:" >&5
20256 cat conftest.$ac_ext >&5
20258 eval "ac_cv_header_$ac_safe=no"
20262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20263 echo "$ac_t""yes" 1>&6
20264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20265 cat >> confdefs.h <<EOF
20266 #define $ac_tr_hdr 1
20270 echo "$ac_t""no" 1>&6
20274 echo $ac_n "checking for db""... $ac_c" 1>&6
20275 echo "configure:20276: checking for db" >&5
20276 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20277 echo $ac_n "(cached) $ac_c" 1>&6
20280 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20288 echo "$ac_t""$ol_cv_gdbm" 1>&6
20289 if test $ol_cv_gdbm = yes ; then
20290 cat >> confdefs.h <<\EOF
20291 #define HAVE_GDBM 1
20297 if test $ol_cv_gdbm = yes ; then
20299 ol_with_ldbm_api=gdbm
20301 if test $ol_cv_lib_gdbm != yes ; then
20302 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20307 if test $ol_with_ldbm_api = ndbm ; then
20308 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20309 echo "configure:20310: checking for NDBM library" >&5
20310 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20311 echo $ac_n "(cached) $ac_c" 1>&6
20314 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20315 echo "configure:20316: checking for dbm_open" >&5
20316 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 /* System header to define __stub macros and hopefully few prototypes,
20323 which can conflict with char dbm_open(); below. */
20324 #include <assert.h>
20325 /* Override any gcc2 internal prototype to avoid an error. */
20326 /* We use char because int might match the return type of a gcc2
20327 builtin and then its argument prototype would still apply. */
20333 /* The GNU C library defines this for functions which it implements
20334 to always fail with ENOSYS. Some functions are actually named
20335 something starting with __ and the normal name is an alias. */
20336 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20344 if { (eval echo configure:20345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20346 eval "ac_cv_func_dbm_open=yes"
20348 echo "configure: failed program was:" >&5
20349 cat conftest.$ac_ext >&5
20351 eval "ac_cv_func_dbm_open=no"
20356 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20357 echo "$ac_t""yes" 1>&6
20360 echo "$ac_t""no" 1>&6
20362 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20363 echo "configure:20364: checking for dbm_open in -lndbm" >&5
20364 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20365 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20366 echo $ac_n "(cached) $ac_c" 1>&6
20368 ac_save_LIBS="$LIBS"
20369 LIBS="-lndbm $LIBS"
20370 cat > conftest.$ac_ext <<EOF
20371 #line 20372 "configure"
20372 #include "confdefs.h"
20373 /* Override any gcc2 internal prototype to avoid an error. */
20374 /* We use char because int might match the return type of a gcc2
20375 builtin and then its argument prototype would still apply. */
20382 if { (eval echo configure:20383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20384 eval "ac_cv_lib_$ac_lib_var=yes"
20386 echo "configure: failed program was:" >&5
20387 cat conftest.$ac_ext >&5
20389 eval "ac_cv_lib_$ac_lib_var=no"
20392 LIBS="$ac_save_LIBS"
20395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20396 echo "$ac_t""yes" 1>&6
20397 ol_cv_lib_ndbm=-lndbm
20399 echo "$ac_t""no" 1>&6
20401 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20402 echo "configure:20403: checking for dbm_open in -ldbm" >&5
20403 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20404 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20405 echo $ac_n "(cached) $ac_c" 1>&6
20407 ac_save_LIBS="$LIBS"
20409 cat > conftest.$ac_ext <<EOF
20410 #line 20411 "configure"
20411 #include "confdefs.h"
20412 /* Override any gcc2 internal prototype to avoid an error. */
20413 /* We use char because int might match the return type of a gcc2
20414 builtin and then its argument prototype would still apply. */
20421 if { (eval echo configure:20422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20423 eval "ac_cv_lib_$ac_lib_var=yes"
20425 echo "configure: failed program was:" >&5
20426 cat conftest.$ac_ext >&5
20428 eval "ac_cv_lib_$ac_lib_var=no"
20431 LIBS="$ac_save_LIBS"
20434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20435 echo "$ac_t""yes" 1>&6
20436 ol_cv_lib_ndbm=-ldbm
20438 echo "$ac_t""no" 1>&6
20451 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20454 for ac_hdr in ndbm.h
20456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20458 echo "configure:20459: checking for $ac_hdr" >&5
20459 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20460 echo $ac_n "(cached) $ac_c" 1>&6
20462 cat > conftest.$ac_ext <<EOF
20463 #line 20464 "configure"
20464 #include "confdefs.h"
20467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20468 { (eval echo configure:20469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20470 if test -z "$ac_err"; then
20472 eval "ac_cv_header_$ac_safe=yes"
20475 echo "configure: failed program was:" >&5
20476 cat conftest.$ac_ext >&5
20478 eval "ac_cv_header_$ac_safe=no"
20482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20483 echo "$ac_t""yes" 1>&6
20484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20485 cat >> confdefs.h <<EOF
20486 #define $ac_tr_hdr 1
20490 echo "$ac_t""no" 1>&6
20494 echo $ac_n "checking for db""... $ac_c" 1>&6
20495 echo "configure:20496: checking for db" >&5
20496 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20497 echo $ac_n "(cached) $ac_c" 1>&6
20500 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20508 echo "$ac_t""$ol_cv_ndbm" 1>&6
20509 if test $ol_cv_ndbm = yes ; then
20510 cat >> confdefs.h <<\EOF
20511 #define HAVE_NDBM 1
20517 if test $ol_cv_ndbm = yes ; then
20519 ol_with_ldbm_api=ndbm
20521 if test $ol_cv_lib_ndbm != yes ; then
20522 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20527 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20528 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20529 if test $ol_enable_ldbm = yes ; then
20530 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20533 echo "configure: warning: disabling LDBM" 1>&2
20538 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20539 BUILD_LIBS_DYNAMIC=shared
20540 cat >> confdefs.h <<\EOF
20541 #define LDAP_LIBS_DYNAMIC 1
20546 BUILD_LIBS_DYNAMIC=static
20550 if test $ol_enable_wrappers != no ; then
20551 for ac_hdr in tcpd.h
20553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20555 echo "configure:20556: checking for $ac_hdr" >&5
20556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20557 echo $ac_n "(cached) $ac_c" 1>&6
20559 cat > conftest.$ac_ext <<EOF
20560 #line 20561 "configure"
20561 #include "confdefs.h"
20564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20565 { (eval echo configure:20566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20567 if test -z "$ac_err"; then
20569 eval "ac_cv_header_$ac_safe=yes"
20572 echo "configure: failed program was:" >&5
20573 cat conftest.$ac_ext >&5
20575 eval "ac_cv_header_$ac_safe=no"
20579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20580 echo "$ac_t""yes" 1>&6
20581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20582 cat >> confdefs.h <<EOF
20583 #define $ac_tr_hdr 1
20586 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20587 echo "configure:20588: checking for TCP wrappers library" >&5
20589 LIBS="$LIBS -lwrap"
20590 cat > conftest.$ac_ext <<EOF
20591 #line 20592 "configure"
20592 #include "confdefs.h"
20595 int allow_severity = 0;
20596 int deny_severity = 0;
20598 struct request_info *req;
20606 if { (eval echo configure:20607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20608 echo "$ac_t""-lwrap" 1>&6
20612 echo "configure: failed program was:" >&5
20613 cat conftest.$ac_ext >&5
20617 cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20622 int allow_severity = 0;
20623 int deny_severity = 0;
20625 struct request_info *req;
20633 if { (eval echo configure:20634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20635 echo "$ac_t""-lwrap -lnsl" 1>&6
20637 LIBS="$save_LIBS -lnsl"
20639 echo "configure: failed program was:" >&5
20640 cat conftest.$ac_ext >&5
20643 echo "$ac_t""no" 1>&6
20651 echo "$ac_t""no" 1>&6
20657 if test $have_wrappers = yes ; then
20658 cat >> confdefs.h <<\EOF
20659 #define HAVE_TCPD 1
20663 elif test $ol_enable_wrappers = yes ; then
20664 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20666 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20671 if test $ol_enable_syslog != no ; then
20672 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20673 echo "configure:20674: checking for openlog" >&5
20674 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20675 echo $ac_n "(cached) $ac_c" 1>&6
20677 cat > conftest.$ac_ext <<EOF
20678 #line 20679 "configure"
20679 #include "confdefs.h"
20680 /* System header to define __stub macros and hopefully few prototypes,
20681 which can conflict with char openlog(); below. */
20682 #include <assert.h>
20683 /* Override any gcc2 internal prototype to avoid an error. */
20684 /* We use char because int might match the return type of a gcc2
20685 builtin and then its argument prototype would still apply. */
20691 /* The GNU C library defines this for functions which it implements
20692 to always fail with ENOSYS. Some functions are actually named
20693 something starting with __ and the normal name is an alias. */
20694 #if defined (__stub_openlog) || defined (__stub___openlog)
20702 if { (eval echo configure:20703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20704 eval "ac_cv_func_openlog=yes"
20706 echo "configure: failed program was:" >&5
20707 cat conftest.$ac_ext >&5
20709 eval "ac_cv_func_openlog=no"
20714 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20715 echo "$ac_t""yes" 1>&6
20718 echo "$ac_t""no" 1>&6
20721 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20722 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20724 ol_enable_syslog=$ac_cv_func_openlog
20729 if test $ol_enable_sql != no ; then
20730 for ac_hdr in sql.h sqlext.h
20732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20734 echo "configure:20735: checking for $ac_hdr" >&5
20735 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20736 echo $ac_n "(cached) $ac_c" 1>&6
20738 cat > conftest.$ac_ext <<EOF
20739 #line 20740 "configure"
20740 #include "confdefs.h"
20743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20744 { (eval echo configure:20745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20746 if test -z "$ac_err"; then
20748 eval "ac_cv_header_$ac_safe=yes"
20751 echo "configure: failed program was:" >&5
20752 cat conftest.$ac_ext >&5
20754 eval "ac_cv_header_$ac_safe=no"
20758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20759 echo "$ac_t""yes" 1>&6
20760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20761 cat >> confdefs.h <<EOF
20762 #define $ac_tr_hdr 1
20766 echo "$ac_t""no" 1>&6
20767 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20773 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20774 echo "configure:20775: checking for SQLDriverConnect in -liodbc" >&5
20775 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20776 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20777 echo $ac_n "(cached) $ac_c" 1>&6
20779 ac_save_LIBS="$LIBS"
20780 LIBS="-liodbc $LIBS"
20781 cat > conftest.$ac_ext <<EOF
20782 #line 20783 "configure"
20783 #include "confdefs.h"
20784 /* Override any gcc2 internal prototype to avoid an error. */
20785 /* We use char because int might match the return type of a gcc2
20786 builtin and then its argument prototype would still apply. */
20787 char SQLDriverConnect();
20793 if { (eval echo configure:20794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20795 eval "ac_cv_lib_$ac_lib_var=yes"
20797 echo "configure: failed program was:" >&5
20798 cat conftest.$ac_ext >&5
20800 eval "ac_cv_lib_$ac_lib_var=no"
20803 LIBS="$ac_save_LIBS"
20806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20807 echo "$ac_t""yes" 1>&6
20810 echo "$ac_t""no" 1>&6
20814 if test $have_iodbc = yes ; then
20815 ol_link_sql="-liodbc"
20817 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20818 echo "configure:20819: checking for SQLDriverConnect in -lodbc" >&5
20819 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20820 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20821 echo $ac_n "(cached) $ac_c" 1>&6
20823 ac_save_LIBS="$LIBS"
20824 LIBS="-lodbc $LIBS"
20825 cat > conftest.$ac_ext <<EOF
20826 #line 20827 "configure"
20827 #include "confdefs.h"
20828 /* Override any gcc2 internal prototype to avoid an error. */
20829 /* We use char because int might match the return type of a gcc2
20830 builtin and then its argument prototype would still apply. */
20831 char SQLDriverConnect();
20837 if { (eval echo configure:20838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20839 eval "ac_cv_lib_$ac_lib_var=yes"
20841 echo "configure: failed program was:" >&5
20842 cat conftest.$ac_ext >&5
20844 eval "ac_cv_lib_$ac_lib_var=no"
20847 LIBS="$ac_save_LIBS"
20850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20851 echo "$ac_t""yes" 1>&6
20854 echo "$ac_t""no" 1>&6
20858 if test $have_odbc = yes ; then
20859 ol_link_sql="-lodbc"
20863 if test $ol_link_sql != no ; then
20864 SLAPD_SQL_LIBS="$ol_link_sql"
20866 elif test $ol_enable_sql != auto ; then
20867 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20873 if test $ol_with_cyrus_sasl != no ; then
20874 for ac_hdr in sasl/sasl.h sasl.h
20876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20878 echo "configure:20879: checking for $ac_hdr" >&5
20879 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20880 echo $ac_n "(cached) $ac_c" 1>&6
20882 cat > conftest.$ac_ext <<EOF
20883 #line 20884 "configure"
20884 #include "confdefs.h"
20887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20888 { (eval echo configure:20889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20890 if test -z "$ac_err"; then
20892 eval "ac_cv_header_$ac_safe=yes"
20895 echo "configure: failed program was:" >&5
20896 cat conftest.$ac_ext >&5
20898 eval "ac_cv_header_$ac_safe=no"
20902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20903 echo "$ac_t""yes" 1>&6
20904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20905 cat >> confdefs.h <<EOF
20906 #define $ac_tr_hdr 1
20910 echo "$ac_t""no" 1>&6
20915 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20916 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20917 echo "configure:20918: checking for sasl_client_init in -lsasl2" >&5
20918 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20920 echo $ac_n "(cached) $ac_c" 1>&6
20922 ac_save_LIBS="$LIBS"
20923 LIBS="-lsasl2 $LIBS"
20924 cat > conftest.$ac_ext <<EOF
20925 #line 20926 "configure"
20926 #include "confdefs.h"
20927 /* Override any gcc2 internal prototype to avoid an error. */
20928 /* We use char because int might match the return type of a gcc2
20929 builtin and then its argument prototype would still apply. */
20930 char sasl_client_init();
20936 if { (eval echo configure:20937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20938 eval "ac_cv_lib_$ac_lib_var=yes"
20940 echo "configure: failed program was:" >&5
20941 cat conftest.$ac_ext >&5
20943 eval "ac_cv_lib_$ac_lib_var=no"
20946 LIBS="$ac_save_LIBS"
20949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20950 echo "$ac_t""yes" 1>&6
20951 ol_link_sasl="-lsasl2"
20953 echo "$ac_t""no" 1>&6
20954 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20955 echo "configure:20956: checking for sasl_client_init in -lsasl" >&5
20956 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20957 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20958 echo $ac_n "(cached) $ac_c" 1>&6
20960 ac_save_LIBS="$LIBS"
20961 LIBS="-lsasl $LIBS"
20962 cat > conftest.$ac_ext <<EOF
20963 #line 20964 "configure"
20964 #include "confdefs.h"
20965 /* Override any gcc2 internal prototype to avoid an error. */
20966 /* We use char because int might match the return type of a gcc2
20967 builtin and then its argument prototype would still apply. */
20968 char sasl_client_init();
20974 if { (eval echo configure:20975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20976 eval "ac_cv_lib_$ac_lib_var=yes"
20978 echo "configure: failed program was:" >&5
20979 cat conftest.$ac_ext >&5
20981 eval "ac_cv_lib_$ac_lib_var=no"
20984 LIBS="$ac_save_LIBS"
20987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20988 echo "$ac_t""yes" 1>&6
20989 ol_link_sasl="-lsasl"
20991 echo "$ac_t""no" 1>&6
20998 if test $ol_link_sasl = no ; then
20999 if test $ol_with_cyrus_sasl != auto ; then
21000 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21002 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21003 echo "configure: warning: SASL authentication not supported!" 1>&2
21004 if test $ol_link_tls = no ; then
21005 echo "configure: warning: Strong authentication not supported!" 1>&2
21009 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21010 echo "configure:21011: checking Cyrus SASL library version" >&5
21011 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21012 echo $ac_n "(cached) $ac_c" 1>&6
21015 cat > conftest.$ac_ext <<EOF
21016 #line 21017 "configure"
21017 #include "confdefs.h"
21019 #ifdef HAVE_SASL_SASL_H
21020 #include <sasl/sasl.h>
21025 /* Require 2.1.15+ */
21026 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21027 char *__sasl_compat = "2.2+ or better okay (we guess)";
21028 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21029 && SASL_VERSION_STEP >=15
21030 char *__sasl_compat = "2.1.15+ or better okay";
21034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21035 egrep "__sasl_compat" >/dev/null 2>&1; then
21037 ol_cv_sasl_compat=yes
21040 ol_cv_sasl_compat=no
21046 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21048 if test $ol_cv_sasl_compat = no ; then
21050 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
21053 cat >> confdefs.h <<\EOF
21054 #define HAVE_CYRUS_SASL 1
21057 SASL_LIBS="$ol_link_sasl"
21058 if test $ol_enable_spasswd != no ; then
21059 ol_link_spasswd=yes
21062 ac_save_LIBS="$LIBS"
21063 LIBS="$LIBS $ol_link_sasl"
21064 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21065 echo "configure:21066: checking for sasl_version" >&5
21066 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21067 echo $ac_n "(cached) $ac_c" 1>&6
21069 cat > conftest.$ac_ext <<EOF
21070 #line 21071 "configure"
21071 #include "confdefs.h"
21072 /* System header to define __stub macros and hopefully few prototypes,
21073 which can conflict with char sasl_version(); below. */
21074 #include <assert.h>
21075 /* Override any gcc2 internal prototype to avoid an error. */
21076 /* We use char because int might match the return type of a gcc2
21077 builtin and then its argument prototype would still apply. */
21078 char sasl_version();
21083 /* The GNU C library defines this for functions which it implements
21084 to always fail with ENOSYS. Some functions are actually named
21085 something starting with __ and the normal name is an alias. */
21086 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21094 if { (eval echo configure:21095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21096 eval "ac_cv_func_sasl_version=yes"
21098 echo "configure: failed program was:" >&5
21099 cat conftest.$ac_ext >&5
21101 eval "ac_cv_func_sasl_version=no"
21106 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21107 echo "$ac_t""yes" 1>&6
21108 cat >> confdefs.h <<\EOF
21109 #define HAVE_SASL_VERSION 1
21113 echo "$ac_t""no" 1>&6
21116 LIBS="$ac_save_LIBS"
21120 echo "configure: warning: SASL authentication not supported!" 1>&2
21121 if test $ol_link_tls = no ; then
21122 echo "configure: warning: Strong authentication not supported!" 1>&2
21126 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21128 if test -r /dev/urandom ; then
21129 dev="/dev/urandom";
21130 elif test -r /idev/urandom ; then
21131 dev="/idev/urandom";
21132 elif test -r /dev/srandom ; then
21133 dev="/dev/srandom";
21134 elif test -r /dev/random ; then
21136 elif test -r /idev/random ; then
21137 dev="/idev/random";
21140 if test $dev != no ; then
21141 cat >> confdefs.h <<EOF
21142 #define URANDOM_DEVICE "$dev"
21149 if test $ol_with_fetch != no ; then
21151 LIBS="-lfetch -lcom_err $LIBS"
21152 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21153 echo "configure:21154: checking fetch(3) library" >&5
21154 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21155 echo $ac_n "(cached) $ac_c" 1>&6
21158 cat > conftest.$ac_ext <<EOF
21159 #line 21160 "configure"
21160 #include "confdefs.h"
21162 #include <sys/param.h>
21166 struct url *u = fetchParseURL("file:///");
21169 if { (eval echo configure:21170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21171 ol_cv_lib_fetch=yes
21173 echo "configure: failed program was:" >&5
21174 cat conftest.$ac_ext >&5
21181 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21183 if test $ol_cv_lib_fetch != no ; then
21184 ol_link_fetch="-lfetch -lcom_err"
21185 cat >> confdefs.h <<\EOF
21186 #define HAVE_FETCH 1
21192 if test $ol_cv_lib_fetch != no ; then
21193 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21194 ol_link_fetch=freebsd
21196 elif test $ol_with_fetch != auto ; then
21197 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21201 if test $ol_enable_crypt != no ; then
21203 LIBS="$TLS_LIBS $LIBS"
21205 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21206 echo "configure:21207: checking for crypt" >&5
21207 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21208 echo $ac_n "(cached) $ac_c" 1>&6
21210 cat > conftest.$ac_ext <<EOF
21211 #line 21212 "configure"
21212 #include "confdefs.h"
21213 /* System header to define __stub macros and hopefully few prototypes,
21214 which can conflict with char crypt(); below. */
21215 #include <assert.h>
21216 /* Override any gcc2 internal prototype to avoid an error. */
21217 /* We use char because int might match the return type of a gcc2
21218 builtin and then its argument prototype would still apply. */
21224 /* The GNU C library defines this for functions which it implements
21225 to always fail with ENOSYS. Some functions are actually named
21226 something starting with __ and the normal name is an alias. */
21227 #if defined (__stub_crypt) || defined (__stub___crypt)
21235 if { (eval echo configure:21236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21237 eval "ac_cv_func_crypt=yes"
21239 echo "configure: failed program was:" >&5
21240 cat conftest.$ac_ext >&5
21242 eval "ac_cv_func_crypt=no"
21247 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21248 echo "$ac_t""yes" 1>&6
21251 echo "$ac_t""no" 1>&6
21254 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21255 echo "configure:21256: checking for crypt in -lcrypt" >&5
21256 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21257 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21258 echo $ac_n "(cached) $ac_c" 1>&6
21260 ac_save_LIBS="$LIBS"
21261 LIBS="-lcrypt $LIBS"
21262 cat > conftest.$ac_ext <<EOF
21263 #line 21264 "configure"
21264 #include "confdefs.h"
21265 /* Override any gcc2 internal prototype to avoid an error. */
21266 /* We use char because int might match the return type of a gcc2
21267 builtin and then its argument prototype would still apply. */
21274 if { (eval echo configure:21275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21276 eval "ac_cv_lib_$ac_lib_var=yes"
21278 echo "configure: failed program was:" >&5
21279 cat conftest.$ac_ext >&5
21281 eval "ac_cv_lib_$ac_lib_var=no"
21284 LIBS="$ac_save_LIBS"
21287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21288 echo "$ac_t""yes" 1>&6
21289 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21292 echo "$ac_t""no" 1>&6
21301 if test $have_crypt = yes ; then
21302 cat >> confdefs.h <<\EOF
21303 #define HAVE_CRYPT 1
21307 echo "configure: warning: could not find crypt" 1>&2
21308 if test $ol_enable_crypt = yes ; then
21309 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21312 echo "configure: warning: disabling crypt support" 1>&2
21317 if test $ol_enable_proctitle != no ; then
21318 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21319 echo "configure:21320: checking for setproctitle" >&5
21320 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21321 echo $ac_n "(cached) $ac_c" 1>&6
21323 cat > conftest.$ac_ext <<EOF
21324 #line 21325 "configure"
21325 #include "confdefs.h"
21326 /* System header to define __stub macros and hopefully few prototypes,
21327 which can conflict with char setproctitle(); below. */
21328 #include <assert.h>
21329 /* Override any gcc2 internal prototype to avoid an error. */
21330 /* We use char because int might match the return type of a gcc2
21331 builtin and then its argument prototype would still apply. */
21332 char setproctitle();
21337 /* The GNU C library defines this for functions which it implements
21338 to always fail with ENOSYS. Some functions are actually named
21339 something starting with __ and the normal name is an alias. */
21340 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21348 if { (eval echo configure:21349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21350 eval "ac_cv_func_setproctitle=yes"
21352 echo "configure: failed program was:" >&5
21353 cat conftest.$ac_ext >&5
21355 eval "ac_cv_func_setproctitle=no"
21360 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21361 echo "$ac_t""yes" 1>&6
21362 have_setproctitle=yes
21364 echo "$ac_t""no" 1>&6
21366 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21367 echo "configure:21368: checking for setproctitle in -lutil" >&5
21368 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21370 echo $ac_n "(cached) $ac_c" 1>&6
21372 ac_save_LIBS="$LIBS"
21373 LIBS="-lutil $LIBS"
21374 cat > conftest.$ac_ext <<EOF
21375 #line 21376 "configure"
21376 #include "confdefs.h"
21377 /* Override any gcc2 internal prototype to avoid an error. */
21378 /* We use char because int might match the return type of a gcc2
21379 builtin and then its argument prototype would still apply. */
21380 char setproctitle();
21386 if { (eval echo configure:21387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21388 eval "ac_cv_lib_$ac_lib_var=yes"
21390 echo "configure: failed program was:" >&5
21391 cat conftest.$ac_ext >&5
21393 eval "ac_cv_lib_$ac_lib_var=no"
21396 LIBS="$ac_save_LIBS"
21399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21400 echo "$ac_t""yes" 1>&6
21401 have_setproctitle=yes
21402 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21404 echo "$ac_t""no" 1>&6
21405 have_setproctitle=no
21406 LIBOBJS="$LIBOBJS setproctitle.o"
21407 LIBSRCS="$LIBSRCS setproctitle.c"
21413 if test $have_setproctitle = yes ; then
21414 cat >> confdefs.h <<\EOF
21415 #define HAVE_SETPROCTITLE 1
21421 if test $ol_enable_slp != no ; then
21422 for ac_hdr in slp.h
21424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21426 echo "configure:21427: checking for $ac_hdr" >&5
21427 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21428 echo $ac_n "(cached) $ac_c" 1>&6
21430 cat > conftest.$ac_ext <<EOF
21431 #line 21432 "configure"
21432 #include "confdefs.h"
21435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21436 { (eval echo configure:21437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21438 if test -z "$ac_err"; then
21440 eval "ac_cv_header_$ac_safe=yes"
21443 echo "configure: failed program was:" >&5
21444 cat conftest.$ac_ext >&5
21446 eval "ac_cv_header_$ac_safe=no"
21450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21451 echo "$ac_t""yes" 1>&6
21452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21453 cat >> confdefs.h <<EOF
21454 #define $ac_tr_hdr 1
21458 echo "$ac_t""no" 1>&6
21463 if test $ac_cv_header_slp_h = yes ; then
21464 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21465 echo "configure:21466: checking for SLPOpen in -lslp" >&5
21466 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21468 echo $ac_n "(cached) $ac_c" 1>&6
21470 ac_save_LIBS="$LIBS"
21472 cat > conftest.$ac_ext <<EOF
21473 #line 21474 "configure"
21474 #include "confdefs.h"
21475 /* Override any gcc2 internal prototype to avoid an error. */
21476 /* We use char because int might match the return type of a gcc2
21477 builtin and then its argument prototype would still apply. */
21484 if { (eval echo configure:21485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21486 eval "ac_cv_lib_$ac_lib_var=yes"
21488 echo "configure: failed program was:" >&5
21489 cat conftest.$ac_ext >&5
21491 eval "ac_cv_lib_$ac_lib_var=no"
21494 LIBS="$ac_save_LIBS"
21497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21498 echo "$ac_t""yes" 1>&6
21501 echo "$ac_t""no" 1>&6
21505 if test $have_slp = yes ; then
21506 cat >> confdefs.h <<\EOF
21510 SLAPD_SLP_LIBS=-lslp
21513 elif test $ol_enable_slp = yes ; then
21514 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21519 echo $ac_n "checking long long""... $ac_c" 1>&6
21520 echo "configure:21521: checking long long" >&5
21521 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21522 echo $ac_n "(cached) $ac_c" 1>&6
21525 cat > conftest.$ac_ext <<EOF
21526 #line 21527 "configure"
21527 #include "confdefs.h"
21533 if { (eval echo configure:21534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21535 ol_cv_type_long_long=yes
21537 echo "configure: failed program was:" >&5
21538 cat conftest.$ac_ext >&5
21540 ol_cv_type_long_long=no
21545 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21546 if test $ol_cv_type_long_long = yes; then
21547 cat >> confdefs.h <<\EOF
21548 #define HAVE_LONG_LONG 1
21553 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21554 echo "configure:21555: checking for ANSI C header files" >&5
21555 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21556 echo $ac_n "(cached) $ac_c" 1>&6
21558 cat > conftest.$ac_ext <<EOF
21559 #line 21560 "configure"
21560 #include "confdefs.h"
21561 #include <stdlib.h>
21562 #include <stdarg.h>
21563 #include <string.h>
21566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21567 { (eval echo configure:21568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21569 if test -z "$ac_err"; then
21571 ac_cv_header_stdc=yes
21574 echo "configure: failed program was:" >&5
21575 cat conftest.$ac_ext >&5
21577 ac_cv_header_stdc=no
21581 if test $ac_cv_header_stdc = yes; then
21582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21583 cat > conftest.$ac_ext <<EOF
21584 #line 21585 "configure"
21585 #include "confdefs.h"
21586 #include <string.h>
21588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21589 egrep "memchr" >/dev/null 2>&1; then
21593 ac_cv_header_stdc=no
21599 if test $ac_cv_header_stdc = yes; then
21600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21601 cat > conftest.$ac_ext <<EOF
21602 #line 21603 "configure"
21603 #include "confdefs.h"
21604 #include <stdlib.h>
21606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21607 egrep "free" >/dev/null 2>&1; then
21611 ac_cv_header_stdc=no
21617 if test $ac_cv_header_stdc = yes; then
21618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21619 if test "$cross_compiling" = yes; then
21622 cat > conftest.$ac_ext <<EOF
21623 #line 21624 "configure"
21624 #include "confdefs.h"
21626 #if ((' ' & 0x0FF) == 0x020)
21627 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21628 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21630 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21631 || ('j' <= (c) && (c) <= 'r') \
21632 || ('s' <= (c) && (c) <= 'z'))
21633 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21636 int main () { int i; for (i = 0; i < 256; i++)
21637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21641 if { (eval echo configure:21642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21645 echo "configure: failed program was:" >&5
21646 cat conftest.$ac_ext >&5
21648 ac_cv_header_stdc=no
21656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21657 if test $ac_cv_header_stdc = yes; then
21658 cat >> confdefs.h <<\EOF
21659 #define STDC_HEADERS 1
21664 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21665 echo "configure:21666: checking for mode_t" >&5
21666 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21667 echo $ac_n "(cached) $ac_c" 1>&6
21669 cat > conftest.$ac_ext <<EOF
21670 #line 21671 "configure"
21671 #include "confdefs.h"
21672 #include <sys/types.h>
21674 #include <stdlib.h>
21675 #include <stddef.h>
21679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21680 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21682 eval "ac_cv_type_mode_t=yes"
21685 eval "ac_cv_type_mode_t=no"
21690 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21691 echo "$ac_t""yes" 1>&6
21693 echo "$ac_t""no" 1>&6
21694 cat >> confdefs.h <<EOF
21700 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21701 echo "configure:21702: checking for off_t" >&5
21702 if eval "test \"\${ac_cv_type_off_t+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"
21708 #include <sys/types.h>
21710 #include <stdlib.h>
21711 #include <stddef.h>
21715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21716 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21718 eval "ac_cv_type_off_t=yes"
21721 eval "ac_cv_type_off_t=no"
21726 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21727 echo "$ac_t""yes" 1>&6
21729 echo "$ac_t""no" 1>&6
21730 cat >> confdefs.h <<EOF
21736 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21737 echo "configure:21738: checking for pid_t" >&5
21738 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21739 echo $ac_n "(cached) $ac_c" 1>&6
21741 cat > conftest.$ac_ext <<EOF
21742 #line 21743 "configure"
21743 #include "confdefs.h"
21744 #include <sys/types.h>
21746 #include <stdlib.h>
21747 #include <stddef.h>
21751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21752 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21754 eval "ac_cv_type_pid_t=yes"
21757 eval "ac_cv_type_pid_t=no"
21762 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21763 echo "$ac_t""yes" 1>&6
21765 echo "$ac_t""no" 1>&6
21766 cat >> confdefs.h <<EOF
21772 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21773 echo "configure:21774: checking for ptrdiff_t" >&5
21774 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21775 echo $ac_n "(cached) $ac_c" 1>&6
21777 cat > conftest.$ac_ext <<EOF
21778 #line 21779 "configure"
21779 #include "confdefs.h"
21780 #include <stddef.h>
21785 if { (eval echo configure:21786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21787 am_cv_type_ptrdiff_t=yes
21789 echo "configure: failed program was:" >&5
21790 cat conftest.$ac_ext >&5
21792 am_cv_type_ptrdiff_t=no
21797 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21798 if test $am_cv_type_ptrdiff_t = yes; then
21799 cat >> confdefs.h <<\EOF
21800 #define HAVE_PTRDIFF_T 1
21805 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21806 echo "configure:21807: checking return type of signal handlers" >&5
21807 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21808 echo $ac_n "(cached) $ac_c" 1>&6
21810 cat > conftest.$ac_ext <<EOF
21811 #line 21812 "configure"
21812 #include "confdefs.h"
21813 #include <sys/types.h>
21814 #include <signal.h>
21819 extern "C" void (*signal (int, void (*)(int)))(int);
21821 void (*signal ()) ();
21828 if { (eval echo configure:21829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21830 ac_cv_type_signal=void
21832 echo "configure: failed program was:" >&5
21833 cat conftest.$ac_ext >&5
21835 ac_cv_type_signal=int
21840 echo "$ac_t""$ac_cv_type_signal" 1>&6
21841 cat >> confdefs.h <<EOF
21842 #define RETSIGTYPE $ac_cv_type_signal
21846 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21847 echo "configure:21848: checking for size_t" >&5
21848 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21849 echo $ac_n "(cached) $ac_c" 1>&6
21851 cat > conftest.$ac_ext <<EOF
21852 #line 21853 "configure"
21853 #include "confdefs.h"
21854 #include <sys/types.h>
21856 #include <stdlib.h>
21857 #include <stddef.h>
21861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21862 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21864 eval "ac_cv_type_size_t=yes"
21867 eval "ac_cv_type_size_t=no"
21872 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21873 echo "$ac_t""yes" 1>&6
21875 echo "$ac_t""no" 1>&6
21876 cat >> confdefs.h <<EOF
21877 #define size_t unsigned
21883 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21884 echo "configure:21885: checking for ssize_t" >&5
21885 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21886 echo $ac_n "(cached) $ac_c" 1>&6
21888 cat > conftest.$ac_ext <<EOF
21889 #line 21890 "configure"
21890 #include "confdefs.h"
21891 #include <sys/types.h>
21893 #include <stdlib.h>
21894 #include <stddef.h>
21898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21899 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21901 eval "ac_cv_type_ssize_t=yes"
21904 eval "ac_cv_type_ssize_t=no"
21909 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21910 echo "$ac_t""yes" 1>&6
21912 echo "$ac_t""no" 1>&6
21913 cat >> confdefs.h <<EOF
21914 #define ssize_t signed int
21919 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21920 echo "configure:21921: checking for caddr_t" >&5
21921 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21922 echo $ac_n "(cached) $ac_c" 1>&6
21924 cat > conftest.$ac_ext <<EOF
21925 #line 21926 "configure"
21926 #include "confdefs.h"
21927 #include <sys/types.h>
21929 #include <stdlib.h>
21930 #include <stddef.h>
21934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21935 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21937 eval "ac_cv_type_caddr_t=yes"
21940 eval "ac_cv_type_caddr_t=no"
21945 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21946 echo "$ac_t""yes" 1>&6
21948 echo "$ac_t""no" 1>&6
21949 cat >> confdefs.h <<EOF
21950 #define caddr_t char *
21956 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21957 echo "configure:21958: checking for socklen_t" >&5
21958 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21959 echo $ac_n "(cached) $ac_c" 1>&6
21961 cat > conftest.$ac_ext <<EOF
21962 #line 21963 "configure"
21963 #include "confdefs.h"
21965 #ifdef HAVE_SYS_TYPES_H
21966 #include <sys/types.h>
21968 #ifdef HAVE_SYS_SOCKET_H
21969 #include <sys/socket.h>
21976 if { (eval echo configure:21977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21978 ol_cv_type_socklen_t=yes
21980 echo "configure: failed program was:" >&5
21981 cat conftest.$ac_ext >&5
21983 ol_cv_type_socklen_t=no
21988 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21989 if test $ol_cv_type_socklen_t = no; then
21990 cat >> confdefs.h <<\EOF
21991 #define socklen_t int
21996 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21997 echo "configure:21998: checking for member st_blksize in aggregate type struct stat" >&5
21998 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21999 echo $ac_n "(cached) $ac_c" 1>&6
22001 cat > conftest.$ac_ext <<EOF
22002 #line 22003 "configure"
22003 #include "confdefs.h"
22004 #include <sys/types.h>
22005 #include <sys/stat.h>
22007 struct stat foo; foo.st_blksize;
22010 if { (eval echo configure:22011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22012 ac_cv_c_struct_member_st_blksize=yes
22014 echo "configure: failed program was:" >&5
22015 cat conftest.$ac_ext >&5
22017 ac_cv_c_struct_member_st_blksize=no
22022 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22023 st_blksize="$ac_cv_c_struct_member_st_blksize"
22024 if test $ac_cv_c_struct_member_st_blksize = yes; then
22025 cat >> confdefs.h <<\EOF
22026 #define HAVE_ST_BLKSIZE 1
22031 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22032 echo "configure:22033: checking whether time.h and sys/time.h may both be included" >&5
22033 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22034 echo $ac_n "(cached) $ac_c" 1>&6
22036 cat > conftest.$ac_ext <<EOF
22037 #line 22038 "configure"
22038 #include "confdefs.h"
22039 #include <sys/types.h>
22040 #include <sys/time.h>
22046 if { (eval echo configure:22047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22048 ac_cv_header_time=yes
22050 echo "configure: failed program was:" >&5
22051 cat conftest.$ac_ext >&5
22053 ac_cv_header_time=no
22058 echo "$ac_t""$ac_cv_header_time" 1>&6
22059 if test $ac_cv_header_time = yes; then
22060 cat >> confdefs.h <<\EOF
22061 #define TIME_WITH_SYS_TIME 1
22066 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22067 echo "configure:22068: checking whether struct tm is in sys/time.h or time.h" >&5
22068 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22069 echo $ac_n "(cached) $ac_c" 1>&6
22071 cat > conftest.$ac_ext <<EOF
22072 #line 22073 "configure"
22073 #include "confdefs.h"
22074 #include <sys/types.h>
22077 struct tm *tp; tp->tm_sec;
22080 if { (eval echo configure:22081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22082 ac_cv_struct_tm=time.h
22084 echo "configure: failed program was:" >&5
22085 cat conftest.$ac_ext >&5
22087 ac_cv_struct_tm=sys/time.h
22092 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22093 if test $ac_cv_struct_tm = sys/time.h; then
22094 cat >> confdefs.h <<\EOF
22095 #define TM_IN_SYS_TIME 1
22100 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22101 echo "configure:22102: checking for uid_t in sys/types.h" >&5
22102 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22103 echo $ac_n "(cached) $ac_c" 1>&6
22105 cat > conftest.$ac_ext <<EOF
22106 #line 22107 "configure"
22107 #include "confdefs.h"
22108 #include <sys/types.h>
22110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22111 egrep "uid_t" >/dev/null 2>&1; then
22113 ac_cv_type_uid_t=yes
22116 ac_cv_type_uid_t=no
22122 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22123 if test $ac_cv_type_uid_t = no; then
22124 cat >> confdefs.h <<\EOF
22128 cat >> confdefs.h <<\EOF
22134 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22135 echo "configure:22136: checking for sig_atomic_t" >&5
22136 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22137 echo $ac_n "(cached) $ac_c" 1>&6
22139 cat > conftest.$ac_ext <<EOF
22140 #line 22141 "configure"
22141 #include "confdefs.h"
22142 #include <signal.h>
22144 sig_atomic_t atomic;
22147 if { (eval echo configure:22148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22149 ol_cv_type_sig_atomic_t=yes
22151 echo "configure: failed program was:" >&5
22152 cat conftest.$ac_ext >&5
22154 ol_cv_type_sig_atomic_t=no
22159 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22160 if test $ol_cv_type_sig_atomic_t = no; then
22161 cat >> confdefs.h <<\EOF
22162 #define sig_atomic_t int
22169 # test for pw_gecos in struct passwd
22170 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22171 echo "configure:22172: checking struct passwd for pw_gecos" >&5
22172 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22173 echo $ac_n "(cached) $ac_c" 1>&6
22176 cat > conftest.$ac_ext <<EOF
22177 #line 22178 "configure"
22178 #include "confdefs.h"
22183 pwd.pw_gecos = pwd.pw_name;
22187 if { (eval echo configure:22188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22189 ol_cv_struct_passwd_pw_gecos=yes
22191 echo "configure: failed program was:" >&5
22192 cat conftest.$ac_ext >&5
22194 ol_cv_struct_passwd_pw_gecos=no
22199 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22200 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22201 cat >> confdefs.h <<\EOF
22202 #define HAVE_PW_GECOS 1
22207 # test for pw_passwd in struct passwd
22208 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22209 echo "configure:22210: checking struct passwd for pw_passwd" >&5
22210 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22211 echo $ac_n "(cached) $ac_c" 1>&6
22214 cat > conftest.$ac_ext <<EOF
22215 #line 22216 "configure"
22216 #include "confdefs.h"
22221 pwd.pw_passwd = pwd.pw_name;
22225 if { (eval echo configure:22226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22227 ol_cv_struct_passwd_pw_passwd=yes
22229 echo "configure: failed program was:" >&5
22230 cat conftest.$ac_ext >&5
22232 ol_cv_struct_passwd_pw_passwd=no
22237 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22238 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22239 cat >> confdefs.h <<\EOF
22240 #define HAVE_PW_PASSWD 1
22246 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22247 echo "configure:22248: checking if toupper() requires islower()" >&5
22248 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22249 echo $ac_n "(cached) $ac_c" 1>&6
22252 if test "$cross_compiling" = yes; then
22253 ol_cv_c_upper_lower=safe
22255 cat > conftest.$ac_ext <<EOF
22256 #line 22257 "configure"
22257 #include "confdefs.h"
22262 if ('C' == toupper('C'))
22268 if { (eval echo configure:22269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22270 ol_cv_c_upper_lower=no
22272 echo "configure: failed program was:" >&5
22273 cat conftest.$ac_ext >&5
22275 ol_cv_c_upper_lower=yes
22282 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22283 if test $ol_cv_c_upper_lower != no ; then
22284 cat >> confdefs.h <<\EOF
22285 #define C_UPPER_LOWER 1
22290 echo $ac_n "checking for working const""... $ac_c" 1>&6
22291 echo "configure:22292: checking for working const" >&5
22292 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22293 echo $ac_n "(cached) $ac_c" 1>&6
22295 cat > conftest.$ac_ext <<EOF
22296 #line 22297 "configure"
22297 #include "confdefs.h"
22301 /* Ultrix mips cc rejects this. */
22302 typedef int charset[2]; const charset x;
22303 /* SunOS 4.1.1 cc rejects this. */
22304 char const *const *ccp;
22306 /* NEC SVR4.0.2 mips cc rejects this. */
22307 struct point {int x, y;};
22308 static struct point const zero = {0,0};
22309 /* AIX XL C 1.02.0.0 rejects this.
22310 It does not let you subtract one const X* pointer from another in an arm
22311 of an if-expression whose if-part is not a constant expression */
22312 const char *g = "string";
22313 ccp = &g + (g ? g-g : 0);
22314 /* HPUX 7.0 cc rejects these. */
22317 ccp = (char const *const *) p;
22318 { /* SCO 3.2v4 cc rejects this. */
22320 char const *s = 0 ? (char *) 0 : (char const *) 0;
22324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22325 int x[] = {25, 17};
22326 const int *foo = &x[0];
22329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22330 typedef const int *iptr;
22334 { /* AIX XL C 1.02.0.0 rejects this saying
22335 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22336 struct s { int j; const int *ap[3]; };
22337 struct s *b; b->j = 5;
22339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22340 const int foo = 10;
22345 if { (eval echo configure:22346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22349 echo "configure: failed program was:" >&5
22350 cat conftest.$ac_ext >&5
22357 echo "$ac_t""$ac_cv_c_const" 1>&6
22358 if test $ac_cv_c_const = no; then
22359 cat >> confdefs.h <<\EOF
22365 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22366 echo "configure:22367: checking if compiler understands volatile" >&5
22367 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22368 echo $ac_n "(cached) $ac_c" 1>&6
22370 cat > conftest.$ac_ext <<EOF
22371 #line 22372 "configure"
22372 #include "confdefs.h"
22375 volatile int a; int * volatile b = x ? &y : &z;
22376 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22380 if { (eval echo configure:22381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22382 ol_cv_c_volatile=yes
22384 echo "configure: failed program was:" >&5
22385 cat conftest.$ac_ext >&5
22387 ol_cv_c_volatile=no
22392 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22393 if test $ol_cv_c_volatile = yes; then
22396 cat >> confdefs.h <<\EOF
22403 if test $cross_compiling = yes ; then
22404 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22405 cat >> confdefs.h <<\EOF
22406 #define CROSS_COMPILING 1
22410 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22411 echo "configure:22412: checking whether byte ordering is bigendian" >&5
22412 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22413 echo $ac_n "(cached) $ac_c" 1>&6
22415 ac_cv_c_bigendian=unknown
22416 # See if sys/param.h defines the BYTE_ORDER macro.
22417 cat > conftest.$ac_ext <<EOF
22418 #line 22419 "configure"
22419 #include "confdefs.h"
22420 #include <sys/types.h>
22421 #include <sys/param.h>
22424 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22425 bogus endian macros
22429 if { (eval echo configure:22430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22431 # It does; now see whether it defined to BIG_ENDIAN or not.
22432 cat > conftest.$ac_ext <<EOF
22433 #line 22434 "configure"
22434 #include "confdefs.h"
22435 #include <sys/types.h>
22436 #include <sys/param.h>
22439 #if BYTE_ORDER != BIG_ENDIAN
22444 if { (eval echo configure:22445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22446 ac_cv_c_bigendian=yes
22448 echo "configure: failed program was:" >&5
22449 cat conftest.$ac_ext >&5
22451 ac_cv_c_bigendian=no
22455 echo "configure: failed program was:" >&5
22456 cat conftest.$ac_ext >&5
22459 if test $ac_cv_c_bigendian = unknown; then
22460 if test "$cross_compiling" = yes; then
22461 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22463 cat > conftest.$ac_ext <<EOF
22464 #line 22465 "configure"
22465 #include "confdefs.h"
22467 /* Are we little or big endian? From Harbison&Steele. */
22471 char c[sizeof (long)];
22474 exit (u.c[sizeof (long) - 1] == 1);
22477 if { (eval echo configure:22478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22479 ac_cv_c_bigendian=no
22481 echo "configure: failed program was:" >&5
22482 cat conftest.$ac_ext >&5
22484 ac_cv_c_bigendian=yes
22492 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22493 if test $ac_cv_c_bigendian = yes; then
22494 cat >> confdefs.h <<\EOF
22495 #define WORDS_BIGENDIAN 1
22502 echo $ac_n "checking size of short""... $ac_c" 1>&6
22503 echo "configure:22504: checking size of short" >&5
22504 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22505 echo $ac_n "(cached) $ac_c" 1>&6
22507 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22508 cat > conftest.$ac_ext <<EOF
22509 #line 22510 "configure"
22510 #include "confdefs.h"
22511 #include "confdefs.h"
22512 #include <sys/types.h>
22516 switch (0) case 0: case (sizeof (short) == $ac_size):;
22519 if { (eval echo configure:22520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22521 ac_cv_sizeof_short=$ac_size
22523 echo "configure: failed program was:" >&5
22524 cat conftest.$ac_ext >&5
22527 if test x$ac_cv_sizeof_short != x ; then break; fi
22532 if test x$ac_cv_sizeof_short = x ; then
22533 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22535 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22536 cat >> confdefs.h <<EOF
22537 #define SIZEOF_SHORT $ac_cv_sizeof_short
22541 echo $ac_n "checking size of int""... $ac_c" 1>&6
22542 echo "configure:22543: checking size of int" >&5
22543 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22544 echo $ac_n "(cached) $ac_c" 1>&6
22546 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22547 cat > conftest.$ac_ext <<EOF
22548 #line 22549 "configure"
22549 #include "confdefs.h"
22550 #include "confdefs.h"
22551 #include <sys/types.h>
22555 switch (0) case 0: case (sizeof (int) == $ac_size):;
22558 if { (eval echo configure:22559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22560 ac_cv_sizeof_int=$ac_size
22562 echo "configure: failed program was:" >&5
22563 cat conftest.$ac_ext >&5
22566 if test x$ac_cv_sizeof_int != x ; then break; fi
22571 if test x$ac_cv_sizeof_int = x ; then
22572 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22574 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22575 cat >> confdefs.h <<EOF
22576 #define SIZEOF_INT $ac_cv_sizeof_int
22580 echo $ac_n "checking size of long""... $ac_c" 1>&6
22581 echo "configure:22582: checking size of long" >&5
22582 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22583 echo $ac_n "(cached) $ac_c" 1>&6
22585 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22586 cat > conftest.$ac_ext <<EOF
22587 #line 22588 "configure"
22588 #include "confdefs.h"
22589 #include "confdefs.h"
22590 #include <sys/types.h>
22594 switch (0) case 0: case (sizeof (long) == $ac_size):;
22597 if { (eval echo configure:22598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22599 ac_cv_sizeof_long=$ac_size
22601 echo "configure: failed program was:" >&5
22602 cat conftest.$ac_ext >&5
22605 if test x$ac_cv_sizeof_long != x ; then break; fi
22610 if test x$ac_cv_sizeof_long = x ; then
22611 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22613 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22614 cat >> confdefs.h <<EOF
22615 #define SIZEOF_LONG $ac_cv_sizeof_long
22620 if test "$ac_cv_sizeof_int" -lt 4 ; then
22621 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22623 cat >> confdefs.h <<\EOF
22624 #define LBER_INT_T long
22628 cat >> confdefs.h <<\EOF
22629 #define LBER_INT_T int
22634 cat >> confdefs.h <<\EOF
22635 #define LBER_LEN_T long
22638 cat >> confdefs.h <<\EOF
22639 #define LBER_SOCKET_T int
22642 cat >> confdefs.h <<\EOF
22643 #define LBER_TAG_T long
22647 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22648 echo "configure:22649: checking for 8-bit clean memcmp" >&5
22649 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22650 echo $ac_n "(cached) $ac_c" 1>&6
22652 if test "$cross_compiling" = yes; then
22653 ac_cv_func_memcmp_clean=no
22655 cat > conftest.$ac_ext <<EOF
22656 #line 22657 "configure"
22657 #include "confdefs.h"
22661 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22662 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22666 if { (eval echo configure:22667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22668 ac_cv_func_memcmp_clean=yes
22670 echo "configure: failed program was:" >&5
22671 cat conftest.$ac_ext >&5
22673 ac_cv_func_memcmp_clean=no
22680 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22681 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22683 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22684 echo "configure:22685: checking for strftime" >&5
22685 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22686 echo $ac_n "(cached) $ac_c" 1>&6
22688 cat > conftest.$ac_ext <<EOF
22689 #line 22690 "configure"
22690 #include "confdefs.h"
22691 /* System header to define __stub macros and hopefully few prototypes,
22692 which can conflict with char strftime(); below. */
22693 #include <assert.h>
22694 /* Override any gcc2 internal prototype to avoid an error. */
22695 /* We use char because int might match the return type of a gcc2
22696 builtin and then its argument prototype would still apply. */
22702 /* The GNU C library defines this for functions which it implements
22703 to always fail with ENOSYS. Some functions are actually named
22704 something starting with __ and the normal name is an alias. */
22705 #if defined (__stub_strftime) || defined (__stub___strftime)
22713 if { (eval echo configure:22714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22715 eval "ac_cv_func_strftime=yes"
22717 echo "configure: failed program was:" >&5
22718 cat conftest.$ac_ext >&5
22720 eval "ac_cv_func_strftime=no"
22725 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22726 echo "$ac_t""yes" 1>&6
22727 cat >> confdefs.h <<\EOF
22728 #define HAVE_STRFTIME 1
22732 echo "$ac_t""no" 1>&6
22733 # strftime is in -lintl on SCO UNIX.
22734 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22735 echo "configure:22736: checking for strftime in -lintl" >&5
22736 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22738 echo $ac_n "(cached) $ac_c" 1>&6
22740 ac_save_LIBS="$LIBS"
22741 LIBS="-lintl $LIBS"
22742 cat > conftest.$ac_ext <<EOF
22743 #line 22744 "configure"
22744 #include "confdefs.h"
22745 /* Override any gcc2 internal prototype to avoid an error. */
22746 /* We use char because int might match the return type of a gcc2
22747 builtin and then its argument prototype would still apply. */
22754 if { (eval echo configure:22755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22756 eval "ac_cv_lib_$ac_lib_var=yes"
22758 echo "configure: failed program was:" >&5
22759 cat conftest.$ac_ext >&5
22761 eval "ac_cv_lib_$ac_lib_var=no"
22764 LIBS="$ac_save_LIBS"
22767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22768 echo "$ac_t""yes" 1>&6
22769 cat >> confdefs.h <<\EOF
22770 #define HAVE_STRFTIME 1
22773 LIBS="-lintl $LIBS"
22775 echo "$ac_t""no" 1>&6
22781 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22782 echo "configure:22783: checking for inet_aton()" >&5
22783 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22784 echo $ac_n "(cached) $ac_c" 1>&6
22786 cat > conftest.$ac_ext <<EOF
22787 #line 22788 "configure"
22788 #include "confdefs.h"
22790 #ifdef HAVE_SYS_TYPES_H
22791 # include <sys/types.h>
22793 #ifdef HAVE_SYS_SOCKET_H
22794 # include <sys/socket.h>
22795 # ifdef HAVE_SYS_SELECT_H
22796 # include <sys/select.h>
22798 # include <netinet/in.h>
22799 # ifdef HAVE_ARPA_INET_H
22800 # include <arpa/inet.h>
22806 int rc = inet_aton( "255.255.255.255", &in );
22809 if { (eval echo configure:22810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22811 ol_cv_func_inet_aton=yes
22813 echo "configure: failed program was:" >&5
22814 cat conftest.$ac_ext >&5
22816 ol_cv_func_inet_aton=no
22821 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22822 if test $ol_cv_func_inet_aton != no; then
22823 cat >> confdefs.h <<\EOF
22824 #define HAVE_INET_ATON 1
22830 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22831 echo "configure:22832: checking for _spawnlp" >&5
22832 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22833 echo $ac_n "(cached) $ac_c" 1>&6
22835 cat > conftest.$ac_ext <<EOF
22836 #line 22837 "configure"
22837 #include "confdefs.h"
22838 /* System header to define __stub macros and hopefully few prototypes,
22839 which can conflict with char _spawnlp(); below. */
22840 #include <assert.h>
22841 /* Override any gcc2 internal prototype to avoid an error. */
22842 /* We use char because int might match the return type of a gcc2
22843 builtin and then its argument prototype would still apply. */
22849 /* The GNU C library defines this for functions which it implements
22850 to always fail with ENOSYS. Some functions are actually named
22851 something starting with __ and the normal name is an alias. */
22852 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22860 if { (eval echo configure:22861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22862 eval "ac_cv_func__spawnlp=yes"
22864 echo "configure: failed program was:" >&5
22865 cat conftest.$ac_ext >&5
22867 eval "ac_cv_func__spawnlp=no"
22872 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22873 echo "$ac_t""yes" 1>&6
22874 cat >> confdefs.h <<\EOF
22875 #define HAVE_SPAWNLP 1
22879 echo "$ac_t""no" 1>&6
22883 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22884 echo "configure:22885: checking for _snprintf" >&5
22885 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22886 echo $ac_n "(cached) $ac_c" 1>&6
22888 cat > conftest.$ac_ext <<EOF
22889 #line 22890 "configure"
22890 #include "confdefs.h"
22891 /* System header to define __stub macros and hopefully few prototypes,
22892 which can conflict with char _snprintf(); below. */
22893 #include <assert.h>
22894 /* Override any gcc2 internal prototype to avoid an error. */
22895 /* We use char because int might match the return type of a gcc2
22896 builtin and then its argument prototype would still apply. */
22902 /* The GNU C library defines this for functions which it implements
22903 to always fail with ENOSYS. Some functions are actually named
22904 something starting with __ and the normal name is an alias. */
22905 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22913 if { (eval echo configure:22914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22915 eval "ac_cv_func__snprintf=yes"
22917 echo "configure: failed program was:" >&5
22918 cat conftest.$ac_ext >&5
22920 eval "ac_cv_func__snprintf=no"
22925 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22926 echo "$ac_t""yes" 1>&6
22927 ac_cv_func_snprintf=yes
22928 cat >> confdefs.h <<\EOF
22929 #define snprintf _snprintf
22934 echo "$ac_t""no" 1>&6
22938 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22939 echo "configure:22940: checking for _vsnprintf" >&5
22940 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22941 echo $ac_n "(cached) $ac_c" 1>&6
22943 cat > conftest.$ac_ext <<EOF
22944 #line 22945 "configure"
22945 #include "confdefs.h"
22946 /* System header to define __stub macros and hopefully few prototypes,
22947 which can conflict with char _vsnprintf(); below. */
22948 #include <assert.h>
22949 /* Override any gcc2 internal prototype to avoid an error. */
22950 /* We use char because int might match the return type of a gcc2
22951 builtin and then its argument prototype would still apply. */
22957 /* The GNU C library defines this for functions which it implements
22958 to always fail with ENOSYS. Some functions are actually named
22959 something starting with __ and the normal name is an alias. */
22960 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22968 if { (eval echo configure:22969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22970 eval "ac_cv_func__vsnprintf=yes"
22972 echo "configure: failed program was:" >&5
22973 cat conftest.$ac_ext >&5
22975 eval "ac_cv_func__vsnprintf=no"
22980 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22981 echo "$ac_t""yes" 1>&6
22982 ac_cv_func_vsnprintf=yes
22983 cat >> confdefs.h <<\EOF
22984 #define vsnprintf _vsnprintf
22989 echo "$ac_t""no" 1>&6
22993 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22994 echo "configure:22995: checking for vprintf" >&5
22995 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22996 echo $ac_n "(cached) $ac_c" 1>&6
22998 cat > conftest.$ac_ext <<EOF
22999 #line 23000 "configure"
23000 #include "confdefs.h"
23001 /* System header to define __stub macros and hopefully few prototypes,
23002 which can conflict with char vprintf(); below. */
23003 #include <assert.h>
23004 /* Override any gcc2 internal prototype to avoid an error. */
23005 /* We use char because int might match the return type of a gcc2
23006 builtin and then its argument prototype would still apply. */
23012 /* The GNU C library defines this for functions which it implements
23013 to always fail with ENOSYS. Some functions are actually named
23014 something starting with __ and the normal name is an alias. */
23015 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23023 if { (eval echo configure:23024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23025 eval "ac_cv_func_vprintf=yes"
23027 echo "configure: failed program was:" >&5
23028 cat conftest.$ac_ext >&5
23030 eval "ac_cv_func_vprintf=no"
23035 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23036 echo "$ac_t""yes" 1>&6
23037 cat >> confdefs.h <<\EOF
23038 #define HAVE_VPRINTF 1
23042 echo "$ac_t""no" 1>&6
23045 if test "$ac_cv_func_vprintf" != yes; then
23046 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23047 echo "configure:23048: checking for _doprnt" >&5
23048 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23049 echo $ac_n "(cached) $ac_c" 1>&6
23051 cat > conftest.$ac_ext <<EOF
23052 #line 23053 "configure"
23053 #include "confdefs.h"
23054 /* System header to define __stub macros and hopefully few prototypes,
23055 which can conflict with char _doprnt(); below. */
23056 #include <assert.h>
23057 /* Override any gcc2 internal prototype to avoid an error. */
23058 /* We use char because int might match the return type of a gcc2
23059 builtin and then its argument prototype would still apply. */
23065 /* The GNU C library defines this for functions which it implements
23066 to always fail with ENOSYS. Some functions are actually named
23067 something starting with __ and the normal name is an alias. */
23068 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23076 if { (eval echo configure:23077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23078 eval "ac_cv_func__doprnt=yes"
23080 echo "configure: failed program was:" >&5
23081 cat conftest.$ac_ext >&5
23083 eval "ac_cv_func__doprnt=no"
23088 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23089 echo "$ac_t""yes" 1>&6
23090 cat >> confdefs.h <<\EOF
23091 #define HAVE_DOPRNT 1
23095 echo "$ac_t""no" 1>&6
23101 if test $ac_cv_func_vprintf = yes ; then
23102 for ac_func in snprintf vsnprintf
23104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23105 echo "configure:23106: checking for $ac_func" >&5
23106 if eval "test \"\${ac_cv_func_$ac_func+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
23138 echo "configure: failed program was:" >&5
23139 cat conftest.$ac_ext >&5
23141 eval "ac_cv_func_$ac_func=no"
23146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23147 echo "$ac_t""yes" 1>&6
23148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23149 cat >> confdefs.h <<EOF
23150 #define $ac_tr_func 1
23154 echo "$ac_t""no" 1>&6
23219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23220 echo "configure:23221: checking for $ac_func" >&5
23221 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23222 echo $ac_n "(cached) $ac_c" 1>&6
23224 cat > conftest.$ac_ext <<EOF
23225 #line 23226 "configure"
23226 #include "confdefs.h"
23227 /* System header to define __stub macros and hopefully few prototypes,
23228 which can conflict with char $ac_func(); below. */
23229 #include <assert.h>
23230 /* Override any gcc2 internal prototype to avoid an error. */
23231 /* We use char because int might match the return type of a gcc2
23232 builtin and then its argument prototype would still apply. */
23238 /* The GNU C library defines this for functions which it implements
23239 to always fail with ENOSYS. Some functions are actually named
23240 something starting with __ and the normal name is an alias. */
23241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23249 if { (eval echo configure:23250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23251 eval "ac_cv_func_$ac_func=yes"
23253 echo "configure: failed program was:" >&5
23254 cat conftest.$ac_ext >&5
23256 eval "ac_cv_func_$ac_func=no"
23261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23262 echo "$ac_t""yes" 1>&6
23263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23264 cat >> confdefs.h <<EOF
23265 #define $ac_tr_func 1
23269 echo "$ac_t""no" 1>&6
23274 for ac_func in getopt getpeereid
23276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23277 echo "configure:23278: checking for $ac_func" >&5
23278 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23279 echo $ac_n "(cached) $ac_c" 1>&6
23281 cat > conftest.$ac_ext <<EOF
23282 #line 23283 "configure"
23283 #include "confdefs.h"
23284 /* System header to define __stub macros and hopefully few prototypes,
23285 which can conflict with char $ac_func(); below. */
23286 #include <assert.h>
23287 /* Override any gcc2 internal prototype to avoid an error. */
23288 /* We use char because int might match the return type of a gcc2
23289 builtin and then its argument prototype would still apply. */
23295 /* The GNU C library defines this for functions which it implements
23296 to always fail with ENOSYS. Some functions are actually named
23297 something starting with __ and the normal name is an alias. */
23298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23306 if { (eval echo configure:23307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23308 eval "ac_cv_func_$ac_func=yes"
23310 echo "configure: failed program was:" >&5
23311 cat conftest.$ac_ext >&5
23313 eval "ac_cv_func_$ac_func=no"
23318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23319 echo "$ac_t""yes" 1>&6
23320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23321 cat >> confdefs.h <<EOF
23322 #define $ac_tr_func 1
23326 echo "$ac_t""no" 1>&6
23327 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23333 if test "$ac_cv_func_getopt" != yes; then
23334 LIBSRCS="$LIBSRCS getopt.c"
23336 if test "$ac_cv_func_getpeereid" != yes; then
23337 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23338 echo "configure:23339: checking for msg_accrights in msghdr" >&5
23339 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23340 echo $ac_n "(cached) $ac_c" 1>&6
23342 cat > conftest.$ac_ext <<EOF
23343 #line 23344 "configure"
23344 #include "confdefs.h"
23345 #include <sys/socket.h>
23347 struct msghdr m; m.msg_accrightslen=0
23350 if { (eval echo configure:23351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23352 ol_cv_msghdr_msg_accrights=yes
23354 echo "configure: failed program was:" >&5
23355 cat conftest.$ac_ext >&5
23357 ol_cv_msghdr_msg_accrights=no
23363 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23364 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23365 cat >> confdefs.h <<\EOF
23366 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23371 LIBSRCS="$LIBSRCS getpeereid.c"
23373 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23374 if test "$ac_cv_func_snprintf" != yes; then
23375 cat >> confdefs.h <<\EOF
23376 #define snprintf ber_pvt_snprintf
23380 if test "$ac_cv_func_vsnprintf" != yes; then
23381 cat >> confdefs.h <<\EOF
23382 #define vsnprintf ber_pvt_vsnprintf
23388 # Check Configuration
23389 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23390 echo "configure:23391: checking declaration of sys_errlist" >&5
23391 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23392 echo $ac_n "(cached) $ac_c" 1>&6
23395 cat > conftest.$ac_ext <<EOF
23396 #line 23397 "configure"
23397 #include "confdefs.h"
23400 #include <sys/types.h>
23403 #include <stdlib.h>
23406 char *c = (char *) *sys_errlist
23409 if { (eval echo configure:23410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23411 ol_cv_dcl_sys_errlist=yes
23412 ol_cv_have_sys_errlist=yes
23414 echo "configure: failed program was:" >&5
23415 cat conftest.$ac_ext >&5
23417 ol_cv_dcl_sys_errlist=no
23422 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23424 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23425 if test $ol_cv_dcl_sys_errlist = no ; then
23426 cat >> confdefs.h <<\EOF
23427 #define DECL_SYS_ERRLIST 1
23431 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23432 echo "configure:23433: checking existence of sys_errlist" >&5
23433 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23434 echo $ac_n "(cached) $ac_c" 1>&6
23437 cat > conftest.$ac_ext <<EOF
23438 #line 23439 "configure"
23439 #include "confdefs.h"
23442 char *c = (char *) *sys_errlist
23445 if { (eval echo configure:23446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23447 ol_cv_have_sys_errlist=yes
23449 echo "configure: failed program was:" >&5
23450 cat conftest.$ac_ext >&5
23452 ol_cv_have_sys_errlist=no
23457 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23459 if test $ol_cv_have_sys_errlist = yes ; then
23460 cat >> confdefs.h <<\EOF
23461 #define HAVE_SYS_ERRLIST 1
23468 if test "$ol_enable_slapi" != no ; then
23469 for ac_hdr in ltdl.h
23471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23473 echo "configure:23474: checking for $ac_hdr" >&5
23474 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23475 echo $ac_n "(cached) $ac_c" 1>&6
23477 cat > conftest.$ac_ext <<EOF
23478 #line 23479 "configure"
23479 #include "confdefs.h"
23482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23483 { (eval echo configure:23484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23485 if test -z "$ac_err"; then
23487 eval "ac_cv_header_$ac_safe=yes"
23490 echo "configure: failed program was:" >&5
23491 cat conftest.$ac_ext >&5
23493 eval "ac_cv_header_$ac_safe=no"
23497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23498 echo "$ac_t""yes" 1>&6
23499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23500 cat >> confdefs.h <<EOF
23501 #define $ac_tr_hdr 1
23505 echo "$ac_t""no" 1>&6
23510 if test $ac_cv_header_ltdl_h != yes ; then
23511 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23513 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23514 echo "configure:23515: checking for lt_dlinit in -lltdl" >&5
23515 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23516 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23517 echo $ac_n "(cached) $ac_c" 1>&6
23519 ac_save_LIBS="$LIBS"
23520 LIBS="-lltdl $LIBS"
23521 cat > conftest.$ac_ext <<EOF
23522 #line 23523 "configure"
23523 #include "confdefs.h"
23524 /* Override any gcc2 internal prototype to avoid an error. */
23525 /* We use char because int might match the return type of a gcc2
23526 builtin and then its argument prototype would still apply. */
23533 if { (eval echo configure:23534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23535 eval "ac_cv_lib_$ac_lib_var=yes"
23537 echo "configure: failed program was:" >&5
23538 cat conftest.$ac_ext >&5
23540 eval "ac_cv_lib_$ac_lib_var=no"
23543 LIBS="$ac_save_LIBS"
23546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23547 echo "$ac_t""yes" 1>&6
23550 LIBSLAPI=libslapi.a
23551 LIBSLAPITOOLS=../libslapi.a
23552 cat >> confdefs.h <<\EOF
23553 #define HAVE_LIBLTDL 1
23558 echo "$ac_t""no" 1>&6
23559 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23563 cat >> confdefs.h <<\EOF
23564 #define LDAP_SLAPI 1
23569 if test "$ol_enable_debug" != no ; then
23570 cat >> confdefs.h <<\EOF
23571 #define LDAP_DEBUG 1
23575 if test "$ol_enable_syslog" = yes ; then
23576 cat >> confdefs.h <<\EOF
23577 #define LDAP_SYSLOG 1
23581 if test "$ol_link_kbind" != no ; then
23582 cat >> confdefs.h <<\EOF
23583 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23587 if test "$ol_enable_proctitle" != no ; then
23588 cat >> confdefs.h <<\EOF
23589 #define LDAP_PROCTITLE 1
23593 if test "$ol_enable_referrals" != no ; then
23594 cat >> confdefs.h <<\EOF
23595 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23599 if test "$ol_enable_local" != no; then
23600 cat >> confdefs.h <<\EOF
23601 #define LDAP_PF_LOCAL 1
23605 if test "$ol_link_ipv6" != no; then
23606 cat >> confdefs.h <<\EOF
23607 #define LDAP_PF_INET6 1
23611 if test "$ol_enable_cleartext" != no ; then
23612 cat >> confdefs.h <<\EOF
23613 #define SLAPD_CLEARTEXT 1
23617 if test "$ol_enable_crypt" != no ; then
23618 cat >> confdefs.h <<\EOF
23619 #define SLAPD_CRYPT 1
23623 if test "$ol_link_spasswd" != no ; then
23624 cat >> confdefs.h <<\EOF
23625 #define SLAPD_SPASSWD 1
23629 if test "$ol_enable_multimaster" != no ; then
23630 cat >> confdefs.h <<\EOF
23631 #define SLAPD_MULTIMASTER 1
23635 if test "$ol_enable_rlookups" != no ; then
23636 cat >> confdefs.h <<\EOF
23637 #define SLAPD_RLOOKUPS 1
23641 if test "$ol_enable_aci" != no ; then
23642 cat >> confdefs.h <<\EOF
23643 #define SLAPD_ACI_ENABLED 1
23648 if test "$ol_link_modules" != no ; then
23649 cat >> confdefs.h <<\EOF
23650 #define SLAPD_MODULES 1
23654 SLAPD_MODULES_LDFLAGS="-dlopen self"
23657 cat >> confdefs.h <<\EOF
23658 #define SLAPD_MOD_STATIC 1
23661 cat >> confdefs.h <<\EOF
23662 #define SLAPD_MOD_DYNAMIC 2
23666 if test "$ol_enable_bdb" != no ; then
23667 cat >> confdefs.h <<\EOF
23668 #define SLAPD_BDB 1
23673 if test "$ol_with_bdb_module" != static ; then
23674 cat >> confdefs.h <<\EOF
23675 #define SLAPD_BDB_DYNAMIC 1
23679 BUILD_BDB_DYNAMIC=shared
23680 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23682 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23686 if test "$ol_link_dnssrv" != no ; then
23687 cat >> confdefs.h <<\EOF
23688 #define SLAPD_DNSSRV 1
23693 if test "$ol_with_dnssrv_module" != static ; then
23694 cat >> confdefs.h <<\EOF
23695 #define SLAPD_DNSSRV_DYNAMIC 1
23699 BUILD_DNSSRV_DYNAMIC=shared
23700 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23702 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23706 if test "$ol_enable_hdb" != no ; then
23707 cat >> confdefs.h <<\EOF
23708 #define SLAPD_HDB 1
23713 if test "$ol_with_hdb_module" != static ; then
23714 cat >> confdefs.h <<\EOF
23715 #define SLAPD_HDB_DYNAMIC 1
23719 BUILD_HDB_DYNAMIC=shared
23720 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23722 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23726 if test "$ol_enable_ldap" != no ; then
23727 cat >> confdefs.h <<\EOF
23728 #define SLAPD_LDAP 1
23733 if test "$ol_with_ldap_module" != static ; then
23734 cat >> confdefs.h <<\EOF
23735 #define SLAPD_LDAP_DYNAMIC 1
23739 BUILD_LDAP_DYNAMIC=shared
23740 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23742 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23746 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23747 cat >> confdefs.h <<\EOF
23748 #define SLAPD_LDBM 1
23753 if test "$ol_with_ldbm_module" != static ; then
23754 cat >> confdefs.h <<\EOF
23755 #define SLAPD_LDBM_DYNAMIC 1
23759 BUILD_LDBM_DYNAMIC=shared
23760 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23762 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23766 if test "$ol_enable_meta" != no ; then
23767 if test "$ol_enable_ldap" = no ; then
23768 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23770 if test "$ol_enable_rewrite" = no ; then
23771 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23773 cat >> confdefs.h <<\EOF
23774 #define SLAPD_META 1
23780 if test "$ol_with_meta_module" != static ; then
23781 cat >> confdefs.h <<\EOF
23782 #define SLAPD_META_DYNAMIC 1
23786 BUILD_META_DYNAMIC=shared
23787 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23789 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23793 if test "$ol_enable_monitor" != no ; then
23794 cat >> confdefs.h <<\EOF
23795 #define SLAPD_MONITOR 1
23800 if test "$ol_with_monitor_module" != static ; then
23801 cat >> confdefs.h <<\EOF
23802 #define SLAPD_MONITOR_DYNAMIC 1
23806 BUILD_MONITOR_DYNAMIC=shared
23807 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23809 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23813 if test "$ol_enable_null" != no ; then
23814 cat >> confdefs.h <<\EOF
23815 #define SLAPD_NULL 1
23820 if test "$ol_with_null_module" != static ; then
23821 cat >> confdefs.h <<\EOF
23822 #define SLAPD_NULL_DYNAMIC 1
23826 BUILD_NULL_DYNAMIC=shared
23827 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23829 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23833 if test "$ol_enable_passwd" != no ; then
23834 cat >> confdefs.h <<\EOF
23835 #define SLAPD_PASSWD 1
23840 if test "$ol_with_passwd_module" != static ; then
23841 cat >> confdefs.h <<\EOF
23842 #define SLAPD_PASSWD_DYNAMIC 1
23846 BUILD_PASSWD_DYNAMIC=shared
23847 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23849 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23853 if test "$ol_link_perl" != no ; then
23854 cat >> confdefs.h <<\EOF
23855 #define SLAPD_PERL 1
23860 if test "$ol_with_perl_module" != static ; then
23861 cat >> confdefs.h <<\EOF
23862 #define SLAPD_PERL_DYNAMIC 1
23866 BUILD_PERL_DYNAMIC=shared
23867 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23869 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23873 if test "$ol_enable_relay" != no ; then
23874 cat >> confdefs.h <<\EOF
23875 #define SLAPD_RELAY 1
23880 if test "$ol_with_relay_module" != static ; then
23881 cat >> confdefs.h <<\EOF
23882 #define SLAPD_RELAY_DYNAMIC 1
23886 BUILD_RELAY_DYNAMIC=shared
23887 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23889 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23893 if test "$ol_enable_shell" != no ; then
23894 if test "$ol_link_thread" != no ; then
23895 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23897 cat >> confdefs.h <<\EOF
23898 #define SLAPD_SHELL 1
23903 if test "$ol_with_shell_module" != static ; then
23904 cat >> confdefs.h <<\EOF
23905 #define SLAPD_SHELL_DYNAMIC 1
23909 BUILD_SHELL_DYNAMIC=shared
23910 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23912 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23916 if test "$ol_link_sql" != no ; then
23917 cat >> confdefs.h <<\EOF
23918 #define SLAPD_SQL 1
23923 if test "$ol_with_sql_module" != static; then
23924 cat >> confdefs.h <<\EOF
23925 #define SLAPD_SQL_DYNAMIC 1
23929 BUILD_SQL_DYNAMIC=shared
23930 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23932 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23936 if test "$ol_with_chain" != no ; then
23937 BUILD_CHAIN=$ol_with_chain
23938 if test "$ol_with_chain" = mod ; then
23939 MFLAG=SLAPD_MOD_DYNAMIC
23940 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
23942 MFLAG=SLAPD_MOD_STATIC
23944 cat >> confdefs.h <<EOF
23945 #define SLAPD_OVER_CHAIN $MFLAG
23950 if test "$ol_with_denyop" != no ; then
23951 BUILD_DENYOP=$ol_with_denyop
23952 if test "$ol_with_denyop" = mod ; then
23953 MFLAG=SLAPD_MOD_DYNAMIC
23954 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
23956 MFLAG=SLAPD_MOD_STATIC
23958 cat >> confdefs.h <<EOF
23959 #define SLAPD_OVER_DENYOP $MFLAG
23964 if test "$ol_with_dyngroup" != no ; then
23965 BUILD_DYNGROUP=$ol_with_dyngroup
23966 if test "$ol_with_dyngroup" = mod ; then
23967 MFLAG=SLAPD_MOD_DYNAMIC
23968 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23970 MFLAG=SLAPD_MOD_STATIC
23972 cat >> confdefs.h <<EOF
23973 #define SLAPD_OVER_DYNGROUP $MFLAG
23978 if test "$ol_with_ppolicy" != no ; then
23979 BUILD_PPOLICY=$ol_with_ppolicy
23980 if test "$ol_with_ppolicy" = mod ; then
23981 MFLAG=SLAPD_MOD_DYNAMIC
23982 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
23984 MFLAG=SLAPD_MOD_STATIC
23986 cat >> confdefs.h <<EOF
23987 #define SLAPD_OVER_PPOLICY $MFLAG
23992 if test "$ol_with_proxycache" != no ; then
23993 BUILD_PROXYCACHE=$ol_with_proxycache
23994 if test "$ol_with_proxycache" = mod ; then
23995 MFLAG=SLAPD_MOD_DYNAMIC
23996 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23998 MFLAG=SLAPD_MOD_STATIC
24000 cat >> confdefs.h <<EOF
24001 #define SLAPD_OVER_PROXYCACHE $MFLAG
24006 if test "$ol_with_rwm " != no ; then
24008 BUILD_RWM=$ol_with_rwm
24009 if test "$ol_with_rwm" = mod ; then
24010 MFLAG=SLAPD_MOD_DYNAMIC
24011 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24013 MFLAG=SLAPD_MOD_STATIC
24015 cat >> confdefs.h <<EOF
24016 #define SLAPD_OVER_RWM $MFLAG
24021 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24022 $BUILD_SLAPD = yes ; then
24026 if test "$ol_enable_rewrite" != no ; then
24027 cat >> confdefs.h <<\EOF
24028 #define ENABLE_REWRITE 1
24034 if test "$ol_enable_slapi" != no ; then
24035 cat >> confdefs.h <<\EOF
24036 #define ENABLE_SLAPI 1
24040 SLAPD_SLAPI_DEPEND=libslapi.a
24045 if test "$ac_cv_mingw32" = yes ; then
24047 SLAPD_MODULES_LDFLAGS=
24052 if test -z "$SLAPD_STATIC_BACKENDS"; then
24053 SLAPD_NO_STATIC='#'
24136 # Check whether --with-xxinstall or --without-xxinstall was given.
24137 if test "${with_xxinstall+set}" = set; then
24138 withval="$with_xxinstall"
24146 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24148 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24149 # Let make expand exec_prefix.
24150 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24152 # Any assignment to VPATH causes Sun make to only execute
24153 # the first set of double-colon rules, so remove it if not needed.
24154 # If there is a colon in the path, we need to keep it.
24155 if test "x$srcdir" = x.; then
24156 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24159 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24161 DEFS=-DHAVE_CONFIG_H
24163 # Without the "./", some shells look in PATH for config.status.
24164 : ${CONFIG_STATUS=./config.status}
24166 echo creating $CONFIG_STATUS
24167 rm -f $CONFIG_STATUS
24168 cat > $CONFIG_STATUS <<EOF
24170 # Generated automatically by configure.
24171 # Run this file to recreate the current configuration.
24172 # This directory was configured as follows,
24173 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24175 # $0 $ac_configure_args
24177 # Compiler output produced by configure, useful for debugging
24178 # configure, is in ./config.log if it exists.
24180 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24183 case "\$ac_option" in
24184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24185 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24186 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24187 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24188 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24190 -help | --help | --hel | --he | --h)
24191 echo "\$ac_cs_usage"; exit 0 ;;
24192 *) echo "\$ac_cs_usage"; exit 1 ;;
24196 ac_given_srcdir=$srcdir
24197 ac_given_INSTALL="$INSTALL"
24199 trap 'rm -fr `echo "\
24200 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24201 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24202 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24203 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24204 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24205 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24206 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24207 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24208 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24209 include/Makefile:build/top.mk:include/Makefile.in \
24210 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24211 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24212 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24213 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24214 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24215 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24216 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24217 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24218 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24219 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24220 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24221 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24222 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24223 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24224 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24225 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24226 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24227 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24228 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24229 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24230 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24231 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24232 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24233 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24234 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24235 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24236 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24238 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24239 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24241 cat >> $CONFIG_STATUS <<EOF
24243 # Protect against being on the right side of a sed subst in config.status.
24244 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24245 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24249 s%@CFLAGS@%$CFLAGS%g
24250 s%@CPPFLAGS@%$CPPFLAGS%g
24251 s%@CXXFLAGS@%$CXXFLAGS%g
24252 s%@FFLAGS@%$FFLAGS%g
24254 s%@LDFLAGS@%$LDFLAGS%g
24256 s%@exec_prefix@%$exec_prefix%g
24257 s%@prefix@%$prefix%g
24258 s%@program_transform_name@%$program_transform_name%g
24259 s%@bindir@%$bindir%g
24260 s%@sbindir@%$sbindir%g
24261 s%@libexecdir@%$libexecdir%g
24262 s%@datadir@%$datadir%g
24263 s%@sysconfdir@%$sysconfdir%g
24264 s%@sharedstatedir@%$sharedstatedir%g
24265 s%@localstatedir@%$localstatedir%g
24266 s%@libdir@%$libdir%g
24267 s%@includedir@%$includedir%g
24268 s%@oldincludedir@%$oldincludedir%g
24269 s%@infodir@%$infodir%g
24270 s%@mandir@%$mandir%g
24272 s%@host_alias@%$host_alias%g
24273 s%@host_cpu@%$host_cpu%g
24274 s%@host_vendor@%$host_vendor%g
24275 s%@host_os@%$host_os%g
24276 s%@target@%$target%g
24277 s%@target_alias@%$target_alias%g
24278 s%@target_cpu@%$target_cpu%g
24279 s%@target_vendor@%$target_vendor%g
24280 s%@target_os@%$target_os%g
24282 s%@build_alias@%$build_alias%g
24283 s%@build_cpu@%$build_cpu%g
24284 s%@build_vendor@%$build_vendor%g
24285 s%@build_os@%$build_os%g
24286 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24287 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24288 s%@INSTALL_DATA@%$INSTALL_DATA%g
24289 s%@PACKAGE@%$PACKAGE%g
24290 s%@VERSION@%$VERSION%g
24291 s%@ACLOCAL@%$ACLOCAL%g
24292 s%@AUTOCONF@%$AUTOCONF%g
24293 s%@AUTOMAKE@%$AUTOMAKE%g
24294 s%@AUTOHEADER@%$AUTOHEADER%g
24295 s%@MAKEINFO@%$MAKEINFO%g
24296 s%@install_sh@%$install_sh%g
24299 s%@AMTARFLAGS@%$AMTARFLAGS%g
24300 s%@SET_MAKE@%$SET_MAKE%g
24301 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24302 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24303 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24304 s%@top_builddir@%$top_builddir%g
24305 s%@ldap_subdir@%$ldap_subdir%g
24309 s%@OBJEXT@%$OBJEXT%g
24310 s%@EXEEXT@%$EXEEXT%g
24312 s%@RANLIB@%$RANLIB%g
24314 s%@DLLTOOL@%$DLLTOOL%g
24316 s%@OBJDUMP@%$OBJDUMP%g
24318 s%@LIBTOOL@%$LIBTOOL%g
24320 s%@PERLBIN@%$PERLBIN%g
24321 s%@OL_MKDEP@%$OL_MKDEP%g
24322 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24323 s%@LTSTATIC@%$LTSTATIC%g
24324 s%@LIBOBJS@%$LIBOBJS%g
24325 s%@LIBSRCS@%$LIBSRCS%g
24327 s%@WITH_TLS@%$WITH_TLS%g
24328 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24329 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24330 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24331 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24332 s%@BUILD_BDB@%$BUILD_BDB%g
24333 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24334 s%@BUILD_HDB@%$BUILD_HDB%g
24335 s%@BUILD_LDAP@%$BUILD_LDAP%g
24336 s%@BUILD_LDBM@%$BUILD_LDBM%g
24337 s%@BUILD_META@%$BUILD_META%g
24338 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24339 s%@BUILD_NULL@%$BUILD_NULL%g
24340 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24341 s%@BUILD_RELAY@%$BUILD_RELAY%g
24342 s%@BUILD_PERL@%$BUILD_PERL%g
24343 s%@BUILD_SHELL@%$BUILD_SHELL%g
24344 s%@BUILD_SQL@%$BUILD_SQL%g
24345 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24346 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24347 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24348 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24349 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24350 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24351 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24352 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24353 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24354 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24355 s%@BUILD_RELAY_DYNAMIC@%$BUILD_RELAY_DYNAMIC%g
24356 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24357 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24358 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
24359 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
24360 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24361 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
24362 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24363 s%@BUILD_RWM@%$BUILD_RWM%g
24364 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24365 s%@LDAP_LIBS@%$LDAP_LIBS%g
24366 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24367 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24368 s%@LDBM_LIBS@%$LDBM_LIBS%g
24369 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24370 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24371 s%@WRAP_LIBS@%$WRAP_LIBS%g
24372 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24373 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24374 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24375 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24376 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24377 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24378 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24379 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24380 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24381 s%@KRB4_LIBS@%$KRB4_LIBS%g
24382 s%@KRB5_LIBS@%$KRB5_LIBS%g
24383 s%@SASL_LIBS@%$SASL_LIBS%g
24384 s%@TLS_LIBS@%$TLS_LIBS%g
24385 s%@MODULES_LIBS@%$MODULES_LIBS%g
24386 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24387 s%@LIBSLAPI@%$LIBSLAPI%g
24388 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24389 s%@AUTH_LIBS@%$AUTH_LIBS%g
24390 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24391 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24392 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24393 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24398 cat >> $CONFIG_STATUS <<\EOF
24400 # Split the substitutions into bite-sized pieces for seds with
24401 # small command number limits, like on Digital OSF/1 and HP-UX.
24402 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24403 ac_file=1 # Number of current file.
24404 ac_beg=1 # First line for current file.
24405 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24408 while $ac_more_lines; do
24409 if test $ac_beg -gt 1; then
24410 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24412 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24414 if test ! -s conftest.s$ac_file; then
24415 ac_more_lines=false
24416 rm -f conftest.s$ac_file
24418 if test -z "$ac_sed_cmds"; then
24419 ac_sed_cmds="sed -f conftest.s$ac_file"
24421 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24423 ac_file=`expr $ac_file + 1`
24425 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24428 if test -z "$ac_sed_cmds"; then
24433 cat >> $CONFIG_STATUS <<EOF
24435 CONFIG_FILES=\${CONFIG_FILES-"\
24436 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24437 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24438 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24439 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24440 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24441 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24442 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24443 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24444 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24445 include/Makefile:build/top.mk:include/Makefile.in \
24446 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24447 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24448 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24449 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24450 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24451 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24452 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24453 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24454 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24455 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24456 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24457 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24458 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24459 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24460 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24461 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24462 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24463 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24464 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24465 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24466 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24467 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24468 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24469 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24470 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24471 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24472 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24474 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24477 cat >> $CONFIG_STATUS <<\EOF
24478 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24481 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24482 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24483 *) ac_file_in="${ac_file}.in" ;;
24486 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24488 # Remove last slash and all that follows it. Not all systems have dirname.
24489 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24490 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24491 # The file is in a subdirectory.
24492 test ! -d "$ac_dir" && mkdir "$ac_dir"
24493 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24494 # A "../" for each directory in $ac_dir_suffix.
24495 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24497 ac_dir_suffix= ac_dots=
24500 case "$ac_given_srcdir" in
24502 if test -z "$ac_dots"; then top_srcdir=.
24503 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24504 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24505 *) # Relative path.
24506 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24507 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24510 case "$ac_given_INSTALL" in
24511 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24512 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24515 echo creating "$ac_file"
24517 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24519 *[Mm]akefile*) ac_comsub="1i\\
24520 # $configure_input" ;;
24524 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24526 s%@configure_input@%$configure_input%g
24527 s%@srcdir@%$srcdir%g
24528 s%@top_srcdir@%$top_srcdir%g
24529 s%@INSTALL@%$INSTALL%g
24530 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24534 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24535 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24537 # ac_d sets the value in "#define NAME VALUE" lines.
24538 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24539 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24542 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24543 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24544 ac_uB='\([ ]\)%\1#\2define\3'
24547 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24548 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24549 ac_eB='$%\1#\2define\3'
24553 if test "${CONFIG_HEADERS+set}" != set; then
24555 cat >> $CONFIG_STATUS <<EOF
24556 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24558 cat >> $CONFIG_STATUS <<\EOF
24560 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24563 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24564 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24565 *) ac_file_in="${ac_file}.in" ;;
24568 echo creating $ac_file
24570 rm -f conftest.frag conftest.in conftest.out
24571 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24572 cat $ac_file_inputs > conftest.in
24576 # Transform confdefs.h into a sed script conftest.vals that substitutes
24577 # the proper values into config.h.in to produce config.h. And first:
24578 # Protect against being on the right side of a sed subst in config.status.
24579 # Protect against being in an unquoted here document in config.status.
24580 rm -f conftest.vals
24581 cat > conftest.hdr <<\EOF
24584 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24588 sed -n -f conftest.hdr confdefs.h > conftest.vals
24591 # This sed command replaces #undef with comments. This is necessary, for
24592 # example, in the case of _POSIX_SOURCE, which is predefined and required
24593 # on some systems where configure will not decide to define it.
24594 cat >> conftest.vals <<\EOF
24595 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24598 # Break up conftest.vals because some shells have a limit on
24599 # the size of here documents, and old seds have small limits too.
24601 rm -f conftest.tail
24604 ac_lines=`grep -c . conftest.vals`
24605 # grep -c gives empty output for an empty file on some AIX systems.
24606 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24607 # Write a limited-size here document to conftest.frag.
24608 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24609 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24611 sed -f conftest.frag conftest.in > conftest.out
24613 mv conftest.out conftest.in
24614 ' >> $CONFIG_STATUS
24615 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24616 rm -f conftest.vals
24617 mv conftest.tail conftest.vals
24619 rm -f conftest.vals
24621 cat >> $CONFIG_STATUS <<\EOF
24622 rm -f conftest.frag conftest.h
24623 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24624 cat conftest.in >> conftest.h
24626 if cmp -s $ac_file conftest.h 2>/dev/null; then
24627 echo "$ac_file is unchanged"
24630 # Remove last slash and all that follows it. Not all systems have dirname.
24631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24633 # The file is in a subdirectory.
24634 test ! -d "$ac_dir" && mkdir "$ac_dir"
24637 mv conftest.h $ac_file
24642 cat >> $CONFIG_STATUS <<EOF
24645 cat >> $CONFIG_STATUS <<\EOF
24649 echo Please run \"make depend\" to build dependencies
24653 chmod +x $CONFIG_STATUS
24654 rm -fr confdefs* $ac_clean_files
24655 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1