3 # from OpenLDAP: pkg/ldap/configure.in,v 1.547 2004/10/18 15:51:37 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]"
58 --with-multiple-precision
59 multiple precision support for statistics
60 auto|bignum|gmp [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-aci enable per-object ACIs (experimental) [no]"
69 --enable-cleartext enable cleartext passwords [yes]"
71 --enable-crypt enable crypt(3) passwords [no]"
73 --enable-lmpasswd enable LAN Manager passwords [no]"
75 --enable-spasswd enable (Cyrus) SASL password verification [no]"
77 --enable-modules enable dynamic module support [no]"
79 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
81 --enable-rlookups enable reverse lookups of client hostnames [no]"
83 --enable-slapi enable SLAPI support (experimental) [no]"
85 --enable-slp enable SLPv2 support [no]"
87 --enable-wrappers enable tcp wrapper support [no]"
90 SLAPD Backend Options:"
92 --enable-backends enable all available backends no|yes|mod [no]"
94 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
96 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
98 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
100 --enable-ldap enable ldap backend no|yes|mod [no]"
102 --enable-ldbm enable ldbm backend no|yes|mod [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend no|yes|mod [no]"
110 --enable-monitor enable monitor backend no|yes|mod [yes]"
112 --enable-null enable null backend no|yes|mod [no]"
114 --enable-passwd enable passwd backend no|yes|mod [no]"
116 --enable-perl enable perl backend no|yes|mod [no]"
118 --enable-relay enable relay backend no|yes|mod [yes]"
120 --enable-shell enable shell backend no|yes|mod [no]"
122 --enable-sql enable sql backend no|yes|mod [no]"
125 SLAPD Overlay Options:"
127 --enable-overlays enable all available overlays no|yes|mod [no]"
129 --enable-chain LDAP Chain Response no|yes|mod [no]"
131 --enable-denyop Deny Operation overlay no|yes|mod [no]"
133 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
135 --enable-lastmod Last Modification overlay no|yes|mod [no]"
137 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
139 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
141 --enable-refint Referential Integrity overlay no|yes|mod [no]"
143 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
145 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
148 SLURPD (Replication Daemon) Options:"
150 --enable-slurpd enable building slurpd [auto]"
153 Library Generation & Linking Options"
155 --enable-static[=PKGS] build static libraries [default=yes]"
157 --enable-shared[=PKGS] build shared libraries [default=yes]"
159 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
161 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
163 # Find the correct PATH separator. Usually this is `:', but
164 # DJGPP uses `;' like DOS.
165 if test "X${PATH_SEPARATOR+set}" != Xset; then
166 UNAME=${UNAME-`uname 2>/dev/null`}
168 *-DOS) lt_cv_sys_path_separator=';' ;;
169 *) lt_cv_sys_path_separator=':' ;;
171 PATH_SEPARATOR=$lt_cv_sys_path_separator
175 # Check that we are running under the correct shell.
176 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Remove one level of quotation (which was required for Make).
181 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
186 if test "X$1" = X--no-reexec; then
187 # Discard the --no-reexec flag, and continue.
189 elif test "X$1" = X--fallback-echo; then
190 # Avoid inline document here, it may be left over
192 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
193 # Yippee, $echo works!
196 # Restart under the correct shell.
197 exec $SHELL "$0" --no-reexec ${1+"$@"}
200 if test "X$1" = X--fallback-echo; then
201 # used as fallback echo
209 # The HP-UX ksh and POSIX shell print the target directory to stdout
211 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
213 if test -z "$ECHO"; then
214 if test "X${echo_test_string+set}" != Xset; then
215 # find a string as large as possible, as long as the shell can cope with it
216 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
217 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
218 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
219 echo_test_string="`eval $cmd`" &&
220 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
227 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
228 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
229 test "X$echo_testing_string" = "X$echo_test_string"; then
232 # The Solaris, AIX, and Digital Unix default echo programs unquote
233 # backslashes. This makes it impossible to quote backslashes using
234 # echo "$something" | sed 's/\\/\\\\/g'
236 # So, first we look for a working echo in the user's PATH.
238 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
239 for dir in $PATH /usr/ucb; do
240 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
241 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
242 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
243 test "X$echo_testing_string" = "X$echo_test_string"; then
250 if test "X$echo" = Xecho; then
251 # We didn't find a better echo, so look for alternatives.
252 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
253 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
254 test "X$echo_testing_string" = "X$echo_test_string"; then
255 # This shell has a builtin print -r that does the trick.
257 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
258 test "X$CONFIG_SHELL" != X/bin/ksh; then
259 # If we have ksh, try running configure again with it.
260 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
261 export ORIGINAL_CONFIG_SHELL
262 CONFIG_SHELL=/bin/ksh
264 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
268 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
269 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
270 test "X$echo_testing_string" = "X$echo_test_string"; then
273 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
274 test "X$echo_testing_string" = 'X\t' &&
275 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
276 test "X$echo_testing_string" = "X$echo_test_string"; then
277 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
279 SHELL="$CONFIG_SHELL"
281 echo="$CONFIG_SHELL $0 --fallback-echo"
282 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
283 test "X$echo_testing_string" = 'X\t' &&
284 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
285 test "X$echo_testing_string" = "X$echo_test_string"; then
286 echo="$CONFIG_SHELL $0 --fallback-echo"
288 # maybe with a smaller string...
291 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
292 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
299 if test "$prev" != 'sed 50q "$0"'; then
300 echo_test_string=`eval $prev`
301 export echo_test_string
302 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
304 # Oops. We lost completely, so just stick with echo.
313 # Copy echo and quote the copy suitably for passing to libtool from
314 # the Makefile, instead of quoting the original, which is used later.
316 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
317 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
322 --disable-libtool-lock avoid locking (might break parallel builds)"
324 --with-pic try to use only PIC/non-PIC objects [default=use both]"
327 See INSTALL file for further details."
329 # Initialize some variables set by options.
330 # The variables have the same names as the options, with
331 # dashes changed to underlines.
333 cache_file=./config.cache
342 program_transform_name=s,x,x,
350 bindir='${exec_prefix}/bin'
351 sbindir='${exec_prefix}/sbin'
352 libexecdir='${exec_prefix}/libexec'
353 datadir='${prefix}/share'
354 sysconfdir='${prefix}/etc'
355 sharedstatedir='${prefix}/com'
356 localstatedir='${prefix}/var'
357 libdir='${exec_prefix}/lib'
358 includedir='${prefix}/include'
359 oldincludedir='/usr/include'
360 infodir='${prefix}/info'
361 mandir='${prefix}/man'
363 # Initialize some other variables.
366 SHELL=${CONFIG_SHELL-/bin/sh}
367 # Maximum number of lines to put in a shell here document.
374 # If the previous option needs an argument, assign it.
375 if test -n "$ac_prev"; then
376 eval "$ac_prev=\$ac_option"
382 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
386 # Accept the important Cygnus configure options, so we can diagnose typos.
390 -bindir | --bindir | --bindi | --bind | --bin | --bi)
392 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
393 bindir="$ac_optarg" ;;
395 -build | --build | --buil | --bui | --bu)
397 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
398 build="$ac_optarg" ;;
400 -cache-file | --cache-file | --cache-fil | --cache-fi \
401 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
402 ac_prev=cache_file ;;
403 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
404 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
405 cache_file="$ac_optarg" ;;
407 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
409 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
411 datadir="$ac_optarg" ;;
413 -disable-* | --disable-*)
414 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
419 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
420 eval "enable_${ac_feature}=no" ;;
422 -enable-* | --enable-*)
423 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
433 eval "enable_${ac_feature}='$ac_optarg'" ;;
435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
437 | --exec | --exe | --ex)
438 ac_prev=exec_prefix ;;
439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
441 | --exec=* | --exe=* | --ex=*)
442 exec_prefix="$ac_optarg" ;;
444 -gas | --gas | --ga | --g)
445 # Obsolete; use --with-gas.
448 -help | --help | --hel | --he)
449 # Omit some internal or obsolete options to make the list less imposing.
450 # This message is too long to be a string in the A/UX 3.1 sh.
452 Usage: configure [options] [host]
453 Options: [defaults in brackets after descriptions]
455 --cache-file=FILE cache test results in FILE
456 --help print this message
457 --no-create do not create output files
458 --quiet, --silent do not print \`checking...' messages
459 --version print the version of autoconf that created configure
460 Directory and file names:
461 --prefix=PREFIX install architecture-independent files in PREFIX
463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
465 --bindir=DIR user executables in DIR [EPREFIX/bin]
466 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
467 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
468 --datadir=DIR read-only architecture-independent data in DIR
470 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
471 --sharedstatedir=DIR modifiable architecture-independent data in DIR
473 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
474 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
475 --includedir=DIR C header files in DIR [PREFIX/include]
476 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
477 --infodir=DIR info documentation in DIR [PREFIX/info]
478 --mandir=DIR man documentation in DIR [PREFIX/man]
479 --srcdir=DIR find the sources in DIR [configure dir or ..]
480 --program-prefix=PREFIX prepend PREFIX to installed program names
481 --program-suffix=SUFFIX append SUFFIX to installed program names
482 --program-transform-name=PROGRAM
483 run sed PROGRAM on installed program names
487 --build=BUILD configure for building on BUILD [BUILD=HOST]
488 --host=HOST configure for HOST [guessed]
489 --target=TARGET configure for TARGET [TARGET=HOST]
490 Features and packages:
491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
495 --x-includes=DIR X include files are in DIR
496 --x-libraries=DIR X library files are in DIR
498 if test -n "$ac_help"; then
499 echo "--enable and --with options recognized:$ac_help"
503 -host | --host | --hos | --ho)
505 -host=* | --host=* | --hos=* | --ho=*)
508 -includedir | --includedir | --includedi | --included | --include \
509 | --includ | --inclu | --incl | --inc)
510 ac_prev=includedir ;;
511 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
512 | --includ=* | --inclu=* | --incl=* | --inc=*)
513 includedir="$ac_optarg" ;;
515 -infodir | --infodir | --infodi | --infod | --info | --inf)
517 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
518 infodir="$ac_optarg" ;;
520 -libdir | --libdir | --libdi | --libd)
522 -libdir=* | --libdir=* | --libdi=* | --libd=*)
523 libdir="$ac_optarg" ;;
525 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
526 | --libexe | --libex | --libe)
527 ac_prev=libexecdir ;;
528 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
529 | --libexe=* | --libex=* | --libe=*)
530 libexecdir="$ac_optarg" ;;
532 -localstatedir | --localstatedir | --localstatedi | --localstated \
533 | --localstate | --localstat | --localsta | --localst \
534 | --locals | --local | --loca | --loc | --lo)
535 ac_prev=localstatedir ;;
536 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
537 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
538 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
539 localstatedir="$ac_optarg" ;;
541 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
543 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
544 mandir="$ac_optarg" ;;
547 # Obsolete; use --without-fp.
550 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
554 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
558 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
559 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
560 | --oldin | --oldi | --old | --ol | --o)
561 ac_prev=oldincludedir ;;
562 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
563 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
564 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
565 oldincludedir="$ac_optarg" ;;
567 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
569 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
570 prefix="$ac_optarg" ;;
572 -program-prefix | --program-prefix | --program-prefi | --program-pref \
573 | --program-pre | --program-pr | --program-p)
574 ac_prev=program_prefix ;;
575 -program-prefix=* | --program-prefix=* | --program-prefi=* \
576 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
577 program_prefix="$ac_optarg" ;;
579 -program-suffix | --program-suffix | --program-suffi | --program-suff \
580 | --program-suf | --program-su | --program-s)
581 ac_prev=program_suffix ;;
582 -program-suffix=* | --program-suffix=* | --program-suffi=* \
583 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
584 program_suffix="$ac_optarg" ;;
586 -program-transform-name | --program-transform-name \
587 | --program-transform-nam | --program-transform-na \
588 | --program-transform-n | --program-transform- \
589 | --program-transform | --program-transfor \
590 | --program-transfo | --program-transf \
591 | --program-trans | --program-tran \
592 | --progr-tra | --program-tr | --program-t)
593 ac_prev=program_transform_name ;;
594 -program-transform-name=* | --program-transform-name=* \
595 | --program-transform-nam=* | --program-transform-na=* \
596 | --program-transform-n=* | --program-transform-=* \
597 | --program-transform=* | --program-transfor=* \
598 | --program-transfo=* | --program-transf=* \
599 | --program-trans=* | --program-tran=* \
600 | --progr-tra=* | --program-tr=* | --program-t=*)
601 program_transform_name="$ac_optarg" ;;
603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
604 | -silent | --silent | --silen | --sile | --sil)
607 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
609 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
611 sbindir="$ac_optarg" ;;
613 -sharedstatedir | --sharedstatedir | --sharedstatedi \
614 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
615 | --sharedst | --shareds | --shared | --share | --shar \
617 ac_prev=sharedstatedir ;;
618 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
619 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
620 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
622 sharedstatedir="$ac_optarg" ;;
624 -site | --site | --sit)
626 -site=* | --site=* | --sit=*)
629 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
631 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
632 srcdir="$ac_optarg" ;;
634 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
635 | --syscon | --sysco | --sysc | --sys | --sy)
636 ac_prev=sysconfdir ;;
637 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
638 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
639 sysconfdir="$ac_optarg" ;;
641 -target | --target | --targe | --targ | --tar | --ta | --t)
643 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
644 target="$ac_optarg" ;;
646 -v | -verbose | --verbose | --verbos | --verbo | --verb)
649 -version | --version | --versio | --versi | --vers)
650 echo "configure generated by autoconf version 2.13.1"
654 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
655 # Reject names that are not valid shell variable names.
656 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
657 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
659 ac_package=`echo $ac_package| sed 's/-/_/g'`
664 eval "with_${ac_package}='$ac_optarg'" ;;
666 -without-* | --without-*)
667 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
668 # Reject names that are not valid shell variable names.
669 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
670 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
672 ac_package=`echo $ac_package| sed 's/-/_/g'`
673 eval "with_${ac_package}=no" ;;
676 # Obsolete; use --with-x.
679 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
680 | --x-incl | --x-inc | --x-in | --x-i)
681 ac_prev=x_includes ;;
682 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
683 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
684 x_includes="$ac_optarg" ;;
686 -x-libraries | --x-libraries | --x-librarie | --x-librari \
687 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
688 ac_prev=x_libraries ;;
689 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
690 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
691 x_libraries="$ac_optarg" ;;
693 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
697 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
698 echo "configure: warning: $ac_option: invalid host type" 1>&2
700 if test "x$nonopt" != xNONE; then
701 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
709 if test -n "$ac_prev"; then
710 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
713 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
715 # File descriptor usage:
718 # 2 errors and warnings
719 # 3 some systems may open it to /dev/tty
720 # 4 used on the Kubota Titan
721 # 6 checking for... messages and results
722 # 5 compiler messages saved in config.log
723 if test "$silent" = yes; then
731 This file contains any messages produced by compilers while
732 running configure, to aid debugging if configure makes a mistake.
735 # Strip out --no-create and --no-recursion so they do not pile up.
736 # Also quote any args containing shell metacharacters.
741 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
742 | --no-cr | --no-c) ;;
743 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
744 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
745 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
746 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
747 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
752 # Only set these to C if already set. These must not be set unconditionally
753 # because not all systems understand e.g. LANG=C (notably SCO).
754 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
755 # Non-C LC_CTYPE values break the ctype check.
756 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
757 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
758 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
759 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
762 rm -rf conftest* confdefs.h
763 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
766 # A filename unique to this package, relative to the directory that
767 # configure is in, which we can look for to find out if srcdir is correct.
768 ac_unique_file=build/version.sh
770 # Find the source files, if location was not specified.
771 if test -z "$srcdir"; then
772 ac_srcdir_defaulted=yes
773 # Try the directory containing this script, then its parent.
775 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
776 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
778 if test ! -r $srcdir/$ac_unique_file; then
782 ac_srcdir_defaulted=no
784 if test ! -r $srcdir/$ac_unique_file; then
785 if test "$ac_srcdir_defaulted" = yes; then
786 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
788 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
791 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
793 # Prefer explicitly selected file to automatically selected ones.
794 if test -z "$CONFIG_SITE"; then
795 if test "x$prefix" != xNONE; then
796 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
798 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
801 for ac_site_file in $CONFIG_SITE; do
802 if test -r "$ac_site_file"; then
803 echo "loading site script $ac_site_file"
810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
811 ac_cpp='$CPP $CPPFLAGS'
812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
814 cross_compiling=$ac_cv_prog_cc_cross
818 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
819 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
820 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
827 ac_n= ac_c='\c' ac_t=
831 # set unset (borrowed from autoconf 2.49c)
832 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
838 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
841 for ac_dir in build $srcdir/build; do
842 if test -f $ac_dir/install-sh; then
844 ac_install_sh="$ac_aux_dir/install-sh -c"
846 elif test -f $ac_dir/install.sh; then
848 ac_install_sh="$ac_aux_dir/install.sh -c"
850 elif test -f $ac_dir/shtool; then
852 ac_install_sh="$ac_aux_dir/shtool install -c"
856 if test -z "$ac_aux_dir"; then
857 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
859 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
860 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
861 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
863 eval `$ac_aux_dir/version.sh`
864 if test -z "$OL_STRING"; then
865 { echo "configure: error: could not determine version" 1>&2; exit 1; }
868 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
869 ac_cv_shtool="$ac_aux_dir/shtool"
871 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
874 SHTOOL="$ac_cv_shtool"
876 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
877 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
880 if test -d $ac_aux_dir/CVS; then
881 OPENLDAP_CVS="(from CVS sources) "
884 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
887 echo $ac_n "checking host system type""... $ac_c" 1>&6
888 echo "configure:889: checking host system type" >&5
889 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
891 # Make sure we can run config.sub.
892 if $ac_config_sub sun4 >/dev/null 2>&1; then :
893 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
896 ac_cv_host_alias=$host
897 case "$ac_cv_host_alias" in
901 if ac_cv_host_alias=`$ac_config_guess`; then :
902 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
904 *) ac_cv_host_alias=$nonopt ;;
908 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
909 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
910 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
911 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
913 echo $ac_n "(cached) $ac_c" 1>&6
916 echo "$ac_t""$ac_cv_host" 1>&6
919 host_alias=$ac_cv_host_alias
920 host_cpu=$ac_cv_host_cpu
921 host_vendor=$ac_cv_host_vendor
922 host_os=$ac_cv_host_os
928 echo $ac_n "checking target system type""... $ac_c" 1>&6
929 echo "configure:930: checking target system type" >&5
930 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
932 # Make sure we can run config.sub.
933 if $ac_config_sub sun4 >/dev/null 2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937 ac_cv_target_alias=$target
938 case "$ac_cv_target_alias" in
942 ac_cv_target_alias=$host_alias ;;
944 *) ac_cv_target_alias=$nonopt ;;
948 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
949 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo $ac_n "(cached) $ac_c" 1>&6
956 echo "$ac_t""$ac_cv_target" 1>&6
959 target_alias=$ac_cv_target_alias
960 target_cpu=$ac_cv_target_cpu
961 target_vendor=$ac_cv_target_vendor
962 target_os=$ac_cv_target_os
968 echo $ac_n "checking build system type""... $ac_c" 1>&6
969 echo "configure:970: checking build system type" >&5
970 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
972 # Make sure we can run config.sub.
973 if $ac_config_sub sun4 >/dev/null 2>&1; then :
974 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
977 ac_cv_build_alias=$build
978 case "$ac_cv_build_alias" in
982 ac_cv_build_alias=$host_alias ;;
984 *) ac_cv_build_alias=$nonopt ;;
988 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
989 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo $ac_n "(cached) $ac_c" 1>&6
996 echo "$ac_t""$ac_cv_build" 1>&6
999 build_alias=$ac_cv_build_alias
1000 build_cpu=$ac_cv_build_cpu
1001 build_vendor=$ac_cv_build_vendor
1002 build_os=$ac_cv_build_os
1008 # Do some error checking and defaulting for the host and target type.
1010 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1013 # 1. You are not allowed to specify --host, --target, and nonopt at the
1015 # 2. Host defaults to nonopt.
1016 # 3. If nonopt is not specified, then host defaults to the current host,
1017 # as determined by config.guess.
1018 # 4. Target and build default to nonopt.
1019 # 5. If nonopt is not specified, then target and build default to host.
1021 # The aliases save the names the user supplied, while $host etc.
1022 # will get canonicalized.
1023 case $host---$target---$nonopt in
1024 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1025 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1028 test "$host_alias" != "$target_alias" &&
1029 test "$program_prefix$program_suffix$program_transform_name" = \
1031 program_prefix=${target_alias}-
1034 # Find a good install program. We prefer a C program (faster),
1035 # so one script is as good as another. But avoid the broken or
1036 # incompatible versions:
1037 # SysV /etc/install, /usr/sbin/install
1038 # SunOS /usr/etc/install
1039 # IRIX /sbin/install
1041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1044 # ./install, which can be erroneously created by make from ./install.sh.
1045 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1046 echo "configure:1047: checking for a BSD compatible install" >&5
1047 if test -z "$INSTALL"; then
1048 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1052 for ac_dir in $PATH; do
1053 # Account for people who put trailing slashes in PATH elements.
1055 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1057 # OSF1 and SCO ODT 3.0 have their own names for install.
1058 # Don't use installbsd from OSF since it installs stuff as root
1060 for ac_prog in ginstall scoinst install; do
1061 if test -f $ac_dir/$ac_prog; then
1062 if test $ac_prog = install &&
1063 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1064 # AIX install. It has an incompatible calling convention.
1066 elif test $ac_prog = install &&
1067 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1068 # program-specific install script used by HP pwplus--don't use.
1071 ac_cv_path_install="$ac_dir/$ac_prog -c"
1082 if test "${ac_cv_path_install+set}" = set; then
1083 INSTALL="$ac_cv_path_install"
1085 # As a last resort, use the slow shell script. We don't cache a
1086 # path for INSTALL within a source directory, because that will
1087 # break other packages using the cache if that directory is
1088 # removed, or if the path is relative.
1089 INSTALL="$ac_install_sh"
1092 echo "$ac_t""$INSTALL" 1>&6
1094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1095 # It thinks the first close brace ends the variable substitution.
1096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1102 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether build environment is sane" >&5
1106 echo timestamp > conftestfile
1107 # Do `set' in a subshell so we don't clobber the current shell's
1108 # arguments. Must try -L first in case configure is actually a
1109 # symlink; some systems play weird games with the mod time of symlinks
1110 # (eg FreeBSD returns the mod time of the symlink's containing
1113 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1114 if test "$*" = "X"; then
1116 set X `ls -t $srcdir/configure conftestfile`
1118 if test "$*" != "X $srcdir/configure conftestfile" \
1119 && test "$*" != "X conftestfile $srcdir/configure"; then
1121 # If neither matched, then we have a broken ls. This can happen
1122 # if, for instance, CONFIG_SHELL is bash and it inherits a
1123 # broken ls alias from the environment. This has actually
1124 # happened. Such a system could not be considered "sane".
1125 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1126 alias in your environment" 1>&2; exit 1; }
1129 test "$2" = conftestfile
1135 { echo "configure: error: newly created file is older than distributed files!
1136 Check your system clock" 1>&2; exit 1; }
1139 echo "$ac_t""yes" 1>&6
1140 if test "$program_transform_name" = s,x,x,; then
1141 program_transform_name=
1143 # Double any \ or $. echo might interpret backslashes.
1144 cat <<\EOF_SED > conftestsed
1145 s,\\,\\\\,g; s,\$,$$,g
1147 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1150 test "$program_prefix" != NONE &&
1151 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1152 # Use a double $ so make ignores it.
1153 test "$program_suffix" != NONE &&
1154 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1156 # sed with no file args requires a program.
1157 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1159 for ac_prog in mawk gawk nawk awk
1161 # Extract the first word of "$ac_prog", so it can be a program name with args.
1162 set dummy $ac_prog; ac_word=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 if test -n "$AWK"; then
1169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 if test -f $ac_dir/$ac_word; then
1176 ac_cv_prog_AWK="$ac_prog"
1183 AWK="$ac_cv_prog_AWK"
1184 if test -n "$AWK"; then
1185 echo "$ac_t""$AWK" 1>&6
1187 echo "$ac_t""no" 1>&6
1190 test -n "$AWK" && break
1193 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether ${MAKE-make} sets \${MAKE}" >&5
1195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 cat > conftestmake <<\EOF
1201 @echo 'ac_maketemp="${MAKE}"'
1203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1204 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1205 if test -n "$ac_maketemp"; then
1206 eval ac_cv_prog_make_${ac_make}_set=yes
1208 eval ac_cv_prog_make_${ac_make}_set=no
1212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1213 echo "$ac_t""yes" 1>&6
1216 echo "$ac_t""no" 1>&6
1217 SET_MAKE="MAKE=${MAKE-make}"
1226 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1227 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1232 missing_dir=`cd $ac_aux_dir && pwd`
1233 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1234 echo "configure:1235: checking for working aclocal" >&5
1235 # Run test in a subshell; some versions of sh will print an error if
1236 # an executable is not found, even if stderr is redirected.
1237 # Redirect stdin to placate older versions of autoconf. Sigh.
1238 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1240 echo "$ac_t""found" 1>&6
1242 ACLOCAL="$missing_dir/missing aclocal"
1243 echo "$ac_t""missing" 1>&6
1246 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1247 echo "configure:1248: checking for working autoconf" >&5
1248 # Run test in a subshell; some versions of sh will print an error if
1249 # an executable is not found, even if stderr is redirected.
1250 # Redirect stdin to placate older versions of autoconf. Sigh.
1251 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1253 echo "$ac_t""found" 1>&6
1255 AUTOCONF="$missing_dir/missing autoconf"
1256 echo "$ac_t""missing" 1>&6
1259 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1260 echo "configure:1261: checking for working automake" >&5
1261 # Run test in a subshell; some versions of sh will print an error if
1262 # an executable is not found, even if stderr is redirected.
1263 # Redirect stdin to placate older versions of autoconf. Sigh.
1264 if (automake --version) < /dev/null > /dev/null 2>&1; then
1266 echo "$ac_t""found" 1>&6
1268 AUTOMAKE="$missing_dir/missing automake"
1269 echo "$ac_t""missing" 1>&6
1272 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1273 echo "configure:1274: checking for working autoheader" >&5
1274 # Run test in a subshell; some versions of sh will print an error if
1275 # an executable is not found, even if stderr is redirected.
1276 # Redirect stdin to placate older versions of autoconf. Sigh.
1277 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1278 AUTOHEADER=autoheader
1279 echo "$ac_t""found" 1>&6
1281 AUTOHEADER="$missing_dir/missing autoheader"
1282 echo "$ac_t""missing" 1>&6
1285 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1286 echo "configure:1287: checking for working makeinfo" >&5
1287 # Run test in a subshell; some versions of sh will print an error if
1288 # an executable is not found, even if stderr is redirected.
1289 # Redirect stdin to placate older versions of autoconf. Sigh.
1290 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1292 echo "$ac_t""found" 1>&6
1294 MAKEINFO="$missing_dir/missing makeinfo"
1295 echo "$ac_t""missing" 1>&6
1298 install_sh="$missing_dir/install-sh"
1299 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1301 for ac_prog in gnutar gtar tar
1303 # Extract the first word of "$ac_prog", so it can be a program name with args.
1304 set dummy $ac_prog; ac_word=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_word" >&5
1307 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 if test -n "$AMTAR"; then
1311 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1315 for ac_dir in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_prog_AMTAR="$ac_prog"
1325 AMTAR="$ac_cv_prog_AMTAR"
1326 if test -n "$AMTAR"; then
1327 echo "$ac_t""$AMTAR" 1>&6
1329 echo "$ac_t""no" 1>&6
1332 test -n "$AMTAR" && break
1337 if test -n "$AMTAR"; then
1338 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1343 cat >> confdefs.h <<EOF
1344 #define OPENLDAP_PACKAGE "$PACKAGE"
1347 cat >> confdefs.h <<EOF
1348 #define OPENLDAP_VERSION "$VERSION"
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION $OL_API_INC
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1360 cat >> confdefs.h <<EOF
1361 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1364 cat >> confdefs.h <<EOF
1365 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1369 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1371 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1373 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1377 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1378 echo "configure:1379: checking configure arguments" >&5
1383 ldap_subdir="/openldap"
1385 # Check whether --with-subdir or --without-subdir was given.
1386 if test "${with_subdir+set}" = set; then
1387 withval="$with_subdir"
1394 ldap_subdir="$withval"
1397 ldap_subdir="/$withval"
1404 # OpenLDAP --enable-debug
1405 # Check whether --enable-debug or --disable-debug was given.
1406 if test "${enable_debug+set}" = set; then
1407 enableval="$enable_debug"
1410 for ol_val in auto yes no ; do
1411 if test "$enableval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1418 ol_enable_debug="$ol_arg"
1421 ol_enable_debug="yes"
1423 # end --enable-debug
1424 # OpenLDAP --enable-dynamic
1425 # Check whether --enable-dynamic or --disable-dynamic was given.
1426 if test "${enable_dynamic+set}" = set; then
1427 enableval="$enable_dynamic"
1430 for ol_val in auto yes no ; do
1431 if test "$enableval" = "$ol_val" ; then
1435 if test "$ol_arg" = "invalid" ; then
1436 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1438 ol_enable_dynamic="$ol_arg"
1441 ol_enable_dynamic="no"
1443 # end --enable-dynamic
1444 # OpenLDAP --enable-syslog
1445 # Check whether --enable-syslog or --disable-syslog was given.
1446 if test "${enable_syslog+set}" = set; then
1447 enableval="$enable_syslog"
1450 for ol_val in auto yes no ; do
1451 if test "$enableval" = "$ol_val" ; then
1455 if test "$ol_arg" = "invalid" ; then
1456 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1458 ol_enable_syslog="$ol_arg"
1461 ol_enable_syslog="auto"
1463 # end --enable-syslog
1464 # OpenLDAP --enable-proctitle
1465 # Check whether --enable-proctitle or --disable-proctitle was given.
1466 if test "${enable_proctitle+set}" = set; then
1467 enableval="$enable_proctitle"
1470 for ol_val in auto yes no ; do
1471 if test "$enableval" = "$ol_val" ; then
1475 if test "$ol_arg" = "invalid" ; then
1476 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1478 ol_enable_proctitle="$ol_arg"
1481 ol_enable_proctitle="yes"
1483 # end --enable-proctitle
1484 ol_enable_referrals=${ol_enable_referrals-no}
1485 ol_enable_kbind=${ol_enable_kbind-no}
1486 # OpenLDAP --enable-ipv6
1487 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1488 if test "${enable_ipv6+set}" = set; then
1489 enableval="$enable_ipv6"
1492 for ol_val in auto yes no ; do
1493 if test "$enableval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1500 ol_enable_ipv6="$ol_arg"
1503 ol_enable_ipv6="auto"
1506 # OpenLDAP --enable-local
1507 # Check whether --enable-local or --disable-local was given.
1508 if test "${enable_local+set}" = set; then
1509 enableval="$enable_local"
1512 for ol_val in auto yes no ; do
1513 if test "$enableval" = "$ol_val" ; then
1517 if test "$ol_arg" = "invalid" ; then
1518 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1520 ol_enable_local="$ol_arg"
1523 ol_enable_local="auto"
1525 # end --enable-local
1528 # OpenLDAP --with-cyrus_sasl
1529 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1530 if test "${with_cyrus_sasl+set}" = set; then
1531 withval="$with_cyrus_sasl"
1534 for ol_val in auto yes no ; do
1535 if test "$withval" = "$ol_val" ; then
1539 if test "$ol_arg" = "invalid" ; then
1540 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1542 ol_with_cyrus_sasl="$ol_arg"
1545 ol_with_cyrus_sasl="auto"
1547 # end --with-cyrus_sasl
1549 # OpenLDAP --with-fetch
1550 # Check whether --with-fetch or --without-fetch was given.
1551 if test "${with_fetch+set}" = set; then
1552 withval="$with_fetch"
1555 for ol_val in auto yes no ; do
1556 if test "$withval" = "$ol_val" ; then
1560 if test "$ol_arg" = "invalid" ; then
1561 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1563 ol_with_fetch="$ol_arg"
1566 ol_with_fetch="auto"
1570 ol_with_kerberos=${ol_with_kerberos-auto}
1571 # OpenLDAP --with-threads
1572 # Check whether --with-threads or --without-threads was given.
1573 if test "${with_threads+set}" = set; then
1574 withval="$with_threads"
1577 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1578 if test "$withval" = "$ol_val" ; then
1582 if test "$ol_arg" = "invalid" ; then
1583 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1585 ol_with_threads="$ol_arg"
1588 ol_with_threads="auto"
1590 # end --with-threads
1592 # OpenLDAP --with-tls
1593 # Check whether --with-tls or --without-tls was given.
1594 if test "${with_tls+set}" = set; then
1598 for ol_val in auto ssleay openssl yes no ; do
1599 if test "$withval" = "$ol_val" ; then
1603 if test "$ol_arg" = "invalid" ; then
1604 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1606 ol_with_tls="$ol_arg"
1613 # OpenLDAP --with-yielding_select
1614 # Check whether --with-yielding_select or --without-yielding_select was given.
1615 if test "${with_yielding_select+set}" = set; then
1616 withval="$with_yielding_select"
1619 for ol_val in auto yes no manual ; do
1620 if test "$withval" = "$ol_val" ; then
1624 if test "$ol_arg" = "invalid" ; then
1625 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1627 ol_with_yielding_select="$ol_arg"
1630 ol_with_yielding_select="auto"
1632 # end --with-yielding_select
1634 # OpenLDAP --with-multiple_precision
1635 # Check whether --with-multiple_precision or --without-multiple_precision was given.
1636 if test "${with_multiple_precision+set}" = set; then
1637 withval="$with_multiple_precision"
1640 for ol_val in auto bignum gmp yes no ; do
1641 if test "$withval" = "$ol_val" ; then
1645 if test "$ol_arg" = "invalid" ; then
1646 { echo "configure: error: bad value $withval for --with-multiple_precision" 1>&2; exit 1; }
1648 ol_with_multiple_precision="$ol_arg"
1651 ol_with_multiple_precision="auto"
1653 # end --with-multiple_precision
1657 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1658 if test "${with_xxslapdoptions+set}" = set; then
1659 withval="$with_xxslapdoptions"
1663 # OpenLDAP --enable-slapd
1664 # Check whether --enable-slapd or --disable-slapd was given.
1665 if test "${enable_slapd+set}" = set; then
1666 enableval="$enable_slapd"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1677 ol_enable_slapd="$ol_arg"
1680 ol_enable_slapd="yes"
1682 # end --enable-slapd
1683 # OpenLDAP --enable-aci
1684 # Check whether --enable-aci or --disable-aci was given.
1685 if test "${enable_aci+set}" = set; then
1686 enableval="$enable_aci"
1689 for ol_val in auto yes no ; do
1690 if test "$enableval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1697 ol_enable_aci="$ol_arg"
1703 # OpenLDAP --enable-cleartext
1704 # Check whether --enable-cleartext or --disable-cleartext was given.
1705 if test "${enable_cleartext+set}" = set; then
1706 enableval="$enable_cleartext"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1717 ol_enable_cleartext="$ol_arg"
1720 ol_enable_cleartext="yes"
1722 # end --enable-cleartext
1723 # OpenLDAP --enable-crypt
1724 # Check whether --enable-crypt or --disable-crypt was given.
1725 if test "${enable_crypt+set}" = set; then
1726 enableval="$enable_crypt"
1729 for ol_val in auto yes no ; do
1730 if test "$enableval" = "$ol_val" ; then
1734 if test "$ol_arg" = "invalid" ; then
1735 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1737 ol_enable_crypt="$ol_arg"
1740 ol_enable_crypt="no"
1742 # end --enable-crypt
1743 # OpenLDAP --enable-lmpasswd
1744 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1745 if test "${enable_lmpasswd+set}" = set; then
1746 enableval="$enable_lmpasswd"
1749 for ol_val in auto yes no ; do
1750 if test "$enableval" = "$ol_val" ; then
1754 if test "$ol_arg" = "invalid" ; then
1755 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1757 ol_enable_lmpasswd="$ol_arg"
1760 ol_enable_lmpasswd="no"
1762 # end --enable-lmpasswd
1763 # OpenLDAP --enable-spasswd
1764 # Check whether --enable-spasswd or --disable-spasswd was given.
1765 if test "${enable_spasswd+set}" = set; then
1766 enableval="$enable_spasswd"
1769 for ol_val in auto yes no ; do
1770 if test "$enableval" = "$ol_val" ; then
1774 if test "$ol_arg" = "invalid" ; then
1775 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1777 ol_enable_spasswd="$ol_arg"
1780 ol_enable_spasswd="no"
1782 # end --enable-spasswd
1783 # OpenLDAP --enable-modules
1784 # Check whether --enable-modules or --disable-modules was given.
1785 if test "${enable_modules+set}" = set; then
1786 enableval="$enable_modules"
1789 for ol_val in auto yes no ; do
1790 if test "$enableval" = "$ol_val" ; then
1794 if test "$ol_arg" = "invalid" ; then
1795 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1797 ol_enable_modules="$ol_arg"
1800 ol_enable_modules="no"
1802 # end --enable-modules
1803 ol_enable_multimaster=${ol_enable_multimaster-no}
1804 # OpenLDAP --enable-rewrite
1805 # Check whether --enable-rewrite or --disable-rewrite was given.
1806 if test "${enable_rewrite+set}" = set; then
1807 enableval="$enable_rewrite"
1810 for ol_val in auto yes no ; do
1811 if test "$enableval" = "$ol_val" ; then
1815 if test "$ol_arg" = "invalid" ; then
1816 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1818 ol_enable_rewrite="$ol_arg"
1821 ol_enable_rewrite="auto"
1823 # end --enable-rewrite
1824 # OpenLDAP --enable-rlookups
1825 # Check whether --enable-rlookups or --disable-rlookups was given.
1826 if test "${enable_rlookups+set}" = set; then
1827 enableval="$enable_rlookups"
1830 for ol_val in auto yes no ; do
1831 if test "$enableval" = "$ol_val" ; then
1835 if test "$ol_arg" = "invalid" ; then
1836 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1838 ol_enable_rlookups="$ol_arg"
1841 ol_enable_rlookups="no"
1843 # end --enable-rlookups
1844 # OpenLDAP --enable-slapi
1845 # Check whether --enable-slapi or --disable-slapi was given.
1846 if test "${enable_slapi+set}" = set; then
1847 enableval="$enable_slapi"
1850 for ol_val in auto yes no ; do
1851 if test "$enableval" = "$ol_val" ; then
1855 if test "$ol_arg" = "invalid" ; then
1856 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1858 ol_enable_slapi="$ol_arg"
1861 ol_enable_slapi="no"
1863 # end --enable-slapi
1864 # OpenLDAP --enable-slp
1865 # Check whether --enable-slp or --disable-slp was given.
1866 if test "${enable_slp+set}" = set; then
1867 enableval="$enable_slp"
1870 for ol_val in auto yes no ; do
1871 if test "$enableval" = "$ol_val" ; then
1875 if test "$ol_arg" = "invalid" ; then
1876 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1878 ol_enable_slp="$ol_arg"
1884 # OpenLDAP --enable-wrappers
1885 # Check whether --enable-wrappers or --disable-wrappers was given.
1886 if test "${enable_wrappers+set}" = set; then
1887 enableval="$enable_wrappers"
1890 for ol_val in auto yes no ; do
1891 if test "$enableval" = "$ol_val" ; then
1895 if test "$ol_arg" = "invalid" ; then
1896 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1898 ol_enable_wrappers="$ol_arg"
1901 ol_enable_wrappers="no"
1903 # end --enable-wrappers
1905 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1906 passwd perl relay shell sql"
1908 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1909 if test "${with_xxslapbackends+set}" = set; then
1910 withval="$with_xxslapbackends"
1915 # OpenLDAP --enable-backends
1916 # Check whether --enable-backends or --disable-backends was given.
1917 if test "${enable_backends+set}" = set; then
1918 enableval="$enable_backends"
1921 for ol_val in no yes mod ; do
1922 if test "$enableval" = "$ol_val" ; then
1926 if test "$ol_arg" = "invalid" ; then
1927 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1929 ol_enable_backends="$ol_arg"
1932 ol_enable_backends="no"
1934 # end --enable-backends
1935 # OpenLDAP --enable-bdb
1936 # Check whether --enable-bdb or --disable-bdb was given.
1937 if test "${enable_bdb+set}" = set; then
1938 enableval="$enable_bdb"
1941 for ol_val in no yes mod ; do
1942 if test "$enableval" = "$ol_val" ; then
1946 if test "$ol_arg" = "invalid" ; then
1947 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1949 ol_enable_bdb="$ol_arg"
1955 # OpenLDAP --enable-dnssrv
1956 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1957 if test "${enable_dnssrv+set}" = set; then
1958 enableval="$enable_dnssrv"
1961 for ol_val in no yes mod ; do
1962 if test "$enableval" = "$ol_val" ; then
1966 if test "$ol_arg" = "invalid" ; then
1967 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1969 ol_enable_dnssrv="$ol_arg"
1972 ol_enable_dnssrv="no"
1974 # end --enable-dnssrv
1975 # OpenLDAP --enable-hdb
1976 # Check whether --enable-hdb or --disable-hdb was given.
1977 if test "${enable_hdb+set}" = set; then
1978 enableval="$enable_hdb"
1981 for ol_val in no yes mod ; do
1982 if test "$enableval" = "$ol_val" ; then
1986 if test "$ol_arg" = "invalid" ; then
1987 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1989 ol_enable_hdb="$ol_arg"
1995 # OpenLDAP --enable-ldap
1996 # Check whether --enable-ldap or --disable-ldap was given.
1997 if test "${enable_ldap+set}" = set; then
1998 enableval="$enable_ldap"
2001 for ol_val in no yes mod ; do
2002 if test "$enableval" = "$ol_val" ; then
2006 if test "$ol_arg" = "invalid" ; then
2007 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2009 ol_enable_ldap="$ol_arg"
2015 # OpenLDAP --enable-ldbm
2016 # Check whether --enable-ldbm or --disable-ldbm was given.
2017 if test "${enable_ldbm+set}" = set; then
2018 enableval="$enable_ldbm"
2021 for ol_val in no yes mod ; do
2022 if test "$enableval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2029 ol_enable_ldbm="$ol_arg"
2035 # OpenLDAP --with-ldbm_api
2036 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2037 if test "${with_ldbm_api+set}" = set; then
2038 withval="$with_ldbm_api"
2041 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2042 if test "$withval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2049 ol_with_ldbm_api="$ol_arg"
2052 ol_with_ldbm_api="auto"
2054 # end --with-ldbm_api
2056 # OpenLDAP --with-ldbm_type
2057 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2058 if test "${with_ldbm_type+set}" = set; then
2059 withval="$with_ldbm_type"
2062 for ol_val in auto btree hash ; do
2063 if test "$withval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2070 ol_with_ldbm_type="$ol_arg"
2073 ol_with_ldbm_type="auto"
2075 # end --with-ldbm_type
2077 # OpenLDAP --enable-meta
2078 # Check whether --enable-meta or --disable-meta was given.
2079 if test "${enable_meta+set}" = set; then
2080 enableval="$enable_meta"
2083 for ol_val in no yes mod ; do
2084 if test "$enableval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2091 ol_enable_meta="$ol_arg"
2097 # OpenLDAP --enable-monitor
2098 # Check whether --enable-monitor or --disable-monitor was given.
2099 if test "${enable_monitor+set}" = set; then
2100 enableval="$enable_monitor"
2103 for ol_val in no yes mod ; do
2104 if test "$enableval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2111 ol_enable_monitor="$ol_arg"
2114 ol_enable_monitor="yes"
2116 # end --enable-monitor
2117 # OpenLDAP --enable-null
2118 # Check whether --enable-null or --disable-null was given.
2119 if test "${enable_null+set}" = set; then
2120 enableval="$enable_null"
2123 for ol_val in no yes mod ; do
2124 if test "$enableval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2131 ol_enable_null="$ol_arg"
2137 # OpenLDAP --enable-passwd
2138 # Check whether --enable-passwd or --disable-passwd was given.
2139 if test "${enable_passwd+set}" = set; then
2140 enableval="$enable_passwd"
2143 for ol_val in no yes mod ; do
2144 if test "$enableval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2151 ol_enable_passwd="$ol_arg"
2154 ol_enable_passwd="no"
2156 # end --enable-passwd
2157 # OpenLDAP --enable-perl
2158 # Check whether --enable-perl or --disable-perl was given.
2159 if test "${enable_perl+set}" = set; then
2160 enableval="$enable_perl"
2163 for ol_val in no yes mod ; do
2164 if test "$enableval" = "$ol_val" ; then
2168 if test "$ol_arg" = "invalid" ; then
2169 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2171 ol_enable_perl="$ol_arg"
2177 # OpenLDAP --enable-relay
2178 # Check whether --enable-relay or --disable-relay was given.
2179 if test "${enable_relay+set}" = set; then
2180 enableval="$enable_relay"
2183 for ol_val in no yes mod ; do
2184 if test "$enableval" = "$ol_val" ; then
2188 if test "$ol_arg" = "invalid" ; then
2189 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2191 ol_enable_relay="$ol_arg"
2194 ol_enable_relay="yes"
2196 # end --enable-relay
2197 # OpenLDAP --enable-shell
2198 # Check whether --enable-shell or --disable-shell was given.
2199 if test "${enable_shell+set}" = set; then
2200 enableval="$enable_shell"
2203 for ol_val in no yes mod ; do
2204 if test "$enableval" = "$ol_val" ; then
2208 if test "$ol_arg" = "invalid" ; then
2209 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2211 ol_enable_shell="$ol_arg"
2214 ol_enable_shell="no"
2216 # end --enable-shell
2217 # OpenLDAP --enable-sql
2218 # Check whether --enable-sql or --disable-sql was given.
2219 if test "${enable_sql+set}" = set; then
2220 enableval="$enable_sql"
2223 for ol_val in no yes mod ; do
2224 if test "$enableval" = "$ol_val" ; then
2228 if test "$ol_arg" = "invalid" ; then
2229 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2231 ol_enable_sql="$ol_arg"
2238 Overlays="chain denyop dyngroup lastmod ppolicy proxycache rwm \
2241 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2242 if test "${with_xxslapoverlays+set}" = set; then
2243 withval="$with_xxslapoverlays"
2248 # OpenLDAP --enable-overlays
2249 # Check whether --enable-overlays or --disable-overlays was given.
2250 if test "${enable_overlays+set}" = set; then
2251 enableval="$enable_overlays"
2254 for ol_val in no yes mod ; do
2255 if test "$enableval" = "$ol_val" ; then
2259 if test "$ol_arg" = "invalid" ; then
2260 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2262 ol_enable_overlays="$ol_arg"
2265 ol_enable_overlays="no"
2267 # end --enable-overlays
2268 # OpenLDAP --enable-chain
2269 # Check whether --enable-chain or --disable-chain was given.
2270 if test "${enable_chain+set}" = set; then
2271 enableval="$enable_chain"
2274 for ol_val in no yes mod ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2282 ol_enable_chain="$ol_arg"
2285 ol_enable_chain="no"
2287 # end --enable-chain
2289 # OpenLDAP --enable-denyop
2290 # Check whether --enable-denyop or --disable-denyop was given.
2291 if test "${enable_denyop+set}" = set; then
2292 enableval="$enable_denyop"
2295 for ol_val in no yes mod ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2303 ol_enable_denyop="$ol_arg"
2306 ol_enable_denyop="no"
2308 # end --enable-denyop
2310 # OpenLDAP --enable-dyngroup
2311 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2312 if test "${enable_dyngroup+set}" = set; then
2313 enableval="$enable_dyngroup"
2316 for ol_val in no yes mod ; do
2317 if test "$enableval" = "$ol_val" ; then
2321 if test "$ol_arg" = "invalid" ; then
2322 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2324 ol_enable_dyngroup="$ol_arg"
2327 ol_enable_dyngroup="no"
2329 # end --enable-dyngroup
2331 # OpenLDAP --enable-lastmod
2332 # Check whether --enable-lastmod or --disable-lastmod was given.
2333 if test "${enable_lastmod+set}" = set; then
2334 enableval="$enable_lastmod"
2337 for ol_val in no yes mod ; do
2338 if test "$enableval" = "$ol_val" ; then
2342 if test "$ol_arg" = "invalid" ; then
2343 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2345 ol_enable_lastmod="$ol_arg"
2348 ol_enable_lastmod="no"
2350 # end --enable-lastmod
2352 # OpenLDAP --enable-ppolicy
2353 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2354 if test "${enable_ppolicy+set}" = set; then
2355 enableval="$enable_ppolicy"
2358 for ol_val in no yes mod ; do
2359 if test "$enableval" = "$ol_val" ; then
2363 if test "$ol_arg" = "invalid" ; then
2364 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2366 ol_enable_ppolicy="$ol_arg"
2369 ol_enable_ppolicy="no"
2371 # end --enable-ppolicy
2373 # OpenLDAP --enable-proxycache
2374 # Check whether --enable-proxycache or --disable-proxycache was given.
2375 if test "${enable_proxycache+set}" = set; then
2376 enableval="$enable_proxycache"
2379 for ol_val in no yes mod ; do
2380 if test "$enableval" = "$ol_val" ; then
2384 if test "$ol_arg" = "invalid" ; then
2385 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2387 ol_enable_proxycache="$ol_arg"
2390 ol_enable_proxycache="no"
2392 # end --enable-proxycache
2394 # OpenLDAP --enable-refint
2395 # Check whether --enable-refint or --disable-refint was given.
2396 if test "${enable_refint+set}" = set; then
2397 enableval="$enable_refint"
2400 for ol_val in no yes mod ; do
2401 if test "$enableval" = "$ol_val" ; then
2405 if test "$ol_arg" = "invalid" ; then
2406 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2408 ol_enable_refint="$ol_arg"
2411 ol_enable_refint="no"
2413 # end --enable-refint
2415 # OpenLDAP --enable-rwm
2416 # Check whether --enable-rwm or --disable-rwm was given.
2417 if test "${enable_rwm+set}" = set; then
2418 enableval="$enable_rwm"
2421 for ol_val in no yes mod ; do
2422 if test "$enableval" = "$ol_val" ; then
2426 if test "$ol_arg" = "invalid" ; then
2427 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2429 ol_enable_rwm="$ol_arg"
2436 # OpenLDAP --enable-unique
2437 # Check whether --enable-unique or --disable-unique was given.
2438 if test "${enable_unique+set}" = set; then
2439 enableval="$enable_unique"
2442 for ol_val in no yes mod ; do
2443 if test "$enableval" = "$ol_val" ; then
2447 if test "$ol_arg" = "invalid" ; then
2448 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2450 ol_enable_unique="$ol_arg"
2453 ol_enable_unique="no"
2455 # end --enable-unique
2459 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2460 if test "${with_xxslurpdoptions+set}" = set; then
2461 withval="$with_xxslurpdoptions"
2465 # OpenLDAP --enable-slurpd
2466 # Check whether --enable-slurpd or --disable-slurpd was given.
2467 if test "${enable_slurpd+set}" = set; then
2468 enableval="$enable_slurpd"
2471 for ol_val in auto yes no ; do
2472 if test "$enableval" = "$ol_val" ; then
2476 if test "$ol_arg" = "invalid" ; then
2477 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2479 ol_enable_slurpd="$ol_arg"
2482 ol_enable_slurpd="auto"
2484 # end --enable-slurpd
2486 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2487 if test "${with_xxliboptions+set}" = set; then
2488 withval="$with_xxliboptions"
2492 # Check whether --enable-static or --disable-static was given.
2493 if test "${enable_static+set}" = set; then
2494 enableval="$enable_static"
2495 p=${PACKAGE-default}
2497 yes) enable_static=yes ;;
2498 no) enable_static=no ;;
2501 # Look at the argument we got. We use all the common list separators.
2502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2503 for pkg in $enableval; do
2504 if test "X$pkg" = "X$p"; then
2515 # Check whether --enable-shared or --disable-shared was given.
2516 if test "${enable_shared+set}" = set; then
2517 enableval="$enable_shared"
2518 p=${PACKAGE-default}
2520 yes) enable_shared=yes ;;
2521 no) enable_shared=no ;;
2524 # Look at the argument we got. We use all the common list separators.
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2526 for pkg in $enableval; do
2527 if test "X$pkg" = "X$p"; then
2540 # Activate any backends that were not explicitly enabled.
2541 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2542 if test $ol_enable_backends != no ; then
2543 for i in $Backends; do
2544 eval "ol_tmp=\$ol_enable_$i"
2545 if test $ol_tmp = no ; then
2546 eval "ol_enable_$i=$ol_enable_backends"
2550 # Activate the overlays
2551 if test $ol_enable_overlays != no ; then
2552 for i in $Overlays; do
2553 eval "ol_tmp=\$ol_enable_$i"
2554 if test $ol_tmp = no ; then
2555 eval "ol_enable_$i=$ol_enable_overlays"
2561 if test $ol_enable_slapd = no ; then
2562 if test $ol_enable_slapi = yes ; then
2563 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2565 if test $ol_enable_backends != no ; then
2566 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2568 for i in $Backends; do
2569 eval "ol_tmp=\$ol_enable_$i"
2570 if test $ol_tmp != no ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2572 eval "ol_enable_$i=no"
2575 if test $ol_enable_modules = yes ; then
2576 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2578 if test $ol_enable_multimaster = yes ; then
2579 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2581 if test $ol_enable_wrappers = yes ; then
2582 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2584 if test $ol_enable_rlookups = yes ; then
2585 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2587 if test $ol_enable_aci = yes ; then
2588 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2590 if test $ol_with_ldbm_api != auto ; then
2591 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2593 if test $ol_with_ldbm_type != auto ; then
2594 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2596 if test $ol_enable_slurpd = yes ; then
2597 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2599 if test $ol_enable_rewrite = yes ; then
2600 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2602 if test $ol_enable_overlays != no ; then
2603 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2605 for i in $Overlays; do
2606 eval "ol_tmp=\$ol_enable_$i"
2607 if test $ol_tmp != no ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2609 eval "ol_enable_$i=no"
2613 # force settings to no
2616 ol_enable_backends=no
2617 ol_enable_overlays=no
2618 ol_enable_modules=no
2619 ol_enable_multimaster=no
2620 ol_enable_rlookups=no
2622 ol_enable_wrappers=no
2625 ol_with_ldbm_type=no
2629 ol_enable_rewrite=no
2631 elif test $ol_enable_ldbm = no ; then
2633 if test $ol_with_ldbm_api != auto ; then
2634 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2637 if test $ol_with_ldbm_type != auto ; then
2638 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2641 if test $ol_enable_modules != yes -a \
2642 $ol_enable_bdb = no -a \
2643 $ol_enable_dnssrv = no -a \
2644 $ol_enable_hdb = no -a \
2645 $ol_enable_ldap = no -a \
2646 $ol_enable_meta = no -a \
2647 $ol_enable_monitor = no -a \
2648 $ol_enable_null = no -a \
2649 $ol_enable_passwd = no -a \
2650 $ol_enable_perl = no -a \
2651 $ol_enable_relay = no -a \
2652 $ol_enable_shell = no -a \
2653 $ol_enable_sql = no ; then
2655 if test $ol_enable_slapd = yes ; then
2656 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2658 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2664 ol_with_ldbm_type=no
2666 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2667 ol_with_ldbm_api=berkeley
2671 if test $ol_with_ldbm_api = gdbm -a \
2672 $ol_with_ldbm_type = btree ; then
2673 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2675 if test $ol_with_ldbm_api = mdbm -a \
2676 $ol_with_ldbm_type = btree ; then
2677 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2679 if test $ol_with_ldbm_api = ndbm -a \
2680 $ol_with_ldbm_type = btree ; then
2681 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2684 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2685 if test $ol_with_ldbm_api = auto ; then
2686 ol_with_ldbm_api=berkeley
2687 elif test $ol_with_ldbm_api != berkeley ; then
2688 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2693 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2694 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2697 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2698 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2701 if test $ol_enable_slurpd = yes ; then
2702 if test $ol_with_threads = no ; then
2703 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2707 if test $ol_enable_lmpasswd = yes ; then
2708 if test $ol_with_tls = no ; then
2709 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2713 if test $ol_enable_kbind = yes ; then
2714 if test $ol_with_kerberos = no ; then
2715 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2716 elif test $ol_with_kerberos = auto ; then
2717 ol_with_kerberos=yes
2720 elif test $ol_enable_kbind = no ; then
2721 if test $ol_with_kerberos = auto ; then
2723 elif test $ol_with_kerberos != no ; then
2724 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2729 if test $ol_enable_spasswd = yes ; then
2730 if test $ol_with_cyrus_sasl = no ; then
2731 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2733 ol_with_cyrus_sasl=yes
2736 echo "$ac_t""done" 1>&6
2778 SLAPD_DYNAMIC_OVERLAYS=
2780 SLAPD_MODULES_LDFLAGS=
2781 SLAPD_MODULES_CPPFLAGS=
2783 SLAPD_STATIC_BACKENDS=
2784 SLAPD_DYNAMIC_BACKENDS=
2808 cat >> confdefs.h <<\EOF
2809 #define HAVE_MKVERSION 1
2817 *-*-aix*) if test -z "$CC" ; then
2818 case "$ol_with_threads" in
2819 auto | yes | posix) ol_aix_threads=yes ;;
2825 if test $ol_aix_threads = yes ; then
2826 if test -z "${CC}" ; then
2827 for ac_prog in cc_r xlc_r cc
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_word" >&5
2833 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2841 for ac_dir in $ac_dummy; do
2842 test -z "$ac_dir" && ac_dir=.
2843 if test -f $ac_dir/$ac_word; then
2844 ac_cv_prog_CC="$ac_prog"
2852 if test -n "$CC"; then
2853 echo "$ac_t""$CC" 1>&6
2855 echo "$ac_t""no" 1>&6
2858 test -n "$CC" && break
2862 if test "$CC" = cc ; then
2863 if test $ol_with_threads != auto ; then
2864 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2866 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2872 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2873 ol_with_threads=posix
2874 ol_cv_pthread_create=yes
2878 if test -z "${CC}"; then
2879 for ac_prog in cc gcc
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2884 echo "configure:2885: checking for $ac_word" >&5
2885 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2893 for ac_dir in $ac_dummy; do
2894 test -z "$ac_dir" && ac_dir=.
2895 if test -f $ac_dir/$ac_word; then
2896 ac_cv_prog_CC="$ac_prog"
2904 if test -n "$CC"; then
2905 echo "$ac_t""$CC" 1>&6
2907 echo "$ac_t""no" 1>&6
2910 test -n "$CC" && break
2912 test -n "$CC" || CC="missing"
2915 if test "${CC}" = "missing" ; then
2916 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2920 if test -z "${AR}"; then
2921 for ac_prog in ar gar
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_word" >&5
2927 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 if test -n "$AR"; then
2931 ac_cv_prog_AR="$AR" # Let the user override the test.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2935 for ac_dir in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_prog_AR="$ac_prog"
2946 if test -n "$AR"; then
2947 echo "$ac_t""$AR" 1>&6
2949 echo "$ac_t""no" 1>&6
2952 test -n "$AR" && break
2954 test -n "$AR" || AR="missing"
2957 if test "${AR}" = "missing" ; then
2958 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2964 # Find the correct PATH separator. Usually this is `:', but
2965 # DJGPP uses `;' like DOS.
2966 if test "X${PATH_SEPARATOR+set}" != Xset; then
2967 UNAME=${UNAME-`uname 2>/dev/null`}
2969 *-DOS) lt_cv_sys_path_separator=';' ;;
2970 *) lt_cv_sys_path_separator=':' ;;
2972 PATH_SEPARATOR=$lt_cv_sys_path_separator
2975 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2976 echo "configure:2977: checking for Cygwin environment" >&5
2977 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2987 #define __CYGWIN__ __CYGWIN32__
2992 if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
3004 echo "$ac_t""$ac_cv_cygwin" 1>&6
3006 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3007 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3008 echo "configure:3009: checking for mingw32 environment" >&5
3009 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3020 if { (eval echo configure:3021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3032 echo "$ac_t""$ac_cv_mingw32" 1>&6
3034 test "$ac_cv_mingw32" = yes && MINGW32=yes
3035 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3036 echo "configure:3037: checking for EMX OS/2 environment" >&5
3037 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3048 if { (eval echo configure:3049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3060 echo "$ac_t""$ac_cv_emxos2" 1>&6
3062 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3063 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3064 echo "configure:3065: checking how to run the C preprocessor" >&5
3065 # On Suns, sometimes $CPP names a directory.
3066 if test -n "$CPP" && test -d "$CPP"; then
3069 if test -z "$CPP"; then
3070 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 # This must be in double quotes, not single quotes, because CPP may get
3074 # substituted into the Makefile and "${CC-cc}" will confuse make.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp.
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3085 { (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3087 if test -z "$ac_err"; then
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 CPP="${CC-cc} -E -traditional-cpp"
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3102 { (eval echo configure:3103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3104 if test -z "$ac_err"; then
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3111 CPP="${CC-cc} -nologo -E"
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3119 { (eval echo configure:3120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3121 if test -z "$ac_err"; then
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3135 ac_cv_prog_CPP="$CPP"
3137 CPP="$ac_cv_prog_CPP"
3139 ac_cv_prog_CPP="$CPP"
3141 echo "$ac_t""$CPP" 1>&6
3143 # Check whether --enable-fast-install or --disable-fast-install was given.
3144 if test "${enable_fast_install+set}" = set; then
3145 enableval="$enable_fast_install"
3146 p=${PACKAGE-default}
3148 yes) enable_fast_install=yes ;;
3149 no) enable_fast_install=no ;;
3151 enable_fast_install=no
3152 # Look at the argument we got. We use all the common list separators.
3153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3154 for pkg in $enableval; do
3155 if test "X$pkg" = "X$p"; then
3156 enable_fast_install=yes
3163 enable_fast_install=yes
3166 # Extract the first word of "gcc", so it can be a program name with args.
3167 set dummy gcc; ac_word=$2
3168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3169 echo "configure:3170: checking for $ac_word" >&5
3170 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3178 for ac_dir in $ac_dummy; do
3179 test -z "$ac_dir" && ac_dir=.
3180 if test -f $ac_dir/$ac_word; then
3189 if test -n "$CC"; then
3190 echo "$ac_t""$CC" 1>&6
3192 echo "$ac_t""no" 1>&6
3195 if test -z "$CC"; then
3196 # Extract the first word of "cc", so it can be a program name with args.
3197 set dummy cc; 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=":"
3209 for ac_dir in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir=.
3211 if test -f $ac_dir/$ac_word; then
3212 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3213 ac_prog_rejected=yes
3221 if test $ac_prog_rejected = yes; then
3222 # We found a bogon in the path, so make sure we never use it.
3223 set dummy $ac_cv_prog_CC
3225 if test $# -gt 0; then
3226 # We chose a different compiler from the bogus one.
3227 # However, it has the same basename, so the bogon will be chosen
3228 # first if we set CC to just the basename; use the full file name.
3230 set dummy "$ac_dir/$ac_word" "$@"
3238 if test -n "$CC"; then
3239 echo "$ac_t""$CC" 1>&6
3241 echo "$ac_t""no" 1>&6
3244 if test -z "$CC"; then
3245 case "`uname -s`" in
3246 *win32* | *WIN32* | *CYGWIN*)
3247 # Extract the first word of "cl", so it can be a program name with args.
3248 set dummy cl; ac_word=$2
3249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3250 echo "configure:3251: checking for $ac_word" >&5
3251 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3259 for ac_dir in $ac_dummy; do
3260 test -z "$ac_dir" && ac_dir=.
3261 if test -f $ac_dir/$ac_word; then
3270 if test -n "$CC"; then
3271 echo "$ac_t""$CC" 1>&6
3273 echo "$ac_t""no" 1>&6
3278 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3281 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3282 echo "configure:3283: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3289 cross_compiling=$ac_cv_prog_cc_cross
3291 cat > conftest.$ac_ext << EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3299 ac_cv_prog_cc_works=yes
3300 # If we can't run a trivial program, we are probably using a cross compiler.
3301 if (./conftest; exit) 2>/dev/null; then
3302 ac_cv_prog_cc_cross=no
3304 ac_cv_prog_cc_cross=yes
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ac_cv_prog_cc_works=no
3313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3317 cross_compiling=$ac_cv_prog_cc_cross
3319 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3320 if test $ac_cv_prog_cc_works = no; then
3321 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3323 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3324 echo "configure:3325: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3325 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3326 cross_compiling=$ac_cv_prog_cc_cross
3328 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3329 echo "configure:3330: checking whether we are using GNU C" >&5
3330 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.c <<EOF
3338 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3345 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3347 if test $ac_cv_prog_gcc = yes; then
3353 ac_test_CFLAGS="${CFLAGS+set}"
3354 ac_save_CFLAGS="$CFLAGS"
3356 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3357 echo "configure:3358: checking whether ${CC-cc} accepts -g" >&5
3358 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 echo 'void f(){}' > conftest.c
3362 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3371 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS="$ac_save_CFLAGS"
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3381 if test "$GCC" = yes; then
3388 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3389 if test "${with_gnu_ld+set}" = set; then
3390 withval="$with_gnu_ld"
3391 test "$withval" = no || with_gnu_ld=yes
3397 if test "$GCC" = yes; then
3398 # Check if gcc -print-prog-name=ld gives a path.
3399 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3400 echo "configure:3401: checking for ld used by GCC" >&5
3403 # gcc leaves a trailing carriage return which upsets mingw
3404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3409 # Accept absolute paths.
3410 [\\/]* | [A-Za-z]:[\\/]*)
3411 re_direlt='/[^/][^/]*/\.\./'
3412 # Canonicalize the path of ld
3413 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3414 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3415 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3417 test -z "$LD" && LD="$ac_prog"
3420 # If it fails, then pretend we aren't using GCC.
3424 # If it is relative, then search for the first ld in PATH.
3428 elif test "$with_gnu_ld" = yes; then
3429 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3430 echo "configure:3431: checking for GNU ld" >&5
3432 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3433 echo "configure:3434: checking for non-GNU ld" >&5
3435 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 if test -z "$LD"; then
3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3440 for ac_dir in $PATH; do
3441 test -z "$ac_dir" && ac_dir=.
3442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3443 lt_cv_path_LD="$ac_dir/$ac_prog"
3444 # Check to see if the program is GNU ld. I'd rather use --version,
3445 # but apparently some GNU ld's only accept -v.
3446 # Break only if it was the GNU/non-GNU ld that we prefer.
3447 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3448 test "$with_gnu_ld" != no && break
3450 test "$with_gnu_ld" != yes && break
3456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3461 if test -n "$LD"; then
3462 echo "$ac_t""$LD" 1>&6
3464 echo "$ac_t""no" 1>&6
3466 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3467 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3468 echo "configure:3469: checking if the linker ($LD) is GNU ld" >&5
3469 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3473 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3474 lt_cv_prog_gnu_ld=yes
3476 lt_cv_prog_gnu_ld=no
3480 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3481 with_gnu_ld=$lt_cv_prog_gnu_ld
3484 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3485 echo "configure:3486: checking for $LD option to reload object files" >&5
3486 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 lt_cv_ld_reload_flag='-r'
3492 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3493 reload_flag=$lt_cv_ld_reload_flag
3494 test -n "$reload_flag" && reload_flag=" $reload_flag"
3496 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3497 echo "configure:3498: checking for BSD-compatible nm" >&5
3498 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 if test -n "$NM"; then
3502 # Let the user override the test.
3505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3506 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3507 test -z "$ac_dir" && ac_dir=.
3508 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3509 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3510 # Check to see if the nm accepts a BSD-compat flag.
3511 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3512 # nm: unknown option "B" ignored
3513 # Tru64's nm complains that /dev/null is an invalid object file
3514 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3515 lt_cv_path_NM="$tmp_nm -B"
3517 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3518 lt_cv_path_NM="$tmp_nm -p"
3521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3522 continue # so that we can try to find one that supports BSD flags
3527 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3532 echo "$ac_t""$NM" 1>&6
3534 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3535 echo "configure:3536: checking for a sed that does not truncate output" >&5
3536 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 # Loop through the user's path and test for sed and gsed.
3540 # Then use that list of sed's as ones to test for truncation.
3541 as_executable_p="test -f"
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_prog in sed gsed; do
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3550 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3556 # Create a temporary directory, and hook for its removal unless debugging.
3559 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3560 trap '{ (exit 1); exit 1; }' 1 2 13 15
3563 # Create a (secure) tmp directory for tmp files.
3566 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3567 test -n "$tmp" && test -d "$tmp"
3570 tmp=$TMPDIR/sed$$-$RANDOM
3571 (umask 077 && mkdir $tmp)
3574 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3575 { (exit 1); exit 1; }
3579 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3580 # along with /bin/sed that truncates output.
3581 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3582 test ! -f ${_sed} && break
3583 cat /dev/null > "$tmp/sed.in"
3585 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3586 # Check for GNU sed and select it if it is found.
3587 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3588 lt_cv_path_SED=${_sed}
3592 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3593 mv "$tmp/sed.tmp" "$tmp/sed.in"
3594 cp "$tmp/sed.in" "$tmp/sed.nl"
3595 echo >>"$tmp/sed.nl"
3596 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3597 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3598 # 40000 chars as input seems more than enough
3599 test $_count -gt 10 && break
3600 _count=`expr $_count + 1`
3601 if test $_count -gt $_max; then
3603 lt_cv_path_SED=$_sed
3611 if test "X$SED" != "X"; then
3616 echo "$ac_t""$SED" 1>&6
3618 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3619 echo "configure:3620: checking whether ln -s works" >&5
3620 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3624 if ln -s X conftestdata 2>/dev/null
3627 ac_cv_prog_LN_S="ln -s"
3632 LN_S="$ac_cv_prog_LN_S"
3633 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3634 echo "$ac_t""yes" 1>&6
3636 echo "$ac_t""no" 1>&6
3639 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3640 echo "configure:3641: checking how to recognise dependent libraries" >&5
3641 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 lt_cv_file_magic_cmd='$MAGIC_CMD'
3645 lt_cv_file_magic_test_file=
3646 lt_cv_deplibs_check_method='unknown'
3647 # Need to set the preceding variable on all platforms that support
3648 # interlibrary dependencies.
3649 # 'none' -- dependencies not supported.
3650 # `unknown' -- same as none, but documents that we really don't know.
3651 # 'pass_all' -- all dependencies passed with no checks.
3652 # 'test_compile' -- check by making test program.
3653 # 'file_magic [[regex]]' -- check by looking for files in library path
3654 # which responds to the $file_magic_cmd with a given egrep regex.
3655 # If you have `file' or equivalent on your system and you're not sure
3656 # whether `pass_all' will *always* work, you probably want this one.
3660 lt_cv_deplibs_check_method=pass_all
3664 lt_cv_deplibs_check_method=pass_all
3668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3669 lt_cv_file_magic_cmd='/usr/bin/file -L'
3670 lt_cv_file_magic_test_file=/shlib/libc.so
3673 cygwin* | mingw* | pw32*)
3674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3675 lt_cv_file_magic_cmd='$OBJDUMP -f'
3678 darwin* | rhapsody*)
3679 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3680 lt_cv_file_magic_cmd='/usr/bin/file -L'
3682 rhapsody* | darwin1.[012])
3683 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3686 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3692 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3695 # Not sure whether the presence of OpenBSD here was a mistake.
3696 # Let's accept both of them until this is cleared up.
3697 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3698 lt_cv_file_magic_cmd=/usr/bin/file
3699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3703 lt_cv_deplibs_check_method=pass_all
3708 lt_cv_deplibs_check_method=pass_all
3712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3713 lt_cv_file_magic_cmd=/usr/bin/file
3714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3717 irix5* | irix6* | nonstopux*)
3719 irix5* | nonstopux*)
3720 # this will be overridden with pass_all, but let us keep it just in case
3721 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3725 *-32|*"-32 ") libmagic=32-bit;;
3726 *-n32|*"-n32 ") libmagic=N32;;
3727 *-64|*"-64 ") libmagic=64-bit;;
3728 *) libmagic=never-match;;
3730 # this will be overridden with pass_all, but let us keep it just in case
3731 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3734 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3735 lt_cv_deplibs_check_method=pass_all
3738 # This must be Linux ELF.
3741 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3742 lt_cv_deplibs_check_method=pass_all ;;
3744 # glibc up to 2.1.1 does not perform some relocations on ARM
3745 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3747 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3751 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3752 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3754 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3760 lt_cv_file_magic_cmd=/usr/bin/file
3761 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3765 lt_cv_file_magic_cmd=/usr/bin/file
3766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3770 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3775 lt_cv_deplibs_check_method=pass_all
3778 osf3* | osf4* | osf5*)
3779 # this will be overridden with pass_all, but let us keep it just in case
3780 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3781 lt_cv_file_magic_test_file=/shlib/libc.so
3782 lt_cv_deplibs_check_method=pass_all
3786 lt_cv_deplibs_check_method=pass_all
3790 lt_cv_deplibs_check_method=pass_all
3791 lt_cv_file_magic_test_file=/lib/libc.so
3794 sysv5uw[78]* | sysv4*uw2*)
3795 lt_cv_deplibs_check_method=pass_all
3798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3799 case $host_vendor in
3801 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]'
3802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3805 lt_cv_deplibs_check_method=pass_all
3808 lt_cv_file_magic_cmd='/bin/file'
3809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3812 lt_cv_file_magic_cmd='/bin/file'
3813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3814 lt_cv_file_magic_test_file=/lib/libc.so
3817 lt_cv_deplibs_check_method=pass_all
3825 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3826 file_magic_cmd=$lt_cv_file_magic_cmd
3827 deplibs_check_method=$lt_cv_deplibs_check_method
3829 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3830 echo "configure:3831: checking for object suffix" >&5
3831 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3835 echo 'int i = 1;' > conftest.$ac_ext
3836 if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837 for ac_file in conftest.*; do
3840 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3844 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3849 echo "$ac_t""$ac_cv_objext" 1>&6
3850 OBJEXT=$ac_cv_objext
3851 ac_objext=$ac_cv_objext
3856 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3857 echo "configure:3858: checking for executable suffix" >&5
3858 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3865 echo 'int main () { return 0; }' > conftest.$ac_ext
3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3868 for file in conftest.*; do
3870 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3871 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3875 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3878 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3883 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3884 echo "$ac_t""${ac_cv_exeext}" 1>&6
3887 if test $host != $build; then
3888 ac_tool_prefix=${host_alias}-
3896 # Check for command to grab the raw symbol name followed by C symbol from nm.
3897 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3898 echo "configure:3899: checking command to parse $NM output" >&5
3899 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3903 # These are sane defaults that work on at least a few old systems.
3904 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3906 # Character class describing NM global symbol codes.
3907 symcode='[BCDEGRST]'
3909 # Regexp to match symbols that can be accessed directly from C.
3910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3912 # Transform the above into a raw symbol and a C symbol.
3913 symxfrm='\1 \2\3 \3'
3915 # Transform an extracted symbol line into a proper C declaration
3916 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3918 # Transform an extracted symbol line into symbol name and symbol address
3919 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'"
3921 # Define system-specific variables.
3926 cygwin* | mingw* | pw32*)
3927 symcode='[ABCDGISTW]'
3929 hpux*) # Its linker distinguishes data from code symbols
3930 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3931 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'"
3934 symcode='[BCDEGRST]'
3937 symcode='[BCDEGQRST]'
3947 # Handle CRLF in mingw tool chain
3951 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3955 # If we're using GNU nm, then use its standard symbol codes.
3956 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3957 symcode='[ABCDGISTW]'
3960 # Try without a prefix undercore, then with it.
3961 for ac_symprfx in "" "_"; do
3963 # Write the raw and C identifiers.
3964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3966 # Check to see that the pipe works correctly.
3969 cat > conftest.$ac_ext <<EOF
3974 void nm_test_func(){}
3978 int main(){nm_test_var='a';nm_test_func();return(0);}
3981 if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 # Now try to grab the symbols.
3984 if { (eval echo configure:3985: \"$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
3985 # Try sorting and uniquifying the output.
3986 if sort "$nlist" | uniq > "$nlist"T; then
3987 mv -f "$nlist"T "$nlist"
3992 # Make sure that we snagged all the symbols we need.
3993 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3994 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3995 cat <<EOF > conftest.$ac_ext
4001 # Now generate the symbol file.
4002 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4004 cat <<EOF >> conftest.$ac_ext
4005 #if defined (__STDC__) && __STDC__
4006 # define lt_ptr void *
4008 # define lt_ptr char *
4012 /* The mapping between symbol names and symbols. */
4017 lt_preloaded_symbols[] =
4020 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4021 cat <<\EOF >> conftest.$ac_ext
4029 # Now try linking the two files.
4030 mv conftest.$ac_objext conftstm.$ac_objext
4032 save_CFLAGS="$CFLAGS"
4033 LIBS="conftstm.$ac_objext"
4034 CFLAGS="$CFLAGS$no_builtin_flag"
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4039 CFLAGS="$save_CFLAGS"
4041 echo "cannot find nm_test_func in $nlist" >&5
4044 echo "cannot find nm_test_var in $nlist" >&5
4047 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4050 echo "$progname: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 rm -f conftest* conftst*
4055 # Do not use the global_symbol_pipe unless it works.
4056 if test "$pipe_works" = yes; then
4059 lt_cv_sys_global_symbol_pipe=
4065 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4066 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4067 global_symbol_to_cdecl=
4068 global_symbol_to_c_name_address=
4070 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4071 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4073 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4075 echo "$ac_t""failed" 1>&6
4077 echo "$ac_t""ok" 1>&6
4080 for ac_hdr in dlfcn.h
4082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_hdr" >&5
4085 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4094 { (eval echo configure:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4096 if test -z "$ac_err"; then
4098 eval "ac_cv_header_$ac_safe=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 eval "ac_cv_header_$ac_safe=no"
4108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4111 cat >> confdefs.h <<EOF
4112 #define $ac_tr_hdr 1
4116 echo "$ac_t""no" 1>&6
4125 # Only perform the check for file, if the check method requires it
4126 case $deplibs_check_method in
4128 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4129 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4130 echo "configure:4131: checking for ${ac_tool_prefix}file" >&5
4131 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4142 ac_save_MAGIC_CMD="$MAGIC_CMD"
4143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4144 ac_dummy="/usr/bin:$PATH"
4145 for ac_dir in $ac_dummy; do
4146 test -z "$ac_dir" && ac_dir=.
4147 if test -f $ac_dir/${ac_tool_prefix}file; then
4148 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4149 if test -n "$file_magic_test_file"; then
4150 case $deplibs_check_method in
4152 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4155 egrep "$file_magic_regex" > /dev/null; then
4160 *** Warning: the command libtool uses to detect shared libraries,
4161 *** $file_magic_cmd, produces output that libtool cannot recognize.
4162 *** The result is that libtool may fail to recognize shared libraries
4163 *** as such. This will affect the creation of libtool libraries that
4164 *** depend on shared libraries, but programs linked with such libtool
4165 *** libraries will work regardless of this problem. Nevertheless, you
4166 *** may want to report the problem to your system manager and/or to
4167 *** bug-libtool@gnu.org
4177 MAGIC_CMD="$ac_save_MAGIC_CMD"
4182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4183 if test -n "$MAGIC_CMD"; then
4184 echo "$ac_t""$MAGIC_CMD" 1>&6
4186 echo "$ac_t""no" 1>&6
4189 if test -z "$lt_cv_path_MAGIC_CMD"; then
4190 if test -n "$ac_tool_prefix"; then
4191 echo $ac_n "checking for file""... $ac_c" 1>&6
4192 echo "configure:4193: checking for file" >&5
4193 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4204 ac_save_MAGIC_CMD="$MAGIC_CMD"
4205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4206 ac_dummy="/usr/bin:$PATH"
4207 for ac_dir in $ac_dummy; do
4208 test -z "$ac_dir" && ac_dir=.
4209 if test -f $ac_dir/file; then
4210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4211 if test -n "$file_magic_test_file"; then
4212 case $deplibs_check_method in
4214 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4217 egrep "$file_magic_regex" > /dev/null; then
4222 *** Warning: the command libtool uses to detect shared libraries,
4223 *** $file_magic_cmd, produces output that libtool cannot recognize.
4224 *** The result is that libtool may fail to recognize shared libraries
4225 *** as such. This will affect the creation of libtool libraries that
4226 *** depend on shared libraries, but programs linked with such libtool
4227 *** libraries will work regardless of this problem. Nevertheless, you
4228 *** may want to report the problem to your system manager and/or to
4229 *** bug-libtool@gnu.org
4239 MAGIC_CMD="$ac_save_MAGIC_CMD"
4244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4245 if test -n "$MAGIC_CMD"; then
4246 echo "$ac_t""$MAGIC_CMD" 1>&6
4248 echo "$ac_t""no" 1>&6
4260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4263 echo "configure:4264: checking for $ac_word" >&5
4264 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 if test -n "$RANLIB"; then
4268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4272 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 if test -f $ac_dir/$ac_word; then
4275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4282 RANLIB="$ac_cv_prog_RANLIB"
4283 if test -n "$RANLIB"; then
4284 echo "$ac_t""$RANLIB" 1>&6
4286 echo "$ac_t""no" 1>&6
4290 if test -z "$ac_cv_prog_RANLIB"; then
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "ranlib", so it can be a program name with args.
4293 set dummy ranlib; ac_word=$2
4294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_word" >&5
4296 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 if test -n "$RANLIB"; then
4300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 if test -f $ac_dir/$ac_word; then
4307 ac_cv_prog_RANLIB="ranlib"
4312 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4315 RANLIB="$ac_cv_prog_RANLIB"
4316 if test -n "$RANLIB"; then
4317 echo "$ac_t""$RANLIB" 1>&6
4319 echo "$ac_t""no" 1>&6
4327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}strip; ac_word=$2
4329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_word" >&5
4331 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 if test -n "$STRIP"; then
4335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4339 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f $ac_dir/$ac_word; then
4342 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4349 STRIP="$ac_cv_prog_STRIP"
4350 if test -n "$STRIP"; then
4351 echo "$ac_t""$STRIP" 1>&6
4353 echo "$ac_t""no" 1>&6
4357 if test -z "$ac_cv_prog_STRIP"; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "strip", so it can be a program name with args.
4360 set dummy strip; ac_word=$2
4361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_word" >&5
4363 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 if test -n "$STRIP"; then
4367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4371 for ac_dir in $ac_dummy; do
4372 test -z "$ac_dir" && ac_dir=.
4373 if test -f $ac_dir/$ac_word; then
4374 ac_cv_prog_STRIP="strip"
4379 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4382 STRIP="$ac_cv_prog_STRIP"
4383 if test -n "$STRIP"; then
4384 echo "$ac_t""$STRIP" 1>&6
4386 echo "$ac_t""no" 1>&6
4396 enable_win32_dll=yes
4398 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4399 if test "${enable_libtool_lock+set}" = set; then
4400 enableval="$enable_libtool_lock"
4404 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4406 # Some flags need to be propagated to the compiler or linker for good
4410 # Find out which ABI we are using.
4411 echo '#line 4412 "configure"' > conftest.$ac_ext
4412 if { (eval echo configure:4413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4413 case `/usr/bin/file conftest.$ac_objext` in
4429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4430 SAVE_CFLAGS="$CFLAGS"
4431 CFLAGS="$CFLAGS -belf"
4432 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4433 echo "configure:4434: checking whether the C compiler needs -belf" >&5
4434 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4443 cross_compiling=$ac_cv_prog_cc_cross
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4453 if { (eval echo configure:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4455 lt_cv_cc_needs_belf=yes
4457 echo "configure: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4460 lt_cv_cc_needs_belf=no
4464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4468 cross_compiling=$ac_cv_prog_cc_cross
4472 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4473 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4475 CFLAGS="$SAVE_CFLAGS"
4479 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4480 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4483 echo "configure:4484: checking for $ac_word" >&5
4484 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 if test -n "$DLLTOOL"; then
4488 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4492 for ac_dir in $ac_dummy; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f $ac_dir/$ac_word; then
4495 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4502 DLLTOOL="$ac_cv_prog_DLLTOOL"
4503 if test -n "$DLLTOOL"; then
4504 echo "$ac_t""$DLLTOOL" 1>&6
4506 echo "$ac_t""no" 1>&6
4510 if test -z "$ac_cv_prog_DLLTOOL"; then
4511 if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "dlltool", so it can be a program name with args.
4513 set dummy dlltool; ac_word=$2
4514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_word" >&5
4516 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 if test -n "$DLLTOOL"; then
4520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4524 for ac_dir in $ac_dummy; do
4525 test -z "$ac_dir" && ac_dir=.
4526 if test -f $ac_dir/$ac_word; then
4527 ac_cv_prog_DLLTOOL="dlltool"
4532 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4535 DLLTOOL="$ac_cv_prog_DLLTOOL"
4536 if test -n "$DLLTOOL"; then
4537 echo "$ac_t""$DLLTOOL" 1>&6
4539 echo "$ac_t""no" 1>&6
4547 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4548 set dummy ${ac_tool_prefix}as; ac_word=$2
4549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_word" >&5
4551 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 if test -n "$AS"; then
4555 ac_cv_prog_AS="$AS" # Let the user override the test.
4557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4559 for ac_dir in $ac_dummy; do
4560 test -z "$ac_dir" && ac_dir=.
4561 if test -f $ac_dir/$ac_word; then
4562 ac_cv_prog_AS="${ac_tool_prefix}as"
4570 if test -n "$AS"; then
4571 echo "$ac_t""$AS" 1>&6
4573 echo "$ac_t""no" 1>&6
4577 if test -z "$ac_cv_prog_AS"; then
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "as", so it can be a program name with args.
4580 set dummy as; ac_word=$2
4581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4582 echo "configure:4583: checking for $ac_word" >&5
4583 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 if test -n "$AS"; then
4587 ac_cv_prog_AS="$AS" # Let the user override the test.
4589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4591 for ac_dir in $ac_dummy; do
4592 test -z "$ac_dir" && ac_dir=.
4593 if test -f $ac_dir/$ac_word; then
4599 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4603 if test -n "$AS"; then
4604 echo "$ac_t""$AS" 1>&6
4606 echo "$ac_t""no" 1>&6
4614 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4615 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_word" >&5
4618 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 if test -n "$OBJDUMP"; then
4622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4626 for ac_dir in $ac_dummy; do
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f $ac_dir/$ac_word; then
4629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4636 OBJDUMP="$ac_cv_prog_OBJDUMP"
4637 if test -n "$OBJDUMP"; then
4638 echo "$ac_t""$OBJDUMP" 1>&6
4640 echo "$ac_t""no" 1>&6
4644 if test -z "$ac_cv_prog_OBJDUMP"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "objdump", so it can be a program name with args.
4647 set dummy objdump; ac_word=$2
4648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_word" >&5
4650 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 if test -n "$OBJDUMP"; then
4654 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4658 for ac_dir in $ac_dummy; do
4659 test -z "$ac_dir" && ac_dir=.
4660 if test -f $ac_dir/$ac_word; then
4661 ac_cv_prog_OBJDUMP="objdump"
4666 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4669 OBJDUMP="$ac_cv_prog_OBJDUMP"
4670 if test -n "$OBJDUMP"; then
4671 echo "$ac_t""$OBJDUMP" 1>&6
4673 echo "$ac_t""no" 1>&6
4682 # recent cygwin and mingw systems supply a stub DllMain which the user
4683 # can override, but on older systems we have to supply one
4684 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4685 echo "configure:4686: checking if libtool should supply DllMain function" >&5
4686 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4694 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4700 lt_cv_need_dllmain=no
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 lt_cv_need_dllmain=yes
4710 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4713 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4714 # old mingw systems require "-dll" to link a DLL, while more recent ones
4716 SAVE_CFLAGS="$CFLAGS"
4717 CFLAGS="$CFLAGS -mdll"
4718 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4719 echo "configure:4720: checking how to link DLLs" >&5
4720 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 lt_cv_cc_dll_switch=-mdll
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 lt_cv_cc_dll_switch=-dll
4743 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4744 CFLAGS="$SAVE_CFLAGS" ;;
4745 *-*-cygwin* | *-*-pw32*)
4746 # cygwin systems need to pass --dll to the linker, and not link
4747 # crt.o which will require a WinMain@16 definition.
4748 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4754 # Sed substitution that helps us do robust quoting. It backslashifies
4755 # metacharacters that are still active within double-quoted strings.
4756 Xsed='sed -e s/^X//'
4757 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4759 # Same as above, but do not quote variable references.
4760 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4762 # Sed substitution to delay expansion of an escaped shell variable in a
4763 # double_quote_subst'ed string.
4764 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4770 default_ofile=libtool
4771 can_build_shared=yes
4773 # All known linkers require a `.a' archive for static linking (except M$VC,
4774 # which needs '.lib').
4776 ltmain="$ac_aux_dir/ltmain.sh"
4777 ofile="$default_ofile"
4778 with_gnu_ld="$lt_cv_prog_gnu_ld"
4779 need_locks="$enable_libtool_lock"
4782 old_CFLAGS="$CFLAGS"
4784 # Set sane defaults for various variables
4785 test -z "$AR" && AR=ar
4786 test -z "$AR_FLAGS" && AR_FLAGS=cru
4787 test -z "$AS" && AS=as
4788 test -z "$CC" && CC=cc
4789 test -z "$DLLTOOL" && DLLTOOL=dlltool
4790 test -z "$LD" && LD=ld
4791 test -z "$LN_S" && LN_S="ln -s"
4792 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4793 test -z "$NM" && NM=nm
4794 test -z "$OBJDUMP" && OBJDUMP=objdump
4795 test -z "$RANLIB" && RANLIB=:
4796 test -z "$STRIP" && STRIP=:
4797 test -z "$ac_objext" && ac_objext=o
4799 if test x"$host" != x"$build"; then
4800 ac_tool_prefix=${host_alias}-
4805 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4808 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4813 # AIX sometimes has problems with the GCC collect2 program. For some
4814 # reason, if we set the COLLECT_NAMES environment variable, the problems
4815 # vanish in a puff of smoke.
4816 if test "X${COLLECT_NAMES+set}" != Xset; then
4818 export COLLECT_NAMES
4823 # Determine commands to create old-style static archives.
4824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4825 old_postinstall_cmds='chmod 644 $oldlib'
4826 old_postuninstall_cmds=
4828 if test -n "$RANLIB"; then
4831 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4834 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4840 # Allow CC to be a program name with arguments.
4844 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4845 echo "configure:4846: checking for objdir" >&5
4846 rm -f .libs 2>/dev/null
4847 mkdir .libs 2>/dev/null
4848 if test -d .libs; then
4851 # MS-DOS does not allow filenames that begin with a dot.
4854 rmdir .libs 2>/dev/null
4855 echo "$ac_t""$objdir" 1>&6
4858 # Check whether --with-pic or --without-pic was given.
4859 if test "${with_pic+set}" = set; then
4866 test -z "$pic_mode" && pic_mode=default
4868 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4869 # in isolation, and that seeing it set (from the cache) indicates that
4870 # the associated values are set (in the cache) correctly too.
4871 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4872 echo "configure:4873: checking for $compiler option to produce PIC" >&5
4873 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4877 lt_cv_prog_cc_shlib=
4879 lt_cv_prog_cc_static=
4880 lt_cv_prog_cc_no_builtin=
4881 lt_cv_prog_cc_can_build_shared=$can_build_shared
4883 if test "$GCC" = yes; then
4884 lt_cv_prog_cc_wl='-Wl,'
4885 lt_cv_prog_cc_static='-static'
4889 # Below there is a dirty hack to force normal static linking with -ldl
4890 # The problem is because libdl dynamically linked with both libc and
4891 # libC (AIX C++ library), which obviously doesn't included in libraries
4892 # list by gcc. This cause undefined symbols with -static flags.
4893 # This hack allows C programs to be linked with "-static -ldl", but
4894 # not sure about C++ programs.
4895 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4898 # FIXME: we need at least 68020 code to build shared libraries, but
4899 # adding the `-m68020' flag to GCC prevents building anything better,
4901 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4903 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4904 # PIC is the default for these OSes.
4906 darwin* | rhapsody*)
4907 # PIC is the default on this platform
4908 # Common symbols not allowed in MH_DYLIB files
4909 lt_cv_prog_cc_pic='-fno-common'
4911 cygwin* | mingw* | pw32* | os2*)
4912 # This hack is so that the source file can tell whether it is being
4913 # built for inclusion in a dll (and should export symbols for example).
4914 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4917 if test -d /usr/nec; then
4918 lt_cv_prog_cc_pic=-Kconform_pic
4922 lt_cv_prog_cc_pic='-fPIC'
4926 # PORTME Check for PIC flags for the system compiler.
4928 aix3* | aix4* | aix5*)
4929 lt_cv_prog_cc_wl='-Wl,'
4930 # All AIX code is PIC.
4931 if test "$host_cpu" = ia64; then
4932 # AIX 5 now supports IA64 processor
4933 lt_cv_prog_cc_static='-Bstatic'
4935 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4939 hpux9* | hpux10* | hpux11*)
4940 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4941 lt_cv_prog_cc_wl='-Wl,'
4942 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4943 lt_cv_prog_cc_pic='+Z'
4946 irix5* | irix6* | nonstopux*)
4947 lt_cv_prog_cc_wl='-Wl,'
4948 lt_cv_prog_cc_static='-non_shared'
4949 # PIC (with -KPIC) is the default.
4952 cygwin* | mingw* | pw32* | os2*)
4953 # This hack is so that the source file can tell whether it is being
4954 # built for inclusion in a dll (and should export symbols for example).
4955 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4959 lt_cv_prog_cc_pic='-KPIC'
4960 lt_cv_prog_cc_static='-Bstatic'
4964 # XPLINK code is PIC by default
4967 osf3* | osf4* | osf5*)
4968 # All OSF/1 code is PIC.
4969 lt_cv_prog_cc_wl='-Wl,'
4970 lt_cv_prog_cc_static='-non_shared'
4974 lt_cv_prog_cc_pic='-Kpic'
4975 lt_cv_prog_cc_static='-dn'
4976 lt_cv_prog_cc_shlib='-belf'
4980 lt_cv_prog_cc_pic='-KPIC'
4981 lt_cv_prog_cc_static='-Bstatic'
4982 lt_cv_prog_cc_wl='-Wl,'
4986 lt_cv_prog_cc_pic='-PIC'
4987 lt_cv_prog_cc_static='-Bstatic'
4988 lt_cv_prog_cc_wl='-Qoption ld '
4991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4992 lt_cv_prog_cc_pic='-KPIC'
4993 lt_cv_prog_cc_static='-Bstatic'
4994 lt_cv_prog_cc_wl='-Wl,'
4998 lt_cv_prog_cc_pic='-pic'
4999 lt_cv_prog_cc_static='-Bstatic'
5003 if test -d /usr/nec ;then
5004 lt_cv_prog_cc_pic='-Kconform_pic'
5005 lt_cv_prog_cc_static='-Bstatic'
5010 lt_cv_prog_cc_can_build_shared=no
5017 if test -z "$lt_cv_prog_cc_pic"; then
5018 echo "$ac_t""none" 1>&6
5020 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5022 # Check to make sure the pic_flag actually works.
5023 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5024 echo "configure:5025: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5025 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5028 save_CFLAGS="$CFLAGS"
5029 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5038 if { (eval echo configure:5039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5041 hpux9* | hpux10* | hpux11*)
5042 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5043 # they create non-PIC objects. So, if there were any warnings, we
5044 # assume that PIC is not supported.
5045 if test -s conftest.err; then
5046 lt_cv_prog_cc_pic_works=no
5048 lt_cv_prog_cc_pic_works=yes
5052 lt_cv_prog_cc_pic_works=yes
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 lt_cv_prog_cc_pic_works=no
5064 CFLAGS="$save_CFLAGS"
5069 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5071 lt_cv_prog_cc_can_build_shared=no
5073 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5076 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5079 # Check for any special shared library compilation flags.
5080 if test -n "$lt_cv_prog_cc_shlib"; then
5081 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5082 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5084 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5085 lt_cv_prog_cc_can_build_shared=no
5089 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5090 echo "configure:5091: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5091 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 lt_cv_prog_cc_static_works=no
5095 save_LDFLAGS="$LDFLAGS"
5096 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 lt_cv_prog_cc_static_works=yes
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5113 LDFLAGS="$save_LDFLAGS"
5118 # Belt *and* braces to stop my trousers falling down:
5119 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5120 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5122 pic_flag="$lt_cv_prog_cc_pic"
5123 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5124 wl="$lt_cv_prog_cc_wl"
5125 link_static_flag="$lt_cv_prog_cc_static"
5126 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5127 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5130 # Check to see if options -o and -c are simultaneously supported by compiler
5131 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5132 echo "configure:5133: checking if $compiler supports -c -o file.$ac_objext" >&5
5133 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5137 $rm -r conftest 2>/dev/null
5140 echo "int some_variable = 0;" > conftest.$ac_ext
5142 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5143 # that will create temporary files in the current directory regardless of
5144 # the output directory. Thus, making CWD read-only will cause this test
5145 # to fail, enabling locking or at least warning the user not to do parallel
5148 save_CFLAGS="$CFLAGS"
5149 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5151 if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5152 # The compiler can only warn and ignore the option if not recognized
5153 # So say no if there are warnings
5154 if test -s out/conftest.err; then
5155 lt_cv_compiler_c_o=no
5157 lt_cv_compiler_c_o=yes
5160 # Append any errors to the config.log.
5161 cat out/conftest.err 1>&5
5162 lt_cv_compiler_c_o=no
5164 CFLAGS="$save_CFLAGS"
5170 $rm -r conftest 2>/dev/null
5174 compiler_c_o=$lt_cv_compiler_c_o
5175 echo "$ac_t""$compiler_c_o" 1>&6
5177 if test x"$compiler_c_o" = x"yes"; then
5178 # Check to see if we can write to a .lo
5179 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5180 echo "configure:5181: checking if $compiler supports -c -o file.lo" >&5
5181 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5185 lt_cv_compiler_o_lo=no
5186 save_CFLAGS="$CFLAGS"
5187 CFLAGS="$CFLAGS -c -o conftest.lo"
5188 save_objext="$ac_objext"
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5195 int some_variable = 0;
5198 if { (eval echo configure:5199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5200 # The compiler can only warn and ignore the option if not recognized
5201 # So say no if there are warnings
5202 if test -s conftest.err; then
5203 lt_cv_compiler_o_lo=no
5205 lt_cv_compiler_o_lo=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5213 ac_objext="$save_objext"
5214 CFLAGS="$save_CFLAGS"
5218 compiler_o_lo=$lt_cv_compiler_o_lo
5219 echo "$ac_t""$compiler_o_lo" 1>&6
5224 # Check to see if we can do hard links to lock some files if needed
5225 hard_links="nottested"
5226 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5227 # do not overwrite the value of need_locks provided by the user
5228 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5229 echo "configure:5230: checking if we can lock with hard links" >&5
5232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5234 ln conftest.a conftest.b 2>&5 || hard_links=no
5235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5236 echo "$ac_t""$hard_links" 1>&6
5237 if test "$hard_links" = no; then
5238 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5245 if test "$GCC" = yes; then
5246 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5247 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5248 echo "configure:5249: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5249 echo "int some_variable = 0;" > conftest.$ac_ext
5250 save_CFLAGS="$CFLAGS"
5251 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5252 compiler_rtti_exceptions=no
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5258 int some_variable = 0;
5261 if { (eval echo configure:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5263 # The compiler can only warn and ignore the option if not recognized
5264 # So say no if there are warnings
5265 if test -s conftest.err; then
5266 compiler_rtti_exceptions=no
5268 compiler_rtti_exceptions=yes
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5276 CFLAGS="$save_CFLAGS"
5277 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5279 if test "$compiler_rtti_exceptions" = "yes"; then
5280 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5282 no_builtin_flag=' -fno-builtin'
5286 # See if the linker supports building shared libraries.
5287 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5288 echo "configure:5289: checking whether the linker ($LD) supports shared libraries" >&5
5290 allow_undefined_flag=
5292 need_lib_prefix=unknown
5293 need_version=unknown
5294 # when you set need_version to no, make sure it does not cause -set_version
5295 # flags to be left without arguments
5297 archive_expsym_cmds=
5298 old_archive_from_new_cmds=
5299 old_archive_from_expsyms_cmds=
5300 export_dynamic_flag_spec=
5301 whole_archive_flag_spec=
5302 thread_safe_flag_spec=
5303 hardcode_into_libs=no
5304 hardcode_libdir_flag_spec=
5305 hardcode_libdir_separator=
5308 hardcode_shlibpath_var=unsupported
5310 link_all_deplibs=unknown
5311 always_export_symbols=no
5312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5313 # include_expsyms should be a list of space-separated symbols to be *always*
5314 # included in the symbol list
5316 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5317 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5318 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5319 # as well as any symbol that contains `d'.
5320 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5321 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5322 # platforms (ab)use it in PIC code, but their linkers get confused if
5323 # the symbol is explicitly referenced. Since portable code cannot
5324 # rely on this symbol name, it's probably fine to never include it in
5325 # preloaded symbol tables.
5326 extract_expsyms_cmds=
5329 cygwin* | mingw* | pw32*)
5330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5331 # When not using gcc, we currently assume that we are using
5332 # Microsoft Visual C++.
5333 if test "$GCC" != yes; then
5343 if test "$with_gnu_ld" = yes; then
5344 # If archive_cmds runs LD, not CC, wlarc should be empty
5347 # See if GNU ld supports shared libraries.
5349 aix3* | aix4* | aix5*)
5350 # On AIX, the GNU linker is very broken
5351 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5356 *** to be unable to reliably create shared libraries on AIX.
5357 *** Therefore, libtool is disabling shared libraries support. If you
5358 *** really care for shared libraries, you may want to modify your PATH
5359 *** so that a non-GNU linker is found, and then restart.
5365 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)'
5366 hardcode_libdir_flag_spec='-L$libdir'
5367 hardcode_minus_L=yes
5369 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5370 # that the semantics of dynamic libraries on AmigaOS, at least up
5371 # to version 4, is to share data among multiple programs linked
5372 # with the same dynamic library. Since this doesn't match the
5373 # behavior of shared libraries on other platforms, we can use
5379 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5380 allow_undefined_flag=unsupported
5381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5382 # support --undefined. This deserves some investigation. FIXME
5383 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5389 cygwin* | mingw* | pw32*)
5390 # hardcode_libdir_flag_spec is actually meaningless, as there is
5391 # no search path for DLLs.
5392 hardcode_libdir_flag_spec='-L$libdir'
5393 allow_undefined_flag=unsupported
5394 always_export_symbols=yes
5396 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5397 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5398 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5399 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5400 else $CC -o impgen impgen.c ; fi)~
5401 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5403 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5405 # cygwin and mingw dlls have different entry points and sets of symbols
5407 # FIXME: what about values for MSVC?
5408 dll_entry=__cygwin_dll_entry@12
5409 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5413 dll_entry=_DllMainCRTStartup@12
5414 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5418 # mingw and cygwin differ, and it's simplest to just exclude the union
5419 # of the two symbol sets.
5420 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5422 # recent cygwin and mingw systems supply a stub DllMain which the user
5423 # can override, but on older systems we have to supply one (in ltdll.c)
5424 if test "x$lt_cv_need_dllmain" = "xyes"; then
5425 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5426 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~
5427 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5433 # Extract the symbol export list from an `--export-all' def file,
5434 # then regenerate the def file from the symbol export list, so that
5435 # the compiled dll only exports the symbol export list.
5436 # Be careful not to strip the DATA tag left be newer dlltools.
5437 export_symbols_cmds="$ltdll_cmds"'
5438 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5439 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5441 # If the export-symbols file already is a .def file (1st line
5442 # is EXPORTS), use it as is.
5443 # If DATA tags from a recent dlltool are present, honour them!
5444 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5445 cp $export_symbols $output_objdir/$soname-def;
5447 echo EXPORTS > $output_objdir/$soname-def;
5449 cat $export_symbols | while read symbol; do
5452 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5453 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5454 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5456 _lt_hint=`expr 1 + \$_lt_hint`;
5460 $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~
5461 $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~
5462 $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~
5463 $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~
5464 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5469 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5472 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5473 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5478 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5483 *** create shared libraries on Solaris systems. Therefore, libtool
5484 *** is disabling shared libraries support. We urge you to upgrade GNU
5485 *** binutils to release 2.9.1 or newer. Another option is to modify
5486 *** your PATH or compiler configuration so that the native linker is
5487 *** used, and then restart.
5490 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5499 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5502 hardcode_shlibpath_var=no
5506 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5515 if test "$ld_shlibs" = yes; then
5516 runpath_var=LD_RUN_PATH
5517 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5518 export_dynamic_flag_spec='${wl}--export-dynamic'
5520 cygwin* | mingw* | pw32*)
5521 # dlltool doesn't understand --whole-archive et. al.
5522 whole_archive_flag_spec=
5525 # ancient GNU ld didn't support --whole-archive et. al.
5526 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5527 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5529 whole_archive_flag_spec=
5535 # PORTME fill in a description of your system's linker (not GNU ld)
5538 allow_undefined_flag=unsupported
5539 always_export_symbols=yes
5540 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'
5541 # Note: this linker hardcodes the directories in LIBPATH if there
5542 # are no directories specified by -L.
5543 hardcode_minus_L=yes
5544 if test "$GCC" = yes && test -z "$link_static_flag"; then
5545 # Neither direct hardcoding nor static linking is supported with a
5547 hardcode_direct=unsupported
5552 if test "$host_cpu" = ia64; then
5553 # On IA64, the linker does run time linking by default, so we don't
5554 # have to do anything special.
5555 aix_use_runtimelinking=no
5556 exp_sym_flag='-Bexport'
5559 aix_use_runtimelinking=no
5561 # Test if we are trying to use run time linking or normal
5562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5563 # need to do runtime linking.
5564 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5565 for ld_flag in $LDFLAGS; do
5568 aix_use_runtimelinking=yes
5575 exp_sym_flag='-bexport'
5576 no_entry_flag='-bnoentry'
5579 # When large executables or shared objects are built, AIX ld can
5580 # have problems creating the table of contents. If linking a library
5581 # or program results in "error TOC overflow" add -mminimal-toc to
5582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5587 hardcode_libdir_separator=':'
5588 if test "$GCC" = yes; then
5589 case $host_os in aix4.[012]|aix4.[012].*)
5590 collect2name=`${CC} -print-prog-name=collect2`
5591 if test -f "$collect2name" && \
5592 strings "$collect2name" | grep resolve_lib_name >/dev/null
5594 # We have reworked collect2
5597 # We have old collect2
5598 hardcode_direct=unsupported
5599 # It fails to find uninstalled libraries when the uninstalled
5600 # path is not listed in the libpath. Setting hardcode_minus_L
5601 # to unsupported forces relinking
5602 hardcode_minus_L=yes
5603 hardcode_libdir_flag_spec='-L$libdir'
5604 hardcode_libdir_separator=
5608 shared_flag='-shared'
5611 if test "$host_cpu" = ia64; then
5612 shared_flag='${wl}-G'
5614 if test "$aix_use_runtimelinking" = yes; then
5615 shared_flag='${wl}-G'
5617 shared_flag='${wl}-bM:SRE'
5622 # It seems that -bexpall can do strange things, so it is better to
5623 # generate a list of symbols to export.
5624 always_export_symbols=yes
5625 if test "$aix_use_runtimelinking" = yes; then
5626 # Warning - without using the other runtime loading flags (-brtl),
5627 # -berok will link without error, but may produce a broken library.
5628 allow_undefined_flag='-berok'
5629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5630 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"
5632 if test "$host_cpu" = ia64; then
5633 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5634 allow_undefined_flag="-z nodefs"
5635 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"
5637 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5638 # Warning - without using the other run time loading flags,
5639 # -berok will link without error, but may produce a broken library.
5640 allow_undefined_flag='${wl}-berok'
5641 # This is a bit strange, but is similar to how AIX traditionally builds
5642 # it's shared libraries.
5643 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'
5649 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)'
5650 hardcode_libdir_flag_spec='-L$libdir'
5651 hardcode_minus_L=yes
5652 # see comment about different semantics on the GNU ld section
5656 cygwin* | mingw* | pw32*)
5657 # When not using gcc, we currently assume that we are using
5658 # Microsoft Visual C++.
5659 # hardcode_libdir_flag_spec is actually meaningless, as there is
5660 # no search path for DLLs.
5661 hardcode_libdir_flag_spec=' '
5662 allow_undefined_flag=unsupported
5663 # Tell ltmain to make .lib files, not .a files.
5665 # FIXME: Setting linknames here is a bad hack.
5666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5667 # The linker will automatically build a .lib file if we build a DLL.
5668 old_archive_from_new_cmds='true'
5669 # FIXME: Should let the user specify the lib program.
5670 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5671 fix_srcfile_path='`cygpath -w "$srcfile"`'
5674 darwin* | rhapsody*)
5676 rhapsody* | darwin1.[012])
5677 allow_undefined_flag='-undefined suppress'
5680 allow_undefined_flag='-flat_namespace -undefined suppress'
5683 # FIXME: Relying on posixy $() will cause problems for
5684 # cross-compilation, but unfortunately the echo tests do not
5685 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5686 # `"' quotes if we put them in here... so don't!
5687 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)'
5688 # We need to add '_' to the symbols in $export_symbols first
5689 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5691 hardcode_shlibpath_var=no
5692 whole_archive_flag_spec='-all_load $convenience'
5699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5700 # support. Future versions do this automatically, but an explicit c++rt0.o
5701 # does not break anything, and helps significantly (at the cost of a little
5704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5705 hardcode_libdir_flag_spec='-R$libdir'
5707 hardcode_shlibpath_var=no
5710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5714 hardcode_minus_L=yes
5715 hardcode_shlibpath_var=no
5718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5720 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5721 hardcode_libdir_flag_spec='-R$libdir'
5723 hardcode_shlibpath_var=no
5726 hpux9* | hpux10* | hpux11*)
5728 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' ;;
5729 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5732 hardcode_libdir_separator=:
5734 hardcode_minus_L=yes # Not in the search PATH, but as the default
5735 # location of the library.
5736 export_dynamic_flag_spec='${wl}-E'
5739 irix5* | irix6* | nonstopux*)
5740 if test "$GCC" = yes; then
5741 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'
5742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5744 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'
5745 hardcode_libdir_flag_spec='-rpath $libdir'
5747 hardcode_libdir_separator=:
5748 link_all_deplibs=yes
5752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5755 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5757 hardcode_libdir_flag_spec='-R$libdir'
5759 hardcode_shlibpath_var=no
5763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5766 hardcode_libdir_separator=:
5767 hardcode_shlibpath_var=no
5772 hardcode_shlibpath_var=no
5773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5776 export_dynamic_flag_spec='${wl}-E'
5779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5781 hardcode_libdir_flag_spec='-R$libdir'
5784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5792 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5793 cp \$linknames \$output_objdir && linknames=''"
5794 export_dynamic_flag_spec="-Wl,DLL"
5798 hardcode_libdir_flag_spec='-L$libdir'
5799 hardcode_minus_L=yes
5800 allow_undefined_flag=unsupported
5801 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'
5802 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5806 if test "$GCC" = yes; then
5807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5808 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'
5810 allow_undefined_flag=' -expect_unresolved \*'
5811 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'
5813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5814 hardcode_libdir_separator=:
5817 osf4* | osf5*) # as osf3* with the addition of -msym flag
5818 if test "$GCC" = yes; then
5819 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5820 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'
5821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5823 allow_undefined_flag=' -expect_unresolved \*'
5824 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'
5825 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5826 $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'
5828 #Both c and cxx compiler support -rpath directly
5829 hardcode_libdir_flag_spec='-rpath $libdir'
5831 hardcode_libdir_separator=:
5835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5836 hardcode_shlibpath_var=no
5837 runpath_var=LD_RUN_PATH
5838 hardcode_runpath_var=yes
5839 export_dynamic_flag_spec='${wl}-Bexport'
5843 # gcc --version < 3.0 without binutils cannot create self contained
5844 # shared libraries reliably, requiring libgcc.a to resolve some of
5845 # the object symbols generated in some cases. Libraries that use
5846 # assert need libgcc.a to resolve __eprintf, for example. Linking
5847 # a copy of libgcc.a into every shared library to guarantee resolving
5848 # such symbols causes other problems: According to Tim Van Holder
5849 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5850 # (to the application) exception stack for one thing.
5851 no_undefined_flag=' -z defs'
5852 if test "$GCC" = yes; then
5853 case `$CC --version 2>/dev/null` in
5857 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5858 *** create self contained shared libraries on Solaris systems, without
5859 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5860 *** -no-undefined support, which will at least allow you to build shared
5861 *** libraries. However, you may find that when you link such libraries
5862 *** into an application without using GCC, you have to manually add
5863 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5864 *** upgrade to a newer version of GCC. Another option is to rebuild your
5865 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5872 # $CC -shared without GNU ld will not create a library from C++
5873 # object files and a static libstdc++, better avoid it by now
5874 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5875 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5877 hardcode_libdir_flag_spec='-R$libdir'
5878 hardcode_shlibpath_var=no
5880 solaris2.[0-5] | solaris2.[0-5].*) ;;
5881 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5884 link_all_deplibs=yes
5888 if test "x$host_vendor" = xsequent; then
5889 # Use $CC to link under sequent, because it throws in some extra .o
5890 # files that make .init and .fini sections work.
5891 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5893 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5895 hardcode_libdir_flag_spec='-L$libdir'
5897 hardcode_minus_L=yes
5898 hardcode_shlibpath_var=no
5902 case $host_vendor in
5904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5905 hardcode_direct=yes # is this really true???
5908 ## LD is ld it makes a PLAMLIB
5909 ## CC just makes a GrossModule.
5910 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5911 reload_cmds='$CC -r -o $output$reload_objs'
5915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5916 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5919 runpath_var='LD_RUN_PATH'
5920 hardcode_shlibpath_var=no
5924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 hardcode_shlibpath_var=no
5926 export_dynamic_flag_spec='-Bexport'
5930 no_undefined_flag=' -z text'
5931 # $CC -shared without GNU ld will not create a library from C++
5932 # object files and a static libstdc++, better avoid it by now
5933 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5934 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5936 hardcode_libdir_flag_spec=
5937 hardcode_shlibpath_var=no
5938 runpath_var='LD_RUN_PATH'
5942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5943 hardcode_libdir_flag_spec='-L$libdir'
5944 hardcode_shlibpath_var=no
5948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5949 hardcode_libdir_flag_spec='-L$libdir'
5950 hardcode_shlibpath_var=no
5954 if test -d /usr/nec; then
5955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5956 hardcode_shlibpath_var=no
5957 runpath_var=LD_RUN_PATH
5958 hardcode_runpath_var=yes
5964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5967 hardcode_shlibpath_var=no
5968 hardcode_runpath_var=yes
5969 runpath_var=LD_RUN_PATH
5972 sysv5uw7* | unixware7*)
5973 no_undefined_flag='${wl}-z ${wl}text'
5974 if test "$GCC" = yes; then
5975 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5977 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5979 runpath_var='LD_RUN_PATH'
5980 hardcode_shlibpath_var=no
5988 echo "$ac_t""$ld_shlibs" 1>&6
5989 test "$ld_shlibs" = no && can_build_shared=no
5991 # Check hardcoding attributes.
5992 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5993 echo "configure:5994: checking how to hardcode library paths into programs" >&5
5995 if test -n "$hardcode_libdir_flag_spec" || \
5996 test -n "$runpath_var"; then
5998 # We can hardcode non-existant directories.
5999 if test "$hardcode_direct" != no &&
6000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6001 # have to relink, otherwise we might link with an installed library
6002 # when we should be linking with a yet-to-be-installed one
6003 ## test "$hardcode_shlibpath_var" != no &&
6004 test "$hardcode_minus_L" != no; then
6005 # Linking always hardcodes the temporary library directory.
6006 hardcode_action=relink
6008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6009 hardcode_action=immediate
6012 # We cannot hardcode anything, or else we can only hardcode existing
6014 hardcode_action=unsupported
6016 echo "$ac_t""$hardcode_action" 1>&6
6020 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6021 echo "configure:6022: checking whether stripping libraries is possible" >&5
6022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6025 echo "$ac_t""yes" 1>&6
6027 echo "$ac_t""no" 1>&6
6030 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6033 # PORTME Fill in your ld.so characteristics
6034 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6035 echo "configure:6036: checking dynamic linker characteristics" >&5
6037 libname_spec='lib$name'
6044 shlibpath_overrides_runpath=unknown
6046 dynamic_linker="$host_os ld.so"
6047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6053 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6054 shlibpath_var=LIBPATH
6056 # AIX has no versioning support, so we append a major version to the name.
6057 soname_spec='${libname}${release}.so$major'
6064 hardcode_into_libs=yes
6065 if test "$host_cpu" = ia64; then
6066 # AIX 5 supports IA64
6067 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6068 shlibpath_var=LD_LIBRARY_PATH
6070 # With GCC up to 2.95.x, collect2 would create an import file
6071 # for dependence libraries. The import file would start with
6072 # the line `#! .'. This would cause the generated library to
6073 # depend on `.', always an invalid library. This was fixed in
6074 # development snapshots of GCC prior to 3.0.
6076 aix4 | aix4.[01] | aix4.[01].*)
6077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6086 # AIX (on Power*) has no versioning support, so currently we can
6087 # not hardcode correct soname into executable. Probably we can
6088 # add versioning support to collect2, so additional links can
6089 # be useful in future.
6090 if test "$aix_use_runtimelinking" = yes; then
6091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6092 # instead of lib<name>.a to let people know that these are not
6093 # typical AIX shared libraries.
6094 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6096 # We preserve .a as extension for shared libraries through AIX4.2
6097 # and later when we are not doing run time linking.
6098 library_names_spec='${libname}${release}.a $libname.a'
6099 soname_spec='${libname}${release}.so$major'
6101 shlibpath_var=LIBPATH
6103 hardcode_into_libs=yes
6107 library_names_spec='$libname.ixlibrary $libname.a'
6108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6109 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'
6113 library_names_spec='${libname}.so'
6114 dynamic_linker="$host_os ld.so"
6115 shlibpath_var=LIBRARY_PATH
6121 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6122 soname_spec='${libname}${release}.so$major'
6123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6124 shlibpath_var=LD_LIBRARY_PATH
6125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6127 export_dynamic_flag_spec=-rdynamic
6128 # the default ld.so.conf also contains /usr/contrib/lib and
6129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6130 # libtool to hard-code these into programs
6133 cygwin* | mingw* | pw32*)
6134 version_type=windows
6137 case $GCC,$host_os in
6139 library_names_spec='$libname.dll.a'
6140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6141 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6142 dldir=$destdir/`dirname \$dlpath`~
6143 test -d \$dldir || mkdir -p \$dldir~
6144 $install_prog .libs/$dlname \$dldir/$dlname'
6145 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6146 dlpath=$dir/\$dldll~
6150 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6151 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6154 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6157 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6160 dynamic_linker='Win32 ld.exe'
6161 # FIXME: first we should search . and the directory the executable is in
6165 darwin* | rhapsody*)
6166 dynamic_linker="$host_os dyld"
6170 # FIXME: Relying on posixy $() will cause problems for
6171 # cross-compilation, but unfortunately the echo tests do not
6172 # yet detect zsh echo's removal of \ escapes.
6173 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)'
6174 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6175 shlibpath_overrides_runpath=yes
6176 shlibpath_var=DYLD_LIBRARY_PATH
6184 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6185 version_type=freebsd-$objformat
6186 case $version_type in
6188 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6193 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6197 shlibpath_var=LD_LIBRARY_PATH
6200 shlibpath_overrides_runpath=yes
6203 shlibpath_overrides_runpath=no
6204 hardcode_into_libs=yes
6213 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6214 soname_spec='${libname}${release}.so$major'
6215 shlibpath_var=LD_LIBRARY_PATH
6216 hardcode_into_libs=yes
6219 hpux9* | hpux10* | hpux11*)
6220 # Give a soname corresponding to the major version so that dld.sl refuses to
6221 # link against other versions.
6222 dynamic_linker="$host_os dld.sl"
6226 shlibpath_var=SHLIB_PATH
6227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6228 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6229 soname_spec='${libname}${release}.sl$major'
6230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6231 postinstall_cmds='chmod 555 $lib'
6234 irix5* | irix6* | nonstopux*)
6236 nonstopux*) version_type=nonstopux ;;
6237 *) version_type=irix ;;
6241 soname_spec='${libname}${release}.so$major'
6242 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6244 irix5* | nonstopux*)
6248 case $LD in # libtool.m4 will add one of these switches to LD
6249 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6250 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6251 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6252 *) libsuff= shlibsuff= libmagic=never-match;;
6256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6257 shlibpath_overrides_runpath=no
6258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6262 # No shared lib support for Linux oldld, aout, or coff.
6263 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6267 # This must be Linux ELF.
6272 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6273 soname_spec='${libname}${release}.so$major'
6274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6275 shlibpath_var=LD_LIBRARY_PATH
6276 shlibpath_overrides_runpath=no
6277 # This implies no fast_install, which is unacceptable.
6278 # Some rework will be needed to allow for fast_install
6279 # before this can be enabled.
6280 hardcode_into_libs=yes
6282 # We used to test for /lib/ld.so.1 and disable shared libraries on
6283 # powerpc, because MkLinux only supported shared libraries with the
6284 # GNU dynamic linker. Since this was broken with cross compilers,
6285 # most powerpc-linux boxes support dynamic linking these days and
6286 # people can always --disable-shared, the test was removed, and we
6287 # assume the GNU/Linux dynamic linker is in use.
6288 dynamic_linker='GNU/Linux ld.so'
6295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6296 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6298 dynamic_linker='NetBSD (a.out) ld.so'
6300 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6301 soname_spec='${libname}${release}.so$major'
6302 dynamic_linker='NetBSD ld.elf_so'
6304 shlibpath_var=LD_LIBRARY_PATH
6305 shlibpath_overrides_runpath=yes
6306 hardcode_into_libs=yes
6311 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6312 shlibpath_var=LD_LIBRARY_PATH
6313 shlibpath_overrides_runpath=yes
6320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6322 openbsd2.[89] | openbsd2.[89].*)
6323 shlibpath_overrides_runpath=no
6326 shlibpath_overrides_runpath=yes
6330 shlibpath_overrides_runpath=yes
6332 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6334 shlibpath_var=LD_LIBRARY_PATH
6340 shlibpath_overrides_runpath=yes
6341 shlibpath_var=LIBPATH
6342 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6343 # the library's exports are in libname.x; this is the file that must
6344 # actually be linked with to use a DLL.
6345 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6349 libname_spec='$name'
6351 library_names_spec='$libname.dll $libname.a'
6352 dynamic_linker='OS/2 ld.exe'
6353 shlibpath_var=LIBPATH
6356 osf3* | osf4* | osf5*)
6359 soname_spec='${libname}${release}.so$major'
6360 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6361 shlibpath_var=LD_LIBRARY_PATH
6362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6364 hardcode_into_libs=yes
6369 soname_spec='${libname}${release}.so$major'
6370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6371 shlibpath_var=LD_LIBRARY_PATH
6378 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6379 soname_spec='${libname}${release}.so$major'
6380 shlibpath_var=LD_LIBRARY_PATH
6381 shlibpath_overrides_runpath=yes
6382 hardcode_into_libs=yes
6383 # ldd complains unless libraries are executable
6384 postinstall_cmds='chmod +x $lib'
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 shlibpath_overrides_runpath=yes
6393 if test "$with_gnu_ld" = yes; then
6399 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6402 soname_spec='${libname}${release}.so$major'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 case $host_vendor in
6406 shlibpath_overrides_runpath=no
6408 export_dynamic_flag_spec='${wl}-Blargedynsym'
6409 runpath_var=LD_RUN_PATH
6417 shlibpath_overrides_runpath=no
6418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6425 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6426 soname_spec='${libname}${release}.so$major'
6427 shlibpath_var=LD_LIBRARY_PATH
6434 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6435 soname_spec='${libname}${release}.so$major'
6436 shlibpath_var=LD_LIBRARY_PATH
6440 if test -d /usr/nec ;then
6442 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6443 soname_spec='$libname.so.$major'
6444 shlibpath_var=LD_LIBRARY_PATH
6452 echo "$ac_t""$dynamic_linker" 1>&6
6453 test "$dynamic_linker" = no && can_build_shared=no
6455 # Report the final consequences.
6456 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6457 echo "configure:6458: checking if libtool supports shared libraries" >&5
6458 echo "$ac_t""$can_build_shared" 1>&6
6460 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6461 echo "configure:6462: checking whether to build shared libraries" >&5
6462 test "$can_build_shared" = "no" && enable_shared=no
6464 # On AIX, shared libraries and static libraries use the same namespace, and
6465 # are all built from PIC.
6468 test "$enable_shared" = yes && enable_static=no
6469 if test -n "$RANLIB"; then
6470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6471 postinstall_cmds='$RANLIB $lib'
6476 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6477 test "$enable_shared" = yes && enable_static=no
6481 echo "$ac_t""$enable_shared" 1>&6
6483 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6484 echo "configure:6485: checking whether to build static libraries" >&5
6485 # Make sure either enable_shared or enable_static is yes.
6486 test "$enable_shared" = yes || enable_static=yes
6487 echo "$ac_t""$enable_static" 1>&6
6489 if test "$hardcode_action" = relink; then
6490 # Fast installation is not supported
6491 enable_fast_install=no
6492 elif test "$shlibpath_overrides_runpath" = yes ||
6493 test "$enable_shared" = no; then
6494 # Fast installation is not necessary
6495 enable_fast_install=needless
6498 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6499 if test "$GCC" = yes; then
6500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6503 if test "x$enable_dlopen" != xyes; then
6504 enable_dlopen=unknown
6505 enable_dlopen_self=unknown
6506 enable_dlopen_self_static=unknown
6513 lt_cv_dlopen="load_add_on"
6515 lt_cv_dlopen_self=yes
6518 cygwin* | mingw* | pw32*)
6519 lt_cv_dlopen="LoadLibrary"
6524 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6525 echo "configure:6526: checking for dllload" >&5
6526 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char dllload(); below. */
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6543 /* The GNU C library defines this for functions which it implements
6544 to always fail with ENOSYS. Some functions are actually named
6545 something starting with __ and the normal name is an alias. */
6546 #if defined (__stub_dllload) || defined (__stub___dllload)
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6556 eval "ac_cv_func_dllload=yes"
6558 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6561 eval "ac_cv_func_dllload=no"
6566 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6567 echo "$ac_t""yes" 1>&6
6568 lt_cv_dlopen="dllload"
6570 echo "$ac_t""no" 1>&6
6571 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6572 echo "configure:6573: checking for shl_load" >&5
6573 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* System header to define __stub macros and hopefully few prototypes,
6580 which can conflict with char shl_load(); below. */
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6603 eval "ac_cv_func_shl_load=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 eval "ac_cv_func_shl_load=no"
6613 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6614 echo "$ac_t""yes" 1>&6
6615 lt_cv_dlopen="shl_load"
6617 echo "$ac_t""no" 1>&6
6618 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6619 echo "configure:6620: checking for shl_load in -ldld" >&5
6620 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6621 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6624 ac_save_LIBS="$LIBS"
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 eval "ac_cv_lib_$ac_lib_var=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 eval "ac_cv_lib_$ac_lib_var=no"
6648 LIBS="$ac_save_LIBS"
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6653 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6655 echo "$ac_t""no" 1>&6
6656 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6657 echo "configure:6658: checking for dlopen" >&5
6658 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char dlopen(); below. */
6667 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6675 /* The GNU C library defines this for functions which it implements
6676 to always fail with ENOSYS. Some functions are actually named
6677 something starting with __ and the normal name is an alias. */
6678 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6688 eval "ac_cv_func_dlopen=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 eval "ac_cv_func_dlopen=no"
6698 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6699 echo "$ac_t""yes" 1>&6
6700 lt_cv_dlopen="dlopen"
6702 echo "$ac_t""no" 1>&6
6703 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6704 echo "configure:6705: checking for dlopen in -ldl" >&5
6705 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6706 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6709 ac_save_LIBS="$LIBS"
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6725 eval "ac_cv_lib_$ac_lib_var=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6730 eval "ac_cv_lib_$ac_lib_var=no"
6733 LIBS="$ac_save_LIBS"
6736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6740 echo "$ac_t""no" 1>&6
6741 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6742 echo "configure:6743: checking for dlopen in -lsvld" >&5
6743 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6744 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 ac_save_LIBS="$LIBS"
6749 cat > conftest.$ac_ext <<EOF
6750 #line 6751 "configure"
6751 #include "confdefs.h"
6752 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6761 if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6763 eval "ac_cv_lib_$ac_lib_var=yes"
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6768 eval "ac_cv_lib_$ac_lib_var=no"
6771 LIBS="$ac_save_LIBS"
6774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6778 echo "$ac_t""no" 1>&6
6779 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6780 echo "configure:6781: checking for dld_link in -ldld" >&5
6781 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6782 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 ac_save_LIBS="$LIBS"
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 eval "ac_cv_lib_$ac_lib_var=yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6806 eval "ac_cv_lib_$ac_lib_var=no"
6809 LIBS="$ac_save_LIBS"
6812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6816 echo "$ac_t""no" 1>&6
6840 if test "x$lt_cv_dlopen" != xno; then
6846 case $lt_cv_dlopen in
6848 save_CPPFLAGS="$CPPFLAGS"
6849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6851 save_LDFLAGS="$LDFLAGS"
6852 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6855 LIBS="$lt_cv_dlopen_libs $LIBS"
6857 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6858 echo "configure:6859: checking whether a program can dlopen itself" >&5
6859 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 if test "$cross_compiling" = yes; then :
6863 lt_cv_dlopen_self=cross
6865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6866 lt_status=$lt_dlunknown
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6878 # define LT_DLGLOBAL RTLD_GLOBAL
6881 # define LT_DLGLOBAL DL_GLOBAL
6883 # define LT_DLGLOBAL 0
6887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6888 find out it does not work in some platform. */
6889 #ifndef LT_DLLAZY_OR_NOW
6891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6894 # define LT_DLLAZY_OR_NOW DL_LAZY
6897 # define LT_DLLAZY_OR_NOW RTLD_NOW
6900 # define LT_DLLAZY_OR_NOW DL_NOW
6902 # define LT_DLLAZY_OR_NOW 0
6910 extern "C" void exit (int);
6913 void fnord() { int i=42;}
6916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6917 int status = $lt_dlunknown;
6921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6922 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6923 /* dlclose (self); */
6929 if { (eval echo configure:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6930 (./conftest; exit; ) 2>/dev/null
6933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6935 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6938 # compilation failed
6939 lt_cv_dlopen_self=no
6947 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6949 if test "x$lt_cv_dlopen_self" = xyes; then
6950 LDFLAGS="$LDFLAGS $link_static_flag"
6951 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6952 echo "configure:6953: checking whether a statically linked program can dlopen itself" >&5
6953 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 if test "$cross_compiling" = yes; then :
6957 lt_cv_dlopen_self_static=cross
6959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6960 lt_status=$lt_dlunknown
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6972 # define LT_DLGLOBAL RTLD_GLOBAL
6975 # define LT_DLGLOBAL DL_GLOBAL
6977 # define LT_DLGLOBAL 0
6981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6982 find out it does not work in some platform. */
6983 #ifndef LT_DLLAZY_OR_NOW
6985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6988 # define LT_DLLAZY_OR_NOW DL_LAZY
6991 # define LT_DLLAZY_OR_NOW RTLD_NOW
6994 # define LT_DLLAZY_OR_NOW DL_NOW
6996 # define LT_DLLAZY_OR_NOW 0
7004 extern "C" void exit (int);
7007 void fnord() { int i=42;}
7010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7011 int status = $lt_dlunknown;
7015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7017 /* dlclose (self); */
7023 if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7024 (./conftest; exit; ) 2>/dev/null
7027 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7028 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7029 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7032 # compilation failed
7033 lt_cv_dlopen_self_static=no
7041 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7044 CPPFLAGS="$save_CPPFLAGS"
7045 LDFLAGS="$save_LDFLAGS"
7050 case $lt_cv_dlopen_self in
7051 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7052 *) enable_dlopen_self=unknown ;;
7055 case $lt_cv_dlopen_self_static in
7056 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7057 *) enable_dlopen_self_static=unknown ;;
7062 if test "$enable_shared" = yes && test "$GCC" = yes; then
7063 case $archive_cmds in
7065 # FIXME: we may have to deal with multi-command sequences.
7068 # Test whether the compiler implicitly links with -lc since on some
7069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7070 # to ld, don't add -lc before -lgcc.
7071 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7072 echo "configure:7073: checking whether -lc should be explicitly linked in" >&5
7073 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7077 echo 'static int dummy;' > conftest.$ac_ext
7079 if { (eval echo configure:7080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7082 libobjs=conftest.$ac_objext
7084 wl=$lt_cv_prog_cc_wl
7090 save_allow_undefined_flag=$allow_undefined_flag
7091 allow_undefined_flag=
7092 if { (eval echo configure:7093: \"$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; }
7094 lt_cv_archive_cmds_need_lc=no
7096 lt_cv_archive_cmds_need_lc=yes
7098 allow_undefined_flag=$save_allow_undefined_flag
7100 cat conftest.err 1>&5
7104 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7108 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7110 # The second clause should only fire when bootstrapping the
7111 # libtool distribution, otherwise you forgot to ship ltmain.sh
7112 # with your package, and you will get complaints that there are
7113 # no rules to generate ltmain.sh.
7114 if test -f "$ltmain"; then
7117 # If there is no Makefile yet, we rely on a make rule to execute
7118 # `config.status --recheck' to rerun these tests and create the
7119 # libtool script then.
7120 test -f Makefile && make "$ltmain"
7123 if test -f "$ltmain"; then
7124 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7127 echo creating $ofile
7129 # Now quote all the things that may contain metacharacters while being
7130 # careful not to overquote the AC_SUBSTed values. We take copies of the
7131 # variables and quote the copies for generation of the libtool script.
7132 for var in echo old_CC old_CFLAGS SED \
7133 AR AR_FLAGS CC LD LN_S NM SHELL \
7134 reload_flag reload_cmds wl \
7135 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7136 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7137 library_names_spec soname_spec \
7138 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7139 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7140 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7141 old_striplib striplib file_magic_cmd export_symbols_cmds \
7142 deplibs_check_method allow_undefined_flag no_undefined_flag \
7143 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7144 global_symbol_to_c_name_address \
7145 hardcode_libdir_flag_spec hardcode_libdir_separator \
7146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7147 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7150 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7151 old_postinstall_cmds | old_postuninstall_cmds | \
7152 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7153 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7154 postinstall_cmds | postuninstall_cmds | \
7155 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7156 # Double-quote double-evaled strings.
7157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7165 cat <<__EOF__ > "${ofile}T"
7168 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7169 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7170 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7172 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7173 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7175 # This program is free software; you can redistribute it and/or modify
7176 # it under the terms of the GNU General Public License as published by
7177 # the Free Software Foundation; either version 2 of the License, or
7178 # (at your option) any later version.
7180 # This program is distributed in the hope that it will be useful, but
7181 # WITHOUT ANY WARRANTY; without even the implied warranty of
7182 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7183 # General Public License for more details.
7185 # You should have received a copy of the GNU General Public License
7186 # along with this program; if not, write to the Free Software
7187 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7189 # As a special exception to the GNU General Public License, if you
7190 # distribute this file as part of a program that contains a
7191 # configuration script generated by Autoconf, you may include it under
7192 # the same distribution terms that you use for the rest of that program.
7194 # A sed that does not truncate output.
7197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7198 Xsed="${SED} -e s/^X//"
7200 # The HP-UX ksh and POSIX shell print the target directory to stdout
7202 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7204 # ### BEGIN LIBTOOL CONFIG
7206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7208 # Shell to use when invoking shell scripts.
7211 # Whether or not to build shared libraries.
7212 build_libtool_libs=$enable_shared
7214 # Whether or not to build static libraries.
7215 build_old_libs=$enable_static
7217 # Whether or not to add -lc for building shared libraries.
7218 build_libtool_need_lc=$need_lc
7220 # Whether or not to optimize for fast installation.
7221 fast_install=$enable_fast_install
7224 host_alias=$host_alias
7227 # An echo program that does not interpret backslashes.
7232 AR_FLAGS=$lt_AR_FLAGS
7234 # The default C compiler.
7237 # Is the compiler the GNU C compiler?
7240 # The linker used to build libraries.
7243 # Whether we need hard or soft links.
7246 # A BSD-compatible nm program.
7249 # A symbol stripping program
7252 # Used to examine libraries when file_magic_cmd begins "file"
7253 MAGIC_CMD=$MAGIC_CMD
7255 # Used on cygwin: DLL creation program.
7258 # Used on cygwin: object dumper.
7261 # Used on cygwin: assembler.
7264 # The name of the directory that contains temporary libtool files.
7267 # How to create reloadable object files.
7268 reload_flag=$lt_reload_flag
7269 reload_cmds=$lt_reload_cmds
7271 # How to pass a linker flag through the compiler.
7274 # Object file suffix (normally "o").
7277 # Old archive suffix (normally "a").
7280 # Executable file suffix (normally "").
7283 # Additional compiler flags for building library objects.
7284 pic_flag=$lt_pic_flag
7287 # Does compiler simultaneously support -c and -o options?
7288 compiler_c_o=$lt_compiler_c_o
7290 # Can we write directly to a .lo ?
7291 compiler_o_lo=$lt_compiler_o_lo
7293 # Must we lock files when doing compilation ?
7294 need_locks=$lt_need_locks
7296 # Do we need the lib prefix for modules?
7297 need_lib_prefix=$need_lib_prefix
7299 # Do we need a version for libraries?
7300 need_version=$need_version
7302 # Whether dlopen is supported.
7303 dlopen_support=$enable_dlopen
7305 # Whether dlopen of programs is supported.
7306 dlopen_self=$enable_dlopen_self
7308 # Whether dlopen of statically linked programs is supported.
7309 dlopen_self_static=$enable_dlopen_self_static
7311 # Compiler flag to prevent dynamic linking.
7312 link_static_flag=$lt_link_static_flag
7314 # Compiler flag to turn off builtin functions.
7315 no_builtin_flag=$lt_no_builtin_flag
7317 # Compiler flag to allow reflexive dlopens.
7318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7320 # Compiler flag to generate shared objects directly from archives.
7321 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7323 # Compiler flag to generate thread-safe objects.
7324 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7326 # Library versioning type.
7327 version_type=$version_type
7329 # Format of library name prefix.
7330 libname_spec=$lt_libname_spec
7332 # List of archive names. First name is the real one, the rest are links.
7333 # The last name is the one that the linker finds with -lNAME.
7334 library_names_spec=$lt_library_names_spec
7336 # The coded name of the library, if different from the real name.
7337 soname_spec=$lt_soname_spec
7339 # Commands used to build and install an old-style archive.
7341 old_archive_cmds=$lt_old_archive_cmds
7342 old_postinstall_cmds=$lt_old_postinstall_cmds
7343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7345 # Create an old-style archive from a shared archive.
7346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7348 # Create a temporary old-style archive to link instead of a shared archive.
7349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7351 # Commands used to build and install a shared archive.
7352 archive_cmds=$lt_archive_cmds
7353 archive_expsym_cmds=$lt_archive_expsym_cmds
7354 postinstall_cmds=$lt_postinstall_cmds
7355 postuninstall_cmds=$lt_postuninstall_cmds
7357 # Commands to strip libraries.
7358 old_striplib=$lt_old_striplib
7359 striplib=$lt_striplib
7361 # Method to check whether dependent libraries are shared objects.
7362 deplibs_check_method=$lt_deplibs_check_method
7364 # Command to use when deplibs_check_method == file_magic.
7365 file_magic_cmd=$lt_file_magic_cmd
7367 # Flag that allows shared libraries with undefined symbols to be built.
7368 allow_undefined_flag=$lt_allow_undefined_flag
7370 # Flag that forces no undefined symbols.
7371 no_undefined_flag=$lt_no_undefined_flag
7373 # Commands used to finish a libtool library installation in a directory.
7374 finish_cmds=$lt_finish_cmds
7376 # Same as above, but a single script fragment to be evaled but not shown.
7377 finish_eval=$lt_finish_eval
7379 # Take the output of nm and produce a listing of raw symbols and C names.
7380 global_symbol_pipe=$lt_global_symbol_pipe
7382 # Transform the output of nm in a proper C declaration
7383 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7385 # Transform the output of nm in a C name address pair
7386 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7388 # This is the shared library runtime path variable.
7389 runpath_var=$runpath_var
7391 # This is the shared library path variable.
7392 shlibpath_var=$shlibpath_var
7394 # Is shlibpath searched before the hard-coded library search path?
7395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7397 # How to hardcode a shared library path into an executable.
7398 hardcode_action=$hardcode_action
7400 # Whether we should hardcode library paths into libraries.
7401 hardcode_into_libs=$hardcode_into_libs
7403 # Flag to hardcode \$libdir into a binary during linking.
7404 # This must work even if \$libdir does not exist.
7405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7407 # Whether we need a single -rpath flag with a separated argument.
7408 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7410 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7412 hardcode_direct=$hardcode_direct
7414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7416 hardcode_minus_L=$hardcode_minus_L
7418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7419 # the resulting binary.
7420 hardcode_shlibpath_var=$hardcode_shlibpath_var
7422 # Variables whose values should be saved in libtool wrapper scripts and
7423 # restored at relink time.
7424 variables_saved_for_relink="$variables_saved_for_relink"
7426 # Whether libtool must link a program against all its dependency libraries.
7427 link_all_deplibs=$link_all_deplibs
7429 # Compile-time system search path for libraries
7430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7432 # Run-time system search path for libraries
7433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7435 # Fix the shell variable \$srcfile for the compiler.
7436 fix_srcfile_path="$fix_srcfile_path"
7438 # Set to yes if exported symbols are required.
7439 always_export_symbols=$always_export_symbols
7441 # The commands to list exported symbols.
7442 export_symbols_cmds=$lt_export_symbols_cmds
7444 # The commands to extract the exported symbol list from a shared archive.
7445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7447 # Symbols that should not be listed in the preloaded symbols.
7448 exclude_expsyms=$lt_exclude_expsyms
7450 # Symbols that must always be exported.
7451 include_expsyms=$lt_include_expsyms
7453 # ### END LIBTOOL CONFIG
7459 cat <<\EOF >> "${ofile}T"
7461 # AIX sometimes has problems with the GCC collect2 program. For some
7462 # reason, if we set the COLLECT_NAMES environment variable, the problems
7463 # vanish in a puff of smoke.
7464 if test "X${COLLECT_NAMES+set}" != Xset; then
7466 export COLLECT_NAMES
7473 cygwin* | mingw* | pw32* | os2*)
7474 cat <<'EOF' >> "${ofile}T"
7475 # This is a source program that is used to create dlls on Windows
7476 # Don't remove nor modify the starting and closing comments
7477 # /* ltdll.c starts here */
7478 # #define WIN32_LEAN_AND_MEAN
7479 # #include <windows.h>
7480 # #undef WIN32_LEAN_AND_MEAN
7481 # #include <stdio.h>
7483 # #ifndef __CYGWIN__
7484 # # ifdef __CYGWIN32__
7485 # # define __CYGWIN__ __CYGWIN32__
7489 # #ifdef __cplusplus
7492 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7493 # #ifdef __cplusplus
7498 # #include <cygwin/cygwin_dll.h>
7499 # DECLARE_CYGWIN_DLL( DllMain );
7501 # HINSTANCE __hDllInstance_base;
7504 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7506 # __hDllInstance_base = hInst;
7509 # /* ltdll.c ends here */
7510 # This is a source program that is used to create import libraries
7511 # on Windows for dlls which lack them. Don't remove nor modify the
7512 # starting and closing comments
7513 # /* impgen.c starts here */
7514 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7516 # This file is part of GNU libtool.
7518 # This program is free software; you can redistribute it and/or modify
7519 # it under the terms of the GNU General Public License as published by
7520 # the Free Software Foundation; either version 2 of the License, or
7521 # (at your option) any later version.
7523 # This program is distributed in the hope that it will be useful,
7524 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7525 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7526 # GNU General Public License for more details.
7528 # You should have received a copy of the GNU General Public License
7529 # along with this program; if not, write to the Free Software
7530 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7533 # #include <stdio.h> /* for printf() */
7534 # #include <unistd.h> /* for open(), lseek(), read() */
7535 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7536 # #include <string.h> /* for strdup() */
7538 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7540 # #define O_BINARY 0
7543 # static unsigned int
7544 # pe_get16 (fd, offset)
7548 # unsigned char b[2];
7549 # lseek (fd, offset, SEEK_SET);
7551 # return b[0] + (b[1]<<8);
7554 # static unsigned int
7555 # pe_get32 (fd, offset)
7559 # unsigned char b[4];
7560 # lseek (fd, offset, SEEK_SET);
7562 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7565 # static unsigned int
7569 # unsigned char *b = ptr;
7570 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7579 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7580 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7581 # unsigned long name_rvas, nexp;
7582 # unsigned char *expdata, *erva;
7583 # char *filename, *dll_name;
7585 # filename = argv[1];
7587 # dll = open(filename, O_RDONLY|O_BINARY);
7591 # dll_name = filename;
7593 # for (i=0; filename[i]; i++)
7594 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7595 # dll_name = filename + i +1;
7597 # pe_header_offset = pe_get32 (dll, 0x3c);
7598 # opthdr_ofs = pe_header_offset + 4 + 20;
7599 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7601 # if (num_entries < 1) /* no exports */
7604 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7605 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7606 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7607 # secptr = (pe_header_offset + 4 + 20 +
7608 # pe_get16 (dll, pe_header_offset + 4 + 16));
7611 # for (i = 0; i < nsections; i++)
7614 # unsigned long secptr1 = secptr + 40 * i;
7615 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7616 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7617 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7618 # lseek(dll, secptr1, SEEK_SET);
7619 # read(dll, sname, 8);
7620 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7622 # expptr = fptr + (export_rva - vaddr);
7623 # if (export_rva + export_size > vaddr + vsize)
7624 # export_size = vsize - (export_rva - vaddr);
7629 # expdata = (unsigned char*)malloc(export_size);
7630 # lseek (dll, expptr, SEEK_SET);
7631 # read (dll, expdata, export_size);
7632 # erva = expdata - export_rva;
7634 # nexp = pe_as32 (expdata+24);
7635 # name_rvas = pe_as32 (expdata+32);
7637 # printf ("EXPORTS\n");
7638 # for (i = 0; i<nexp; i++)
7640 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7641 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7646 # /* impgen.c ends here */
7652 # We use sed instead of cat because bash on DJGPP gets confused if
7653 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7654 # text mode, it properly converts lines to CR/LF. This bash problem
7655 # is reportedly fixed, but why not run on old versions too?
7656 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7658 mv -f "${ofile}T" "$ofile" || \
7659 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7667 # This can be used to rebuild libtool when needed
7668 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7670 # Always use our own libtool.
7671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7673 # Prevent multiple expansion
7678 if test $ol_enable_perl != no ; then
7679 # Extract the first word of "perl", so it can be a program name with args.
7680 set dummy perl; ac_word=$2
7681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7682 echo "configure:7683: checking for $ac_word" >&5
7683 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7688 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7691 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7696 for ac_dir in $ac_dummy; do
7697 test -z "$ac_dir" && ac_dir=.
7698 if test -f $ac_dir/$ac_word; then
7699 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7704 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7708 PERLBIN="$ac_cv_path_PERLBIN"
7709 if test -n "$PERLBIN"; then
7710 echo "$ac_t""$PERLBIN" 1>&6
7712 echo "$ac_t""no" 1>&6
7716 if test "no$PERLBIN" = "no" ; then
7717 if test $ol_enable_perl = yes ; then
7718 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7722 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7723 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7725 if test x"$ol_enable_perl" = "xyes" ; then
7726 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7728 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7734 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7735 echo "configure:7736: checking how to run the C preprocessor" >&5
7736 # On Suns, sometimes $CPP names a directory.
7737 if test -n "$CPP" && test -d "$CPP"; then
7740 if test -z "$CPP"; then
7741 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7742 echo $ac_n "(cached) $ac_c" 1>&6
7744 # This must be in double quotes, not single quotes, because CPP may get
7745 # substituted into the Makefile and "${CC-cc}" will confuse make.
7747 # On the NeXT, cc -E runs the code through the compiler's parser,
7748 # not just through cpp.
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7756 { (eval echo configure:7757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7758 if test -z "$ac_err"; then
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 CPP="${CC-cc} -E -traditional-cpp"
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7773 { (eval echo configure:7774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7775 if test -z "$ac_err"; then
7779 echo "configure: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7782 CPP="${CC-cc} -nologo -E"
7783 cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7790 { (eval echo configure:7791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7792 if test -z "$ac_err"; then
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7806 ac_cv_prog_CPP="$CPP"
7808 CPP="$ac_cv_prog_CPP"
7810 ac_cv_prog_CPP="$CPP"
7812 echo "$ac_t""$CPP" 1>&6
7816 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7817 echo "configure:7818: checking for Cygwin environment" >&5
7818 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7828 #define __CYGWIN__ __CYGWIN32__
7833 if { (eval echo configure:7834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7845 echo "$ac_t""$ac_cv_cygwin" 1>&6
7847 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7848 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7849 echo "configure:7850: checking for mingw32 environment" >&5
7850 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7861 if { (eval echo configure:7862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7873 echo "$ac_t""$ac_cv_mingw32" 1>&6
7875 test "$ac_cv_mingw32" = yes && MINGW32=yes
7879 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7880 echo "configure:7881: checking for executable suffix" >&5
7881 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7884 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7888 echo 'int main () { return 0; }' > conftest.$ac_ext
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7891 for file in conftest.*; do
7893 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7894 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7898 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7901 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7906 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7907 echo "$ac_t""${ac_cv_exeext}" 1>&6
7910 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7911 echo "configure:7912: checking for object suffix" >&5
7912 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7916 echo 'int i = 1;' > conftest.$ac_ext
7917 if { (eval echo configure:7918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7918 for ac_file in conftest.*; do
7921 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7925 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7930 echo "$ac_t""$ac_cv_objext" 1>&6
7931 OBJEXT=$ac_cv_objext
7932 ac_objext=$ac_cv_objext
7935 cat >> confdefs.h <<EOF
7936 #define EXEEXT "${EXEEXT}"
7940 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7941 echo "configure:7942: checking for be_app in -lbe" >&5
7942 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 ac_save_LIBS="$LIBS"
7947 LIBS="-lbe -lroot -lnet $LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 eval "ac_cv_lib_$ac_lib_var=no"
7970 LIBS="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 LIBS="$LIBS -lbe -lroot -lnet"
7977 echo "$ac_t""no" 1>&6
7985 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7986 echo "configure:7987: checking for ${CC-cc} option to accept ANSI C" >&5
7987 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 am_cv_prog_cc_stdc=no
7992 # Don't try gcc -ansi; that turns off useful extensions and
7993 # breaks some systems' header files.
7994 # AIX -qlanglvl=ansi
7995 # Ultrix and OSF/1 -std1
7996 # HP-UX 10.20 and later -Ae
7997 # HP-UX older versions -Aa -D_HPUX_SOURCE
7998 # SVR4 -Xc -D__EXTENSIONS__
7999 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8001 CC="$ac_save_CC $ac_arg"
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8007 #include <sys/types.h>
8008 #include <sys/stat.h>
8009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8010 struct buf { int x; };
8011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8012 static char *e (p, i)
8018 static char *f (char * (*g) (char **, int), char **p, ...)
8023 s = g (p, va_arg (v,int));
8027 int test (int i, double x);
8028 struct s1 {int (*f) (int a);};
8029 struct s2 {int (*f) (double a);};
8030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8040 if { (eval echo configure:8041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8042 am_cv_prog_cc_stdc="$ac_arg"; break
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8053 if test -z "$am_cv_prog_cc_stdc"; then
8054 echo "$ac_t""none needed" 1>&6
8056 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8058 case "x$am_cv_prog_cc_stdc" in
8060 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8063 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8064 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8067 # test for make depend flag
8070 if test -z "${MKDEP}"; then
8072 if test -z "${MKDEP_FLAGS}"; then
8073 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8074 echo "configure:8075: checking for ${OL_MKDEP} depend flag" >&5
8075 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6
8080 for flag in "-M" "-xM"; do
8081 cat > conftest.c <<EOF
8084 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8085 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8087 if test ! -f conftest."${ac_object}" ; then
8089 OL_MKDEP_FLAGS="$flag"
8098 echo "$ac_t""$ol_cv_mkdep" 1>&6
8101 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8106 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8111 if test "${ol_cv_mkdep}" = no ; then
8112 # this will soon become an error
8113 echo "configure: warning: do not know how to generate dependencies" 1>&2
8116 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8117 echo "configure:8118: checking for afopen in -ls" >&5
8118 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8122 ac_save_LIBS="$LIBS"
8124 cat > conftest.$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8127 /* Override any gcc2 internal prototype to avoid an error. */
8128 /* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 eval "ac_cv_lib_$ac_lib_var=yes"
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 eval "ac_cv_lib_$ac_lib_var=no"
8146 LIBS="$ac_save_LIBS"
8149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8150 echo "$ac_t""yes" 1>&6
8153 cat >> confdefs.h <<\EOF
8154 #define HAVE_AIX_SECURITY 1
8159 echo "$ac_t""no" 1>&6
8165 ac_cv_func_getopt=no
8166 cat >> confdefs.h <<\EOF
8167 #define BOTH_STRINGS_H 1
8174 if test $ol_enable_modules != no ; then
8175 for ac_hdr in ltdl.h
8177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8179 echo "configure:8180: checking for $ac_hdr" >&5
8180 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8189 { (eval echo configure:8190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8191 if test -z "$ac_err"; then
8193 eval "ac_cv_header_$ac_safe=yes"
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8199 eval "ac_cv_header_$ac_safe=no"
8203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8204 echo "$ac_t""yes" 1>&6
8205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8206 cat >> confdefs.h <<EOF
8207 #define $ac_tr_hdr 1
8211 echo "$ac_t""no" 1>&6
8216 if test $ac_cv_header_ltdl_h = no ; then
8217 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8220 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8221 echo "configure:8222: checking for lt_dlinit in -lltdl" >&5
8222 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 ac_save_LIBS="$LIBS"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 eval "ac_cv_lib_$ac_lib_var=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 eval "ac_cv_lib_$ac_lib_var=no"
8250 LIBS="$ac_save_LIBS"
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8257 cat >> confdefs.h <<\EOF
8258 #define HAVE_LIBLTDL 1
8263 echo "$ac_t""no" 1>&6
8267 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8268 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8273 for i in $Backends; do
8274 eval "ol_tmp=\$ol_enable_$i"
8275 if test $ol_tmp = mod ; then
8276 echo "configure: warning: building static $i backend" 1>&2
8277 eval "ol_enable_$i=yes"
8280 for i in $Overlays; do
8281 eval "ol_tmp=\$ol_enable_$i"
8282 if test $ol_tmp = mod ; then
8283 echo "configure: warning: building static $i overlay" 1>&2
8284 eval "ol_enable_$i=yes"
8290 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8291 echo "configure:8292: checking for EBCDIC" >&5
8292 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8301 #include <__ASCII__/generate_error.h>
8305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8306 { (eval echo configure:8307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8308 if test -z "$ac_err"; then
8310 ol_cv_cpp_ebcdic=yes
8313 echo "configure: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8321 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8322 if test $ol_cv_cpp_ebcdic = yes ; then
8323 cat >> confdefs.h <<\EOF
8324 #define HAVE_EBCDIC 1
8329 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8330 echo "configure:8331: checking for ANSI C header files" >&5
8331 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8343 { (eval echo configure:8344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8345 if test -z "$ac_err"; then
8347 ol_cv_header_stdc=yes
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8353 ol_cv_header_stdc=no
8357 if test $ol_cv_header_stdc = yes; then
8358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8365 egrep "memchr" >/dev/null 2>&1; then
8369 ol_cv_header_stdc=no
8375 if test $ol_cv_header_stdc = yes; then
8376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383 egrep "free" >/dev/null 2>&1; then
8387 ol_cv_header_stdc=no
8393 if test $ol_cv_header_stdc = yes; then
8394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8395 if test "$cross_compiling" = yes; then
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8406 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8407 || ('j' <= (c) && (c) <= 'r') \
8408 || ('s' <= (c) && (c) <= 'z'))
8409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8412 int main () { int i; for (i = 0; i < 256; i++)
8413 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 ol_cv_header_stdc=no
8432 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8433 if test $ol_cv_header_stdc = yes; then
8434 cat >> confdefs.h <<\EOF
8435 #define STDC_HEADERS 1
8439 ac_cv_header_stdc=disable
8442 if test $ol_cv_header_stdc != yes; then
8443 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8447 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8450 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8451 echo "configure:8452: checking for $ac_hdr that defines DIR" >&5
8452 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8453 echo $ac_n "(cached) $ac_c" 1>&6
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 #include <sys/types.h>
8464 if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8466 eval "ac_cv_header_dirent_$ac_safe=yes"
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 eval "ac_cv_header_dirent_$ac_safe=no"
8475 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8478 cat >> confdefs.h <<EOF
8479 #define $ac_tr_hdr 1
8481 ac_header_dirent=$ac_hdr; break
8483 echo "$ac_t""no" 1>&6
8486 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8487 if test $ac_header_dirent = dirent.h; then
8488 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8489 echo "configure:8490: checking for opendir in -ldir" >&5
8490 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8491 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8494 ac_save_LIBS="$LIBS"
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8510 eval "ac_cv_lib_$ac_lib_var=yes"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 eval "ac_cv_lib_$ac_lib_var=no"
8518 LIBS="$ac_save_LIBS"
8521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8522 echo "$ac_t""yes" 1>&6
8525 echo "$ac_t""no" 1>&6
8529 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8530 echo "configure:8531: checking for opendir in -lx" >&5
8531 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8535 ac_save_LIBS="$LIBS"
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8540 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8551 eval "ac_cv_lib_$ac_lib_var=yes"
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 eval "ac_cv_lib_$ac_lib_var=no"
8559 LIBS="$ac_save_LIBS"
8562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8563 echo "$ac_t""yes" 1>&6
8566 echo "$ac_t""no" 1>&6
8571 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8572 echo "configure:8573: checking for sys/wait.h that is POSIX.1 compatible" >&5
8573 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 #include <sys/types.h>
8580 #include <sys/wait.h>
8582 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8585 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8593 if { (eval echo configure:8594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8595 ac_cv_header_sys_wait_h=yes
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8600 ac_cv_header_sys_wait_h=no
8605 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8606 if test $ac_cv_header_sys_wait_h = yes; then
8607 cat >> confdefs.h <<\EOF
8608 #define HAVE_SYS_WAIT_H 1
8613 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8614 echo "configure:8615: checking POSIX termios" >&5
8615 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8616 echo $ac_n "(cached) $ac_c" 1>&6
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 #include <sys/types.h>
8623 #include <termios.h>
8625 /* SunOS 4.0.3 has termios.h but not the library calls. */
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8631 am_cv_sys_posix_termios=yes
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 am_cv_sys_posix_termios=no
8641 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8644 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8645 echo "configure:8646: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8646 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8649 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8651 gwinsz_in_termios_h=no
8652 if test $am_cv_sys_posix_termios = yes; then
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 #include <sys/types.h>
8657 # include <termios.h>
8663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8664 egrep "yes" >/dev/null 2>&1; then
8666 gwinsz_in_termios_h=yes
8672 if test $gwinsz_in_termios_h = no; then
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 #include <sys/types.h>
8677 # include <sys/ioctl.h>
8683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8684 egrep "yes" >/dev/null 2>&1; then
8686 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8694 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8695 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8696 cat >> confdefs.h <<\EOF
8697 #define GWINSZ_IN_SYS_IOCTL 1
8702 if test $am_cv_sys_posix_termios = yes ; then
8703 cat >> confdefs.h <<\EOF
8704 #define HAVE_POSIX_TERMIOS 1
8760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8762 echo "configure:8763: checking for $ac_hdr" >&5
8763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8774 if test -z "$ac_err"; then
8776 eval "ac_cv_header_$ac_safe=yes"
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8782 eval "ac_cv_header_$ac_safe=no"
8786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8787 echo "$ac_t""yes" 1>&6
8788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8789 cat >> confdefs.h <<EOF
8790 #define $ac_tr_hdr 1
8794 echo "$ac_t""no" 1>&6
8801 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8802 echo "configure:8803: checking for sigset in -lV3" >&5
8803 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8804 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8807 ac_save_LIBS="$LIBS"
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8812 /* Override any gcc2 internal prototype to avoid an error. */
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8823 eval "ac_cv_lib_$ac_lib_var=yes"
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8828 eval "ac_cv_lib_$ac_lib_var=no"
8831 LIBS="$ac_save_LIBS"
8834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8835 echo "$ac_t""yes" 1>&6
8836 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8838 cat >> confdefs.h <<EOF
8839 #define $ac_tr_lib 1
8845 echo "$ac_t""no" 1>&6
8849 if test "$ac_cv_header_winsock_h" = yes; then
8850 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8851 echo "configure:8852: checking for winsock" >&5
8852 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8856 for curlib in ws2_32 wsock32; do
8857 LIBS="$LIBS -l$curlib"
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 #include <winsock.h>
8866 select(0,NULL,NULL,NULL,NULL);
8868 gethostname(NULL,0);
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8876 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8883 if test $ol_cv_winsock = yes; then
8884 cat >> confdefs.h <<\EOF
8885 #define HAVE_WINSOCK 1
8888 ac_cv_func_socket=yes
8889 ac_cv_func_select=yes
8890 ac_cv_func_closesocket=yes
8891 ac_cv_func_gethostname=yes
8892 if test $curlib = ws2_32; then
8893 ol_cv_winsock=winsock2
8894 cat >> confdefs.h <<\EOF
8895 #define HAVE_WINSOCK2 1
8905 echo "$ac_t""$ol_cv_winsock" 1>&6
8909 echo $ac_n "checking for socket""... $ac_c" 1>&6
8910 echo "configure:8911: checking for socket" >&5
8911 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 /* System header to define __stub macros and hopefully few prototypes,
8918 which can conflict with char socket(); below. */
8920 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8928 /* The GNU C library defines this for functions which it implements
8929 to always fail with ENOSYS. Some functions are actually named
8930 something starting with __ and the normal name is an alias. */
8931 #if defined (__stub_socket) || defined (__stub___socket)
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8941 eval "ac_cv_func_socket=yes"
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8946 eval "ac_cv_func_socket=no"
8951 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8952 echo "$ac_t""yes" 1>&6
8955 echo "$ac_t""no" 1>&6
8957 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8958 echo "configure:8959: checking for main in -lsocket" >&5
8959 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8963 ac_save_LIBS="$LIBS"
8964 LIBS="-lsocket $LIBS"
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8973 if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975 eval "ac_cv_lib_$ac_lib_var=yes"
8977 echo "configure: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8980 eval "ac_cv_lib_$ac_lib_var=no"
8983 LIBS="$ac_save_LIBS"
8986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8987 echo "$ac_t""yes" 1>&6
8988 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8990 cat >> confdefs.h <<EOF
8991 #define $ac_tr_lib 1
8994 LIBS="-lsocket $LIBS"
8997 echo "$ac_t""no" 1>&6
9000 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9001 echo "configure:9002: checking for main in -lnet" >&5
9002 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9003 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9004 echo $ac_n "(cached) $ac_c" 1>&6
9006 ac_save_LIBS="$LIBS"
9008 cat > conftest.$ac_ext <<EOF
9009 #line 9010 "configure"
9010 #include "confdefs.h"
9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9018 eval "ac_cv_lib_$ac_lib_var=yes"
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9023 eval "ac_cv_lib_$ac_lib_var=no"
9026 LIBS="$ac_save_LIBS"
9029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9030 echo "$ac_t""yes" 1>&6
9031 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_lib 1
9040 echo "$ac_t""no" 1>&6
9043 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9044 echo "configure:9045: checking for main in -lnsl_s" >&5
9045 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9049 ac_save_LIBS="$LIBS"
9050 LIBS="-lnsl_s $LIBS"
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9059 if { (eval echo configure:9060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9061 eval "ac_cv_lib_$ac_lib_var=yes"
9063 echo "configure: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9066 eval "ac_cv_lib_$ac_lib_var=no"
9069 LIBS="$ac_save_LIBS"
9072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9073 echo "$ac_t""yes" 1>&6
9074 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9076 cat >> confdefs.h <<EOF
9077 #define $ac_tr_lib 1
9080 LIBS="-lnsl_s $LIBS"
9083 echo "$ac_t""no" 1>&6
9086 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9087 echo "configure:9088: checking for main in -lnsl" >&5
9088 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9089 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9092 ac_save_LIBS="$LIBS"
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9102 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9104 eval "ac_cv_lib_$ac_lib_var=yes"
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 eval "ac_cv_lib_$ac_lib_var=no"
9112 LIBS="$ac_save_LIBS"
9115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9116 echo "$ac_t""yes" 1>&6
9117 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9119 cat >> confdefs.h <<EOF
9120 #define $ac_tr_lib 1
9126 echo "$ac_t""no" 1>&6
9129 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9130 echo "configure:9131: checking for socket in -linet" >&5
9131 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9135 ac_save_LIBS="$LIBS"
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 /* Override any gcc2 internal prototype to avoid an error. */
9141 /* We use char because int might match the return type of a gcc2
9142 builtin and then its argument prototype would still apply. */
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9151 eval "ac_cv_lib_$ac_lib_var=yes"
9153 echo "configure: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9156 eval "ac_cv_lib_$ac_lib_var=no"
9159 LIBS="$ac_save_LIBS"
9162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9163 echo "$ac_t""yes" 1>&6
9164 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9166 cat >> confdefs.h <<EOF
9167 #define $ac_tr_lib 1
9173 echo "$ac_t""no" 1>&6
9176 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9177 echo "configure:9178: checking for main in -lgen" >&5
9178 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9182 ac_save_LIBS="$LIBS"
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9194 eval "ac_cv_lib_$ac_lib_var=yes"
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 eval "ac_cv_lib_$ac_lib_var=no"
9202 LIBS="$ac_save_LIBS"
9205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9206 echo "$ac_t""yes" 1>&6
9207 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9209 cat >> confdefs.h <<EOF
9210 #define $ac_tr_lib 1
9216 echo "$ac_t""no" 1>&6
9223 echo $ac_n "checking for select""... $ac_c" 1>&6
9224 echo "configure:9225: checking for select" >&5
9225 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9231 /* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char select(); below. */
9234 /* Override any gcc2 internal prototype to avoid an error. */
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9242 /* The GNU C library defines this for functions which it implements
9243 to always fail with ENOSYS. Some functions are actually named
9244 something starting with __ and the normal name is an alias. */
9245 #if defined (__stub_select) || defined (__stub___select)
9253 if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9255 eval "ac_cv_func_select=yes"
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9260 eval "ac_cv_func_select=no"
9265 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9266 echo "$ac_t""yes" 1>&6
9269 echo "$ac_t""no" 1>&6
9270 { echo "configure: error: select() required." 1>&2; exit 1; }
9274 if test "${ac_cv_header_winsock_h}" != yes; then
9275 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9276 echo "configure:9277: checking types of arguments for select()" >&5
9277 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9280 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9283 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9286 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9287 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9288 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 #ifdef HAVE_SYS_TYPES_H
9293 #include <sys/types.h>
9295 #ifdef HAVE_SYS_TIME_H
9296 #include <sys/time.h>
9298 #ifdef HAVE_SYS_SELECT_H
9299 #include <sys/select.h>
9301 #ifdef HAVE_SYS_SOCKET_H
9302 #include <sys/socket.h>
9304 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);
9309 if { (eval echo configure:9310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9311 ac_not_found=no ; break 3
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9328 if test "$ac_not_found" = yes; then
9329 ac_cv_func_select_arg1=int
9330 ac_cv_func_select_arg234='int *'
9331 ac_cv_func_select_arg5='struct timeval *'
9333 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9334 cat >> confdefs.h <<EOF
9335 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9338 cat >> confdefs.h <<EOF
9339 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9342 cat >> confdefs.h <<EOF
9343 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9353 echo "configure:9354: checking for $ac_func" >&5
9354 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9357 cat > conftest.$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char $ac_func(); below. */
9363 /* Override any gcc2 internal prototype to avoid an error. */
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9371 /* The GNU C library defines this for functions which it implements
9372 to always fail with ENOSYS. Some functions are actually named
9373 something starting with __ and the normal name is an alias. */
9374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9384 eval "ac_cv_func_$ac_func=yes"
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9389 eval "ac_cv_func_$ac_func=no"
9394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9397 cat >> confdefs.h <<EOF
9398 #define $ac_tr_func 1
9402 echo "$ac_t""no" 1>&6
9406 for ac_hdr in poll.h
9408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9410 echo "configure:9411: checking for $ac_hdr" >&5
9411 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9420 { (eval echo configure:9421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9422 if test -z "$ac_err"; then
9424 eval "ac_cv_header_$ac_safe=yes"
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9430 eval "ac_cv_header_$ac_safe=no"
9434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9435 echo "$ac_t""yes" 1>&6
9436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9437 cat >> confdefs.h <<EOF
9438 #define $ac_tr_hdr 1
9442 echo "$ac_t""no" 1>&6
9448 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9449 echo "configure:9450: checking declaration of sys_errlist" >&5
9450 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9456 "configure"
9456 #include "confdefs.h"
9459 #include <sys/types.h>
9465 char *c = (char *) *sys_errlist
9468 if { (eval echo configure:9469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9470 ol_cv_dcl_sys_errlist=yes
9471 ol_cv_have_sys_errlist=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9476 ol_cv_dcl_sys_errlist=no
9481 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9483 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9484 if test $ol_cv_dcl_sys_errlist = no ; then
9485 cat >> confdefs.h <<\EOF
9486 #define DECL_SYS_ERRLIST 1
9490 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9491 echo "configure:9492: checking existence of sys_errlist" >&5
9492 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9501 char *c = (char *) *sys_errlist
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9506 ol_cv_have_sys_errlist=yes
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 ol_cv_have_sys_errlist=no
9516 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9518 if test $ol_cv_have_sys_errlist = yes ; then
9519 cat >> confdefs.h <<\EOF
9520 #define HAVE_SYS_ERRLIST 1
9524 for ac_func in strerror strerror_r
9526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9527 echo "configure:9528: checking for $ac_func" >&5
9528 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 /* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char $ac_func(); below. */
9537 /* Override any gcc2 internal prototype to avoid an error. */
9538 /* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9545 /* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9556 if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9558 eval "ac_cv_func_$ac_func=yes"
9560 echo "configure: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9563 eval "ac_cv_func_$ac_func=no"
9568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9569 echo "$ac_t""yes" 1>&6
9570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9571 cat >> confdefs.h <<EOF
9572 #define $ac_tr_func 1
9576 echo "$ac_t""no" 1>&6
9580 ol_cv_func_strerror_r=no
9581 if test "${ac_cv_func_strerror_r}" = yes ; then
9582 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9583 echo "configure:9584: checking non-posix strerror_r" >&5
9584 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9585 echo $ac_n "(cached) $ac_c" 1>&6
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 egrep "strerror_r" >/dev/null 2>&1; then
9596 ol_decl_strerror_r=yes
9599 ol_decl_strerror_r=no
9603 if test $ol_decl_strerror_r = yes ; then
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9609 /* from autoconf 2.59 */
9611 char x = *strerror_r (0, buf, sizeof buf);
9612 char *p = strerror_r (0, buf, sizeof buf);
9616 if { (eval echo configure:9617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9618 ol_cv_nonposix_strerror_r=yes
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9623 ol_cv_nonposix_strerror_r=no
9627 if test "$cross_compiling" = yes; then
9628 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9637 strerror_r( 1, buf, sizeof buf );
9638 exit( buf[0] == 0 );
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9644 ol_cv_nonposix_strerror_r=yes
9646 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9649 ol_cv_nonposix_strerror=no
9658 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9659 if test $ol_cv_nonposix_strerror_r = yes ; then
9660 cat >> confdefs.h <<\EOF
9661 #define HAVE_NONPOSIX_STRERROR_R 1
9666 elif test "${ac_cv_func_strerror}" = no ; then
9667 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9668 echo "configure:9669: checking declaration of sys_errlist" >&5
9669 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9678 #include <sys/types.h>
9684 char *c = (char *) *sys_errlist
9687 if { (eval echo configure:9688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9689 ol_cv_dcl_sys_errlist=yes
9690 ol_cv_have_sys_errlist=yes
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9695 ol_cv_dcl_sys_errlist=no
9700 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9702 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9703 if test $ol_cv_dcl_sys_errlist = no ; then
9704 cat >> confdefs.h <<\EOF
9705 #define DECL_SYS_ERRLIST 1
9709 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9710 echo "configure:9711: checking existence of sys_errlist" >&5
9711 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9712 echo $ac_n "(cached) $ac_c" 1>&6
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9720 char *c = (char *) *sys_errlist
9723 if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9725 ol_cv_have_sys_errlist=yes
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 ol_cv_have_sys_errlist=no
9735 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9737 if test $ol_cv_have_sys_errlist = yes ; then
9738 cat >> confdefs.h <<\EOF
9739 #define HAVE_SYS_ERRLIST 1
9747 for ac_hdr in regex.h
9749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9751 echo "configure:9752: checking for $ac_hdr" >&5
9752 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9761 { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9763 if test -z "$ac_err"; then
9765 eval "ac_cv_header_$ac_safe=yes"
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 eval "ac_cv_header_$ac_safe=no"
9775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9778 cat >> confdefs.h <<EOF
9779 #define $ac_tr_hdr 1
9783 echo "$ac_t""no" 1>&6
9787 if test "$ac_cv_header_regex_h" != yes ; then
9788 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9791 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9792 echo "configure:9793: checking for library containing regfree" >&5
9793 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9796 ac_func_search_save_LIBS="$LIBS"
9797 ac_cv_search_regfree="no"
9798 cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9801 /* Override any gcc2 internal prototype to avoid an error. */
9802 /* We use char because int might match the return type of a gcc2
9803 builtin and then its argument prototype would still apply. */
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9812 ac_cv_search_regfree="none required"
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9818 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9820 cat > conftest.$ac_ext <<EOF
9821 #line 9822 "configure"
9822 #include "confdefs.h"
9823 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9834 ac_cv_search_regfree="-l$ac_lib"
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9842 LIBS="$ac_func_search_save_LIBS"
9845 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9846 if test "$ac_cv_search_regfree" != "no"; then
9847 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9850 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9854 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9855 echo "configure:9856: checking for compatible POSIX regex" >&5
9856 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9857 echo $ac_n "(cached) $ac_c" 1>&6
9860 if test "$cross_compiling" = yes; then
9861 ol_cv_c_posix_regex=cross
9863 cat > conftest.$ac_ext <<EOF
9864 #line 9865 "configure"
9865 #include "confdefs.h"
9867 #include <sys/types.h>
9869 static char *pattern, *string;
9877 if(regcomp(&re, pattern, 0)) {
9881 string = "ALL MATCH";
9883 rc = regexec(&re, string, 0, (void*)0, 0);
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9892 ol_cv_c_posix_regex=yes
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 ol_cv_c_posix_regex=no
9904 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9906 if test "$ol_cv_c_posix_regex" = no ; then
9907 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9912 for ac_hdr in sys/uuid.h
9914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9916 echo "configure:9917: checking for $ac_hdr" >&5
9917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9918 echo $ac_n "(cached) $ac_c" 1>&6
9920 cat > conftest.$ac_ext <<EOF
9921 #line 9922 "configure"
9922 #include "confdefs.h"
9925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926 { (eval echo configure:9927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9928 if test -z "$ac_err"; then
9930 eval "ac_cv_header_$ac_safe=yes"
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9936 eval "ac_cv_header_$ac_safe=no"
9940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9941 echo "$ac_t""yes" 1>&6
9942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9943 cat >> confdefs.h <<EOF
9944 #define $ac_tr_hdr 1
9948 echo "$ac_t""no" 1>&6
9952 if test $ac_cv_header_sys_uuid_h = yes ; then
9955 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9956 echo "configure:9957: checking for library containing uuid_to_str" >&5
9957 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9960 ac_func_search_save_LIBS="$LIBS"
9961 ac_cv_search_uuid_to_str="no"
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 /* Override any gcc2 internal prototype to avoid an error. */
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 ac_cv_search_uuid_to_str="none required"
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9982 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9984 cat > conftest.$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9998 ac_cv_search_uuid_to_str="-l$ac_lib"
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10006 LIBS="$ac_func_search_save_LIBS"
10009 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10010 if test "$ac_cv_search_uuid_to_str" != "no"; then
10011 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10018 if test have_uuid = yes ; then
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_UUID_TO_STR 1
10024 test "$ac_cv_search_uuid_to_str" = "none required" || \
10025 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10029 if test $have_uuid = no ; then
10030 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10031 echo "configure:10032: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10033 LIBS="$LIBS -lrpcrt4"
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10038 int __stdcall UuidCreate(void *);
10039 int __stdcall UuidToStringA(void *,void **);
10044 UuidToStringA(0,0);
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10058 if test $need_rpcrt = yes; then
10059 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10062 echo "$ac_t""$need_rpcrt" 1>&6
10066 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10067 echo "configure:10068: checking for res_query" >&5
10068 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char res_query(); below. */
10076 #include <assert.h>
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10085 /* The GNU C library defines this for functions which it implements
10086 to always fail with ENOSYS. Some functions are actually named
10087 something starting with __ and the normal name is an alias. */
10088 #if defined (__stub_res_query) || defined (__stub___res_query)
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10098 eval "ac_cv_func_res_query=yes"
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 eval "ac_cv_func_res_query=no"
10108 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10109 echo "$ac_t""yes" 1>&6
10112 echo "$ac_t""no" 1>&6
10115 if test $ac_cv_func_res_query = no ; then
10116 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10117 echo "configure:10118: checking for __res_query" >&5
10118 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 /* System header to define __stub macros and hopefully few prototypes,
10125 which can conflict with char __res_query(); below. */
10126 #include <assert.h>
10127 /* Override any gcc2 internal prototype to avoid an error. */
10128 /* We use char because int might match the return type of a gcc2
10129 builtin and then its argument prototype would still apply. */
10130 char __res_query();
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined (__stub___res_query) || defined (__stub_____res_query)
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10148 eval "ac_cv_func___res_query=yes"
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10153 eval "ac_cv_func___res_query=no"
10158 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10162 echo "$ac_t""no" 1>&6
10165 ac_cv_func_res_query=$ac_cv_func___res_query
10168 if test $ac_cv_func_res_query = no ; then
10169 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10170 echo "configure:10171: checking for res_query in -lbind" >&5
10171 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10172 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10175 ac_save_LIBS="$LIBS"
10176 LIBS="-lbind $LIBS"
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10191 eval "ac_cv_lib_$ac_lib_var=yes"
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10196 eval "ac_cv_lib_$ac_lib_var=no"
10199 LIBS="$ac_save_LIBS"
10202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10203 echo "$ac_t""yes" 1>&6
10204 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10205 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10206 cat >> confdefs.h <<EOF
10207 #define $ac_tr_lib 1
10210 LIBS="-lbind $LIBS"
10213 echo "$ac_t""no" 1>&6
10216 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10219 if test $ac_cv_func_res_query = no ; then
10220 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10221 echo "configure:10222: checking for __res_query in -lbind" >&5
10222 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10226 ac_save_LIBS="$LIBS"
10227 LIBS="-lbind $LIBS"
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 /* Override any gcc2 internal prototype to avoid an error. */
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10234 char __res_query();
10240 if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10242 eval "ac_cv_lib_$ac_lib_var=yes"
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10247 eval "ac_cv_lib_$ac_lib_var=no"
10250 LIBS="$ac_save_LIBS"
10253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10257 cat >> confdefs.h <<EOF
10258 #define $ac_tr_lib 1
10261 LIBS="-lbind $LIBS"
10264 echo "$ac_t""no" 1>&6
10267 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10270 if test $ac_cv_func_res_query = no ; then
10271 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10272 echo "configure:10273: checking for res_query in -lresolv" >&5
10273 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10274 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
10277 ac_save_LIBS="$LIBS"
10278 LIBS="-lresolv $LIBS"
10279 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10282 /* Override any gcc2 internal prototype to avoid an error. */
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10291 if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10293 eval "ac_cv_lib_$ac_lib_var=yes"
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10298 eval "ac_cv_lib_$ac_lib_var=no"
10301 LIBS="$ac_save_LIBS"
10304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10305 echo "$ac_t""yes" 1>&6
10306 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10308 cat >> confdefs.h <<EOF
10309 #define $ac_tr_lib 1
10312 LIBS="-lresolv $LIBS"
10315 echo "$ac_t""no" 1>&6
10318 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10321 if test $ac_cv_func_res_query = no ; then
10322 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10323 echo "configure:10324: checking for __res_query in -lresolv" >&5
10324 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10326 echo $ac_n "(cached) $ac_c" 1>&6
10328 ac_save_LIBS="$LIBS"
10329 LIBS="-lresolv $LIBS"
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 /* Override any gcc2 internal prototype to avoid an error. */
10334 /* We use char because int might match the return type of a gcc2
10335 builtin and then its argument prototype would still apply. */
10336 char __res_query();
10342 if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10344 eval "ac_cv_lib_$ac_lib_var=yes"
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10349 eval "ac_cv_lib_$ac_lib_var=no"
10352 LIBS="$ac_save_LIBS"
10355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10356 echo "$ac_t""yes" 1>&6
10357 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10359 cat >> confdefs.h <<EOF
10360 #define $ac_tr_lib 1
10363 LIBS="-lresolv $LIBS"
10366 echo "$ac_t""no" 1>&6
10369 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10372 if test $ac_cv_func_res_query = no ; then
10373 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
10374 echo "configure:10375: checking for _res_9_query in -lresolv" >&5
10375 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
10376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10379 ac_save_LIBS="$LIBS"
10380 LIBS="-lresolv $LIBS"
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10384 /* Override any gcc2 internal prototype to avoid an error. */
10385 /* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387 char _res_9_query();
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10395 eval "ac_cv_lib_$ac_lib_var=yes"
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 eval "ac_cv_lib_$ac_lib_var=no"
10403 LIBS="$ac_save_LIBS"
10406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10407 echo "$ac_t""yes" 1>&6
10408 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10409 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10410 cat >> confdefs.h <<EOF
10411 #define $ac_tr_lib 1
10414 LIBS="-lresolv $LIBS"
10417 echo "$ac_t""no" 1>&6
10420 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
10423 if test "$ac_cv_func_res_query" = yes ; then
10424 cat >> confdefs.h <<\EOF
10425 #define HAVE_RES_QUERY 1
10429 if test $ol_enable_dnssrv != no ; then
10434 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10435 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10438 for ac_func in hstrerror
10440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10441 echo "configure:10442: checking for $ac_func" >&5
10442 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10443 echo $ac_n "(cached) $ac_c" 1>&6
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 /* System header to define __stub macros and hopefully few prototypes,
10449 which can conflict with char $ac_func(); below. */
10450 #include <assert.h>
10451 /* Override any gcc2 internal prototype to avoid an error. */
10452 /* We use char because int might match the return type of a gcc2
10453 builtin and then its argument prototype would still apply. */
10459 /* The GNU C library defines this for functions which it implements
10460 to always fail with ENOSYS. Some functions are actually named
10461 something starting with __ and the normal name is an alias. */
10462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10470 if { (eval echo configure:10471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10472 eval "ac_cv_func_$ac_func=yes"
10474 echo "configure: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10477 eval "ac_cv_func_$ac_func=no"
10482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10483 echo "$ac_t""yes" 1>&6
10484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10485 cat >> confdefs.h <<EOF
10486 #define $ac_tr_func 1
10490 echo "$ac_t""no" 1>&6
10495 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10498 echo "configure:10499: checking for $ac_func" >&5
10499 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 /* System header to define __stub macros and hopefully few prototypes,
10506 which can conflict with char $ac_func(); below. */
10507 #include <assert.h>
10508 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10516 /* The GNU C library defines this for functions which it implements
10517 to always fail with ENOSYS. Some functions are actually named
10518 something starting with __ and the normal name is an alias. */
10519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10529 eval "ac_cv_func_$ac_func=yes"
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10534 eval "ac_cv_func_$ac_func=no"
10539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10540 echo "$ac_t""yes" 1>&6
10541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10542 cat >> confdefs.h <<EOF
10543 #define $ac_tr_func 1
10547 echo "$ac_t""no" 1>&6
10553 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10554 if test $ol_enable_ipv6 = yes ; then
10555 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10557 elif test $ol_enable_ipv6 != no ; then
10558 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10559 echo "configure:10560: checking INET6_ADDRSTRLEN" >&5
10560 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10568 # include <netinet/in.h>
10569 # ifdef INET6_ADDRSTRLEN
10570 __has_inet6_addrstrlen__;
10574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10575 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10577 ol_cv_inet6_addrstrlen=yes
10580 ol_cv_inet6_addrstrlen=no
10586 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10589 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10590 echo "configure:10591: checking struct sockaddr_storage" >&5
10591 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10595 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure"
10597 #include "confdefs.h"
10599 #include <sys/types.h>
10600 #include <sys/socket.h>
10604 struct sockaddr_storage ss;
10608 if { (eval echo configure:10609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10610 ol_cv_struct_sockaddr_storage=yes
10612 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 ol_cv_struct_sockaddr_storage=no
10620 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10622 if test $ol_cv_inet6_addrstrlen = yes \
10623 -a $ol_cv_struct_sockaddr_storage = yes ; then
10625 elif test $ol_enable_ipv6 = yes \
10626 -a $ol_cv_inet6_addrstrlen = no ; then
10627 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10628 elif test $ol_enable_ipv6 = yes \
10629 -a $ol_cv_struct_sockaddr_storage = no ; then
10630 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10634 if test $ol_enable_local != no ; then
10635 for ac_hdr in sys/un.h
10637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10639 echo "configure:10640: checking for $ac_hdr" >&5
10640 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10649 { (eval echo configure:10650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10651 if test -z "$ac_err"; then
10653 eval "ac_cv_header_$ac_safe=yes"
10656 echo "configure: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10659 eval "ac_cv_header_$ac_safe=no"
10663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
10665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10666 cat >> confdefs.h <<EOF
10667 #define $ac_tr_hdr 1
10671 echo "$ac_t""no" 1>&6
10676 if test $ol_enable_local = auto ; then
10677 ol_enable_local=$ac_cv_header_sys_un_h
10678 elif test $ac_cv_header_sys_un_h = no ; then
10679 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10687 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10688 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10689 -o $ol_with_kerberos = k425 ; then
10691 for ac_hdr in krb5.h
10693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10695 echo "configure:10696: checking for $ac_hdr" >&5
10696 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10705 { (eval echo configure:10706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10707 if test -z "$ac_err"; then
10709 eval "ac_cv_header_$ac_safe=yes"
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 eval "ac_cv_header_$ac_safe=no"
10719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
10721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10722 cat >> confdefs.h <<EOF
10723 #define $ac_tr_hdr 1
10727 echo "$ac_t""no" 1>&6
10732 if test $ac_cv_header_krb5_h = yes ; then
10733 for ac_hdr in heim_err.h
10735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10737 echo "configure:10738: checking for $ac_hdr" >&5
10738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10741 cat > conftest.$ac_ext <<EOF
10742 #line 10743 "configure"
10743 #include "confdefs.h"
10746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10747 { (eval echo configure:10748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10749 if test -z "$ac_err"; then
10751 eval "ac_cv_header_$ac_safe=yes"
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10757 eval "ac_cv_header_$ac_safe=no"
10761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10762 echo "$ac_t""yes" 1>&6
10763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10764 cat >> confdefs.h <<EOF
10765 #define $ac_tr_hdr 1
10769 echo "$ac_t""no" 1>&6
10773 if test $ac_cv_header_heim_err_h = yes ; then
10779 if test $krb5_impl = mit; then
10780 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10781 echo "configure:10782: checking for main in -lk5crypto" >&5
10782 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10783 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10786 ac_save_LIBS="$LIBS"
10787 LIBS="-lk5crypto $LIBS"
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10796 if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10798 eval "ac_cv_lib_$ac_lib_var=yes"
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10803 eval "ac_cv_lib_$ac_lib_var=no"
10806 LIBS="$ac_save_LIBS"
10809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10811 krb5crypto=k5crypto
10813 echo "$ac_t""no" 1>&6
10818 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10819 echo "configure:10820: checking for main in -lkrb5" >&5
10820 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10824 ac_save_LIBS="$LIBS"
10825 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10834 if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10836 eval "ac_cv_lib_$ac_lib_var=yes"
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10841 eval "ac_cv_lib_$ac_lib_var=no"
10844 LIBS="$ac_save_LIBS"
10847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10848 echo "$ac_t""yes" 1>&6
10850 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10852 echo "$ac_t""no" 1>&6
10857 elif test $krb5_impl = heimdal; then
10858 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10859 echo "configure:10860: checking for main in -ldes" >&5
10860 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10862 echo $ac_n "(cached) $ac_c" 1>&6
10864 ac_save_LIBS="$LIBS"
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10874 if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10876 eval "ac_cv_lib_$ac_lib_var=yes"
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10881 eval "ac_cv_lib_$ac_lib_var=no"
10884 LIBS="$ac_save_LIBS"
10887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10891 echo "$ac_t""no" 1>&6
10896 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10897 echo "configure:10898: checking for main in -lkrb5" >&5
10898 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10902 ac_save_LIBS="$LIBS"
10903 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 eval "ac_cv_lib_$ac_lib_var=no"
10922 LIBS="$ac_save_LIBS"
10925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10928 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10930 echo "$ac_t""no" 1>&6
10935 cat >> confdefs.h <<\EOF
10936 #define HAVE_HEIMDAL_KERBEROS 1
10942 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10945 if test $have_krb5 = yes ; then
10948 cat >> confdefs.h <<\EOF
10949 #define HAVE_KRB5 1
10953 if test $ol_with_kerberos = k5only ; then
10954 ol_with_kerberos=found
10957 elif test $ol_with_kerberos != auto ; then
10958 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10964 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10965 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10967 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10971 echo "configure:10972: checking for $ac_hdr" >&5
10972 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10981 { (eval echo configure:10982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10983 if test -z "$ac_err"; then
10985 eval "ac_cv_header_$ac_safe=yes"
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10991 eval "ac_cv_header_$ac_safe=no"
10995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10996 echo "$ac_t""yes" 1>&6
10997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10998 cat >> confdefs.h <<EOF
10999 #define $ac_tr_hdr 1
11003 echo "$ac_t""no" 1>&6
11008 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11009 if test $krb5_impl = mit; then
11010 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11011 echo "configure:11012: checking for main in -lkrb4" >&5
11012 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11016 ac_save_LIBS="$LIBS"
11017 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11018 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11028 eval "ac_cv_lib_$ac_lib_var=yes"
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11033 eval "ac_cv_lib_$ac_lib_var=no"
11036 LIBS="$ac_save_LIBS"
11039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11042 KRB4_LIBS="-lkrb4 -ldes425"
11044 echo "$ac_t""no" 1>&6
11049 elif test $krb5_impl = heimdal; then
11050 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11051 echo "configure:11052: checking for main in -lkrb4" >&5
11052 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11056 ac_save_LIBS="$LIBS"
11057 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11066 if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11068 eval "ac_cv_lib_$ac_lib_var=yes"
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 eval "ac_cv_lib_$ac_lib_var=no"
11076 LIBS="$ac_save_LIBS"
11079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11080 echo "$ac_t""yes" 1>&6
11084 echo "$ac_t""no" 1>&6
11091 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11094 if test $have_k425 = yes ; then
11095 ol_with_kerberos=found
11098 cat >> confdefs.h <<\EOF
11099 #define HAVE_KRB425 1
11102 cat >> confdefs.h <<\EOF
11103 #define HAVE_KRB4 1
11107 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11108 echo "configure:11109: checking for des_debug in Kerberos libraries" >&5
11109 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11114 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11119 #include <kerberosIV/krb.h>
11120 #include <kerberosIV/des.h>
11121 extern int des_debug;
11129 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11131 ol_cv_var_des_debug=yes
11133 echo "configure: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11136 ol_cv_var_des_debug=no
11143 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11145 if test $ol_cv_var_des_debug = yes ; then
11146 cat >> confdefs.h <<\EOF
11147 #define HAVE_DES_DEBUG 1
11157 if test $ol_link_krb5 = yes ; then
11158 ol_with_kerberos=found
11161 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11162 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11164 for ac_hdr in krb.h des.h krb-archaeology.h
11166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11168 echo "configure:11169: checking for $ac_hdr" >&5
11169 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11170 echo $ac_n "(cached) $ac_c" 1>&6
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11178 { (eval echo configure:11179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11180 if test -z "$ac_err"; then
11182 eval "ac_cv_header_$ac_safe=yes"
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11188 eval "ac_cv_header_$ac_safe=no"
11192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11193 echo "$ac_t""yes" 1>&6
11194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11195 cat >> confdefs.h <<EOF
11196 #define $ac_tr_hdr 1
11200 echo "$ac_t""no" 1>&6
11205 if test $ac_cv_header_krb_h = yes ; then
11206 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11207 echo "configure:11208: checking for main in -lkrb" >&5
11208 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11209 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11212 ac_save_LIBS="$LIBS"
11213 LIBS="-lkrb -ldes $LIBS"
11214 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure"
11216 #include "confdefs.h"
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 eval "ac_cv_lib_$ac_lib_var=yes"
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 eval "ac_cv_lib_$ac_lib_var=no"
11232 LIBS="$ac_save_LIBS"
11235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11239 echo "$ac_t""no" 1>&6
11244 if test $have_k4 = yes ; then
11245 ol_with_kerberos=found
11248 cat >> confdefs.h <<\EOF
11249 #define HAVE_KRB4 1
11253 KRB4_LIBS="-lkrb -ldes"
11255 if test $ac_cv_header_krb_archaeology_h = yes ; then
11256 cat >> confdefs.h <<\EOF
11257 #define HAVE_KTH_KERBEROS 1
11265 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11268 elif test $ol_enable_kbind = yes ; then
11269 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11272 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11273 cat >> confdefs.h <<\EOF
11274 #define HAVE_KERBEROS 1
11278 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11279 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11284 if test $ol_with_tls != no ; then
11285 for ac_hdr in openssl/ssl.h ssl.h
11287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11289 echo "configure:11290: checking for $ac_hdr" >&5
11290 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11293 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure"
11295 #include "confdefs.h"
11298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11299 { (eval echo configure:11300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11301 if test -z "$ac_err"; then
11303 eval "ac_cv_header_$ac_safe=yes"
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 eval "ac_cv_header_$ac_safe=no"
11313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11314 echo "$ac_t""yes" 1>&6
11315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11316 cat >> confdefs.h <<EOF
11317 #define $ac_tr_hdr 1
11321 echo "$ac_t""no" 1>&6
11326 if test $ac_cv_header_openssl_ssl_h = yes \
11327 -o $ac_cv_header_ssl_h = yes ; then
11328 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11329 echo "configure:11330: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11330 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11331 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11332 echo $ac_n "(cached) $ac_c" 1>&6
11334 ac_save_LIBS="$LIBS"
11335 LIBS="-lssl -lcrypto $LIBS"
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11339 /* Override any gcc2 internal prototype to avoid an error. */
11340 /* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11342 char SSLeay_add_ssl_algorithms();
11345 SSLeay_add_ssl_algorithms()
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11350 eval "ac_cv_lib_$ac_lib_var=yes"
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11355 eval "ac_cv_lib_$ac_lib_var=no"
11358 LIBS="$ac_save_LIBS"
11361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11362 echo "$ac_t""yes" 1>&6
11366 echo "$ac_t""no" 1>&6
11371 if test $have_ssleay = no ; then
11372 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11373 echo "configure:11374: checking for SSL_library_init in -lssl" >&5
11374 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11376 echo $ac_n "(cached) $ac_c" 1>&6
11378 ac_save_LIBS="$LIBS"
11379 LIBS="-lssl -lcrypto $LIBS"
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11382 "configure"
11382 #include "confdefs.h"
11383 /* Override any gcc2 internal prototype to avoid an error. */
11384 /* We use char because int might match the return type of a gcc2
11385 builtin and then its argument prototype would still apply. */
11386 char SSL_library_init();
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11394 eval "ac_cv_lib_$ac_lib_var=yes"
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11399 eval "ac_cv_lib_$ac_lib_var=no"
11402 LIBS="$ac_save_LIBS"
11405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11406 echo "$ac_t""yes" 1>&6
11410 echo "$ac_t""no" 1>&6
11416 if test $have_ssleay = no ; then
11417 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11418 echo "configure:11419: checking for ssl3_accept in -lssl" >&5
11419 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11423 ac_save_LIBS="$LIBS"
11424 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11428 /* Override any gcc2 internal prototype to avoid an error. */
11429 /* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431 char ssl3_accept();
11437 if { (eval echo configure:11438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11439 eval "ac_cv_lib_$ac_lib_var=yes"
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11444 eval "ac_cv_lib_$ac_lib_var=no"
11447 LIBS="$ac_save_LIBS"
11450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11451 echo "$ac_t""yes" 1>&6
11455 echo "$ac_t""no" 1>&6
11461 if test $have_ssleay = yes ; then
11465 cat >> confdefs.h <<\EOF
11466 #define HAVE_SSLEAY 1
11470 if test $need_rsaref = yes; then
11471 cat >> confdefs.h <<\EOF
11472 #define HAVE_RSAREF 1
11476 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11478 TLS_LIBS="-lssl -lcrypto"
11484 echo "configure: warning: TLS data protection not supported!" 1>&2
11488 if test $ol_link_tls = yes ; then
11489 cat >> confdefs.h <<\EOF
11495 elif test $ol_with_tls = auto ; then
11496 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11497 echo "configure: warning: TLS data protection not supported!" 1>&2
11499 elif test $ol_with_tls != no ; then
11500 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11503 if test $ol_enable_lmpasswd != no; then
11504 if test $ol_link_tls != yes ; then
11505 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11508 cat >> confdefs.h <<\EOF
11509 #define SLAPD_LMHASH 1
11516 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11517 -o $ol_with_threads = nt ; then
11520 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11521 echo "configure:11522: checking for _beginthread" >&5
11522 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char _beginthread(); below. */
11530 #include <assert.h>
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char _beginthread();
11539 /* The GNU C library defines this for functions which it implements
11540 to always fail with ENOSYS. Some functions are actually named
11541 something starting with __ and the normal name is an alias. */
11542 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11550 if { (eval echo configure:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11552 eval "ac_cv_func__beginthread=yes"
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11557 eval "ac_cv_func__beginthread=no"
11562 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11563 echo "$ac_t""yes" 1>&6
11566 echo "$ac_t""no" 1>&6
11570 if test $ac_cv_func__beginthread = yes ; then
11571 cat >> confdefs.h <<\EOF
11572 #define HAVE_NT_THREADS 1
11575 ol_cv_nt_threads=yes
11579 if test "$ol_cv_nt_threads" = yes ; then
11581 ol_with_threads=found
11582 ol_with_yielding_select=yes
11584 cat >> confdefs.h <<\EOF
11585 #define HAVE_NT_SERVICE_MANAGER 1
11588 cat >> confdefs.h <<\EOF
11589 #define HAVE_NT_EVENT_LOG 1
11594 if test $ol_with_threads = nt ; then
11595 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11599 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11600 -o $ol_with_threads = posix ; then
11602 for ac_hdr in pthread.h
11604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11606 echo "configure:11607: checking for $ac_hdr" >&5
11607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11608 echo $ac_n "(cached) $ac_c" 1>&6
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11616 { (eval echo configure:11617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11618 if test -z "$ac_err"; then
11620 eval "ac_cv_header_$ac_safe=yes"
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11626 eval "ac_cv_header_$ac_safe=no"
11630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11633 cat >> confdefs.h <<EOF
11634 #define $ac_tr_hdr 1
11638 echo "$ac_t""no" 1>&6
11643 if test $ac_cv_header_pthread_h = yes ; then
11644 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11645 echo "configure:11646: checking POSIX thread version" >&5
11646 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11654 # include <pthread.h>
11658 int i = PTHREAD_CREATE_JOINABLE;
11662 if { (eval echo configure:11663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 #include <pthread.h>
11670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11671 egrep "pthread_detach" >/dev/null 2>&1; then
11673 ol_cv_pthread_version=10
11676 ol_cv_pthread_version=8
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11689 # include <pthread.h>
11690 # ifdef PTHREAD_CREATE_UNDETACHED
11695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11696 egrep "draft7" >/dev/null 2>&1; then
11698 ol_cv_pthread_version=7
11702 cat > conftest.$ac_ext <<EOF
11703 #line 11704 "configure"
11704 #include "confdefs.h"
11705 #include <pthread.h>
11707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11708 egrep "pthread_attr_init" >/dev/null 2>&1; then
11710 ol_cv_pthread_version=6
11714 cat > conftest.$ac_ext <<EOF
11715 #line 11716 "configure"
11716 #include "confdefs.h"
11718 # include <pthread.h>
11719 #ifdef PTHREAD_MUTEX_INITIALIZER
11724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11725 egrep "draft5" >/dev/null 2>&1; then
11727 ol_cv_pthread_version=5
11730 ol_cv_pthread_version=4
11745 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11748 if test $ol_cv_pthread_version != 0 ; then
11749 cat >> confdefs.h <<EOF
11750 #define HAVE_PTHREADS $ol_cv_pthread_version
11754 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11757 # consider threads found
11758 ol_with_threads=found
11761 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11762 echo "configure:11763: checking for LinuxThreads pthread.h" >&5
11763 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11764 echo $ac_n "(cached) $ac_c" 1>&6
11766 cat > conftest.$ac_ext <<EOF
11767 #line 11768 "configure"
11768 #include "confdefs.h"
11769 #include <pthread.h>
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11774 ol_cv_header_linux_threads=yes
11777 ol_cv_header_linux_threads=no
11784 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11785 if test $ol_cv_header_linux_threads = yes; then
11786 cat >> confdefs.h <<\EOF
11787 #define HAVE_LINUX_THREADS 1
11793 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11794 echo "configure:11795: checking for GNU Pth pthread.h" >&5
11795 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11796 echo $ac_n "(cached) $ac_c" 1>&6
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 #include <pthread.h>
11802 #ifdef _POSIX_THREAD_IS_GNU_PTH
11807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11808 egrep "__gnu_pth__" >/dev/null 2>&1; then
11810 ol_cv_header_gnu_pth_pthread_h=yes
11813 ol_cv_header_gnu_pth_pthread_h=no
11820 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11823 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11824 for ac_hdr in sched.h
11826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11828 echo "configure:11829: checking for $ac_hdr" >&5
11829 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11838 { (eval echo configure:11839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11840 if test -z "$ac_err"; then
11842 eval "ac_cv_header_$ac_safe=yes"
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11848 eval "ac_cv_header_$ac_safe=no"
11852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11853 echo "$ac_t""yes" 1>&6
11854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11855 cat >> confdefs.h <<EOF
11856 #define $ac_tr_hdr 1
11860 echo "$ac_t""no" 1>&6
11867 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11868 echo "configure:11869: checking for pthread_create in default libraries" >&5
11869 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11870 echo $ac_n "(cached) $ac_c" 1>&6
11873 if test "$cross_compiling" = yes; then
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* pthread test headers */
11878 #include <pthread.h>
11879 #if HAVE_PTHREADS < 7
11883 #define NULL (void*)0
11886 static void *task(p)
11889 return (void *) (p == NULL);
11894 /* pthread test function */
11895 #ifndef PTHREAD_CREATE_DETACHED
11896 #define PTHREAD_CREATE_DETACHED 1
11900 int detach = PTHREAD_CREATE_DETACHED;
11902 #if HAVE_PTHREADS > 4
11903 /* Final pthreads */
11904 pthread_attr_t attr;
11906 status = pthread_attr_init(&attr);
11907 if( status ) return status;
11909 #if HAVE_PTHREADS < 7
11910 status = pthread_attr_setdetachstate(&attr, &detach);
11911 if( status < 0 ) status = errno;
11913 status = pthread_attr_setdetachstate(&attr, detach);
11915 if( status ) return status;
11916 status = pthread_create( &t, &attr, task, NULL );
11917 #if HAVE_PTHREADS < 7
11918 if( status < 0 ) status = errno;
11920 if( status ) return status;
11922 /* Draft 4 pthreads */
11923 status = pthread_create( &t, pthread_attr_default, task, NULL );
11924 if( status ) return errno;
11926 /* give thread a chance to complete */
11927 /* it should remain joinable and hence detachable */
11930 status = pthread_detach( &t );
11931 if( status ) return errno;
11934 #ifdef HAVE_LINUX_THREADS
11935 pthread_kill_other_threads_np();
11942 if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944 ol_cv_pthread_create=yes
11946 echo "configure: failed program was:" >&5
11947 cat conftest.$ac_ext >&5
11949 ol_cv_pthread_create=no
11953 cat > conftest.$ac_ext <<EOF
11954 #line 11955 "configure"
11955 #include "confdefs.h"
11956 /* pthread test headers */
11957 #include <pthread.h>
11958 #if HAVE_PTHREADS < 7
11962 #define NULL (void*)0
11965 static void *task(p)
11968 return (void *) (p == NULL);
11972 int main(argc, argv)
11977 /* pthread test function */
11978 #ifndef PTHREAD_CREATE_DETACHED
11979 #define PTHREAD_CREATE_DETACHED 1
11983 int detach = PTHREAD_CREATE_DETACHED;
11985 #if HAVE_PTHREADS > 4
11986 /* Final pthreads */
11987 pthread_attr_t attr;
11989 status = pthread_attr_init(&attr);
11990 if( status ) return status;
11992 #if HAVE_PTHREADS < 7
11993 status = pthread_attr_setdetachstate(&attr, &detach);
11994 if( status < 0 ) status = errno;
11996 status = pthread_attr_setdetachstate(&attr, detach);
11998 if( status ) return status;
11999 status = pthread_create( &t, &attr, task, NULL );
12000 #if HAVE_PTHREADS < 7
12001 if( status < 0 ) status = errno;
12003 if( status ) return status;
12005 /* Draft 4 pthreads */
12006 status = pthread_create( &t, pthread_attr_default, task, NULL );
12007 if( status ) return errno;
12009 /* give thread a chance to complete */
12010 /* it should remain joinable and hence detachable */
12013 status = pthread_detach( &t );
12014 if( status ) return errno;
12017 #ifdef HAVE_LINUX_THREADS
12018 pthread_kill_other_threads_np();
12026 if { (eval echo configure:12027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12028 ol_cv_pthread_create=yes
12030 echo "configure: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12033 ol_cv_pthread_create=no
12040 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12042 if test $ol_cv_pthread_create != no ; then
12043 ol_link_threads=posix
12044 ol_link_pthreads=""
12047 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12048 if test "$ol_link_threads" = no ; then
12050 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12051 echo "configure:12052: checking for pthread link with -kthread" >&5
12052 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12058 LIBS="-kthread $LIBS"
12060 if test "$cross_compiling" = yes; then
12061 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 /* pthread test headers */
12065 #include <pthread.h>
12066 #if HAVE_PTHREADS < 7
12070 #define NULL (void*)0
12073 static void *task(p)
12076 return (void *) (p == NULL);
12081 /* pthread test function */
12082 #ifndef PTHREAD_CREATE_DETACHED
12083 #define PTHREAD_CREATE_DETACHED 1
12087 int detach = PTHREAD_CREATE_DETACHED;
12089 #if HAVE_PTHREADS > 4
12090 /* Final pthreads */
12091 pthread_attr_t attr;
12093 status = pthread_attr_init(&attr);
12094 if( status ) return status;
12096 #if HAVE_PTHREADS < 7
12097 status = pthread_attr_setdetachstate(&attr, &detach);
12098 if( status < 0 ) status = errno;
12100 status = pthread_attr_setdetachstate(&attr, detach);
12102 if( status ) return status;
12103 status = pthread_create( &t, &attr, task, NULL );
12104 #if HAVE_PTHREADS < 7
12105 if( status < 0 ) status = errno;
12107 if( status ) return status;
12109 /* Draft 4 pthreads */
12110 status = pthread_create( &t, pthread_attr_default, task, NULL );
12111 if( status ) return errno;
12113 /* give thread a chance to complete */
12114 /* it should remain joinable and hence detachable */
12117 status = pthread_detach( &t );
12118 if( status ) return errno;
12121 #ifdef HAVE_LINUX_THREADS
12122 pthread_kill_other_threads_np();
12129 if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12131 ol_cv_pthread_kthread=yes
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12136 ol_cv_pthread_kthread=no
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 /* pthread test headers */
12144 #include <pthread.h>
12145 #if HAVE_PTHREADS < 7
12149 #define NULL (void*)0
12152 static void *task(p)
12155 return (void *) (p == NULL);
12159 int main(argc, argv)
12164 /* pthread test function */
12165 #ifndef PTHREAD_CREATE_DETACHED
12166 #define PTHREAD_CREATE_DETACHED 1
12170 int detach = PTHREAD_CREATE_DETACHED;
12172 #if HAVE_PTHREADS > 4
12173 /* Final pthreads */
12174 pthread_attr_t attr;
12176 status = pthread_attr_init(&attr);
12177 if( status ) return status;
12179 #if HAVE_PTHREADS < 7
12180 status = pthread_attr_setdetachstate(&attr, &detach);
12181 if( status < 0 ) status = errno;
12183 status = pthread_attr_setdetachstate(&attr, detach);
12185 if( status ) return status;
12186 status = pthread_create( &t, &attr, task, NULL );
12187 #if HAVE_PTHREADS < 7
12188 if( status < 0 ) status = errno;
12190 if( status ) return status;
12192 /* Draft 4 pthreads */
12193 status = pthread_create( &t, pthread_attr_default, task, NULL );
12194 if( status ) return errno;
12196 /* give thread a chance to complete */
12197 /* it should remain joinable and hence detachable */
12200 status = pthread_detach( &t );
12201 if( status ) return errno;
12204 #ifdef HAVE_LINUX_THREADS
12205 pthread_kill_other_threads_np();
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12215 ol_cv_pthread_kthread=yes
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12220 ol_cv_pthread_kthread=no
12231 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12233 if test $ol_cv_pthread_kthread = yes ; then
12234 ol_link_pthreads="-kthread"
12235 ol_link_threads=posix
12239 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12240 if test "$ol_link_threads" = no ; then
12242 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12243 echo "configure:12244: checking for pthread link with -pthread" >&5
12244 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12250 LIBS="-pthread $LIBS"
12252 if test "$cross_compiling" = yes; then
12253 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure"
12255 #include "confdefs.h"
12256 /* pthread test headers */
12257 #include <pthread.h>
12258 #if HAVE_PTHREADS < 7
12262 #define NULL (void*)0
12265 static void *task(p)
12268 return (void *) (p == NULL);
12273 /* pthread test function */
12274 #ifndef PTHREAD_CREATE_DETACHED
12275 #define PTHREAD_CREATE_DETACHED 1
12279 int detach = PTHREAD_CREATE_DETACHED;
12281 #if HAVE_PTHREADS > 4
12282 /* Final pthreads */
12283 pthread_attr_t attr;
12285 status = pthread_attr_init(&attr);
12286 if( status ) return status;
12288 #if HAVE_PTHREADS < 7
12289 status = pthread_attr_setdetachstate(&attr, &detach);
12290 if( status < 0 ) status = errno;
12292 status = pthread_attr_setdetachstate(&attr, detach);
12294 if( status ) return status;
12295 status = pthread_create( &t, &attr, task, NULL );
12296 #if HAVE_PTHREADS < 7
12297 if( status < 0 ) status = errno;
12299 if( status ) return status;
12301 /* Draft 4 pthreads */
12302 status = pthread_create( &t, pthread_attr_default, task, NULL );
12303 if( status ) return errno;
12305 /* give thread a chance to complete */
12306 /* it should remain joinable and hence detachable */
12309 status = pthread_detach( &t );
12310 if( status ) return errno;
12313 #ifdef HAVE_LINUX_THREADS
12314 pthread_kill_other_threads_np();
12321 if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12323 ol_cv_pthread_pthread=yes
12325 echo "configure: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12328 ol_cv_pthread_pthread=no
12332 cat > conftest.$ac_ext <<EOF
12333 #line 12334 "configure"
12334 #include "confdefs.h"
12335 /* pthread test headers */
12336 #include <pthread.h>
12337 #if HAVE_PTHREADS < 7
12341 #define NULL (void*)0
12344 static void *task(p)
12347 return (void *) (p == NULL);
12351 int main(argc, argv)
12356 /* pthread test function */
12357 #ifndef PTHREAD_CREATE_DETACHED
12358 #define PTHREAD_CREATE_DETACHED 1
12362 int detach = PTHREAD_CREATE_DETACHED;
12364 #if HAVE_PTHREADS > 4
12365 /* Final pthreads */
12366 pthread_attr_t attr;
12368 status = pthread_attr_init(&attr);
12369 if( status ) return status;
12371 #if HAVE_PTHREADS < 7
12372 status = pthread_attr_setdetachstate(&attr, &detach);
12373 if( status < 0 ) status = errno;
12375 status = pthread_attr_setdetachstate(&attr, detach);
12377 if( status ) return status;
12378 status = pthread_create( &t, &attr, task, NULL );
12379 #if HAVE_PTHREADS < 7
12380 if( status < 0 ) status = errno;
12382 if( status ) return status;
12384 /* Draft 4 pthreads */
12385 status = pthread_create( &t, pthread_attr_default, task, NULL );
12386 if( status ) return errno;
12388 /* give thread a chance to complete */
12389 /* it should remain joinable and hence detachable */
12392 status = pthread_detach( &t );
12393 if( status ) return errno;
12396 #ifdef HAVE_LINUX_THREADS
12397 pthread_kill_other_threads_np();
12405 if { (eval echo configure:12406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12407 ol_cv_pthread_pthread=yes
12409 echo "configure: failed program was:" >&5
12410 cat conftest.$ac_ext >&5
12412 ol_cv_pthread_pthread=no
12423 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12425 if test $ol_cv_pthread_pthread = yes ; then
12426 ol_link_pthreads="-pthread"
12427 ol_link_threads=posix
12431 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12432 if test "$ol_link_threads" = no ; then
12434 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12435 echo "configure:12436: checking for pthread link with -pthreads" >&5
12436 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12437 echo $ac_n "(cached) $ac_c" 1>&6
12442 LIBS="-pthreads $LIBS"
12444 if test "$cross_compiling" = yes; then
12445 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 /* pthread test headers */
12449 #include <pthread.h>
12450 #if HAVE_PTHREADS < 7
12454 #define NULL (void*)0
12457 static void *task(p)
12460 return (void *) (p == NULL);
12465 /* pthread test function */
12466 #ifndef PTHREAD_CREATE_DETACHED
12467 #define PTHREAD_CREATE_DETACHED 1
12471 int detach = PTHREAD_CREATE_DETACHED;
12473 #if HAVE_PTHREADS > 4
12474 /* Final pthreads */
12475 pthread_attr_t attr;
12477 status = pthread_attr_init(&attr);
12478 if( status ) return status;
12480 #if HAVE_PTHREADS < 7
12481 status = pthread_attr_setdetachstate(&attr, &detach);
12482 if( status < 0 ) status = errno;
12484 status = pthread_attr_setdetachstate(&attr, detach);
12486 if( status ) return status;
12487 status = pthread_create( &t, &attr, task, NULL );
12488 #if HAVE_PTHREADS < 7
12489 if( status < 0 ) status = errno;
12491 if( status ) return status;
12493 /* Draft 4 pthreads */
12494 status = pthread_create( &t, pthread_attr_default, task, NULL );
12495 if( status ) return errno;
12497 /* give thread a chance to complete */
12498 /* it should remain joinable and hence detachable */
12501 status = pthread_detach( &t );
12502 if( status ) return errno;
12505 #ifdef HAVE_LINUX_THREADS
12506 pthread_kill_other_threads_np();
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 ol_cv_pthread_pthreads=yes
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 ol_cv_pthread_pthreads=no
12524 cat > conftest.$ac_ext <<EOF
12525 #line 12526 "configure"
12526 #include "confdefs.h"
12527 /* pthread test headers */
12528 #include <pthread.h>
12529 #if HAVE_PTHREADS < 7
12533 #define NULL (void*)0
12536 static void *task(p)
12539 return (void *) (p == NULL);
12543 int main(argc, argv)
12548 /* pthread test function */
12549 #ifndef PTHREAD_CREATE_DETACHED
12550 #define PTHREAD_CREATE_DETACHED 1
12554 int detach = PTHREAD_CREATE_DETACHED;
12556 #if HAVE_PTHREADS > 4
12557 /* Final pthreads */
12558 pthread_attr_t attr;
12560 status = pthread_attr_init(&attr);
12561 if( status ) return status;
12563 #if HAVE_PTHREADS < 7
12564 status = pthread_attr_setdetachstate(&attr, &detach);
12565 if( status < 0 ) status = errno;
12567 status = pthread_attr_setdetachstate(&attr, detach);
12569 if( status ) return status;
12570 status = pthread_create( &t, &attr, task, NULL );
12571 #if HAVE_PTHREADS < 7
12572 if( status < 0 ) status = errno;
12574 if( status ) return status;
12576 /* Draft 4 pthreads */
12577 status = pthread_create( &t, pthread_attr_default, task, NULL );
12578 if( status ) return errno;
12580 /* give thread a chance to complete */
12581 /* it should remain joinable and hence detachable */
12584 status = pthread_detach( &t );
12585 if( status ) return errno;
12588 #ifdef HAVE_LINUX_THREADS
12589 pthread_kill_other_threads_np();
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12599 ol_cv_pthread_pthreads=yes
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12604 ol_cv_pthread_pthreads=no
12615 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12617 if test $ol_cv_pthread_pthreads = yes ; then
12618 ol_link_pthreads="-pthreads"
12619 ol_link_threads=posix
12623 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12624 if test "$ol_link_threads" = no ; then
12626 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12627 echo "configure:12628: checking for pthread link with -mthreads" >&5
12628 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12629 echo $ac_n "(cached) $ac_c" 1>&6
12634 LIBS="-mthreads $LIBS"
12636 if test "$cross_compiling" = yes; then
12637 cat > conftest.$ac_ext <<EOF
12638 #line 12639 "configure"
12639 #include "confdefs.h"
12640 /* pthread test headers */
12641 #include <pthread.h>
12642 #if HAVE_PTHREADS < 7
12646 #define NULL (void*)0
12649 static void *task(p)
12652 return (void *) (p == NULL);
12657 /* pthread test function */
12658 #ifndef PTHREAD_CREATE_DETACHED
12659 #define PTHREAD_CREATE_DETACHED 1
12663 int detach = PTHREAD_CREATE_DETACHED;
12665 #if HAVE_PTHREADS > 4
12666 /* Final pthreads */
12667 pthread_attr_t attr;
12669 status = pthread_attr_init(&attr);
12670 if( status ) return status;
12672 #if HAVE_PTHREADS < 7
12673 status = pthread_attr_setdetachstate(&attr, &detach);
12674 if( status < 0 ) status = errno;
12676 status = pthread_attr_setdetachstate(&attr, detach);
12678 if( status ) return status;
12679 status = pthread_create( &t, &attr, task, NULL );
12680 #if HAVE_PTHREADS < 7
12681 if( status < 0 ) status = errno;
12683 if( status ) return status;
12685 /* Draft 4 pthreads */
12686 status = pthread_create( &t, pthread_attr_default, task, NULL );
12687 if( status ) return errno;
12689 /* give thread a chance to complete */
12690 /* it should remain joinable and hence detachable */
12693 status = pthread_detach( &t );
12694 if( status ) return errno;
12697 #ifdef HAVE_LINUX_THREADS
12698 pthread_kill_other_threads_np();
12705 if { (eval echo configure:12706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12707 ol_cv_pthread_mthreads=yes
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 ol_cv_pthread_mthreads=no
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* pthread test headers */
12720 #include <pthread.h>
12721 #if HAVE_PTHREADS < 7
12725 #define NULL (void*)0
12728 static void *task(p)
12731 return (void *) (p == NULL);
12735 int main(argc, argv)
12740 /* pthread test function */
12741 #ifndef PTHREAD_CREATE_DETACHED
12742 #define PTHREAD_CREATE_DETACHED 1
12746 int detach = PTHREAD_CREATE_DETACHED;
12748 #if HAVE_PTHREADS > 4
12749 /* Final pthreads */
12750 pthread_attr_t attr;
12752 status = pthread_attr_init(&attr);
12753 if( status ) return status;
12755 #if HAVE_PTHREADS < 7
12756 status = pthread_attr_setdetachstate(&attr, &detach);
12757 if( status < 0 ) status = errno;
12759 status = pthread_attr_setdetachstate(&attr, detach);
12761 if( status ) return status;
12762 status = pthread_create( &t, &attr, task, NULL );
12763 #if HAVE_PTHREADS < 7
12764 if( status < 0 ) status = errno;
12766 if( status ) return status;
12768 /* Draft 4 pthreads */
12769 status = pthread_create( &t, pthread_attr_default, task, NULL );
12770 if( status ) return errno;
12772 /* give thread a chance to complete */
12773 /* it should remain joinable and hence detachable */
12776 status = pthread_detach( &t );
12777 if( status ) return errno;
12780 #ifdef HAVE_LINUX_THREADS
12781 pthread_kill_other_threads_np();
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12791 ol_cv_pthread_mthreads=yes
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 ol_cv_pthread_mthreads=no
12807 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12809 if test $ol_cv_pthread_mthreads = yes ; then
12810 ol_link_pthreads="-mthreads"
12811 ol_link_threads=posix
12815 # Pthread try link: -thread (ol_cv_pthread_thread)
12816 if test "$ol_link_threads" = no ; then
12818 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12819 echo "configure:12820: checking for pthread link with -thread" >&5
12820 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12821 echo $ac_n "(cached) $ac_c" 1>&6
12826 LIBS="-thread $LIBS"
12828 if test "$cross_compiling" = yes; then
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 /* pthread test headers */
12833 #include <pthread.h>
12834 #if HAVE_PTHREADS < 7
12838 #define NULL (void*)0
12841 static void *task(p)
12844 return (void *) (p == NULL);
12849 /* pthread test function */
12850 #ifndef PTHREAD_CREATE_DETACHED
12851 #define PTHREAD_CREATE_DETACHED 1
12855 int detach = PTHREAD_CREATE_DETACHED;
12857 #if HAVE_PTHREADS > 4
12858 /* Final pthreads */
12859 pthread_attr_t attr;
12861 status = pthread_attr_init(&attr);
12862 if( status ) return status;
12864 #if HAVE_PTHREADS < 7
12865 status = pthread_attr_setdetachstate(&attr, &detach);
12866 if( status < 0 ) status = errno;
12868 status = pthread_attr_setdetachstate(&attr, detach);
12870 if( status ) return status;
12871 status = pthread_create( &t, &attr, task, NULL );
12872 #if HAVE_PTHREADS < 7
12873 if( status < 0 ) status = errno;
12875 if( status ) return status;
12877 /* Draft 4 pthreads */
12878 status = pthread_create( &t, pthread_attr_default, task, NULL );
12879 if( status ) return errno;
12881 /* give thread a chance to complete */
12882 /* it should remain joinable and hence detachable */
12885 status = pthread_detach( &t );
12886 if( status ) return errno;
12889 #ifdef HAVE_LINUX_THREADS
12890 pthread_kill_other_threads_np();
12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 ol_cv_pthread_thread=yes
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12904 ol_cv_pthread_thread=no
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 /* pthread test headers */
12912 #include <pthread.h>
12913 #if HAVE_PTHREADS < 7
12917 #define NULL (void*)0
12920 static void *task(p)
12923 return (void *) (p == NULL);
12927 int main(argc, argv)
12932 /* pthread test function */
12933 #ifndef PTHREAD_CREATE_DETACHED
12934 #define PTHREAD_CREATE_DETACHED 1
12938 int detach = PTHREAD_CREATE_DETACHED;
12940 #if HAVE_PTHREADS > 4
12941 /* Final pthreads */
12942 pthread_attr_t attr;
12944 status = pthread_attr_init(&attr);
12945 if( status ) return status;
12947 #if HAVE_PTHREADS < 7
12948 status = pthread_attr_setdetachstate(&attr, &detach);
12949 if( status < 0 ) status = errno;
12951 status = pthread_attr_setdetachstate(&attr, detach);
12953 if( status ) return status;
12954 status = pthread_create( &t, &attr, task, NULL );
12955 #if HAVE_PTHREADS < 7
12956 if( status < 0 ) status = errno;
12958 if( status ) return status;
12960 /* Draft 4 pthreads */
12961 status = pthread_create( &t, pthread_attr_default, task, NULL );
12962 if( status ) return errno;
12964 /* give thread a chance to complete */
12965 /* it should remain joinable and hence detachable */
12968 status = pthread_detach( &t );
12969 if( status ) return errno;
12972 #ifdef HAVE_LINUX_THREADS
12973 pthread_kill_other_threads_np();
12981 if { (eval echo configure:12982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12983 ol_cv_pthread_thread=yes
12985 echo "configure: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12988 ol_cv_pthread_thread=no
12999 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13001 if test $ol_cv_pthread_thread = yes ; then
13002 ol_link_pthreads="-thread"
13003 ol_link_threads=posix
13008 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13009 if test "$ol_link_threads" = no ; then
13010 # try -lpthread -lmach -lexc -lc_r
13011 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13012 echo "configure:13013: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13013 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13014 echo $ac_n "(cached) $ac_c" 1>&6
13019 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13021 if test "$cross_compiling" = yes; then
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 /* pthread test headers */
13026 #include <pthread.h>
13027 #if HAVE_PTHREADS < 7
13031 #define NULL (void*)0
13034 static void *task(p)
13037 return (void *) (p == NULL);
13042 /* pthread test function */
13043 #ifndef PTHREAD_CREATE_DETACHED
13044 #define PTHREAD_CREATE_DETACHED 1
13048 int detach = PTHREAD_CREATE_DETACHED;
13050 #if HAVE_PTHREADS > 4
13051 /* Final pthreads */
13052 pthread_attr_t attr;
13054 status = pthread_attr_init(&attr);
13055 if( status ) return status;
13057 #if HAVE_PTHREADS < 7
13058 status = pthread_attr_setdetachstate(&attr, &detach);
13059 if( status < 0 ) status = errno;
13061 status = pthread_attr_setdetachstate(&attr, detach);
13063 if( status ) return status;
13064 status = pthread_create( &t, &attr, task, NULL );
13065 #if HAVE_PTHREADS < 7
13066 if( status < 0 ) status = errno;
13068 if( status ) return status;
13070 /* Draft 4 pthreads */
13071 status = pthread_create( &t, pthread_attr_default, task, NULL );
13072 if( status ) return errno;
13074 /* give thread a chance to complete */
13075 /* it should remain joinable and hence detachable */
13078 status = pthread_detach( &t );
13079 if( status ) return errno;
13082 #ifdef HAVE_LINUX_THREADS
13083 pthread_kill_other_threads_np();
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13097 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13101 cat > conftest.$ac_ext <<EOF
13102 #line 13103 "configure"
13103 #include "confdefs.h"
13104 /* pthread test headers */
13105 #include <pthread.h>
13106 #if HAVE_PTHREADS < 7
13110 #define NULL (void*)0
13113 static void *task(p)
13116 return (void *) (p == NULL);
13120 int main(argc, argv)
13125 /* pthread test function */
13126 #ifndef PTHREAD_CREATE_DETACHED
13127 #define PTHREAD_CREATE_DETACHED 1
13131 int detach = PTHREAD_CREATE_DETACHED;
13133 #if HAVE_PTHREADS > 4
13134 /* Final pthreads */
13135 pthread_attr_t attr;
13137 status = pthread_attr_init(&attr);
13138 if( status ) return status;
13140 #if HAVE_PTHREADS < 7
13141 status = pthread_attr_setdetachstate(&attr, &detach);
13142 if( status < 0 ) status = errno;
13144 status = pthread_attr_setdetachstate(&attr, detach);
13146 if( status ) return status;
13147 status = pthread_create( &t, &attr, task, NULL );
13148 #if HAVE_PTHREADS < 7
13149 if( status < 0 ) status = errno;
13151 if( status ) return status;
13153 /* Draft 4 pthreads */
13154 status = pthread_create( &t, pthread_attr_default, task, NULL );
13155 if( status ) return errno;
13157 /* give thread a chance to complete */
13158 /* it should remain joinable and hence detachable */
13161 status = pthread_detach( &t );
13162 if( status ) return errno;
13165 #ifdef HAVE_LINUX_THREADS
13166 pthread_kill_other_threads_np();
13174 if { (eval echo configure:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13176 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13178 echo "configure: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13181 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13192 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13194 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13195 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13196 ol_link_threads=posix
13200 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13201 if test "$ol_link_threads" = no ; then
13202 # try -lpthread -lmach -lexc
13203 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13204 echo "configure:13205: checking for pthread link with -lpthread -lmach -lexc" >&5
13205 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13211 LIBS="-lpthread -lmach -lexc $LIBS"
13213 if test "$cross_compiling" = yes; then
13214 cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure"
13216 #include "confdefs.h"
13217 /* pthread test headers */
13218 #include <pthread.h>
13219 #if HAVE_PTHREADS < 7
13223 #define NULL (void*)0
13226 static void *task(p)
13229 return (void *) (p == NULL);
13234 /* pthread test function */
13235 #ifndef PTHREAD_CREATE_DETACHED
13236 #define PTHREAD_CREATE_DETACHED 1
13240 int detach = PTHREAD_CREATE_DETACHED;
13242 #if HAVE_PTHREADS > 4
13243 /* Final pthreads */
13244 pthread_attr_t attr;
13246 status = pthread_attr_init(&attr);
13247 if( status ) return status;
13249 #if HAVE_PTHREADS < 7
13250 status = pthread_attr_setdetachstate(&attr, &detach);
13251 if( status < 0 ) status = errno;
13253 status = pthread_attr_setdetachstate(&attr, detach);
13255 if( status ) return status;
13256 status = pthread_create( &t, &attr, task, NULL );
13257 #if HAVE_PTHREADS < 7
13258 if( status < 0 ) status = errno;
13260 if( status ) return status;
13262 /* Draft 4 pthreads */
13263 status = pthread_create( &t, pthread_attr_default, task, NULL );
13264 if( status ) return errno;
13266 /* give thread a chance to complete */
13267 /* it should remain joinable and hence detachable */
13270 status = pthread_detach( &t );
13271 if( status ) return errno;
13274 #ifdef HAVE_LINUX_THREADS
13275 pthread_kill_other_threads_np();
13282 if { (eval echo configure:13283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284 ol_cv_pthread_lpthread_lmach_lexc=yes
13286 echo "configure: failed program was:" >&5
13287 cat conftest.$ac_ext >&5
13289 ol_cv_pthread_lpthread_lmach_lexc=no
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 /* pthread test headers */
13297 #include <pthread.h>
13298 #if HAVE_PTHREADS < 7
13302 #define NULL (void*)0
13305 static void *task(p)
13308 return (void *) (p == NULL);
13312 int main(argc, argv)
13317 /* pthread test function */
13318 #ifndef PTHREAD_CREATE_DETACHED
13319 #define PTHREAD_CREATE_DETACHED 1
13323 int detach = PTHREAD_CREATE_DETACHED;
13325 #if HAVE_PTHREADS > 4
13326 /* Final pthreads */
13327 pthread_attr_t attr;
13329 status = pthread_attr_init(&attr);
13330 if( status ) return status;
13332 #if HAVE_PTHREADS < 7
13333 status = pthread_attr_setdetachstate(&attr, &detach);
13334 if( status < 0 ) status = errno;
13336 status = pthread_attr_setdetachstate(&attr, detach);
13338 if( status ) return status;
13339 status = pthread_create( &t, &attr, task, NULL );
13340 #if HAVE_PTHREADS < 7
13341 if( status < 0 ) status = errno;
13343 if( status ) return status;
13345 /* Draft 4 pthreads */
13346 status = pthread_create( &t, pthread_attr_default, task, NULL );
13347 if( status ) return errno;
13349 /* give thread a chance to complete */
13350 /* it should remain joinable and hence detachable */
13353 status = pthread_detach( &t );
13354 if( status ) return errno;
13357 #ifdef HAVE_LINUX_THREADS
13358 pthread_kill_other_threads_np();
13366 if { (eval echo configure:13367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13368 ol_cv_pthread_lpthread_lmach_lexc=yes
13370 echo "configure: failed program was:" >&5
13371 cat conftest.$ac_ext >&5
13373 ol_cv_pthread_lpthread_lmach_lexc=no
13384 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13386 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13387 ol_link_pthreads="-lpthread -lmach -lexc"
13388 ol_link_threads=posix
13393 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13394 if test "$ol_link_threads" = no ; then
13395 # try -lpthread -Wl,-woff,85
13396 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13397 echo "configure:13398: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13398 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13399 echo $ac_n "(cached) $ac_c" 1>&6
13404 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13406 if test "$cross_compiling" = yes; then
13407 cat > conftest.$ac_ext <<EOF
13408 #line 13409 "configure"
13409 #include "confdefs.h"
13410 /* pthread test headers */
13411 #include <pthread.h>
13412 #if HAVE_PTHREADS < 7
13416 #define NULL (void*)0
13419 static void *task(p)
13422 return (void *) (p == NULL);
13427 /* pthread test function */
13428 #ifndef PTHREAD_CREATE_DETACHED
13429 #define PTHREAD_CREATE_DETACHED 1
13433 int detach = PTHREAD_CREATE_DETACHED;
13435 #if HAVE_PTHREADS > 4
13436 /* Final pthreads */
13437 pthread_attr_t attr;
13439 status = pthread_attr_init(&attr);
13440 if( status ) return status;
13442 #if HAVE_PTHREADS < 7
13443 status = pthread_attr_setdetachstate(&attr, &detach);
13444 if( status < 0 ) status = errno;
13446 status = pthread_attr_setdetachstate(&attr, detach);
13448 if( status ) return status;
13449 status = pthread_create( &t, &attr, task, NULL );
13450 #if HAVE_PTHREADS < 7
13451 if( status < 0 ) status = errno;
13453 if( status ) return status;
13455 /* Draft 4 pthreads */
13456 status = pthread_create( &t, pthread_attr_default, task, NULL );
13457 if( status ) return errno;
13459 /* give thread a chance to complete */
13460 /* it should remain joinable and hence detachable */
13463 status = pthread_detach( &t );
13464 if( status ) return errno;
13467 #ifdef HAVE_LINUX_THREADS
13468 pthread_kill_other_threads_np();
13475 if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13477 ol_cv_pthread_lib_lpthread_woff=yes
13479 echo "configure: failed program was:" >&5
13480 cat conftest.$ac_ext >&5
13482 ol_cv_pthread_lib_lpthread_woff=no
13486 cat > conftest.$ac_ext <<EOF
13487 #line 13488 "configure"
13488 #include "confdefs.h"
13489 /* pthread test headers */
13490 #include <pthread.h>
13491 #if HAVE_PTHREADS < 7
13495 #define NULL (void*)0
13498 static void *task(p)
13501 return (void *) (p == NULL);
13505 int main(argc, argv)
13510 /* pthread test function */
13511 #ifndef PTHREAD_CREATE_DETACHED
13512 #define PTHREAD_CREATE_DETACHED 1
13516 int detach = PTHREAD_CREATE_DETACHED;
13518 #if HAVE_PTHREADS > 4
13519 /* Final pthreads */
13520 pthread_attr_t attr;
13522 status = pthread_attr_init(&attr);
13523 if( status ) return status;
13525 #if HAVE_PTHREADS < 7
13526 status = pthread_attr_setdetachstate(&attr, &detach);
13527 if( status < 0 ) status = errno;
13529 status = pthread_attr_setdetachstate(&attr, detach);
13531 if( status ) return status;
13532 status = pthread_create( &t, &attr, task, NULL );
13533 #if HAVE_PTHREADS < 7
13534 if( status < 0 ) status = errno;
13536 if( status ) return status;
13538 /* Draft 4 pthreads */
13539 status = pthread_create( &t, pthread_attr_default, task, NULL );
13540 if( status ) return errno;
13542 /* give thread a chance to complete */
13543 /* it should remain joinable and hence detachable */
13546 status = pthread_detach( &t );
13547 if( status ) return errno;
13550 #ifdef HAVE_LINUX_THREADS
13551 pthread_kill_other_threads_np();
13559 if { (eval echo configure:13560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13561 ol_cv_pthread_lib_lpthread_woff=yes
13563 echo "configure: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13566 ol_cv_pthread_lib_lpthread_woff=no
13577 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13579 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13580 ol_link_pthreads="-lpthread -Wl,-woff,85"
13581 ol_link_threads=posix
13586 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13587 if test "$ol_link_threads" = no ; then
13589 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13590 echo "configure:13591: checking for pthread link with -lpthread" >&5
13591 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13592 echo $ac_n "(cached) $ac_c" 1>&6
13597 LIBS="-lpthread $LIBS"
13599 if test "$cross_compiling" = yes; then
13600 cat > conftest.$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 /* pthread test headers */
13604 #include <pthread.h>
13605 #if HAVE_PTHREADS < 7
13609 #define NULL (void*)0
13612 static void *task(p)
13615 return (void *) (p == NULL);
13620 /* pthread test function */
13621 #ifndef PTHREAD_CREATE_DETACHED
13622 #define PTHREAD_CREATE_DETACHED 1
13626 int detach = PTHREAD_CREATE_DETACHED;
13628 #if HAVE_PTHREADS > 4
13629 /* Final pthreads */
13630 pthread_attr_t attr;
13632 status = pthread_attr_init(&attr);
13633 if( status ) return status;
13635 #if HAVE_PTHREADS < 7
13636 status = pthread_attr_setdetachstate(&attr, &detach);
13637 if( status < 0 ) status = errno;
13639 status = pthread_attr_setdetachstate(&attr, detach);
13641 if( status ) return status;
13642 status = pthread_create( &t, &attr, task, NULL );
13643 #if HAVE_PTHREADS < 7
13644 if( status < 0 ) status = errno;
13646 if( status ) return status;
13648 /* Draft 4 pthreads */
13649 status = pthread_create( &t, pthread_attr_default, task, NULL );
13650 if( status ) return errno;
13652 /* give thread a chance to complete */
13653 /* it should remain joinable and hence detachable */
13656 status = pthread_detach( &t );
13657 if( status ) return errno;
13660 #ifdef HAVE_LINUX_THREADS
13661 pthread_kill_other_threads_np();
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13670 ol_cv_pthread_lpthread=yes
13672 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13675 ol_cv_pthread_lpthread=no
13679 cat > conftest.$ac_ext <<EOF
13680 #line 13681 "configure"
13681 #include "confdefs.h"
13682 /* pthread test headers */
13683 #include <pthread.h>
13684 #if HAVE_PTHREADS < 7
13688 #define NULL (void*)0
13691 static void *task(p)
13694 return (void *) (p == NULL);
13698 int main(argc, argv)
13703 /* pthread test function */
13704 #ifndef PTHREAD_CREATE_DETACHED
13705 #define PTHREAD_CREATE_DETACHED 1
13709 int detach = PTHREAD_CREATE_DETACHED;
13711 #if HAVE_PTHREADS > 4
13712 /* Final pthreads */
13713 pthread_attr_t attr;
13715 status = pthread_attr_init(&attr);
13716 if( status ) return status;
13718 #if HAVE_PTHREADS < 7
13719 status = pthread_attr_setdetachstate(&attr, &detach);
13720 if( status < 0 ) status = errno;
13722 status = pthread_attr_setdetachstate(&attr, detach);
13724 if( status ) return status;
13725 status = pthread_create( &t, &attr, task, NULL );
13726 #if HAVE_PTHREADS < 7
13727 if( status < 0 ) status = errno;
13729 if( status ) return status;
13731 /* Draft 4 pthreads */
13732 status = pthread_create( &t, pthread_attr_default, task, NULL );
13733 if( status ) return errno;
13735 /* give thread a chance to complete */
13736 /* it should remain joinable and hence detachable */
13739 status = pthread_detach( &t );
13740 if( status ) return errno;
13743 #ifdef HAVE_LINUX_THREADS
13744 pthread_kill_other_threads_np();
13752 if { (eval echo configure:13753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13754 ol_cv_pthread_lpthread=yes
13756 echo "configure: failed program was:" >&5
13757 cat conftest.$ac_ext >&5
13759 ol_cv_pthread_lpthread=no
13770 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13772 if test $ol_cv_pthread_lpthread = yes ; then
13773 ol_link_pthreads="-lpthread"
13774 ol_link_threads=posix
13778 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13779 if test "$ol_link_threads" = no ; then
13781 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13782 echo "configure:13783: checking for pthread link with -lc_r" >&5
13783 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13784 echo $ac_n "(cached) $ac_c" 1>&6
13791 if test "$cross_compiling" = yes; then
13792 cat > conftest.$ac_ext <<EOF
13793 #line 13794 "configure"
13794 #include "confdefs.h"
13795 /* pthread test headers */
13796 #include <pthread.h>
13797 #if HAVE_PTHREADS < 7
13801 #define NULL (void*)0
13804 static void *task(p)
13807 return (void *) (p == NULL);
13812 /* pthread test function */
13813 #ifndef PTHREAD_CREATE_DETACHED
13814 #define PTHREAD_CREATE_DETACHED 1
13818 int detach = PTHREAD_CREATE_DETACHED;
13820 #if HAVE_PTHREADS > 4
13821 /* Final pthreads */
13822 pthread_attr_t attr;
13824 status = pthread_attr_init(&attr);
13825 if( status ) return status;
13827 #if HAVE_PTHREADS < 7
13828 status = pthread_attr_setdetachstate(&attr, &detach);
13829 if( status < 0 ) status = errno;
13831 status = pthread_attr_setdetachstate(&attr, detach);
13833 if( status ) return status;
13834 status = pthread_create( &t, &attr, task, NULL );
13835 #if HAVE_PTHREADS < 7
13836 if( status < 0 ) status = errno;
13838 if( status ) return status;
13840 /* Draft 4 pthreads */
13841 status = pthread_create( &t, pthread_attr_default, task, NULL );
13842 if( status ) return errno;
13844 /* give thread a chance to complete */
13845 /* it should remain joinable and hence detachable */
13848 status = pthread_detach( &t );
13849 if( status ) return errno;
13852 #ifdef HAVE_LINUX_THREADS
13853 pthread_kill_other_threads_np();
13860 if { (eval echo configure:13861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13862 ol_cv_pthread_lc_r=yes
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13867 ol_cv_pthread_lc_r=no
13871 cat > conftest.$ac_ext <<EOF
13872 #line 13873 "configure"
13873 #include "confdefs.h"
13874 /* pthread test headers */
13875 #include <pthread.h>
13876 #if HAVE_PTHREADS < 7
13880 #define NULL (void*)0
13883 static void *task(p)
13886 return (void *) (p == NULL);
13890 int main(argc, argv)
13895 /* pthread test function */
13896 #ifndef PTHREAD_CREATE_DETACHED
13897 #define PTHREAD_CREATE_DETACHED 1
13901 int detach = PTHREAD_CREATE_DETACHED;
13903 #if HAVE_PTHREADS > 4
13904 /* Final pthreads */
13905 pthread_attr_t attr;
13907 status = pthread_attr_init(&attr);
13908 if( status ) return status;
13910 #if HAVE_PTHREADS < 7
13911 status = pthread_attr_setdetachstate(&attr, &detach);
13912 if( status < 0 ) status = errno;
13914 status = pthread_attr_setdetachstate(&attr, detach);
13916 if( status ) return status;
13917 status = pthread_create( &t, &attr, task, NULL );
13918 #if HAVE_PTHREADS < 7
13919 if( status < 0 ) status = errno;
13921 if( status ) return status;
13923 /* Draft 4 pthreads */
13924 status = pthread_create( &t, pthread_attr_default, task, NULL );
13925 if( status ) return errno;
13927 /* give thread a chance to complete */
13928 /* it should remain joinable and hence detachable */
13931 status = pthread_detach( &t );
13932 if( status ) return errno;
13935 #ifdef HAVE_LINUX_THREADS
13936 pthread_kill_other_threads_np();
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13946 ol_cv_pthread_lc_r=yes
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13951 ol_cv_pthread_lc_r=no
13962 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13964 if test $ol_cv_pthread_lc_r = yes ; then
13965 ol_link_pthreads="-lc_r"
13966 ol_link_threads=posix
13971 # Pthread try link: -threads (ol_cv_pthread_threads)
13972 if test "$ol_link_threads" = no ; then
13974 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13975 echo "configure:13976: checking for pthread link with -threads" >&5
13976 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13982 LIBS="-threads $LIBS"
13984 if test "$cross_compiling" = yes; then
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 /* pthread test headers */
13989 #include <pthread.h>
13990 #if HAVE_PTHREADS < 7
13994 #define NULL (void*)0
13997 static void *task(p)
14000 return (void *) (p == NULL);
14005 /* pthread test function */
14006 #ifndef PTHREAD_CREATE_DETACHED
14007 #define PTHREAD_CREATE_DETACHED 1
14011 int detach = PTHREAD_CREATE_DETACHED;
14013 #if HAVE_PTHREADS > 4
14014 /* Final pthreads */
14015 pthread_attr_t attr;
14017 status = pthread_attr_init(&attr);
14018 if( status ) return status;
14020 #if HAVE_PTHREADS < 7
14021 status = pthread_attr_setdetachstate(&attr, &detach);
14022 if( status < 0 ) status = errno;
14024 status = pthread_attr_setdetachstate(&attr, detach);
14026 if( status ) return status;
14027 status = pthread_create( &t, &attr, task, NULL );
14028 #if HAVE_PTHREADS < 7
14029 if( status < 0 ) status = errno;
14031 if( status ) return status;
14033 /* Draft 4 pthreads */
14034 status = pthread_create( &t, pthread_attr_default, task, NULL );
14035 if( status ) return errno;
14037 /* give thread a chance to complete */
14038 /* it should remain joinable and hence detachable */
14041 status = pthread_detach( &t );
14042 if( status ) return errno;
14045 #ifdef HAVE_LINUX_THREADS
14046 pthread_kill_other_threads_np();
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14055 ol_cv_pthread_threads=yes
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14060 ol_cv_pthread_threads=no
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 /* pthread test headers */
14068 #include <pthread.h>
14069 #if HAVE_PTHREADS < 7
14073 #define NULL (void*)0
14076 static void *task(p)
14079 return (void *) (p == NULL);
14083 int main(argc, argv)
14088 /* pthread test function */
14089 #ifndef PTHREAD_CREATE_DETACHED
14090 #define PTHREAD_CREATE_DETACHED 1
14094 int detach = PTHREAD_CREATE_DETACHED;
14096 #if HAVE_PTHREADS > 4
14097 /* Final pthreads */
14098 pthread_attr_t attr;
14100 status = pthread_attr_init(&attr);
14101 if( status ) return status;
14103 #if HAVE_PTHREADS < 7
14104 status = pthread_attr_setdetachstate(&attr, &detach);
14105 if( status < 0 ) status = errno;
14107 status = pthread_attr_setdetachstate(&attr, detach);
14109 if( status ) return status;
14110 status = pthread_create( &t, &attr, task, NULL );
14111 #if HAVE_PTHREADS < 7
14112 if( status < 0 ) status = errno;
14114 if( status ) return status;
14116 /* Draft 4 pthreads */
14117 status = pthread_create( &t, pthread_attr_default, task, NULL );
14118 if( status ) return errno;
14120 /* give thread a chance to complete */
14121 /* it should remain joinable and hence detachable */
14124 status = pthread_detach( &t );
14125 if( status ) return errno;
14128 #ifdef HAVE_LINUX_THREADS
14129 pthread_kill_other_threads_np();
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14139 ol_cv_pthread_threads=yes
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 ol_cv_pthread_threads=no
14155 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14157 if test $ol_cv_pthread_threads = yes ; then
14158 ol_link_pthreads="-threads"
14159 ol_link_threads=posix
14164 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14165 if test "$ol_link_threads" = no ; then
14166 # try -lpthreads -lmach -lexc -lc_r
14167 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14168 echo "configure:14169: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14169 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14175 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14177 if test "$cross_compiling" = yes; then
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 /* pthread test headers */
14182 #include <pthread.h>
14183 #if HAVE_PTHREADS < 7
14187 #define NULL (void*)0
14190 static void *task(p)
14193 return (void *) (p == NULL);
14198 /* pthread test function */
14199 #ifndef PTHREAD_CREATE_DETACHED
14200 #define PTHREAD_CREATE_DETACHED 1
14204 int detach = PTHREAD_CREATE_DETACHED;
14206 #if HAVE_PTHREADS > 4
14207 /* Final pthreads */
14208 pthread_attr_t attr;
14210 status = pthread_attr_init(&attr);
14211 if( status ) return status;
14213 #if HAVE_PTHREADS < 7
14214 status = pthread_attr_setdetachstate(&attr, &detach);
14215 if( status < 0 ) status = errno;
14217 status = pthread_attr_setdetachstate(&attr, detach);
14219 if( status ) return status;
14220 status = pthread_create( &t, &attr, task, NULL );
14221 #if HAVE_PTHREADS < 7
14222 if( status < 0 ) status = errno;
14224 if( status ) return status;
14226 /* Draft 4 pthreads */
14227 status = pthread_create( &t, pthread_attr_default, task, NULL );
14228 if( status ) return errno;
14230 /* give thread a chance to complete */
14231 /* it should remain joinable and hence detachable */
14234 status = pthread_detach( &t );
14235 if( status ) return errno;
14238 #ifdef HAVE_LINUX_THREADS
14239 pthread_kill_other_threads_np();
14246 if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14248 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14250 echo "configure: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14253 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* pthread test headers */
14261 #include <pthread.h>
14262 #if HAVE_PTHREADS < 7
14266 #define NULL (void*)0
14269 static void *task(p)
14272 return (void *) (p == NULL);
14276 int main(argc, argv)
14281 /* pthread test function */
14282 #ifndef PTHREAD_CREATE_DETACHED
14283 #define PTHREAD_CREATE_DETACHED 1
14287 int detach = PTHREAD_CREATE_DETACHED;
14289 #if HAVE_PTHREADS > 4
14290 /* Final pthreads */
14291 pthread_attr_t attr;
14293 status = pthread_attr_init(&attr);
14294 if( status ) return status;
14296 #if HAVE_PTHREADS < 7
14297 status = pthread_attr_setdetachstate(&attr, &detach);
14298 if( status < 0 ) status = errno;
14300 status = pthread_attr_setdetachstate(&attr, detach);
14302 if( status ) return status;
14303 status = pthread_create( &t, &attr, task, NULL );
14304 #if HAVE_PTHREADS < 7
14305 if( status < 0 ) status = errno;
14307 if( status ) return status;
14309 /* Draft 4 pthreads */
14310 status = pthread_create( &t, pthread_attr_default, task, NULL );
14311 if( status ) return errno;
14313 /* give thread a chance to complete */
14314 /* it should remain joinable and hence detachable */
14317 status = pthread_detach( &t );
14318 if( status ) return errno;
14321 #ifdef HAVE_LINUX_THREADS
14322 pthread_kill_other_threads_np();
14330 if { (eval echo configure:14331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14332 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14348 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14350 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14351 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14352 ol_link_threads=posix
14356 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14357 if test "$ol_link_threads" = no ; then
14358 # try -lpthreads -lmach -lexc
14359 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14360 echo "configure:14361: checking for pthread link with -lpthreads -lmach -lexc" >&5
14361 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14367 LIBS="-lpthreads -lmach -lexc $LIBS"
14369 if test "$cross_compiling" = yes; then
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373 /* pthread test headers */
14374 #include <pthread.h>
14375 #if HAVE_PTHREADS < 7
14379 #define NULL (void*)0
14382 static void *task(p)
14385 return (void *) (p == NULL);
14390 /* pthread test function */
14391 #ifndef PTHREAD_CREATE_DETACHED
14392 #define PTHREAD_CREATE_DETACHED 1
14396 int detach = PTHREAD_CREATE_DETACHED;
14398 #if HAVE_PTHREADS > 4
14399 /* Final pthreads */
14400 pthread_attr_t attr;
14402 status = pthread_attr_init(&attr);
14403 if( status ) return status;
14405 #if HAVE_PTHREADS < 7
14406 status = pthread_attr_setdetachstate(&attr, &detach);
14407 if( status < 0 ) status = errno;
14409 status = pthread_attr_setdetachstate(&attr, detach);
14411 if( status ) return status;
14412 status = pthread_create( &t, &attr, task, NULL );
14413 #if HAVE_PTHREADS < 7
14414 if( status < 0 ) status = errno;
14416 if( status ) return status;
14418 /* Draft 4 pthreads */
14419 status = pthread_create( &t, pthread_attr_default, task, NULL );
14420 if( status ) return errno;
14422 /* give thread a chance to complete */
14423 /* it should remain joinable and hence detachable */
14426 status = pthread_detach( &t );
14427 if( status ) return errno;
14430 #ifdef HAVE_LINUX_THREADS
14431 pthread_kill_other_threads_np();
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14440 ol_cv_pthread_lpthreads_lmach_lexc=yes
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14445 ol_cv_pthread_lpthreads_lmach_lexc=no
14449 cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14452 /* pthread test headers */
14453 #include <pthread.h>
14454 #if HAVE_PTHREADS < 7
14458 #define NULL (void*)0
14461 static void *task(p)
14464 return (void *) (p == NULL);
14468 int main(argc, argv)
14473 /* pthread test function */
14474 #ifndef PTHREAD_CREATE_DETACHED
14475 #define PTHREAD_CREATE_DETACHED 1
14479 int detach = PTHREAD_CREATE_DETACHED;
14481 #if HAVE_PTHREADS > 4
14482 /* Final pthreads */
14483 pthread_attr_t attr;
14485 status = pthread_attr_init(&attr);
14486 if( status ) return status;
14488 #if HAVE_PTHREADS < 7
14489 status = pthread_attr_setdetachstate(&attr, &detach);
14490 if( status < 0 ) status = errno;
14492 status = pthread_attr_setdetachstate(&attr, detach);
14494 if( status ) return status;
14495 status = pthread_create( &t, &attr, task, NULL );
14496 #if HAVE_PTHREADS < 7
14497 if( status < 0 ) status = errno;
14499 if( status ) return status;
14501 /* Draft 4 pthreads */
14502 status = pthread_create( &t, pthread_attr_default, task, NULL );
14503 if( status ) return errno;
14505 /* give thread a chance to complete */
14506 /* it should remain joinable and hence detachable */
14509 status = pthread_detach( &t );
14510 if( status ) return errno;
14513 #ifdef HAVE_LINUX_THREADS
14514 pthread_kill_other_threads_np();
14522 if { (eval echo configure:14523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14524 ol_cv_pthread_lpthreads_lmach_lexc=yes
14526 echo "configure: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 ol_cv_pthread_lpthreads_lmach_lexc=no
14540 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14542 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14543 ol_link_pthreads="-lpthreads -lmach -lexc"
14544 ol_link_threads=posix
14548 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14549 if test "$ol_link_threads" = no ; then
14550 # try -lpthreads -lexc
14551 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14552 echo "configure:14553: checking for pthread link with -lpthreads -lexc" >&5
14553 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
14559 LIBS="-lpthreads -lexc $LIBS"
14561 if test "$cross_compiling" = yes; then
14562 cat > conftest.$ac_ext <<EOF
14563 #line 14564 "configure"
14564 #include "confdefs.h"
14565 /* pthread test headers */
14566 #include <pthread.h>
14567 #if HAVE_PTHREADS < 7
14571 #define NULL (void*)0
14574 static void *task(p)
14577 return (void *) (p == NULL);
14582 /* pthread test function */
14583 #ifndef PTHREAD_CREATE_DETACHED
14584 #define PTHREAD_CREATE_DETACHED 1
14588 int detach = PTHREAD_CREATE_DETACHED;
14590 #if HAVE_PTHREADS > 4
14591 /* Final pthreads */
14592 pthread_attr_t attr;
14594 status = pthread_attr_init(&attr);
14595 if( status ) return status;
14597 #if HAVE_PTHREADS < 7
14598 status = pthread_attr_setdetachstate(&attr, &detach);
14599 if( status < 0 ) status = errno;
14601 status = pthread_attr_setdetachstate(&attr, detach);
14603 if( status ) return status;
14604 status = pthread_create( &t, &attr, task, NULL );
14605 #if HAVE_PTHREADS < 7
14606 if( status < 0 ) status = errno;
14608 if( status ) return status;
14610 /* Draft 4 pthreads */
14611 status = pthread_create( &t, pthread_attr_default, task, NULL );
14612 if( status ) return errno;
14614 /* give thread a chance to complete */
14615 /* it should remain joinable and hence detachable */
14618 status = pthread_detach( &t );
14619 if( status ) return errno;
14622 #ifdef HAVE_LINUX_THREADS
14623 pthread_kill_other_threads_np();
14630 if { (eval echo configure:14631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14632 ol_cv_pthread_lpthreads_lexc=yes
14634 echo "configure: failed program was:" >&5
14635 cat conftest.$ac_ext >&5
14637 ol_cv_pthread_lpthreads_lexc=no
14641 cat > conftest.$ac_ext <<EOF
14642 #line 14643 "configure"
14643 #include "confdefs.h"
14644 /* pthread test headers */
14645 #include <pthread.h>
14646 #if HAVE_PTHREADS < 7
14650 #define NULL (void*)0
14653 static void *task(p)
14656 return (void *) (p == NULL);
14660 int main(argc, argv)
14665 /* pthread test function */
14666 #ifndef PTHREAD_CREATE_DETACHED
14667 #define PTHREAD_CREATE_DETACHED 1
14671 int detach = PTHREAD_CREATE_DETACHED;
14673 #if HAVE_PTHREADS > 4
14674 /* Final pthreads */
14675 pthread_attr_t attr;
14677 status = pthread_attr_init(&attr);
14678 if( status ) return status;
14680 #if HAVE_PTHREADS < 7
14681 status = pthread_attr_setdetachstate(&attr, &detach);
14682 if( status < 0 ) status = errno;
14684 status = pthread_attr_setdetachstate(&attr, detach);
14686 if( status ) return status;
14687 status = pthread_create( &t, &attr, task, NULL );
14688 #if HAVE_PTHREADS < 7
14689 if( status < 0 ) status = errno;
14691 if( status ) return status;
14693 /* Draft 4 pthreads */
14694 status = pthread_create( &t, pthread_attr_default, task, NULL );
14695 if( status ) return errno;
14697 /* give thread a chance to complete */
14698 /* it should remain joinable and hence detachable */
14701 status = pthread_detach( &t );
14702 if( status ) return errno;
14705 #ifdef HAVE_LINUX_THREADS
14706 pthread_kill_other_threads_np();
14714 if { (eval echo configure:14715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14716 ol_cv_pthread_lpthreads_lexc=yes
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14721 ol_cv_pthread_lpthreads_lexc=no
14732 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14734 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14735 ol_link_pthreads="-lpthreads -lexc"
14736 ol_link_threads=posix
14741 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14742 if test "$ol_link_threads" = no ; then
14744 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14745 echo "configure:14746: checking for pthread link with -lpthreads" >&5
14746 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14747 echo $ac_n "(cached) $ac_c" 1>&6
14752 LIBS="-lpthreads $LIBS"
14754 if test "$cross_compiling" = yes; then
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 /* pthread test headers */
14759 #include <pthread.h>
14760 #if HAVE_PTHREADS < 7
14764 #define NULL (void*)0
14767 static void *task(p)
14770 return (void *) (p == NULL);
14775 /* pthread test function */
14776 #ifndef PTHREAD_CREATE_DETACHED
14777 #define PTHREAD_CREATE_DETACHED 1
14781 int detach = PTHREAD_CREATE_DETACHED;
14783 #if HAVE_PTHREADS > 4
14784 /* Final pthreads */
14785 pthread_attr_t attr;
14787 status = pthread_attr_init(&attr);
14788 if( status ) return status;
14790 #if HAVE_PTHREADS < 7
14791 status = pthread_attr_setdetachstate(&attr, &detach);
14792 if( status < 0 ) status = errno;
14794 status = pthread_attr_setdetachstate(&attr, detach);
14796 if( status ) return status;
14797 status = pthread_create( &t, &attr, task, NULL );
14798 #if HAVE_PTHREADS < 7
14799 if( status < 0 ) status = errno;
14801 if( status ) return status;
14803 /* Draft 4 pthreads */
14804 status = pthread_create( &t, pthread_attr_default, task, NULL );
14805 if( status ) return errno;
14807 /* give thread a chance to complete */
14808 /* it should remain joinable and hence detachable */
14811 status = pthread_detach( &t );
14812 if( status ) return errno;
14815 #ifdef HAVE_LINUX_THREADS
14816 pthread_kill_other_threads_np();
14823 if { (eval echo configure:14824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14825 ol_cv_pthread_lib_lpthreads=yes
14827 echo "configure: failed program was:" >&5
14828 cat conftest.$ac_ext >&5
14830 ol_cv_pthread_lib_lpthreads=no
14834 cat > conftest.$ac_ext <<EOF
14835 #line 14836 "configure"
14836 #include "confdefs.h"
14837 /* pthread test headers */
14838 #include <pthread.h>
14839 #if HAVE_PTHREADS < 7
14843 #define NULL (void*)0
14846 static void *task(p)
14849 return (void *) (p == NULL);
14853 int main(argc, argv)
14858 /* pthread test function */
14859 #ifndef PTHREAD_CREATE_DETACHED
14860 #define PTHREAD_CREATE_DETACHED 1
14864 int detach = PTHREAD_CREATE_DETACHED;
14866 #if HAVE_PTHREADS > 4
14867 /* Final pthreads */
14868 pthread_attr_t attr;
14870 status = pthread_attr_init(&attr);
14871 if( status ) return status;
14873 #if HAVE_PTHREADS < 7
14874 status = pthread_attr_setdetachstate(&attr, &detach);
14875 if( status < 0 ) status = errno;
14877 status = pthread_attr_setdetachstate(&attr, detach);
14879 if( status ) return status;
14880 status = pthread_create( &t, &attr, task, NULL );
14881 #if HAVE_PTHREADS < 7
14882 if( status < 0 ) status = errno;
14884 if( status ) return status;
14886 /* Draft 4 pthreads */
14887 status = pthread_create( &t, pthread_attr_default, task, NULL );
14888 if( status ) return errno;
14890 /* give thread a chance to complete */
14891 /* it should remain joinable and hence detachable */
14894 status = pthread_detach( &t );
14895 if( status ) return errno;
14898 #ifdef HAVE_LINUX_THREADS
14899 pthread_kill_other_threads_np();
14907 if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14909 ol_cv_pthread_lib_lpthreads=yes
14911 echo "configure: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14914 ol_cv_pthread_lib_lpthreads=no
14925 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14927 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14928 ol_link_pthreads="-lpthreads"
14929 ol_link_threads=posix
14934 if test $ol_link_threads != no ; then
14935 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14937 save_CPPFLAGS="$CPPFLAGS"
14939 LIBS="$LTHREAD_LIBS $LIBS"
14941 for ac_func in sched_yield pthread_yield thr_yield
14943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14944 echo "configure:14945: checking for $ac_func" >&5
14945 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14946 echo $ac_n "(cached) $ac_c" 1>&6
14948 cat > conftest.$ac_ext <<EOF
14949 #line 14950 "configure"
14950 #include "confdefs.h"
14951 /* System header to define __stub macros and hopefully few prototypes,
14952 which can conflict with char $ac_func(); below. */
14953 #include <assert.h>
14954 /* Override any gcc2 internal prototype to avoid an error. */
14955 /* We use char because int might match the return type of a gcc2
14956 builtin and then its argument prototype would still apply. */
14962 /* The GNU C library defines this for functions which it implements
14963 to always fail with ENOSYS. Some functions are actually named
14964 something starting with __ and the normal name is an alias. */
14965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14973 if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14975 eval "ac_cv_func_$ac_func=yes"
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14980 eval "ac_cv_func_$ac_func=no"
14985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14986 echo "$ac_t""yes" 1>&6
14987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14988 cat >> confdefs.h <<EOF
14989 #define $ac_tr_func 1
14993 echo "$ac_t""no" 1>&6
14998 if test $ac_cv_func_sched_yield = no -a \
14999 $ac_cv_func_pthread_yield = no -a \
15000 $ac_cv_func_thr_yield = no ; then
15001 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15002 echo "configure:15003: checking for sched_yield in -lrt" >&5
15003 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15004 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15005 echo $ac_n "(cached) $ac_c" 1>&6
15007 ac_save_LIBS="$LIBS"
15009 cat > conftest.$ac_ext <<EOF
15010 #line 15011 "configure"
15011 #include "confdefs.h"
15012 /* Override any gcc2 internal prototype to avoid an error. */
15013 /* We use char because int might match the return type of a gcc2
15014 builtin and then its argument prototype would still apply. */
15015 char sched_yield();
15021 if { (eval echo configure:15022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 eval "ac_cv_lib_$ac_lib_var=yes"
15025 echo "configure: failed program was:" >&5
15026 cat conftest.$ac_ext >&5
15028 eval "ac_cv_lib_$ac_lib_var=no"
15031 LIBS="$ac_save_LIBS"
15034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15035 echo "$ac_t""yes" 1>&6
15036 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15037 cat >> confdefs.h <<\EOF
15038 #define HAVE_SCHED_YIELD 1
15041 ac_cv_func_sched_yield=yes
15043 echo "$ac_t""no" 1>&6
15044 ac_cv_func_sched_yield=no
15048 if test $ac_cv_func_sched_yield = no -a \
15049 $ac_cv_func_pthread_yield = no -a \
15050 "$ac_cv_func_thr_yield" = no ; then
15051 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15054 for ac_func in pthread_kill pthread_rwlock_destroy
15056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15057 echo "configure:15058: checking for $ac_func" >&5
15058 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15059 echo $ac_n "(cached) $ac_c" 1>&6
15061 cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 /* System header to define __stub macros and hopefully few prototypes,
15065 which can conflict with char $ac_func(); below. */
15066 #include <assert.h>
15067 /* Override any gcc2 internal prototype to avoid an error. */
15068 /* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15075 /* The GNU C library defines this for functions which it implements
15076 to always fail with ENOSYS. Some functions are actually named
15077 something starting with __ and the normal name is an alias. */
15078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15086 if { (eval echo configure:15087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15088 eval "ac_cv_func_$ac_func=yes"
15090 echo "configure: failed program was:" >&5
15091 cat conftest.$ac_ext >&5
15093 eval "ac_cv_func_$ac_func=no"
15098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15099 echo "$ac_t""yes" 1>&6
15100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15101 cat >> confdefs.h <<EOF
15102 #define $ac_tr_func 1
15106 echo "$ac_t""no" 1>&6
15111 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15112 echo "configure:15113: checking for pthread_detach with <pthread.h>" >&5
15113 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15114 echo $ac_n "(cached) $ac_c" 1>&6
15117 cat > conftest.$ac_ext <<EOF
15118 #line 15119 "configure"
15119 #include "confdefs.h"
15121 #include <pthread.h>
15123 #define NULL (void*)0
15127 pthread_detach(NULL);
15130 if { (eval echo configure:15131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15132 ol_cv_func_pthread_detach=yes
15134 echo "configure: failed program was:" >&5
15135 cat conftest.$ac_ext >&5
15137 ol_cv_func_pthread_detach=no
15143 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15145 if test $ol_cv_func_pthread_detach = no ; then
15146 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15149 cat >> confdefs.h <<\EOF
15150 #define HAVE_PTHREAD_DETACH 1
15155 pthread_setconcurrency \
15156 pthread_getconcurrency \
15157 thr_setconcurrency \
15158 thr_getconcurrency \
15161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15162 echo "configure:15163: checking for $ac_func" >&5
15163 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15164 echo $ac_n "(cached) $ac_c" 1>&6
15166 cat > conftest.$ac_ext <<EOF
15167 #line 15168 "configure"
15168 #include "confdefs.h"
15169 /* System header to define __stub macros and hopefully few prototypes,
15170 which can conflict with char $ac_func(); below. */
15171 #include <assert.h>
15172 /* Override any gcc2 internal prototype to avoid an error. */
15173 /* We use char because int might match the return type of a gcc2
15174 builtin and then its argument prototype would still apply. */
15180 /* The GNU C library defines this for functions which it implements
15181 to always fail with ENOSYS. Some functions are actually named
15182 something starting with __ and the normal name is an alias. */
15183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15191 if { (eval echo configure:15192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15193 eval "ac_cv_func_$ac_func=yes"
15195 echo "configure: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15198 eval "ac_cv_func_$ac_func=no"
15203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15204 echo "$ac_t""yes" 1>&6
15205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15206 cat >> confdefs.h <<EOF
15207 #define $ac_tr_func 1
15211 echo "$ac_t""no" 1>&6
15217 for ac_func in pthread_kill_other_threads_np
15219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15220 echo "configure:15221: checking for $ac_func" >&5
15221 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15222 echo $ac_n "(cached) $ac_c" 1>&6
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15227 /* System header to define __stub macros and hopefully few prototypes,
15228 which can conflict with char $ac_func(); below. */
15229 #include <assert.h>
15230 /* Override any gcc2 internal prototype to avoid an error. */
15231 /* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15249 if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15251 eval "ac_cv_func_$ac_func=yes"
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15256 eval "ac_cv_func_$ac_func=no"
15261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15262 echo "$ac_t""yes" 1>&6
15263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15264 cat >> confdefs.h <<EOF
15265 #define $ac_tr_func 1
15269 echo "$ac_t""no" 1>&6
15273 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15274 echo "configure:15275: checking for LinuxThreads implementation" >&5
15275 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15276 echo $ac_n "(cached) $ac_c" 1>&6
15278 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15281 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15286 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15287 echo "configure:15288: checking for LinuxThreads consistency" >&5
15288 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15289 echo $ac_n "(cached) $ac_c" 1>&6
15292 if test $ol_cv_header_linux_threads = yes -a \
15293 $ol_cv_sys_linux_threads = yes; then
15294 ol_cv_linux_threads=yes
15295 elif test $ol_cv_header_linux_threads = no -a \
15296 $ol_cv_sys_linux_threads = no; then
15297 ol_cv_linux_threads=no
15299 ol_cv_linux_threads=error
15304 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15307 if test $ol_cv_linux_threads = error; then
15308 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15311 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15312 echo "configure:15313: checking if pthread_create() works" >&5
15313 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15317 if test "$cross_compiling" = yes; then
15318 ol_cv_pthread_create_works=yes
15320 cat > conftest.$ac_ext <<EOF
15321 #line 15322 "configure"
15322 #include "confdefs.h"
15323 /* pthread test headers */
15324 #include <pthread.h>
15325 #if HAVE_PTHREADS < 7
15329 #define NULL (void*)0
15332 static void *task(p)
15335 return (void *) (p == NULL);
15339 int main(argc, argv)
15344 /* pthread test function */
15345 #ifndef PTHREAD_CREATE_DETACHED
15346 #define PTHREAD_CREATE_DETACHED 1
15350 int detach = PTHREAD_CREATE_DETACHED;
15352 #if HAVE_PTHREADS > 4
15353 /* Final pthreads */
15354 pthread_attr_t attr;
15356 status = pthread_attr_init(&attr);
15357 if( status ) return status;
15359 #if HAVE_PTHREADS < 7
15360 status = pthread_attr_setdetachstate(&attr, &detach);
15361 if( status < 0 ) status = errno;
15363 status = pthread_attr_setdetachstate(&attr, detach);
15365 if( status ) return status;
15366 status = pthread_create( &t, &attr, task, NULL );
15367 #if HAVE_PTHREADS < 7
15368 if( status < 0 ) status = errno;
15370 if( status ) return status;
15372 /* Draft 4 pthreads */
15373 status = pthread_create( &t, pthread_attr_default, task, NULL );
15374 if( status ) return errno;
15376 /* give thread a chance to complete */
15377 /* it should remain joinable and hence detachable */
15380 status = pthread_detach( &t );
15381 if( status ) return errno;
15384 #ifdef HAVE_LINUX_THREADS
15385 pthread_kill_other_threads_np();
15393 if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15395 ol_cv_pthread_create_works=yes
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15400 ol_cv_pthread_create_works=no
15407 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15409 if test $ol_cv_pthread_create_works = no ; then
15410 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15413 if test $ol_with_yielding_select = auto ; then
15414 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15415 echo "configure:15416: checking if select yields when using pthreads" >&5
15416 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15417 echo $ac_n "(cached) $ac_c" 1>&6
15420 if test "$cross_compiling" = yes; then
15421 ol_cv_pthread_select_yields=cross
15423 cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15427 #include <sys/types.h>
15428 #include <sys/time.h>
15429 #include <unistd.h>
15430 #include <pthread.h>
15432 #define NULL (void*) 0
15435 static int fildes[2];
15437 static void *task(p)
15449 FD_SET(fildes[0], &rfds);
15451 /* we're not interested in any fds */
15452 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15459 exit(0); /* if we exit here, the select blocked the whole process */
15462 int main(argc, argv)
15468 /* create a pipe to select */
15469 if(pipe(&fildes[0])) {
15474 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15475 (void) pthread_setconcurrency(2);
15477 #ifdef HAVE_THR_SETCONCURRENCY
15478 /* Set Solaris LWP concurrency to 2 */
15479 thr_setconcurrency(2);
15483 #if HAVE_PTHREADS < 6
15484 pthread_create(&t, pthread_attr_default, task, NULL);
15486 pthread_create(&t, NULL, task, NULL);
15489 /* make sure task runs first */
15492 #elif defined( HAVE_SCHED_YIELD )
15494 #elif defined( HAVE_PTHREAD_YIELD )
15501 if { (eval echo configure:15502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15503 ol_cv_pthread_select_yields=no
15505 echo "configure: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15508 ol_cv_pthread_select_yields=yes
15515 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15517 if test $ol_cv_pthread_select_yields = cross ; then
15518 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15521 if test $ol_cv_pthread_select_yields = yes ; then
15522 ol_with_yielding_select=yes
15526 CPPFLAGS="$save_CPPFLAGS"
15529 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15533 if test $ol_with_threads = posix ; then
15534 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15538 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15539 -o $ol_with_threads = mach ; then
15541 for ac_hdr in mach/cthreads.h cthreads.h
15543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15545 echo "configure:15546: checking for $ac_hdr" >&5
15546 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15547 echo $ac_n "(cached) $ac_c" 1>&6
15549 cat > conftest.$ac_ext <<EOF
15550 #line 15551 "configure"
15551 #include "confdefs.h"
15554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15555 { (eval echo configure:15556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15557 if test -z "$ac_err"; then
15559 eval "ac_cv_header_$ac_safe=yes"
15562 echo "configure: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15565 eval "ac_cv_header_$ac_safe=no"
15569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15570 echo "$ac_t""yes" 1>&6
15571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15572 cat >> confdefs.h <<EOF
15573 #define $ac_tr_hdr 1
15577 echo "$ac_t""no" 1>&6
15581 if test $ac_cv_header_mach_cthreads_h = yes ; then
15582 ol_with_threads=found
15584 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15585 echo "configure:15586: checking for cthread_fork" >&5
15586 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15587 echo $ac_n "(cached) $ac_c" 1>&6
15589 cat > conftest.$ac_ext <<EOF
15590 #line 15591 "configure"
15591 #include "confdefs.h"
15592 /* System header to define __stub macros and hopefully few prototypes,
15593 which can conflict with char cthread_fork(); below. */
15594 #include <assert.h>
15595 /* Override any gcc2 internal prototype to avoid an error. */
15596 /* We use char because int might match the return type of a gcc2
15597 builtin and then its argument prototype would still apply. */
15598 char cthread_fork();
15603 /* The GNU C library defines this for functions which it implements
15604 to always fail with ENOSYS. Some functions are actually named
15605 something starting with __ and the normal name is an alias. */
15606 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15614 if { (eval echo configure:15615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15616 eval "ac_cv_func_cthread_fork=yes"
15618 echo "configure: failed program was:" >&5
15619 cat conftest.$ac_ext >&5
15621 eval "ac_cv_func_cthread_fork=no"
15626 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15627 echo "$ac_t""yes" 1>&6
15628 ol_link_threads=yes
15630 echo "$ac_t""no" 1>&6
15634 if test $ol_link_threads = no ; then
15635 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15636 echo "configure:15637: checking for cthread_fork with -all_load" >&5
15637 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15638 echo $ac_n "(cached) $ac_c" 1>&6
15642 LIBS="-all_load $LIBS"
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 #include <mach/cthreads.h>
15649 cthread_fork((void *)0, (void *)0);
15653 if { (eval echo configure:15654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15655 ol_cv_cthread_all_load=yes
15657 echo "configure: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15660 ol_cv_cthread_all_load=no
15667 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15669 if test $ol_cv_cthread_all_load = yes ; then
15670 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15671 ol_link_threads=mach
15672 ol_with_threads=found
15676 elif test $ac_cv_header_cthreads_h = yes ; then
15678 ol_with_threads=found
15681 LIBS="$LIBS -lthreads"
15682 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15683 echo "configure:15684: checking for cthread_fork" >&5
15684 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15685 echo $ac_n "(cached) $ac_c" 1>&6
15687 cat > conftest.$ac_ext <<EOF
15688 #line 15689 "configure"
15689 #include "confdefs.h"
15690 /* System header to define __stub macros and hopefully few prototypes,
15691 which can conflict with char cthread_fork(); below. */
15692 #include <assert.h>
15693 /* Override any gcc2 internal prototype to avoid an error. */
15694 /* We use char because int might match the return type of a gcc2
15695 builtin and then its argument prototype would still apply. */
15696 char cthread_fork();
15701 /* The GNU C library defines this for functions which it implements
15702 to always fail with ENOSYS. Some functions are actually named
15703 something starting with __ and the normal name is an alias. */
15704 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15712 if { (eval echo configure:15713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15714 eval "ac_cv_func_cthread_fork=yes"
15716 echo "configure: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15719 eval "ac_cv_func_cthread_fork=no"
15724 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15725 echo "$ac_t""yes" 1>&6
15726 ol_link_threads=yes
15728 echo "$ac_t""no" 1>&6
15733 if test $ol_link_threads = yes ; then
15734 LTHREAD_LIBS="-lthreads"
15735 ol_link_threads=mach
15736 ol_with_threads=found
15738 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15741 elif test $ol_with_threads = mach ; then
15742 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15745 if test $ol_link_threads = mach ; then
15746 cat >> confdefs.h <<\EOF
15747 #define HAVE_MACH_CTHREADS 1
15750 elif test $ol_with_threads = found ; then
15751 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15755 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15756 -o $ol_with_threads = pth ; then
15758 for ac_hdr in pth.h
15760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15762 echo "configure:15763: checking for $ac_hdr" >&5
15763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15764 echo $ac_n "(cached) $ac_c" 1>&6
15766 cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15772 { (eval echo configure:15773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15774 if test -z "$ac_err"; then
15776 eval "ac_cv_header_$ac_safe=yes"
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15782 eval "ac_cv_header_$ac_safe=no"
15786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15787 echo "$ac_t""yes" 1>&6
15788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15789 cat >> confdefs.h <<EOF
15790 #define $ac_tr_hdr 1
15794 echo "$ac_t""no" 1>&6
15799 if test $ac_cv_header_pth_h = yes ; then
15800 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15801 echo "configure:15802: checking for pth_version in -lpth" >&5
15802 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15804 echo $ac_n "(cached) $ac_c" 1>&6
15806 ac_save_LIBS="$LIBS"
15808 cat > conftest.$ac_ext <<EOF
15809 #line 15810 "configure"
15810 #include "confdefs.h"
15811 /* Override any gcc2 internal prototype to avoid an error. */
15812 /* We use char because int might match the return type of a gcc2
15813 builtin and then its argument prototype would still apply. */
15814 char pth_version();
15820 if { (eval echo configure:15821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15822 eval "ac_cv_lib_$ac_lib_var=yes"
15824 echo "configure: failed program was:" >&5
15825 cat conftest.$ac_ext >&5
15827 eval "ac_cv_lib_$ac_lib_var=no"
15830 LIBS="$ac_save_LIBS"
15833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15834 echo "$ac_t""yes" 1>&6
15837 echo "$ac_t""no" 1>&6
15842 if test $have_pth = yes ; then
15843 cat >> confdefs.h <<\EOF
15844 #define HAVE_GNU_PTH 1
15847 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15848 ol_link_threads=pth
15849 ol_with_threads=found
15851 if test $ol_with_yielding_select = auto ; then
15852 ol_with_yielding_select=yes
15858 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15859 -o $ol_with_threads = lwp ; then
15861 for ac_hdr in thread.h synch.h
15863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15865 echo "configure:15866: checking for $ac_hdr" >&5
15866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15867 echo $ac_n "(cached) $ac_c" 1>&6
15869 cat > conftest.$ac_ext <<EOF
15870 #line 15871 "configure"
15871 #include "confdefs.h"
15874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15875 { (eval echo configure:15876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15877 if test -z "$ac_err"; then
15879 eval "ac_cv_header_$ac_safe=yes"
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15885 eval "ac_cv_header_$ac_safe=no"
15889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15890 echo "$ac_t""yes" 1>&6
15891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15892 cat >> confdefs.h <<EOF
15893 #define $ac_tr_hdr 1
15897 echo "$ac_t""no" 1>&6
15901 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15902 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15903 echo "configure:15904: checking for thr_create in -lthread" >&5
15904 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15905 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15908 ac_save_LIBS="$LIBS"
15909 LIBS="-lthread $LIBS"
15910 cat > conftest.$ac_ext <<EOF
15911 #line 15912 "configure"
15912 #include "confdefs.h"
15913 /* Override any gcc2 internal prototype to avoid an error. */
15914 /* We use char because int might match the return type of a gcc2
15915 builtin and then its argument prototype would still apply. */
15922 if { (eval echo configure:15923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15924 eval "ac_cv_lib_$ac_lib_var=yes"
15926 echo "configure: failed program was:" >&5
15927 cat conftest.$ac_ext >&5
15929 eval "ac_cv_lib_$ac_lib_var=no"
15932 LIBS="$ac_save_LIBS"
15935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15936 echo "$ac_t""yes" 1>&6
15939 echo "$ac_t""no" 1>&6
15944 if test $have_thr = yes ; then
15945 cat >> confdefs.h <<\EOF
15949 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15950 ol_link_threads=thr
15952 if test $ol_with_yielding_select = auto ; then
15953 ol_with_yielding_select=yes
15957 thr_setconcurrency \
15958 thr_getconcurrency \
15961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15962 echo "configure:15963: checking for $ac_func" >&5
15963 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15964 echo $ac_n "(cached) $ac_c" 1>&6
15966 cat > conftest.$ac_ext <<EOF
15967 #line 15968 "configure"
15968 #include "confdefs.h"
15969 /* System header to define __stub macros and hopefully few prototypes,
15970 which can conflict with char $ac_func(); below. */
15971 #include <assert.h>
15972 /* Override any gcc2 internal prototype to avoid an error. */
15973 /* We use char because int might match the return type of a gcc2
15974 builtin and then its argument prototype would still apply. */
15980 /* The GNU C library defines this for functions which it implements
15981 to always fail with ENOSYS. Some functions are actually named
15982 something starting with __ and the normal name is an alias. */
15983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15991 if { (eval echo configure:15992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15993 eval "ac_cv_func_$ac_func=yes"
15995 echo "configure: failed program was:" >&5
15996 cat conftest.$ac_ext >&5
15998 eval "ac_cv_func_$ac_func=no"
16003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16004 echo "$ac_t""yes" 1>&6
16005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16006 cat >> confdefs.h <<EOF
16007 #define $ac_tr_func 1
16011 echo "$ac_t""no" 1>&6
16018 for ac_hdr in lwp/lwp.h
16020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16022 echo "configure:16023: checking for $ac_hdr" >&5
16023 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16024 echo $ac_n "(cached) $ac_c" 1>&6
16026 cat > conftest.$ac_ext <<EOF
16027 #line 16028 "configure"
16028 #include "confdefs.h"
16031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16032 { (eval echo configure:16033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16034 if test -z "$ac_err"; then
16036 eval "ac_cv_header_$ac_safe=yes"
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16042 eval "ac_cv_header_$ac_safe=no"
16046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16047 echo "$ac_t""yes" 1>&6
16048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16049 cat >> confdefs.h <<EOF
16050 #define $ac_tr_hdr 1
16054 echo "$ac_t""no" 1>&6
16058 if test $ac_cv_header_lwp_lwp_h = yes ; then
16059 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16060 echo "configure:16061: checking for lwp_create in -llwp" >&5
16061 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16062 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
16065 ac_save_LIBS="$LIBS"
16067 cat > conftest.$ac_ext <<EOF
16068 #line 16069 "configure"
16069 #include "confdefs.h"
16070 /* Override any gcc2 internal prototype to avoid an error. */
16071 /* We use char because int might match the return type of a gcc2
16072 builtin and then its argument prototype would still apply. */
16079 if { (eval echo configure:16080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16081 eval "ac_cv_lib_$ac_lib_var=yes"
16083 echo "configure: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16086 eval "ac_cv_lib_$ac_lib_var=no"
16089 LIBS="$ac_save_LIBS"
16092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16093 echo "$ac_t""yes" 1>&6
16096 echo "$ac_t""no" 1>&6
16101 if test $have_lwp = yes ; then
16102 cat >> confdefs.h <<\EOF
16106 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16107 ol_link_threads=lwp
16109 if test $ol_with_yielding_select = auto ; then
16110 ol_with_yielding_select=no
16116 if test $ol_with_yielding_select = yes ; then
16117 cat >> confdefs.h <<\EOF
16118 #define HAVE_YIELDING_SELECT 1
16123 if test $ol_with_threads = manual ; then
16124 ol_link_threads=yes
16126 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16128 for ac_hdr in pthread.h sched.h
16130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16132 echo "configure:16133: checking for $ac_hdr" >&5
16133 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16134 echo $ac_n "(cached) $ac_c" 1>&6
16136 cat > conftest.$ac_ext <<EOF
16137 #line 16138 "configure"
16138 #include "confdefs.h"
16141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16142 { (eval echo configure:16143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16144 if test -z "$ac_err"; then
16146 eval "ac_cv_header_$ac_safe=yes"
16149 echo "configure: failed program was:" >&5
16150 cat conftest.$ac_ext >&5
16152 eval "ac_cv_header_$ac_safe=no"
16156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16157 echo "$ac_t""yes" 1>&6
16158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16159 cat >> confdefs.h <<EOF
16160 #define $ac_tr_hdr 1
16164 echo "$ac_t""no" 1>&6
16168 for ac_func in sched_yield pthread_yield
16170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16171 echo "configure:16172: checking for $ac_func" >&5
16172 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 /* System header to define __stub macros and hopefully few prototypes,
16179 which can conflict with char $ac_func(); below. */
16180 #include <assert.h>
16181 /* Override any gcc2 internal prototype to avoid an error. */
16182 /* We use char because int might match the return type of a gcc2
16183 builtin and then its argument prototype would still apply. */
16189 /* The GNU C library defines this for functions which it implements
16190 to always fail with ENOSYS. Some functions are actually named
16191 something starting with __ and the normal name is an alias. */
16192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16200 if { (eval echo configure:16201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16202 eval "ac_cv_func_$ac_func=yes"
16204 echo "configure: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16207 eval "ac_cv_func_$ac_func=no"
16212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16213 echo "$ac_t""yes" 1>&6
16214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16215 cat >> confdefs.h <<EOF
16216 #define $ac_tr_func 1
16220 echo "$ac_t""no" 1>&6
16225 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16226 echo "configure:16227: checking for LinuxThreads pthread.h" >&5
16227 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16228 echo $ac_n "(cached) $ac_c" 1>&6
16230 cat > conftest.$ac_ext <<EOF
16231 #line 16232 "configure"
16232 #include "confdefs.h"
16233 #include <pthread.h>
16235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16236 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16238 ol_cv_header_linux_threads=yes
16241 ol_cv_header_linux_threads=no
16248 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16249 if test $ol_cv_header_linux_threads = yes; then
16250 cat >> confdefs.h <<\EOF
16251 #define HAVE_LINUX_THREADS 1
16257 for ac_hdr in mach/cthreads.h
16259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16261 echo "configure:16262: checking for $ac_hdr" >&5
16262 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16263 echo $ac_n "(cached) $ac_c" 1>&6
16265 cat > conftest.$ac_ext <<EOF
16266 #line 16267 "configure"
16267 #include "confdefs.h"
16270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16271 { (eval echo configure:16272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16273 if test -z "$ac_err"; then
16275 eval "ac_cv_header_$ac_safe=yes"
16278 echo "configure: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16281 eval "ac_cv_header_$ac_safe=no"
16285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16286 echo "$ac_t""yes" 1>&6
16287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16288 cat >> confdefs.h <<EOF
16289 #define $ac_tr_hdr 1
16293 echo "$ac_t""no" 1>&6
16297 for ac_hdr in lwp/lwp.h
16299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16301 echo "configure:16302: checking for $ac_hdr" >&5
16302 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16303 echo $ac_n "(cached) $ac_c" 1>&6
16305 cat > conftest.$ac_ext <<EOF
16306 #line 16307 "configure"
16307 #include "confdefs.h"
16310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16311 { (eval echo configure:16312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16313 if test -z "$ac_err"; then
16315 eval "ac_cv_header_$ac_safe=yes"
16318 echo "configure: failed program was:" >&5
16319 cat conftest.$ac_ext >&5
16321 eval "ac_cv_header_$ac_safe=no"
16325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16326 echo "$ac_t""yes" 1>&6
16327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16328 cat >> confdefs.h <<EOF
16329 #define $ac_tr_hdr 1
16333 echo "$ac_t""no" 1>&6
16337 for ac_hdr in thread.h synch.h
16339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16341 echo "configure:16342: checking for $ac_hdr" >&5
16342 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16343 echo $ac_n "(cached) $ac_c" 1>&6
16345 cat > conftest.$ac_ext <<EOF
16346 #line 16347 "configure"
16347 #include "confdefs.h"
16350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16351 { (eval echo configure:16352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16353 if test -z "$ac_err"; then
16355 eval "ac_cv_header_$ac_safe=yes"
16358 echo "configure: failed program was:" >&5
16359 cat conftest.$ac_ext >&5
16361 eval "ac_cv_header_$ac_safe=no"
16365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16366 echo "$ac_t""yes" 1>&6
16367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16368 cat >> confdefs.h <<EOF
16369 #define $ac_tr_hdr 1
16373 echo "$ac_t""no" 1>&6
16379 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16380 cat >> confdefs.h <<\EOF
16381 #define REENTRANT 1
16384 cat >> confdefs.h <<\EOF
16385 #define _REENTRANT 1
16388 cat >> confdefs.h <<\EOF
16389 #define THREAD_SAFE 1
16392 cat >> confdefs.h <<\EOF
16393 #define _THREAD_SAFE 1
16396 cat >> confdefs.h <<\EOF
16397 #define THREADSAFE 1
16400 cat >> confdefs.h <<\EOF
16401 #define _THREADSAFE 1
16404 cat >> confdefs.h <<\EOF
16405 #define _SGI_MP_SOURCE 1
16409 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16410 echo "configure:16411: checking for thread specific errno" >&5
16411 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16412 echo $ac_n "(cached) $ac_c" 1>&6
16415 cat > conftest.$ac_ext <<EOF
16416 #line 16417 "configure"
16417 #include "confdefs.h"
16423 if { (eval echo configure:16424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16425 ol_cv_errno_thread_specific=yes
16427 echo "configure: failed program was:" >&5
16428 cat conftest.$ac_ext >&5
16430 ol_cv_errno_thread_specific=no
16436 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16438 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16439 echo "configure:16440: checking for thread specific h_errno" >&5
16440 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16441 echo $ac_n "(cached) $ac_c" 1>&6
16444 cat > conftest.$ac_ext <<EOF
16445 #line 16446 "configure"
16446 #include "confdefs.h"
16452 if { (eval echo configure:16453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16454 ol_cv_h_errno_thread_specific=yes
16456 echo "configure: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16459 ol_cv_h_errno_thread_specific=no
16465 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16467 if test $ol_cv_errno_thread_specific != yes \
16468 -o $ol_cv_h_errno_thread_specific != yes ; then
16469 LIBS="$LTHREAD_LIBS $LIBS"
16475 if test $ol_link_threads = no ; then
16476 if test $ol_with_threads = yes ; then
16477 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16480 if test $ol_with_threads = auto ; then
16481 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16485 cat >> confdefs.h <<\EOF
16486 #define NO_THREADS 1
16492 if test $ol_link_threads != no ; then
16493 cat >> confdefs.h <<\EOF
16494 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16501 gethostbyname_r gethostbyaddr_r \
16504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16505 echo "configure:16506: checking for $ac_func" >&5
16506 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16507 echo $ac_n "(cached) $ac_c" 1>&6
16509 cat > conftest.$ac_ext <<EOF
16510 #line 16511 "configure"
16511 #include "confdefs.h"
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func(); below. */
16514 #include <assert.h>
16515 /* Override any gcc2 internal prototype to avoid an error. */
16516 /* We use char because int might match the return type of a gcc2
16517 builtin and then its argument prototype would still apply. */
16523 /* The GNU C library defines this for functions which it implements
16524 to always fail with ENOSYS. Some functions are actually named
16525 something starting with __ and the normal name is an alias. */
16526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16534 if { (eval echo configure:16535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16536 eval "ac_cv_func_$ac_func=yes"
16538 echo "configure: failed program was:" >&5
16539 cat conftest.$ac_ext >&5
16541 eval "ac_cv_func_$ac_func=no"
16546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16547 echo "$ac_t""yes" 1>&6
16548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16549 cat >> confdefs.h <<EOF
16550 #define $ac_tr_func 1
16554 echo "$ac_t""no" 1>&6
16559 if test "$ac_cv_func_ctime_r" = no ; then
16560 ol_cv_func_ctime_r_nargs=0
16562 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16563 echo "configure:16564: checking number of arguments of ctime_r" >&5
16564 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16565 echo $ac_n "(cached) $ac_c" 1>&6
16567 cat > conftest.$ac_ext <<EOF
16568 #line 16569 "configure"
16569 #include "confdefs.h"
16572 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16575 if { (eval echo configure:16576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16577 ol_cv_func_ctime_r_nargs3=yes
16579 echo "configure: failed program was:" >&5
16580 cat conftest.$ac_ext >&5
16582 ol_cv_func_ctime_r_nargs3=no
16586 cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16591 time_t ti; char *buffer; ctime_r(&ti,buffer);
16594 if { (eval echo configure:16595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16596 ol_cv_func_ctime_r_nargs2=yes
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16601 ol_cv_func_ctime_r_nargs2=no
16605 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16606 $ol_cv_func_ctime_r_nargs2 = no ; then
16608 ol_cv_func_ctime_r_nargs=3
16610 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16611 $ol_cv_func_ctime_r_nargs2 = yes ; then
16613 ol_cv_func_ctime_r_nargs=2
16616 ol_cv_func_ctime_r_nargs=0
16621 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16623 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16624 cat >> confdefs.h <<EOF
16625 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16632 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16633 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16634 echo "configure:16635: checking number of arguments of gethostbyname_r" >&5
16635 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16636 echo $ac_n "(cached) $ac_c" 1>&6
16638 cat > conftest.$ac_ext <<EOF
16639 #line 16640 "configure"
16640 #include "confdefs.h"
16641 #include <sys/types.h>
16642 #include <sys/socket.h>
16643 #include <netinet/in.h>
16645 #define BUFSIZE (sizeof(struct hostent)+10)
16647 struct hostent hent; char buffer[BUFSIZE];
16648 int bufsize=BUFSIZE;int h_errno;
16649 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16650 buffer, bufsize, &h_errno);
16653 if { (eval echo configure:16654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16655 ol_cv_func_gethostbyname_r_nargs5=yes
16657 echo "configure: failed program was:" >&5
16658 cat conftest.$ac_ext >&5
16660 ol_cv_func_gethostbyname_r_nargs5=no
16664 cat > conftest.$ac_ext <<EOF
16665 #line 16666 "configure"
16666 #include "confdefs.h"
16667 #include <sys/types.h>
16668 #include <sys/socket.h>
16669 #include <netinet/in.h>
16671 #define BUFSIZE (sizeof(struct hostent)+10)
16673 struct hostent hent;struct hostent *rhent;
16674 char buffer[BUFSIZE];
16675 int bufsize=BUFSIZE;int h_errno;
16676 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16680 if { (eval echo configure:16681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16682 ol_cv_func_gethostbyname_r_nargs6=yes
16684 echo "configure: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16687 ol_cv_func_gethostbyname_r_nargs6=no
16691 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16692 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16694 ol_cv_func_gethostbyname_r_nargs=5
16696 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16697 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16699 ol_cv_func_gethostbyname_r_nargs=6
16702 ol_cv_func_gethostbyname_r_nargs=0
16707 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16708 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16709 cat >> confdefs.h <<EOF
16710 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16716 ol_cv_func_gethostbyname_r_nargs=0
16719 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16720 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16721 echo "configure:16722: checking number of arguments of gethostbyaddr_r" >&5
16722 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16723 echo $ac_n "(cached) $ac_c" 1>&6
16725 cat > conftest.$ac_ext <<EOF
16726 #line 16727 "configure"
16727 #include "confdefs.h"
16728 #include <sys/types.h>
16729 #include <sys/socket.h>
16730 #include <netinet/in.h>
16732 #define BUFSIZE (sizeof(struct hostent)+10)
16734 struct hostent hent; char buffer[BUFSIZE];
16735 struct in_addr add;
16736 size_t alen=sizeof(struct in_addr);
16737 int bufsize=BUFSIZE;int h_errno;
16738 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16739 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16742 if { (eval echo configure:16743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16744 ol_cv_func_gethostbyaddr_r_nargs7=yes
16746 echo "configure: failed program was:" >&5
16747 cat conftest.$ac_ext >&5
16749 ol_cv_func_gethostbyaddr_r_nargs7=no
16753 cat > conftest.$ac_ext <<EOF
16754 #line 16755 "configure"
16755 #include "confdefs.h"
16756 #include <sys/types.h>
16757 #include <sys/socket.h>
16758 #include <netinet/in.h>
16760 #define BUFSIZE (sizeof(struct hostent)+10)
16762 struct hostent hent;
16763 struct hostent *rhent; char buffer[BUFSIZE];
16764 struct in_addr add;
16765 size_t alen=sizeof(struct in_addr);
16766 int bufsize=BUFSIZE;int h_errno;
16767 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16768 alen, AF_INET, &hent, buffer, bufsize,
16772 if { (eval echo configure:16773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16774 ol_cv_func_gethostbyaddr_r_nargs8=yes
16776 echo "configure: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16779 ol_cv_func_gethostbyaddr_r_nargs8=no
16783 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16784 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16786 ol_cv_func_gethostbyaddr_r_nargs=7
16788 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16789 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16791 ol_cv_func_gethostbyaddr_r_nargs=8
16794 ol_cv_func_gethostbyaddr_r_nargs=0
16799 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16800 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16801 cat >> confdefs.h <<EOF
16802 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16808 ol_cv_func_gethostbyaddr_r_nargs=0
16813 if test $ol_with_ldbm_api = auto \
16814 -o $ol_with_ldbm_api = berkeley \
16815 -o $ol_with_ldbm_api = bcompat ; then
16817 if test $ol_with_ldbm_api = bcompat; then \
16818 for ac_hdr in db_185.h db.h
16820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16822 echo "configure:16823: checking for $ac_hdr" >&5
16823 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16832 { (eval echo configure:16833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16834 if test -z "$ac_err"; then
16836 eval "ac_cv_header_$ac_safe=yes"
16839 echo "configure: failed program was:" >&5
16840 cat conftest.$ac_ext >&5
16842 eval "ac_cv_header_$ac_safe=no"
16846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16847 echo "$ac_t""yes" 1>&6
16848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16849 cat >> confdefs.h <<EOF
16850 #define $ac_tr_hdr 1
16854 echo "$ac_t""no" 1>&6
16858 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16859 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16860 echo "configure:16861: checking if Berkeley DB header compatibility" >&5
16861 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16862 echo $ac_n "(cached) $ac_c" 1>&6
16865 cat > conftest.$ac_ext <<EOF
16866 #line 16867 "configure"
16867 #include "confdefs.h"
16870 # include <db_185.h>
16875 /* this check could be improved */
16876 #ifndef DB_VERSION_MAJOR
16877 # define DB_VERSION_MAJOR 1
16880 #if DB_VERSION_MAJOR == 1
16885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16886 egrep "__db_version_1" >/dev/null 2>&1; then
16888 ol_cv_header_db1=yes
16891 ol_cv_header_db1=no
16897 echo "$ac_t""$ol_cv_header_db1" 1>&6
16899 if test $ol_cv_header_db1 = yes ; then
16901 if test $ol_cv_lib_db = no ; then
16902 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16903 echo "configure:16904: checking for Berkeley DB link (default)" >&5
16904 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16905 echo $ac_n "(cached) $ac_c" 1>&6
16910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16912 cat > conftest.$ac_ext <<EOF
16913 #line 16914 "configure"
16914 #include "confdefs.h"
16916 #ifdef HAVE_DB_185_H
16917 # include <db_185.h>
16922 #ifndef DB_VERSION_MAJOR
16923 # define DB_VERSION_MAJOR 1
16927 #define NULL ((void*)0)
16932 #if DB_VERSION_MAJOR > 1
16935 int major, minor, patch;
16937 version = db_version( &major, &minor, &patch );
16939 if( major != DB_VERSION_MAJOR ||
16940 minor < DB_VERSION_MINOR )
16942 printf("Berkeley DB version mismatch\n"
16943 "\theader: %s\n\tlibrary: %s\n",
16944 DB_VERSION_STRING, version);
16950 #if DB_VERSION_MAJOR > 2
16951 db_env_create( NULL, 0 );
16952 #elif DB_VERSION_MAJOR > 1
16953 db_appexit( NULL );
16955 (void) dbopen( NULL, 0, 0, 0, NULL);
16960 if { (eval echo configure:16961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16964 echo "configure: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16975 echo "$ac_t""$ol_cv_db_none" 1>&6
16977 if test $ol_cv_db_none = yes ; then
16982 if test $ol_cv_lib_db = no ; then
16983 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16984 echo "configure:16985: checking for Berkeley DB link (-ldb42)" >&5
16985 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16986 echo $ac_n "(cached) $ac_c" 1>&6
16991 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16993 cat > conftest.$ac_ext <<EOF
16994 #line 16995 "configure"
16995 #include "confdefs.h"
16997 #ifdef HAVE_DB_185_H
16998 # include <db_185.h>
17003 #ifndef DB_VERSION_MAJOR
17004 # define DB_VERSION_MAJOR 1
17008 #define NULL ((void*)0)
17013 #if DB_VERSION_MAJOR > 1
17016 int major, minor, patch;
17018 version = db_version( &major, &minor, &patch );
17020 if( major != DB_VERSION_MAJOR ||
17021 minor < DB_VERSION_MINOR )
17023 printf("Berkeley DB version mismatch\n"
17024 "\theader: %s\n\tlibrary: %s\n",
17025 DB_VERSION_STRING, version);
17031 #if DB_VERSION_MAJOR > 2
17032 db_env_create( NULL, 0 );
17033 #elif DB_VERSION_MAJOR > 1
17034 db_appexit( NULL );
17036 (void) dbopen( NULL, 0, 0, 0, NULL);
17041 if { (eval echo configure:17042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17045 echo "configure: failed program was:" >&5
17046 cat conftest.$ac_ext >&5
17056 echo "$ac_t""$ol_cv_db_db42" 1>&6
17058 if test $ol_cv_db_db42 = yes ; then
17059 ol_cv_lib_db=-ldb42
17063 if test $ol_cv_lib_db = no ; then
17064 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17065 echo "configure:17066: checking for Berkeley DB link (-ldb-42)" >&5
17066 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17067 echo $ac_n "(cached) $ac_c" 1>&6
17072 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17074 cat > conftest.$ac_ext <<EOF
17075 #line 17076 "configure"
17076 #include "confdefs.h"
17078 #ifdef HAVE_DB_185_H
17079 # include <db_185.h>
17084 #ifndef DB_VERSION_MAJOR
17085 # define DB_VERSION_MAJOR 1
17089 #define NULL ((void*)0)
17094 #if DB_VERSION_MAJOR > 1
17097 int major, minor, patch;
17099 version = db_version( &major, &minor, &patch );
17101 if( major != DB_VERSION_MAJOR ||
17102 minor < DB_VERSION_MINOR )
17104 printf("Berkeley DB version mismatch\n"
17105 "\theader: %s\n\tlibrary: %s\n",
17106 DB_VERSION_STRING, version);
17112 #if DB_VERSION_MAJOR > 2
17113 db_env_create( NULL, 0 );
17114 #elif DB_VERSION_MAJOR > 1
17115 db_appexit( NULL );
17117 (void) dbopen( NULL, 0, 0, 0, NULL);
17122 if { (eval echo configure:17123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17126 echo "configure: failed program was:" >&5
17127 cat conftest.$ac_ext >&5
17137 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17139 if test $ol_cv_db_db_42 = yes ; then
17140 ol_cv_lib_db=-ldb-42
17144 if test $ol_cv_lib_db = no ; then
17145 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17146 echo "configure:17147: checking for Berkeley DB link (-ldb-4.2)" >&5
17147 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17148 echo $ac_n "(cached) $ac_c" 1>&6
17153 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17155 cat > conftest.$ac_ext <<EOF
17156 #line 17157 "configure"
17157 #include "confdefs.h"
17159 #ifdef HAVE_DB_185_H
17160 # include <db_185.h>
17165 #ifndef DB_VERSION_MAJOR
17166 # define DB_VERSION_MAJOR 1
17170 #define NULL ((void*)0)
17175 #if DB_VERSION_MAJOR > 1
17178 int major, minor, patch;
17180 version = db_version( &major, &minor, &patch );
17182 if( major != DB_VERSION_MAJOR ||
17183 minor < DB_VERSION_MINOR )
17185 printf("Berkeley DB version mismatch\n"
17186 "\theader: %s\n\tlibrary: %s\n",
17187 DB_VERSION_STRING, version);
17193 #if DB_VERSION_MAJOR > 2
17194 db_env_create( NULL, 0 );
17195 #elif DB_VERSION_MAJOR > 1
17196 db_appexit( NULL );
17198 (void) dbopen( NULL, 0, 0, 0, NULL);
17203 if { (eval echo configure:17204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17205 ol_cv_db_db_4_dot_2=yes
17207 echo "configure: failed program was:" >&5
17208 cat conftest.$ac_ext >&5
17210 ol_cv_db_db_4_dot_2=no
17218 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17220 if test $ol_cv_db_db_4_dot_2 = yes ; then
17221 ol_cv_lib_db=-ldb-4.2
17225 if test $ol_cv_lib_db = no ; then
17226 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17227 echo "configure:17228: checking for Berkeley DB link (-ldb-4-2)" >&5
17228 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17229 echo $ac_n "(cached) $ac_c" 1>&6
17234 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17236 cat > conftest.$ac_ext <<EOF
17237 #line 17238 "configure"
17238 #include "confdefs.h"
17240 #ifdef HAVE_DB_185_H
17241 # include <db_185.h>
17246 #ifndef DB_VERSION_MAJOR
17247 # define DB_VERSION_MAJOR 1
17251 #define NULL ((void*)0)
17256 #if DB_VERSION_MAJOR > 1
17259 int major, minor, patch;
17261 version = db_version( &major, &minor, &patch );
17263 if( major != DB_VERSION_MAJOR ||
17264 minor < DB_VERSION_MINOR )
17266 printf("Berkeley DB version mismatch\n"
17267 "\theader: %s\n\tlibrary: %s\n",
17268 DB_VERSION_STRING, version);
17274 #if DB_VERSION_MAJOR > 2
17275 db_env_create( NULL, 0 );
17276 #elif DB_VERSION_MAJOR > 1
17277 db_appexit( NULL );
17279 (void) dbopen( NULL, 0, 0, 0, NULL);
17284 if { (eval echo configure:17285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17286 ol_cv_db_db_4_2=yes
17288 echo "configure: failed program was:" >&5
17289 cat conftest.$ac_ext >&5
17299 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17301 if test $ol_cv_db_db_4_2 = yes ; then
17302 ol_cv_lib_db=-ldb-4-2
17306 if test $ol_cv_lib_db = no ; then
17307 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17308 echo "configure:17309: checking for Berkeley DB link (-ldb-4)" >&5
17309 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17310 echo $ac_n "(cached) $ac_c" 1>&6
17315 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17317 cat > conftest.$ac_ext <<EOF
17318 #line 17319 "configure"
17319 #include "confdefs.h"
17321 #ifdef HAVE_DB_185_H
17322 # include <db_185.h>
17327 #ifndef DB_VERSION_MAJOR
17328 # define DB_VERSION_MAJOR 1
17332 #define NULL ((void*)0)
17337 #if DB_VERSION_MAJOR > 1
17340 int major, minor, patch;
17342 version = db_version( &major, &minor, &patch );
17344 if( major != DB_VERSION_MAJOR ||
17345 minor < DB_VERSION_MINOR )
17347 printf("Berkeley DB version mismatch\n"
17348 "\theader: %s\n\tlibrary: %s\n",
17349 DB_VERSION_STRING, version);
17355 #if DB_VERSION_MAJOR > 2
17356 db_env_create( NULL, 0 );
17357 #elif DB_VERSION_MAJOR > 1
17358 db_appexit( NULL );
17360 (void) dbopen( NULL, 0, 0, 0, NULL);
17365 if { (eval echo configure:17366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17369 echo "configure: failed program was:" >&5
17370 cat conftest.$ac_ext >&5
17380 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17382 if test $ol_cv_db_db_4 = yes ; then
17383 ol_cv_lib_db=-ldb-4
17387 if test $ol_cv_lib_db = no ; then
17388 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17389 echo "configure:17390: checking for Berkeley DB link (-ldb4)" >&5
17390 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17391 echo $ac_n "(cached) $ac_c" 1>&6
17396 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17398 cat > conftest.$ac_ext <<EOF
17399 #line 17400 "configure"
17400 #include "confdefs.h"
17402 #ifdef HAVE_DB_185_H
17403 # include <db_185.h>
17408 #ifndef DB_VERSION_MAJOR
17409 # define DB_VERSION_MAJOR 1
17413 #define NULL ((void*)0)
17418 #if DB_VERSION_MAJOR > 1
17421 int major, minor, patch;
17423 version = db_version( &major, &minor, &patch );
17425 if( major != DB_VERSION_MAJOR ||
17426 minor < DB_VERSION_MINOR )
17428 printf("Berkeley DB version mismatch\n"
17429 "\theader: %s\n\tlibrary: %s\n",
17430 DB_VERSION_STRING, version);
17436 #if DB_VERSION_MAJOR > 2
17437 db_env_create( NULL, 0 );
17438 #elif DB_VERSION_MAJOR > 1
17439 db_appexit( NULL );
17441 (void) dbopen( NULL, 0, 0, 0, NULL);
17446 if { (eval echo configure:17447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17450 echo "configure: failed program was:" >&5
17451 cat conftest.$ac_ext >&5
17461 echo "$ac_t""$ol_cv_db_db4" 1>&6
17463 if test $ol_cv_db_db4 = yes ; then
17468 if test $ol_cv_lib_db = no ; then
17469 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17470 echo "configure:17471: checking for Berkeley DB link (-ldb)" >&5
17471 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17472 echo $ac_n "(cached) $ac_c" 1>&6
17477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17479 cat > conftest.$ac_ext <<EOF
17480 #line 17481 "configure"
17481 #include "confdefs.h"
17483 #ifdef HAVE_DB_185_H
17484 # include <db_185.h>
17489 #ifndef DB_VERSION_MAJOR
17490 # define DB_VERSION_MAJOR 1
17494 #define NULL ((void*)0)
17499 #if DB_VERSION_MAJOR > 1
17502 int major, minor, patch;
17504 version = db_version( &major, &minor, &patch );
17506 if( major != DB_VERSION_MAJOR ||
17507 minor < DB_VERSION_MINOR )
17509 printf("Berkeley DB version mismatch\n"
17510 "\theader: %s\n\tlibrary: %s\n",
17511 DB_VERSION_STRING, version);
17517 #if DB_VERSION_MAJOR > 2
17518 db_env_create( NULL, 0 );
17519 #elif DB_VERSION_MAJOR > 1
17520 db_appexit( NULL );
17522 (void) dbopen( NULL, 0, 0, 0, NULL);
17527 if { (eval echo configure:17528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17531 echo "configure: failed program was:" >&5
17532 cat conftest.$ac_ext >&5
17542 echo "$ac_t""$ol_cv_db_db" 1>&6
17544 if test $ol_cv_db_db = yes ; then
17549 if test $ol_cv_lib_db = no ; then
17550 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17551 echo "configure:17552: checking for Berkeley DB link (-ldb41)" >&5
17552 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17553 echo $ac_n "(cached) $ac_c" 1>&6
17558 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17560 cat > conftest.$ac_ext <<EOF
17561 #line 17562 "configure"
17562 #include "confdefs.h"
17564 #ifdef HAVE_DB_185_H
17565 # include <db_185.h>
17570 #ifndef DB_VERSION_MAJOR
17571 # define DB_VERSION_MAJOR 1
17575 #define NULL ((void*)0)
17580 #if DB_VERSION_MAJOR > 1
17583 int major, minor, patch;
17585 version = db_version( &major, &minor, &patch );
17587 if( major != DB_VERSION_MAJOR ||
17588 minor < DB_VERSION_MINOR )
17590 printf("Berkeley DB version mismatch\n"
17591 "\theader: %s\n\tlibrary: %s\n",
17592 DB_VERSION_STRING, version);
17598 #if DB_VERSION_MAJOR > 2
17599 db_env_create( NULL, 0 );
17600 #elif DB_VERSION_MAJOR > 1
17601 db_appexit( NULL );
17603 (void) dbopen( NULL, 0, 0, 0, NULL);
17608 if { (eval echo configure:17609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17612 echo "configure: failed program was:" >&5
17613 cat conftest.$ac_ext >&5
17623 echo "$ac_t""$ol_cv_db_db41" 1>&6
17625 if test $ol_cv_db_db41 = yes ; then
17626 ol_cv_lib_db=-ldb41
17630 if test $ol_cv_lib_db = no ; then
17631 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17632 echo "configure:17633: checking for Berkeley DB link (-ldb-41)" >&5
17633 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17634 echo $ac_n "(cached) $ac_c" 1>&6
17639 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17641 cat > conftest.$ac_ext <<EOF
17642 #line 17643 "configure"
17643 #include "confdefs.h"
17645 #ifdef HAVE_DB_185_H
17646 # include <db_185.h>
17651 #ifndef DB_VERSION_MAJOR
17652 # define DB_VERSION_MAJOR 1
17656 #define NULL ((void*)0)
17661 #if DB_VERSION_MAJOR > 1
17664 int major, minor, patch;
17666 version = db_version( &major, &minor, &patch );
17668 if( major != DB_VERSION_MAJOR ||
17669 minor < DB_VERSION_MINOR )
17671 printf("Berkeley DB version mismatch\n"
17672 "\theader: %s\n\tlibrary: %s\n",
17673 DB_VERSION_STRING, version);
17679 #if DB_VERSION_MAJOR > 2
17680 db_env_create( NULL, 0 );
17681 #elif DB_VERSION_MAJOR > 1
17682 db_appexit( NULL );
17684 (void) dbopen( NULL, 0, 0, 0, NULL);
17689 if { (eval echo configure:17690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17693 echo "configure: failed program was:" >&5
17694 cat conftest.$ac_ext >&5
17704 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17706 if test $ol_cv_db_db_41 = yes ; then
17707 ol_cv_lib_db=-ldb-41
17711 if test $ol_cv_lib_db = no ; then
17712 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17713 echo "configure:17714: checking for Berkeley DB link (-ldb-4.1)" >&5
17714 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17715 echo $ac_n "(cached) $ac_c" 1>&6
17720 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17722 cat > conftest.$ac_ext <<EOF
17723 #line 17724 "configure"
17724 #include "confdefs.h"
17726 #ifdef HAVE_DB_185_H
17727 # include <db_185.h>
17732 #ifndef DB_VERSION_MAJOR
17733 # define DB_VERSION_MAJOR 1
17737 #define NULL ((void*)0)
17742 #if DB_VERSION_MAJOR > 1
17745 int major, minor, patch;
17747 version = db_version( &major, &minor, &patch );
17749 if( major != DB_VERSION_MAJOR ||
17750 minor < DB_VERSION_MINOR )
17752 printf("Berkeley DB version mismatch\n"
17753 "\theader: %s\n\tlibrary: %s\n",
17754 DB_VERSION_STRING, version);
17760 #if DB_VERSION_MAJOR > 2
17761 db_env_create( NULL, 0 );
17762 #elif DB_VERSION_MAJOR > 1
17763 db_appexit( NULL );
17765 (void) dbopen( NULL, 0, 0, 0, NULL);
17770 if { (eval echo configure:17771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17772 ol_cv_db_db_4_dot_1=yes
17774 echo "configure: failed program was:" >&5
17775 cat conftest.$ac_ext >&5
17777 ol_cv_db_db_4_dot_1=no
17785 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17787 if test $ol_cv_db_db_4_dot_1 = yes ; then
17788 ol_cv_lib_db=-ldb-4.1
17792 if test $ol_cv_lib_db = no ; then
17793 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17794 echo "configure:17795: checking for Berkeley DB link (-ldb-4-1)" >&5
17795 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17796 echo $ac_n "(cached) $ac_c" 1>&6
17801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17803 cat > conftest.$ac_ext <<EOF
17804 #line 17805 "configure"
17805 #include "confdefs.h"
17807 #ifdef HAVE_DB_185_H
17808 # include <db_185.h>
17813 #ifndef DB_VERSION_MAJOR
17814 # define DB_VERSION_MAJOR 1
17818 #define NULL ((void*)0)
17823 #if DB_VERSION_MAJOR > 1
17826 int major, minor, patch;
17828 version = db_version( &major, &minor, &patch );
17830 if( major != DB_VERSION_MAJOR ||
17831 minor < DB_VERSION_MINOR )
17833 printf("Berkeley DB version mismatch\n"
17834 "\theader: %s\n\tlibrary: %s\n",
17835 DB_VERSION_STRING, version);
17841 #if DB_VERSION_MAJOR > 2
17842 db_env_create( NULL, 0 );
17843 #elif DB_VERSION_MAJOR > 1
17844 db_appexit( NULL );
17846 (void) dbopen( NULL, 0, 0, 0, NULL);
17851 if { (eval echo configure:17852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17853 ol_cv_db_db_4_1=yes
17855 echo "configure: failed program was:" >&5
17856 cat conftest.$ac_ext >&5
17866 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17868 if test $ol_cv_db_db_4_1 = yes ; then
17869 ol_cv_lib_db=-ldb-4-1
17873 if test $ol_cv_lib_db = no ; then
17874 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17875 echo "configure:17876: checking for Berkeley DB link (-ldb3)" >&5
17876 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17877 echo $ac_n "(cached) $ac_c" 1>&6
17882 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17884 cat > conftest.$ac_ext <<EOF
17885 #line 17886 "configure"
17886 #include "confdefs.h"
17888 #ifdef HAVE_DB_185_H
17889 # include <db_185.h>
17894 #ifndef DB_VERSION_MAJOR
17895 # define DB_VERSION_MAJOR 1
17899 #define NULL ((void*)0)
17904 #if DB_VERSION_MAJOR > 1
17907 int major, minor, patch;
17909 version = db_version( &major, &minor, &patch );
17911 if( major != DB_VERSION_MAJOR ||
17912 minor < DB_VERSION_MINOR )
17914 printf("Berkeley DB version mismatch\n"
17915 "\theader: %s\n\tlibrary: %s\n",
17916 DB_VERSION_STRING, version);
17922 #if DB_VERSION_MAJOR > 2
17923 db_env_create( NULL, 0 );
17924 #elif DB_VERSION_MAJOR > 1
17925 db_appexit( NULL );
17927 (void) dbopen( NULL, 0, 0, 0, NULL);
17932 if { (eval echo configure:17933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17936 echo "configure: failed program was:" >&5
17937 cat conftest.$ac_ext >&5
17947 echo "$ac_t""$ol_cv_db_db3" 1>&6
17949 if test $ol_cv_db_db3 = yes ; then
17954 if test $ol_cv_lib_db = no ; then
17955 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17956 echo "configure:17957: checking for Berkeley DB link (-ldb-3)" >&5
17957 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17958 echo $ac_n "(cached) $ac_c" 1>&6
17963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17965 cat > conftest.$ac_ext <<EOF
17966 #line 17967 "configure"
17967 #include "confdefs.h"
17969 #ifdef HAVE_DB_185_H
17970 # include <db_185.h>
17975 #ifndef DB_VERSION_MAJOR
17976 # define DB_VERSION_MAJOR 1
17980 #define NULL ((void*)0)
17985 #if DB_VERSION_MAJOR > 1
17988 int major, minor, patch;
17990 version = db_version( &major, &minor, &patch );
17992 if( major != DB_VERSION_MAJOR ||
17993 minor < DB_VERSION_MINOR )
17995 printf("Berkeley DB version mismatch\n"
17996 "\theader: %s\n\tlibrary: %s\n",
17997 DB_VERSION_STRING, version);
18003 #if DB_VERSION_MAJOR > 2
18004 db_env_create( NULL, 0 );
18005 #elif DB_VERSION_MAJOR > 1
18006 db_appexit( NULL );
18008 (void) dbopen( NULL, 0, 0, 0, NULL);
18013 if { (eval echo configure:18014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18017 echo "configure: failed program was:" >&5
18018 cat conftest.$ac_ext >&5
18028 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18030 if test $ol_cv_db_db_3 = yes ; then
18031 ol_cv_lib_db=-ldb-3
18035 if test $ol_cv_lib_db = no ; then
18036 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18037 echo "configure:18038: checking for Berkeley DB link (-ldb2)" >&5
18038 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18039 echo $ac_n "(cached) $ac_c" 1>&6
18044 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18046 cat > conftest.$ac_ext <<EOF
18047 #line 18048 "configure"
18048 #include "confdefs.h"
18050 #ifdef HAVE_DB_185_H
18051 # include <db_185.h>
18056 #ifndef DB_VERSION_MAJOR
18057 # define DB_VERSION_MAJOR 1
18061 #define NULL ((void*)0)
18066 #if DB_VERSION_MAJOR > 1
18069 int major, minor, patch;
18071 version = db_version( &major, &minor, &patch );
18073 if( major != DB_VERSION_MAJOR ||
18074 minor < DB_VERSION_MINOR )
18076 printf("Berkeley DB version mismatch\n"
18077 "\theader: %s\n\tlibrary: %s\n",
18078 DB_VERSION_STRING, version);
18084 #if DB_VERSION_MAJOR > 2
18085 db_env_create( NULL, 0 );
18086 #elif DB_VERSION_MAJOR > 1
18087 db_appexit( NULL );
18089 (void) dbopen( NULL, 0, 0, 0, NULL);
18094 if { (eval echo configure:18095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18098 echo "configure: failed program was:" >&5
18099 cat conftest.$ac_ext >&5
18109 echo "$ac_t""$ol_cv_db_db2" 1>&6
18111 if test $ol_cv_db_db2 = yes ; then
18116 if test $ol_cv_lib_db = no ; then
18117 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18118 echo "configure:18119: checking for Berkeley DB link (-ldb-2)" >&5
18119 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18120 echo $ac_n "(cached) $ac_c" 1>&6
18125 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18127 cat > conftest.$ac_ext <<EOF
18128 #line 18129 "configure"
18129 #include "confdefs.h"
18131 #ifdef HAVE_DB_185_H
18132 # include <db_185.h>
18137 #ifndef DB_VERSION_MAJOR
18138 # define DB_VERSION_MAJOR 1
18142 #define NULL ((void*)0)
18147 #if DB_VERSION_MAJOR > 1
18150 int major, minor, patch;
18152 version = db_version( &major, &minor, &patch );
18154 if( major != DB_VERSION_MAJOR ||
18155 minor < DB_VERSION_MINOR )
18157 printf("Berkeley DB version mismatch\n"
18158 "\theader: %s\n\tlibrary: %s\n",
18159 DB_VERSION_STRING, version);
18165 #if DB_VERSION_MAJOR > 2
18166 db_env_create( NULL, 0 );
18167 #elif DB_VERSION_MAJOR > 1
18168 db_appexit( NULL );
18170 (void) dbopen( NULL, 0, 0, 0, NULL);
18175 if { (eval echo configure:18176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18179 echo "configure: failed program was:" >&5
18180 cat conftest.$ac_ext >&5
18190 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18192 if test $ol_cv_db_db_2 = yes ; then
18193 ol_cv_lib_db=-ldb-2
18197 if test $ol_cv_lib_db = no ; then
18198 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18199 echo "configure:18200: checking for Berkeley DB link (-ldb1)" >&5
18200 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18201 echo $ac_n "(cached) $ac_c" 1>&6
18206 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18208 cat > conftest.$ac_ext <<EOF
18209 #line 18210 "configure"
18210 #include "confdefs.h"
18212 #ifdef HAVE_DB_185_H
18213 # include <db_185.h>
18218 #ifndef DB_VERSION_MAJOR
18219 # define DB_VERSION_MAJOR 1
18223 #define NULL ((void*)0)
18228 #if DB_VERSION_MAJOR > 1
18231 int major, minor, patch;
18233 version = db_version( &major, &minor, &patch );
18235 if( major != DB_VERSION_MAJOR ||
18236 minor < DB_VERSION_MINOR )
18238 printf("Berkeley DB version mismatch\n"
18239 "\theader: %s\n\tlibrary: %s\n",
18240 DB_VERSION_STRING, version);
18246 #if DB_VERSION_MAJOR > 2
18247 db_env_create( NULL, 0 );
18248 #elif DB_VERSION_MAJOR > 1
18249 db_appexit( NULL );
18251 (void) dbopen( NULL, 0, 0, 0, NULL);
18256 if { (eval echo configure:18257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18260 echo "configure: failed program was:" >&5
18261 cat conftest.$ac_ext >&5
18271 echo "$ac_t""$ol_cv_db_db1" 1>&6
18273 if test $ol_cv_db_db1 = yes ; then
18278 if test $ol_cv_lib_db = no ; then
18279 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18280 echo "configure:18281: checking for Berkeley DB link (-ldb-1)" >&5
18281 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18282 echo $ac_n "(cached) $ac_c" 1>&6
18287 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18289 cat > conftest.$ac_ext <<EOF
18290 #line 18291 "configure"
18291 #include "confdefs.h"
18293 #ifdef HAVE_DB_185_H
18294 # include <db_185.h>
18299 #ifndef DB_VERSION_MAJOR
18300 # define DB_VERSION_MAJOR 1
18304 #define NULL ((void*)0)
18309 #if DB_VERSION_MAJOR > 1
18312 int major, minor, patch;
18314 version = db_version( &major, &minor, &patch );
18316 if( major != DB_VERSION_MAJOR ||
18317 minor < DB_VERSION_MINOR )
18319 printf("Berkeley DB version mismatch\n"
18320 "\theader: %s\n\tlibrary: %s\n",
18321 DB_VERSION_STRING, version);
18327 #if DB_VERSION_MAJOR > 2
18328 db_env_create( NULL, 0 );
18329 #elif DB_VERSION_MAJOR > 1
18330 db_appexit( NULL );
18332 (void) dbopen( NULL, 0, 0, 0, NULL);
18337 if { (eval echo configure:18338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18341 echo "configure: failed program was:" >&5
18342 cat conftest.$ac_ext >&5
18352 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18354 if test $ol_cv_db_db_1 = yes ; then
18355 ol_cv_lib_db=-ldb-1
18360 if test "$ol_cv_lib_db" != no ; then
18361 ol_cv_berkeley_db=yes
18367 ol_cv_berkeley_db=no
18370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18372 echo "configure:18373: checking for $ac_hdr" >&5
18373 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18374 echo $ac_n "(cached) $ac_c" 1>&6
18376 cat > conftest.$ac_ext <<EOF
18377 #line 18378 "configure"
18378 #include "confdefs.h"
18381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18382 { (eval echo configure:18383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18384 if test -z "$ac_err"; then
18386 eval "ac_cv_header_$ac_safe=yes"
18389 echo "configure: failed program was:" >&5
18390 cat conftest.$ac_ext >&5
18392 eval "ac_cv_header_$ac_safe=no"
18396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18397 echo "$ac_t""yes" 1>&6
18398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18399 cat >> confdefs.h <<EOF
18400 #define $ac_tr_hdr 1
18404 echo "$ac_t""no" 1>&6
18408 if test $ac_cv_header_db_h = yes; then
18410 if test $ol_cv_lib_db = no ; then
18411 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18412 echo "configure:18413: checking for Berkeley DB link (default)" >&5
18413 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18414 echo $ac_n "(cached) $ac_c" 1>&6
18419 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18421 cat > conftest.$ac_ext <<EOF
18422 #line 18423 "configure"
18423 #include "confdefs.h"
18425 #ifdef HAVE_DB_185_H
18426 # include <db_185.h>
18431 #ifndef DB_VERSION_MAJOR
18432 # define DB_VERSION_MAJOR 1
18436 #define NULL ((void*)0)
18441 #if DB_VERSION_MAJOR > 1
18444 int major, minor, patch;
18446 version = db_version( &major, &minor, &patch );
18448 if( major != DB_VERSION_MAJOR ||
18449 minor < DB_VERSION_MINOR )
18451 printf("Berkeley DB version mismatch\n"
18452 "\theader: %s\n\tlibrary: %s\n",
18453 DB_VERSION_STRING, version);
18459 #if DB_VERSION_MAJOR > 2
18460 db_env_create( NULL, 0 );
18461 #elif DB_VERSION_MAJOR > 1
18462 db_appexit( NULL );
18464 (void) dbopen( NULL, 0, 0, 0, NULL);
18469 if { (eval echo configure:18470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18473 echo "configure: failed program was:" >&5
18474 cat conftest.$ac_ext >&5
18484 echo "$ac_t""$ol_cv_db_none" 1>&6
18486 if test $ol_cv_db_none = yes ; then
18491 if test $ol_cv_lib_db = no ; then
18492 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18493 echo "configure:18494: checking for Berkeley DB link (-ldb42)" >&5
18494 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18495 echo $ac_n "(cached) $ac_c" 1>&6
18500 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18502 cat > conftest.$ac_ext <<EOF
18503 #line 18504 "configure"
18504 #include "confdefs.h"
18506 #ifdef HAVE_DB_185_H
18507 # include <db_185.h>
18512 #ifndef DB_VERSION_MAJOR
18513 # define DB_VERSION_MAJOR 1
18517 #define NULL ((void*)0)
18522 #if DB_VERSION_MAJOR > 1
18525 int major, minor, patch;
18527 version = db_version( &major, &minor, &patch );
18529 if( major != DB_VERSION_MAJOR ||
18530 minor < DB_VERSION_MINOR )
18532 printf("Berkeley DB version mismatch\n"
18533 "\theader: %s\n\tlibrary: %s\n",
18534 DB_VERSION_STRING, version);
18540 #if DB_VERSION_MAJOR > 2
18541 db_env_create( NULL, 0 );
18542 #elif DB_VERSION_MAJOR > 1
18543 db_appexit( NULL );
18545 (void) dbopen( NULL, 0, 0, 0, NULL);
18550 if { (eval echo configure:18551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18554 echo "configure: failed program was:" >&5
18555 cat conftest.$ac_ext >&5
18565 echo "$ac_t""$ol_cv_db_db42" 1>&6
18567 if test $ol_cv_db_db42 = yes ; then
18568 ol_cv_lib_db=-ldb42
18572 if test $ol_cv_lib_db = no ; then
18573 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18574 echo "configure:18575: checking for Berkeley DB link (-ldb-42)" >&5
18575 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18576 echo $ac_n "(cached) $ac_c" 1>&6
18581 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18583 cat > conftest.$ac_ext <<EOF
18584 #line 18585 "configure"
18585 #include "confdefs.h"
18587 #ifdef HAVE_DB_185_H
18588 # include <db_185.h>
18593 #ifndef DB_VERSION_MAJOR
18594 # define DB_VERSION_MAJOR 1
18598 #define NULL ((void*)0)
18603 #if DB_VERSION_MAJOR > 1
18606 int major, minor, patch;
18608 version = db_version( &major, &minor, &patch );
18610 if( major != DB_VERSION_MAJOR ||
18611 minor < DB_VERSION_MINOR )
18613 printf("Berkeley DB version mismatch\n"
18614 "\theader: %s\n\tlibrary: %s\n",
18615 DB_VERSION_STRING, version);
18621 #if DB_VERSION_MAJOR > 2
18622 db_env_create( NULL, 0 );
18623 #elif DB_VERSION_MAJOR > 1
18624 db_appexit( NULL );
18626 (void) dbopen( NULL, 0, 0, 0, NULL);
18631 if { (eval echo configure:18632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635 echo "configure: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18646 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18648 if test $ol_cv_db_db_42 = yes ; then
18649 ol_cv_lib_db=-ldb-42
18653 if test $ol_cv_lib_db = no ; then
18654 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18655 echo "configure:18656: checking for Berkeley DB link (-ldb-4.2)" >&5
18656 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18657 echo $ac_n "(cached) $ac_c" 1>&6
18662 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18664 cat > conftest.$ac_ext <<EOF
18665 #line 18666 "configure"
18666 #include "confdefs.h"
18668 #ifdef HAVE_DB_185_H
18669 # include <db_185.h>
18674 #ifndef DB_VERSION_MAJOR
18675 # define DB_VERSION_MAJOR 1
18679 #define NULL ((void*)0)
18684 #if DB_VERSION_MAJOR > 1
18687 int major, minor, patch;
18689 version = db_version( &major, &minor, &patch );
18691 if( major != DB_VERSION_MAJOR ||
18692 minor < DB_VERSION_MINOR )
18694 printf("Berkeley DB version mismatch\n"
18695 "\theader: %s\n\tlibrary: %s\n",
18696 DB_VERSION_STRING, version);
18702 #if DB_VERSION_MAJOR > 2
18703 db_env_create( NULL, 0 );
18704 #elif DB_VERSION_MAJOR > 1
18705 db_appexit( NULL );
18707 (void) dbopen( NULL, 0, 0, 0, NULL);
18712 if { (eval echo configure:18713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18714 ol_cv_db_db_4_dot_2=yes
18716 echo "configure: failed program was:" >&5
18717 cat conftest.$ac_ext >&5
18719 ol_cv_db_db_4_dot_2=no
18727 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18729 if test $ol_cv_db_db_4_dot_2 = yes ; then
18730 ol_cv_lib_db=-ldb-4.2
18734 if test $ol_cv_lib_db = no ; then
18735 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18736 echo "configure:18737: checking for Berkeley DB link (-ldb-4-2)" >&5
18737 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18738 echo $ac_n "(cached) $ac_c" 1>&6
18743 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18745 cat > conftest.$ac_ext <<EOF
18746 #line 18747 "configure"
18747 #include "confdefs.h"
18749 #ifdef HAVE_DB_185_H
18750 # include <db_185.h>
18755 #ifndef DB_VERSION_MAJOR
18756 # define DB_VERSION_MAJOR 1
18760 #define NULL ((void*)0)
18765 #if DB_VERSION_MAJOR > 1
18768 int major, minor, patch;
18770 version = db_version( &major, &minor, &patch );
18772 if( major != DB_VERSION_MAJOR ||
18773 minor < DB_VERSION_MINOR )
18775 printf("Berkeley DB version mismatch\n"
18776 "\theader: %s\n\tlibrary: %s\n",
18777 DB_VERSION_STRING, version);
18783 #if DB_VERSION_MAJOR > 2
18784 db_env_create( NULL, 0 );
18785 #elif DB_VERSION_MAJOR > 1
18786 db_appexit( NULL );
18788 (void) dbopen( NULL, 0, 0, 0, NULL);
18793 if { (eval echo configure:18794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18795 ol_cv_db_db_4_2=yes
18797 echo "configure: failed program was:" >&5
18798 cat conftest.$ac_ext >&5
18808 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18810 if test $ol_cv_db_db_4_2 = yes ; then
18811 ol_cv_lib_db=-ldb-4-2
18815 if test $ol_cv_lib_db = no ; then
18816 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18817 echo "configure:18818: checking for Berkeley DB link (-ldb-4)" >&5
18818 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18819 echo $ac_n "(cached) $ac_c" 1>&6
18824 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18826 cat > conftest.$ac_ext <<EOF
18827 #line 18828 "configure"
18828 #include "confdefs.h"
18830 #ifdef HAVE_DB_185_H
18831 # include <db_185.h>
18836 #ifndef DB_VERSION_MAJOR
18837 # define DB_VERSION_MAJOR 1
18841 #define NULL ((void*)0)
18846 #if DB_VERSION_MAJOR > 1
18849 int major, minor, patch;
18851 version = db_version( &major, &minor, &patch );
18853 if( major != DB_VERSION_MAJOR ||
18854 minor < DB_VERSION_MINOR )
18856 printf("Berkeley DB version mismatch\n"
18857 "\theader: %s\n\tlibrary: %s\n",
18858 DB_VERSION_STRING, version);
18864 #if DB_VERSION_MAJOR > 2
18865 db_env_create( NULL, 0 );
18866 #elif DB_VERSION_MAJOR > 1
18867 db_appexit( NULL );
18869 (void) dbopen( NULL, 0, 0, 0, NULL);
18874 if { (eval echo configure:18875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18878 echo "configure: failed program was:" >&5
18879 cat conftest.$ac_ext >&5
18889 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18891 if test $ol_cv_db_db_4 = yes ; then
18892 ol_cv_lib_db=-ldb-4
18896 if test $ol_cv_lib_db = no ; then
18897 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18898 echo "configure:18899: checking for Berkeley DB link (-ldb4)" >&5
18899 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18900 echo $ac_n "(cached) $ac_c" 1>&6
18905 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18907 cat > conftest.$ac_ext <<EOF
18908 #line 18909 "configure"
18909 #include "confdefs.h"
18911 #ifdef HAVE_DB_185_H
18912 # include <db_185.h>
18917 #ifndef DB_VERSION_MAJOR
18918 # define DB_VERSION_MAJOR 1
18922 #define NULL ((void*)0)
18927 #if DB_VERSION_MAJOR > 1
18930 int major, minor, patch;
18932 version = db_version( &major, &minor, &patch );
18934 if( major != DB_VERSION_MAJOR ||
18935 minor < DB_VERSION_MINOR )
18937 printf("Berkeley DB version mismatch\n"
18938 "\theader: %s\n\tlibrary: %s\n",
18939 DB_VERSION_STRING, version);
18945 #if DB_VERSION_MAJOR > 2
18946 db_env_create( NULL, 0 );
18947 #elif DB_VERSION_MAJOR > 1
18948 db_appexit( NULL );
18950 (void) dbopen( NULL, 0, 0, 0, NULL);
18955 if { (eval echo configure:18956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18959 echo "configure: failed program was:" >&5
18960 cat conftest.$ac_ext >&5
18970 echo "$ac_t""$ol_cv_db_db4" 1>&6
18972 if test $ol_cv_db_db4 = yes ; then
18977 if test $ol_cv_lib_db = no ; then
18978 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18979 echo "configure:18980: checking for Berkeley DB link (-ldb)" >&5
18980 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18981 echo $ac_n "(cached) $ac_c" 1>&6
18986 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18988 cat > conftest.$ac_ext <<EOF
18989 #line 18990 "configure"
18990 #include "confdefs.h"
18992 #ifdef HAVE_DB_185_H
18993 # include <db_185.h>
18998 #ifndef DB_VERSION_MAJOR
18999 # define DB_VERSION_MAJOR 1
19003 #define NULL ((void*)0)
19008 #if DB_VERSION_MAJOR > 1
19011 int major, minor, patch;
19013 version = db_version( &major, &minor, &patch );
19015 if( major != DB_VERSION_MAJOR ||
19016 minor < DB_VERSION_MINOR )
19018 printf("Berkeley DB version mismatch\n"
19019 "\theader: %s\n\tlibrary: %s\n",
19020 DB_VERSION_STRING, version);
19026 #if DB_VERSION_MAJOR > 2
19027 db_env_create( NULL, 0 );
19028 #elif DB_VERSION_MAJOR > 1
19029 db_appexit( NULL );
19031 (void) dbopen( NULL, 0, 0, 0, NULL);
19036 if { (eval echo configure:19037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19040 echo "configure: failed program was:" >&5
19041 cat conftest.$ac_ext >&5
19051 echo "$ac_t""$ol_cv_db_db" 1>&6
19053 if test $ol_cv_db_db = yes ; then
19058 if test $ol_cv_lib_db = no ; then
19059 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19060 echo "configure:19061: checking for Berkeley DB link (-ldb41)" >&5
19061 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19062 echo $ac_n "(cached) $ac_c" 1>&6
19067 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19069 cat > conftest.$ac_ext <<EOF
19070 #line 19071 "configure"
19071 #include "confdefs.h"
19073 #ifdef HAVE_DB_185_H
19074 # include <db_185.h>
19079 #ifndef DB_VERSION_MAJOR
19080 # define DB_VERSION_MAJOR 1
19084 #define NULL ((void*)0)
19089 #if DB_VERSION_MAJOR > 1
19092 int major, minor, patch;
19094 version = db_version( &major, &minor, &patch );
19096 if( major != DB_VERSION_MAJOR ||
19097 minor < DB_VERSION_MINOR )
19099 printf("Berkeley DB version mismatch\n"
19100 "\theader: %s\n\tlibrary: %s\n",
19101 DB_VERSION_STRING, version);
19107 #if DB_VERSION_MAJOR > 2
19108 db_env_create( NULL, 0 );
19109 #elif DB_VERSION_MAJOR > 1
19110 db_appexit( NULL );
19112 (void) dbopen( NULL, 0, 0, 0, NULL);
19117 if { (eval echo configure:19118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19121 echo "configure: failed program was:" >&5
19122 cat conftest.$ac_ext >&5
19132 echo "$ac_t""$ol_cv_db_db41" 1>&6
19134 if test $ol_cv_db_db41 = yes ; then
19135 ol_cv_lib_db=-ldb41
19139 if test $ol_cv_lib_db = no ; then
19140 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19141 echo "configure:19142: checking for Berkeley DB link (-ldb-41)" >&5
19142 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19143 echo $ac_n "(cached) $ac_c" 1>&6
19148 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19150 cat > conftest.$ac_ext <<EOF
19151 #line 19152 "configure"
19152 #include "confdefs.h"
19154 #ifdef HAVE_DB_185_H
19155 # include <db_185.h>
19160 #ifndef DB_VERSION_MAJOR
19161 # define DB_VERSION_MAJOR 1
19165 #define NULL ((void*)0)
19170 #if DB_VERSION_MAJOR > 1
19173 int major, minor, patch;
19175 version = db_version( &major, &minor, &patch );
19177 if( major != DB_VERSION_MAJOR ||
19178 minor < DB_VERSION_MINOR )
19180 printf("Berkeley DB version mismatch\n"
19181 "\theader: %s\n\tlibrary: %s\n",
19182 DB_VERSION_STRING, version);
19188 #if DB_VERSION_MAJOR > 2
19189 db_env_create( NULL, 0 );
19190 #elif DB_VERSION_MAJOR > 1
19191 db_appexit( NULL );
19193 (void) dbopen( NULL, 0, 0, 0, NULL);
19198 if { (eval echo configure:19199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19202 echo "configure: failed program was:" >&5
19203 cat conftest.$ac_ext >&5
19213 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19215 if test $ol_cv_db_db_41 = yes ; then
19216 ol_cv_lib_db=-ldb-41
19220 if test $ol_cv_lib_db = no ; then
19221 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19222 echo "configure:19223: checking for Berkeley DB link (-ldb-4.1)" >&5
19223 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19224 echo $ac_n "(cached) $ac_c" 1>&6
19229 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19231 cat > conftest.$ac_ext <<EOF
19232 #line 19233 "configure"
19233 #include "confdefs.h"
19235 #ifdef HAVE_DB_185_H
19236 # include <db_185.h>
19241 #ifndef DB_VERSION_MAJOR
19242 # define DB_VERSION_MAJOR 1
19246 #define NULL ((void*)0)
19251 #if DB_VERSION_MAJOR > 1
19254 int major, minor, patch;
19256 version = db_version( &major, &minor, &patch );
19258 if( major != DB_VERSION_MAJOR ||
19259 minor < DB_VERSION_MINOR )
19261 printf("Berkeley DB version mismatch\n"
19262 "\theader: %s\n\tlibrary: %s\n",
19263 DB_VERSION_STRING, version);
19269 #if DB_VERSION_MAJOR > 2
19270 db_env_create( NULL, 0 );
19271 #elif DB_VERSION_MAJOR > 1
19272 db_appexit( NULL );
19274 (void) dbopen( NULL, 0, 0, 0, NULL);
19279 if { (eval echo configure:19280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19281 ol_cv_db_db_4_dot_1=yes
19283 echo "configure: failed program was:" >&5
19284 cat conftest.$ac_ext >&5
19286 ol_cv_db_db_4_dot_1=no
19294 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19296 if test $ol_cv_db_db_4_dot_1 = yes ; then
19297 ol_cv_lib_db=-ldb-4.1
19301 if test $ol_cv_lib_db = no ; then
19302 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19303 echo "configure:19304: checking for Berkeley DB link (-ldb-4-1)" >&5
19304 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19305 echo $ac_n "(cached) $ac_c" 1>&6
19310 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19312 cat > conftest.$ac_ext <<EOF
19313 #line 19314 "configure"
19314 #include "confdefs.h"
19316 #ifdef HAVE_DB_185_H
19317 # include <db_185.h>
19322 #ifndef DB_VERSION_MAJOR
19323 # define DB_VERSION_MAJOR 1
19327 #define NULL ((void*)0)
19332 #if DB_VERSION_MAJOR > 1
19335 int major, minor, patch;
19337 version = db_version( &major, &minor, &patch );
19339 if( major != DB_VERSION_MAJOR ||
19340 minor < DB_VERSION_MINOR )
19342 printf("Berkeley DB version mismatch\n"
19343 "\theader: %s\n\tlibrary: %s\n",
19344 DB_VERSION_STRING, version);
19350 #if DB_VERSION_MAJOR > 2
19351 db_env_create( NULL, 0 );
19352 #elif DB_VERSION_MAJOR > 1
19353 db_appexit( NULL );
19355 (void) dbopen( NULL, 0, 0, 0, NULL);
19360 if { (eval echo configure:19361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19362 ol_cv_db_db_4_1=yes
19364 echo "configure: failed program was:" >&5
19365 cat conftest.$ac_ext >&5
19375 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19377 if test $ol_cv_db_db_4_1 = yes ; then
19378 ol_cv_lib_db=-ldb-4-1
19382 if test $ol_cv_lib_db = no ; then
19383 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19384 echo "configure:19385: checking for Berkeley DB link (-ldb3)" >&5
19385 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19386 echo $ac_n "(cached) $ac_c" 1>&6
19391 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19393 cat > conftest.$ac_ext <<EOF
19394 #line 19395 "configure"
19395 #include "confdefs.h"
19397 #ifdef HAVE_DB_185_H
19398 # include <db_185.h>
19403 #ifndef DB_VERSION_MAJOR
19404 # define DB_VERSION_MAJOR 1
19408 #define NULL ((void*)0)
19413 #if DB_VERSION_MAJOR > 1
19416 int major, minor, patch;
19418 version = db_version( &major, &minor, &patch );
19420 if( major != DB_VERSION_MAJOR ||
19421 minor < DB_VERSION_MINOR )
19423 printf("Berkeley DB version mismatch\n"
19424 "\theader: %s\n\tlibrary: %s\n",
19425 DB_VERSION_STRING, version);
19431 #if DB_VERSION_MAJOR > 2
19432 db_env_create( NULL, 0 );
19433 #elif DB_VERSION_MAJOR > 1
19434 db_appexit( NULL );
19436 (void) dbopen( NULL, 0, 0, 0, NULL);
19441 if { (eval echo configure:19442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19445 echo "configure: failed program was:" >&5
19446 cat conftest.$ac_ext >&5
19456 echo "$ac_t""$ol_cv_db_db3" 1>&6
19458 if test $ol_cv_db_db3 = yes ; then
19463 if test $ol_cv_lib_db = no ; then
19464 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19465 echo "configure:19466: checking for Berkeley DB link (-ldb-3)" >&5
19466 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19467 echo $ac_n "(cached) $ac_c" 1>&6
19472 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19474 cat > conftest.$ac_ext <<EOF
19475 #line 19476 "configure"
19476 #include "confdefs.h"
19478 #ifdef HAVE_DB_185_H
19479 # include <db_185.h>
19484 #ifndef DB_VERSION_MAJOR
19485 # define DB_VERSION_MAJOR 1
19489 #define NULL ((void*)0)
19494 #if DB_VERSION_MAJOR > 1
19497 int major, minor, patch;
19499 version = db_version( &major, &minor, &patch );
19501 if( major != DB_VERSION_MAJOR ||
19502 minor < DB_VERSION_MINOR )
19504 printf("Berkeley DB version mismatch\n"
19505 "\theader: %s\n\tlibrary: %s\n",
19506 DB_VERSION_STRING, version);
19512 #if DB_VERSION_MAJOR > 2
19513 db_env_create( NULL, 0 );
19514 #elif DB_VERSION_MAJOR > 1
19515 db_appexit( NULL );
19517 (void) dbopen( NULL, 0, 0, 0, NULL);
19522 if { (eval echo configure:19523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19526 echo "configure: failed program was:" >&5
19527 cat conftest.$ac_ext >&5
19537 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19539 if test $ol_cv_db_db_3 = yes ; then
19540 ol_cv_lib_db=-ldb-3
19544 if test $ol_cv_lib_db = no ; then
19545 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19546 echo "configure:19547: checking for Berkeley DB link (-ldb2)" >&5
19547 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19548 echo $ac_n "(cached) $ac_c" 1>&6
19553 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19555 cat > conftest.$ac_ext <<EOF
19556 #line 19557 "configure"
19557 #include "confdefs.h"
19559 #ifdef HAVE_DB_185_H
19560 # include <db_185.h>
19565 #ifndef DB_VERSION_MAJOR
19566 # define DB_VERSION_MAJOR 1
19570 #define NULL ((void*)0)
19575 #if DB_VERSION_MAJOR > 1
19578 int major, minor, patch;
19580 version = db_version( &major, &minor, &patch );
19582 if( major != DB_VERSION_MAJOR ||
19583 minor < DB_VERSION_MINOR )
19585 printf("Berkeley DB version mismatch\n"
19586 "\theader: %s\n\tlibrary: %s\n",
19587 DB_VERSION_STRING, version);
19593 #if DB_VERSION_MAJOR > 2
19594 db_env_create( NULL, 0 );
19595 #elif DB_VERSION_MAJOR > 1
19596 db_appexit( NULL );
19598 (void) dbopen( NULL, 0, 0, 0, NULL);
19603 if { (eval echo configure:19604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19607 echo "configure: failed program was:" >&5
19608 cat conftest.$ac_ext >&5
19618 echo "$ac_t""$ol_cv_db_db2" 1>&6
19620 if test $ol_cv_db_db2 = yes ; then
19625 if test $ol_cv_lib_db = no ; then
19626 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19627 echo "configure:19628: checking for Berkeley DB link (-ldb-2)" >&5
19628 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19629 echo $ac_n "(cached) $ac_c" 1>&6
19634 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19636 cat > conftest.$ac_ext <<EOF
19637 #line 19638 "configure"
19638 #include "confdefs.h"
19640 #ifdef HAVE_DB_185_H
19641 # include <db_185.h>
19646 #ifndef DB_VERSION_MAJOR
19647 # define DB_VERSION_MAJOR 1
19651 #define NULL ((void*)0)
19656 #if DB_VERSION_MAJOR > 1
19659 int major, minor, patch;
19661 version = db_version( &major, &minor, &patch );
19663 if( major != DB_VERSION_MAJOR ||
19664 minor < DB_VERSION_MINOR )
19666 printf("Berkeley DB version mismatch\n"
19667 "\theader: %s\n\tlibrary: %s\n",
19668 DB_VERSION_STRING, version);
19674 #if DB_VERSION_MAJOR > 2
19675 db_env_create( NULL, 0 );
19676 #elif DB_VERSION_MAJOR > 1
19677 db_appexit( NULL );
19679 (void) dbopen( NULL, 0, 0, 0, NULL);
19684 if { (eval echo configure:19685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19688 echo "configure: failed program was:" >&5
19689 cat conftest.$ac_ext >&5
19699 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19701 if test $ol_cv_db_db_2 = yes ; then
19702 ol_cv_lib_db=-ldb-2
19706 if test $ol_cv_lib_db = no ; then
19707 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19708 echo "configure:19709: checking for Berkeley DB link (-ldb1)" >&5
19709 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19710 echo $ac_n "(cached) $ac_c" 1>&6
19715 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19717 cat > conftest.$ac_ext <<EOF
19718 #line 19719 "configure"
19719 #include "confdefs.h"
19721 #ifdef HAVE_DB_185_H
19722 # include <db_185.h>
19727 #ifndef DB_VERSION_MAJOR
19728 # define DB_VERSION_MAJOR 1
19732 #define NULL ((void*)0)
19737 #if DB_VERSION_MAJOR > 1
19740 int major, minor, patch;
19742 version = db_version( &major, &minor, &patch );
19744 if( major != DB_VERSION_MAJOR ||
19745 minor < DB_VERSION_MINOR )
19747 printf("Berkeley DB version mismatch\n"
19748 "\theader: %s\n\tlibrary: %s\n",
19749 DB_VERSION_STRING, version);
19755 #if DB_VERSION_MAJOR > 2
19756 db_env_create( NULL, 0 );
19757 #elif DB_VERSION_MAJOR > 1
19758 db_appexit( NULL );
19760 (void) dbopen( NULL, 0, 0, 0, NULL);
19765 if { (eval echo configure:19766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19769 echo "configure: failed program was:" >&5
19770 cat conftest.$ac_ext >&5
19780 echo "$ac_t""$ol_cv_db_db1" 1>&6
19782 if test $ol_cv_db_db1 = yes ; then
19787 if test $ol_cv_lib_db = no ; then
19788 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19789 echo "configure:19790: checking for Berkeley DB link (-ldb-1)" >&5
19790 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19791 echo $ac_n "(cached) $ac_c" 1>&6
19796 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19798 cat > conftest.$ac_ext <<EOF
19799 #line 19800 "configure"
19800 #include "confdefs.h"
19802 #ifdef HAVE_DB_185_H
19803 # include <db_185.h>
19808 #ifndef DB_VERSION_MAJOR
19809 # define DB_VERSION_MAJOR 1
19813 #define NULL ((void*)0)
19818 #if DB_VERSION_MAJOR > 1
19821 int major, minor, patch;
19823 version = db_version( &major, &minor, &patch );
19825 if( major != DB_VERSION_MAJOR ||
19826 minor < DB_VERSION_MINOR )
19828 printf("Berkeley DB version mismatch\n"
19829 "\theader: %s\n\tlibrary: %s\n",
19830 DB_VERSION_STRING, version);
19836 #if DB_VERSION_MAJOR > 2
19837 db_env_create( NULL, 0 );
19838 #elif DB_VERSION_MAJOR > 1
19839 db_appexit( NULL );
19841 (void) dbopen( NULL, 0, 0, 0, NULL);
19846 if { (eval echo configure:19847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19850 echo "configure: failed program was:" >&5
19851 cat conftest.$ac_ext >&5
19861 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19863 if test $ol_cv_db_db_1 = yes ; then
19864 ol_cv_lib_db=-ldb-1
19869 if test "$ol_cv_lib_db" != no ; then
19870 ol_cv_berkeley_db=yes
19871 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
19872 echo "configure:19873: checking for Berkeley DB version match" >&5
19873 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
19874 echo $ac_n "(cached) $ac_c" 1>&6
19878 LIBS="$LTHREAD_LIBS $LIBS"
19879 if test $ol_cv_lib_db != yes ; then
19880 LIBS="$ol_cv_lib_db $LIBS"
19883 if test "$cross_compiling" = yes; then
19884 ol_cv_berkeley_db_version=cross
19886 cat > conftest.$ac_ext <<EOF
19887 #line 19888 "configure"
19888 #include "confdefs.h"
19890 #ifdef HAVE_DB_185_H
19895 #ifndef DB_VERSION_MAJOR
19896 # define DB_VERSION_MAJOR 1
19899 #define NULL ((void *)0)
19903 #if DB_VERSION_MAJOR > 1
19905 int major, minor, patch;
19907 version = db_version( &major, &minor, &patch );
19909 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
19910 printf("Berkeley DB version mismatch\n"
19911 "\theader: %s\n\tlibrary: %s\n",
19912 DB_VERSION_STRING, version);
19920 if { (eval echo configure:19921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19922 ol_cv_berkeley_db_version=yes
19924 echo "configure: failed program was:" >&5
19925 cat conftest.$ac_ext >&5
19927 ol_cv_berkeley_db_version=no
19937 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
19939 if test $ol_cv_berkeley_db_version = no ; then
19940 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
19943 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19944 echo "configure:19945: checking for Berkeley DB thread support" >&5
19945 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19946 echo $ac_n "(cached) $ac_c" 1>&6
19950 LIBS="$LTHREAD_LIBS $LIBS"
19951 if test $ol_cv_lib_db != yes ; then
19952 LIBS="$ol_cv_lib_db $LIBS"
19955 if test "$cross_compiling" = yes; then
19956 ol_cv_berkeley_db_thread=cross
19958 cat > conftest.$ac_ext <<EOF
19959 #line 19960 "configure"
19960 #include "confdefs.h"
19962 #ifdef HAVE_DB_185_H
19968 #define NULL ((void *)0)
19973 u_int32_t flags = DB_CREATE |
19979 #if DB_VERSION_MAJOR > 2
19980 DB_ENV *env = NULL;
19982 rc = db_env_create( &env, 0 );
19984 flags |= DB_INIT_MPOOL;
19985 #ifdef DB_MPOOL_PRIVATE
19986 flags |= DB_MPOOL_PRIVATE;
19990 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19994 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19995 rc = env->open( env, NULL, flags, 0 );
19997 rc = env->open( env, NULL, NULL, flags, 0 );
20001 rc = env->close( env, 0 );
20005 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20011 memset( &env, '\0', sizeof(env) );
20013 rc = db_appinit( NULL, NULL, &env, flags );
20016 db_appexit( &env );
20019 unlink("__db_mpool.share");
20020 unlink("__db_lock.share");
20026 if { (eval echo configure:20027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20028 ol_cv_berkeley_db_thread=yes
20030 echo "configure: failed program was:" >&5
20031 cat conftest.$ac_ext >&5
20033 ol_cv_berkeley_db_thread=no
20043 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20045 if test $ol_cv_berkeley_db_thread != no ; then
20046 cat >> confdefs.h <<\EOF
20047 #define HAVE_BERKELEY_DB_THREAD 1
20057 if test $ol_cv_berkeley_db != no ; then
20058 cat >> confdefs.h <<\EOF
20059 #define HAVE_BERKELEY_DB 1
20063 ol_link_ldbm=berkeley
20064 ol_with_ldbm_api=berkeley
20066 if test $ol_with_ldbm_type = hash ; then
20067 cat >> confdefs.h <<\EOF
20068 #define LDBM_USE_DBHASH 1
20072 cat >> confdefs.h <<\EOF
20073 #define LDBM_USE_DBBTREE 1
20078 if test $ol_cv_lib_db != yes ; then
20079 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20084 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20085 if test $ol_link_ldbm != berkeley ; then
20086 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20088 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20089 echo "configure:20090: checking Berkeley DB version for BDB backend" >&5
20090 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20091 echo $ac_n "(cached) $ac_c" 1>&6
20094 cat > conftest.$ac_ext <<EOF
20095 #line 20096 "configure"
20096 #include "confdefs.h"
20100 /* this check could be improved */
20101 #ifndef DB_VERSION_MAJOR
20102 # define DB_VERSION_MAJOR 1
20104 #ifndef DB_VERSION_MINOR
20105 # define DB_VERSION_MINOR 0
20108 /* require 4.2 or later */
20109 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20110 __db_version_compat
20114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20115 egrep "__db_version_compat" >/dev/null 2>&1; then
20117 ol_cv_bdb_compat=yes
20120 ol_cv_bdb_compat=no
20126 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20129 if test $ol_cv_bdb_compat != yes ; then
20130 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20135 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20136 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20137 ol_with_ldbm_api=none
20140 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20141 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20142 echo "configure:20143: checking for MDBM library" >&5
20143 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20144 echo $ac_n "(cached) $ac_c" 1>&6
20147 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20148 echo "configure:20149: checking for mdbm_set_chain" >&5
20149 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20150 echo $ac_n "(cached) $ac_c" 1>&6
20152 cat > conftest.$ac_ext <<EOF
20153 #line 20154 "configure"
20154 #include "confdefs.h"
20155 /* System header to define __stub macros and hopefully few prototypes,
20156 which can conflict with char mdbm_set_chain(); below. */
20157 #include <assert.h>
20158 /* Override any gcc2 internal prototype to avoid an error. */
20159 /* We use char because int might match the return type of a gcc2
20160 builtin and then its argument prototype would still apply. */
20161 char mdbm_set_chain();
20166 /* The GNU C library defines this for functions which it implements
20167 to always fail with ENOSYS. Some functions are actually named
20168 something starting with __ and the normal name is an alias. */
20169 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20172 f = mdbm_set_chain;
20177 if { (eval echo configure:20178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20179 eval "ac_cv_func_mdbm_set_chain=yes"
20181 echo "configure: failed program was:" >&5
20182 cat conftest.$ac_ext >&5
20184 eval "ac_cv_func_mdbm_set_chain=no"
20189 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20190 echo "$ac_t""yes" 1>&6
20193 echo "$ac_t""no" 1>&6
20195 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20196 echo "configure:20197: checking for mdbm_set_chain in -lmdbm" >&5
20197 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20198 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20199 echo $ac_n "(cached) $ac_c" 1>&6
20201 ac_save_LIBS="$LIBS"
20202 LIBS="-lmdbm $LIBS"
20203 cat > conftest.$ac_ext <<EOF
20204 #line 20205 "configure"
20205 #include "confdefs.h"
20206 /* Override any gcc2 internal prototype to avoid an error. */
20207 /* We use char because int might match the return type of a gcc2
20208 builtin and then its argument prototype would still apply. */
20209 char mdbm_set_chain();
20215 if { (eval echo configure:20216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20217 eval "ac_cv_lib_$ac_lib_var=yes"
20219 echo "configure: failed program was:" >&5
20220 cat conftest.$ac_ext >&5
20222 eval "ac_cv_lib_$ac_lib_var=no"
20225 LIBS="$ac_save_LIBS"
20228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20229 echo "$ac_t""yes" 1>&6
20230 ol_cv_lib_mdbm=-lmdbm
20232 echo "$ac_t""no" 1>&6
20243 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20246 for ac_hdr in mdbm.h
20248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20250 echo "configure:20251: checking for $ac_hdr" >&5
20251 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20252 echo $ac_n "(cached) $ac_c" 1>&6
20254 cat > conftest.$ac_ext <<EOF
20255 #line 20256 "configure"
20256 #include "confdefs.h"
20259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20260 { (eval echo configure:20261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20262 if test -z "$ac_err"; then
20264 eval "ac_cv_header_$ac_safe=yes"
20267 echo "configure: failed program was:" >&5
20268 cat conftest.$ac_ext >&5
20270 eval "ac_cv_header_$ac_safe=no"
20274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20275 echo "$ac_t""yes" 1>&6
20276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20277 cat >> confdefs.h <<EOF
20278 #define $ac_tr_hdr 1
20282 echo "$ac_t""no" 1>&6
20286 echo $ac_n "checking for db""... $ac_c" 1>&6
20287 echo "configure:20288: checking for db" >&5
20288 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20289 echo $ac_n "(cached) $ac_c" 1>&6
20292 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20300 echo "$ac_t""$ol_cv_mdbm" 1>&6
20301 if test $ol_cv_mdbm = yes ; then
20302 cat >> confdefs.h <<\EOF
20303 #define HAVE_MDBM 1
20309 if test $ol_cv_mdbm = yes ; then
20311 ol_with_ldbm_api=mdbm
20312 if test $ol_cv_lib_mdbm != yes ; then
20313 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20318 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20319 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20320 echo "configure:20321: checking for GDBM library" >&5
20321 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20322 echo $ac_n "(cached) $ac_c" 1>&6
20325 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20326 echo "configure:20327: checking for gdbm_open" >&5
20327 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20328 echo $ac_n "(cached) $ac_c" 1>&6
20330 cat > conftest.$ac_ext <<EOF
20331 #line 20332 "configure"
20332 #include "confdefs.h"
20333 /* System header to define __stub macros and hopefully few prototypes,
20334 which can conflict with char gdbm_open(); below. */
20335 #include <assert.h>
20336 /* Override any gcc2 internal prototype to avoid an error. */
20337 /* We use char because int might match the return type of a gcc2
20338 builtin and then its argument prototype would still apply. */
20344 /* The GNU C library defines this for functions which it implements
20345 to always fail with ENOSYS. Some functions are actually named
20346 something starting with __ and the normal name is an alias. */
20347 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20355 if { (eval echo configure:20356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20357 eval "ac_cv_func_gdbm_open=yes"
20359 echo "configure: failed program was:" >&5
20360 cat conftest.$ac_ext >&5
20362 eval "ac_cv_func_gdbm_open=no"
20367 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20368 echo "$ac_t""yes" 1>&6
20371 echo "$ac_t""no" 1>&6
20373 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20374 echo "configure:20375: checking for gdbm_open in -lgdbm" >&5
20375 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20377 echo $ac_n "(cached) $ac_c" 1>&6
20379 ac_save_LIBS="$LIBS"
20380 LIBS="-lgdbm $LIBS"
20381 cat > conftest.$ac_ext <<EOF
20382 #line 20383 "configure"
20383 #include "confdefs.h"
20384 /* Override any gcc2 internal prototype to avoid an error. */
20385 /* We use char because int might match the return type of a gcc2
20386 builtin and then its argument prototype would still apply. */
20393 if { (eval echo configure:20394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20395 eval "ac_cv_lib_$ac_lib_var=yes"
20397 echo "configure: failed program was:" >&5
20398 cat conftest.$ac_ext >&5
20400 eval "ac_cv_lib_$ac_lib_var=no"
20403 LIBS="$ac_save_LIBS"
20406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20407 echo "$ac_t""yes" 1>&6
20408 ol_cv_lib_gdbm=-lgdbm
20410 echo "$ac_t""no" 1>&6
20421 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20424 for ac_hdr in gdbm.h
20426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20428 echo "configure:20429: checking for $ac_hdr" >&5
20429 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20430 echo $ac_n "(cached) $ac_c" 1>&6
20432 cat > conftest.$ac_ext <<EOF
20433 #line 20434 "configure"
20434 #include "confdefs.h"
20437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20438 { (eval echo configure:20439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20440 if test -z "$ac_err"; then
20442 eval "ac_cv_header_$ac_safe=yes"
20445 echo "configure: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20448 eval "ac_cv_header_$ac_safe=no"
20452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20453 echo "$ac_t""yes" 1>&6
20454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20455 cat >> confdefs.h <<EOF
20456 #define $ac_tr_hdr 1
20460 echo "$ac_t""no" 1>&6
20464 echo $ac_n "checking for db""... $ac_c" 1>&6
20465 echo "configure:20466: checking for db" >&5
20466 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20467 echo $ac_n "(cached) $ac_c" 1>&6
20470 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20478 echo "$ac_t""$ol_cv_gdbm" 1>&6
20479 if test $ol_cv_gdbm = yes ; then
20480 cat >> confdefs.h <<\EOF
20481 #define HAVE_GDBM 1
20487 if test $ol_cv_gdbm = yes ; then
20489 ol_with_ldbm_api=gdbm
20491 if test $ol_cv_lib_gdbm != yes ; then
20492 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20497 if test $ol_with_ldbm_api = ndbm ; then
20498 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20499 echo "configure:20500: checking for NDBM library" >&5
20500 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20501 echo $ac_n "(cached) $ac_c" 1>&6
20504 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20505 echo "configure:20506: checking for dbm_open" >&5
20506 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20507 echo $ac_n "(cached) $ac_c" 1>&6
20509 cat > conftest.$ac_ext <<EOF
20510 #line 20511 "configure"
20511 #include "confdefs.h"
20512 /* System header to define __stub macros and hopefully few prototypes,
20513 which can conflict with char dbm_open(); below. */
20514 #include <assert.h>
20515 /* Override any gcc2 internal prototype to avoid an error. */
20516 /* We use char because int might match the return type of a gcc2
20517 builtin and then its argument prototype would still apply. */
20523 /* The GNU C library defines this for functions which it implements
20524 to always fail with ENOSYS. Some functions are actually named
20525 something starting with __ and the normal name is an alias. */
20526 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20534 if { (eval echo configure:20535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20536 eval "ac_cv_func_dbm_open=yes"
20538 echo "configure: failed program was:" >&5
20539 cat conftest.$ac_ext >&5
20541 eval "ac_cv_func_dbm_open=no"
20546 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20547 echo "$ac_t""yes" 1>&6
20550 echo "$ac_t""no" 1>&6
20552 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20553 echo "configure:20554: checking for dbm_open in -lndbm" >&5
20554 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20556 echo $ac_n "(cached) $ac_c" 1>&6
20558 ac_save_LIBS="$LIBS"
20559 LIBS="-lndbm $LIBS"
20560 cat > conftest.$ac_ext <<EOF
20561 #line 20562 "configure"
20562 #include "confdefs.h"
20563 /* Override any gcc2 internal prototype to avoid an error. */
20564 /* We use char because int might match the return type of a gcc2
20565 builtin and then its argument prototype would still apply. */
20572 if { (eval echo configure:20573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20574 eval "ac_cv_lib_$ac_lib_var=yes"
20576 echo "configure: failed program was:" >&5
20577 cat conftest.$ac_ext >&5
20579 eval "ac_cv_lib_$ac_lib_var=no"
20582 LIBS="$ac_save_LIBS"
20585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20586 echo "$ac_t""yes" 1>&6
20587 ol_cv_lib_ndbm=-lndbm
20589 echo "$ac_t""no" 1>&6
20591 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20592 echo "configure:20593: checking for dbm_open in -ldbm" >&5
20593 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20595 echo $ac_n "(cached) $ac_c" 1>&6
20597 ac_save_LIBS="$LIBS"
20599 cat > conftest.$ac_ext <<EOF
20600 #line 20601 "configure"
20601 #include "confdefs.h"
20602 /* Override any gcc2 internal prototype to avoid an error. */
20603 /* We use char because int might match the return type of a gcc2
20604 builtin and then its argument prototype would still apply. */
20611 if { (eval echo configure:20612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20613 eval "ac_cv_lib_$ac_lib_var=yes"
20615 echo "configure: failed program was:" >&5
20616 cat conftest.$ac_ext >&5
20618 eval "ac_cv_lib_$ac_lib_var=no"
20621 LIBS="$ac_save_LIBS"
20624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20625 echo "$ac_t""yes" 1>&6
20626 ol_cv_lib_ndbm=-ldbm
20628 echo "$ac_t""no" 1>&6
20641 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20644 for ac_hdr in ndbm.h
20646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20648 echo "configure:20649: checking for $ac_hdr" >&5
20649 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20650 echo $ac_n "(cached) $ac_c" 1>&6
20652 cat > conftest.$ac_ext <<EOF
20653 #line 20654 "configure"
20654 #include "confdefs.h"
20657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20658 { (eval echo configure:20659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20660 if test -z "$ac_err"; then
20662 eval "ac_cv_header_$ac_safe=yes"
20665 echo "configure: failed program was:" >&5
20666 cat conftest.$ac_ext >&5
20668 eval "ac_cv_header_$ac_safe=no"
20672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20673 echo "$ac_t""yes" 1>&6
20674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20675 cat >> confdefs.h <<EOF
20676 #define $ac_tr_hdr 1
20680 echo "$ac_t""no" 1>&6
20684 echo $ac_n "checking for db""... $ac_c" 1>&6
20685 echo "configure:20686: checking for db" >&5
20686 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20687 echo $ac_n "(cached) $ac_c" 1>&6
20690 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20698 echo "$ac_t""$ol_cv_ndbm" 1>&6
20699 if test $ol_cv_ndbm = yes ; then
20700 cat >> confdefs.h <<\EOF
20701 #define HAVE_NDBM 1
20707 if test $ol_cv_ndbm = yes ; then
20709 ol_with_ldbm_api=ndbm
20711 if test $ol_cv_lib_ndbm != yes ; then
20712 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20717 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20718 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
20721 if test $ol_enable_bdb = yes -o \
20722 $ol_enable_hdb = yes -o \
20723 $ol_enable_ldbm = yes ; then
20724 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
20728 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20729 BUILD_LIBS_DYNAMIC=shared
20730 cat >> confdefs.h <<\EOF
20731 #define LDAP_LIBS_DYNAMIC 1
20736 BUILD_LIBS_DYNAMIC=static
20740 if test $ol_enable_wrappers != no ; then
20741 for ac_hdr in tcpd.h
20743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20745 echo "configure:20746: checking for $ac_hdr" >&5
20746 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20747 echo $ac_n "(cached) $ac_c" 1>&6
20749 cat > conftest.$ac_ext <<EOF
20750 #line 20751 "configure"
20751 #include "confdefs.h"
20754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20755 { (eval echo configure:20756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20757 if test -z "$ac_err"; then
20759 eval "ac_cv_header_$ac_safe=yes"
20762 echo "configure: failed program was:" >&5
20763 cat conftest.$ac_ext >&5
20765 eval "ac_cv_header_$ac_safe=no"
20769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20770 echo "$ac_t""yes" 1>&6
20771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20772 cat >> confdefs.h <<EOF
20773 #define $ac_tr_hdr 1
20776 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20777 echo "configure:20778: checking for TCP wrappers library" >&5
20779 LIBS="$LIBS -lwrap"
20780 cat > conftest.$ac_ext <<EOF
20781 #line 20782 "configure"
20782 #include "confdefs.h"
20785 int allow_severity = 0;
20786 int deny_severity = 0;
20788 struct request_info *req;
20796 if { (eval echo configure:20797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20798 echo "$ac_t""-lwrap" 1>&6
20802 echo "configure: failed program was:" >&5
20803 cat conftest.$ac_ext >&5
20807 cat > conftest.$ac_ext <<EOF
20808 #line 20809 "configure"
20809 #include "confdefs.h"
20812 int allow_severity = 0;
20813 int deny_severity = 0;
20815 struct request_info *req;
20823 if { (eval echo configure:20824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20825 echo "$ac_t""-lwrap -lnsl" 1>&6
20827 LIBS="$save_LIBS -lnsl"
20829 echo "configure: failed program was:" >&5
20830 cat conftest.$ac_ext >&5
20833 echo "$ac_t""no" 1>&6
20841 echo "$ac_t""no" 1>&6
20847 if test $have_wrappers = yes ; then
20848 cat >> confdefs.h <<\EOF
20849 #define HAVE_TCPD 1
20853 elif test $ol_enable_wrappers = yes ; then
20854 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20856 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20861 if test $ol_enable_syslog != no ; then
20862 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20863 echo "configure:20864: checking for openlog" >&5
20864 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20865 echo $ac_n "(cached) $ac_c" 1>&6
20867 cat > conftest.$ac_ext <<EOF
20868 #line 20869 "configure"
20869 #include "confdefs.h"
20870 /* System header to define __stub macros and hopefully few prototypes,
20871 which can conflict with char openlog(); below. */
20872 #include <assert.h>
20873 /* Override any gcc2 internal prototype to avoid an error. */
20874 /* We use char because int might match the return type of a gcc2
20875 builtin and then its argument prototype would still apply. */
20881 /* The GNU C library defines this for functions which it implements
20882 to always fail with ENOSYS. Some functions are actually named
20883 something starting with __ and the normal name is an alias. */
20884 #if defined (__stub_openlog) || defined (__stub___openlog)
20892 if { (eval echo configure:20893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20894 eval "ac_cv_func_openlog=yes"
20896 echo "configure: failed program was:" >&5
20897 cat conftest.$ac_ext >&5
20899 eval "ac_cv_func_openlog=no"
20904 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20905 echo "$ac_t""yes" 1>&6
20908 echo "$ac_t""no" 1>&6
20911 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20912 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20914 ol_enable_syslog=$ac_cv_func_openlog
20919 if test $ol_enable_sql != no ; then
20920 for ac_hdr in sql.h sqlext.h
20922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20924 echo "configure:20925: checking for $ac_hdr" >&5
20925 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20926 echo $ac_n "(cached) $ac_c" 1>&6
20928 cat > conftest.$ac_ext <<EOF
20929 #line 20930 "configure"
20930 #include "confdefs.h"
20933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20934 { (eval echo configure:20935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20936 if test -z "$ac_err"; then
20938 eval "ac_cv_header_$ac_safe=yes"
20941 echo "configure: failed program was:" >&5
20942 cat conftest.$ac_ext >&5
20944 eval "ac_cv_header_$ac_safe=no"
20948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20949 echo "$ac_t""yes" 1>&6
20950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20951 cat >> confdefs.h <<EOF
20952 #define $ac_tr_hdr 1
20956 echo "$ac_t""no" 1>&6
20957 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20963 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20964 echo "configure:20965: checking for SQLDriverConnect in -liodbc" >&5
20965 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20967 echo $ac_n "(cached) $ac_c" 1>&6
20969 ac_save_LIBS="$LIBS"
20970 LIBS="-liodbc $LIBS"
20971 cat > conftest.$ac_ext <<EOF
20972 #line 20973 "configure"
20973 #include "confdefs.h"
20974 /* Override any gcc2 internal prototype to avoid an error. */
20975 /* We use char because int might match the return type of a gcc2
20976 builtin and then its argument prototype would still apply. */
20977 char SQLDriverConnect();
20983 if { (eval echo configure:20984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20985 eval "ac_cv_lib_$ac_lib_var=yes"
20987 echo "configure: failed program was:" >&5
20988 cat conftest.$ac_ext >&5
20990 eval "ac_cv_lib_$ac_lib_var=no"
20993 LIBS="$ac_save_LIBS"
20996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20997 echo "$ac_t""yes" 1>&6
21000 echo "$ac_t""no" 1>&6
21004 if test $have_iodbc = yes ; then
21005 ol_link_sql="-liodbc"
21007 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21008 echo "configure:21009: checking for SQLDriverConnect in -lodbc" >&5
21009 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21011 echo $ac_n "(cached) $ac_c" 1>&6
21013 ac_save_LIBS="$LIBS"
21014 LIBS="-lodbc $LIBS"
21015 cat > conftest.$ac_ext <<EOF
21016 #line 21017 "configure"
21017 #include "confdefs.h"
21018 /* Override any gcc2 internal prototype to avoid an error. */
21019 /* We use char because int might match the return type of a gcc2
21020 builtin and then its argument prototype would still apply. */
21021 char SQLDriverConnect();
21027 if { (eval echo configure:21028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21029 eval "ac_cv_lib_$ac_lib_var=yes"
21031 echo "configure: failed program was:" >&5
21032 cat conftest.$ac_ext >&5
21034 eval "ac_cv_lib_$ac_lib_var=no"
21037 LIBS="$ac_save_LIBS"
21040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21041 echo "$ac_t""yes" 1>&6
21044 echo "$ac_t""no" 1>&6
21048 if test $have_odbc = yes ; then
21049 ol_link_sql="-lodbc"
21053 if test $ol_link_sql != no ; then
21054 SLAPD_SQL_LIBS="$ol_link_sql"
21056 elif test $ol_enable_sql != auto ; then
21057 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21064 if test $ol_with_cyrus_sasl != no ; then
21065 for ac_hdr in sasl/sasl.h sasl.h
21067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21069 echo "configure:21070: checking for $ac_hdr" >&5
21070 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21071 echo $ac_n "(cached) $ac_c" 1>&6
21073 cat > conftest.$ac_ext <<EOF
21074 #line 21075 "configure"
21075 #include "confdefs.h"
21078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21079 { (eval echo configure:21080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21081 if test -z "$ac_err"; then
21083 eval "ac_cv_header_$ac_safe=yes"
21086 echo "configure: failed program was:" >&5
21087 cat conftest.$ac_ext >&5
21089 eval "ac_cv_header_$ac_safe=no"
21093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21094 echo "$ac_t""yes" 1>&6
21095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21096 cat >> confdefs.h <<EOF
21097 #define $ac_tr_hdr 1
21101 echo "$ac_t""no" 1>&6
21106 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21107 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21108 echo "configure:21109: checking for sasl_client_init in -lsasl2" >&5
21109 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21110 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21111 echo $ac_n "(cached) $ac_c" 1>&6
21113 ac_save_LIBS="$LIBS"
21114 LIBS="-lsasl2 $LIBS"
21115 cat > conftest.$ac_ext <<EOF
21116 #line 21117 "configure"
21117 #include "confdefs.h"
21118 /* Override any gcc2 internal prototype to avoid an error. */
21119 /* We use char because int might match the return type of a gcc2
21120 builtin and then its argument prototype would still apply. */
21121 char sasl_client_init();
21127 if { (eval echo configure:21128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21129 eval "ac_cv_lib_$ac_lib_var=yes"
21131 echo "configure: failed program was:" >&5
21132 cat conftest.$ac_ext >&5
21134 eval "ac_cv_lib_$ac_lib_var=no"
21137 LIBS="$ac_save_LIBS"
21140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21141 echo "$ac_t""yes" 1>&6
21142 ol_link_sasl="-lsasl2"
21144 echo "$ac_t""no" 1>&6
21145 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21146 echo "configure:21147: checking for sasl_client_init in -lsasl" >&5
21147 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21148 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21149 echo $ac_n "(cached) $ac_c" 1>&6
21151 ac_save_LIBS="$LIBS"
21152 LIBS="-lsasl $LIBS"
21153 cat > conftest.$ac_ext <<EOF
21154 #line 21155 "configure"
21155 #include "confdefs.h"
21156 /* Override any gcc2 internal prototype to avoid an error. */
21157 /* We use char because int might match the return type of a gcc2
21158 builtin and then its argument prototype would still apply. */
21159 char sasl_client_init();
21165 if { (eval echo configure:21166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21167 eval "ac_cv_lib_$ac_lib_var=yes"
21169 echo "configure: failed program was:" >&5
21170 cat conftest.$ac_ext >&5
21172 eval "ac_cv_lib_$ac_lib_var=no"
21175 LIBS="$ac_save_LIBS"
21178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21179 echo "$ac_t""yes" 1>&6
21180 ol_link_sasl="-lsasl"
21182 echo "$ac_t""no" 1>&6
21189 if test $ol_link_sasl = no ; then
21190 if test $ol_with_cyrus_sasl != auto ; then
21191 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21193 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21194 echo "configure: warning: SASL authentication not supported!" 1>&2
21195 if test $ol_link_tls = no ; then
21196 echo "configure: warning: Strong authentication not supported!" 1>&2
21200 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21201 echo "configure:21202: checking Cyrus SASL library version" >&5
21202 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21203 echo $ac_n "(cached) $ac_c" 1>&6
21206 cat > conftest.$ac_ext <<EOF
21207 #line 21208 "configure"
21208 #include "confdefs.h"
21210 #ifdef HAVE_SASL_SASL_H
21211 #include <sasl/sasl.h>
21216 /* Require 2.1.15+ */
21217 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21218 char *__sasl_compat = "2.2+ or better okay (we guess)";
21219 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21220 && SASL_VERSION_STEP >=15
21221 char *__sasl_compat = "2.1.15+ or better okay";
21225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21226 egrep "__sasl_compat" >/dev/null 2>&1; then
21228 ol_cv_sasl_compat=yes
21231 ol_cv_sasl_compat=no
21237 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21239 if test $ol_cv_sasl_compat = no ; then
21241 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
21244 cat >> confdefs.h <<\EOF
21245 #define HAVE_CYRUS_SASL 1
21248 SASL_LIBS="$ol_link_sasl"
21249 if test $ol_enable_spasswd != no ; then
21250 ol_link_spasswd=yes
21253 ac_save_LIBS="$LIBS"
21254 LIBS="$LIBS $ol_link_sasl"
21255 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21256 echo "configure:21257: checking for sasl_version" >&5
21257 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21258 echo $ac_n "(cached) $ac_c" 1>&6
21260 cat > conftest.$ac_ext <<EOF
21261 #line 21262 "configure"
21262 #include "confdefs.h"
21263 /* System header to define __stub macros and hopefully few prototypes,
21264 which can conflict with char sasl_version(); below. */
21265 #include <assert.h>
21266 /* Override any gcc2 internal prototype to avoid an error. */
21267 /* We use char because int might match the return type of a gcc2
21268 builtin and then its argument prototype would still apply. */
21269 char sasl_version();
21274 /* The GNU C library defines this for functions which it implements
21275 to always fail with ENOSYS. Some functions are actually named
21276 something starting with __ and the normal name is an alias. */
21277 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21285 if { (eval echo configure:21286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21287 eval "ac_cv_func_sasl_version=yes"
21289 echo "configure: failed program was:" >&5
21290 cat conftest.$ac_ext >&5
21292 eval "ac_cv_func_sasl_version=no"
21297 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21298 echo "$ac_t""yes" 1>&6
21299 cat >> confdefs.h <<\EOF
21300 #define HAVE_SASL_VERSION 1
21304 echo "$ac_t""no" 1>&6
21307 LIBS="$ac_save_LIBS"
21313 echo "configure: warning: SASL authentication not supported!" 1>&2
21314 if test $ol_link_tls = no ; then
21315 echo "configure: warning: Strong authentication not supported!" 1>&2
21319 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21321 if test -r /dev/urandom ; then
21322 dev="/dev/urandom";
21323 elif test -r /idev/urandom ; then
21324 dev="/idev/urandom";
21325 elif test -r /dev/srandom ; then
21326 dev="/dev/srandom";
21327 elif test -r /dev/random ; then
21329 elif test -r /idev/random ; then
21330 dev="/idev/random";
21333 if test $dev != no ; then
21334 cat >> confdefs.h <<EOF
21335 #define URANDOM_DEVICE "$dev"
21342 if test $ol_with_fetch != no ; then
21344 LIBS="-lfetch -lcom_err $LIBS"
21345 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21346 echo "configure:21347: checking fetch(3) library" >&5
21347 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21348 echo $ac_n "(cached) $ac_c" 1>&6
21351 cat > conftest.$ac_ext <<EOF
21352 #line 21353 "configure"
21353 #include "confdefs.h"
21355 #include <sys/param.h>
21359 struct url *u = fetchParseURL("file:///");
21362 if { (eval echo configure:21363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21364 ol_cv_lib_fetch=yes
21366 echo "configure: failed program was:" >&5
21367 cat conftest.$ac_ext >&5
21374 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21376 if test $ol_cv_lib_fetch != no ; then
21377 ol_link_fetch="-lfetch -lcom_err"
21378 cat >> confdefs.h <<\EOF
21379 #define HAVE_FETCH 1
21385 if test $ol_cv_lib_fetch != no ; then
21386 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21387 ol_link_fetch=freebsd
21389 elif test $ol_with_fetch != auto ; then
21390 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21394 if test $ol_enable_crypt != no ; then
21396 LIBS="$TLS_LIBS $LIBS"
21398 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21399 echo "configure:21400: checking for crypt" >&5
21400 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21401 echo $ac_n "(cached) $ac_c" 1>&6
21403 cat > conftest.$ac_ext <<EOF
21404 #line 21405 "configure"
21405 #include "confdefs.h"
21406 /* System header to define __stub macros and hopefully few prototypes,
21407 which can conflict with char crypt(); below. */
21408 #include <assert.h>
21409 /* Override any gcc2 internal prototype to avoid an error. */
21410 /* We use char because int might match the return type of a gcc2
21411 builtin and then its argument prototype would still apply. */
21417 /* The GNU C library defines this for functions which it implements
21418 to always fail with ENOSYS. Some functions are actually named
21419 something starting with __ and the normal name is an alias. */
21420 #if defined (__stub_crypt) || defined (__stub___crypt)
21428 if { (eval echo configure:21429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21430 eval "ac_cv_func_crypt=yes"
21432 echo "configure: failed program was:" >&5
21433 cat conftest.$ac_ext >&5
21435 eval "ac_cv_func_crypt=no"
21440 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21441 echo "$ac_t""yes" 1>&6
21444 echo "$ac_t""no" 1>&6
21447 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21448 echo "configure:21449: checking for crypt in -lcrypt" >&5
21449 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21451 echo $ac_n "(cached) $ac_c" 1>&6
21453 ac_save_LIBS="$LIBS"
21454 LIBS="-lcrypt $LIBS"
21455 cat > conftest.$ac_ext <<EOF
21456 #line 21457 "configure"
21457 #include "confdefs.h"
21458 /* Override any gcc2 internal prototype to avoid an error. */
21459 /* We use char because int might match the return type of a gcc2
21460 builtin and then its argument prototype would still apply. */
21467 if { (eval echo configure:21468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21469 eval "ac_cv_lib_$ac_lib_var=yes"
21471 echo "configure: failed program was:" >&5
21472 cat conftest.$ac_ext >&5
21474 eval "ac_cv_lib_$ac_lib_var=no"
21477 LIBS="$ac_save_LIBS"
21480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21481 echo "$ac_t""yes" 1>&6
21482 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21485 echo "$ac_t""no" 1>&6
21494 if test $have_crypt = yes ; then
21495 cat >> confdefs.h <<\EOF
21496 #define HAVE_CRYPT 1
21500 echo "configure: warning: could not find crypt" 1>&2
21501 if test $ol_enable_crypt = yes ; then
21502 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21505 echo "configure: warning: disabling crypt support" 1>&2
21510 if test $ol_enable_proctitle != no ; then
21511 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21512 echo "configure:21513: checking for setproctitle" >&5
21513 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21514 echo $ac_n "(cached) $ac_c" 1>&6
21516 cat > conftest.$ac_ext <<EOF
21517 #line 21518 "configure"
21518 #include "confdefs.h"
21519 /* System header to define __stub macros and hopefully few prototypes,
21520 which can conflict with char setproctitle(); below. */
21521 #include <assert.h>
21522 /* Override any gcc2 internal prototype to avoid an error. */
21523 /* We use char because int might match the return type of a gcc2
21524 builtin and then its argument prototype would still apply. */
21525 char setproctitle();
21530 /* The GNU C library defines this for functions which it implements
21531 to always fail with ENOSYS. Some functions are actually named
21532 something starting with __ and the normal name is an alias. */
21533 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21541 if { (eval echo configure:21542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21543 eval "ac_cv_func_setproctitle=yes"
21545 echo "configure: failed program was:" >&5
21546 cat conftest.$ac_ext >&5
21548 eval "ac_cv_func_setproctitle=no"
21553 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21554 echo "$ac_t""yes" 1>&6
21555 have_setproctitle=yes
21557 echo "$ac_t""no" 1>&6
21559 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21560 echo "configure:21561: checking for setproctitle in -lutil" >&5
21561 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21562 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21563 echo $ac_n "(cached) $ac_c" 1>&6
21565 ac_save_LIBS="$LIBS"
21566 LIBS="-lutil $LIBS"
21567 cat > conftest.$ac_ext <<EOF
21568 #line 21569 "configure"
21569 #include "confdefs.h"
21570 /* Override any gcc2 internal prototype to avoid an error. */
21571 /* We use char because int might match the return type of a gcc2
21572 builtin and then its argument prototype would still apply. */
21573 char setproctitle();
21579 if { (eval echo configure:21580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21581 eval "ac_cv_lib_$ac_lib_var=yes"
21583 echo "configure: failed program was:" >&5
21584 cat conftest.$ac_ext >&5
21586 eval "ac_cv_lib_$ac_lib_var=no"
21589 LIBS="$ac_save_LIBS"
21592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21593 echo "$ac_t""yes" 1>&6
21594 have_setproctitle=yes
21595 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21597 echo "$ac_t""no" 1>&6
21598 have_setproctitle=no
21599 LIBOBJS="$LIBOBJS setproctitle.o"
21600 LIBSRCS="$LIBSRCS setproctitle.c"
21606 if test $have_setproctitle = yes ; then
21607 cat >> confdefs.h <<\EOF
21608 #define HAVE_SETPROCTITLE 1
21614 if test $ol_enable_slp != no ; then
21615 for ac_hdr in slp.h
21617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21619 echo "configure:21620: checking for $ac_hdr" >&5
21620 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21621 echo $ac_n "(cached) $ac_c" 1>&6
21623 cat > conftest.$ac_ext <<EOF
21624 #line 21625 "configure"
21625 #include "confdefs.h"
21628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21629 { (eval echo configure:21630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21631 if test -z "$ac_err"; then
21633 eval "ac_cv_header_$ac_safe=yes"
21636 echo "configure: failed program was:" >&5
21637 cat conftest.$ac_ext >&5
21639 eval "ac_cv_header_$ac_safe=no"
21643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21644 echo "$ac_t""yes" 1>&6
21645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21646 cat >> confdefs.h <<EOF
21647 #define $ac_tr_hdr 1
21651 echo "$ac_t""no" 1>&6
21656 if test $ac_cv_header_slp_h = yes ; then
21657 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21658 echo "configure:21659: checking for SLPOpen in -lslp" >&5
21659 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21661 echo $ac_n "(cached) $ac_c" 1>&6
21663 ac_save_LIBS="$LIBS"
21665 cat > conftest.$ac_ext <<EOF
21666 #line 21667 "configure"
21667 #include "confdefs.h"
21668 /* Override any gcc2 internal prototype to avoid an error. */
21669 /* We use char because int might match the return type of a gcc2
21670 builtin and then its argument prototype would still apply. */
21677 if { (eval echo configure:21678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21679 eval "ac_cv_lib_$ac_lib_var=yes"
21681 echo "configure: failed program was:" >&5
21682 cat conftest.$ac_ext >&5
21684 eval "ac_cv_lib_$ac_lib_var=no"
21687 LIBS="$ac_save_LIBS"
21690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21691 echo "$ac_t""yes" 1>&6
21694 echo "$ac_t""no" 1>&6
21698 if test $have_slp = yes ; then
21699 cat >> confdefs.h <<\EOF
21703 SLAPD_SLP_LIBS=-lslp
21706 elif test $ol_enable_slp = yes ; then
21707 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21711 if test "$ol_with_multiple_precision" != "no" ; then
21715 for ac_hdr in openssl/bn.h bn.h
21717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21719 echo "configure:21720: checking for $ac_hdr" >&5
21720 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21721 echo $ac_n "(cached) $ac_c" 1>&6
21723 cat > conftest.$ac_ext <<EOF
21724 #line 21725 "configure"
21725 #include "confdefs.h"
21728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21729 { (eval echo configure:21730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21731 if test -z "$ac_err"; then
21733 eval "ac_cv_header_$ac_safe=yes"
21736 echo "configure: failed program was:" >&5
21737 cat conftest.$ac_ext >&5
21739 eval "ac_cv_header_$ac_safe=no"
21743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21744 echo "$ac_t""yes" 1>&6
21745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21746 cat >> confdefs.h <<EOF
21747 #define $ac_tr_hdr 1
21751 echo "$ac_t""no" 1>&6
21755 for ac_hdr in openssl/crypto.h crypto.h
21757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21759 echo "configure:21760: checking for $ac_hdr" >&5
21760 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21761 echo $ac_n "(cached) $ac_c" 1>&6
21763 cat > conftest.$ac_ext <<EOF
21764 #line 21765 "configure"
21765 #include "confdefs.h"
21768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21769 { (eval echo configure:21770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21771 if test -z "$ac_err"; then
21773 eval "ac_cv_header_$ac_safe=yes"
21776 echo "configure: failed program was:" >&5
21777 cat conftest.$ac_ext >&5
21779 eval "ac_cv_header_$ac_safe=no"
21783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21784 echo "$ac_t""yes" 1>&6
21785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21786 cat >> confdefs.h <<EOF
21787 #define $ac_tr_hdr 1
21791 echo "$ac_t""no" 1>&6
21795 for ac_hdr in gmp.h
21797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21799 echo "configure:21800: checking for $ac_hdr" >&5
21800 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21801 echo $ac_n "(cached) $ac_c" 1>&6
21803 cat > conftest.$ac_ext <<EOF
21804 #line 21805 "configure"
21805 #include "confdefs.h"
21808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21809 { (eval echo configure:21810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21811 if test -z "$ac_err"; then
21813 eval "ac_cv_header_$ac_safe=yes"
21816 echo "configure: failed program was:" >&5
21817 cat conftest.$ac_ext >&5
21819 eval "ac_cv_header_$ac_safe=no"
21823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21824 echo "$ac_t""yes" 1>&6
21825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21826 cat >> confdefs.h <<EOF
21827 #define $ac_tr_hdr 1
21831 echo "$ac_t""no" 1>&6
21836 if test "$ol_with_tls" = "found" ; then
21838 ol_have_crypto_h=no
21840 if test "$ac_cv_header_openssl_bn_h" = "yes" \
21841 -o "$ac_cv_header_bn_h" = "yes" ; then
21845 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
21846 -o "$ac_cv_header_crypto_h" = "yes" ; then
21847 ol_have_crypto_h=yes
21850 if test "$ol_have_bn_h" = "yes" \
21851 -a "$ol_have_crypto_h" = "yes" ; then
21856 if test $ac_cv_header_gmp_h = yes ; then
21857 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
21858 echo "configure:21859: checking for __gmpz_add_ui in -lgmp" >&5
21859 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
21860 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21861 echo $ac_n "(cached) $ac_c" 1>&6
21863 ac_save_LIBS="$LIBS"
21865 cat > conftest.$ac_ext <<EOF
21866 #line 21867 "configure"
21867 #include "confdefs.h"
21868 /* Override any gcc2 internal prototype to avoid an error. */
21869 /* We use char because int might match the return type of a gcc2
21870 builtin and then its argument prototype would still apply. */
21871 char __gmpz_add_ui();
21877 if { (eval echo configure:21878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21879 eval "ac_cv_lib_$ac_lib_var=yes"
21881 echo "configure: failed program was:" >&5
21882 cat conftest.$ac_ext >&5
21884 eval "ac_cv_lib_$ac_lib_var=no"
21887 LIBS="$ac_save_LIBS"
21890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21891 echo "$ac_t""yes" 1>&6
21894 echo "$ac_t""no" 1>&6
21898 if test $have_gmp = yes ; then
21903 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
21904 echo "configure:21905: checking for multiple precision support" >&5
21906 ol_mp_support="none"
21907 case "$ol_with_multiple_precision" in
21909 if test "$ol_have_bignum" = "yes" ; then
21910 ol_mp_support="bignum"
21912 if test "$ol_have_gmp" = "yes" ; then
21913 ol_mp_support="gmp"
21918 if test "$ol_have_bignum" != "yes" ; then
21919 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
21921 ol_mp_support="bignum"
21924 if test "$ol_have_gmp" != "yes" ; then
21925 { echo "configure: error: GMP not available" 1>&2; exit 1; }
21927 ol_mp_support="gmp"
21930 if test "$ol_have_bignum" = "yes" ; then
21931 ol_mp_support="bignum"
21932 elif test "$ol_have_gmp" = "yes" ; then
21933 ol_mp_support="gmp"
21935 { echo "configure: error: not available" 1>&2; exit 1; }
21940 case "$ol_mp_support" in
21942 cat >> confdefs.h <<\EOF
21943 #define HAVE_BIGNUM 1
21948 cat >> confdefs.h <<\EOF
21952 SLAPD_GMP_LIBS=-lgmp
21958 echo "$ac_t""$ol_mp_support" 1>&6
21962 echo $ac_n "checking long long""... $ac_c" 1>&6
21963 echo "configure:21964: checking long long" >&5
21964 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21965 echo $ac_n "(cached) $ac_c" 1>&6
21968 cat > conftest.$ac_ext <<EOF
21969 #line 21970 "configure"
21970 #include "confdefs.h"
21976 if { (eval echo configure:21977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21978 ol_cv_type_long_long=yes
21980 echo "configure: failed program was:" >&5
21981 cat conftest.$ac_ext >&5
21983 ol_cv_type_long_long=no
21988 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21989 if test $ol_cv_type_long_long = yes; then
21990 cat >> confdefs.h <<\EOF
21991 #define HAVE_LONG_LONG 1
21996 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21997 echo "configure:21998: checking for ANSI C header files" >&5
21998 if eval "test \"\${ac_cv_header_stdc+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 <stdlib.h>
22005 #include <stdarg.h>
22006 #include <string.h>
22009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22010 { (eval echo configure:22011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22012 if test -z "$ac_err"; then
22014 ac_cv_header_stdc=yes
22017 echo "configure: failed program was:" >&5
22018 cat conftest.$ac_ext >&5
22020 ac_cv_header_stdc=no
22024 if test $ac_cv_header_stdc = yes; then
22025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22026 cat > conftest.$ac_ext <<EOF
22027 #line 22028 "configure"
22028 #include "confdefs.h"
22029 #include <string.h>
22031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22032 egrep "memchr" >/dev/null 2>&1; then
22036 ac_cv_header_stdc=no
22042 if test $ac_cv_header_stdc = yes; then
22043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22044 cat > conftest.$ac_ext <<EOF
22045 #line 22046 "configure"
22046 #include "confdefs.h"
22047 #include <stdlib.h>
22049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22050 egrep "free" >/dev/null 2>&1; then
22054 ac_cv_header_stdc=no
22060 if test $ac_cv_header_stdc = yes; then
22061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22062 if test "$cross_compiling" = yes; then
22065 cat > conftest.$ac_ext <<EOF
22066 #line 22067 "configure"
22067 #include "confdefs.h"
22069 #if ((' ' & 0x0FF) == 0x020)
22070 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22071 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22073 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22074 || ('j' <= (c) && (c) <= 'r') \
22075 || ('s' <= (c) && (c) <= 'z'))
22076 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22079 int main () { int i; for (i = 0; i < 256; i++)
22080 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22084 if { (eval echo configure:22085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22088 echo "configure: failed program was:" >&5
22089 cat conftest.$ac_ext >&5
22091 ac_cv_header_stdc=no
22099 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22100 if test $ac_cv_header_stdc = yes; then
22101 cat >> confdefs.h <<\EOF
22102 #define STDC_HEADERS 1
22107 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22108 echo "configure:22109: checking for mode_t" >&5
22109 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22110 echo $ac_n "(cached) $ac_c" 1>&6
22112 cat > conftest.$ac_ext <<EOF
22113 #line 22114 "configure"
22114 #include "confdefs.h"
22115 #include <sys/types.h>
22117 #include <stdlib.h>
22118 #include <stddef.h>
22122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22123 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22125 eval "ac_cv_type_mode_t=yes"
22128 eval "ac_cv_type_mode_t=no"
22133 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22134 echo "$ac_t""yes" 1>&6
22136 echo "$ac_t""no" 1>&6
22137 cat >> confdefs.h <<EOF
22143 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22144 echo "configure:22145: checking for off_t" >&5
22145 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22146 echo $ac_n "(cached) $ac_c" 1>&6
22148 cat > conftest.$ac_ext <<EOF
22149 #line 22150 "configure"
22150 #include "confdefs.h"
22151 #include <sys/types.h>
22153 #include <stdlib.h>
22154 #include <stddef.h>
22158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22159 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22161 eval "ac_cv_type_off_t=yes"
22164 eval "ac_cv_type_off_t=no"
22169 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22170 echo "$ac_t""yes" 1>&6
22172 echo "$ac_t""no" 1>&6
22173 cat >> confdefs.h <<EOF
22179 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22180 echo "configure:22181: checking for pid_t" >&5
22181 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22182 echo $ac_n "(cached) $ac_c" 1>&6
22184 cat > conftest.$ac_ext <<EOF
22185 #line 22186 "configure"
22186 #include "confdefs.h"
22187 #include <sys/types.h>
22189 #include <stdlib.h>
22190 #include <stddef.h>
22194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22195 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22197 eval "ac_cv_type_pid_t=yes"
22200 eval "ac_cv_type_pid_t=no"
22205 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22206 echo "$ac_t""yes" 1>&6
22208 echo "$ac_t""no" 1>&6
22209 cat >> confdefs.h <<EOF
22215 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
22216 echo "configure:22217: checking for ptrdiff_t" >&5
22217 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
22218 echo $ac_n "(cached) $ac_c" 1>&6
22220 cat > conftest.$ac_ext <<EOF
22221 #line 22222 "configure"
22222 #include "confdefs.h"
22223 #include <stddef.h>
22228 if { (eval echo configure:22229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22230 am_cv_type_ptrdiff_t=yes
22232 echo "configure: failed program was:" >&5
22233 cat conftest.$ac_ext >&5
22235 am_cv_type_ptrdiff_t=no
22240 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
22241 if test $am_cv_type_ptrdiff_t = yes; then
22242 cat >> confdefs.h <<\EOF
22243 #define HAVE_PTRDIFF_T 1
22248 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
22249 echo "configure:22250: checking return type of signal handlers" >&5
22250 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
22251 echo $ac_n "(cached) $ac_c" 1>&6
22253 cat > conftest.$ac_ext <<EOF
22254 #line 22255 "configure"
22255 #include "confdefs.h"
22256 #include <sys/types.h>
22257 #include <signal.h>
22262 extern "C" void (*signal (int, void (*)(int)))(int);
22264 void (*signal ()) ();
22271 if { (eval echo configure:22272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22273 ac_cv_type_signal=void
22275 echo "configure: failed program was:" >&5
22276 cat conftest.$ac_ext >&5
22278 ac_cv_type_signal=int
22283 echo "$ac_t""$ac_cv_type_signal" 1>&6
22284 cat >> confdefs.h <<EOF
22285 #define RETSIGTYPE $ac_cv_type_signal
22289 echo $ac_n "checking for size_t""... $ac_c" 1>&6
22290 echo "configure:22291: checking for size_t" >&5
22291 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
22292 echo $ac_n "(cached) $ac_c" 1>&6
22294 cat > conftest.$ac_ext <<EOF
22295 #line 22296 "configure"
22296 #include "confdefs.h"
22297 #include <sys/types.h>
22299 #include <stdlib.h>
22300 #include <stddef.h>
22304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22305 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22307 eval "ac_cv_type_size_t=yes"
22310 eval "ac_cv_type_size_t=no"
22315 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
22316 echo "$ac_t""yes" 1>&6
22318 echo "$ac_t""no" 1>&6
22319 cat >> confdefs.h <<EOF
22320 #define size_t unsigned
22326 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
22327 echo "configure:22328: checking for ssize_t" >&5
22328 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
22329 echo $ac_n "(cached) $ac_c" 1>&6
22331 cat > conftest.$ac_ext <<EOF
22332 #line 22333 "configure"
22333 #include "confdefs.h"
22334 #include <sys/types.h>
22336 #include <stdlib.h>
22337 #include <stddef.h>
22341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22342 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22344 eval "ac_cv_type_ssize_t=yes"
22347 eval "ac_cv_type_ssize_t=no"
22352 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
22353 echo "$ac_t""yes" 1>&6
22355 echo "$ac_t""no" 1>&6
22356 cat >> confdefs.h <<EOF
22357 #define ssize_t signed int
22362 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
22363 echo "configure:22364: checking for caddr_t" >&5
22364 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
22365 echo $ac_n "(cached) $ac_c" 1>&6
22367 cat > conftest.$ac_ext <<EOF
22368 #line 22369 "configure"
22369 #include "confdefs.h"
22370 #include <sys/types.h>
22372 #include <stdlib.h>
22373 #include <stddef.h>
22377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22378 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22380 eval "ac_cv_type_caddr_t=yes"
22383 eval "ac_cv_type_caddr_t=no"
22388 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
22389 echo "$ac_t""yes" 1>&6
22391 echo "$ac_t""no" 1>&6
22392 cat >> confdefs.h <<EOF
22393 #define caddr_t char *
22399 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
22400 echo "configure:22401: checking for socklen_t" >&5
22401 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
22402 echo $ac_n "(cached) $ac_c" 1>&6
22404 cat > conftest.$ac_ext <<EOF
22405 #line 22406 "configure"
22406 #include "confdefs.h"
22408 #ifdef HAVE_SYS_TYPES_H
22409 #include <sys/types.h>
22411 #ifdef HAVE_SYS_SOCKET_H
22412 #include <sys/socket.h>
22419 if { (eval echo configure:22420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22421 ol_cv_type_socklen_t=yes
22423 echo "configure: failed program was:" >&5
22424 cat conftest.$ac_ext >&5
22426 ol_cv_type_socklen_t=no
22431 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
22432 if test $ol_cv_type_socklen_t = no; then
22433 cat >> confdefs.h <<\EOF
22434 #define socklen_t int
22439 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22440 echo "configure:22441: checking for member st_blksize in aggregate type struct stat" >&5
22441 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22442 echo $ac_n "(cached) $ac_c" 1>&6
22444 cat > conftest.$ac_ext <<EOF
22445 #line 22446 "configure"
22446 #include "confdefs.h"
22447 #include <sys/types.h>
22448 #include <sys/stat.h>
22450 struct stat foo; foo.st_blksize;
22453 if { (eval echo configure:22454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22455 ac_cv_c_struct_member_st_blksize=yes
22457 echo "configure: failed program was:" >&5
22458 cat conftest.$ac_ext >&5
22460 ac_cv_c_struct_member_st_blksize=no
22465 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22466 st_blksize="$ac_cv_c_struct_member_st_blksize"
22467 if test $ac_cv_c_struct_member_st_blksize = yes; then
22468 cat >> confdefs.h <<\EOF
22469 #define HAVE_ST_BLKSIZE 1
22474 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22475 echo "configure:22476: checking whether time.h and sys/time.h may both be included" >&5
22476 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22477 echo $ac_n "(cached) $ac_c" 1>&6
22479 cat > conftest.$ac_ext <<EOF
22480 #line 22481 "configure"
22481 #include "confdefs.h"
22482 #include <sys/types.h>
22483 #include <sys/time.h>
22489 if { (eval echo configure:22490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22491 ac_cv_header_time=yes
22493 echo "configure: failed program was:" >&5
22494 cat conftest.$ac_ext >&5
22496 ac_cv_header_time=no
22501 echo "$ac_t""$ac_cv_header_time" 1>&6
22502 if test $ac_cv_header_time = yes; then
22503 cat >> confdefs.h <<\EOF
22504 #define TIME_WITH_SYS_TIME 1
22509 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22510 echo "configure:22511: checking whether struct tm is in sys/time.h or time.h" >&5
22511 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22512 echo $ac_n "(cached) $ac_c" 1>&6
22514 cat > conftest.$ac_ext <<EOF
22515 #line 22516 "configure"
22516 #include "confdefs.h"
22517 #include <sys/types.h>
22520 struct tm *tp; tp->tm_sec;
22523 if { (eval echo configure:22524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22525 ac_cv_struct_tm=time.h
22527 echo "configure: failed program was:" >&5
22528 cat conftest.$ac_ext >&5
22530 ac_cv_struct_tm=sys/time.h
22535 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22536 if test $ac_cv_struct_tm = sys/time.h; then
22537 cat >> confdefs.h <<\EOF
22538 #define TM_IN_SYS_TIME 1
22543 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22544 echo "configure:22545: checking for uid_t in sys/types.h" >&5
22545 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22546 echo $ac_n "(cached) $ac_c" 1>&6
22548 cat > conftest.$ac_ext <<EOF
22549 #line 22550 "configure"
22550 #include "confdefs.h"
22551 #include <sys/types.h>
22553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22554 egrep "uid_t" >/dev/null 2>&1; then
22556 ac_cv_type_uid_t=yes
22559 ac_cv_type_uid_t=no
22565 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22566 if test $ac_cv_type_uid_t = no; then
22567 cat >> confdefs.h <<\EOF
22571 cat >> confdefs.h <<\EOF
22577 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22578 echo "configure:22579: checking for sig_atomic_t" >&5
22579 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22580 echo $ac_n "(cached) $ac_c" 1>&6
22582 cat > conftest.$ac_ext <<EOF
22583 #line 22584 "configure"
22584 #include "confdefs.h"
22585 #include <signal.h>
22587 sig_atomic_t atomic;
22590 if { (eval echo configure:22591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22592 ol_cv_type_sig_atomic_t=yes
22594 echo "configure: failed program was:" >&5
22595 cat conftest.$ac_ext >&5
22597 ol_cv_type_sig_atomic_t=no
22602 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22603 if test $ol_cv_type_sig_atomic_t = no; then
22604 cat >> confdefs.h <<\EOF
22605 #define sig_atomic_t int
22612 # test for pw_gecos in struct passwd
22613 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22614 echo "configure:22615: checking struct passwd for pw_gecos" >&5
22615 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22616 echo $ac_n "(cached) $ac_c" 1>&6
22619 cat > conftest.$ac_ext <<EOF
22620 #line 22621 "configure"
22621 #include "confdefs.h"
22626 pwd.pw_gecos = pwd.pw_name;
22630 if { (eval echo configure:22631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22632 ol_cv_struct_passwd_pw_gecos=yes
22634 echo "configure: failed program was:" >&5
22635 cat conftest.$ac_ext >&5
22637 ol_cv_struct_passwd_pw_gecos=no
22642 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22643 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22644 cat >> confdefs.h <<\EOF
22645 #define HAVE_PW_GECOS 1
22650 # test for pw_passwd in struct passwd
22651 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22652 echo "configure:22653: checking struct passwd for pw_passwd" >&5
22653 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22654 echo $ac_n "(cached) $ac_c" 1>&6
22657 cat > conftest.$ac_ext <<EOF
22658 #line 22659 "configure"
22659 #include "confdefs.h"
22664 pwd.pw_passwd = pwd.pw_name;
22668 if { (eval echo configure:22669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22670 ol_cv_struct_passwd_pw_passwd=yes
22672 echo "configure: failed program was:" >&5
22673 cat conftest.$ac_ext >&5
22675 ol_cv_struct_passwd_pw_passwd=no
22680 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22681 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22682 cat >> confdefs.h <<\EOF
22683 #define HAVE_PW_PASSWD 1
22689 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22690 echo "configure:22691: checking if toupper() requires islower()" >&5
22691 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22692 echo $ac_n "(cached) $ac_c" 1>&6
22695 if test "$cross_compiling" = yes; then
22696 ol_cv_c_upper_lower=safe
22698 cat > conftest.$ac_ext <<EOF
22699 #line 22700 "configure"
22700 #include "confdefs.h"
22705 if ('C' == toupper('C'))
22711 if { (eval echo configure:22712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22713 ol_cv_c_upper_lower=no
22715 echo "configure: failed program was:" >&5
22716 cat conftest.$ac_ext >&5
22718 ol_cv_c_upper_lower=yes
22725 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22726 if test $ol_cv_c_upper_lower != no ; then
22727 cat >> confdefs.h <<\EOF
22728 #define C_UPPER_LOWER 1
22733 echo $ac_n "checking for working const""... $ac_c" 1>&6
22734 echo "configure:22735: checking for working const" >&5
22735 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22736 echo $ac_n "(cached) $ac_c" 1>&6
22738 cat > conftest.$ac_ext <<EOF
22739 #line 22740 "configure"
22740 #include "confdefs.h"
22744 /* Ultrix mips cc rejects this. */
22745 typedef int charset[2]; const charset x;
22746 /* SunOS 4.1.1 cc rejects this. */
22747 char const *const *ccp;
22749 /* NEC SVR4.0.2 mips cc rejects this. */
22750 struct point {int x, y;};
22751 static struct point const zero = {0,0};
22752 /* AIX XL C 1.02.0.0 rejects this.
22753 It does not let you subtract one const X* pointer from another in an arm
22754 of an if-expression whose if-part is not a constant expression */
22755 const char *g = "string";
22756 ccp = &g + (g ? g-g : 0);
22757 /* HPUX 7.0 cc rejects these. */
22760 ccp = (char const *const *) p;
22761 { /* SCO 3.2v4 cc rejects this. */
22763 char const *s = 0 ? (char *) 0 : (char const *) 0;
22767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22768 int x[] = {25, 17};
22769 const int *foo = &x[0];
22772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22773 typedef const int *iptr;
22777 { /* AIX XL C 1.02.0.0 rejects this saying
22778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22779 struct s { int j; const int *ap[3]; };
22780 struct s *b; b->j = 5;
22782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22783 const int foo = 10;
22788 if { (eval echo configure:22789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22792 echo "configure: failed program was:" >&5
22793 cat conftest.$ac_ext >&5
22800 echo "$ac_t""$ac_cv_c_const" 1>&6
22801 if test $ac_cv_c_const = no; then
22802 cat >> confdefs.h <<\EOF
22808 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22809 echo "configure:22810: checking if compiler understands volatile" >&5
22810 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22811 echo $ac_n "(cached) $ac_c" 1>&6
22813 cat > conftest.$ac_ext <<EOF
22814 #line 22815 "configure"
22815 #include "confdefs.h"
22818 volatile int a; int * volatile b = x ? &y : &z;
22819 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22823 if { (eval echo configure:22824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22825 ol_cv_c_volatile=yes
22827 echo "configure: failed program was:" >&5
22828 cat conftest.$ac_ext >&5
22830 ol_cv_c_volatile=no
22835 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22836 if test $ol_cv_c_volatile = yes; then
22839 cat >> confdefs.h <<\EOF
22846 if test $cross_compiling = yes ; then
22847 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22848 cat >> confdefs.h <<\EOF
22849 #define CROSS_COMPILING 1
22853 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22854 echo "configure:22855: checking whether byte ordering is bigendian" >&5
22855 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22856 echo $ac_n "(cached) $ac_c" 1>&6
22858 ac_cv_c_bigendian=unknown
22859 # See if sys/param.h defines the BYTE_ORDER macro.
22860 cat > conftest.$ac_ext <<EOF
22861 #line 22862 "configure"
22862 #include "confdefs.h"
22863 #include <sys/types.h>
22864 #include <sys/param.h>
22867 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22868 bogus endian macros
22872 if { (eval echo configure:22873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22874 # It does; now see whether it defined to BIG_ENDIAN or not.
22875 cat > conftest.$ac_ext <<EOF
22876 #line 22877 "configure"
22877 #include "confdefs.h"
22878 #include <sys/types.h>
22879 #include <sys/param.h>
22882 #if BYTE_ORDER != BIG_ENDIAN
22887 if { (eval echo configure:22888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22889 ac_cv_c_bigendian=yes
22891 echo "configure: failed program was:" >&5
22892 cat conftest.$ac_ext >&5
22894 ac_cv_c_bigendian=no
22898 echo "configure: failed program was:" >&5
22899 cat conftest.$ac_ext >&5
22902 if test $ac_cv_c_bigendian = unknown; then
22903 if test "$cross_compiling" = yes; then
22904 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22906 cat > conftest.$ac_ext <<EOF
22907 #line 22908 "configure"
22908 #include "confdefs.h"
22910 /* Are we little or big endian? From Harbison&Steele. */
22914 char c[sizeof (long)];
22917 exit (u.c[sizeof (long) - 1] == 1);
22920 if { (eval echo configure:22921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22922 ac_cv_c_bigendian=no
22924 echo "configure: failed program was:" >&5
22925 cat conftest.$ac_ext >&5
22927 ac_cv_c_bigendian=yes
22935 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22936 if test $ac_cv_c_bigendian = yes; then
22937 cat >> confdefs.h <<\EOF
22938 #define WORDS_BIGENDIAN 1
22945 echo $ac_n "checking size of short""... $ac_c" 1>&6
22946 echo "configure:22947: checking size of short" >&5
22947 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22948 echo $ac_n "(cached) $ac_c" 1>&6
22950 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22951 cat > conftest.$ac_ext <<EOF
22952 #line 22953 "configure"
22953 #include "confdefs.h"
22954 #include "confdefs.h"
22955 #include <stdlib.h>
22956 #include <sys/types.h>
22960 switch (0) case 0: case (sizeof (short) == $ac_size):;
22963 if { (eval echo configure:22964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22965 ac_cv_sizeof_short=$ac_size
22967 echo "configure: failed program was:" >&5
22968 cat conftest.$ac_ext >&5
22971 if test x$ac_cv_sizeof_short != x ; then break; fi
22976 if test x$ac_cv_sizeof_short = x ; then
22977 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22979 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22980 cat >> confdefs.h <<EOF
22981 #define SIZEOF_SHORT $ac_cv_sizeof_short
22985 echo $ac_n "checking size of int""... $ac_c" 1>&6
22986 echo "configure:22987: checking size of int" >&5
22987 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22988 echo $ac_n "(cached) $ac_c" 1>&6
22990 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22991 cat > conftest.$ac_ext <<EOF
22992 #line 22993 "configure"
22993 #include "confdefs.h"
22994 #include "confdefs.h"
22995 #include <stdlib.h>
22996 #include <sys/types.h>
23000 switch (0) case 0: case (sizeof (int) == $ac_size):;
23003 if { (eval echo configure:23004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23005 ac_cv_sizeof_int=$ac_size
23007 echo "configure: failed program was:" >&5
23008 cat conftest.$ac_ext >&5
23011 if test x$ac_cv_sizeof_int != x ; then break; fi
23016 if test x$ac_cv_sizeof_int = x ; then
23017 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23019 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23020 cat >> confdefs.h <<EOF
23021 #define SIZEOF_INT $ac_cv_sizeof_int
23025 echo $ac_n "checking size of long""... $ac_c" 1>&6
23026 echo "configure:23027: checking size of long" >&5
23027 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23028 echo $ac_n "(cached) $ac_c" 1>&6
23030 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23031 cat > conftest.$ac_ext <<EOF
23032 #line 23033 "configure"
23033 #include "confdefs.h"
23034 #include "confdefs.h"
23035 #include <stdlib.h>
23036 #include <sys/types.h>
23040 switch (0) case 0: case (sizeof (long) == $ac_size):;
23043 if { (eval echo configure:23044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23045 ac_cv_sizeof_long=$ac_size
23047 echo "configure: failed program was:" >&5
23048 cat conftest.$ac_ext >&5
23051 if test x$ac_cv_sizeof_long != x ; then break; fi
23056 if test x$ac_cv_sizeof_long = x ; then
23057 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23059 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23060 cat >> confdefs.h <<EOF
23061 #define SIZEOF_LONG $ac_cv_sizeof_long
23065 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23066 echo "configure:23067: checking size of wchar_t" >&5
23067 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23068 echo $ac_n "(cached) $ac_c" 1>&6
23070 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23071 cat > conftest.$ac_ext <<EOF
23072 #line 23073 "configure"
23073 #include "confdefs.h"
23074 #include "confdefs.h"
23075 #include <stdlib.h>
23076 #include <sys/types.h>
23080 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23083 if { (eval echo configure:23084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23085 ac_cv_sizeof_wchar_t=$ac_size
23087 echo "configure: failed program was:" >&5
23088 cat conftest.$ac_ext >&5
23091 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23096 if test x$ac_cv_sizeof_wchar_t = x ; then
23097 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23099 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23100 cat >> confdefs.h <<EOF
23101 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23106 if test "$ac_cv_sizeof_int" -lt 4 ; then
23107 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23109 cat >> confdefs.h <<\EOF
23110 #define LBER_INT_T long
23114 cat >> confdefs.h <<\EOF
23115 #define LBER_INT_T int
23120 cat >> confdefs.h <<\EOF
23121 #define LBER_LEN_T long
23124 cat >> confdefs.h <<\EOF
23125 #define LBER_SOCKET_T int
23128 cat >> confdefs.h <<\EOF
23129 #define LBER_TAG_T long
23133 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23134 echo "configure:23135: checking for 8-bit clean memcmp" >&5
23135 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23136 echo $ac_n "(cached) $ac_c" 1>&6
23138 if test "$cross_compiling" = yes; then
23139 ac_cv_func_memcmp_clean=no
23141 cat > conftest.$ac_ext <<EOF
23142 #line 23143 "configure"
23143 #include "confdefs.h"
23147 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23148 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23152 if { (eval echo configure:23153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23154 ac_cv_func_memcmp_clean=yes
23156 echo "configure: failed program was:" >&5
23157 cat conftest.$ac_ext >&5
23159 ac_cv_func_memcmp_clean=no
23166 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
23167 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
23169 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23170 echo "configure:23171: checking for strftime" >&5
23171 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23172 echo $ac_n "(cached) $ac_c" 1>&6
23174 cat > conftest.$ac_ext <<EOF
23175 #line 23176 "configure"
23176 #include "confdefs.h"
23177 /* System header to define __stub macros and hopefully few prototypes,
23178 which can conflict with char strftime(); below. */
23179 #include <assert.h>
23180 /* Override any gcc2 internal prototype to avoid an error. */
23181 /* We use char because int might match the return type of a gcc2
23182 builtin and then its argument prototype would still apply. */
23188 /* The GNU C library defines this for functions which it implements
23189 to always fail with ENOSYS. Some functions are actually named
23190 something starting with __ and the normal name is an alias. */
23191 #if defined (__stub_strftime) || defined (__stub___strftime)
23199 if { (eval echo configure:23200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23201 eval "ac_cv_func_strftime=yes"
23203 echo "configure: failed program was:" >&5
23204 cat conftest.$ac_ext >&5
23206 eval "ac_cv_func_strftime=no"
23211 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
23212 echo "$ac_t""yes" 1>&6
23213 cat >> confdefs.h <<\EOF
23214 #define HAVE_STRFTIME 1
23218 echo "$ac_t""no" 1>&6
23219 # strftime is in -lintl on SCO UNIX.
23220 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
23221 echo "configure:23222: checking for strftime in -lintl" >&5
23222 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
23223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23224 echo $ac_n "(cached) $ac_c" 1>&6
23226 ac_save_LIBS="$LIBS"
23227 LIBS="-lintl $LIBS"
23228 cat > conftest.$ac_ext <<EOF
23229 #line 23230 "configure"
23230 #include "confdefs.h"
23231 /* Override any gcc2 internal prototype to avoid an error. */
23232 /* We use char because int might match the return type of a gcc2
23233 builtin and then its argument prototype would still apply. */
23240 if { (eval echo configure:23241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23242 eval "ac_cv_lib_$ac_lib_var=yes"
23244 echo "configure: failed program was:" >&5
23245 cat conftest.$ac_ext >&5
23247 eval "ac_cv_lib_$ac_lib_var=no"
23250 LIBS="$ac_save_LIBS"
23253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23254 echo "$ac_t""yes" 1>&6
23255 cat >> confdefs.h <<\EOF
23256 #define HAVE_STRFTIME 1
23259 LIBS="-lintl $LIBS"
23261 echo "$ac_t""no" 1>&6
23267 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
23268 echo "configure:23269: checking for inet_aton()" >&5
23269 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
23270 echo $ac_n "(cached) $ac_c" 1>&6
23272 cat > conftest.$ac_ext <<EOF
23273 #line 23274 "configure"
23274 #include "confdefs.h"
23276 #ifdef HAVE_SYS_TYPES_H
23277 # include <sys/types.h>
23279 #ifdef HAVE_SYS_SOCKET_H
23280 # include <sys/socket.h>
23281 # ifdef HAVE_SYS_SELECT_H
23282 # include <sys/select.h>
23284 # include <netinet/in.h>
23285 # ifdef HAVE_ARPA_INET_H
23286 # include <arpa/inet.h>
23292 int rc = inet_aton( "255.255.255.255", &in );
23295 if { (eval echo configure:23296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23297 ol_cv_func_inet_aton=yes
23299 echo "configure: failed program was:" >&5
23300 cat conftest.$ac_ext >&5
23302 ol_cv_func_inet_aton=no
23307 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
23308 if test $ol_cv_func_inet_aton != no; then
23309 cat >> confdefs.h <<\EOF
23310 #define HAVE_INET_ATON 1
23316 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
23317 echo "configure:23318: checking for _spawnlp" >&5
23318 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
23319 echo $ac_n "(cached) $ac_c" 1>&6
23321 cat > conftest.$ac_ext <<EOF
23322 #line 23323 "configure"
23323 #include "confdefs.h"
23324 /* System header to define __stub macros and hopefully few prototypes,
23325 which can conflict with char _spawnlp(); below. */
23326 #include <assert.h>
23327 /* Override any gcc2 internal prototype to avoid an error. */
23328 /* We use char because int might match the return type of a gcc2
23329 builtin and then its argument prototype would still apply. */
23335 /* The GNU C library defines this for functions which it implements
23336 to always fail with ENOSYS. Some functions are actually named
23337 something starting with __ and the normal name is an alias. */
23338 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
23346 if { (eval echo configure:23347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23348 eval "ac_cv_func__spawnlp=yes"
23350 echo "configure: failed program was:" >&5
23351 cat conftest.$ac_ext >&5
23353 eval "ac_cv_func__spawnlp=no"
23358 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
23359 echo "$ac_t""yes" 1>&6
23360 cat >> confdefs.h <<\EOF
23361 #define HAVE_SPAWNLP 1
23365 echo "$ac_t""no" 1>&6
23369 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
23370 echo "configure:23371: checking for _snprintf" >&5
23371 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
23372 echo $ac_n "(cached) $ac_c" 1>&6
23374 cat > conftest.$ac_ext <<EOF
23375 #line 23376 "configure"
23376 #include "confdefs.h"
23377 /* System header to define __stub macros and hopefully few prototypes,
23378 which can conflict with char _snprintf(); below. */
23379 #include <assert.h>
23380 /* Override any gcc2 internal prototype to avoid an error. */
23381 /* We use char because int might match the return type of a gcc2
23382 builtin and then its argument prototype would still apply. */
23388 /* The GNU C library defines this for functions which it implements
23389 to always fail with ENOSYS. Some functions are actually named
23390 something starting with __ and the normal name is an alias. */
23391 #if defined (__stub__snprintf) || defined (__stub____snprintf)
23399 if { (eval echo configure:23400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23401 eval "ac_cv_func__snprintf=yes"
23403 echo "configure: failed program was:" >&5
23404 cat conftest.$ac_ext >&5
23406 eval "ac_cv_func__snprintf=no"
23411 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
23412 echo "$ac_t""yes" 1>&6
23413 ac_cv_func_snprintf=yes
23414 cat >> confdefs.h <<\EOF
23415 #define snprintf _snprintf
23420 echo "$ac_t""no" 1>&6
23424 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
23425 echo "configure:23426: checking for _vsnprintf" >&5
23426 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
23427 echo $ac_n "(cached) $ac_c" 1>&6
23429 cat > conftest.$ac_ext <<EOF
23430 #line 23431 "configure"
23431 #include "confdefs.h"
23432 /* System header to define __stub macros and hopefully few prototypes,
23433 which can conflict with char _vsnprintf(); below. */
23434 #include <assert.h>
23435 /* Override any gcc2 internal prototype to avoid an error. */
23436 /* We use char because int might match the return type of a gcc2
23437 builtin and then its argument prototype would still apply. */
23443 /* The GNU C library defines this for functions which it implements
23444 to always fail with ENOSYS. Some functions are actually named
23445 something starting with __ and the normal name is an alias. */
23446 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
23454 if { (eval echo configure:23455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23456 eval "ac_cv_func__vsnprintf=yes"
23458 echo "configure: failed program was:" >&5
23459 cat conftest.$ac_ext >&5
23461 eval "ac_cv_func__vsnprintf=no"
23466 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
23467 echo "$ac_t""yes" 1>&6
23468 ac_cv_func_vsnprintf=yes
23469 cat >> confdefs.h <<\EOF
23470 #define vsnprintf _vsnprintf
23475 echo "$ac_t""no" 1>&6
23479 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23480 echo "configure:23481: checking for vprintf" >&5
23481 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23482 echo $ac_n "(cached) $ac_c" 1>&6
23484 cat > conftest.$ac_ext <<EOF
23485 #line 23486 "configure"
23486 #include "confdefs.h"
23487 /* System header to define __stub macros and hopefully few prototypes,
23488 which can conflict with char vprintf(); below. */
23489 #include <assert.h>
23490 /* Override any gcc2 internal prototype to avoid an error. */
23491 /* We use char because int might match the return type of a gcc2
23492 builtin and then its argument prototype would still apply. */
23498 /* The GNU C library defines this for functions which it implements
23499 to always fail with ENOSYS. Some functions are actually named
23500 something starting with __ and the normal name is an alias. */
23501 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23509 if { (eval echo configure:23510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23511 eval "ac_cv_func_vprintf=yes"
23513 echo "configure: failed program was:" >&5
23514 cat conftest.$ac_ext >&5
23516 eval "ac_cv_func_vprintf=no"
23521 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23522 echo "$ac_t""yes" 1>&6
23523 cat >> confdefs.h <<\EOF
23524 #define HAVE_VPRINTF 1
23528 echo "$ac_t""no" 1>&6
23531 if test "$ac_cv_func_vprintf" != yes; then
23532 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23533 echo "configure:23534: checking for _doprnt" >&5
23534 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23535 echo $ac_n "(cached) $ac_c" 1>&6
23537 cat > conftest.$ac_ext <<EOF
23538 #line 23539 "configure"
23539 #include "confdefs.h"
23540 /* System header to define __stub macros and hopefully few prototypes,
23541 which can conflict with char _doprnt(); below. */
23542 #include <assert.h>
23543 /* Override any gcc2 internal prototype to avoid an error. */
23544 /* We use char because int might match the return type of a gcc2
23545 builtin and then its argument prototype would still apply. */
23551 /* The GNU C library defines this for functions which it implements
23552 to always fail with ENOSYS. Some functions are actually named
23553 something starting with __ and the normal name is an alias. */
23554 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23562 if { (eval echo configure:23563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23564 eval "ac_cv_func__doprnt=yes"
23566 echo "configure: failed program was:" >&5
23567 cat conftest.$ac_ext >&5
23569 eval "ac_cv_func__doprnt=no"
23574 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23575 echo "$ac_t""yes" 1>&6
23576 cat >> confdefs.h <<\EOF
23577 #define HAVE_DOPRNT 1
23581 echo "$ac_t""no" 1>&6
23587 if test $ac_cv_func_vprintf = yes ; then
23588 for ac_func in snprintf vsnprintf
23590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23591 echo "configure:23592: checking for $ac_func" >&5
23592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23593 echo $ac_n "(cached) $ac_c" 1>&6
23595 cat > conftest.$ac_ext <<EOF
23596 #line 23597 "configure"
23597 #include "confdefs.h"
23598 /* System header to define __stub macros and hopefully few prototypes,
23599 which can conflict with char $ac_func(); below. */
23600 #include <assert.h>
23601 /* Override any gcc2 internal prototype to avoid an error. */
23602 /* We use char because int might match the return type of a gcc2
23603 builtin and then its argument prototype would still apply. */
23609 /* The GNU C library defines this for functions which it implements
23610 to always fail with ENOSYS. Some functions are actually named
23611 something starting with __ and the normal name is an alias. */
23612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23620 if { (eval echo configure:23621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23622 eval "ac_cv_func_$ac_func=yes"
23624 echo "configure: failed program was:" >&5
23625 cat conftest.$ac_ext >&5
23627 eval "ac_cv_func_$ac_func=no"
23632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23633 echo "$ac_t""yes" 1>&6
23634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23635 cat >> confdefs.h <<EOF
23636 #define $ac_tr_func 1
23640 echo "$ac_t""no" 1>&6
23704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23705 echo "configure:23706: checking for $ac_func" >&5
23706 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23707 echo $ac_n "(cached) $ac_c" 1>&6
23709 cat > conftest.$ac_ext <<EOF
23710 #line 23711 "configure"
23711 #include "confdefs.h"
23712 /* System header to define __stub macros and hopefully few prototypes,
23713 which can conflict with char $ac_func(); below. */
23714 #include <assert.h>
23715 /* Override any gcc2 internal prototype to avoid an error. */
23716 /* We use char because int might match the return type of a gcc2
23717 builtin and then its argument prototype would still apply. */
23723 /* The GNU C library defines this for functions which it implements
23724 to always fail with ENOSYS. Some functions are actually named
23725 something starting with __ and the normal name is an alias. */
23726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23734 if { (eval echo configure:23735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23736 eval "ac_cv_func_$ac_func=yes"
23738 echo "configure: failed program was:" >&5
23739 cat conftest.$ac_ext >&5
23741 eval "ac_cv_func_$ac_func=no"
23746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23747 echo "$ac_t""yes" 1>&6
23748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23749 cat >> confdefs.h <<EOF
23750 #define $ac_tr_func 1
23754 echo "$ac_t""no" 1>&6
23759 for ac_func in getopt getpeereid
23761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23762 echo "configure:23763: checking for $ac_func" >&5
23763 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23764 echo $ac_n "(cached) $ac_c" 1>&6
23766 cat > conftest.$ac_ext <<EOF
23767 #line 23768 "configure"
23768 #include "confdefs.h"
23769 /* System header to define __stub macros and hopefully few prototypes,
23770 which can conflict with char $ac_func(); below. */
23771 #include <assert.h>
23772 /* Override any gcc2 internal prototype to avoid an error. */
23773 /* We use char because int might match the return type of a gcc2
23774 builtin and then its argument prototype would still apply. */
23780 /* The GNU C library defines this for functions which it implements
23781 to always fail with ENOSYS. Some functions are actually named
23782 something starting with __ and the normal name is an alias. */
23783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23791 if { (eval echo configure:23792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23793 eval "ac_cv_func_$ac_func=yes"
23795 echo "configure: failed program was:" >&5
23796 cat conftest.$ac_ext >&5
23798 eval "ac_cv_func_$ac_func=no"
23803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23804 echo "$ac_t""yes" 1>&6
23805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23806 cat >> confdefs.h <<EOF
23807 #define $ac_tr_func 1
23811 echo "$ac_t""no" 1>&6
23812 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23818 if test "$ac_cv_func_getopt" != yes; then
23819 LIBSRCS="$LIBSRCS getopt.c"
23821 if test "$ac_cv_func_getpeereid" != yes; then
23822 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23823 echo "configure:23824: checking for msg_accrights in msghdr" >&5
23824 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23825 echo $ac_n "(cached) $ac_c" 1>&6
23827 cat > conftest.$ac_ext <<EOF
23828 #line 23829 "configure"
23829 #include "confdefs.h"
23830 #include <sys/socket.h>
23832 struct msghdr m; m.msg_accrightslen=0
23835 if { (eval echo configure:23836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23837 ol_cv_msghdr_msg_accrights=yes
23839 echo "configure: failed program was:" >&5
23840 cat conftest.$ac_ext >&5
23842 ol_cv_msghdr_msg_accrights=no
23848 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23849 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23850 cat >> confdefs.h <<\EOF
23851 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23856 LIBSRCS="$LIBSRCS getpeereid.c"
23858 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23859 if test "$ac_cv_func_snprintf" != yes; then
23860 cat >> confdefs.h <<\EOF
23861 #define snprintf ber_pvt_snprintf
23865 if test "$ac_cv_func_vsnprintf" != yes; then
23866 cat >> confdefs.h <<\EOF
23867 #define vsnprintf ber_pvt_vsnprintf
23874 if test "$ol_enable_slapi" != no ; then
23875 for ac_hdr in ltdl.h
23877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23879 echo "configure:23880: checking for $ac_hdr" >&5
23880 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23881 echo $ac_n "(cached) $ac_c" 1>&6
23883 cat > conftest.$ac_ext <<EOF
23884 #line 23885 "configure"
23885 #include "confdefs.h"
23888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23889 { (eval echo configure:23890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23891 if test -z "$ac_err"; then
23893 eval "ac_cv_header_$ac_safe=yes"
23896 echo "configure: failed program was:" >&5
23897 cat conftest.$ac_ext >&5
23899 eval "ac_cv_header_$ac_safe=no"
23903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23904 echo "$ac_t""yes" 1>&6
23905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23906 cat >> confdefs.h <<EOF
23907 #define $ac_tr_hdr 1
23911 echo "$ac_t""no" 1>&6
23916 if test $ac_cv_header_ltdl_h != yes ; then
23917 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23919 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23920 echo "configure:23921: checking for lt_dlinit in -lltdl" >&5
23921 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23922 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23923 echo $ac_n "(cached) $ac_c" 1>&6
23925 ac_save_LIBS="$LIBS"
23926 LIBS="-lltdl $LIBS"
23927 cat > conftest.$ac_ext <<EOF
23928 #line 23929 "configure"
23929 #include "confdefs.h"
23930 /* Override any gcc2 internal prototype to avoid an error. */
23931 /* We use char because int might match the return type of a gcc2
23932 builtin and then its argument prototype would still apply. */
23939 if { (eval echo configure:23940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23941 eval "ac_cv_lib_$ac_lib_var=yes"
23943 echo "configure: failed program was:" >&5
23944 cat conftest.$ac_ext >&5
23946 eval "ac_cv_lib_$ac_lib_var=no"
23949 LIBS="$ac_save_LIBS"
23952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23953 echo "$ac_t""yes" 1>&6
23956 LIBSLAPI=libslapi.a
23957 LIBSLAPITOOLS=../libslapi.a
23958 cat >> confdefs.h <<\EOF
23959 #define HAVE_LIBLTDL 1
23964 echo "$ac_t""no" 1>&6
23965 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23969 cat >> confdefs.h <<\EOF
23970 #define LDAP_SLAPI 1
23975 if test "$ol_enable_debug" != no ; then
23976 cat >> confdefs.h <<\EOF
23977 #define LDAP_DEBUG 1
23981 if test "$ol_enable_syslog" = yes ; then
23982 cat >> confdefs.h <<\EOF
23983 #define LDAP_SYSLOG 1
23987 if test "$ol_link_kbind" != no ; then
23988 cat >> confdefs.h <<\EOF
23989 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23993 if test "$ol_enable_proctitle" != no ; then
23994 cat >> confdefs.h <<\EOF
23995 #define LDAP_PROCTITLE 1
23999 if test "$ol_enable_referrals" != no ; then
24000 cat >> confdefs.h <<\EOF
24001 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24005 if test "$ol_enable_local" != no; then
24006 cat >> confdefs.h <<\EOF
24007 #define LDAP_PF_LOCAL 1
24011 if test "$ol_link_ipv6" != no; then
24012 cat >> confdefs.h <<\EOF
24013 #define LDAP_PF_INET6 1
24017 if test "$ol_enable_cleartext" != no ; then
24018 cat >> confdefs.h <<\EOF
24019 #define SLAPD_CLEARTEXT 1
24023 if test "$ol_enable_crypt" != no ; then
24024 cat >> confdefs.h <<\EOF
24025 #define SLAPD_CRYPT 1
24029 if test "$ol_link_spasswd" != no ; then
24030 cat >> confdefs.h <<\EOF
24031 #define SLAPD_SPASSWD 1
24035 if test "$ol_enable_multimaster" != no ; then
24036 cat >> confdefs.h <<\EOF
24037 #define SLAPD_MULTIMASTER 1
24041 if test "$ol_enable_rlookups" != no ; then
24042 cat >> confdefs.h <<\EOF
24043 #define SLAPD_RLOOKUPS 1
24047 if test "$ol_enable_aci" != no ; then
24048 cat >> confdefs.h <<\EOF
24049 #define SLAPD_ACI_ENABLED 1
24054 if test "$ol_link_modules" != no ; then
24055 cat >> confdefs.h <<\EOF
24056 #define SLAPD_MODULES 1
24060 SLAPD_MODULES_LDFLAGS="-dlopen self"
24063 cat >> confdefs.h <<\EOF
24064 #define SLAPD_MOD_STATIC 1
24067 cat >> confdefs.h <<\EOF
24068 #define SLAPD_MOD_DYNAMIC 2
24072 if test "$ol_enable_bdb" != no ; then
24074 BUILD_BDB=$ol_enable_bdb
24075 if test "$ol_enable_bdb" = mod ; then
24076 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24077 MFLAG=SLAPD_MOD_DYNAMIC
24079 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24080 MFLAG=SLAPD_MOD_STATIC
24082 cat >> confdefs.h <<EOF
24083 #define SLAPD_BDB $MFLAG
24088 if test "$ol_enable_dnssrv" != no ; then
24090 BUILD_DNSSRV=$ol_enable_dnssrv
24091 if test "$ol_enable_dnssrv" = mod ; then
24092 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24093 MFLAG=SLAPD_MOD_DYNAMIC
24095 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24096 MFLAG=SLAPD_MOD_STATIC
24098 cat >> confdefs.h <<EOF
24099 #define SLAPD_DNSSRV $MFLAG
24104 if test "$ol_enable_hdb" != no ; then
24106 BUILD_HDB=$ol_enable_hdb
24107 if test "$ol_enable_hdb" = mod ; then
24108 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24109 MFLAG=SLAPD_MOD_DYNAMIC
24111 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24112 MFLAG=SLAPD_MOD_STATIC
24114 cat >> confdefs.h <<EOF
24115 #define SLAPD_HDB $MFLAG
24120 if test "$ol_enable_ldap" != no ; then
24122 BUILD_LDAP=$ol_enable_ldap
24123 if test "$ol_enable_ldap" = mod ; then
24124 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24125 MFLAG=SLAPD_MOD_DYNAMIC
24127 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24128 MFLAG=SLAPD_MOD_STATIC
24130 cat >> confdefs.h <<EOF
24131 #define SLAPD_LDAP $MFLAG
24136 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24138 BUILD_LDBM=$ol_enable_ldbm
24139 if test "$ol_enable_ldbm" = mod ; then
24140 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24141 MFLAG=SLAPD_MOD_DYNAMIC
24143 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24144 MFLAG=SLAPD_MOD_STATIC
24146 cat >> confdefs.h <<EOF
24147 #define SLAPD_LDBM $MFLAG
24152 if test "$ol_enable_meta" != no ; then
24154 BUILD_META=$ol_enable_meta
24156 if test "$ol_enable_meta" = mod ; then
24157 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24158 MFLAG=SLAPD_MOD_DYNAMIC
24160 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24161 MFLAG=SLAPD_MOD_STATIC
24163 cat >> confdefs.h <<EOF
24164 #define SLAPD_META $MFLAG
24169 if test "$ol_enable_monitor" != no ; then
24171 BUILD_MONITOR=$ol_enable_monitor
24172 if test "$ol_enable_monitor" = mod ; then
24173 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24174 MFLAG=SLAPD_MOD_DYNAMIC
24176 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24177 MFLAG=SLAPD_MOD_STATIC
24179 cat >> confdefs.h <<EOF
24180 #define SLAPD_MONITOR $MFLAG
24185 if test "$ol_enable_null" != no ; then
24187 BUILD_NULL=$ol_enable_null
24188 if test "$ol_enable_null" = mod ; then
24189 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24190 MFLAG=SLAPD_MOD_DYNAMIC
24192 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24193 MFLAG=SLAPD_MOD_STATIC
24195 cat >> confdefs.h <<EOF
24196 #define SLAPD_NULL $MFLAG
24201 if test "$ol_enable_passwd" != no ; then
24203 BUILD_PASSWD=$ol_enable_passwd
24204 if test "$ol_enable_passwd" = mod ; then
24205 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24206 MFLAG=SLAPD_MOD_DYNAMIC
24208 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24209 MFLAG=SLAPD_MOD_STATIC
24211 cat >> confdefs.h <<EOF
24212 #define SLAPD_PASSWD $MFLAG
24217 if test "$ol_link_perl" != no ; then
24219 BUILD_PERL=$ol_enable_perl
24220 if test "$ol_enable_perl" = mod ; then
24221 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24222 MFLAG=SLAPD_MOD_DYNAMIC
24224 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24225 MFLAG=SLAPD_MOD_STATIC
24227 cat >> confdefs.h <<EOF
24228 #define SLAPD_PERL $MFLAG
24233 if test "$ol_enable_relay" != no ; then
24235 BUILD_RELAY=$ol_enable_relay
24236 if test "$ol_enable_relay" = mod ; then
24237 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24238 MFLAG=SLAPD_MOD_DYNAMIC
24240 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24241 MFLAG=SLAPD_MOD_STATIC
24243 cat >> confdefs.h <<EOF
24244 #define SLAPD_RELAY $MFLAG
24249 if test "$ol_enable_shell" != no ; then
24250 if test "$ol_link_thread" != no ; then
24251 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
24254 BUILD_SHELL=$ol_enable_shell
24255 if test "$ol_enable_shell" = mod ; then
24256 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24257 MFLAG=SLAPD_MOD_DYNAMIC
24259 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24260 MFLAG=SLAPD_MOD_STATIC
24262 cat >> confdefs.h <<EOF
24263 #define SLAPD_SHELL $MFLAG
24268 if test "$ol_link_sql" != no ; then
24270 BUILD_SQL=$ol_enable_sql
24271 if test "$ol_enable_sql" = mod; then
24272 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24273 MFLAG=SLAPD_MOD_DYNAMIC
24275 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24276 MFLAG=SLAPD_MOD_STATIC
24278 cat >> confdefs.h <<EOF
24279 #define SLAPD_SQL $MFLAG
24284 if test "$ol_enable_chain" != no ; then
24285 BUILD_CHAIN=$ol_enable_chain
24286 if test "$ol_enable_chain" = mod ; then
24287 MFLAG=SLAPD_MOD_DYNAMIC
24288 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
24290 MFLAG=SLAPD_MOD_STATIC
24292 cat >> confdefs.h <<EOF
24293 #define SLAPD_OVER_CHAIN $MFLAG
24298 if test "$ol_enable_denyop" != no ; then
24299 BUILD_DENYOP=$ol_enable_denyop
24300 if test "$ol_enable_denyop" = mod ; then
24301 MFLAG=SLAPD_MOD_DYNAMIC
24302 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
24304 MFLAG=SLAPD_MOD_STATIC
24306 cat >> confdefs.h <<EOF
24307 #define SLAPD_OVER_DENYOP $MFLAG
24312 if test "$ol_enable_dyngroup" != no ; then
24313 BUILD_DYNGROUP=$ol_enable_dyngroup
24314 if test "$ol_enable_dyngroup" = mod ; then
24315 MFLAG=SLAPD_MOD_DYNAMIC
24316 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24318 MFLAG=SLAPD_MOD_STATIC
24320 cat >> confdefs.h <<EOF
24321 #define SLAPD_OVER_DYNGROUP $MFLAG
24326 if test "$ol_enable_lastmod" != no ; then
24327 BUILD_LASTMOD=$ol_enable_lastmod
24328 if test "$ol_enable_lastmod" = mod ; then
24329 MFLAG=SLAPD_MOD_DYNAMIC
24330 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
24332 MFLAG=SLAPD_MOD_STATIC
24334 cat >> confdefs.h <<EOF
24335 #define SLAPD_OVER_LASTMOD $MFLAG
24340 if test "$ol_enable_ppolicy" != no ; then
24341 BUILD_PPOLICY=$ol_enable_ppolicy
24342 if test "$ol_enable_ppolicy" = mod ; then
24343 MFLAG=SLAPD_MOD_DYNAMIC
24344 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24346 MFLAG=SLAPD_MOD_STATIC
24348 cat >> confdefs.h <<EOF
24349 #define SLAPD_OVER_PPOLICY $MFLAG
24354 if test "$ol_enable_proxycache" != no ; then
24355 BUILD_PROXYCACHE=$ol_enable_proxycache
24356 if test "$ol_enable_proxycache" = mod ; then
24357 MFLAG=SLAPD_MOD_DYNAMIC
24358 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24360 MFLAG=SLAPD_MOD_STATIC
24362 cat >> confdefs.h <<EOF
24363 #define SLAPD_OVER_PROXYCACHE $MFLAG
24368 if test "$ol_enable_refint" != no ; then
24369 BUILD_REFINT=$ol_enable_refint
24370 if test "$ol_enable_refint" = mod ; then
24371 MFLAG=SLAPD_MOD_DYNAMIC
24372 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24374 MFLAG=SLAPD_MOD_STATIC
24376 cat >> confdefs.h <<EOF
24377 #define SLAPD_OVER_REFINT $MFLAG
24382 if test "$ol_enable_rwm" != no ; then
24384 BUILD_RWM=$ol_enable_rwm
24385 if test "$ol_enable_rwm" = mod ; then
24386 MFLAG=SLAPD_MOD_DYNAMIC
24387 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24389 MFLAG=SLAPD_MOD_STATIC
24391 cat >> confdefs.h <<EOF
24392 #define SLAPD_OVER_RWM $MFLAG
24397 if test "$ol_enable_unique" != no ; then
24398 BUILD_UNIQUE=$ol_enable_unique
24399 if test "$ol_enable_unique" = mod ; then
24400 MFLAG=SLAPD_MOD_DYNAMIC
24401 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24403 MFLAG=SLAPD_MOD_STATIC
24405 cat >> confdefs.h <<EOF
24406 #define SLAPD_OVER_UNIQUE $MFLAG
24411 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24412 $BUILD_SLAPD = yes ; then
24416 if test "$ol_enable_rewrite" != no ; then
24417 cat >> confdefs.h <<\EOF
24418 #define ENABLE_REWRITE 1
24424 if test "$ol_enable_slapi" != no ; then
24425 cat >> confdefs.h <<\EOF
24426 #define ENABLE_SLAPI 1
24430 SLAPD_SLAPI_DEPEND=libslapi.a
24435 if test "$ac_cv_mingw32" = yes ; then
24437 SLAPD_MODULES_LDFLAGS=
24442 if test -z "$SLAPD_STATIC_BACKENDS"; then
24443 SLAPD_NO_STATIC='#'
24518 # Check whether --with-xxinstall or --without-xxinstall was given.
24519 if test "${with_xxinstall+set}" = set; then
24520 withval="$with_xxinstall"
24528 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24531 # Let make expand exec_prefix.
24532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24534 # Any assignment to VPATH causes Sun make to only execute
24535 # the first set of double-colon rules, so remove it if not needed.
24536 # If there is a colon in the path, we need to keep it.
24537 if test "x$srcdir" = x.; then
24538 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24541 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24543 DEFS=-DHAVE_CONFIG_H
24545 # Without the "./", some shells look in PATH for config.status.
24546 : ${CONFIG_STATUS=./config.status}
24548 echo creating $CONFIG_STATUS
24549 rm -f $CONFIG_STATUS
24550 cat > $CONFIG_STATUS <<EOF
24552 # Generated automatically by configure.
24553 # Run this file to recreate the current configuration.
24554 # This directory was configured as follows,
24555 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24557 # $0 $ac_configure_args
24559 # Compiler output produced by configure, useful for debugging
24560 # configure, is in ./config.log if it exists.
24562 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24565 case "\$ac_option" in
24566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24567 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24568 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24569 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24570 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24572 -help | --help | --hel | --he | --h)
24573 echo "\$ac_cs_usage"; exit 0 ;;
24574 *) echo "\$ac_cs_usage"; exit 1 ;;
24578 ac_given_srcdir=$srcdir
24579 ac_given_INSTALL="$INSTALL"
24581 trap 'rm -fr `echo "\
24582 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24583 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24584 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24585 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24586 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24587 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24588 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24589 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24590 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24591 include/Makefile:build/top.mk:include/Makefile.in \
24592 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24593 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24594 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24595 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24596 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24597 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24598 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24599 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24600 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24601 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24602 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24603 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24604 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24605 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24606 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24607 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24608 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24609 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24610 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24611 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24612 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24613 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24614 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24615 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24616 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24617 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24618 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24620 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24621 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24623 cat >> $CONFIG_STATUS <<EOF
24625 # Protect against being on the right side of a sed subst in config.status.
24626 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24627 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24631 s%@CFLAGS@%$CFLAGS%g
24632 s%@CPPFLAGS@%$CPPFLAGS%g
24633 s%@CXXFLAGS@%$CXXFLAGS%g
24634 s%@FFLAGS@%$FFLAGS%g
24636 s%@LDFLAGS@%$LDFLAGS%g
24638 s%@exec_prefix@%$exec_prefix%g
24639 s%@prefix@%$prefix%g
24640 s%@program_transform_name@%$program_transform_name%g
24641 s%@bindir@%$bindir%g
24642 s%@sbindir@%$sbindir%g
24643 s%@libexecdir@%$libexecdir%g
24644 s%@datadir@%$datadir%g
24645 s%@sysconfdir@%$sysconfdir%g
24646 s%@sharedstatedir@%$sharedstatedir%g
24647 s%@localstatedir@%$localstatedir%g
24648 s%@libdir@%$libdir%g
24649 s%@includedir@%$includedir%g
24650 s%@oldincludedir@%$oldincludedir%g
24651 s%@infodir@%$infodir%g
24652 s%@mandir@%$mandir%g
24654 s%@host_alias@%$host_alias%g
24655 s%@host_cpu@%$host_cpu%g
24656 s%@host_vendor@%$host_vendor%g
24657 s%@host_os@%$host_os%g
24658 s%@target@%$target%g
24659 s%@target_alias@%$target_alias%g
24660 s%@target_cpu@%$target_cpu%g
24661 s%@target_vendor@%$target_vendor%g
24662 s%@target_os@%$target_os%g
24664 s%@build_alias@%$build_alias%g
24665 s%@build_cpu@%$build_cpu%g
24666 s%@build_vendor@%$build_vendor%g
24667 s%@build_os@%$build_os%g
24668 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24669 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24670 s%@INSTALL_DATA@%$INSTALL_DATA%g
24671 s%@PACKAGE@%$PACKAGE%g
24672 s%@VERSION@%$VERSION%g
24673 s%@ACLOCAL@%$ACLOCAL%g
24674 s%@AUTOCONF@%$AUTOCONF%g
24675 s%@AUTOMAKE@%$AUTOMAKE%g
24676 s%@AUTOHEADER@%$AUTOHEADER%g
24677 s%@MAKEINFO@%$MAKEINFO%g
24678 s%@install_sh@%$install_sh%g
24681 s%@AMTARFLAGS@%$AMTARFLAGS%g
24682 s%@SET_MAKE@%$SET_MAKE%g
24683 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24684 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24685 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24686 s%@top_builddir@%$top_builddir%g
24687 s%@ldap_subdir@%$ldap_subdir%g
24691 s%@OBJEXT@%$OBJEXT%g
24692 s%@EXEEXT@%$EXEEXT%g
24694 s%@RANLIB@%$RANLIB%g
24696 s%@DLLTOOL@%$DLLTOOL%g
24698 s%@OBJDUMP@%$OBJDUMP%g
24700 s%@LIBTOOL@%$LIBTOOL%g
24701 s%@PERLBIN@%$PERLBIN%g
24702 s%@OL_MKDEP@%$OL_MKDEP%g
24703 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24704 s%@LTSTATIC@%$LTSTATIC%g
24705 s%@LIBOBJS@%$LIBOBJS%g
24706 s%@LIBSRCS@%$LIBSRCS%g
24708 s%@WITH_SASL@%$WITH_SASL%g
24709 s%@WITH_TLS@%$WITH_TLS%g
24710 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24711 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24712 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24713 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24714 s%@BUILD_BDB@%$BUILD_BDB%g
24715 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24716 s%@BUILD_HDB@%$BUILD_HDB%g
24717 s%@BUILD_LDAP@%$BUILD_LDAP%g
24718 s%@BUILD_LDBM@%$BUILD_LDBM%g
24719 s%@BUILD_META@%$BUILD_META%g
24720 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24721 s%@BUILD_NULL@%$BUILD_NULL%g
24722 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24723 s%@BUILD_RELAY@%$BUILD_RELAY%g
24724 s%@BUILD_PERL@%$BUILD_PERL%g
24725 s%@BUILD_SHELL@%$BUILD_SHELL%g
24726 s%@BUILD_SQL@%$BUILD_SQL%g
24727 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
24728 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
24729 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24730 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
24731 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
24732 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24733 s%@BUILD_REFINT@%$BUILD_REFINT%g
24734 s%@BUILD_RWM@%$BUILD_RWM%g
24735 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
24736 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24737 s%@LDAP_LIBS@%$LDAP_LIBS%g
24738 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24739 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24740 s%@LDBM_LIBS@%$LDBM_LIBS%g
24741 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24742 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24743 s%@WRAP_LIBS@%$WRAP_LIBS%g
24744 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24745 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24746 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24747 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24748 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24749 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24750 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24751 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24752 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24753 s%@KRB4_LIBS@%$KRB4_LIBS%g
24754 s%@KRB5_LIBS@%$KRB5_LIBS%g
24755 s%@SASL_LIBS@%$SASL_LIBS%g
24756 s%@TLS_LIBS@%$TLS_LIBS%g
24757 s%@MODULES_LIBS@%$MODULES_LIBS%g
24758 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24759 s%@LIBSLAPI@%$LIBSLAPI%g
24760 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24761 s%@AUTH_LIBS@%$AUTH_LIBS%g
24762 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24763 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
24764 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24765 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24766 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24771 cat >> $CONFIG_STATUS <<\EOF
24773 # Split the substitutions into bite-sized pieces for seds with
24774 # small command number limits, like on Digital OSF/1 and HP-UX.
24775 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24776 ac_file=1 # Number of current file.
24777 ac_beg=1 # First line for current file.
24778 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24781 while $ac_more_lines; do
24782 if test $ac_beg -gt 1; then
24783 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24785 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24787 if test ! -s conftest.s$ac_file; then
24788 ac_more_lines=false
24789 rm -f conftest.s$ac_file
24791 if test -z "$ac_sed_cmds"; then
24792 ac_sed_cmds="sed -f conftest.s$ac_file"
24794 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24796 ac_file=`expr $ac_file + 1`
24798 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24801 if test -z "$ac_sed_cmds"; then
24806 cat >> $CONFIG_STATUS <<EOF
24808 CONFIG_FILES=\${CONFIG_FILES-"\
24809 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24810 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24811 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24812 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24813 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24814 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24815 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24816 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24817 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24818 include/Makefile:build/top.mk:include/Makefile.in \
24819 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24820 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24821 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24822 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24823 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24824 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24825 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24826 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24827 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24828 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24829 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24830 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24831 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24832 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24833 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24834 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24835 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24836 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24837 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24838 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24839 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24840 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24841 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24842 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24843 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24844 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24845 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24847 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24850 cat >> $CONFIG_STATUS <<\EOF
24851 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24854 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24855 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24856 *) ac_file_in="${ac_file}.in" ;;
24859 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24861 # Remove last slash and all that follows it. Not all systems have dirname.
24862 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24864 # The file is in a subdirectory.
24865 test ! -d "$ac_dir" && mkdir "$ac_dir"
24866 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24867 # A "../" for each directory in $ac_dir_suffix.
24868 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24870 ac_dir_suffix= ac_dots=
24873 case "$ac_given_srcdir" in
24875 if test -z "$ac_dots"; then top_srcdir=.
24876 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24877 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24878 *) # Relative path.
24879 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24880 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24883 case "$ac_given_INSTALL" in
24884 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24885 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24888 echo creating "$ac_file"
24890 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24892 *[Mm]akefile*) ac_comsub="1i\\
24893 # $configure_input" ;;
24897 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24899 s%@configure_input@%$configure_input%g
24900 s%@srcdir@%$srcdir%g
24901 s%@top_srcdir@%$top_srcdir%g
24902 s%@INSTALL@%$INSTALL%g
24903 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24910 # ac_d sets the value in "#define NAME VALUE" lines.
24911 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24912 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24915 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24916 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24917 ac_uB='\([ ]\)%\1#\2define\3'
24920 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24921 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24922 ac_eB='$%\1#\2define\3'
24926 if test "${CONFIG_HEADERS+set}" != set; then
24928 cat >> $CONFIG_STATUS <<EOF
24929 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24931 cat >> $CONFIG_STATUS <<\EOF
24933 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24936 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24937 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24938 *) ac_file_in="${ac_file}.in" ;;
24941 echo creating $ac_file
24943 rm -f conftest.frag conftest.in conftest.out
24944 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24945 cat $ac_file_inputs > conftest.in
24949 # Transform confdefs.h into a sed script conftest.vals that substitutes
24950 # the proper values into config.h.in to produce config.h. And first:
24951 # Protect against being on the right side of a sed subst in config.status.
24952 # Protect against being in an unquoted here document in config.status.
24953 rm -f conftest.vals
24954 cat > conftest.hdr <<\EOF
24957 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24961 sed -n -f conftest.hdr confdefs.h > conftest.vals
24964 # This sed command replaces #undef with comments. This is necessary, for
24965 # example, in the case of _POSIX_SOURCE, which is predefined and required
24966 # on some systems where configure will not decide to define it.
24967 cat >> conftest.vals <<\EOF
24968 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24971 # Break up conftest.vals because some shells have a limit on
24972 # the size of here documents, and old seds have small limits too.
24974 rm -f conftest.tail
24977 ac_lines=`grep -c . conftest.vals`
24978 # grep -c gives empty output for an empty file on some AIX systems.
24979 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24980 # Write a limited-size here document to conftest.frag.
24981 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24982 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24984 sed -f conftest.frag conftest.in > conftest.out
24986 mv conftest.out conftest.in
24987 ' >> $CONFIG_STATUS
24988 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24989 rm -f conftest.vals
24990 mv conftest.tail conftest.vals
24992 rm -f conftest.vals
24994 cat >> $CONFIG_STATUS <<\EOF
24995 rm -f conftest.frag conftest.h
24996 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24997 cat conftest.in >> conftest.h
24999 if cmp -s $ac_file conftest.h 2>/dev/null; then
25000 echo "$ac_file is unchanged"
25003 # Remove last slash and all that follows it. Not all systems have dirname.
25004 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25005 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25006 # The file is in a subdirectory.
25007 test ! -d "$ac_dir" && mkdir "$ac_dir"
25010 mv conftest.h $ac_file
25015 cat >> $CONFIG_STATUS <<EOF
25018 cat >> $CONFIG_STATUS <<\EOF
25022 echo Please run \"make depend\" to build dependencies
25026 chmod +x $CONFIG_STATUS
25027 rm -fr confdefs* $ac_clean_files
25028 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1