5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
137 SLURPD (Replication Daemon) Options:"
139 --enable-slurpd enable building slurpd [auto]"
142 Library Generation & Linking Options"
144 --enable-static[=PKGS] build static libraries [default=yes]"
146 --enable-shared[=PKGS] build shared libraries [default=yes]"
148 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
150 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
152 # Find the correct PATH separator. Usually this is `:', but
153 # DJGPP uses `;' like DOS.
154 if test "X${PATH_SEPARATOR+set}" != Xset; then
155 UNAME=${UNAME-`uname 2>/dev/null`}
157 *-DOS) lt_cv_sys_path_separator=';' ;;
158 *) lt_cv_sys_path_separator=':' ;;
160 PATH_SEPARATOR=$lt_cv_sys_path_separator
164 # Check that we are running under the correct shell.
165 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Remove one level of quotation (which was required for Make).
170 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
175 if test "X$1" = X--no-reexec; then
176 # Discard the --no-reexec flag, and continue.
178 elif test "X$1" = X--fallback-echo; then
179 # Avoid inline document here, it may be left over
181 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
182 # Yippee, $echo works!
185 # Restart under the correct shell.
186 exec $SHELL "$0" --no-reexec ${1+"$@"}
189 if test "X$1" = X--fallback-echo; then
190 # used as fallback echo
198 # The HP-UX ksh and POSIX shell print the target directory to stdout
200 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
202 if test -z "$ECHO"; then
203 if test "X${echo_test_string+set}" != Xset; then
204 # find a string as large as possible, as long as the shell can cope with it
205 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
206 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
207 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
208 echo_test_string="`eval $cmd`" &&
209 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
216 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
217 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
218 test "X$echo_testing_string" = "X$echo_test_string"; then
221 # The Solaris, AIX, and Digital Unix default echo programs unquote
222 # backslashes. This makes it impossible to quote backslashes using
223 # echo "$something" | sed 's/\\/\\\\/g'
225 # So, first we look for a working echo in the user's PATH.
227 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
228 for dir in $PATH /usr/ucb; do
229 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
230 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
231 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
232 test "X$echo_testing_string" = "X$echo_test_string"; then
239 if test "X$echo" = Xecho; then
240 # We didn't find a better echo, so look for alternatives.
241 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
242 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
243 test "X$echo_testing_string" = "X$echo_test_string"; then
244 # This shell has a builtin print -r that does the trick.
246 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
247 test "X$CONFIG_SHELL" != X/bin/ksh; then
248 # If we have ksh, try running configure again with it.
249 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
250 export ORIGINAL_CONFIG_SHELL
251 CONFIG_SHELL=/bin/ksh
253 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
257 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
258 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
259 test "X$echo_testing_string" = "X$echo_test_string"; then
262 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
263 test "X$echo_testing_string" = 'X\t' &&
264 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
266 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
268 SHELL="$CONFIG_SHELL"
270 echo="$CONFIG_SHELL $0 --fallback-echo"
271 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
272 test "X$echo_testing_string" = 'X\t' &&
273 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
274 test "X$echo_testing_string" = "X$echo_test_string"; then
275 echo="$CONFIG_SHELL $0 --fallback-echo"
277 # maybe with a smaller string...
280 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
281 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
288 if test "$prev" != 'sed 50q "$0"'; then
289 echo_test_string=`eval $prev`
290 export echo_test_string
291 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
293 # Oops. We lost completely, so just stick with echo.
302 # Copy echo and quote the copy suitably for passing to libtool from
303 # the Makefile, instead of quoting the original, which is used later.
305 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
306 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
311 --disable-libtool-lock avoid locking (might break parallel builds)"
313 --with-pic try to use only PIC/non-PIC objects [default=use both]"
316 See INSTALL file for further details."
318 # Initialize some variables set by options.
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
322 cache_file=./config.cache
331 program_transform_name=s,x,x,
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 # Initialize some other variables.
355 SHELL=${CONFIG_SHELL-/bin/sh}
356 # Maximum number of lines to put in a shell here document.
363 # If the previous option needs an argument, assign it.
364 if test -n "$ac_prev"; then
365 eval "$ac_prev=\$ac_option"
371 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
375 # Accept the important Cygnus configure options, so we can diagnose typos.
379 -bindir | --bindir | --bindi | --bind | --bin | --bi)
381 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
382 bindir="$ac_optarg" ;;
384 -build | --build | --buil | --bui | --bu)
386 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
387 build="$ac_optarg" ;;
389 -cache-file | --cache-file | --cache-fil | --cache-fi \
390 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
391 ac_prev=cache_file ;;
392 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
393 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
394 cache_file="$ac_optarg" ;;
396 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
398 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
400 datadir="$ac_optarg" ;;
402 -disable-* | --disable-*)
403 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
408 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
409 eval "enable_${ac_feature}=no" ;;
411 -enable-* | --enable-*)
412 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
417 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
422 eval "enable_${ac_feature}='$ac_optarg'" ;;
424 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426 | --exec | --exe | --ex)
427 ac_prev=exec_prefix ;;
428 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430 | --exec=* | --exe=* | --ex=*)
431 exec_prefix="$ac_optarg" ;;
433 -gas | --gas | --ga | --g)
434 # Obsolete; use --with-gas.
437 -help | --help | --hel | --he)
438 # Omit some internal or obsolete options to make the list less imposing.
439 # This message is too long to be a string in the A/UX 3.1 sh.
441 Usage: configure [options] [host]
442 Options: [defaults in brackets after descriptions]
444 --cache-file=FILE cache test results in FILE
445 --help print this message
446 --no-create do not create output files
447 --quiet, --silent do not print \`checking...' messages
448 --version print the version of autoconf that created configure
449 Directory and file names:
450 --prefix=PREFIX install architecture-independent files in PREFIX
452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
454 --bindir=DIR user executables in DIR [EPREFIX/bin]
455 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
456 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
457 --datadir=DIR read-only architecture-independent data in DIR
459 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
460 --sharedstatedir=DIR modifiable architecture-independent data in DIR
462 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
463 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
464 --includedir=DIR C header files in DIR [PREFIX/include]
465 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
466 --infodir=DIR info documentation in DIR [PREFIX/info]
467 --mandir=DIR man documentation in DIR [PREFIX/man]
468 --srcdir=DIR find the sources in DIR [configure dir or ..]
469 --program-prefix=PREFIX prepend PREFIX to installed program names
470 --program-suffix=SUFFIX append SUFFIX to installed program names
471 --program-transform-name=PROGRAM
472 run sed PROGRAM on installed program names
476 --build=BUILD configure for building on BUILD [BUILD=HOST]
477 --host=HOST configure for HOST [guessed]
478 --target=TARGET configure for TARGET [TARGET=HOST]
479 Features and packages:
480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
484 --x-includes=DIR X include files are in DIR
485 --x-libraries=DIR X library files are in DIR
487 if test -n "$ac_help"; then
488 echo "--enable and --with options recognized:$ac_help"
492 -host | --host | --hos | --ho)
494 -host=* | --host=* | --hos=* | --ho=*)
497 -includedir | --includedir | --includedi | --included | --include \
498 | --includ | --inclu | --incl | --inc)
499 ac_prev=includedir ;;
500 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
501 | --includ=* | --inclu=* | --incl=* | --inc=*)
502 includedir="$ac_optarg" ;;
504 -infodir | --infodir | --infodi | --infod | --info | --inf)
506 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
507 infodir="$ac_optarg" ;;
509 -libdir | --libdir | --libdi | --libd)
511 -libdir=* | --libdir=* | --libdi=* | --libd=*)
512 libdir="$ac_optarg" ;;
514 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
515 | --libexe | --libex | --libe)
516 ac_prev=libexecdir ;;
517 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
518 | --libexe=* | --libex=* | --libe=*)
519 libexecdir="$ac_optarg" ;;
521 -localstatedir | --localstatedir | --localstatedi | --localstated \
522 | --localstate | --localstat | --localsta | --localst \
523 | --locals | --local | --loca | --loc | --lo)
524 ac_prev=localstatedir ;;
525 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
526 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
527 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
528 localstatedir="$ac_optarg" ;;
530 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
532 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
533 mandir="$ac_optarg" ;;
536 # Obsolete; use --without-fp.
539 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
544 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
547 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
548 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
549 | --oldin | --oldi | --old | --ol | --o)
550 ac_prev=oldincludedir ;;
551 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
552 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
553 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
554 oldincludedir="$ac_optarg" ;;
556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
559 prefix="$ac_optarg" ;;
561 -program-prefix | --program-prefix | --program-prefi | --program-pref \
562 | --program-pre | --program-pr | --program-p)
563 ac_prev=program_prefix ;;
564 -program-prefix=* | --program-prefix=* | --program-prefi=* \
565 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
566 program_prefix="$ac_optarg" ;;
568 -program-suffix | --program-suffix | --program-suffi | --program-suff \
569 | --program-suf | --program-su | --program-s)
570 ac_prev=program_suffix ;;
571 -program-suffix=* | --program-suffix=* | --program-suffi=* \
572 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
573 program_suffix="$ac_optarg" ;;
575 -program-transform-name | --program-transform-name \
576 | --program-transform-nam | --program-transform-na \
577 | --program-transform-n | --program-transform- \
578 | --program-transform | --program-transfor \
579 | --program-transfo | --program-transf \
580 | --program-trans | --program-tran \
581 | --progr-tra | --program-tr | --program-t)
582 ac_prev=program_transform_name ;;
583 -program-transform-name=* | --program-transform-name=* \
584 | --program-transform-nam=* | --program-transform-na=* \
585 | --program-transform-n=* | --program-transform-=* \
586 | --program-transform=* | --program-transfor=* \
587 | --program-transfo=* | --program-transf=* \
588 | --program-trans=* | --program-tran=* \
589 | --progr-tra=* | --program-tr=* | --program-t=*)
590 program_transform_name="$ac_optarg" ;;
592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
593 | -silent | --silent | --silen | --sile | --sil)
596 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
598 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
600 sbindir="$ac_optarg" ;;
602 -sharedstatedir | --sharedstatedir | --sharedstatedi \
603 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
604 | --sharedst | --shareds | --shared | --share | --shar \
606 ac_prev=sharedstatedir ;;
607 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
608 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
609 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
611 sharedstatedir="$ac_optarg" ;;
613 -site | --site | --sit)
615 -site=* | --site=* | --sit=*)
618 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
620 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
621 srcdir="$ac_optarg" ;;
623 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
624 | --syscon | --sysco | --sysc | --sys | --sy)
625 ac_prev=sysconfdir ;;
626 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
627 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
628 sysconfdir="$ac_optarg" ;;
630 -target | --target | --targe | --targ | --tar | --ta | --t)
632 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
633 target="$ac_optarg" ;;
635 -v | -verbose | --verbose | --verbos | --verbo | --verb)
638 -version | --version | --versio | --versi | --vers)
639 echo "configure generated by autoconf version 2.13.1"
643 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
644 # Reject names that are not valid shell variable names.
645 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
646 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
648 ac_package=`echo $ac_package| sed 's/-/_/g'`
653 eval "with_${ac_package}='$ac_optarg'" ;;
655 -without-* | --without-*)
656 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
657 # Reject names that are not valid shell variable names.
658 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
659 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
661 ac_package=`echo $ac_package| sed 's/-/_/g'`
662 eval "with_${ac_package}=no" ;;
665 # Obsolete; use --with-x.
668 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
669 | --x-incl | --x-inc | --x-in | --x-i)
670 ac_prev=x_includes ;;
671 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
672 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
673 x_includes="$ac_optarg" ;;
675 -x-libraries | --x-libraries | --x-librarie | --x-librari \
676 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
677 ac_prev=x_libraries ;;
678 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
679 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
680 x_libraries="$ac_optarg" ;;
682 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
686 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
687 echo "configure: warning: $ac_option: invalid host type" 1>&2
689 if test "x$nonopt" != xNONE; then
690 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
698 if test -n "$ac_prev"; then
699 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
702 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
704 # File descriptor usage:
707 # 2 errors and warnings
708 # 3 some systems may open it to /dev/tty
709 # 4 used on the Kubota Titan
710 # 6 checking for... messages and results
711 # 5 compiler messages saved in config.log
712 if test "$silent" = yes; then
720 This file contains any messages produced by compilers while
721 running configure, to aid debugging if configure makes a mistake.
724 # Strip out --no-create and --no-recursion so they do not pile up.
725 # Also quote any args containing shell metacharacters.
730 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
731 | --no-cr | --no-c) ;;
732 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
733 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
734 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
735 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
736 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
741 # Only set these to C if already set. These must not be set unconditionally
742 # because not all systems understand e.g. LANG=C (notably SCO).
743 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
744 # Non-C LC_CTYPE values break the ctype check.
745 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
746 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
747 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
748 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
751 rm -rf conftest* confdefs.h
752 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
755 # A filename unique to this package, relative to the directory that
756 # configure is in, which we can look for to find out if srcdir is correct.
757 ac_unique_file=build/version.sh
759 # Find the source files, if location was not specified.
760 if test -z "$srcdir"; then
761 ac_srcdir_defaulted=yes
762 # Try the directory containing this script, then its parent.
764 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
765 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
767 if test ! -r $srcdir/$ac_unique_file; then
771 ac_srcdir_defaulted=no
773 if test ! -r $srcdir/$ac_unique_file; then
774 if test "$ac_srcdir_defaulted" = yes; then
775 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
777 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
780 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
782 # Prefer explicitly selected file to automatically selected ones.
783 if test -z "$CONFIG_SITE"; then
784 if test "x$prefix" != xNONE; then
785 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
787 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
790 for ac_site_file in $CONFIG_SITE; do
791 if test -r "$ac_site_file"; then
792 echo "loading site script $ac_site_file"
799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
800 ac_cpp='$CPP $CPPFLAGS'
801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
803 cross_compiling=$ac_cv_prog_cc_cross
807 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
808 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
809 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
816 ac_n= ac_c='\c' ac_t=
820 # set unset (borrowed from autoconf 2.49c)
821 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
827 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
830 for ac_dir in build $srcdir/build; do
831 if test -f $ac_dir/install-sh; then
833 ac_install_sh="$ac_aux_dir/install-sh -c"
835 elif test -f $ac_dir/install.sh; then
837 ac_install_sh="$ac_aux_dir/install.sh -c"
839 elif test -f $ac_dir/shtool; then
841 ac_install_sh="$ac_aux_dir/shtool install -c"
845 if test -z "$ac_aux_dir"; then
846 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
848 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
849 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
850 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
852 eval `$ac_aux_dir/version.sh`
853 if test -z "$OL_STRING"; then
854 { echo "configure: error: could not determine version" 1>&2; exit 1; }
857 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
858 ac_cv_shtool="$ac_aux_dir/shtool"
860 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
863 SHTOOL="$ac_cv_shtool"
865 TB=`$SHTOOL echo -e %B`
866 TN=`$SHTOOL echo -e %b`
868 echo "Configuring $TB$OL_STRING$TN ..."
871 echo $ac_n "checking host system type""... $ac_c" 1>&6
872 echo "configure:873: checking host system type" >&5
873 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
875 # Make sure we can run config.sub.
876 if $ac_config_sub sun4 >/dev/null 2>&1; then :
877 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
880 ac_cv_host_alias=$host
881 case "$ac_cv_host_alias" in
885 if ac_cv_host_alias=`$ac_config_guess`; then :
886 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
888 *) ac_cv_host_alias=$nonopt ;;
892 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
893 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
894 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
895 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo $ac_n "(cached) $ac_c" 1>&6
900 echo "$ac_t""$ac_cv_host" 1>&6
903 host_alias=$ac_cv_host_alias
904 host_cpu=$ac_cv_host_cpu
905 host_vendor=$ac_cv_host_vendor
906 host_os=$ac_cv_host_os
912 echo $ac_n "checking target system type""... $ac_c" 1>&6
913 echo "configure:914: checking target system type" >&5
914 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
916 # Make sure we can run config.sub.
917 if $ac_config_sub sun4 >/dev/null 2>&1; then :
918 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
921 ac_cv_target_alias=$target
922 case "$ac_cv_target_alias" in
926 ac_cv_target_alias=$host_alias ;;
928 *) ac_cv_target_alias=$nonopt ;;
932 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
933 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
934 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
935 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
937 echo $ac_n "(cached) $ac_c" 1>&6
940 echo "$ac_t""$ac_cv_target" 1>&6
943 target_alias=$ac_cv_target_alias
944 target_cpu=$ac_cv_target_cpu
945 target_vendor=$ac_cv_target_vendor
946 target_os=$ac_cv_target_os
952 echo $ac_n "checking build system type""... $ac_c" 1>&6
953 echo "configure:954: checking build system type" >&5
954 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
956 # Make sure we can run config.sub.
957 if $ac_config_sub sun4 >/dev/null 2>&1; then :
958 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
961 ac_cv_build_alias=$build
962 case "$ac_cv_build_alias" in
966 ac_cv_build_alias=$host_alias ;;
968 *) ac_cv_build_alias=$nonopt ;;
972 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
973 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
977 echo $ac_n "(cached) $ac_c" 1>&6
980 echo "$ac_t""$ac_cv_build" 1>&6
983 build_alias=$ac_cv_build_alias
984 build_cpu=$ac_cv_build_cpu
985 build_vendor=$ac_cv_build_vendor
986 build_os=$ac_cv_build_os
992 # Do some error checking and defaulting for the host and target type.
994 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
997 # 1. You are not allowed to specify --host, --target, and nonopt at the
999 # 2. Host defaults to nonopt.
1000 # 3. If nonopt is not specified, then host defaults to the current host,
1001 # as determined by config.guess.
1002 # 4. Target and build default to nonopt.
1003 # 5. If nonopt is not specified, then target and build default to host.
1005 # The aliases save the names the user supplied, while $host etc.
1006 # will get canonicalized.
1007 case $host---$target---$nonopt in
1008 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012 test "$host_alias" != "$target_alias" &&
1013 test "$program_prefix$program_suffix$program_transform_name" = \
1015 program_prefix=${target_alias}-
1018 # Find a good install program. We prefer a C program (faster),
1019 # so one script is as good as another. But avoid the broken or
1020 # incompatible versions:
1021 # SysV /etc/install, /usr/sbin/install
1022 # SunOS /usr/etc/install
1023 # IRIX /sbin/install
1025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1028 # ./install, which can be erroneously created by make from ./install.sh.
1029 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1030 echo "configure:1031: checking for a BSD compatible install" >&5
1031 if test -z "$INSTALL"; then
1032 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1036 for ac_dir in $PATH; do
1037 # Account for people who put trailing slashes in PATH elements.
1039 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1041 # OSF1 and SCO ODT 3.0 have their own names for install.
1042 # Don't use installbsd from OSF since it installs stuff as root
1044 for ac_prog in ginstall scoinst install; do
1045 if test -f $ac_dir/$ac_prog; then
1046 if test $ac_prog = install &&
1047 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1048 # AIX install. It has an incompatible calling convention.
1050 elif test $ac_prog = install &&
1051 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1052 # program-specific install script used by HP pwplus--don't use.
1055 ac_cv_path_install="$ac_dir/$ac_prog -c"
1066 if test "${ac_cv_path_install+set}" = set; then
1067 INSTALL="$ac_cv_path_install"
1069 # As a last resort, use the slow shell script. We don't cache a
1070 # path for INSTALL within a source directory, because that will
1071 # break other packages using the cache if that directory is
1072 # removed, or if the path is relative.
1073 INSTALL="$ac_install_sh"
1076 echo "$ac_t""$INSTALL" 1>&6
1078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1079 # It thinks the first close brace ends the variable substitution.
1080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1086 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether build environment is sane" >&5
1090 echo timestamp > conftestfile
1091 # Do `set' in a subshell so we don't clobber the current shell's
1092 # arguments. Must try -L first in case configure is actually a
1093 # symlink; some systems play weird games with the mod time of symlinks
1094 # (eg FreeBSD returns the mod time of the symlink's containing
1097 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1098 if test "$*" = "X"; then
1100 set X `ls -t $srcdir/configure conftestfile`
1102 if test "$*" != "X $srcdir/configure conftestfile" \
1103 && test "$*" != "X conftestfile $srcdir/configure"; then
1105 # If neither matched, then we have a broken ls. This can happen
1106 # if, for instance, CONFIG_SHELL is bash and it inherits a
1107 # broken ls alias from the environment. This has actually
1108 # happened. Such a system could not be considered "sane".
1109 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1110 alias in your environment" 1>&2; exit 1; }
1113 test "$2" = conftestfile
1119 { echo "configure: error: newly created file is older than distributed files!
1120 Check your system clock" 1>&2; exit 1; }
1123 echo "$ac_t""yes" 1>&6
1124 if test "$program_transform_name" = s,x,x,; then
1125 program_transform_name=
1127 # Double any \ or $. echo might interpret backslashes.
1128 cat <<\EOF_SED > conftestsed
1129 s,\\,\\\\,g; s,\$,$$,g
1131 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1134 test "$program_prefix" != NONE &&
1135 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1136 # Use a double $ so make ignores it.
1137 test "$program_suffix" != NONE &&
1138 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1140 # sed with no file args requires a program.
1141 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1143 for ac_prog in mawk gawk nawk awk
1145 # Extract the first word of "$ac_prog", so it can be a program name with args.
1146 set dummy $ac_prog; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$AWK"; then
1153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_AWK="$ac_prog"
1167 AWK="$ac_cv_prog_AWK"
1168 if test -n "$AWK"; then
1169 echo "$ac_t""$AWK" 1>&6
1171 echo "$ac_t""no" 1>&6
1174 test -n "$AWK" && break
1177 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1178 echo "configure:1179: checking whether ${MAKE-make} sets \${MAKE}" >&5
1179 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1180 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftestmake <<\EOF
1185 @echo 'ac_maketemp="${MAKE}"'
1187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1188 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1189 if test -n "$ac_maketemp"; then
1190 eval ac_cv_prog_make_${ac_make}_set=yes
1192 eval ac_cv_prog_make_${ac_make}_set=no
1196 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1197 echo "$ac_t""yes" 1>&6
1200 echo "$ac_t""no" 1>&6
1201 SET_MAKE="MAKE=${MAKE-make}"
1210 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1211 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1216 missing_dir=`cd $ac_aux_dir && pwd`
1217 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1218 echo "configure:1219: checking for working aclocal" >&5
1219 # Run test in a subshell; some versions of sh will print an error if
1220 # an executable is not found, even if stderr is redirected.
1221 # Redirect stdin to placate older versions of autoconf. Sigh.
1222 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1224 echo "$ac_t""found" 1>&6
1226 ACLOCAL="$missing_dir/missing aclocal"
1227 echo "$ac_t""missing" 1>&6
1230 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1231 echo "configure:1232: checking for working autoconf" >&5
1232 # Run test in a subshell; some versions of sh will print an error if
1233 # an executable is not found, even if stderr is redirected.
1234 # Redirect stdin to placate older versions of autoconf. Sigh.
1235 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1237 echo "$ac_t""found" 1>&6
1239 AUTOCONF="$missing_dir/missing autoconf"
1240 echo "$ac_t""missing" 1>&6
1243 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1244 echo "configure:1245: checking for working automake" >&5
1245 # Run test in a subshell; some versions of sh will print an error if
1246 # an executable is not found, even if stderr is redirected.
1247 # Redirect stdin to placate older versions of autoconf. Sigh.
1248 if (automake --version) < /dev/null > /dev/null 2>&1; then
1250 echo "$ac_t""found" 1>&6
1252 AUTOMAKE="$missing_dir/missing automake"
1253 echo "$ac_t""missing" 1>&6
1256 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1257 echo "configure:1258: checking for working autoheader" >&5
1258 # Run test in a subshell; some versions of sh will print an error if
1259 # an executable is not found, even if stderr is redirected.
1260 # Redirect stdin to placate older versions of autoconf. Sigh.
1261 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1262 AUTOHEADER=autoheader
1263 echo "$ac_t""found" 1>&6
1265 AUTOHEADER="$missing_dir/missing autoheader"
1266 echo "$ac_t""missing" 1>&6
1269 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1270 echo "configure:1271: checking for working makeinfo" >&5
1271 # Run test in a subshell; some versions of sh will print an error if
1272 # an executable is not found, even if stderr is redirected.
1273 # Redirect stdin to placate older versions of autoconf. Sigh.
1274 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1276 echo "$ac_t""found" 1>&6
1278 MAKEINFO="$missing_dir/missing makeinfo"
1279 echo "$ac_t""missing" 1>&6
1282 install_sh="$missing_dir/install-sh"
1283 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1285 for ac_prog in gnutar gtar tar
1287 # Extract the first word of "$ac_prog", so it can be a program name with args.
1288 set dummy $ac_prog; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if test -n "$AMTAR"; then
1295 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_AMTAR="$ac_prog"
1309 AMTAR="$ac_cv_prog_AMTAR"
1310 if test -n "$AMTAR"; then
1311 echo "$ac_t""$AMTAR" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 test -n "$AMTAR" && break
1321 if test -n "$AMTAR"; then
1322 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1327 cat >> confdefs.h <<EOF
1328 #define OPENLDAP_PACKAGE "$PACKAGE"
1331 cat >> confdefs.h <<EOF
1332 #define OPENLDAP_VERSION "$VERSION"
1336 cat >> confdefs.h <<EOF
1337 #define LDAP_VENDOR_VERSION $OL_API_INC
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1353 OPENLDAP_LIBVERSION=$OL_API_LIB
1355 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1359 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1360 echo "configure:1361: checking configure arguments" >&5
1365 ldap_subdir="/openldap"
1367 # Check whether --with-subdir or --without-subdir was given.
1368 if test "${with_subdir+set}" = set; then
1369 withval="$with_subdir"
1376 ldap_subdir="$withval"
1379 ldap_subdir="/$withval"
1386 # OpenLDAP --enable-debug
1387 # Check whether --enable-debug or --disable-debug was given.
1388 if test "${enable_debug+set}" = set; then
1389 enableval="$enable_debug"
1392 for ol_val in auto yes no ; do
1393 if test "$enableval" = "$ol_val" ; then
1397 if test "$ol_arg" = "invalid" ; then
1398 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1400 ol_enable_debug="$ol_arg"
1403 ol_enable_debug="yes"
1405 # end --enable-debug
1406 # OpenLDAP --enable-syslog
1407 # Check whether --enable-syslog or --disable-syslog was given.
1408 if test "${enable_syslog+set}" = set; then
1409 enableval="$enable_syslog"
1412 for ol_val in auto yes no ; do
1413 if test "$enableval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1420 ol_enable_syslog="$ol_arg"
1423 ol_enable_syslog="auto"
1425 # end --enable-syslog
1426 # OpenLDAP --enable-proctitle
1427 # Check whether --enable-proctitle or --disable-proctitle was given.
1428 if test "${enable_proctitle+set}" = set; then
1429 enableval="$enable_proctitle"
1432 for ol_val in auto yes no ; do
1433 if test "$enableval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1440 ol_enable_proctitle="$ol_arg"
1443 ol_enable_proctitle="yes"
1445 # end --enable-proctitle
1446 # OpenLDAP --enable-cache
1447 # Check whether --enable-cache or --disable-cache was given.
1448 if test "${enable_cache+set}" = set; then
1449 enableval="$enable_cache"
1452 for ol_val in auto yes no ; do
1453 if test "$enableval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1460 ol_enable_cache="$ol_arg"
1463 ol_enable_cache="no"
1465 # end --enable-cache
1466 # OpenLDAP --enable-referrals
1467 # Check whether --enable-referrals or --disable-referrals was given.
1468 if test "${enable_referrals+set}" = set; then
1469 enableval="$enable_referrals"
1472 for ol_val in auto yes no ; do
1473 if test "$enableval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1480 ol_enable_referrals="$ol_arg"
1483 ol_enable_referrals="no"
1485 # end --enable-referrals
1486 ol_enable_kbind=${ol_enable_kbind-no}
1487 # OpenLDAP --enable-ipv6
1488 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1489 if test "${enable_ipv6+set}" = set; then
1490 enableval="$enable_ipv6"
1493 for ol_val in auto yes no ; do
1494 if test "$enableval" = "$ol_val" ; then
1498 if test "$ol_arg" = "invalid" ; then
1499 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1501 ol_enable_ipv6="$ol_arg"
1504 ol_enable_ipv6="auto"
1507 # OpenLDAP --enable-local
1508 # Check whether --enable-local or --disable-local was given.
1509 if test "${enable_local+set}" = set; then
1510 enableval="$enable_local"
1513 for ol_val in auto yes no ; do
1514 if test "$enableval" = "$ol_val" ; then
1518 if test "$ol_arg" = "invalid" ; then
1519 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1521 ol_enable_local="$ol_arg"
1524 ol_enable_local="auto"
1526 # end --enable-local
1527 # OpenLDAP --enable-x_compile
1528 # Check whether --enable-x_compile or --disable-x_compile was given.
1529 if test "${enable_x_compile+set}" = set; then
1530 enableval="$enable_x_compile"
1533 for ol_val in yes no ; do
1534 if test "$enableval" = "$ol_val" ; then
1538 if test "$ol_arg" = "invalid" ; then
1539 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1541 ol_enable_x_compile="$ol_arg"
1544 ol_enable_x_compile="no"
1546 # end --enable-x_compile
1549 # OpenLDAP --with-cyrus_sasl
1550 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1551 if test "${with_cyrus_sasl+set}" = set; then
1552 withval="$with_cyrus_sasl"
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-cyrus_sasl" 1>&2; exit 1; }
1563 ol_with_cyrus_sasl="$ol_arg"
1566 ol_with_cyrus_sasl="auto"
1568 # end --with-cyrus_sasl
1570 # OpenLDAP --with-fetch
1571 # Check whether --with-fetch or --without-fetch was given.
1572 if test "${with_fetch+set}" = set; then
1573 withval="$with_fetch"
1576 for ol_val in auto yes no ; do
1577 if test "$withval" = "$ol_val" ; then
1581 if test "$ol_arg" = "invalid" ; then
1582 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1584 ol_with_fetch="$ol_arg"
1587 ol_with_fetch="auto"
1591 # OpenLDAP --with-kerberos
1592 # Check whether --with-kerberos or --without-kerberos was given.
1593 if test "${with_kerberos+set}" = set; then
1594 withval="$with_kerberos"
1597 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1598 if test "$withval" = "$ol_val" ; then
1602 if test "$ol_arg" = "invalid" ; then
1603 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1605 ol_with_kerberos="$ol_arg"
1608 ol_with_kerberos="auto"
1610 # end --with-kerberos
1612 # OpenLDAP --with-readline
1613 # Check whether --with-readline or --without-readline was given.
1614 if test "${with_readline+set}" = set; then
1615 withval="$with_readline"
1618 for ol_val in auto yes no ; do
1619 if test "$withval" = "$ol_val" ; then
1623 if test "$ol_arg" = "invalid" ; then
1624 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1626 ol_with_readline="$ol_arg"
1629 ol_with_readline="auto"
1631 # end --with-readline
1633 # OpenLDAP --with-threads
1634 # Check whether --with-threads or --without-threads was given.
1635 if test "${with_threads+set}" = set; then
1636 withval="$with_threads"
1639 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1640 if test "$withval" = "$ol_val" ; then
1644 if test "$ol_arg" = "invalid" ; then
1645 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1647 ol_with_threads="$ol_arg"
1650 ol_with_threads="auto"
1652 # end --with-threads
1654 # OpenLDAP --with-tls
1655 # Check whether --with-tls or --without-tls was given.
1656 if test "${with_tls+set}" = set; then
1660 for ol_val in auto ssleay openssl yes no ; do
1661 if test "$withval" = "$ol_val" ; then
1665 if test "$ol_arg" = "invalid" ; then
1666 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1668 ol_with_tls="$ol_arg"
1675 # OpenLDAP --with-yielding_select
1676 # Check whether --with-yielding_select or --without-yielding_select was given.
1677 if test "${with_yielding_select+set}" = set; then
1678 withval="$with_yielding_select"
1681 for ol_val in auto yes no manual ; do
1682 if test "$withval" = "$ol_val" ; then
1686 if test "$ol_arg" = "invalid" ; then
1687 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1689 ol_with_yielding_select="$ol_arg"
1692 ol_with_yielding_select="auto"
1694 # end --with-yielding_select
1698 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1699 if test "${with_xxslapdoptions+set}" = set; then
1700 withval="$with_xxslapdoptions"
1704 # OpenLDAP --enable-slapd
1705 # Check whether --enable-slapd or --disable-slapd was given.
1706 if test "${enable_slapd+set}" = set; then
1707 enableval="$enable_slapd"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1718 ol_enable_slapd="$ol_arg"
1721 ol_enable_slapd="yes"
1723 # end --enable-slapd
1724 # OpenLDAP --enable-aci
1725 # Check whether --enable-aci or --disable-aci was given.
1726 if test "${enable_aci+set}" = set; then
1727 enableval="$enable_aci"
1730 for ol_val in auto yes no ; do
1731 if test "$enableval" = "$ol_val" ; then
1735 if test "$ol_arg" = "invalid" ; then
1736 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1738 ol_enable_aci="$ol_arg"
1744 # OpenLDAP --enable-cleartext
1745 # Check whether --enable-cleartext or --disable-cleartext was given.
1746 if test "${enable_cleartext+set}" = set; then
1747 enableval="$enable_cleartext"
1750 for ol_val in auto yes no ; do
1751 if test "$enableval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1758 ol_enable_cleartext="$ol_arg"
1761 ol_enable_cleartext="yes"
1763 # end --enable-cleartext
1764 # OpenLDAP --enable-crypt
1765 # Check whether --enable-crypt or --disable-crypt was given.
1766 if test "${enable_crypt+set}" = set; then
1767 enableval="$enable_crypt"
1770 for ol_val in auto yes no ; do
1771 if test "$enableval" = "$ol_val" ; then
1775 if test "$ol_arg" = "invalid" ; then
1776 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1778 ol_enable_crypt="$ol_arg"
1781 ol_enable_crypt="no"
1783 # end --enable-crypt
1784 # OpenLDAP --enable-dynamic
1785 # Check whether --enable-dynamic or --disable-dynamic was given.
1786 if test "${enable_dynamic+set}" = set; then
1787 enableval="$enable_dynamic"
1790 for ol_val in auto yes no ; do
1791 if test "$enableval" = "$ol_val" ; then
1795 if test "$ol_arg" = "invalid" ; then
1796 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1798 ol_enable_dynamic="$ol_arg"
1801 ol_enable_dynamic="no"
1803 # end --enable-dynamic
1804 # OpenLDAP --enable-kpasswd
1805 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1806 if test "${enable_kpasswd+set}" = set; then
1807 enableval="$enable_kpasswd"
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-kpasswd" 1>&2; exit 1; }
1818 ol_enable_kpasswd="$ol_arg"
1821 ol_enable_kpasswd="no"
1823 # end --enable-kpasswd
1824 # OpenLDAP --enable-lmpasswd
1825 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1826 if test "${enable_lmpasswd+set}" = set; then
1827 enableval="$enable_lmpasswd"
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-lmpasswd" 1>&2; exit 1; }
1838 ol_enable_lmpasswd="$ol_arg"
1841 ol_enable_lmpasswd="no"
1843 # end --enable-lmpasswd
1844 # OpenLDAP --enable-spasswd
1845 # Check whether --enable-spasswd or --disable-spasswd was given.
1846 if test "${enable_spasswd+set}" = set; then
1847 enableval="$enable_spasswd"
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-spasswd" 1>&2; exit 1; }
1858 ol_enable_spasswd="$ol_arg"
1861 ol_enable_spasswd="no"
1863 # end --enable-spasswd
1864 # OpenLDAP --enable-modules
1865 # Check whether --enable-modules or --disable-modules was given.
1866 if test "${enable_modules+set}" = set; then
1867 enableval="$enable_modules"
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-modules" 1>&2; exit 1; }
1878 ol_enable_modules="$ol_arg"
1881 ol_enable_modules="no"
1883 # end --enable-modules
1884 ol_enable_multimaster=${ol_enable_multimaster-no}
1885 # OpenLDAP --enable-phonetic
1886 # Check whether --enable-phonetic or --disable-phonetic was given.
1887 if test "${enable_phonetic+set}" = set; then
1888 enableval="$enable_phonetic"
1891 for ol_val in auto yes no ; do
1892 if test "$enableval" = "$ol_val" ; then
1896 if test "$ol_arg" = "invalid" ; then
1897 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1899 ol_enable_phonetic="$ol_arg"
1902 ol_enable_phonetic="no"
1904 # end --enable-phonetic
1905 # OpenLDAP --enable-rewrite
1906 # Check whether --enable-rewrite or --disable-rewrite was given.
1907 if test "${enable_rewrite+set}" = set; then
1908 enableval="$enable_rewrite"
1911 for ol_val in auto yes no ; do
1912 if test "$enableval" = "$ol_val" ; then
1916 if test "$ol_arg" = "invalid" ; then
1917 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1919 ol_enable_rewrite="$ol_arg"
1922 ol_enable_rewrite="no"
1924 # end --enable-rewrite
1925 # OpenLDAP --enable-rlookups
1926 # Check whether --enable-rlookups or --disable-rlookups was given.
1927 if test "${enable_rlookups+set}" = set; then
1928 enableval="$enable_rlookups"
1931 for ol_val in auto yes no ; do
1932 if test "$enableval" = "$ol_val" ; then
1936 if test "$ol_arg" = "invalid" ; then
1937 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1939 ol_enable_rlookups="$ol_arg"
1942 ol_enable_rlookups="no"
1944 # end --enable-rlookups
1945 # OpenLDAP --enable-slp
1946 # Check whether --enable-slp or --disable-slp was given.
1947 if test "${enable_slp+set}" = set; then
1948 enableval="$enable_slp"
1951 for ol_val in auto yes no ; do
1952 if test "$enableval" = "$ol_val" ; then
1956 if test "$ol_arg" = "invalid" ; then
1957 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1959 ol_enable_slp="$ol_arg"
1965 # OpenLDAP --enable-wrappers
1966 # Check whether --enable-wrappers or --disable-wrappers was given.
1967 if test "${enable_wrappers+set}" = set; then
1968 enableval="$enable_wrappers"
1971 for ol_val in auto yes no ; do
1972 if test "$enableval" = "$ol_val" ; then
1976 if test "$ol_arg" = "invalid" ; then
1977 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1979 ol_enable_wrappers="$ol_arg"
1982 ol_enable_wrappers="no"
1984 # end --enable-wrappers
1986 # OpenLDAP --enable-bdb
1987 # Check whether --enable-bdb or --disable-bdb was given.
1988 if test "${enable_bdb+set}" = set; then
1989 enableval="$enable_bdb"
1992 for ol_val in auto yes no ; do
1993 if test "$enableval" = "$ol_val" ; then
1997 if test "$ol_arg" = "invalid" ; then
1998 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2000 ol_enable_bdb="$ol_arg"
2006 # OpenLDAP --with-bdb_module
2007 # Check whether --with-bdb_module or --without-bdb_module was given.
2008 if test "${with_bdb_module+set}" = set; then
2009 withval="$with_bdb_module"
2012 for ol_val in static dynamic ; do
2013 if test "$withval" = "$ol_val" ; then
2017 if test "$ol_arg" = "invalid" ; then
2018 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2020 ol_with_bdb_module="$ol_arg"
2023 ol_with_bdb_module="static"
2025 # end --with-bdb_module
2027 # OpenLDAP --enable-dnssrv
2028 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2029 if test "${enable_dnssrv+set}" = set; then
2030 enableval="$enable_dnssrv"
2033 for ol_val in auto yes no ; do
2034 if test "$enableval" = "$ol_val" ; then
2038 if test "$ol_arg" = "invalid" ; then
2039 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2041 ol_enable_dnssrv="$ol_arg"
2044 ol_enable_dnssrv="no"
2046 # end --enable-dnssrv
2047 # OpenLDAP --with-dnssrv_module
2048 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2049 if test "${with_dnssrv_module+set}" = set; then
2050 withval="$with_dnssrv_module"
2053 for ol_val in static dynamic ; do
2054 if test "$withval" = "$ol_val" ; then
2058 if test "$ol_arg" = "invalid" ; then
2059 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2061 ol_with_dnssrv_module="$ol_arg"
2064 ol_with_dnssrv_module="static"
2066 # end --with-dnssrv_module
2068 # OpenLDAP --enable-ldap
2069 # Check whether --enable-ldap or --disable-ldap was given.
2070 if test "${enable_ldap+set}" = set; then
2071 enableval="$enable_ldap"
2074 for ol_val in auto yes no ; do
2075 if test "$enableval" = "$ol_val" ; then
2079 if test "$ol_arg" = "invalid" ; then
2080 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2082 ol_enable_ldap="$ol_arg"
2088 # OpenLDAP --with-ldap_module
2089 # Check whether --with-ldap_module or --without-ldap_module was given.
2090 if test "${with_ldap_module+set}" = set; then
2091 withval="$with_ldap_module"
2094 for ol_val in static dynamic ; do
2095 if test "$withval" = "$ol_val" ; then
2099 if test "$ol_arg" = "invalid" ; then
2100 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2102 ol_with_ldap_module="$ol_arg"
2105 ol_with_ldap_module="static"
2107 # end --with-ldap_module
2109 # OpenLDAP --enable-ldbm
2110 # Check whether --enable-ldbm or --disable-ldbm was given.
2111 if test "${enable_ldbm+set}" = set; then
2112 enableval="$enable_ldbm"
2115 for ol_val in auto yes no ; do
2116 if test "$enableval" = "$ol_val" ; then
2120 if test "$ol_arg" = "invalid" ; then
2121 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2123 ol_enable_ldbm="$ol_arg"
2129 # OpenLDAP --with-ldbm_api
2130 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2131 if test "${with_ldbm_api+set}" = set; then
2132 withval="$with_ldbm_api"
2135 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2136 if test "$withval" = "$ol_val" ; then
2140 if test "$ol_arg" = "invalid" ; then
2141 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2143 ol_with_ldbm_api="$ol_arg"
2146 ol_with_ldbm_api="auto"
2148 # end --with-ldbm_api
2150 # OpenLDAP --with-ldbm_module
2151 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2152 if test "${with_ldbm_module+set}" = set; then
2153 withval="$with_ldbm_module"
2156 for ol_val in static dynamic ; do
2157 if test "$withval" = "$ol_val" ; then
2161 if test "$ol_arg" = "invalid" ; then
2162 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2164 ol_with_ldbm_module="$ol_arg"
2167 ol_with_ldbm_module="static"
2169 # end --with-ldbm_module
2171 # OpenLDAP --with-ldbm_type
2172 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2173 if test "${with_ldbm_type+set}" = set; then
2174 withval="$with_ldbm_type"
2177 for ol_val in auto btree hash ; do
2178 if test "$withval" = "$ol_val" ; then
2182 if test "$ol_arg" = "invalid" ; then
2183 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2185 ol_with_ldbm_type="$ol_arg"
2188 ol_with_ldbm_type="auto"
2190 # end --with-ldbm_type
2192 # OpenLDAP --enable-meta
2193 # Check whether --enable-meta or --disable-meta was given.
2194 if test "${enable_meta+set}" = set; then
2195 enableval="$enable_meta"
2198 for ol_val in auto yes no ; do
2199 if test "$enableval" = "$ol_val" ; then
2203 if test "$ol_arg" = "invalid" ; then
2204 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2206 ol_enable_meta="$ol_arg"
2212 # OpenLDAP --with-meta_module
2213 # Check whether --with-meta_module or --without-meta_module was given.
2214 if test "${with_meta_module+set}" = set; then
2215 withval="$with_meta_module"
2218 for ol_val in static dynamic ; do
2219 if test "$withval" = "$ol_val" ; then
2223 if test "$ol_arg" = "invalid" ; then
2224 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2226 ol_with_meta_module="$ol_arg"
2229 ol_with_meta_module="static"
2231 # end --with-meta_module
2233 # OpenLDAP --enable-monitor
2234 # Check whether --enable-monitor or --disable-monitor was given.
2235 if test "${enable_monitor+set}" = set; then
2236 enableval="$enable_monitor"
2239 for ol_val in auto yes no ; do
2240 if test "$enableval" = "$ol_val" ; then
2244 if test "$ol_arg" = "invalid" ; then
2245 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2247 ol_enable_monitor="$ol_arg"
2250 ol_enable_monitor="no"
2252 # end --enable-monitor
2253 # OpenLDAP --with-monitor_module
2254 # Check whether --with-monitor_module or --without-monitor_module was given.
2255 if test "${with_monitor_module+set}" = set; then
2256 withval="$with_monitor_module"
2259 for ol_val in static dynamic ; do
2260 if test "$withval" = "$ol_val" ; then
2264 if test "$ol_arg" = "invalid" ; then
2265 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2267 ol_with_monitor_module="$ol_arg"
2270 ol_with_monitor_module="static"
2272 # end --with-monitor_module
2274 # OpenLDAP --enable-null
2275 # Check whether --enable-null or --disable-null was given.
2276 if test "${enable_null+set}" = set; then
2277 enableval="$enable_null"
2280 for ol_val in auto yes no ; do
2281 if test "$enableval" = "$ol_val" ; then
2285 if test "$ol_arg" = "invalid" ; then
2286 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2288 ol_enable_null="$ol_arg"
2294 # OpenLDAP --with-null_module
2295 # Check whether --with-null_module or --without-null_module was given.
2296 if test "${with_null_module+set}" = set; then
2297 withval="$with_null_module"
2300 for ol_val in static dynamic ; do
2301 if test "$withval" = "$ol_val" ; then
2305 if test "$ol_arg" = "invalid" ; then
2306 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2308 ol_with_null_module="$ol_arg"
2311 ol_with_null_module="static"
2313 # end --with-null_module
2315 # OpenLDAP --enable-passwd
2316 # Check whether --enable-passwd or --disable-passwd was given.
2317 if test "${enable_passwd+set}" = set; then
2318 enableval="$enable_passwd"
2321 for ol_val in auto yes no ; do
2322 if test "$enableval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2329 ol_enable_passwd="$ol_arg"
2332 ol_enable_passwd="no"
2334 # end --enable-passwd
2335 # OpenLDAP --with-passwd_module
2336 # Check whether --with-passwd_module or --without-passwd_module was given.
2337 if test "${with_passwd_module+set}" = set; then
2338 withval="$with_passwd_module"
2341 for ol_val in static dynamic ; do
2342 if test "$withval" = "$ol_val" ; then
2346 if test "$ol_arg" = "invalid" ; then
2347 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2349 ol_with_passwd_module="$ol_arg"
2352 ol_with_passwd_module="static"
2354 # end --with-passwd_module
2356 # OpenLDAP --enable-perl
2357 # Check whether --enable-perl or --disable-perl was given.
2358 if test "${enable_perl+set}" = set; then
2359 enableval="$enable_perl"
2362 for ol_val in auto yes no ; do
2363 if test "$enableval" = "$ol_val" ; then
2367 if test "$ol_arg" = "invalid" ; then
2368 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2370 ol_enable_perl="$ol_arg"
2376 # OpenLDAP --with-perl_module
2377 # Check whether --with-perl_module or --without-perl_module was given.
2378 if test "${with_perl_module+set}" = set; then
2379 withval="$with_perl_module"
2382 for ol_val in static dynamic ; do
2383 if test "$withval" = "$ol_val" ; then
2387 if test "$ol_arg" = "invalid" ; then
2388 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2390 ol_with_perl_module="$ol_arg"
2393 ol_with_perl_module="static"
2395 # end --with-perl_module
2397 # OpenLDAP --enable-shell
2398 # Check whether --enable-shell or --disable-shell was given.
2399 if test "${enable_shell+set}" = set; then
2400 enableval="$enable_shell"
2403 for ol_val in auto yes no ; do
2404 if test "$enableval" = "$ol_val" ; then
2408 if test "$ol_arg" = "invalid" ; then
2409 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2411 ol_enable_shell="$ol_arg"
2414 ol_enable_shell="no"
2416 # end --enable-shell
2417 # OpenLDAP --with-shell_module
2418 # Check whether --with-shell_module or --without-shell_module was given.
2419 if test "${with_shell_module+set}" = set; then
2420 withval="$with_shell_module"
2423 for ol_val in static dynamic ; do
2424 if test "$withval" = "$ol_val" ; then
2428 if test "$ol_arg" = "invalid" ; then
2429 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2431 ol_with_shell_module="$ol_arg"
2434 ol_with_shell_module="static"
2436 # end --with-shell_module
2438 ol_enable_sql=${ol_enable_sql-no}
2439 ol_with_sql_module=${ol_enable_sql-static}
2441 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2442 if test "${with_xxslurpdoptions+set}" = set; then
2443 withval="$with_xxslurpdoptions"
2447 # OpenLDAP --enable-slurpd
2448 # Check whether --enable-slurpd or --disable-slurpd was given.
2449 if test "${enable_slurpd+set}" = set; then
2450 enableval="$enable_slurpd"
2453 for ol_val in auto yes no ; do
2454 if test "$enableval" = "$ol_val" ; then
2458 if test "$ol_arg" = "invalid" ; then
2459 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2461 ol_enable_slurpd="$ol_arg"
2464 ol_enable_slurpd="auto"
2466 # end --enable-slurpd
2468 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2469 if test "${with_xxliboptions+set}" = set; then
2470 withval="$with_xxliboptions"
2474 # Check whether --enable-static or --disable-static was given.
2475 if test "${enable_static+set}" = set; then
2476 enableval="$enable_static"
2477 p=${PACKAGE-default}
2479 yes) enable_static=yes ;;
2480 no) enable_static=no ;;
2483 # Look at the argument we got. We use all the common list separators.
2484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2485 for pkg in $enableval; do
2486 if test "X$pkg" = "X$p"; then
2497 # Check whether --enable-shared or --disable-shared was given.
2498 if test "${enable_shared+set}" = set; then
2499 enableval="$enable_shared"
2500 p=${PACKAGE-default}
2502 yes) enable_shared=yes ;;
2503 no) enable_shared=no ;;
2506 # Look at the argument we got. We use all the common list separators.
2507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2508 for pkg in $enableval; do
2509 if test "X$pkg" = "X$p"; then
2523 if test $ol_enable_slapd = no ; then
2524 if test $ol_enable_bdb = yes ; then
2525 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2527 if test $ol_enable_dnssrv = yes ; then
2528 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2530 if test $ol_enable_ldap = yes ; then
2531 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2533 if test $ol_enable_ldbm = yes ; then
2534 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2536 if test $ol_enable_meta = yes ; then
2537 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2539 if test $ol_enable_monitor = yes ; then
2540 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2542 if test $ol_enable_null = yes ; then
2543 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2545 if test $ol_enable_passwd = yes ; then
2546 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2548 if test $ol_enable_perl = yes ; then
2549 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2551 if test $ol_enable_shell = yes ; then
2552 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2554 if test $ol_enable_sql = yes ; then
2555 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2557 if test $ol_enable_modules = yes ; then
2558 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2560 if test $ol_enable_multimaster = yes ; then
2561 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2563 if test $ol_enable_wrappers = yes ; then
2564 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2566 if test $ol_enable_phonetic = yes ; then
2567 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2569 if test $ol_enable_rlookups = yes ; then
2570 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2572 if test $ol_enable_aci = yes ; then
2573 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2575 if test $ol_with_ldbm_api != auto ; then
2576 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2578 if test $ol_with_ldbm_type != auto ; then
2579 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2581 if test $ol_with_bdb_module != static ; then
2582 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2584 if test $ol_with_dnssrv_module != static ; then
2585 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2587 if test $ol_with_ldap_module != static ; then
2588 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2590 if test $ol_with_ldbm_module != static ; then
2591 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2593 if test $ol_with_meta_module != static ; then
2594 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2596 if test $ol_with_monitor_module != static ; then
2597 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2599 if test $ol_with_null_module != static ; then
2600 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2602 if test $ol_with_passwd_module != static ; then
2603 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2605 if test $ol_with_perl_module != static ; then
2606 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2608 if test $ol_with_shell_module != static ; then
2609 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2611 if test $ol_with_sql_module != static ; then
2612 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2614 if test $ol_enable_slurpd = yes ; then
2615 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2617 if test $ol_enable_rewrite = yes ; then
2618 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2621 # force settings to no
2627 ol_enable_monitor=no
2634 ol_enable_modules=no
2635 ol_enable_multimaster=no
2636 ol_enable_phonetic=no
2637 ol_enable_rlookups=no
2639 ol_enable_wrappers=no
2640 ol_enable_dynamic=no
2643 ol_with_ldbm_type=no
2645 ol_with_bdb_module=static
2646 ol_with_dnssrv_module=static
2647 ol_with_ldap_module=static
2648 ol_with_ldbm_module=static
2649 ol_with_meta_module=static
2650 ol_with_monitor_module=static
2651 ol_with_null_module=static
2652 ol_with_passwd_module=static
2653 ol_with_perl_module=static
2654 ol_with_shell_module=static
2655 ol_with_sql_module=static
2659 ol_enable_rewrite=no
2661 elif test $ol_enable_ldbm = no ; then
2663 if test $ol_with_ldbm_api != auto ; then
2664 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2667 if test $ol_with_ldbm_type != auto ; then
2668 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2671 if test $ol_with_ldbm_module != static ; then
2672 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2675 if test $ol_enable_modules != yes -a \
2676 $ol_enable_bdb = no -a \
2677 $ol_enable_dnssrv = no -a \
2678 $ol_enable_ldap = no -a \
2679 $ol_enable_meta = no -a \
2680 $ol_enable_monitor = no -a \
2681 $ol_enable_null = no -a \
2682 $ol_enable_passwd = no -a \
2683 $ol_enable_perl = no -a \
2684 $ol_enable_shell = no -a \
2685 $ol_enable_sql = no ; then
2687 if test $ol_enable_slapd = yes ; then
2688 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2690 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2696 ol_with_ldbm_type=no
2697 ol_with_ldbm_module=static
2699 if test $ol_enable_bdb != no ; then
2700 ol_with_ldbm_api=berkeley
2704 if test $ol_with_ldbm_api = gdbm -a \
2705 $ol_with_ldbm_type = btree ; then
2706 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2708 if test $ol_with_ldbm_api = mdbm -a \
2709 $ol_with_ldbm_type = btree ; then
2710 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2712 if test $ol_with_ldbm_api = ndbm -a \
2713 $ol_with_ldbm_type = btree ; then
2714 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2717 if test $ol_enable_bdb = yes ; then
2718 if test $ol_with_ldbm_api = auto ; then
2719 ol_with_ldbm_api=berkeley
2720 elif test $ol_with_ldbm_api != berkeley ; then
2721 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2724 elif test $ol_enable_bdb = auto ; then
2725 if test $ol_with_ldbm_api != berkeley \
2726 -o $ol_with_ldbm_api != auto ; then
2727 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2733 if test $ol_enable_slurpd = yes ; then
2734 if test $ol_with_threads = no ; then
2735 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2739 if test $ol_enable_lmpasswd = yes ; then
2740 if test $ol_with_tls = no ; then
2741 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2745 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2746 if test $ol_with_kerberos = no ; then
2747 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2748 elif test $ol_with_kerberos = auto ; then
2749 ol_with_kerberos=yes
2752 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2753 if test $ol_with_kerberos = auto ; then
2755 elif test $ol_with_kerberos != no ; then
2756 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2761 if test $ol_enable_spasswd = yes ; then
2762 if test $ol_with_cyrus_sasl = no ; then
2763 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2765 ol_with_cyrus_sasl=yes
2768 echo "$ac_t""done" 1>&6
2797 BUILD_BDB_DYNAMIC=static
2798 BUILD_DNSSRV_DYNAMIC=static
2799 BUILD_LDAP_DYNAMIC=static
2800 BUILD_LDBM_DYNAMIC=static
2801 BUILD_META_DYNAMIC=static
2802 BUILD_MONITOR_DYNAMIC=static
2803 BUILD_NULL_DYNAMIC=static
2804 BUILD_PASSWD_DYNAMIC=static
2805 BUILD_PERL_DYNAMIC=static
2806 BUILD_SHELL_DYNAMIC=static
2807 BUILD_SQL_DYNAMIC=static
2809 SLAPD_MODULES_LDFLAGS=
2810 SLAPD_MODULES_CPPFLAGS=
2812 SLAPD_STATIC_BACKENDS=
2813 SLAPD_DYNAMIC_BACKENDS=
2835 # Find a good install program. We prefer a C program (faster),
2836 # so one script is as good as another. But avoid the broken or
2837 # incompatible versions:
2838 # SysV /etc/install, /usr/sbin/install
2839 # SunOS /usr/etc/install
2840 # IRIX /sbin/install
2842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2845 # ./install, which can be erroneously created by make from ./install.sh.
2846 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2847 echo "configure:2848: checking for a BSD compatible install" >&5
2848 if test -z "$INSTALL"; then
2849 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2853 for ac_dir in $PATH; do
2854 # Account for people who put trailing slashes in PATH elements.
2856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2858 # OSF1 and SCO ODT 3.0 have their own names for install.
2859 # Don't use installbsd from OSF since it installs stuff as root
2861 for ac_prog in ginstall scoinst install; do
2862 if test -f $ac_dir/$ac_prog; then
2863 if test $ac_prog = install &&
2864 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2865 # AIX install. It has an incompatible calling convention.
2867 elif test $ac_prog = install &&
2868 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2869 # program-specific install script used by HP pwplus--don't use.
2872 ac_cv_path_install="$ac_dir/$ac_prog -c"
2883 if test "${ac_cv_path_install+set}" = set; then
2884 INSTALL="$ac_cv_path_install"
2886 # As a last resort, use the slow shell script. We don't cache a
2887 # path for INSTALL within a source directory, because that will
2888 # break other packages using the cache if that directory is
2889 # removed, or if the path is relative.
2890 INSTALL="$ac_install_sh"
2893 echo "$ac_t""$INSTALL" 1>&6
2895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2896 # It thinks the first close brace ends the variable substitution.
2897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2904 cat >> confdefs.h <<\EOF
2905 #define HAVE_MKVERSION 1
2913 *-*-aix*) if test -z "$CC" ; then
2914 case "$ol_with_threads" in
2915 auto | yes | posix) ol_aix_threads=yes ;;
2921 if test $ol_aix_threads = yes ; then
2922 if test -z "${CC}" ; then
2923 for ac_prog in cc_r xlc_r cc
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy $ac_prog; ac_word=$2
2927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2928 echo "configure:2929: checking for $ac_word" >&5
2929 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2937 for ac_dir in $ac_dummy; do
2938 test -z "$ac_dir" && ac_dir=.
2939 if test -f $ac_dir/$ac_word; then
2940 ac_cv_prog_CC="$ac_prog"
2948 if test -n "$CC"; then
2949 echo "$ac_t""$CC" 1>&6
2951 echo "$ac_t""no" 1>&6
2954 test -n "$CC" && break
2958 if test "$CC" = cc ; then
2959 if test $ol_with_threads != auto ; then
2960 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2962 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2968 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2969 ol_with_threads=posix
2970 ol_cv_pthread_create=yes
2974 if test -z "${CC}"; then
2975 for ac_prog in cc gcc
2977 # Extract the first word of "$ac_prog", so it can be a program name with args.
2978 set dummy $ac_prog; ac_word=$2
2979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2980 echo "configure:2981: checking for $ac_word" >&5
2981 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2989 for ac_dir in $ac_dummy; do
2990 test -z "$ac_dir" && ac_dir=.
2991 if test -f $ac_dir/$ac_word; then
2992 ac_cv_prog_CC="$ac_prog"
3000 if test -n "$CC"; then
3001 echo "$ac_t""$CC" 1>&6
3003 echo "$ac_t""no" 1>&6
3006 test -n "$CC" && break
3008 test -n "$CC" || CC="missing"
3011 if test "${CC}" = "missing" ; then
3012 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3016 if test -z "${AR}"; then
3017 for ac_prog in ar gar
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_word" >&5
3023 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test -n "$AR"; then
3027 ac_cv_prog_AR="$AR" # Let the user override the test.
3029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3031 for ac_dir in $ac_dummy; do
3032 test -z "$ac_dir" && ac_dir=.
3033 if test -f $ac_dir/$ac_word; then
3034 ac_cv_prog_AR="$ac_prog"
3042 if test -n "$AR"; then
3043 echo "$ac_t""$AR" 1>&6
3045 echo "$ac_t""no" 1>&6
3048 test -n "$AR" && break
3050 test -n "$AR" || AR="missing"
3053 if test "${AR}" = "missing" ; then
3054 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3060 # Find the correct PATH separator. Usually this is `:', but
3061 # DJGPP uses `;' like DOS.
3062 if test "X${PATH_SEPARATOR+set}" != Xset; then
3063 UNAME=${UNAME-`uname 2>/dev/null`}
3065 *-DOS) lt_cv_sys_path_separator=';' ;;
3066 *) lt_cv_sys_path_separator=':' ;;
3068 PATH_SEPARATOR=$lt_cv_sys_path_separator
3071 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3072 echo "configure:3073: checking for Cygwin environment" >&5
3073 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3083 #define __CYGWIN__ __CYGWIN32__
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3100 echo "$ac_t""$ac_cv_cygwin" 1>&6
3102 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3103 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3104 echo "configure:3105: checking for mingw32 environment" >&5
3105 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3128 echo "$ac_t""$ac_cv_mingw32" 1>&6
3130 test "$ac_cv_mingw32" = yes && MINGW32=yes
3131 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3132 echo "configure:3133: checking for EMX OS/2 environment" >&5
3133 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3156 echo "$ac_t""$ac_cv_emxos2" 1>&6
3158 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3159 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3160 echo "configure:3161: checking how to run the C preprocessor" >&5
3161 # On Suns, sometimes $CPP names a directory.
3162 if test -n "$CPP" && test -d "$CPP"; then
3165 if test -z "$CPP"; then
3166 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 # This must be in double quotes, not single quotes, because CPP may get
3170 # substituted into the Makefile and "${CC-cc}" will confuse make.
3172 # On the NeXT, cc -E runs the code through the compiler's parser,
3173 # not just through cpp.
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3181 { (eval echo configure:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3183 if test -z "$ac_err"; then
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 CPP="${CC-cc} -E -traditional-cpp"
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3198 { (eval echo configure:3199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3200 if test -z "$ac_err"; then
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 CPP="${CC-cc} -nologo -E"
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3215 { (eval echo configure:3216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3217 if test -z "$ac_err"; then
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3231 ac_cv_prog_CPP="$CPP"
3233 CPP="$ac_cv_prog_CPP"
3235 ac_cv_prog_CPP="$CPP"
3237 echo "$ac_t""$CPP" 1>&6
3239 # Check whether --enable-fast-install or --disable-fast-install was given.
3240 if test "${enable_fast_install+set}" = set; then
3241 enableval="$enable_fast_install"
3242 p=${PACKAGE-default}
3244 yes) enable_fast_install=yes ;;
3245 no) enable_fast_install=no ;;
3247 enable_fast_install=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_fast_install=yes
3259 enable_fast_install=yes
3262 # Extract the first word of "gcc", so it can be a program name with args.
3263 set dummy gcc; ac_word=$2
3264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3265 echo "configure:3266: checking for $ac_word" >&5
3266 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3274 for ac_dir in $ac_dummy; do
3275 test -z "$ac_dir" && ac_dir=.
3276 if test -f $ac_dir/$ac_word; then
3285 if test -n "$CC"; then
3286 echo "$ac_t""$CC" 1>&6
3288 echo "$ac_t""no" 1>&6
3291 if test -z "$CC"; then
3292 # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_word" >&5
3296 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3305 for ac_dir in $ac_dummy; do
3306 test -z "$ac_dir" && ac_dir=.
3307 if test -f $ac_dir/$ac_word; then
3308 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3309 ac_prog_rejected=yes
3317 if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3321 if test $# -gt 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3326 set dummy "$ac_dir/$ac_word" "$@"
3334 if test -n "$CC"; then
3335 echo "$ac_t""$CC" 1>&6
3337 echo "$ac_t""no" 1>&6
3340 if test -z "$CC"; then
3341 case "`uname -s`" in
3342 *win32* | *WIN32* | *CYGWIN*)
3343 # Extract the first word of "cl", so it can be a program name with args.
3344 set dummy cl; ac_word=$2
3345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3346 echo "configure:3347: checking for $ac_word" >&5
3347 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3355 for ac_dir in $ac_dummy; do
3356 test -z "$ac_dir" && ac_dir=.
3357 if test -f $ac_dir/$ac_word; then
3366 if test -n "$CC"; then
3367 echo "$ac_t""$CC" 1>&6
3369 echo "$ac_t""no" 1>&6
3374 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3377 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3378 echo "configure:3379: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3385 cross_compiling=$ac_cv_prog_cc_cross
3387 cat > conftest.$ac_ext << EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3395 ac_cv_prog_cc_works=yes
3396 # If we can't run a trivial program, we are probably using a cross compiler.
3397 if (./conftest; exit) 2>/dev/null; then
3398 ac_cv_prog_cc_cross=no
3400 ac_cv_prog_cc_cross=yes
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405 ac_cv_prog_cc_works=no
3409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3413 cross_compiling=$ac_cv_prog_cc_cross
3415 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3416 if test $ac_cv_prog_cc_works = no; then
3417 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3419 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3420 echo "configure:3421: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3421 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3422 cross_compiling=$ac_cv_prog_cc_cross
3424 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3425 echo "configure:3426: checking whether we are using GNU C" >&5
3426 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftest.c <<EOF
3434 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3441 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3443 if test $ac_cv_prog_gcc = yes; then
3449 ac_test_CFLAGS="${CFLAGS+set}"
3450 ac_save_CFLAGS="$CFLAGS"
3452 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3453 echo "configure:3454: checking whether ${CC-cc} accepts -g" >&5
3454 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 echo 'void f(){}' > conftest.c
3458 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3467 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3468 if test "$ac_test_CFLAGS" = set; then
3469 CFLAGS="$ac_save_CFLAGS"
3470 elif test $ac_cv_prog_cc_g = yes; then
3471 if test "$GCC" = yes; then
3477 if test "$GCC" = yes; then
3484 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3485 if test "${with_gnu_ld+set}" = set; then
3486 withval="$with_gnu_ld"
3487 test "$withval" = no || with_gnu_ld=yes
3493 if test "$GCC" = yes; then
3494 # Check if gcc -print-prog-name=ld gives a path.
3495 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3496 echo "configure:3497: checking for ld used by GCC" >&5
3499 # gcc leaves a trailing carriage return which upsets mingw
3500 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3502 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3505 # Accept absolute paths.
3506 [\\/]* | [A-Za-z]:[\\/]*)
3507 re_direlt='/[^/][^/]*/\.\./'
3508 # Canonicalize the path of ld
3509 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3510 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3511 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3513 test -z "$LD" && LD="$ac_prog"
3516 # If it fails, then pretend we aren't using GCC.
3520 # If it is relative, then search for the first ld in PATH.
3524 elif test "$with_gnu_ld" = yes; then
3525 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3526 echo "configure:3527: checking for GNU ld" >&5
3528 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3529 echo "configure:3530: checking for non-GNU ld" >&5
3531 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 if test -z "$LD"; then
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3536 for ac_dir in $PATH; do
3537 test -z "$ac_dir" && ac_dir=.
3538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3539 lt_cv_path_LD="$ac_dir/$ac_prog"
3540 # Check to see if the program is GNU ld. I'd rather use --version,
3541 # but apparently some GNU ld's only accept -v.
3542 # Break only if it was the GNU/non-GNU ld that we prefer.
3543 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3544 test "$with_gnu_ld" != no && break
3546 test "$with_gnu_ld" != yes && break
3552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3557 if test -n "$LD"; then
3558 echo "$ac_t""$LD" 1>&6
3560 echo "$ac_t""no" 1>&6
3562 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3563 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3564 echo "configure:3565: checking if the linker ($LD) is GNU ld" >&5
3565 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3569 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3570 lt_cv_prog_gnu_ld=yes
3572 lt_cv_prog_gnu_ld=no
3576 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3577 with_gnu_ld=$lt_cv_prog_gnu_ld
3580 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $LD option to reload object files" >&5
3582 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 lt_cv_ld_reload_flag='-r'
3588 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3589 reload_flag=$lt_cv_ld_reload_flag
3590 test -n "$reload_flag" && reload_flag=" $reload_flag"
3592 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3593 echo "configure:3594: checking for BSD-compatible nm" >&5
3594 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 if test -n "$NM"; then
3598 # Let the user override the test.
3601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3602 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3603 test -z "$ac_dir" && ac_dir=.
3604 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3605 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3606 # Check to see if the nm accepts a BSD-compat flag.
3607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3608 # nm: unknown option "B" ignored
3609 # Tru64's nm complains that /dev/null is an invalid object file
3610 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3611 lt_cv_path_NM="$tmp_nm -B"
3613 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3614 lt_cv_path_NM="$tmp_nm -p"
3617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3618 continue # so that we can try to find one that supports BSD flags
3623 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3628 echo "$ac_t""$NM" 1>&6
3630 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3631 echo "configure:3632: checking whether ln -s works" >&5
3632 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3636 if ln -s X conftestdata 2>/dev/null
3639 ac_cv_prog_LN_S="ln -s"
3644 LN_S="$ac_cv_prog_LN_S"
3645 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3646 echo "$ac_t""yes" 1>&6
3648 echo "$ac_t""no" 1>&6
3651 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3652 echo "configure:3653: checking how to recognise dependant libraries" >&5
3653 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 lt_cv_file_magic_cmd='$MAGIC_CMD'
3657 lt_cv_file_magic_test_file=
3658 lt_cv_deplibs_check_method='unknown'
3659 # Need to set the preceding variable on all platforms that support
3660 # interlibrary dependencies.
3661 # 'none' -- dependencies not supported.
3662 # `unknown' -- same as none, but documents that we really don't know.
3663 # 'pass_all' -- all dependencies passed with no checks.
3664 # 'test_compile' -- check by making test program.
3665 # 'file_magic [[regex]]' -- check by looking for files in library path
3666 # which responds to the $file_magic_cmd with a given egrep regex.
3667 # If you have `file' or equivalent on your system and you're not sure
3668 # whether `pass_all' will *always* work, you probably want this one.
3672 lt_cv_deplibs_check_method=pass_all
3676 lt_cv_deplibs_check_method=pass_all
3680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3681 lt_cv_file_magic_cmd='/usr/bin/file -L'
3682 lt_cv_file_magic_test_file=/shlib/libc.so
3685 cygwin* | mingw* | pw32*)
3686 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3687 lt_cv_file_magic_cmd='$OBJDUMP -f'
3690 darwin* | rhapsody*)
3691 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3692 lt_cv_file_magic_cmd='/usr/bin/file -L'
3694 rhapsody* | darwin1.[012])
3695 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3698 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3707 # Not sure whether the presence of OpenBSD here was a mistake.
3708 # Let's accept both of them until this is cleared up.
3709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3710 lt_cv_file_magic_cmd=/usr/bin/file
3711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3715 lt_cv_deplibs_check_method=pass_all
3720 lt_cv_deplibs_check_method=pass_all
3724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3725 lt_cv_file_magic_cmd=/usr/bin/file
3726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3732 # this will be overridden with pass_all, but let us keep it just in case
3733 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3737 *-32|*"-32 ") libmagic=32-bit;;
3738 *-n32|*"-n32 ") libmagic=N32;;
3739 *-64|*"-64 ") libmagic=64-bit;;
3740 *) libmagic=never-match;;
3742 # this will be overridden with pass_all, but let us keep it just in case
3743 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3746 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3747 lt_cv_deplibs_check_method=pass_all
3750 # This must be Linux ELF.
3753 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3754 lt_cv_deplibs_check_method=pass_all ;;
3756 # glibc up to 2.1.1 does not perform some relocations on ARM
3757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3759 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3763 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3764 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3766 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3772 lt_cv_file_magic_cmd=/usr/bin/file
3773 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3777 lt_cv_file_magic_cmd=/usr/bin/file
3778 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3782 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3786 osf3* | osf4* | osf5*)
3787 # this will be overridden with pass_all, but let us keep it just in case
3788 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3790 lt_cv_deplibs_check_method=pass_all
3794 lt_cv_deplibs_check_method=pass_all
3798 lt_cv_deplibs_check_method=pass_all
3799 lt_cv_file_magic_test_file=/lib/libc.so
3802 sysv5uw[78]* | sysv4*uw2*)
3803 lt_cv_deplibs_check_method=pass_all
3806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807 case $host_vendor in
3809 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]'
3810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3813 lt_cv_deplibs_check_method=pass_all
3816 lt_cv_file_magic_cmd='/bin/file'
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3820 lt_cv_file_magic_cmd='/bin/file'
3821 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3822 lt_cv_file_magic_test_file=/lib/libc.so
3830 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3831 file_magic_cmd=$lt_cv_file_magic_cmd
3832 deplibs_check_method=$lt_cv_deplibs_check_method
3834 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3835 echo "configure:3836: checking for object suffix" >&5
3836 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3840 echo 'int i = 1;' > conftest.$ac_ext
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3842 for ac_file in conftest.*; do
3845 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3849 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3854 echo "$ac_t""$ac_cv_objext" 1>&6
3855 OBJEXT=$ac_cv_objext
3856 ac_objext=$ac_cv_objext
3861 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3862 echo "configure:3863: checking for executable suffix" >&5
3863 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3870 echo 'int main () { return 0; }' > conftest.$ac_ext
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3873 for file in conftest.*; do
3875 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3876 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3880 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3883 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3888 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3889 echo "$ac_t""${ac_cv_exeext}" 1>&6
3892 if test $host != $build; then
3893 ac_tool_prefix=${host_alias}-
3901 # Check for command to grab the raw symbol name followed by C symbol from nm.
3902 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3903 echo "configure:3904: checking command to parse $NM output" >&5
3904 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3908 # These are sane defaults that work on at least a few old systems.
3909 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3911 # Character class describing NM global symbol codes.
3912 symcode='[BCDEGRST]'
3914 # Regexp to match symbols that can be accessed directly from C.
3915 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3917 # Transform the above into a raw symbol and a C symbol.
3918 symxfrm='\1 \2\3 \3'
3920 # Transform an extracted symbol line into a proper C declaration
3921 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3923 # Transform an extracted symbol line into symbol name and symbol address
3924 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'"
3926 # Define system-specific variables.
3931 cygwin* | mingw* | pw32*)
3932 symcode='[ABCDGISTW]'
3934 hpux*) # Its linker distinguishes data from code symbols
3935 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3936 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'"
3939 symcode='[BCDEGRST]'
3949 # Handle CRLF in mingw tool chain
3953 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3957 # If we're using GNU nm, then use its standard symbol codes.
3958 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3959 symcode='[ABCDGISTW]'
3962 # Try without a prefix undercore, then with it.
3963 for ac_symprfx in "" "_"; do
3965 # Write the raw and C identifiers.
3966 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3968 # Check to see that the pipe works correctly.
3971 cat > conftest.$ac_ext <<EOF
3976 void nm_test_func(){}
3980 int main(){nm_test_var='a';nm_test_func();return(0);}
3983 if { (eval echo configure:3984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3984 # Now try to grab the symbols.
3986 if { (eval echo configure:3987: \"$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
3987 # Try sorting and uniquifying the output.
3988 if sort "$nlist" | uniq > "$nlist"T; then
3989 mv -f "$nlist"T "$nlist"
3994 # Make sure that we snagged all the symbols we need.
3995 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3996 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3997 cat <<EOF > conftest.$ac_ext
4003 # Now generate the symbol file.
4004 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4006 cat <<EOF >> conftest.$ac_ext
4007 #if defined (__STDC__) && __STDC__
4008 # define lt_ptr void *
4010 # define lt_ptr char *
4014 /* The mapping between symbol names and symbols. */
4019 lt_preloaded_symbols[] =
4022 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4023 cat <<\EOF >> conftest.$ac_ext
4031 # Now try linking the two files.
4032 mv conftest.$ac_objext conftstm.$ac_objext
4034 save_CFLAGS="$CFLAGS"
4035 LIBS="conftstm.$ac_objext"
4036 CFLAGS="$CFLAGS$no_builtin_flag"
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4041 CFLAGS="$save_CFLAGS"
4043 echo "cannot find nm_test_func in $nlist" >&5
4046 echo "cannot find nm_test_var in $nlist" >&5
4049 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4052 echo "$progname: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4055 rm -f conftest* conftst*
4057 # Do not use the global_symbol_pipe unless it works.
4058 if test "$pipe_works" = yes; then
4061 lt_cv_sys_global_symbol_pipe=
4067 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4068 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4069 global_symbol_to_cdecl=
4070 global_symbol_to_c_name_address=
4072 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4073 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4075 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4077 echo "$ac_t""failed" 1>&6
4079 echo "$ac_t""ok" 1>&6
4082 for ac_hdr in dlfcn.h
4084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_hdr" >&5
4087 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4096 { (eval echo configure:4097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4098 if test -z "$ac_err"; then
4100 eval "ac_cv_header_$ac_safe=yes"
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4106 eval "ac_cv_header_$ac_safe=no"
4110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4111 echo "$ac_t""yes" 1>&6
4112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4113 cat >> confdefs.h <<EOF
4114 #define $ac_tr_hdr 1
4118 echo "$ac_t""no" 1>&6
4126 # Only perform the check for file, if the check method requires it
4127 case $deplibs_check_method in
4129 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4130 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4131 echo "configure:4132: checking for ${ac_tool_prefix}file" >&5
4132 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4143 ac_save_MAGIC_CMD="$MAGIC_CMD"
4144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4145 ac_dummy="/usr/bin:$PATH"
4146 for ac_dir in $ac_dummy; do
4147 test -z "$ac_dir" && ac_dir=.
4148 if test -f $ac_dir/${ac_tool_prefix}file; then
4149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4150 if test -n "$file_magic_test_file"; then
4151 case $deplibs_check_method in
4153 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4156 egrep "$file_magic_regex" > /dev/null; then
4161 *** Warning: the command libtool uses to detect shared libraries,
4162 *** $file_magic_cmd, produces output that libtool cannot recognize.
4163 *** The result is that libtool may fail to recognize shared libraries
4164 *** as such. This will affect the creation of libtool libraries that
4165 *** depend on shared libraries, but programs linked with such libtool
4166 *** libraries will work regardless of this problem. Nevertheless, you
4167 *** may want to report the problem to your system manager and/or to
4168 *** bug-libtool@gnu.org
4178 MAGIC_CMD="$ac_save_MAGIC_CMD"
4183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4184 if test -n "$MAGIC_CMD"; then
4185 echo "$ac_t""$MAGIC_CMD" 1>&6
4187 echo "$ac_t""no" 1>&6
4190 if test -z "$lt_cv_path_MAGIC_CMD"; then
4191 if test -n "$ac_tool_prefix"; then
4192 echo $ac_n "checking for file""... $ac_c" 1>&6
4193 echo "configure:4194: checking for file" >&5
4194 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4205 ac_save_MAGIC_CMD="$MAGIC_CMD"
4206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4207 ac_dummy="/usr/bin:$PATH"
4208 for ac_dir in $ac_dummy; do
4209 test -z "$ac_dir" && ac_dir=.
4210 if test -f $ac_dir/file; then
4211 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4212 if test -n "$file_magic_test_file"; then
4213 case $deplibs_check_method in
4215 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4218 egrep "$file_magic_regex" > /dev/null; then
4223 *** Warning: the command libtool uses to detect shared libraries,
4224 *** $file_magic_cmd, produces output that libtool cannot recognize.
4225 *** The result is that libtool may fail to recognize shared libraries
4226 *** as such. This will affect the creation of libtool libraries that
4227 *** depend on shared libraries, but programs linked with such libtool
4228 *** libraries will work regardless of this problem. Nevertheless, you
4229 *** may want to report the problem to your system manager and/or to
4230 *** bug-libtool@gnu.org
4240 MAGIC_CMD="$ac_save_MAGIC_CMD"
4245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4246 if test -n "$MAGIC_CMD"; then
4247 echo "$ac_t""$MAGIC_CMD" 1>&6
4249 echo "$ac_t""no" 1>&6
4261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4264 echo "configure:4265: checking for $ac_word" >&5
4265 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 if test -n "$RANLIB"; then
4269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4273 for ac_dir in $ac_dummy; do
4274 test -z "$ac_dir" && ac_dir=.
4275 if test -f $ac_dir/$ac_word; then
4276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283 RANLIB="$ac_cv_prog_RANLIB"
4284 if test -n "$RANLIB"; then
4285 echo "$ac_t""$RANLIB" 1>&6
4287 echo "$ac_t""no" 1>&6
4291 if test -z "$ac_cv_prog_RANLIB"; then
4292 if test -n "$ac_tool_prefix"; then
4293 # Extract the first word of "ranlib", so it can be a program name with args.
4294 set dummy ranlib; ac_word=$2
4295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4296 echo "configure:4297: checking for $ac_word" >&5
4297 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 if test -n "$RANLIB"; then
4301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4305 for ac_dir in $ac_dummy; do
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f $ac_dir/$ac_word; then
4308 ac_cv_prog_RANLIB="ranlib"
4313 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4316 RANLIB="$ac_cv_prog_RANLIB"
4317 if test -n "$RANLIB"; then
4318 echo "$ac_t""$RANLIB" 1>&6
4320 echo "$ac_t""no" 1>&6
4328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4329 set dummy ${ac_tool_prefix}strip; ac_word=$2
4330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4331 echo "configure:4332: checking for $ac_word" >&5
4332 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 if test -n "$STRIP"; then
4336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4340 for ac_dir in $ac_dummy; do
4341 test -z "$ac_dir" && ac_dir=.
4342 if test -f $ac_dir/$ac_word; then
4343 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4350 STRIP="$ac_cv_prog_STRIP"
4351 if test -n "$STRIP"; then
4352 echo "$ac_t""$STRIP" 1>&6
4354 echo "$ac_t""no" 1>&6
4358 if test -z "$ac_cv_prog_STRIP"; then
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "strip", so it can be a program name with args.
4361 set dummy strip; ac_word=$2
4362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4363 echo "configure:4364: checking for $ac_word" >&5
4364 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4367 if test -n "$STRIP"; then
4368 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4372 for ac_dir in $ac_dummy; do
4373 test -z "$ac_dir" && ac_dir=.
4374 if test -f $ac_dir/$ac_word; then
4375 ac_cv_prog_STRIP="strip"
4380 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4383 STRIP="$ac_cv_prog_STRIP"
4384 if test -n "$STRIP"; then
4385 echo "$ac_t""$STRIP" 1>&6
4387 echo "$ac_t""no" 1>&6
4397 enable_win32_dll=yes
4399 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4400 if test "${enable_libtool_lock+set}" = set; then
4401 enableval="$enable_libtool_lock"
4405 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4407 # Some flags need to be propagated to the compiler or linker for good
4411 # Find out which ABI we are using.
4412 echo '#line 4413 "configure"' > conftest.$ac_ext
4413 if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4414 case `/usr/bin/file conftest.$ac_objext` in
4430 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4431 SAVE_CFLAGS="$CFLAGS"
4432 CFLAGS="$CFLAGS -belf"
4433 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4434 echo "configure:4435: checking whether the C compiler needs -belf" >&5
4435 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4444 cross_compiling=$ac_cv_prog_cc_cross
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 lt_cv_cc_needs_belf=yes
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 lt_cv_cc_needs_belf=no
4465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4469 cross_compiling=$ac_cv_prog_cc_cross
4473 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4476 CFLAGS="$SAVE_CFLAGS"
4480 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4481 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4482 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_word" >&5
4485 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 if test -n "$DLLTOOL"; then
4489 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4493 for ac_dir in $ac_dummy; do
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f $ac_dir/$ac_word; then
4496 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4503 DLLTOOL="$ac_cv_prog_DLLTOOL"
4504 if test -n "$DLLTOOL"; then
4505 echo "$ac_t""$DLLTOOL" 1>&6
4507 echo "$ac_t""no" 1>&6
4511 if test -z "$ac_cv_prog_DLLTOOL"; then
4512 if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "dlltool", so it can be a program name with args.
4514 set dummy dlltool; ac_word=$2
4515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_word" >&5
4517 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 if test -n "$DLLTOOL"; then
4521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4525 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f $ac_dir/$ac_word; then
4528 ac_cv_prog_DLLTOOL="dlltool"
4533 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4536 DLLTOOL="$ac_cv_prog_DLLTOOL"
4537 if test -n "$DLLTOOL"; then
4538 echo "$ac_t""$DLLTOOL" 1>&6
4540 echo "$ac_t""no" 1>&6
4548 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4549 set dummy ${ac_tool_prefix}as; ac_word=$2
4550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_word" >&5
4552 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 if test -n "$AS"; then
4556 ac_cv_prog_AS="$AS" # Let the user override the test.
4558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4560 for ac_dir in $ac_dummy; do
4561 test -z "$ac_dir" && ac_dir=.
4562 if test -f $ac_dir/$ac_word; then
4563 ac_cv_prog_AS="${ac_tool_prefix}as"
4571 if test -n "$AS"; then
4572 echo "$ac_t""$AS" 1>&6
4574 echo "$ac_t""no" 1>&6
4578 if test -z "$ac_cv_prog_AS"; then
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "as", so it can be a program name with args.
4581 set dummy as; ac_word=$2
4582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_word" >&5
4584 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 if test -n "$AS"; then
4588 ac_cv_prog_AS="$AS" # Let the user override the test.
4590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4592 for ac_dir in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir=.
4594 if test -f $ac_dir/$ac_word; then
4600 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4604 if test -n "$AS"; then
4605 echo "$ac_t""$AS" 1>&6
4607 echo "$ac_t""no" 1>&6
4615 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4618 echo "configure:4619: checking for $ac_word" >&5
4619 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 if test -n "$OBJDUMP"; then
4623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4627 for ac_dir in $ac_dummy; do
4628 test -z "$ac_dir" && ac_dir=.
4629 if test -f $ac_dir/$ac_word; then
4630 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4637 OBJDUMP="$ac_cv_prog_OBJDUMP"
4638 if test -n "$OBJDUMP"; then
4639 echo "$ac_t""$OBJDUMP" 1>&6
4641 echo "$ac_t""no" 1>&6
4645 if test -z "$ac_cv_prog_OBJDUMP"; then
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "objdump", so it can be a program name with args.
4648 set dummy objdump; ac_word=$2
4649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_word" >&5
4651 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test -n "$OBJDUMP"; then
4655 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 if test -f $ac_dir/$ac_word; then
4662 ac_cv_prog_OBJDUMP="objdump"
4667 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4670 OBJDUMP="$ac_cv_prog_OBJDUMP"
4671 if test -n "$OBJDUMP"; then
4672 echo "$ac_t""$OBJDUMP" 1>&6
4674 echo "$ac_t""no" 1>&6
4683 # recent cygwin and mingw systems supply a stub DllMain which the user
4684 # can override, but on older systems we have to supply one
4685 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4686 echo "configure:4687: checking if libtool should supply DllMain function" >&5
4687 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4695 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4699 if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4701 lt_cv_need_dllmain=no
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 lt_cv_need_dllmain=yes
4711 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4714 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4715 # old mingw systems require "-dll" to link a DLL, while more recent ones
4717 SAVE_CFLAGS="$CFLAGS"
4718 CFLAGS="$CFLAGS -mdll"
4719 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4720 echo "configure:4721: checking how to link DLLs" >&5
4721 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 lt_cv_cc_dll_switch=-mdll
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4739 lt_cv_cc_dll_switch=-dll
4744 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4745 CFLAGS="$SAVE_CFLAGS" ;;
4746 *-*-cygwin* | *-*-pw32*)
4747 # cygwin systems need to pass --dll to the linker, and not link
4748 # crt.o which will require a WinMain@16 definition.
4749 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4755 # Sed substitution that helps us do robust quoting. It backslashifies
4756 # metacharacters that are still active within double-quoted strings.
4757 Xsed='sed -e s/^X//'
4758 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4760 # Same as above, but do not quote variable references.
4761 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4763 # Sed substitution to delay expansion of an escaped shell variable in a
4764 # double_quote_subst'ed string.
4765 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4771 default_ofile=libtool
4772 can_build_shared=yes
4774 # All known linkers require a `.a' archive for static linking (except M$VC,
4775 # which needs '.lib').
4777 ltmain="$ac_aux_dir/ltmain.sh"
4778 ofile="$default_ofile"
4779 with_gnu_ld="$lt_cv_prog_gnu_ld"
4780 need_locks="$enable_libtool_lock"
4783 old_CFLAGS="$CFLAGS"
4785 # Set sane defaults for various variables
4786 test -z "$AR" && AR=ar
4787 test -z "$AR_FLAGS" && AR_FLAGS=cru
4788 test -z "$AS" && AS=as
4789 test -z "$CC" && CC=cc
4790 test -z "$DLLTOOL" && DLLTOOL=dlltool
4791 test -z "$LD" && LD=ld
4792 test -z "$LN_S" && LN_S="ln -s"
4793 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4794 test -z "$NM" && NM=nm
4795 test -z "$OBJDUMP" && OBJDUMP=objdump
4796 test -z "$RANLIB" && RANLIB=:
4797 test -z "$STRIP" && STRIP=:
4798 test -z "$ac_objext" && ac_objext=o
4800 if test x"$host" != x"$build"; then
4801 ac_tool_prefix=${host_alias}-
4806 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4809 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4814 # AIX sometimes has problems with the GCC collect2 program. For some
4815 # reason, if we set the COLLECT_NAMES environment variable, the problems
4816 # vanish in a puff of smoke.
4817 if test "X${COLLECT_NAMES+set}" != Xset; then
4819 export COLLECT_NAMES
4824 # Determine commands to create old-style static archives.
4825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4826 old_postinstall_cmds='chmod 644 $oldlib'
4827 old_postuninstall_cmds=
4829 if test -n "$RANLIB"; then
4832 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4835 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4841 # Allow CC to be a program name with arguments.
4845 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4846 echo "configure:4847: checking for objdir" >&5
4847 rm -f .libs 2>/dev/null
4848 mkdir .libs 2>/dev/null
4849 if test -d .libs; then
4852 # MS-DOS does not allow filenames that begin with a dot.
4855 rmdir .libs 2>/dev/null
4856 echo "$ac_t""$objdir" 1>&6
4859 # Check whether --with-pic or --without-pic was given.
4860 if test "${with_pic+set}" = set; then
4867 test -z "$pic_mode" && pic_mode=default
4869 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4870 # in isolation, and that seeing it set (from the cache) indicates that
4871 # the associated values are set (in the cache) correctly too.
4872 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $compiler option to produce PIC" >&5
4874 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4878 lt_cv_prog_cc_shlib=
4880 lt_cv_prog_cc_static=
4881 lt_cv_prog_cc_no_builtin=
4882 lt_cv_prog_cc_can_build_shared=$can_build_shared
4884 if test "$GCC" = yes; then
4885 lt_cv_prog_cc_wl='-Wl,'
4886 lt_cv_prog_cc_static='-static'
4890 # Below there is a dirty hack to force normal static linking with -ldl
4891 # The problem is because libdl dynamically linked with both libc and
4892 # libC (AIX C++ library), which obviously doesn't included in libraries
4893 # list by gcc. This cause undefined symbols with -static flags.
4894 # This hack allows C programs to be linked with "-static -ldl", but
4895 # not sure about C++ programs.
4896 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4899 # FIXME: we need at least 68020 code to build shared libraries, but
4900 # adding the `-m68020' flag to GCC prevents building anything better,
4902 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4904 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4905 # PIC is the default for these OSes.
4907 darwin* | rhapsody*)
4908 # PIC is the default on this platform
4909 # Common symbols not allowed in MH_DYLIB files
4910 lt_cv_prog_cc_pic='-fno-common'
4912 cygwin* | mingw* | pw32* | os2*)
4913 # This hack is so that the source file can tell whether it is being
4914 # built for inclusion in a dll (and should export symbols for example).
4915 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4918 if test -d /usr/nec; then
4919 lt_cv_prog_cc_pic=-Kconform_pic
4923 lt_cv_prog_cc_pic='-fPIC'
4927 # PORTME Check for PIC flags for the system compiler.
4929 aix3* | aix4* | aix5*)
4930 lt_cv_prog_cc_wl='-Wl,'
4931 # All AIX code is PIC.
4932 if test "$host_cpu" = ia64; then
4933 # AIX 5 now supports IA64 processor
4934 lt_cv_prog_cc_static='-Bstatic'
4936 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4940 hpux9* | hpux10* | hpux11*)
4941 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4942 lt_cv_prog_cc_wl='-Wl,'
4943 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4944 lt_cv_prog_cc_pic='+Z'
4948 lt_cv_prog_cc_wl='-Wl,'
4949 lt_cv_prog_cc_static='-non_shared'
4950 # PIC (with -KPIC) is the default.
4953 cygwin* | mingw* | pw32* | os2*)
4954 # This hack is so that the source file can tell whether it is being
4955 # built for inclusion in a dll (and should export symbols for example).
4956 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4960 lt_cv_prog_cc_pic='-KPIC'
4961 lt_cv_prog_cc_static='-Bstatic'
4964 osf3* | osf4* | osf5*)
4965 # All OSF/1 code is PIC.
4966 lt_cv_prog_cc_wl='-Wl,'
4967 lt_cv_prog_cc_static='-non_shared'
4971 lt_cv_prog_cc_pic='-Kpic'
4972 lt_cv_prog_cc_static='-dn'
4973 lt_cv_prog_cc_shlib='-belf'
4977 lt_cv_prog_cc_pic='-KPIC'
4978 lt_cv_prog_cc_static='-Bstatic'
4979 lt_cv_prog_cc_wl='-Wl,'
4983 lt_cv_prog_cc_pic='-PIC'
4984 lt_cv_prog_cc_static='-Bstatic'
4985 lt_cv_prog_cc_wl='-Qoption ld '
4988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4989 lt_cv_prog_cc_pic='-KPIC'
4990 lt_cv_prog_cc_static='-Bstatic'
4991 if test "x$host_vendor" = xsni; then
4992 lt_cv_prog_cc_wl='-LD'
4994 lt_cv_prog_cc_wl='-Wl,'
4999 lt_cv_prog_cc_pic='-pic'
5000 lt_cv_prog_cc_static='-Bstatic'
5004 if test -d /usr/nec ;then
5005 lt_cv_prog_cc_pic='-Kconform_pic'
5006 lt_cv_prog_cc_static='-Bstatic'
5011 lt_cv_prog_cc_can_build_shared=no
5018 if test -z "$lt_cv_prog_cc_pic"; then
5019 echo "$ac_t""none" 1>&6
5021 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5023 # Check to make sure the pic_flag actually works.
5024 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5025 echo "configure:5026: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5026 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5029 save_CFLAGS="$CFLAGS"
5030 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5039 if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5042 hpux9* | hpux10* | hpux11*)
5043 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5044 # they create non-PIC objects. So, if there were any warnings, we
5045 # assume that PIC is not supported.
5046 if test -s conftest.err; then
5047 lt_cv_prog_cc_pic_works=no
5049 lt_cv_prog_cc_pic_works=yes
5053 lt_cv_prog_cc_pic_works=yes
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 lt_cv_prog_cc_pic_works=no
5065 CFLAGS="$save_CFLAGS"
5070 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5072 lt_cv_prog_cc_can_build_shared=no
5074 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5077 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5080 # Check for any special shared library compilation flags.
5081 if test -n "$lt_cv_prog_cc_shlib"; then
5082 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5083 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5085 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5086 lt_cv_prog_cc_can_build_shared=no
5090 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5091 echo "configure:5092: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5092 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 lt_cv_prog_cc_static_works=no
5096 save_LDFLAGS="$LDFLAGS"
5097 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 lt_cv_prog_cc_static_works=yes
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5114 LDFLAGS="$save_LDFLAGS"
5119 # Belt *and* braces to stop my trousers falling down:
5120 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5121 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5123 pic_flag="$lt_cv_prog_cc_pic"
5124 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5125 wl="$lt_cv_prog_cc_wl"
5126 link_static_flag="$lt_cv_prog_cc_static"
5127 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5128 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5131 # Check to see if options -o and -c are simultaneously supported by compiler
5132 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5133 echo "configure:5134: checking if $compiler supports -c -o file.$ac_objext" >&5
5134 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5138 $rm -r conftest 2>/dev/null
5141 echo "int some_variable = 0;" > conftest.$ac_ext
5143 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5144 # that will create temporary files in the current directory regardless of
5145 # the output directory. Thus, making CWD read-only will cause this test
5146 # to fail, enabling locking or at least warning the user not to do parallel
5149 save_CFLAGS="$CFLAGS"
5150 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5152 if { (eval echo configure:5153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5153 # The compiler can only warn and ignore the option if not recognized
5154 # So say no if there are warnings
5155 if test -s out/conftest.err; then
5156 lt_cv_compiler_c_o=no
5158 lt_cv_compiler_c_o=yes
5161 # Append any errors to the config.log.
5162 cat out/conftest.err 1>&5
5163 lt_cv_compiler_c_o=no
5165 CFLAGS="$save_CFLAGS"
5171 $rm -r conftest 2>/dev/null
5175 compiler_c_o=$lt_cv_compiler_c_o
5176 echo "$ac_t""$compiler_c_o" 1>&6
5178 if test x"$compiler_c_o" = x"yes"; then
5179 # Check to see if we can write to a .lo
5180 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5181 echo "configure:5182: checking if $compiler supports -c -o file.lo" >&5
5182 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5186 lt_cv_compiler_o_lo=no
5187 save_CFLAGS="$CFLAGS"
5188 CFLAGS="$CFLAGS -c -o conftest.lo"
5189 save_objext="$ac_objext"
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5196 int some_variable = 0;
5199 if { (eval echo configure:5200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5201 # The compiler can only warn and ignore the option if not recognized
5202 # So say no if there are warnings
5203 if test -s conftest.err; then
5204 lt_cv_compiler_o_lo=no
5206 lt_cv_compiler_o_lo=yes
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5214 ac_objext="$save_objext"
5215 CFLAGS="$save_CFLAGS"
5219 compiler_o_lo=$lt_cv_compiler_o_lo
5220 echo "$ac_t""$compiler_o_lo" 1>&6
5225 # Check to see if we can do hard links to lock some files if needed
5226 hard_links="nottested"
5227 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5228 # do not overwrite the value of need_locks provided by the user
5229 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5230 echo "configure:5231: checking if we can lock with hard links" >&5
5233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5235 ln conftest.a conftest.b 2>&5 || hard_links=no
5236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5237 echo "$ac_t""$hard_links" 1>&6
5238 if test "$hard_links" = no; then
5239 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5246 if test "$GCC" = yes; then
5247 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5248 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5249 echo "configure:5250: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5250 echo "int some_variable = 0;" > conftest.$ac_ext
5251 save_CFLAGS="$CFLAGS"
5252 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5253 compiler_rtti_exceptions=no
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5259 int some_variable = 0;
5262 if { (eval echo configure:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5264 # The compiler can only warn and ignore the option if not recognized
5265 # So say no if there are warnings
5266 if test -s conftest.err; then
5267 compiler_rtti_exceptions=no
5269 compiler_rtti_exceptions=yes
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5277 CFLAGS="$save_CFLAGS"
5278 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5280 if test "$compiler_rtti_exceptions" = "yes"; then
5281 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5283 no_builtin_flag=' -fno-builtin'
5287 # See if the linker supports building shared libraries.
5288 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5289 echo "configure:5290: checking whether the linker ($LD) supports shared libraries" >&5
5291 allow_undefined_flag=
5293 need_lib_prefix=unknown
5294 need_version=unknown
5295 # when you set need_version to no, make sure it does not cause -set_version
5296 # flags to be left without arguments
5298 archive_expsym_cmds=
5299 old_archive_from_new_cmds=
5300 old_archive_from_expsyms_cmds=
5301 export_dynamic_flag_spec=
5302 whole_archive_flag_spec=
5303 thread_safe_flag_spec=
5304 hardcode_into_libs=no
5305 hardcode_libdir_flag_spec=
5306 hardcode_libdir_separator=
5309 hardcode_shlibpath_var=unsupported
5311 link_all_deplibs=unknown
5312 always_export_symbols=no
5313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5314 # include_expsyms should be a list of space-separated symbols to be *always*
5315 # included in the symbol list
5317 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5320 # as well as any symbol that contains `d'.
5321 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5323 # platforms (ab)use it in PIC code, but their linkers get confused if
5324 # the symbol is explicitly referenced. Since portable code cannot
5325 # rely on this symbol name, it's probably fine to never include it in
5326 # preloaded symbol tables.
5327 extract_expsyms_cmds=
5330 cygwin* | mingw* | pw32*)
5331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5332 # When not using gcc, we currently assume that we are using
5333 # Microsoft Visual C++.
5334 if test "$GCC" != yes; then
5344 if test "$with_gnu_ld" = yes; then
5345 # If archive_cmds runs LD, not CC, wlarc should be empty
5348 # See if GNU ld supports shared libraries.
5350 aix3* | aix4* | aix5*)
5351 # On AIX, the GNU linker is very broken
5352 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5356 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5357 *** to be unable to reliably create shared libraries on AIX.
5358 *** Therefore, libtool is disabling shared libraries support. If you
5359 *** really care for shared libraries, you may want to modify your PATH
5360 *** so that a non-GNU linker is found, and then restart.
5366 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)'
5367 hardcode_libdir_flag_spec='-L$libdir'
5368 hardcode_minus_L=yes
5370 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5371 # that the semantics of dynamic libraries on AmigaOS, at least up
5372 # to version 4, is to share data among multiple programs linked
5373 # with the same dynamic library. Since this doesn't match the
5374 # behavior of shared libraries on other platforms, we can use
5380 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5381 allow_undefined_flag=unsupported
5382 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5383 # support --undefined. This deserves some investigation. FIXME
5384 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5390 cygwin* | mingw* | pw32*)
5391 # hardcode_libdir_flag_spec is actually meaningless, as there is
5392 # no search path for DLLs.
5393 hardcode_libdir_flag_spec='-L$libdir'
5394 allow_undefined_flag=unsupported
5395 always_export_symbols=yes
5397 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5398 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5399 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5400 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5401 else $CC -o impgen impgen.c ; fi)~
5402 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5404 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5406 # cygwin and mingw dlls have different entry points and sets of symbols
5408 # FIXME: what about values for MSVC?
5409 dll_entry=__cygwin_dll_entry@12
5410 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5414 dll_entry=_DllMainCRTStartup@12
5415 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5419 # mingw and cygwin differ, and it's simplest to just exclude the union
5420 # of the two symbol sets.
5421 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5423 # recent cygwin and mingw systems supply a stub DllMain which the user
5424 # can override, but on older systems we have to supply one (in ltdll.c)
5425 if test "x$lt_cv_need_dllmain" = "xyes"; then
5426 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5427 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~
5428 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5434 # Extract the symbol export list from an `--export-all' def file,
5435 # then regenerate the def file from the symbol export list, so that
5436 # the compiled dll only exports the symbol export list.
5437 # Be careful not to strip the DATA tag left be newer dlltools.
5438 export_symbols_cmds="$ltdll_cmds"'
5439 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5440 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5442 # If the export-symbols file already is a .def file (1st line
5443 # is EXPORTS), use it as is.
5444 # If DATA tags from a recent dlltool are present, honour them!
5445 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5446 cp $export_symbols $output_objdir/$soname-def;
5448 echo EXPORTS > $output_objdir/$soname-def;
5450 cat $export_symbols | while read symbol; do
5453 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
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
5566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5567 aix_use_runtimelinking=yes
5573 exp_sym_flag='-bexport'
5574 no_entry_flag='-bnoentry'
5577 # When large executables or shared objects are built, AIX ld can
5578 # have problems creating the table of contents. If linking a library
5579 # or program results in "error TOC overflow" add -mminimal-toc to
5580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5585 hardcode_libdir_separator=':'
5586 if test "$GCC" = yes; then
5587 case $host_os in aix4.[012]|aix4.[012].*)
5588 collect2name=`${CC} -print-prog-name=collect2`
5589 if test -f "$collect2name" && \
5590 strings "$collect2name" | grep resolve_lib_name >/dev/null
5592 # We have reworked collect2
5595 # We have old collect2
5596 hardcode_direct=unsupported
5597 # It fails to find uninstalled libraries when the uninstalled
5598 # path is not listed in the libpath. Setting hardcode_minus_L
5599 # to unsupported forces relinking
5600 hardcode_minus_L=yes
5601 hardcode_libdir_flag_spec='-L$libdir'
5602 hardcode_libdir_separator=
5606 shared_flag='-shared'
5609 if test "$host_cpu" = ia64; then
5610 shared_flag='${wl}-G'
5612 if test "$aix_use_runtimelinking" = yes; then
5613 shared_flag='${wl}-G'
5615 shared_flag='${wl}-bM:SRE'
5620 # It seems that -bexpall can do strange things, so it is better to
5621 # generate a list of symbols to export.
5622 always_export_symbols=yes
5623 if test "$aix_use_runtimelinking" = yes; then
5624 # Warning - without using the other runtime loading flags (-brtl),
5625 # -berok will link without error, but may produce a broken library.
5626 allow_undefined_flag='-berok'
5627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5628 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"
5630 if test "$host_cpu" = ia64; then
5631 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5632 allow_undefined_flag="-z nodefs"
5633 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"
5635 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5636 # Warning - without using the other run time loading flags,
5637 # -berok will link without error, but may produce a broken library.
5638 allow_undefined_flag='${wl}-berok'
5639 # This is a bit strange, but is similar to how AIX traditionally builds
5640 # it's shared libraries.
5641 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'
5647 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)'
5648 hardcode_libdir_flag_spec='-L$libdir'
5649 hardcode_minus_L=yes
5650 # see comment about different semantics on the GNU ld section
5654 cygwin* | mingw* | pw32*)
5655 # When not using gcc, we currently assume that we are using
5656 # Microsoft Visual C++.
5657 # hardcode_libdir_flag_spec is actually meaningless, as there is
5658 # no search path for DLLs.
5659 hardcode_libdir_flag_spec=' '
5660 allow_undefined_flag=unsupported
5661 # Tell ltmain to make .lib files, not .a files.
5663 # FIXME: Setting linknames here is a bad hack.
5664 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5665 # The linker will automatically build a .lib file if we build a DLL.
5666 old_archive_from_new_cmds='true'
5667 # FIXME: Should let the user specify the lib program.
5668 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5669 fix_srcfile_path='`cygpath -w "$srcfile"`'
5672 darwin* | rhapsody*)
5674 rhapsody* | darwin1.[012])
5675 allow_undefined_flag='-undefined suppress'
5678 allow_undefined_flag='-flat_namespace -undefined suppress'
5681 # FIXME: Relying on posixy $() will cause problems for
5682 # cross-compilation, but unfortunately the echo tests do not
5683 # yet detect zsh echo's removal of \ escapes.
5684 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5685 # We need to add '_' to the symbols in $export_symbols first
5686 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5688 hardcode_shlibpath_var=no
5689 whole_archive_flag_spec='-all_load $convenience'
5696 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5697 # support. Future versions do this automatically, but an explicit c++rt0.o
5698 # does not break anything, and helps significantly (at the cost of a little
5701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5702 hardcode_libdir_flag_spec='-R$libdir'
5704 hardcode_shlibpath_var=no
5707 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5711 hardcode_minus_L=yes
5712 hardcode_shlibpath_var=no
5715 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5717 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5718 hardcode_libdir_flag_spec='-R$libdir'
5720 hardcode_shlibpath_var=no
5723 hpux9* | hpux10* | hpux11*)
5725 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' ;;
5726 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5729 hardcode_libdir_separator=:
5731 hardcode_minus_L=yes # Not in the search PATH, but as the default
5732 # location of the library.
5733 export_dynamic_flag_spec='${wl}-E'
5737 if test "$GCC" = yes; then
5738 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'
5740 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'
5742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5743 hardcode_libdir_separator=:
5744 link_all_deplibs=yes
5748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5751 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5753 hardcode_libdir_flag_spec='-R$libdir'
5755 hardcode_shlibpath_var=no
5759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5762 hardcode_libdir_separator=:
5763 hardcode_shlibpath_var=no
5768 hardcode_shlibpath_var=no
5769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5772 export_dynamic_flag_spec='${wl}-E'
5775 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5777 hardcode_libdir_flag_spec='-R$libdir'
5780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5788 hardcode_libdir_flag_spec='-L$libdir'
5789 hardcode_minus_L=yes
5790 allow_undefined_flag=unsupported
5791 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'
5792 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5796 if test "$GCC" = yes; then
5797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5798 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'
5800 allow_undefined_flag=' -expect_unresolved \*'
5801 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'
5803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5804 hardcode_libdir_separator=:
5807 osf4* | osf5*) # as osf3* with the addition of -msym flag
5808 if test "$GCC" = yes; then
5809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5810 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'
5811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5813 allow_undefined_flag=' -expect_unresolved \*'
5814 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'
5815 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5816 $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'
5818 #Both c and cxx compiler support -rpath directly
5819 hardcode_libdir_flag_spec='-rpath $libdir'
5821 hardcode_libdir_separator=:
5825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5826 hardcode_shlibpath_var=no
5827 runpath_var=LD_RUN_PATH
5828 hardcode_runpath_var=yes
5829 export_dynamic_flag_spec='${wl}-Bexport'
5833 # gcc --version < 3.0 without binutils cannot create self contained
5834 # shared libraries reliably, requiring libgcc.a to resolve some of
5835 # the object symbols generated in some cases. Libraries that use
5836 # assert need libgcc.a to resolve __eprintf, for example. Linking
5837 # a copy of libgcc.a into every shared library to guarantee resolving
5838 # such symbols causes other problems: According to Tim Van Holder
5839 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5840 # (to the application) exception stack for one thing.
5841 no_undefined_flag=' -z defs'
5842 if test "$GCC" = yes; then
5843 case `$CC --version 2>/dev/null` in
5847 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5848 *** create self contained shared libraries on Solaris systems, without
5849 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5850 *** -no-undefined support, which will at least allow you to build shared
5851 *** libraries. However, you may find that when you link such libraries
5852 *** into an application without using GCC, you have to manually add
5853 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5854 *** upgrade to a newer version of GCC. Another option is to rebuild your
5855 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5862 # $CC -shared without GNU ld will not create a library from C++
5863 # object files and a static libstdc++, better avoid it by now
5864 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5865 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5867 hardcode_libdir_flag_spec='-R$libdir'
5868 hardcode_shlibpath_var=no
5870 solaris2.[0-5] | solaris2.[0-5].*) ;;
5871 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5872 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5874 link_all_deplibs=yes
5878 if test "x$host_vendor" = xsequent; then
5879 # Use $CC to link under sequent, because it throws in some extra .o
5880 # files that make .init and .fini sections work.
5881 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5885 hardcode_libdir_flag_spec='-L$libdir'
5887 hardcode_minus_L=yes
5888 hardcode_shlibpath_var=no
5892 if test "x$host_vendor" = xsno; then
5893 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5894 hardcode_direct=yes # is this really true???
5896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5897 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5899 runpath_var='LD_RUN_PATH'
5900 hardcode_shlibpath_var=no
5904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5905 hardcode_shlibpath_var=no
5906 export_dynamic_flag_spec='-Bexport'
5910 no_undefined_flag=' -z text'
5911 # $CC -shared without GNU ld will not create a library from C++
5912 # object files and a static libstdc++, better avoid it by now
5913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5914 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5916 hardcode_libdir_flag_spec=
5917 hardcode_shlibpath_var=no
5918 runpath_var='LD_RUN_PATH'
5922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5923 hardcode_libdir_flag_spec='-L$libdir'
5924 hardcode_shlibpath_var=no
5928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5929 hardcode_libdir_flag_spec='-L$libdir'
5930 hardcode_shlibpath_var=no
5934 if test -d /usr/nec; then
5935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936 hardcode_shlibpath_var=no
5937 runpath_var=LD_RUN_PATH
5938 hardcode_runpath_var=yes
5944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5947 hardcode_shlibpath_var=no
5948 hardcode_runpath_var=yes
5949 runpath_var=LD_RUN_PATH
5952 sysv5uw7* | unixware7*)
5953 no_undefined_flag='${wl}-z ${wl}text'
5954 if test "$GCC" = yes; then
5955 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5957 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5959 runpath_var='LD_RUN_PATH'
5960 hardcode_shlibpath_var=no
5968 echo "$ac_t""$ld_shlibs" 1>&6
5969 test "$ld_shlibs" = no && can_build_shared=no
5971 # Check hardcoding attributes.
5972 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5973 echo "configure:5974: checking how to hardcode library paths into programs" >&5
5975 if test -n "$hardcode_libdir_flag_spec" || \
5976 test -n "$runpath_var"; then
5978 # We can hardcode non-existant directories.
5979 if test "$hardcode_direct" != no &&
5980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5981 # have to relink, otherwise we might link with an installed library
5982 # when we should be linking with a yet-to-be-installed one
5983 ## test "$hardcode_shlibpath_var" != no &&
5984 test "$hardcode_minus_L" != no; then
5985 # Linking always hardcodes the temporary library directory.
5986 hardcode_action=relink
5988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5989 hardcode_action=immediate
5992 # We cannot hardcode anything, or else we can only hardcode existing
5994 hardcode_action=unsupported
5996 echo "$ac_t""$hardcode_action" 1>&6
6000 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6001 echo "configure:6002: checking whether stripping libraries is possible" >&5
6002 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6003 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6004 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6005 echo "$ac_t""yes" 1>&6
6007 echo "$ac_t""no" 1>&6
6010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6013 # PORTME Fill in your ld.so characteristics
6014 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6015 echo "configure:6016: checking dynamic linker characteristics" >&5
6017 libname_spec='lib$name'
6024 shlibpath_overrides_runpath=unknown
6026 dynamic_linker="$host_os ld.so"
6027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6033 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6034 shlibpath_var=LIBPATH
6036 # AIX has no versioning support, so we append a major version to the name.
6037 soname_spec='${libname}${release}.so$major'
6042 if test "$host_cpu" = ia64; then
6043 # AIX 5 supports IA64
6044 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6045 shlibpath_var=LD_LIBRARY_PATH
6047 # With GCC up to 2.95.x, collect2 would create an import file
6048 # for dependence libraries. The import file would start with
6049 # the line `#! .'. This would cause the generated library to
6050 # depend on `.', always an invalid library. This was fixed in
6051 # development snapshots of GCC prior to 3.0.
6053 aix4 | aix4.[01] | aix4.[01].*)
6054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6056 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6063 # AIX (on Power*) has no versioning support, so currently we can
6064 # not hardcode correct soname into executable. Probably we can
6065 # add versioning support to collect2, so additional links can
6066 # be useful in future.
6067 if test "$aix_use_runtimelinking" = yes; then
6068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6069 # instead of lib<name>.a to let people know that these are not
6070 # typical AIX shared libraries.
6071 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6073 # We preserve .a as extension for shared libraries through AIX4.2
6074 # and later when we are not doing run time linking.
6075 library_names_spec='${libname}${release}.a $libname.a'
6076 soname_spec='${libname}${release}.so$major'
6078 shlibpath_var=LIBPATH
6083 library_names_spec='$libname.ixlibrary $libname.a'
6084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6085 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'
6089 library_names_spec='${libname}.so'
6090 dynamic_linker="$host_os ld.so"
6091 shlibpath_var=LIBRARY_PATH
6097 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6098 soname_spec='${libname}${release}.so$major'
6099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6100 shlibpath_var=LD_LIBRARY_PATH
6101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6103 export_dynamic_flag_spec=-rdynamic
6104 # the default ld.so.conf also contains /usr/contrib/lib and
6105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6106 # libtool to hard-code these into programs
6109 cygwin* | mingw* | pw32*)
6110 version_type=windows
6113 case $GCC,$host_os in
6115 library_names_spec='$libname.dll.a'
6116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6117 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6118 dldir=$destdir/`dirname \$dlpath`~
6119 test -d \$dldir || mkdir -p \$dldir~
6120 $install_prog .libs/$dlname \$dldir/$dlname'
6121 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6122 dlpath=$dir/\$dldll~
6126 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6133 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6136 dynamic_linker='Win32 ld.exe'
6137 # FIXME: first we should search . and the directory the executable is in
6141 darwin* | rhapsody*)
6142 dynamic_linker="$host_os dyld"
6146 # FIXME: Relying on posixy $() will cause problems for
6147 # cross-compilation, but unfortunately the echo tests do not
6148 # yet detect zsh echo's removal of \ escapes.
6149 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)'
6150 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6151 shlibpath_overrides_runpath=yes
6152 shlibpath_var=DYLD_LIBRARY_PATH
6160 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6161 version_type=freebsd-$objformat
6162 case $version_type in
6164 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6169 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6173 shlibpath_var=LD_LIBRARY_PATH
6176 shlibpath_overrides_runpath=yes
6179 shlibpath_overrides_runpath=no
6180 hardcode_into_libs=yes
6189 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6190 soname_spec='${libname}${release}.so$major'
6191 shlibpath_var=LD_LIBRARY_PATH
6192 hardcode_into_libs=yes
6195 hpux9* | hpux10* | hpux11*)
6196 # Give a soname corresponding to the major version so that dld.sl refuses to
6197 # link against other versions.
6198 dynamic_linker="$host_os dld.sl"
6202 shlibpath_var=SHLIB_PATH
6203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6204 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6205 soname_spec='${libname}${release}.sl$major'
6206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6207 postinstall_cmds='chmod 555 $lib'
6214 soname_spec='${libname}${release}.so$major'
6215 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6221 case $LD in # libtool.m4 will add one of these switches to LD
6222 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6223 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6224 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6225 *) libsuff= shlibsuff= libmagic=never-match;;
6229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6230 shlibpath_overrides_runpath=no
6231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6235 # No shared lib support for Linux oldld, aout, or coff.
6236 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6240 # This must be Linux ELF.
6245 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6246 soname_spec='${libname}${release}.so$major'
6247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6248 shlibpath_var=LD_LIBRARY_PATH
6249 shlibpath_overrides_runpath=no
6250 # This implies no fast_install, which is unacceptable.
6251 # Some rework will be needed to allow for fast_install
6252 # before this can be enabled.
6253 hardcode_into_libs=yes
6255 # We used to test for /lib/ld.so.1 and disable shared libraries on
6256 # powerpc, because MkLinux only supported shared libraries with the
6257 # GNU dynamic linker. Since this was broken with cross compilers,
6258 # most powerpc-linux boxes support dynamic linking these days and
6259 # people can always --disable-shared, the test was removed, and we
6260 # assume the GNU/Linux dynamic linker is in use.
6261 dynamic_linker='GNU/Linux ld.so'
6268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6269 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6271 dynamic_linker='NetBSD (a.out) ld.so'
6273 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6274 soname_spec='${libname}${release}.so$major'
6275 dynamic_linker='NetBSD ld.elf_so'
6277 shlibpath_var=LD_LIBRARY_PATH
6278 shlibpath_overrides_runpath=yes
6279 hardcode_into_libs=yes
6284 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6285 shlibpath_var=LD_LIBRARY_PATH
6286 shlibpath_overrides_runpath=yes
6293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6295 openbsd2.[89] | openbsd2.[89].*)
6296 shlibpath_overrides_runpath=no
6299 shlibpath_overrides_runpath=yes
6303 shlibpath_overrides_runpath=yes
6305 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6307 shlibpath_var=LD_LIBRARY_PATH
6311 libname_spec='$name'
6313 library_names_spec='$libname.dll $libname.a'
6314 dynamic_linker='OS/2 ld.exe'
6315 shlibpath_var=LIBPATH
6318 osf3* | osf4* | osf5*)
6321 soname_spec='${libname}${release}.so'
6322 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6323 shlibpath_var=LD_LIBRARY_PATH
6324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6330 soname_spec='${libname}${release}.so$major'
6331 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6332 shlibpath_var=LD_LIBRARY_PATH
6339 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6340 soname_spec='${libname}${release}.so$major'
6341 shlibpath_var=LD_LIBRARY_PATH
6342 shlibpath_overrides_runpath=yes
6343 hardcode_into_libs=yes
6344 # ldd complains unless libraries are executable
6345 postinstall_cmds='chmod +x $lib'
6350 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6352 shlibpath_var=LD_LIBRARY_PATH
6353 shlibpath_overrides_runpath=yes
6354 if test "$with_gnu_ld" = yes; then
6360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6362 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6363 soname_spec='${libname}${release}.so$major'
6364 shlibpath_var=LD_LIBRARY_PATH
6365 case $host_vendor in
6367 shlibpath_overrides_runpath=no
6372 shlibpath_overrides_runpath=no
6373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6381 soname_spec='${libname}${release}.so$major'
6382 shlibpath_var=LD_LIBRARY_PATH
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6390 soname_spec='${libname}${release}.so$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6395 if test -d /usr/nec ;then
6397 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6398 soname_spec='$libname.so.$major'
6399 shlibpath_var=LD_LIBRARY_PATH
6407 echo "$ac_t""$dynamic_linker" 1>&6
6408 test "$dynamic_linker" = no && can_build_shared=no
6410 # Report the final consequences.
6411 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6412 echo "configure:6413: checking if libtool supports shared libraries" >&5
6413 echo "$ac_t""$can_build_shared" 1>&6
6415 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6416 echo "configure:6417: checking whether to build shared libraries" >&5
6417 test "$can_build_shared" = "no" && enable_shared=no
6419 # On AIX, shared libraries and static libraries use the same namespace, and
6420 # are all built from PIC.
6423 test "$enable_shared" = yes && enable_static=no
6424 if test -n "$RANLIB"; then
6425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6426 postinstall_cmds='$RANLIB $lib'
6431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6432 test "$enable_shared" = yes && enable_static=no
6436 echo "$ac_t""$enable_shared" 1>&6
6438 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6439 echo "configure:6440: checking whether to build static libraries" >&5
6440 # Make sure either enable_shared or enable_static is yes.
6441 test "$enable_shared" = yes || enable_static=yes
6442 echo "$ac_t""$enable_static" 1>&6
6444 if test "$hardcode_action" = relink; then
6445 # Fast installation is not supported
6446 enable_fast_install=no
6447 elif test "$shlibpath_overrides_runpath" = yes ||
6448 test "$enable_shared" = no; then
6449 # Fast installation is not necessary
6450 enable_fast_install=needless
6453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6454 if test "$GCC" = yes; then
6455 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6458 if test "x$enable_dlopen" != xyes; then
6459 enable_dlopen=unknown
6460 enable_dlopen_self=unknown
6461 enable_dlopen_self_static=unknown
6468 lt_cv_dlopen="load_add_on"
6470 lt_cv_dlopen_self=yes
6473 cygwin* | mingw* | pw32*)
6474 lt_cv_dlopen="LoadLibrary"
6479 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6480 echo "configure:6481: checking for shl_load" >&5
6481 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char shl_load(); below. */
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6498 /* The GNU C library defines this for functions which it implements
6499 to always fail with ENOSYS. Some functions are actually named
6500 something starting with __ and the normal name is an alias. */
6501 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6509 if { (eval echo configure:6510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6511 eval "ac_cv_func_shl_load=yes"
6513 echo "configure: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6516 eval "ac_cv_func_shl_load=no"
6521 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6522 echo "$ac_t""yes" 1>&6
6523 lt_cv_dlopen="shl_load"
6525 echo "$ac_t""no" 1>&6
6526 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6527 echo "configure:6528: checking for shl_load in -ldld" >&5
6528 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6
6532 ac_save_LIBS="$LIBS"
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6548 eval "ac_cv_lib_$ac_lib_var=yes"
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 eval "ac_cv_lib_$ac_lib_var=no"
6556 LIBS="$ac_save_LIBS"
6559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6563 echo "$ac_t""no" 1>&6
6564 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6565 echo "configure:6566: checking for dlopen" >&5
6566 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6567 echo $ac_n "(cached) $ac_c" 1>&6
6569 cat > conftest.$ac_ext <<EOF
6570 #line 6571 "configure"
6571 #include "confdefs.h"
6572 /* System header to define __stub macros and hopefully few prototypes,
6573 which can conflict with char dlopen(); below. */
6575 /* Override any gcc2 internal prototype to avoid an error. */
6576 /* We use char because int might match the return type of a gcc2
6577 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6596 eval "ac_cv_func_dlopen=yes"
6598 echo "configure: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6601 eval "ac_cv_func_dlopen=no"
6606 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6607 echo "$ac_t""yes" 1>&6
6608 lt_cv_dlopen="dlopen"
6610 echo "$ac_t""no" 1>&6
6611 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6612 echo "configure:6613: checking for dlopen in -ldl" >&5
6613 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6614 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 ac_save_LIBS="$LIBS"
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 eval "ac_cv_lib_$ac_lib_var=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_lib_$ac_lib_var=no"
6641 LIBS="$ac_save_LIBS"
6644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6648 echo "$ac_t""no" 1>&6
6649 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6650 echo "configure:6651: checking for dlopen in -lsvld" >&5
6651 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 ac_save_LIBS="$LIBS"
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6671 eval "ac_cv_lib_$ac_lib_var=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 eval "ac_cv_lib_$ac_lib_var=no"
6679 LIBS="$ac_save_LIBS"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6686 echo "$ac_t""no" 1>&6
6687 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6688 echo "configure:6689: checking for dld_link in -ldld" >&5
6689 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6690 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 ac_save_LIBS="$LIBS"
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_lib_$ac_lib_var=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_lib_$ac_lib_var=no"
6717 LIBS="$ac_save_LIBS"
6720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6724 echo "$ac_t""no" 1>&6
6745 if test "x$lt_cv_dlopen" != xno; then
6751 case $lt_cv_dlopen in
6753 save_CPPFLAGS="$CPPFLAGS"
6754 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6756 save_LDFLAGS="$LDFLAGS"
6757 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6760 LIBS="$lt_cv_dlopen_libs $LIBS"
6762 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6763 echo "configure:6764: checking whether a program can dlopen itself" >&5
6764 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6767 if test "$cross_compiling" = yes; then :
6768 lt_cv_dlopen_self=cross
6770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6771 lt_status=$lt_dlunknown
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6783 # define LT_DLGLOBAL RTLD_GLOBAL
6786 # define LT_DLGLOBAL DL_GLOBAL
6788 # define LT_DLGLOBAL 0
6792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6793 find out it does not work in some platform. */
6794 #ifndef LT_DLLAZY_OR_NOW
6796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6799 # define LT_DLLAZY_OR_NOW DL_LAZY
6802 # define LT_DLLAZY_OR_NOW RTLD_NOW
6805 # define LT_DLLAZY_OR_NOW DL_NOW
6807 # define LT_DLLAZY_OR_NOW 0
6815 extern "C" void exit (int);
6818 void fnord() { int i=42;}
6821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6822 int status = $lt_dlunknown;
6826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6828 /* dlclose (self); */
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6835 (./conftest; exit; ) 2>/dev/null
6838 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6839 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6840 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6843 # compilation failed
6844 lt_cv_dlopen_self=no
6852 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6854 if test "x$lt_cv_dlopen_self" = xyes; then
6855 LDFLAGS="$LDFLAGS $link_static_flag"
6856 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6857 echo "configure:6858: checking whether a statically linked program can dlopen itself" >&5
6858 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 if test "$cross_compiling" = yes; then :
6862 lt_cv_dlopen_self_static=cross
6864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6865 lt_status=$lt_dlunknown
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6877 # define LT_DLGLOBAL RTLD_GLOBAL
6880 # define LT_DLGLOBAL DL_GLOBAL
6882 # define LT_DLGLOBAL 0
6886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6887 find out it does not work in some platform. */
6888 #ifndef LT_DLLAZY_OR_NOW
6890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6893 # define LT_DLLAZY_OR_NOW DL_LAZY
6896 # define LT_DLLAZY_OR_NOW RTLD_NOW
6899 # define LT_DLLAZY_OR_NOW DL_NOW
6901 # define LT_DLLAZY_OR_NOW 0
6909 extern "C" void exit (int);
6912 void fnord() { int i=42;}
6915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6916 int status = $lt_dlunknown;
6920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6921 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6922 /* dlclose (self); */
6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6929 (./conftest; exit; ) 2>/dev/null
6932 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6933 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6934 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6937 # compilation failed
6938 lt_cv_dlopen_self_static=no
6946 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6949 CPPFLAGS="$save_CPPFLAGS"
6950 LDFLAGS="$save_LDFLAGS"
6955 case $lt_cv_dlopen_self in
6956 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6957 *) enable_dlopen_self=unknown ;;
6960 case $lt_cv_dlopen_self_static in
6961 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6962 *) enable_dlopen_self_static=unknown ;;
6967 if test "$enable_shared" = yes && test "$GCC" = yes; then
6968 case $archive_cmds in
6970 # FIXME: we may have to deal with multi-command sequences.
6973 # Test whether the compiler implicitly links with -lc since on some
6974 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6975 # to ld, don't add -lc before -lgcc.
6976 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6977 echo "configure:6978: checking whether -lc should be explicitly linked in" >&5
6978 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6982 echo 'static int dummy;' > conftest.$ac_ext
6984 if { (eval echo configure:6985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6987 libobjs=conftest.$ac_objext
6989 wl=$lt_cv_prog_cc_wl
6995 save_allow_undefined_flag=$allow_undefined_flag
6996 allow_undefined_flag=
6997 if { (eval echo configure:6998: \"$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; }
6999 lt_cv_archive_cmds_need_lc=no
7001 lt_cv_archive_cmds_need_lc=yes
7003 allow_undefined_flag=$save_allow_undefined_flag
7005 cat conftest.err 1>&5
7009 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7013 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7015 # The second clause should only fire when bootstrapping the
7016 # libtool distribution, otherwise you forgot to ship ltmain.sh
7017 # with your package, and you will get complaints that there are
7018 # no rules to generate ltmain.sh.
7019 if test -f "$ltmain"; then
7022 # If there is no Makefile yet, we rely on a make rule to execute
7023 # `config.status --recheck' to rerun these tests and create the
7024 # libtool script then.
7025 test -f Makefile && make "$ltmain"
7028 if test -f "$ltmain"; then
7029 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7032 echo creating $ofile
7034 # Now quote all the things that may contain metacharacters while being
7035 # careful not to overquote the AC_SUBSTed values. We take copies of the
7036 # variables and quote the copies for generation of the libtool script.
7037 for var in echo old_CC old_CFLAGS \
7038 AR AR_FLAGS CC LD LN_S NM SHELL \
7039 reload_flag reload_cmds wl \
7040 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7041 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7042 library_names_spec soname_spec \
7043 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7044 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7045 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7046 old_striplib striplib file_magic_cmd export_symbols_cmds \
7047 deplibs_check_method allow_undefined_flag no_undefined_flag \
7048 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7049 global_symbol_to_c_name_address \
7050 hardcode_libdir_flag_spec hardcode_libdir_separator \
7051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7052 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7055 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7056 old_postinstall_cmds | old_postuninstall_cmds | \
7057 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7058 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7059 postinstall_cmds | postuninstall_cmds | \
7060 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7061 # Double-quote double-evaled strings.
7062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7070 cat <<__EOF__ > "${ofile}T"
7073 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7074 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7075 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7077 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7078 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7080 # This program is free software; you can redistribute it and/or modify
7081 # it under the terms of the GNU General Public License as published by
7082 # the Free Software Foundation; either version 2 of the License, or
7083 # (at your option) any later version.
7085 # This program is distributed in the hope that it will be useful, but
7086 # WITHOUT ANY WARRANTY; without even the implied warranty of
7087 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7088 # General Public License for more details.
7090 # You should have received a copy of the GNU General Public License
7091 # along with this program; if not, write to the Free Software
7092 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7094 # As a special exception to the GNU General Public License, if you
7095 # distribute this file as part of a program that contains a
7096 # configuration script generated by Autoconf, you may include it under
7097 # the same distribution terms that you use for the rest of that program.
7099 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7100 Xsed="sed -e s/^X//"
7102 # The HP-UX ksh and POSIX shell print the target directory to stdout
7104 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7106 # ### BEGIN LIBTOOL CONFIG
7108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7110 # Shell to use when invoking shell scripts.
7113 # Whether or not to build shared libraries.
7114 build_libtool_libs=$enable_shared
7116 # Whether or not to build static libraries.
7117 build_old_libs=$enable_static
7119 # Whether or not to add -lc for building shared libraries.
7120 build_libtool_need_lc=$need_lc
7122 # Whether or not to optimize for fast installation.
7123 fast_install=$enable_fast_install
7126 host_alias=$host_alias
7129 # An echo program that does not interpret backslashes.
7134 AR_FLAGS=$lt_AR_FLAGS
7136 # The default C compiler.
7139 # Is the compiler the GNU C compiler?
7142 # The linker used to build libraries.
7145 # Whether we need hard or soft links.
7148 # A BSD-compatible nm program.
7151 # A symbol stripping program
7154 # Used to examine libraries when file_magic_cmd begins "file"
7155 MAGIC_CMD=$MAGIC_CMD
7157 # Used on cygwin: DLL creation program.
7160 # Used on cygwin: object dumper.
7163 # Used on cygwin: assembler.
7166 # The name of the directory that contains temporary libtool files.
7169 # How to create reloadable object files.
7170 reload_flag=$lt_reload_flag
7171 reload_cmds=$lt_reload_cmds
7173 # How to pass a linker flag through the compiler.
7176 # Object file suffix (normally "o").
7179 # Old archive suffix (normally "a").
7182 # Executable file suffix (normally "").
7185 # Additional compiler flags for building library objects.
7186 pic_flag=$lt_pic_flag
7189 # Does compiler simultaneously support -c and -o options?
7190 compiler_c_o=$lt_compiler_c_o
7192 # Can we write directly to a .lo ?
7193 compiler_o_lo=$lt_compiler_o_lo
7195 # Must we lock files when doing compilation ?
7196 need_locks=$lt_need_locks
7198 # Do we need the lib prefix for modules?
7199 need_lib_prefix=$need_lib_prefix
7201 # Do we need a version for libraries?
7202 need_version=$need_version
7204 # Whether dlopen is supported.
7205 dlopen_support=$enable_dlopen
7207 # Whether dlopen of programs is supported.
7208 dlopen_self=$enable_dlopen_self
7210 # Whether dlopen of statically linked programs is supported.
7211 dlopen_self_static=$enable_dlopen_self_static
7213 # Compiler flag to prevent dynamic linking.
7214 link_static_flag=$lt_link_static_flag
7216 # Compiler flag to turn off builtin functions.
7217 no_builtin_flag=$lt_no_builtin_flag
7219 # Compiler flag to allow reflexive dlopens.
7220 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7222 # Compiler flag to generate shared objects directly from archives.
7223 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7225 # Compiler flag to generate thread-safe objects.
7226 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7228 # Library versioning type.
7229 version_type=$version_type
7231 # Format of library name prefix.
7232 libname_spec=$lt_libname_spec
7234 # List of archive names. First name is the real one, the rest are links.
7235 # The last name is the one that the linker finds with -lNAME.
7236 library_names_spec=$lt_library_names_spec
7238 # The coded name of the library, if different from the real name.
7239 soname_spec=$lt_soname_spec
7241 # Commands used to build and install an old-style archive.
7243 old_archive_cmds=$lt_old_archive_cmds
7244 old_postinstall_cmds=$lt_old_postinstall_cmds
7245 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7247 # Create an old-style archive from a shared archive.
7248 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7250 # Create a temporary old-style archive to link instead of a shared archive.
7251 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7253 # Commands used to build and install a shared archive.
7254 archive_cmds=$lt_archive_cmds
7255 archive_expsym_cmds=$lt_archive_expsym_cmds
7256 postinstall_cmds=$lt_postinstall_cmds
7257 postuninstall_cmds=$lt_postuninstall_cmds
7259 # Commands to strip libraries.
7260 old_striplib=$lt_old_striplib
7261 striplib=$lt_striplib
7263 # Method to check whether dependent libraries are shared objects.
7264 deplibs_check_method=$lt_deplibs_check_method
7266 # Command to use when deplibs_check_method == file_magic.
7267 file_magic_cmd=$lt_file_magic_cmd
7269 # Flag that allows shared libraries with undefined symbols to be built.
7270 allow_undefined_flag=$lt_allow_undefined_flag
7272 # Flag that forces no undefined symbols.
7273 no_undefined_flag=$lt_no_undefined_flag
7275 # Commands used to finish a libtool library installation in a directory.
7276 finish_cmds=$lt_finish_cmds
7278 # Same as above, but a single script fragment to be evaled but not shown.
7279 finish_eval=$lt_finish_eval
7281 # Take the output of nm and produce a listing of raw symbols and C names.
7282 global_symbol_pipe=$lt_global_symbol_pipe
7284 # Transform the output of nm in a proper C declaration
7285 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7287 # Transform the output of nm in a C name address pair
7288 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7290 # This is the shared library runtime path variable.
7291 runpath_var=$runpath_var
7293 # This is the shared library path variable.
7294 shlibpath_var=$shlibpath_var
7296 # Is shlibpath searched before the hard-coded library search path?
7297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7299 # How to hardcode a shared library path into an executable.
7300 hardcode_action=$hardcode_action
7302 # Whether we should hardcode library paths into libraries.
7303 hardcode_into_libs=$hardcode_into_libs
7305 # Flag to hardcode \$libdir into a binary during linking.
7306 # This must work even if \$libdir does not exist.
7307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7309 # Whether we need a single -rpath flag with a separated argument.
7310 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7312 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7314 hardcode_direct=$hardcode_direct
7316 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7318 hardcode_minus_L=$hardcode_minus_L
7320 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7321 # the resulting binary.
7322 hardcode_shlibpath_var=$hardcode_shlibpath_var
7324 # Variables whose values should be saved in libtool wrapper scripts and
7325 # restored at relink time.
7326 variables_saved_for_relink="$variables_saved_for_relink"
7328 # Whether libtool must link a program against all its dependency libraries.
7329 link_all_deplibs=$link_all_deplibs
7331 # Compile-time system search path for libraries
7332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7334 # Run-time system search path for libraries
7335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7337 # Fix the shell variable \$srcfile for the compiler.
7338 fix_srcfile_path="$fix_srcfile_path"
7340 # Set to yes if exported symbols are required.
7341 always_export_symbols=$always_export_symbols
7343 # The commands to list exported symbols.
7344 export_symbols_cmds=$lt_export_symbols_cmds
7346 # The commands to extract the exported symbol list from a shared archive.
7347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7349 # Symbols that should not be listed in the preloaded symbols.
7350 exclude_expsyms=$lt_exclude_expsyms
7352 # Symbols that must always be exported.
7353 include_expsyms=$lt_include_expsyms
7355 # ### END LIBTOOL CONFIG
7361 cat <<\EOF >> "${ofile}T"
7363 # AIX sometimes has problems with the GCC collect2 program. For some
7364 # reason, if we set the COLLECT_NAMES environment variable, the problems
7365 # vanish in a puff of smoke.
7366 if test "X${COLLECT_NAMES+set}" != Xset; then
7368 export COLLECT_NAMES
7375 cygwin* | mingw* | pw32* | os2*)
7376 cat <<'EOF' >> "${ofile}T"
7377 # This is a source program that is used to create dlls on Windows
7378 # Don't remove nor modify the starting and closing comments
7379 # /* ltdll.c starts here */
7380 # #define WIN32_LEAN_AND_MEAN
7381 # #include <windows.h>
7382 # #undef WIN32_LEAN_AND_MEAN
7383 # #include <stdio.h>
7385 # #ifndef __CYGWIN__
7386 # # ifdef __CYGWIN32__
7387 # # define __CYGWIN__ __CYGWIN32__
7391 # #ifdef __cplusplus
7394 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7395 # #ifdef __cplusplus
7400 # #include <cygwin/cygwin_dll.h>
7401 # DECLARE_CYGWIN_DLL( DllMain );
7403 # HINSTANCE __hDllInstance_base;
7406 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7408 # __hDllInstance_base = hInst;
7411 # /* ltdll.c ends here */
7412 # This is a source program that is used to create import libraries
7413 # on Windows for dlls which lack them. Don't remove nor modify the
7414 # starting and closing comments
7415 # /* impgen.c starts here */
7416 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7418 # This file is part of GNU libtool.
7420 # This program is free software; you can redistribute it and/or modify
7421 # it under the terms of the GNU General Public License as published by
7422 # the Free Software Foundation; either version 2 of the License, or
7423 # (at your option) any later version.
7425 # This program is distributed in the hope that it will be useful,
7426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7428 # GNU General Public License for more details.
7430 # You should have received a copy of the GNU General Public License
7431 # along with this program; if not, write to the Free Software
7432 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7435 # #include <stdio.h> /* for printf() */
7436 # #include <unistd.h> /* for open(), lseek(), read() */
7437 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7438 # #include <string.h> /* for strdup() */
7440 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7442 # #define O_BINARY 0
7445 # static unsigned int
7446 # pe_get16 (fd, offset)
7450 # unsigned char b[2];
7451 # lseek (fd, offset, SEEK_SET);
7453 # return b[0] + (b[1]<<8);
7456 # static unsigned int
7457 # pe_get32 (fd, offset)
7461 # unsigned char b[4];
7462 # lseek (fd, offset, SEEK_SET);
7464 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7467 # static unsigned int
7471 # unsigned char *b = ptr;
7472 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7481 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7482 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7483 # unsigned long name_rvas, nexp;
7484 # unsigned char *expdata, *erva;
7485 # char *filename, *dll_name;
7487 # filename = argv[1];
7489 # dll = open(filename, O_RDONLY|O_BINARY);
7493 # dll_name = filename;
7495 # for (i=0; filename[i]; i++)
7496 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7497 # dll_name = filename + i +1;
7499 # pe_header_offset = pe_get32 (dll, 0x3c);
7500 # opthdr_ofs = pe_header_offset + 4 + 20;
7501 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7503 # if (num_entries < 1) /* no exports */
7506 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7507 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7508 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7509 # secptr = (pe_header_offset + 4 + 20 +
7510 # pe_get16 (dll, pe_header_offset + 4 + 16));
7513 # for (i = 0; i < nsections; i++)
7516 # unsigned long secptr1 = secptr + 40 * i;
7517 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7518 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7519 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7520 # lseek(dll, secptr1, SEEK_SET);
7521 # read(dll, sname, 8);
7522 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7524 # expptr = fptr + (export_rva - vaddr);
7525 # if (export_rva + export_size > vaddr + vsize)
7526 # export_size = vsize - (export_rva - vaddr);
7531 # expdata = (unsigned char*)malloc(export_size);
7532 # lseek (dll, expptr, SEEK_SET);
7533 # read (dll, expdata, export_size);
7534 # erva = expdata - export_rva;
7536 # nexp = pe_as32 (expdata+24);
7537 # name_rvas = pe_as32 (expdata+32);
7539 # printf ("EXPORTS\n");
7540 # for (i = 0; i<nexp; i++)
7542 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7543 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7548 # /* impgen.c ends here */
7554 # We use sed instead of cat because bash on DJGPP gets confused if
7555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7556 # text mode, it properly converts lines to CR/LF. This bash problem
7557 # is reportedly fixed, but why not run on old versions too?
7558 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7560 mv -f "${ofile}T" "$ofile" || \
7561 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7569 # This can be used to rebuild libtool when needed
7570 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7572 # Always use our own libtool.
7573 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7575 # Prevent multiple expansion
7579 for ac_prog in mawk gawk nawk awk
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_word" >&5
7585 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 if test -n "$AWK"; then
7589 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7593 for ac_dir in $ac_dummy; do
7594 test -z "$ac_dir" && ac_dir=.
7595 if test -f $ac_dir/$ac_word; then
7596 ac_cv_prog_AWK="$ac_prog"
7603 AWK="$ac_cv_prog_AWK"
7604 if test -n "$AWK"; then
7605 echo "$ac_t""$AWK" 1>&6
7607 echo "$ac_t""no" 1>&6
7610 test -n "$AWK" && break
7613 # test for ln hardlink support
7614 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7615 echo "configure:7616: checking whether ln works" >&5
7616 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 rm -f conftest.src conftest.dst
7620 echo "conftest" > conftest.src
7621 if ln conftest.src conftest.dst 2>/dev/null
7623 ol_cv_prog_LN_H="ln"
7625 ol_cv_prog_LN_H="cp"
7627 rm -f conftest.src conftest.dst
7630 LN_H="$ol_cv_prog_LN_H"
7631 if test "$ol_cv_prog_LN_H" = "ln"; then
7632 echo "$ac_t""yes" 1>&6
7634 echo "$ac_t""no" 1>&6
7637 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7638 echo "configure:7639: checking whether ln -s works" >&5
7639 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7643 if ln -s X conftestdata 2>/dev/null
7646 ac_cv_prog_LN_S="ln -s"
7651 LN_S="$ac_cv_prog_LN_S"
7652 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7653 echo "$ac_t""yes" 1>&6
7655 echo "$ac_t""no" 1>&6
7659 # Extract the first word of "sendmail", so it can be a program name with args.
7660 set dummy sendmail; ac_word=$2
7661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7662 echo "configure:7663: checking for $ac_word" >&5
7663 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7668 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7671 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7675 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7676 for ac_dir in $ac_dummy; do
7677 test -z "$ac_dir" && ac_dir=.
7678 if test -f $ac_dir/$ac_word; then
7679 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7684 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7688 SENDMAIL="$ac_cv_path_SENDMAIL"
7689 if test -n "$SENDMAIL"; then
7690 echo "$ac_t""$SENDMAIL" 1>&6
7692 echo "$ac_t""no" 1>&6
7695 # Extract the first word of "vi", so it can be a program name with args.
7696 set dummy vi; ac_word=$2
7697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7698 echo "configure:7699: checking for $ac_word" >&5
7699 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7704 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7707 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7711 ac_dummy="$PATH:/usr/ucb"
7712 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f $ac_dir/$ac_word; then
7715 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7720 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7724 EDITOR="$ac_cv_path_EDITOR"
7725 if test -n "$EDITOR"; then
7726 echo "$ac_t""$EDITOR" 1>&6
7728 echo "$ac_t""no" 1>&6
7733 if test $ol_enable_perl != no ; then
7734 # Extract the first word of "perl", so it can be a program name with args.
7735 set dummy perl; ac_word=$2
7736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_word" >&5
7738 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7743 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7746 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7751 for ac_dir in $ac_dummy; do
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/$ac_word; then
7754 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7759 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7763 PERLBIN="$ac_cv_path_PERLBIN"
7764 if test -n "$PERLBIN"; then
7765 echo "$ac_t""$PERLBIN" 1>&6
7767 echo "$ac_t""no" 1>&6
7771 if test "no$PERLBIN" = "no" ; then
7772 if test $ol_enable_perl = yes ; then
7773 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7777 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7778 if test x"$ol_with_perl_module" = "xstatic" ; then
7779 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7781 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7787 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7788 echo "configure:7789: checking how to run the C preprocessor" >&5
7789 # On Suns, sometimes $CPP names a directory.
7790 if test -n "$CPP" && test -d "$CPP"; then
7793 if test -z "$CPP"; then
7794 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 # This must be in double quotes, not single quotes, because CPP may get
7798 # substituted into the Makefile and "${CC-cc}" will confuse make.
7800 # On the NeXT, cc -E runs the code through the compiler's parser,
7801 # not just through cpp.
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7809 { (eval echo configure:7810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7811 if test -z "$ac_err"; then
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 CPP="${CC-cc} -E -traditional-cpp"
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7826 { (eval echo configure:7827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7828 if test -z "$ac_err"; then
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7835 CPP="${CC-cc} -nologo -E"
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7843 { (eval echo configure:7844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7845 if test -z "$ac_err"; then
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7859 ac_cv_prog_CPP="$CPP"
7861 CPP="$ac_cv_prog_CPP"
7863 ac_cv_prog_CPP="$CPP"
7865 echo "$ac_t""$CPP" 1>&6
7868 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7869 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7871 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7872 echo "configure: warning: programs compiled here do run here..." 1>&2
7873 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7875 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7876 echo "configure: warning: programs compiled here do not run here..." 1>&2
7877 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7882 echo "configure:7883: checking for Cygwin environment" >&5
7883 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7884 echo $ac_n "(cached) $ac_c" 1>&6
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7893 #define __CYGWIN__ __CYGWIN32__
7898 if { (eval echo configure:7899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7910 echo "$ac_t""$ac_cv_cygwin" 1>&6
7912 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7913 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7914 echo "configure:7915: checking for mingw32 environment" >&5
7915 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6
7918 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7926 if { (eval echo configure:7927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7938 echo "$ac_t""$ac_cv_mingw32" 1>&6
7940 test "$ac_cv_mingw32" = yes && MINGW32=yes
7944 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7945 echo "configure:7946: checking for executable suffix" >&5
7946 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7949 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7953 echo 'int main () { return 0; }' > conftest.$ac_ext
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7956 for file in conftest.*; do
7958 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7959 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7963 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7966 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7971 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7972 echo "$ac_t""${ac_cv_exeext}" 1>&6
7975 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7976 echo "configure:7977: checking for object suffix" >&5
7977 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7981 echo 'int i = 1;' > conftest.$ac_ext
7982 if { (eval echo configure:7983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7983 for ac_file in conftest.*; do
7986 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7990 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7995 echo "$ac_t""$ac_cv_objext" 1>&6
7996 OBJEXT=$ac_cv_objext
7997 ac_objext=$ac_cv_objext
8000 cat >> confdefs.h <<EOF
8001 #define EXEEXT "${EXEEXT}"
8005 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8006 echo "configure:8007: checking for be_app in -lbe" >&5
8007 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8008 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 ac_save_LIBS="$LIBS"
8012 LIBS="-lbe -lroot -lnet $LIBS"
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8025 if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8027 eval "ac_cv_lib_$ac_lib_var=yes"
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 eval "ac_cv_lib_$ac_lib_var=no"
8035 LIBS="$ac_save_LIBS"
8038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8039 echo "$ac_t""yes" 1>&6
8040 LIBS="$LIBS -lbe -lroot -lnet"
8042 echo "$ac_t""no" 1>&6
8050 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8051 echo "configure:8052: checking for ${CC-cc} option to accept ANSI C" >&5
8052 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8055 am_cv_prog_cc_stdc=no
8057 # Don't try gcc -ansi; that turns off useful extensions and
8058 # breaks some systems' header files.
8059 # AIX -qlanglvl=ansi
8060 # Ultrix and OSF/1 -std1
8061 # HP-UX 10.20 and later -Ae
8062 # HP-UX older versions -Aa -D_HPUX_SOURCE
8063 # SVR4 -Xc -D__EXTENSIONS__
8064 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8066 CC="$ac_save_CC $ac_arg"
8067 cat > conftest.$ac_ext <<EOF
8068 #line 8069 "configure"
8069 #include "confdefs.h"
8072 #include <sys/types.h>
8073 #include <sys/stat.h>
8074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8075 struct buf { int x; };
8076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8077 static char *e (p, i)
8083 static char *f (char * (*g) (char **, int), char **p, ...)
8088 s = g (p, va_arg (v,int));
8092 int test (int i, double x);
8093 struct s1 {int (*f) (int a);};
8094 struct s2 {int (*f) (double a);};
8095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8105 if { (eval echo configure:8106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8107 am_cv_prog_cc_stdc="$ac_arg"; break
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8118 if test -z "$am_cv_prog_cc_stdc"; then
8119 echo "$ac_t""none needed" 1>&6
8121 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8123 case "x$am_cv_prog_cc_stdc" in
8125 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8128 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8129 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8132 # test for make depend flag
8135 if test -z "${MKDEP}"; then
8137 if test -z "${MKDEP_FLAGS}"; then
8138 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8139 echo "configure:8140: checking for ${OL_MKDEP} depend flag" >&5
8140 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8145 for flag in "-M" "-xM"; do
8146 cat > conftest.c <<EOF
8149 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8150 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8152 if test ! -f conftest."${ac_object}" ; then
8154 OL_MKDEP_FLAGS="$flag"
8163 echo "$ac_t""$ol_cv_mkdep" 1>&6
8166 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8171 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8176 if test "${ol_cv_mkdep}" = no ; then
8177 # this will soon become an error
8178 echo "configure: warning: do not know how to generate dependencies" 1>&2
8181 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8182 echo "configure:8183: checking for afopen in -ls" >&5
8183 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8184 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8187 ac_save_LIBS="$LIBS"
8189 cat > conftest.$ac_ext <<EOF
8190 #line 8191 "configure"
8191 #include "confdefs.h"
8192 /* Override any gcc2 internal prototype to avoid an error. */
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8201 if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8203 eval "ac_cv_lib_$ac_lib_var=yes"
8205 echo "configure: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8208 eval "ac_cv_lib_$ac_lib_var=no"
8211 LIBS="$ac_save_LIBS"
8214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8215 echo "$ac_t""yes" 1>&6
8218 cat >> confdefs.h <<\EOF
8219 #define HAVE_AIX_SECURITY 1
8224 echo "$ac_t""no" 1>&6
8230 if test $ol_enable_modules != no ; then
8231 for ac_hdr in ltdl.h
8233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8235 echo "configure:8236: checking for $ac_hdr" >&5
8236 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8245 { (eval echo configure:8246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8247 if test -z "$ac_err"; then
8249 eval "ac_cv_header_$ac_safe=yes"
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 eval "ac_cv_header_$ac_safe=no"
8259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8262 cat >> confdefs.h <<EOF
8263 #define $ac_tr_hdr 1
8267 echo "$ac_t""no" 1>&6
8272 if test $ac_cv_header_ltdl_h = no ; then
8273 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8276 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8277 echo "configure:8278: checking for lt_dlinit in -lltdl" >&5
8278 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8279 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
8282 ac_save_LIBS="$LIBS"
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8287 /* Override any gcc2 internal prototype to avoid an error. */
8288 /* We use char because int might match the return type of a gcc2
8289 builtin and then its argument prototype would still apply. */
8296 if { (eval echo configure:8297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8298 eval "ac_cv_lib_$ac_lib_var=yes"
8300 echo "configure: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8303 eval "ac_cv_lib_$ac_lib_var=no"
8306 LIBS="$ac_save_LIBS"
8309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8310 echo "$ac_t""yes" 1>&6
8313 cat >> confdefs.h <<\EOF
8314 #define HAVE_LIBLTDL 1
8319 echo "$ac_t""no" 1>&6
8323 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8324 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8328 ol_with_bdb_module=static
8329 ol_with_dnssrv_module=static
8330 ol_with_ldap_module=static
8331 ol_with_ldbm_module=static
8332 ol_with_meta_module=static
8333 ol_with_monitor_module=static
8334 ol_with_null_module=static
8335 ol_with_passwd_module=static
8336 ol_with_perl_module=static
8337 ol_with_shell_module=static
8338 ol_with_sql_module=static
8342 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8343 echo "configure:8344: checking for EBCDIC" >&5
8344 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8348 cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8353 #include <__ASCII__/generate_error.h>
8357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8358 { (eval echo configure:8359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8360 if test -z "$ac_err"; then
8362 ol_cv_cpp_ebcdic=yes
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8373 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8374 if test $ol_cv_cpp_ebcdic = yes ; then
8375 cat >> confdefs.h <<\EOF
8376 #define HAVE_EBCDIC 1
8381 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8382 echo "configure:8383: checking for ANSI C header files" >&5
8383 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8395 { (eval echo configure:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8397 if test -z "$ac_err"; then
8399 ol_cv_header_stdc=yes
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8405 ol_cv_header_stdc=no
8409 if test $ol_cv_header_stdc = yes; then
8410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8417 egrep "memchr" >/dev/null 2>&1; then
8421 ol_cv_header_stdc=no
8427 if test $ol_cv_header_stdc = yes; then
8428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8435 egrep "free" >/dev/null 2>&1; then
8439 ol_cv_header_stdc=no
8445 if test $ol_cv_header_stdc = yes; then
8446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8447 if test "$cross_compiling" = yes; then
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8458 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8459 || ('j' <= (c) && (c) <= 'r') \
8460 || ('s' <= (c) && (c) <= 'z'))
8461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8464 int main () { int i; for (i = 0; i < 256; i++)
8465 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8469 if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8476 ol_cv_header_stdc=no
8484 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8485 if test $ol_cv_header_stdc = yes; then
8486 cat >> confdefs.h <<\EOF
8487 #define STDC_HEADERS 1
8491 ac_cv_header_stdc=disable
8494 if test $ol_cv_header_stdc != yes; then
8495 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8499 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8502 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8503 echo "configure:8504: checking for $ac_hdr that defines DIR" >&5
8504 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8505 echo $ac_n "(cached) $ac_c" 1>&6
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 #include <sys/types.h>
8516 if { (eval echo configure:8517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8518 eval "ac_cv_header_dirent_$ac_safe=yes"
8520 echo "configure: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8523 eval "ac_cv_header_dirent_$ac_safe=no"
8527 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8528 echo "$ac_t""yes" 1>&6
8529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8530 cat >> confdefs.h <<EOF
8531 #define $ac_tr_hdr 1
8533 ac_header_dirent=$ac_hdr; break
8535 echo "$ac_t""no" 1>&6
8538 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8539 if test $ac_header_dirent = dirent.h; then
8540 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8541 echo "configure:8542: checking for opendir in -ldir" >&5
8542 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8543 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8544 echo $ac_n "(cached) $ac_c" 1>&6
8546 ac_save_LIBS="$LIBS"
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 /* Override any gcc2 internal prototype to avoid an error. */
8552 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8560 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8562 eval "ac_cv_lib_$ac_lib_var=yes"
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8567 eval "ac_cv_lib_$ac_lib_var=no"
8570 LIBS="$ac_save_LIBS"
8573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8574 echo "$ac_t""yes" 1>&6
8577 echo "$ac_t""no" 1>&6
8581 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8582 echo "configure:8583: checking for opendir in -lx" >&5
8583 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8587 ac_save_LIBS="$LIBS"
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_lib_$ac_lib_var=no"
8611 LIBS="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8618 echo "$ac_t""no" 1>&6
8623 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8624 echo "configure:8625: checking for sys/wait.h that is POSIX.1 compatible" >&5
8625 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 #include <sys/types.h>
8632 #include <sys/wait.h>
8634 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8637 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8642 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8645 if { (eval echo configure:8646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8647 ac_cv_header_sys_wait_h=yes
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 ac_cv_header_sys_wait_h=no
8657 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8658 if test $ac_cv_header_sys_wait_h = yes; then
8659 cat >> confdefs.h <<\EOF
8660 #define HAVE_SYS_WAIT_H 1
8665 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8666 echo "configure:8667: checking POSIX termios" >&5
8667 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8668 echo $ac_n "(cached) $ac_c" 1>&6
8670 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure"
8672 #include "confdefs.h"
8673 #include <sys/types.h>
8675 #include <termios.h>
8677 /* SunOS 4.0.3 has termios.h but not the library calls. */
8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8683 am_cv_sys_posix_termios=yes
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8688 am_cv_sys_posix_termios=no
8693 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8696 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8697 echo "configure:8698: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8698 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8701 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8703 gwinsz_in_termios_h=no
8704 if test $am_cv_sys_posix_termios = yes; then
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 #include <sys/types.h>
8709 # include <termios.h>
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716 egrep "yes" >/dev/null 2>&1; then
8718 gwinsz_in_termios_h=yes
8724 if test $gwinsz_in_termios_h = no; then
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 #include <sys/types.h>
8729 # include <sys/ioctl.h>
8735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8736 egrep "yes" >/dev/null 2>&1; then
8738 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8746 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8747 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8748 cat >> confdefs.h <<\EOF
8749 #define GWINSZ_IN_SYS_IOCTL 1
8754 if test $am_cv_sys_posix_termios = yes ; then
8755 cat >> confdefs.h <<\EOF
8756 #define HAVE_POSIX_TERMIOS 1
8808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8810 echo "configure:8811: checking for $ac_hdr" >&5
8811 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8820 { (eval echo configure:8821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8822 if test -z "$ac_err"; then
8824 eval "ac_cv_header_$ac_safe=yes"
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 eval "ac_cv_header_$ac_safe=no"
8834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8835 echo "$ac_t""yes" 1>&6
8836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8837 cat >> confdefs.h <<EOF
8838 #define $ac_tr_hdr 1
8842 echo "$ac_t""no" 1>&6
8849 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8850 echo "configure:8851: checking for dlopen" >&5
8851 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 /* System header to define __stub macros and hopefully few prototypes,
8858 which can conflict with char dlopen(); below. */
8860 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8868 /* The GNU C library defines this for functions which it implements
8869 to always fail with ENOSYS. Some functions are actually named
8870 something starting with __ and the normal name is an alias. */
8871 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 eval "ac_cv_func_dlopen=yes"
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8886 eval "ac_cv_func_dlopen=no"
8891 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8895 echo "$ac_t""no" 1>&6
8896 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8897 echo "configure:8898: checking for dlopen in -ldl" >&5
8898 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8902 ac_save_LIBS="$LIBS"
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8918 eval "ac_cv_lib_$ac_lib_var=yes"
8920 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8923 eval "ac_cv_lib_$ac_lib_var=no"
8926 LIBS="$ac_save_LIBS"
8929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8930 echo "$ac_t""yes" 1>&6
8931 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8933 cat >> confdefs.h <<EOF
8934 #define $ac_tr_lib 1
8940 echo "$ac_t""no" 1>&6
8946 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8947 echo "configure:8948: checking for sigset in -lV3" >&5
8948 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8949 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8950 echo $ac_n "(cached) $ac_c" 1>&6
8952 ac_save_LIBS="$LIBS"
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 /* Override any gcc2 internal prototype to avoid an error. */
8958 /* We use char because int might match the return type of a gcc2
8959 builtin and then its argument prototype would still apply. */
8966 if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8968 eval "ac_cv_lib_$ac_lib_var=yes"
8970 echo "configure: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8973 eval "ac_cv_lib_$ac_lib_var=no"
8976 LIBS="$ac_save_LIBS"
8979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8981 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8982 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8983 cat >> confdefs.h <<EOF
8984 #define $ac_tr_lib 1
8990 echo "$ac_t""no" 1>&6
8994 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8995 echo "configure:8996: checking for winsock" >&5
8997 for curlib in ws2_32 wsock32; do
8998 LIBS="$LIBS -l$curlib"
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9005 char closesocket@4();
9006 char gethostname@8();
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9028 if test $have_winsock = yes; then
9029 cat >> confdefs.h <<\EOF
9030 #define HAVE_WINSOCK 1
9033 ac_cv_func_socket=yes
9034 ac_cv_func_select=yes
9035 ac_cv_func_closesocket=yes
9036 ac_cv_func_gethostname=yes
9037 if test $curlib = ws2_32; then
9038 have_winsock=winsock2
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_WINSOCK2 1
9048 echo "$ac_t""$have_winsock" 1>&6
9051 echo $ac_n "checking for socket""... $ac_c" 1>&6
9052 echo "configure:9053: checking for socket" >&5
9053 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9056 cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059 /* System header to define __stub macros and hopefully few prototypes,
9060 which can conflict with char socket(); below. */
9062 /* Override any gcc2 internal prototype to avoid an error. */
9063 /* We use char because int might match the return type of a gcc2
9064 builtin and then its argument prototype would still apply. */
9070 /* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073 #if defined (__stub_socket) || defined (__stub___socket)
9081 if { (eval echo configure:9082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9083 eval "ac_cv_func_socket=yes"
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9088 eval "ac_cv_func_socket=no"
9093 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9094 echo "$ac_t""yes" 1>&6
9097 echo "$ac_t""no" 1>&6
9099 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9100 echo "configure:9101: checking for main in -lsocket" >&5
9101 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9102 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9105 ac_save_LIBS="$LIBS"
9106 LIBS="-lsocket $LIBS"
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 eval "ac_cv_lib_$ac_lib_var=yes"
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 eval "ac_cv_lib_$ac_lib_var=no"
9125 LIBS="$ac_save_LIBS"
9128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9130 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9131 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9132 cat >> confdefs.h <<EOF
9133 #define $ac_tr_lib 1
9136 LIBS="-lsocket $LIBS"
9139 echo "$ac_t""no" 1>&6
9142 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9143 echo "configure:9144: checking for main in -lnet" >&5
9144 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9145 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9148 ac_save_LIBS="$LIBS"
9150 cat > conftest.$ac_ext <<EOF
9151 #line 9152 "configure"
9152 #include "confdefs.h"
9158 if { (eval echo configure:9159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9160 eval "ac_cv_lib_$ac_lib_var=yes"
9162 echo "configure: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 eval "ac_cv_lib_$ac_lib_var=no"
9168 LIBS="$ac_save_LIBS"
9171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9172 echo "$ac_t""yes" 1>&6
9173 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9175 cat >> confdefs.h <<EOF
9176 #define $ac_tr_lib 1
9182 echo "$ac_t""no" 1>&6
9185 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9186 echo "configure:9187: checking for main in -lnsl_s" >&5
9187 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9188 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9189 echo $ac_n "(cached) $ac_c" 1>&6
9191 ac_save_LIBS="$LIBS"
9192 LIBS="-lnsl_s $LIBS"
9193 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9203 eval "ac_cv_lib_$ac_lib_var=yes"
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 eval "ac_cv_lib_$ac_lib_var=no"
9211 LIBS="$ac_save_LIBS"
9214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9216 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9217 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9218 cat >> confdefs.h <<EOF
9219 #define $ac_tr_lib 1
9222 LIBS="-lnsl_s $LIBS"
9225 echo "$ac_t""no" 1>&6
9228 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9229 echo "configure:9230: checking for main in -lnsl" >&5
9230 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9231 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9234 ac_save_LIBS="$LIBS"
9236 cat > conftest.$ac_ext <<EOF
9237 #line 9238 "configure"
9238 #include "confdefs.h"
9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 eval "ac_cv_lib_$ac_lib_var=yes"
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 eval "ac_cv_lib_$ac_lib_var=no"
9254 LIBS="$ac_save_LIBS"
9257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9258 echo "$ac_t""yes" 1>&6
9259 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9261 cat >> confdefs.h <<EOF
9262 #define $ac_tr_lib 1
9268 echo "$ac_t""no" 1>&6
9271 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9272 echo "configure:9273: checking for socket in -linet" >&5
9273 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9274 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9275 echo $ac_n "(cached) $ac_c" 1>&6
9277 ac_save_LIBS="$LIBS"
9279 cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure"
9281 #include "confdefs.h"
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9291 if { (eval echo configure:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9293 eval "ac_cv_lib_$ac_lib_var=yes"
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9298 eval "ac_cv_lib_$ac_lib_var=no"
9301 LIBS="$ac_save_LIBS"
9304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9305 echo "$ac_t""yes" 1>&6
9306 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9308 cat >> confdefs.h <<EOF
9309 #define $ac_tr_lib 1
9315 echo "$ac_t""no" 1>&6
9318 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9319 echo "configure:9320: checking for main in -lgen" >&5
9320 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9324 ac_save_LIBS="$LIBS"
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_lib_$ac_lib_var=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_lib_$ac_lib_var=no"
9344 LIBS="$ac_save_LIBS"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9348 echo "$ac_t""yes" 1>&6
9349 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9351 cat >> confdefs.h <<EOF
9352 #define $ac_tr_lib 1
9358 echo "$ac_t""no" 1>&6
9365 echo $ac_n "checking for select""... $ac_c" 1>&6
9366 echo "configure:9367: checking for select" >&5
9367 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 /* System header to define __stub macros and hopefully few prototypes,
9374 which can conflict with char select(); below. */
9376 /* Override any gcc2 internal prototype to avoid an error. */
9377 /* We use char because int might match the return type of a gcc2
9378 builtin and then its argument prototype would still apply. */
9384 /* The GNU C library defines this for functions which it implements
9385 to always fail with ENOSYS. Some functions are actually named
9386 something starting with __ and the normal name is an alias. */
9387 #if defined (__stub_select) || defined (__stub___select)
9395 if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9397 eval "ac_cv_func_select=yes"
9399 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9402 eval "ac_cv_func_select=no"
9407 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9408 echo "$ac_t""yes" 1>&6
9411 echo "$ac_t""no" 1>&6
9412 { echo "configure: error: select() required." 1>&2; exit 1; }
9416 if test "${ac_cv_header_winsock_h}" != yes; then
9417 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9418 echo "configure:9419: checking types of arguments for select()" >&5
9419 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9422 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9423 echo $ac_n "(cached) $ac_c" 1>&6
9425 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9426 echo $ac_n "(cached) $ac_c" 1>&6
9428 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9429 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9430 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9431 cat > conftest.$ac_ext <<EOF
9432 #line 9433 "configure"
9433 #include "confdefs.h"
9434 #ifdef HAVE_SYS_TYPES_H
9435 #include <sys/types.h>
9437 #ifdef HAVE_SYS_TIME_H
9438 #include <sys/time.h>
9440 #ifdef HAVE_SYS_SELECT_H
9441 #include <sys/select.h>
9443 #ifdef HAVE_SYS_SOCKET_H
9444 #include <sys/socket.h>
9446 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);
9451 if { (eval echo configure:9452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9453 ac_not_found=no ; break 3
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9470 if test "$ac_not_found" = yes; then
9471 ac_cv_func_select_arg1=int
9472 ac_cv_func_select_arg234='int *'
9473 ac_cv_func_select_arg5='struct timeval *'
9475 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9476 cat >> confdefs.h <<EOF
9477 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9480 cat >> confdefs.h <<EOF
9481 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9484 cat >> confdefs.h <<EOF
9485 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9492 for ac_hdr in regex.h
9494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9496 echo "configure:9497: checking for $ac_hdr" >&5
9497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9500 cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9506 { (eval echo configure:9507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9508 if test -z "$ac_err"; then
9510 eval "ac_cv_header_$ac_safe=yes"
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 eval "ac_cv_header_$ac_safe=no"
9520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9523 cat >> confdefs.h <<EOF
9524 #define $ac_tr_hdr 1
9528 echo "$ac_t""no" 1>&6
9532 if test "$ac_cv_header_regex_h" != yes ; then
9533 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9536 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9537 echo "configure:9538: checking for library containing regfree" >&5
9538 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9541 ac_func_search_save_LIBS="$LIBS"
9542 ac_cv_search_regfree="no"
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 /* Override any gcc2 internal prototype to avoid an error. */
9547 /* We use char because int might match the return type of a gcc2
9548 builtin and then its argument prototype would still apply. */
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9557 ac_cv_search_regfree="none required"
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9563 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 /* We use char because int might match the return type of a gcc2
9570 builtin and then its argument prototype would still apply. */
9577 if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9579 ac_cv_search_regfree="-l$ac_lib"
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9587 LIBS="$ac_func_search_save_LIBS"
9590 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9591 if test "$ac_cv_search_regfree" != "no"; then
9592 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9595 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9599 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9600 echo "configure:9601: checking for compatible POSIX regex" >&5
9601 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9605 if test "$cross_compiling" = yes; then
9606 ol_cv_c_posix_regex=cross
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9612 #include <sys/types.h>
9614 static char *pattern, *string;
9622 if(regcomp(&re, pattern, 0)) {
9626 string = "ALL MATCH";
9628 rc = regexec(&re, string, 0, (void*)0, 0);
9635 if { (eval echo configure:9636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9637 ol_cv_c_posix_regex=yes
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9642 ol_cv_c_posix_regex=no
9649 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9651 if test "$ol_cv_c_posix_regex" = no ; then
9652 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9657 for ac_hdr in sys/uuid.h
9659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9661 echo "configure:9662: checking for $ac_hdr" >&5
9662 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9671 { (eval echo configure:9672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9673 if test -z "$ac_err"; then
9675 eval "ac_cv_header_$ac_safe=yes"
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 eval "ac_cv_header_$ac_safe=no"
9685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9686 echo "$ac_t""yes" 1>&6
9687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9688 cat >> confdefs.h <<EOF
9689 #define $ac_tr_hdr 1
9693 echo "$ac_t""no" 1>&6
9697 if test $ac_cv_header_sys_uuid_h = yes ; then
9700 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9701 echo "configure:9702: checking for library containing uuid_to_str" >&5
9702 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9705 ac_func_search_save_LIBS="$LIBS"
9706 ac_cv_search_uuid_to_str="no"
9707 cat > conftest.$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 /* Override any gcc2 internal prototype to avoid an error. */
9711 /* We use char because int might match the return type of a gcc2
9712 builtin and then its argument prototype would still apply. */
9719 if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9721 ac_cv_search_uuid_to_str="none required"
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9727 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9729 cat > conftest.$ac_ext <<EOF
9730 #line 9731 "configure"
9731 #include "confdefs.h"
9732 /* Override any gcc2 internal prototype to avoid an error. */
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9741 if { (eval echo configure:9742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9743 ac_cv_search_uuid_to_str="-l$ac_lib"
9746 echo "configure: failed program was:" >&5
9747 cat conftest.$ac_ext >&5
9751 LIBS="$ac_func_search_save_LIBS"
9754 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9755 if test "$ac_cv_search_uuid_to_str" != "no"; then
9756 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9763 if test have_uuid = yes ; then
9764 cat >> confdefs.h <<\EOF
9765 #define HAVE_UUID_TO_STR 1
9769 test "$ac_cv_search_uuid_to_str" = "none required" || \
9770 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9774 if test $have_uuid = no ; then
9775 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9776 echo "configure:9777: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9778 LIBS="$LIBS -lrpcrt4"
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9783 char UuidCreate@4();
9784 char UuidToStringA@8();
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9803 if test $need_rpcrt = yes; then
9804 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9807 echo "$ac_t""$need_rpcrt" 1>&6
9811 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9812 echo "configure:9813: checking for res_query" >&5
9813 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9814 echo $ac_n "(cached) $ac_c" 1>&6
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819 /* System header to define __stub macros and hopefully few prototypes,
9820 which can conflict with char res_query(); below. */
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9830 /* The GNU C library defines this for functions which it implements
9831 to always fail with ENOSYS. Some functions are actually named
9832 something starting with __ and the normal name is an alias. */
9833 #if defined (__stub_res_query) || defined (__stub___res_query)
9841 if { (eval echo configure:9842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9843 eval "ac_cv_func_res_query=yes"
9845 echo "configure: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9848 eval "ac_cv_func_res_query=no"
9853 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9854 echo "$ac_t""yes" 1>&6
9857 echo "$ac_t""no" 1>&6
9860 if test $ac_cv_func_res_query = no ; then
9861 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9862 echo "configure:9863: checking for __res_query" >&5
9863 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9864 echo $ac_n "(cached) $ac_c" 1>&6
9866 cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9869 /* System header to define __stub macros and hopefully few prototypes,
9870 which can conflict with char __res_query(); below. */
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 /* We use char because int might match the return type of a gcc2
9874 builtin and then its argument prototype would still apply. */
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined (__stub___res_query) || defined (__stub_____res_query)
9891 if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9893 eval "ac_cv_func___res_query=yes"
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9898 eval "ac_cv_func___res_query=no"
9903 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9907 echo "$ac_t""no" 1>&6
9910 ac_cv_func_res_query=$ac_cv_func___res_query
9913 if test $ac_cv_func_res_query = no ; then
9914 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9915 echo "configure:9916: checking for res_query in -lbind" >&5
9916 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9917 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9918 echo $ac_n "(cached) $ac_c" 1>&6
9920 ac_save_LIBS="$LIBS"
9922 cat > conftest.$ac_ext <<EOF
9923 #line 9924 "configure"
9924 #include "confdefs.h"
9925 /* Override any gcc2 internal prototype to avoid an error. */
9926 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9934 if { (eval echo configure:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9936 eval "ac_cv_lib_$ac_lib_var=yes"
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9941 eval "ac_cv_lib_$ac_lib_var=no"
9944 LIBS="$ac_save_LIBS"
9947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9948 echo "$ac_t""yes" 1>&6
9949 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9951 cat >> confdefs.h <<EOF
9952 #define $ac_tr_lib 1
9958 echo "$ac_t""no" 1>&6
9961 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9964 if test $ac_cv_func_res_query = no ; then
9965 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9966 echo "configure:9967: checking for __res_query in -lbind" >&5
9967 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 ac_save_LIBS="$LIBS"
9973 cat > conftest.$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9976 /* Override any gcc2 internal prototype to avoid an error. */
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9985 if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9987 eval "ac_cv_lib_$ac_lib_var=yes"
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9992 eval "ac_cv_lib_$ac_lib_var=no"
9995 LIBS="$ac_save_LIBS"
9998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9999 echo "$ac_t""yes" 1>&6
10000 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10002 cat >> confdefs.h <<EOF
10003 #define $ac_tr_lib 1
10006 LIBS="-lbind $LIBS"
10009 echo "$ac_t""no" 1>&6
10012 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10015 if test $ac_cv_func_res_query = no ; then
10016 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10017 echo "configure:10018: checking for res_query in -lresolv" >&5
10018 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10019 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 ac_save_LIBS="$LIBS"
10023 LIBS="-lresolv $LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10043 eval "ac_cv_lib_$ac_lib_var=no"
10046 LIBS="$ac_save_LIBS"
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10053 cat >> confdefs.h <<EOF
10054 #define $ac_tr_lib 1
10057 LIBS="-lresolv $LIBS"
10060 echo "$ac_t""no" 1>&6
10063 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10066 if test $ac_cv_func_res_query = no ; then
10067 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10068 echo "configure:10069: checking for __res_query in -lresolv" >&5
10069 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10073 ac_save_LIBS="$LIBS"
10074 LIBS="-lresolv $LIBS"
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char __res_query();
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10089 eval "ac_cv_lib_$ac_lib_var=yes"
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 eval "ac_cv_lib_$ac_lib_var=no"
10097 LIBS="$ac_save_LIBS"
10100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10102 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10103 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10104 cat >> confdefs.h <<EOF
10105 #define $ac_tr_lib 1
10108 LIBS="-lresolv $LIBS"
10111 echo "$ac_t""no" 1>&6
10114 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10117 if test "$ac_cv_func_res_query" = yes ; then
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_RES_QUERY 1
10123 if test $ol_enable_dnssrv != no ; then
10128 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10129 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10132 for ac_func in getaddrinfo gai_strerror inet_ntop
10134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10135 echo "configure:10136: checking for $ac_func" >&5
10136 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 /* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char $ac_func(); below. */
10144 #include <assert.h>
10145 /* Override any gcc2 internal prototype to avoid an error. */
10146 /* We use char because int might match the return type of a gcc2
10147 builtin and then its argument prototype would still apply. */
10153 /* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10164 if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10166 eval "ac_cv_func_$ac_func=yes"
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10171 eval "ac_cv_func_$ac_func=no"
10176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10177 echo "$ac_t""yes" 1>&6
10178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10179 cat >> confdefs.h <<EOF
10180 #define $ac_tr_func 1
10184 echo "$ac_t""no" 1>&6
10190 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10191 if test $ol_enable_ipv6 = yes ; then
10192 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10194 elif test $ol_enable_ipv6 != no ; then
10195 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10196 echo "configure:10197: checking INET6_ADDRSTRLEN" >&5
10197 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10205 # include <netinet/in.h>
10206 # ifdef INET6_ADDRSTRLEN
10207 __has_inet6_addrstrlen__;
10211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10212 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10214 ol_cv_inet6_addrstrlen=yes
10217 ol_cv_inet6_addrstrlen=no
10223 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10225 if test $ol_cv_inet6_addrstrlen = yes ; then
10227 elif test $ol_enable_ipv6 = yes ; then
10228 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10232 if test $ol_enable_local != no ; then
10233 for ac_hdr in sys/un.h
10235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10237 echo "configure:10238: checking for $ac_hdr" >&5
10238 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10239 echo $ac_n "(cached) $ac_c" 1>&6
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10247 { (eval echo configure:10248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10249 if test -z "$ac_err"; then
10251 eval "ac_cv_header_$ac_safe=yes"
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10257 eval "ac_cv_header_$ac_safe=no"
10261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10262 echo "$ac_t""yes" 1>&6
10263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10264 cat >> confdefs.h <<EOF
10265 #define $ac_tr_hdr 1
10269 echo "$ac_t""no" 1>&6
10274 if test $ol_enable_local = auto ; then
10275 ol_enable_local=$ac_cv_header_sys_un_h
10276 elif test $ac_cv_header_sys_un_h = no ; then
10277 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10286 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10287 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10288 -o $ol_with_kerberos = k425 ; then
10290 for ac_hdr in krb5.h
10292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10294 echo "configure:10295: checking for $ac_hdr" >&5
10295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10304 { (eval echo configure:10305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10306 if test -z "$ac_err"; then
10308 eval "ac_cv_header_$ac_safe=yes"
10311 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10314 eval "ac_cv_header_$ac_safe=no"
10318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10319 echo "$ac_t""yes" 1>&6
10320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10321 cat >> confdefs.h <<EOF
10322 #define $ac_tr_hdr 1
10326 echo "$ac_t""no" 1>&6
10331 if test $ac_cv_header_krb5_h = yes ; then
10332 for ac_hdr in heim_err.h
10334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10336 echo "configure:10337: checking for $ac_hdr" >&5
10337 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10338 echo $ac_n "(cached) $ac_c" 1>&6
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10346 { (eval echo configure:10347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10348 if test -z "$ac_err"; then
10350 eval "ac_cv_header_$ac_safe=yes"
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10356 eval "ac_cv_header_$ac_safe=no"
10360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10363 cat >> confdefs.h <<EOF
10364 #define $ac_tr_hdr 1
10368 echo "$ac_t""no" 1>&6
10372 if test $ac_cv_header_heim_err_h = yes ; then
10378 if test $krb5_impl = mit; then
10379 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10380 echo "configure:10381: checking for main in -lk5crypto" >&5
10381 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10382 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10383 echo $ac_n "(cached) $ac_c" 1>&6
10385 ac_save_LIBS="$LIBS"
10386 LIBS="-lk5crypto $LIBS"
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10397 eval "ac_cv_lib_$ac_lib_var=yes"
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10402 eval "ac_cv_lib_$ac_lib_var=no"
10405 LIBS="$ac_save_LIBS"
10408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10409 echo "$ac_t""yes" 1>&6
10410 krb5crypto=k5crypto
10412 echo "$ac_t""no" 1>&6
10417 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10418 echo "configure:10419: checking for main in -lkrb5" >&5
10419 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10423 ac_save_LIBS="$LIBS"
10424 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10435 eval "ac_cv_lib_$ac_lib_var=yes"
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10440 eval "ac_cv_lib_$ac_lib_var=no"
10443 LIBS="$ac_save_LIBS"
10446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10447 echo "$ac_t""yes" 1>&6
10449 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10451 echo "$ac_t""no" 1>&6
10456 elif test $krb5_impl = heimdal; then
10457 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10458 echo "configure:10459: checking for main in -ldes" >&5
10459 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10460 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10461 echo $ac_n "(cached) $ac_c" 1>&6
10463 ac_save_LIBS="$LIBS"
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475 eval "ac_cv_lib_$ac_lib_var=yes"
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10480 eval "ac_cv_lib_$ac_lib_var=no"
10483 LIBS="$ac_save_LIBS"
10486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10487 echo "$ac_t""yes" 1>&6
10490 echo "$ac_t""no" 1>&6
10495 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10496 echo "configure:10497: checking for main in -lkrb5" >&5
10497 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10501 ac_save_LIBS="$LIBS"
10502 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 eval "ac_cv_lib_$ac_lib_var=no"
10521 LIBS="$ac_save_LIBS"
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10527 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10529 echo "$ac_t""no" 1>&6
10534 cat >> confdefs.h <<\EOF
10535 #define HAVE_HEIMDAL_KERBEROS 1
10541 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10544 if test $have_krb5 = yes ; then
10547 cat >> confdefs.h <<\EOF
10548 #define HAVE_KRB5 1
10552 if test $ol_enable_kpasswd != no ; then
10553 ol_link_kpasswd=yes;
10556 if test $ol_with_kerberos = k5only ; then
10557 ol_with_kerberos=found
10560 elif test $ol_with_kerberos != auto ; then
10561 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10567 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10568 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10570 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10574 echo "configure:10575: checking for $ac_hdr" >&5
10575 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10576 echo $ac_n "(cached) $ac_c" 1>&6
10578 cat > conftest.$ac_ext <<EOF
10579 #line 10580 "configure"
10580 #include "confdefs.h"
10583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10584 { (eval echo configure:10585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10586 if test -z "$ac_err"; then
10588 eval "ac_cv_header_$ac_safe=yes"
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10594 eval "ac_cv_header_$ac_safe=no"
10598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10599 echo "$ac_t""yes" 1>&6
10600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10601 cat >> confdefs.h <<EOF
10602 #define $ac_tr_hdr 1
10606 echo "$ac_t""no" 1>&6
10611 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10612 if test $krb5_impl = mit; then
10613 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10614 echo "configure:10615: checking for main in -lkrb4" >&5
10615 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10619 ac_save_LIBS="$LIBS"
10620 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631 eval "ac_cv_lib_$ac_lib_var=yes"
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 eval "ac_cv_lib_$ac_lib_var=no"
10639 LIBS="$ac_save_LIBS"
10642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10643 echo "$ac_t""yes" 1>&6
10645 KRB4_LIBS="-lkrb4 -ldes425"
10647 echo "$ac_t""no" 1>&6
10652 elif test $krb5_impl = heimdal; then
10653 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10654 echo "configure:10655: checking for main in -lkrb4" >&5
10655 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10656 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10659 ac_save_LIBS="$LIBS"
10660 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_lib_$ac_lib_var=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_lib_$ac_lib_var=no"
10679 LIBS="$ac_save_LIBS"
10682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10683 echo "$ac_t""yes" 1>&6
10687 echo "$ac_t""no" 1>&6
10694 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10697 if test $have_k425 = yes ; then
10698 ol_with_kerberos=found
10701 cat >> confdefs.h <<\EOF
10702 #define HAVE_KRB425 1
10705 cat >> confdefs.h <<\EOF
10706 #define HAVE_KRB4 1
10710 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10711 echo "configure:10712: checking for des_debug in Kerberos libraries" >&5
10712 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10713 echo $ac_n "(cached) $ac_c" 1>&6
10717 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10722 #include <kerberosIV/krb.h>
10723 #include <kerberosIV/des.h>
10724 extern int des_debug;
10732 if { (eval echo configure:10733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10734 ol_cv_var_des_debug=yes
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10739 ol_cv_var_des_debug=no
10746 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10748 if test $ol_cv_var_des_debug = yes ; then
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_DES_DEBUG 1
10760 if test $ol_link_krb5 = yes ; then
10761 ol_with_kerberos=found
10764 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10765 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10767 for ac_hdr in krb.h des.h krb-archaeology.h
10769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10771 echo "configure:10772: checking for $ac_hdr" >&5
10772 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10773 echo $ac_n "(cached) $ac_c" 1>&6
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10781 { (eval echo configure:10782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10783 if test -z "$ac_err"; then
10785 eval "ac_cv_header_$ac_safe=yes"
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10791 eval "ac_cv_header_$ac_safe=no"
10795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10796 echo "$ac_t""yes" 1>&6
10797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10798 cat >> confdefs.h <<EOF
10799 #define $ac_tr_hdr 1
10803 echo "$ac_t""no" 1>&6
10808 if test $ac_cv_header_krb_h = yes ; then
10809 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10810 echo "configure:10811: checking for main in -lkrb" >&5
10811 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10815 ac_save_LIBS="$LIBS"
10816 LIBS="-lkrb -ldes $LIBS"
10817 cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10825 if { (eval echo configure:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10827 eval "ac_cv_lib_$ac_lib_var=yes"
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10832 eval "ac_cv_lib_$ac_lib_var=no"
10835 LIBS="$ac_save_LIBS"
10838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10839 echo "$ac_t""yes" 1>&6
10842 echo "$ac_t""no" 1>&6
10847 if test $have_k4 = yes ; then
10848 ol_with_kerberos=found
10851 cat >> confdefs.h <<\EOF
10852 #define HAVE_KRB4 1
10856 KRB4_LIBS="-lkrb -ldes"
10858 if test $ac_cv_header_krb_archaeology_h = yes ; then
10859 cat >> confdefs.h <<\EOF
10860 #define HAVE_KTH_KERBEROS 1
10868 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10869 ol_link_kpasswd=yes
10872 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10875 elif test $ol_enable_kbind = yes ; then
10876 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10879 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10880 cat >> confdefs.h <<\EOF
10881 #define HAVE_KERBEROS 1
10885 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10886 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10890 if test $ol_with_tls != no ; then
10891 for ac_hdr in openssl/ssl.h ssl.h
10893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10895 echo "configure:10896: checking for $ac_hdr" >&5
10896 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10905 { (eval echo configure:10906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10907 if test -z "$ac_err"; then
10909 eval "ac_cv_header_$ac_safe=yes"
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10915 eval "ac_cv_header_$ac_safe=no"
10919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10920 echo "$ac_t""yes" 1>&6
10921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10922 cat >> confdefs.h <<EOF
10923 #define $ac_tr_hdr 1
10927 echo "$ac_t""no" 1>&6
10932 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10933 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10934 echo "configure:10935: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10935 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10936 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10939 ac_save_LIBS="$LIBS"
10940 LIBS="-lssl -lcrypto $LIBS"
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10944 /* Override any gcc2 internal prototype to avoid an error. */
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10947 char SSLeay_add_ssl_algorithms();
10950 SSLeay_add_ssl_algorithms()
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10955 eval "ac_cv_lib_$ac_lib_var=yes"
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10960 eval "ac_cv_lib_$ac_lib_var=no"
10963 LIBS="$ac_save_LIBS"
10966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10971 echo "$ac_t""no" 1>&6
10976 if test $have_ssleay = no ; then
10977 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10978 echo "configure:10979: checking for SSL_library_init in -lssl" >&5
10979 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10980 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10983 ac_save_LIBS="$LIBS"
10984 LIBS="-lssl -lcrypto $LIBS"
10985 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10988 /* Override any gcc2 internal prototype to avoid an error. */
10989 /* We use char because int might match the return type of a gcc2
10990 builtin and then its argument prototype would still apply. */
10991 char SSL_library_init();
10997 if { (eval echo configure:10998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10999 eval "ac_cv_lib_$ac_lib_var=yes"
11001 echo "configure: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11004 eval "ac_cv_lib_$ac_lib_var=no"
11007 LIBS="$ac_save_LIBS"
11010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11015 echo "$ac_t""no" 1>&6
11021 if test $have_ssleay = no ; then
11022 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11023 echo "configure:11024: checking for ssl3_accept in -lssl" >&5
11024 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11026 echo $ac_n "(cached) $ac_c" 1>&6
11028 ac_save_LIBS="$LIBS"
11029 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11030 cat > conftest.$ac_ext <<EOF
11031 #line 11032 "configure"
11032 #include "confdefs.h"
11033 /* Override any gcc2 internal prototype to avoid an error. */
11034 /* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11036 char ssl3_accept();
11042 if { (eval echo configure:11043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11044 eval "ac_cv_lib_$ac_lib_var=yes"
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11049 eval "ac_cv_lib_$ac_lib_var=no"
11052 LIBS="$ac_save_LIBS"
11055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11056 echo "$ac_t""yes" 1>&6
11060 echo "$ac_t""no" 1>&6
11066 if test $have_ssleay = yes ; then
11070 cat >> confdefs.h <<\EOF
11071 #define HAVE_SSLEAY 1
11075 if test $need_rsaref = yes; then
11076 cat >> confdefs.h <<\EOF
11077 #define HAVE_RSAREF 1
11081 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11083 TLS_LIBS="-lssl -lcrypto"
11089 echo "configure: warning: TLS data protection not supported!" 1>&2
11092 if test $ol_link_tls = yes ; then
11093 cat >> confdefs.h <<\EOF
11098 elif test $ol_with_tls = auto ; then
11099 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11100 echo "configure: warning: TLS data protection not supported!" 1>&2
11102 elif test $ol_with_tls != no ; then
11103 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11106 if test $ol_enable_lmpasswd != no; then
11107 if test $ol_link_tls != yes ; then
11108 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11111 cat >> confdefs.h <<\EOF
11112 #define SLAPD_LMHASH 1
11119 gethostbyname_r gethostbyaddr_r \
11122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11123 echo "configure:11124: checking for $ac_func" >&5
11124 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11125 echo $ac_n "(cached) $ac_c" 1>&6
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 /* System header to define __stub macros and hopefully few prototypes,
11131 which can conflict with char $ac_func(); below. */
11132 #include <assert.h>
11133 /* Override any gcc2 internal prototype to avoid an error. */
11134 /* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11152 if { (eval echo configure:11153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11154 eval "ac_cv_func_$ac_func=yes"
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11159 eval "ac_cv_func_$ac_func=no"
11164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11165 echo "$ac_t""yes" 1>&6
11166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11167 cat >> confdefs.h <<EOF
11168 #define $ac_tr_func 1
11172 echo "$ac_t""no" 1>&6
11177 if test "$ac_cv_func_ctime_r" = no ; then
11178 ol_cv_func_ctime_r_nargs=0
11180 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11181 echo "configure:11182: checking number of arguments of ctime_r" >&5
11182 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11185 cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure"
11187 #include "confdefs.h"
11190 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11193 if { (eval echo configure:11194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11195 ol_cv_func_ctime_r_nargs3=yes
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 ol_cv_func_ctime_r_nargs3=no
11204 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11209 time_t ti; char *buffer; ctime_r(&ti,buffer);
11212 if { (eval echo configure:11213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11214 ol_cv_func_ctime_r_nargs2=yes
11216 echo "configure: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11219 ol_cv_func_ctime_r_nargs2=no
11223 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11224 $ol_cv_func_ctime_r_nargs2 = no ; then
11226 ol_cv_func_ctime_r_nargs=3
11228 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11229 $ol_cv_func_ctime_r_nargs2 = yes ; then
11231 ol_cv_func_ctime_r_nargs=2
11234 ol_cv_func_ctime_r_nargs=0
11239 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11241 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11242 cat >> confdefs.h <<EOF
11243 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11250 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11251 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11252 echo "configure:11253: checking number of arguments of gethostbyname_r" >&5
11253 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11254 echo $ac_n "(cached) $ac_c" 1>&6
11256 cat > conftest.$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 #include <sys/types.h>
11260 #include <sys/socket.h>
11261 #include <netinet/in.h>
11263 #define BUFSIZE (sizeof(struct hostent)+10)
11265 struct hostent hent; char buffer[BUFSIZE];
11266 int bufsize=BUFSIZE;int h_errno;
11267 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11268 buffer, bufsize, &h_errno);
11271 if { (eval echo configure:11272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11273 ol_cv_func_gethostbyname_r_nargs5=yes
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11278 ol_cv_func_gethostbyname_r_nargs5=no
11282 cat > conftest.$ac_ext <<EOF
11283 #line 11284 "configure"
11284 #include "confdefs.h"
11285 #include <sys/types.h>
11286 #include <sys/socket.h>
11287 #include <netinet/in.h>
11289 #define BUFSIZE (sizeof(struct hostent)+10)
11291 struct hostent hent;struct hostent *rhent;
11292 char buffer[BUFSIZE];
11293 int bufsize=BUFSIZE;int h_errno;
11294 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11298 if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11300 ol_cv_func_gethostbyname_r_nargs6=yes
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11305 ol_cv_func_gethostbyname_r_nargs6=no
11309 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11310 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11312 ol_cv_func_gethostbyname_r_nargs=5
11314 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11315 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11317 ol_cv_func_gethostbyname_r_nargs=6
11320 ol_cv_func_gethostbyname_r_nargs=0
11325 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11326 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11327 cat >> confdefs.h <<EOF
11328 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11334 ol_cv_func_gethostbyname_r_nargs=0
11337 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11338 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11339 echo "configure:11340: checking number of arguments of gethostbyaddr_r" >&5
11340 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11346 #include <sys/types.h>
11347 #include <sys/socket.h>
11348 #include <netinet/in.h>
11350 #define BUFSIZE (sizeof(struct hostent)+10)
11352 struct hostent hent; char buffer[BUFSIZE];
11353 struct in_addr add;
11354 size_t alen=sizeof(struct in_addr);
11355 int bufsize=BUFSIZE;int h_errno;
11356 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11357 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11360 if { (eval echo configure:11361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11362 ol_cv_func_gethostbyaddr_r_nargs7=yes
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11367 ol_cv_func_gethostbyaddr_r_nargs7=no
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include <sys/types.h>
11375 #include <sys/socket.h>
11376 #include <netinet/in.h>
11378 #define BUFSIZE (sizeof(struct hostent)+10)
11380 struct hostent hent;
11381 struct hostent *rhent; char buffer[BUFSIZE];
11382 struct in_addr add;
11383 size_t alen=sizeof(struct in_addr);
11384 int bufsize=BUFSIZE;int h_errno;
11385 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11386 alen, AF_INET, &hent, buffer, bufsize,
11390 if { (eval echo configure:11391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11392 ol_cv_func_gethostbyaddr_r_nargs8=yes
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 ol_cv_func_gethostbyaddr_r_nargs8=no
11401 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11402 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11404 ol_cv_func_gethostbyaddr_r_nargs=7
11406 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11407 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11409 ol_cv_func_gethostbyaddr_r_nargs=8
11412 ol_cv_func_gethostbyaddr_r_nargs=0
11417 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11418 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11419 cat >> confdefs.h <<EOF
11420 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11426 ol_cv_func_gethostbyaddr_r_nargs=0
11429 if test "$ac_cv_func_ctime_r" = yes \
11430 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11431 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11432 -a "$ac_cv_func_gethostbyname_r" = yes \
11433 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11434 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11435 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11436 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11437 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11440 cat >> confdefs.h <<\EOF
11441 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11448 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11449 -o $ol_with_threads = nt ; then
11452 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11453 echo "configure:11454: checking for _beginthread" >&5
11454 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 /* System header to define __stub macros and hopefully few prototypes,
11461 which can conflict with char _beginthread(); below. */
11462 #include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error. */
11464 /* We use char because int might match the return type of a gcc2
11465 builtin and then its argument prototype would still apply. */
11466 char _beginthread();
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11484 eval "ac_cv_func__beginthread=yes"
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11489 eval "ac_cv_func__beginthread=no"
11494 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11495 echo "$ac_t""yes" 1>&6
11498 echo "$ac_t""no" 1>&6
11502 if test $ac_cv_func__beginthread = yes ; then
11503 cat >> confdefs.h <<\EOF
11504 #define HAVE_NT_THREADS 1
11507 ol_cv_nt_threads=yes
11511 if test "$ol_cv_nt_threads" = yes ; then
11513 ol_with_threads=found
11514 ol_with_yielding_select=yes
11516 cat >> confdefs.h <<\EOF
11517 #define HAVE_NT_SERVICE_MANAGER 1
11520 cat >> confdefs.h <<\EOF
11521 #define HAVE_NT_EVENT_LOG 1
11526 if test $ol_with_threads = nt ; then
11527 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11531 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11532 -o $ol_with_threads = posix ; then
11534 for ac_hdr in pthread.h
11536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11538 echo "configure:11539: checking for $ac_hdr" >&5
11539 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11548 { (eval echo configure:11549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11550 if test -z "$ac_err"; then
11552 eval "ac_cv_header_$ac_safe=yes"
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11558 eval "ac_cv_header_$ac_safe=no"
11562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11563 echo "$ac_t""yes" 1>&6
11564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11565 cat >> confdefs.h <<EOF
11566 #define $ac_tr_hdr 1
11570 echo "$ac_t""no" 1>&6
11575 if test $ac_cv_header_pthread_h = yes ; then
11576 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11577 echo "configure:11578: checking POSIX thread version" >&5
11578 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11582 cat > conftest.$ac_ext <<EOF
11583 #line 11584 "configure"
11584 #include "confdefs.h"
11586 # include <pthread.h>
11587 /* this check could be improved */
11588 # ifdef PTHREAD_ONCE_INIT
11589 pthread_version_final;
11593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11594 egrep "pthread_version_final" >/dev/null 2>&1; then
11596 ol_pthread_final=yes
11599 ol_pthread_final=no
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11608 # include <pthread.h>
11609 /* this check could be improved */
11610 # ifdef pthread_once_init
11611 pthread_version_draft4;
11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11616 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11618 ol_pthread_draft4=yes
11621 ol_pthread_draft4=no
11626 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11627 ol_cv_pthread_version=final
11628 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11629 ol_cv_pthread_version=draft4
11631 ol_cv_pthread_version=unknown
11636 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11639 if test $ol_cv_pthread_version = final ; then
11640 cat >> confdefs.h <<\EOF
11641 #define HAVE_PTHREADS_FINAL 1
11644 elif test $ol_cv_pthread_version = draft4 ; then
11645 cat >> confdefs.h <<\EOF
11646 #define HAVE_PTHREADS_D4 1
11650 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11653 # consider threads found
11654 ol_with_threads=found
11657 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11658 echo "configure:11659: checking for LinuxThreads pthread.h" >&5
11659 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11660 echo $ac_n "(cached) $ac_c" 1>&6
11662 cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 #include <pthread.h>
11667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11668 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11670 ol_cv_header_linux_threads=yes
11673 ol_cv_header_linux_threads=no
11680 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11681 if test $ol_cv_header_linux_threads = yes; then
11682 cat >> confdefs.h <<\EOF
11683 #define HAVE_LINUX_THREADS 1
11689 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11690 echo "configure:11691: checking for GNU Pth pthread.h" >&5
11691 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11692 echo $ac_n "(cached) $ac_c" 1>&6
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11697 #include <pthread.h>
11698 #ifdef _POSIX_THREAD_IS_GNU_PTH
11703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11704 egrep "__gnu_pth__" >/dev/null 2>&1; then
11706 ol_cv_header_gnu_pth_pthread_h=yes
11709 ol_cv_header_gnu_pth_pthread_h=no
11716 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11719 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11720 for ac_hdr in sched.h
11722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11724 echo "configure:11725: checking for $ac_hdr" >&5
11725 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11728 cat > conftest.$ac_ext <<EOF
11729 #line 11730 "configure"
11730 #include "confdefs.h"
11733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11734 { (eval echo configure:11735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11736 if test -z "$ac_err"; then
11738 eval "ac_cv_header_$ac_safe=yes"
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11744 eval "ac_cv_header_$ac_safe=no"
11748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11749 echo "$ac_t""yes" 1>&6
11750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11751 cat >> confdefs.h <<EOF
11752 #define $ac_tr_hdr 1
11756 echo "$ac_t""no" 1>&6
11763 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11764 echo "configure:11765: checking for pthread_create in default libraries" >&5
11765 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11766 echo $ac_n "(cached) $ac_c" 1>&6
11769 if test "$cross_compiling" = yes; then
11770 cat > conftest.$ac_ext <<EOF
11771 #line 11772 "configure"
11772 #include "confdefs.h"
11773 /* pthread test headers */
11774 #include <pthread.h>
11776 #define NULL (void*)0
11779 static void *task(p)
11782 return (void *) (p == NULL);
11787 /* pthread test function */
11792 #ifdef HAVE_PTHREADS_FINAL
11793 /* Final pthreads */
11794 pthread_attr_t attr;
11796 status = pthread_attr_init(&attr);
11797 if( status ) return status;
11799 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11801 #if defined( PTHREAD_CREATE_JOINABLE )
11802 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11807 #ifdef PTHREAD_CREATE_DETACHED
11809 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11812 if( status ) return status;
11815 status = pthread_create( &t, &attr, task, NULL );
11816 if( status ) return status;
11818 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11820 /* give thread a chance to complete */
11821 /* it should remain joinable and hence detachable */
11824 status = pthread_detach( t );
11825 if( status ) return status;
11830 /* Draft 4 pthreads */
11831 status = pthread_create( &t, pthread_attr_default, task, NULL );
11832 if( status ) return status;
11835 /* give thread a chance to complete */
11836 /* it should remain joinable and hence detachable */
11839 status = pthread_detach( &t );
11840 if( status ) return status;
11844 #ifdef HAVE_LINUX_THREADS
11845 pthread_kill_other_threads_np();
11852 if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11854 ol_cv_pthread_create=yes
11856 echo "configure: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11859 ol_cv_pthread_create=no
11863 cat > conftest.$ac_ext <<EOF
11864 #line 11865 "configure"
11865 #include "confdefs.h"
11866 /* pthread test headers */
11867 #include <pthread.h>
11869 #define NULL (void*)0
11872 static void *task(p)
11875 return (void *) (p == NULL);
11879 int main(argc, argv)
11884 /* pthread test function */
11889 #ifdef HAVE_PTHREADS_FINAL
11890 /* Final pthreads */
11891 pthread_attr_t attr;
11893 status = pthread_attr_init(&attr);
11894 if( status ) return status;
11896 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11898 #if defined( PTHREAD_CREATE_JOINABLE )
11899 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11901 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11904 #ifdef PTHREAD_CREATE_DETACHED
11906 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11909 if( status ) return status;
11912 status = pthread_create( &t, &attr, task, NULL );
11913 if( status ) return status;
11915 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11917 /* give thread a chance to complete */
11918 /* it should remain joinable and hence detachable */
11921 status = pthread_detach( t );
11922 if( status ) return status;
11927 /* Draft 4 pthreads */
11928 status = pthread_create( &t, pthread_attr_default, task, NULL );
11929 if( status ) return status;
11932 /* give thread a chance to complete */
11933 /* it should remain joinable and hence detachable */
11936 status = pthread_detach( &t );
11937 if( status ) return status;
11941 #ifdef HAVE_LINUX_THREADS
11942 pthread_kill_other_threads_np();
11950 if { (eval echo configure:11951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11952 ol_cv_pthread_create=yes
11954 echo "configure: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11957 ol_cv_pthread_create=no
11964 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11966 if test $ol_cv_pthread_create != no ; then
11967 ol_link_threads=posix
11968 ol_link_pthreads=""
11971 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11972 if test "$ol_link_threads" = no ; then
11974 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11975 echo "configure:11976: checking for pthread link with -kthread" >&5
11976 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11982 LIBS="-kthread $LIBS"
11984 if test "$cross_compiling" = yes; then
11985 cat > conftest.$ac_ext <<EOF
11986 #line 11987 "configure"
11987 #include "confdefs.h"
11988 /* pthread test headers */
11989 #include <pthread.h>
11991 #define NULL (void*)0
11994 static void *task(p)
11997 return (void *) (p == NULL);
12002 /* pthread test function */
12007 #ifdef HAVE_PTHREADS_FINAL
12008 /* Final pthreads */
12009 pthread_attr_t attr;
12011 status = pthread_attr_init(&attr);
12012 if( status ) return status;
12014 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12016 #if defined( PTHREAD_CREATE_JOINABLE )
12017 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12019 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12022 #ifdef PTHREAD_CREATE_DETACHED
12024 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12027 if( status ) return status;
12030 status = pthread_create( &t, &attr, task, NULL );
12031 if( status ) return status;
12033 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12035 /* give thread a chance to complete */
12036 /* it should remain joinable and hence detachable */
12039 status = pthread_detach( t );
12040 if( status ) return status;
12045 /* Draft 4 pthreads */
12046 status = pthread_create( &t, pthread_attr_default, task, NULL );
12047 if( status ) return status;
12050 /* give thread a chance to complete */
12051 /* it should remain joinable and hence detachable */
12054 status = pthread_detach( &t );
12055 if( status ) return status;
12059 #ifdef HAVE_LINUX_THREADS
12060 pthread_kill_other_threads_np();
12067 if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12069 ol_cv_pthread_kthread=yes
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12074 ol_cv_pthread_kthread=no
12078 cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12081 /* pthread test headers */
12082 #include <pthread.h>
12084 #define NULL (void*)0
12087 static void *task(p)
12090 return (void *) (p == NULL);
12094 int main(argc, argv)
12099 /* pthread test function */
12104 #ifdef HAVE_PTHREADS_FINAL
12105 /* Final pthreads */
12106 pthread_attr_t attr;
12108 status = pthread_attr_init(&attr);
12109 if( status ) return status;
12111 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12113 #if defined( PTHREAD_CREATE_JOINABLE )
12114 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12116 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12119 #ifdef PTHREAD_CREATE_DETACHED
12121 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12124 if( status ) return status;
12127 status = pthread_create( &t, &attr, task, NULL );
12128 if( status ) return status;
12130 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12132 /* give thread a chance to complete */
12133 /* it should remain joinable and hence detachable */
12136 status = pthread_detach( t );
12137 if( status ) return status;
12142 /* Draft 4 pthreads */
12143 status = pthread_create( &t, pthread_attr_default, task, NULL );
12144 if( status ) return status;
12147 /* give thread a chance to complete */
12148 /* it should remain joinable and hence detachable */
12151 status = pthread_detach( &t );
12152 if( status ) return status;
12156 #ifdef HAVE_LINUX_THREADS
12157 pthread_kill_other_threads_np();
12165 if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12167 ol_cv_pthread_kthread=yes
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12172 ol_cv_pthread_kthread=no
12183 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12185 if test $ol_cv_pthread_kthread = yes ; then
12186 ol_link_pthreads="-kthread"
12187 ol_link_threads=posix
12191 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12192 if test "$ol_link_threads" = no ; then
12194 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12195 echo "configure:12196: checking for pthread link with -pthread" >&5
12196 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12202 LIBS="-pthread $LIBS"
12204 if test "$cross_compiling" = yes; then
12205 cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12208 /* pthread test headers */
12209 #include <pthread.h>
12211 #define NULL (void*)0
12214 static void *task(p)
12217 return (void *) (p == NULL);
12222 /* pthread test function */
12227 #ifdef HAVE_PTHREADS_FINAL
12228 /* Final pthreads */
12229 pthread_attr_t attr;
12231 status = pthread_attr_init(&attr);
12232 if( status ) return status;
12234 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12236 #if defined( PTHREAD_CREATE_JOINABLE )
12237 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12239 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12242 #ifdef PTHREAD_CREATE_DETACHED
12244 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12247 if( status ) return status;
12250 status = pthread_create( &t, &attr, task, NULL );
12251 if( status ) return status;
12253 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12255 /* give thread a chance to complete */
12256 /* it should remain joinable and hence detachable */
12259 status = pthread_detach( t );
12260 if( status ) return status;
12265 /* Draft 4 pthreads */
12266 status = pthread_create( &t, pthread_attr_default, task, NULL );
12267 if( status ) return status;
12270 /* give thread a chance to complete */
12271 /* it should remain joinable and hence detachable */
12274 status = pthread_detach( &t );
12275 if( status ) return status;
12279 #ifdef HAVE_LINUX_THREADS
12280 pthread_kill_other_threads_np();
12287 if { (eval echo configure:12288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12289 ol_cv_pthread_pthread=yes
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12294 ol_cv_pthread_pthread=no
12298 cat > conftest.$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301 /* pthread test headers */
12302 #include <pthread.h>
12304 #define NULL (void*)0
12307 static void *task(p)
12310 return (void *) (p == NULL);
12314 int main(argc, argv)
12319 /* pthread test function */
12324 #ifdef HAVE_PTHREADS_FINAL
12325 /* Final pthreads */
12326 pthread_attr_t attr;
12328 status = pthread_attr_init(&attr);
12329 if( status ) return status;
12331 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12333 #if defined( PTHREAD_CREATE_JOINABLE )
12334 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12336 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12339 #ifdef PTHREAD_CREATE_DETACHED
12341 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12344 if( status ) return status;
12347 status = pthread_create( &t, &attr, task, NULL );
12348 if( status ) return status;
12350 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12352 /* give thread a chance to complete */
12353 /* it should remain joinable and hence detachable */
12356 status = pthread_detach( t );
12357 if( status ) return status;
12362 /* Draft 4 pthreads */
12363 status = pthread_create( &t, pthread_attr_default, task, NULL );
12364 if( status ) return status;
12367 /* give thread a chance to complete */
12368 /* it should remain joinable and hence detachable */
12371 status = pthread_detach( &t );
12372 if( status ) return status;
12376 #ifdef HAVE_LINUX_THREADS
12377 pthread_kill_other_threads_np();
12385 if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12387 ol_cv_pthread_pthread=yes
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12392 ol_cv_pthread_pthread=no
12403 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12405 if test $ol_cv_pthread_pthread = yes ; then
12406 ol_link_pthreads="-pthread"
12407 ol_link_threads=posix
12411 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12412 if test "$ol_link_threads" = no ; then
12414 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12415 echo "configure:12416: checking for pthread link with -pthreads" >&5
12416 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12422 LIBS="-pthreads $LIBS"
12424 if test "$cross_compiling" = yes; then
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 /* pthread test headers */
12429 #include <pthread.h>
12431 #define NULL (void*)0
12434 static void *task(p)
12437 return (void *) (p == NULL);
12442 /* pthread test function */
12447 #ifdef HAVE_PTHREADS_FINAL
12448 /* Final pthreads */
12449 pthread_attr_t attr;
12451 status = pthread_attr_init(&attr);
12452 if( status ) return status;
12454 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12456 #if defined( PTHREAD_CREATE_JOINABLE )
12457 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12459 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12462 #ifdef PTHREAD_CREATE_DETACHED
12464 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12467 if( status ) return status;
12470 status = pthread_create( &t, &attr, task, NULL );
12471 if( status ) return status;
12473 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12475 /* give thread a chance to complete */
12476 /* it should remain joinable and hence detachable */
12479 status = pthread_detach( t );
12480 if( status ) return status;
12485 /* Draft 4 pthreads */
12486 status = pthread_create( &t, pthread_attr_default, task, NULL );
12487 if( status ) return status;
12490 /* give thread a chance to complete */
12491 /* it should remain joinable and hence detachable */
12494 status = pthread_detach( &t );
12495 if( status ) return status;
12499 #ifdef HAVE_LINUX_THREADS
12500 pthread_kill_other_threads_np();
12507 if { (eval echo configure:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12509 ol_cv_pthread_pthreads=yes
12511 echo "configure: failed program was:" >&5
12512 cat conftest.$ac_ext >&5
12514 ol_cv_pthread_pthreads=no
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* pthread test headers */
12522 #include <pthread.h>
12524 #define NULL (void*)0
12527 static void *task(p)
12530 return (void *) (p == NULL);
12534 int main(argc, argv)
12539 /* pthread test function */
12544 #ifdef HAVE_PTHREADS_FINAL
12545 /* Final pthreads */
12546 pthread_attr_t attr;
12548 status = pthread_attr_init(&attr);
12549 if( status ) return status;
12551 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12553 #if defined( PTHREAD_CREATE_JOINABLE )
12554 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12556 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12559 #ifdef PTHREAD_CREATE_DETACHED
12561 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12564 if( status ) return status;
12567 status = pthread_create( &t, &attr, task, NULL );
12568 if( status ) return status;
12570 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12572 /* give thread a chance to complete */
12573 /* it should remain joinable and hence detachable */
12576 status = pthread_detach( t );
12577 if( status ) return status;
12582 /* Draft 4 pthreads */
12583 status = pthread_create( &t, pthread_attr_default, task, NULL );
12584 if( status ) return status;
12587 /* give thread a chance to complete */
12588 /* it should remain joinable and hence detachable */
12591 status = pthread_detach( &t );
12592 if( status ) return status;
12596 #ifdef HAVE_LINUX_THREADS
12597 pthread_kill_other_threads_np();
12605 if { (eval echo configure:12606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12607 ol_cv_pthread_pthreads=yes
12609 echo "configure: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12612 ol_cv_pthread_pthreads=no
12623 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12625 if test $ol_cv_pthread_pthreads = yes ; then
12626 ol_link_pthreads="-pthreads"
12627 ol_link_threads=posix
12631 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12632 if test "$ol_link_threads" = no ; then
12634 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12635 echo "configure:12636: checking for pthread link with -mthreads" >&5
12636 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12642 LIBS="-mthreads $LIBS"
12644 if test "$cross_compiling" = yes; then
12645 cat > conftest.$ac_ext <<EOF
12646 #line 12647 "configure"
12647 #include "confdefs.h"
12648 /* pthread test headers */
12649 #include <pthread.h>
12651 #define NULL (void*)0
12654 static void *task(p)
12657 return (void *) (p == NULL);
12662 /* pthread test function */
12667 #ifdef HAVE_PTHREADS_FINAL
12668 /* Final pthreads */
12669 pthread_attr_t attr;
12671 status = pthread_attr_init(&attr);
12672 if( status ) return status;
12674 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12676 #if defined( PTHREAD_CREATE_JOINABLE )
12677 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12679 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12682 #ifdef PTHREAD_CREATE_DETACHED
12684 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12687 if( status ) return status;
12690 status = pthread_create( &t, &attr, task, NULL );
12691 if( status ) return status;
12693 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12695 /* give thread a chance to complete */
12696 /* it should remain joinable and hence detachable */
12699 status = pthread_detach( t );
12700 if( status ) return status;
12705 /* Draft 4 pthreads */
12706 status = pthread_create( &t, pthread_attr_default, task, NULL );
12707 if( status ) return status;
12710 /* give thread a chance to complete */
12711 /* it should remain joinable and hence detachable */
12714 status = pthread_detach( &t );
12715 if( status ) return status;
12719 #ifdef HAVE_LINUX_THREADS
12720 pthread_kill_other_threads_np();
12727 if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 ol_cv_pthread_mthreads=yes
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12734 ol_cv_pthread_mthreads=no
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* pthread test headers */
12742 #include <pthread.h>
12744 #define NULL (void*)0
12747 static void *task(p)
12750 return (void *) (p == NULL);
12754 int main(argc, argv)
12759 /* pthread test function */
12764 #ifdef HAVE_PTHREADS_FINAL
12765 /* Final pthreads */
12766 pthread_attr_t attr;
12768 status = pthread_attr_init(&attr);
12769 if( status ) return status;
12771 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12773 #if defined( PTHREAD_CREATE_JOINABLE )
12774 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12776 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12779 #ifdef PTHREAD_CREATE_DETACHED
12781 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12784 if( status ) return status;
12787 status = pthread_create( &t, &attr, task, NULL );
12788 if( status ) return status;
12790 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12792 /* give thread a chance to complete */
12793 /* it should remain joinable and hence detachable */
12796 status = pthread_detach( t );
12797 if( status ) return status;
12802 /* Draft 4 pthreads */
12803 status = pthread_create( &t, pthread_attr_default, task, NULL );
12804 if( status ) return status;
12807 /* give thread a chance to complete */
12808 /* it should remain joinable and hence detachable */
12811 status = pthread_detach( &t );
12812 if( status ) return status;
12816 #ifdef HAVE_LINUX_THREADS
12817 pthread_kill_other_threads_np();
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12827 ol_cv_pthread_mthreads=yes
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12832 ol_cv_pthread_mthreads=no
12843 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12845 if test $ol_cv_pthread_mthreads = yes ; then
12846 ol_link_pthreads="-mthreads"
12847 ol_link_threads=posix
12851 # Pthread try link: -thread (ol_cv_pthread_thread)
12852 if test "$ol_link_threads" = no ; then
12854 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12855 echo "configure:12856: checking for pthread link with -thread" >&5
12856 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12857 echo $ac_n "(cached) $ac_c" 1>&6
12862 LIBS="-thread $LIBS"
12864 if test "$cross_compiling" = yes; then
12865 cat > conftest.$ac_ext <<EOF
12866 #line 12867 "configure"
12867 #include "confdefs.h"
12868 /* pthread test headers */
12869 #include <pthread.h>
12871 #define NULL (void*)0
12874 static void *task(p)
12877 return (void *) (p == NULL);
12882 /* pthread test function */
12887 #ifdef HAVE_PTHREADS_FINAL
12888 /* Final pthreads */
12889 pthread_attr_t attr;
12891 status = pthread_attr_init(&attr);
12892 if( status ) return status;
12894 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12896 #if defined( PTHREAD_CREATE_JOINABLE )
12897 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12899 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12902 #ifdef PTHREAD_CREATE_DETACHED
12904 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12907 if( status ) return status;
12910 status = pthread_create( &t, &attr, task, NULL );
12911 if( status ) return status;
12913 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12915 /* give thread a chance to complete */
12916 /* it should remain joinable and hence detachable */
12919 status = pthread_detach( t );
12920 if( status ) return status;
12925 /* Draft 4 pthreads */
12926 status = pthread_create( &t, pthread_attr_default, task, NULL );
12927 if( status ) return status;
12930 /* give thread a chance to complete */
12931 /* it should remain joinable and hence detachable */
12934 status = pthread_detach( &t );
12935 if( status ) return status;
12939 #ifdef HAVE_LINUX_THREADS
12940 pthread_kill_other_threads_np();
12947 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12949 ol_cv_pthread_thread=yes
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12954 ol_cv_pthread_thread=no
12958 cat > conftest.$ac_ext <<EOF
12959 #line 12960 "configure"
12960 #include "confdefs.h"
12961 /* pthread test headers */
12962 #include <pthread.h>
12964 #define NULL (void*)0
12967 static void *task(p)
12970 return (void *) (p == NULL);
12974 int main(argc, argv)
12979 /* pthread test function */
12984 #ifdef HAVE_PTHREADS_FINAL
12985 /* Final pthreads */
12986 pthread_attr_t attr;
12988 status = pthread_attr_init(&attr);
12989 if( status ) return status;
12991 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12993 #if defined( PTHREAD_CREATE_JOINABLE )
12994 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12999 #ifdef PTHREAD_CREATE_DETACHED
13001 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13004 if( status ) return status;
13007 status = pthread_create( &t, &attr, task, NULL );
13008 if( status ) return status;
13010 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13012 /* give thread a chance to complete */
13013 /* it should remain joinable and hence detachable */
13016 status = pthread_detach( t );
13017 if( status ) return status;
13022 /* Draft 4 pthreads */
13023 status = pthread_create( &t, pthread_attr_default, task, NULL );
13024 if( status ) return status;
13027 /* give thread a chance to complete */
13028 /* it should remain joinable and hence detachable */
13031 status = pthread_detach( &t );
13032 if( status ) return status;
13036 #ifdef HAVE_LINUX_THREADS
13037 pthread_kill_other_threads_np();
13045 if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13047 ol_cv_pthread_thread=yes
13049 echo "configure: failed program was:" >&5
13050 cat conftest.$ac_ext >&5
13052 ol_cv_pthread_thread=no
13063 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13065 if test $ol_cv_pthread_thread = yes ; then
13066 ol_link_pthreads="-thread"
13067 ol_link_threads=posix
13072 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13073 if test "$ol_link_threads" = no ; then
13074 # try -lpthread -lmach -lexc -lc_r
13075 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13076 echo "configure:13077: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13077 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13078 echo $ac_n "(cached) $ac_c" 1>&6
13083 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13085 if test "$cross_compiling" = yes; then
13086 cat > conftest.$ac_ext <<EOF
13087 #line 13088 "configure"
13088 #include "confdefs.h"
13089 /* pthread test headers */
13090 #include <pthread.h>
13092 #define NULL (void*)0
13095 static void *task(p)
13098 return (void *) (p == NULL);
13103 /* pthread test function */
13108 #ifdef HAVE_PTHREADS_FINAL
13109 /* Final pthreads */
13110 pthread_attr_t attr;
13112 status = pthread_attr_init(&attr);
13113 if( status ) return status;
13115 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13117 #if defined( PTHREAD_CREATE_JOINABLE )
13118 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13120 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13123 #ifdef PTHREAD_CREATE_DETACHED
13125 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13128 if( status ) return status;
13131 status = pthread_create( &t, &attr, task, NULL );
13132 if( status ) return status;
13134 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13136 /* give thread a chance to complete */
13137 /* it should remain joinable and hence detachable */
13140 status = pthread_detach( t );
13141 if( status ) return status;
13146 /* Draft 4 pthreads */
13147 status = pthread_create( &t, pthread_attr_default, task, NULL );
13148 if( status ) return status;
13151 /* give thread a chance to complete */
13152 /* it should remain joinable and hence detachable */
13155 status = pthread_detach( &t );
13156 if( status ) return status;
13160 #ifdef HAVE_LINUX_THREADS
13161 pthread_kill_other_threads_np();
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13170 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13175 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13179 cat > conftest.$ac_ext <<EOF
13180 #line 13181 "configure"
13181 #include "confdefs.h"
13182 /* pthread test headers */
13183 #include <pthread.h>
13185 #define NULL (void*)0
13188 static void *task(p)
13191 return (void *) (p == NULL);
13195 int main(argc, argv)
13200 /* pthread test function */
13205 #ifdef HAVE_PTHREADS_FINAL
13206 /* Final pthreads */
13207 pthread_attr_t attr;
13209 status = pthread_attr_init(&attr);
13210 if( status ) return status;
13212 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13214 #if defined( PTHREAD_CREATE_JOINABLE )
13215 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13217 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13220 #ifdef PTHREAD_CREATE_DETACHED
13222 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13225 if( status ) return status;
13228 status = pthread_create( &t, &attr, task, NULL );
13229 if( status ) return status;
13231 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13233 /* give thread a chance to complete */
13234 /* it should remain joinable and hence detachable */
13237 status = pthread_detach( t );
13238 if( status ) return status;
13243 /* Draft 4 pthreads */
13244 status = pthread_create( &t, pthread_attr_default, task, NULL );
13245 if( status ) return status;
13248 /* give thread a chance to complete */
13249 /* it should remain joinable and hence detachable */
13252 status = pthread_detach( &t );
13253 if( status ) return status;
13257 #ifdef HAVE_LINUX_THREADS
13258 pthread_kill_other_threads_np();
13266 if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13268 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13273 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13284 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13286 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13287 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13288 ol_link_threads=posix
13292 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13293 if test "$ol_link_threads" = no ; then
13294 # try -lpthread -lmach -lexc
13295 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13296 echo "configure:13297: checking for pthread link with -lpthread -lmach -lexc" >&5
13297 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13298 echo $ac_n "(cached) $ac_c" 1>&6
13303 LIBS="-lpthread -lmach -lexc $LIBS"
13305 if test "$cross_compiling" = yes; then
13306 cat > conftest.$ac_ext <<EOF
13307 #line 13308 "configure"
13308 #include "confdefs.h"
13309 /* pthread test headers */
13310 #include <pthread.h>
13312 #define NULL (void*)0
13315 static void *task(p)
13318 return (void *) (p == NULL);
13323 /* pthread test function */
13328 #ifdef HAVE_PTHREADS_FINAL
13329 /* Final pthreads */
13330 pthread_attr_t attr;
13332 status = pthread_attr_init(&attr);
13333 if( status ) return status;
13335 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13337 #if defined( PTHREAD_CREATE_JOINABLE )
13338 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13340 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13343 #ifdef PTHREAD_CREATE_DETACHED
13345 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13348 if( status ) return status;
13351 status = pthread_create( &t, &attr, task, NULL );
13352 if( status ) return status;
13354 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13356 /* give thread a chance to complete */
13357 /* it should remain joinable and hence detachable */
13360 status = pthread_detach( t );
13361 if( status ) return status;
13366 /* Draft 4 pthreads */
13367 status = pthread_create( &t, pthread_attr_default, task, NULL );
13368 if( status ) return status;
13371 /* give thread a chance to complete */
13372 /* it should remain joinable and hence detachable */
13375 status = pthread_detach( &t );
13376 if( status ) return status;
13380 #ifdef HAVE_LINUX_THREADS
13381 pthread_kill_other_threads_np();
13388 if { (eval echo configure:13389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13390 ol_cv_pthread_lpthread_lmach_lexc=yes
13392 echo "configure: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13395 ol_cv_pthread_lpthread_lmach_lexc=no
13399 cat > conftest.$ac_ext <<EOF
13400 #line 13401 "configure"
13401 #include "confdefs.h"
13402 /* pthread test headers */
13403 #include <pthread.h>
13405 #define NULL (void*)0
13408 static void *task(p)
13411 return (void *) (p == NULL);
13415 int main(argc, argv)
13420 /* pthread test function */
13425 #ifdef HAVE_PTHREADS_FINAL
13426 /* Final pthreads */
13427 pthread_attr_t attr;
13429 status = pthread_attr_init(&attr);
13430 if( status ) return status;
13432 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13434 #if defined( PTHREAD_CREATE_JOINABLE )
13435 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13440 #ifdef PTHREAD_CREATE_DETACHED
13442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13445 if( status ) return status;
13448 status = pthread_create( &t, &attr, task, NULL );
13449 if( status ) return status;
13451 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13453 /* give thread a chance to complete */
13454 /* it should remain joinable and hence detachable */
13457 status = pthread_detach( t );
13458 if( status ) return status;
13463 /* Draft 4 pthreads */
13464 status = pthread_create( &t, pthread_attr_default, task, NULL );
13465 if( status ) return status;
13468 /* give thread a chance to complete */
13469 /* it should remain joinable and hence detachable */
13472 status = pthread_detach( &t );
13473 if( status ) return status;
13477 #ifdef HAVE_LINUX_THREADS
13478 pthread_kill_other_threads_np();
13486 if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13488 ol_cv_pthread_lpthread_lmach_lexc=yes
13490 echo "configure: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13493 ol_cv_pthread_lpthread_lmach_lexc=no
13504 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13506 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13507 ol_link_pthreads="-lpthread -lmach -lexc"
13508 ol_link_threads=posix
13513 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13514 if test "$ol_link_threads" = no ; then
13515 # try -lpthread -Wl,-woff,85
13516 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13517 echo "configure:13518: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13518 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13519 echo $ac_n "(cached) $ac_c" 1>&6
13524 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13526 if test "$cross_compiling" = yes; then
13527 cat > conftest.$ac_ext <<EOF
13528 #line 13529 "configure"
13529 #include "confdefs.h"
13530 /* pthread test headers */
13531 #include <pthread.h>
13533 #define NULL (void*)0
13536 static void *task(p)
13539 return (void *) (p == NULL);
13544 /* pthread test function */
13549 #ifdef HAVE_PTHREADS_FINAL
13550 /* Final pthreads */
13551 pthread_attr_t attr;
13553 status = pthread_attr_init(&attr);
13554 if( status ) return status;
13556 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13558 #if defined( PTHREAD_CREATE_JOINABLE )
13559 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13561 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13564 #ifdef PTHREAD_CREATE_DETACHED
13566 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13569 if( status ) return status;
13572 status = pthread_create( &t, &attr, task, NULL );
13573 if( status ) return status;
13575 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13577 /* give thread a chance to complete */
13578 /* it should remain joinable and hence detachable */
13581 status = pthread_detach( t );
13582 if( status ) return status;
13587 /* Draft 4 pthreads */
13588 status = pthread_create( &t, pthread_attr_default, task, NULL );
13589 if( status ) return status;
13592 /* give thread a chance to complete */
13593 /* it should remain joinable and hence detachable */
13596 status = pthread_detach( &t );
13597 if( status ) return status;
13601 #ifdef HAVE_LINUX_THREADS
13602 pthread_kill_other_threads_np();
13609 if { (eval echo configure:13610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13611 ol_cv_pthread_lib_lpthread_woff=yes
13613 echo "configure: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13616 ol_cv_pthread_lib_lpthread_woff=no
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 /* pthread test headers */
13624 #include <pthread.h>
13626 #define NULL (void*)0
13629 static void *task(p)
13632 return (void *) (p == NULL);
13636 int main(argc, argv)
13641 /* pthread test function */
13646 #ifdef HAVE_PTHREADS_FINAL
13647 /* Final pthreads */
13648 pthread_attr_t attr;
13650 status = pthread_attr_init(&attr);
13651 if( status ) return status;
13653 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13655 #if defined( PTHREAD_CREATE_JOINABLE )
13656 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13658 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13661 #ifdef PTHREAD_CREATE_DETACHED
13663 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13666 if( status ) return status;
13669 status = pthread_create( &t, &attr, task, NULL );
13670 if( status ) return status;
13672 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13674 /* give thread a chance to complete */
13675 /* it should remain joinable and hence detachable */
13678 status = pthread_detach( t );
13679 if( status ) return status;
13684 /* Draft 4 pthreads */
13685 status = pthread_create( &t, pthread_attr_default, task, NULL );
13686 if( status ) return status;
13689 /* give thread a chance to complete */
13690 /* it should remain joinable and hence detachable */
13693 status = pthread_detach( &t );
13694 if( status ) return status;
13698 #ifdef HAVE_LINUX_THREADS
13699 pthread_kill_other_threads_np();
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13709 ol_cv_pthread_lib_lpthread_woff=yes
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13714 ol_cv_pthread_lib_lpthread_woff=no
13725 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13727 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13728 ol_link_pthreads="-lpthread -Wl,-woff,85"
13729 ol_link_threads=posix
13734 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13735 if test "$ol_link_threads" = no ; then
13737 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13738 echo "configure:13739: checking for pthread link with -lpthread" >&5
13739 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13740 echo $ac_n "(cached) $ac_c" 1>&6
13745 LIBS="-lpthread $LIBS"
13747 if test "$cross_compiling" = yes; then
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 /* pthread test headers */
13752 #include <pthread.h>
13754 #define NULL (void*)0
13757 static void *task(p)
13760 return (void *) (p == NULL);
13765 /* pthread test function */
13770 #ifdef HAVE_PTHREADS_FINAL
13771 /* Final pthreads */
13772 pthread_attr_t attr;
13774 status = pthread_attr_init(&attr);
13775 if( status ) return status;
13777 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13779 #if defined( PTHREAD_CREATE_JOINABLE )
13780 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13782 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13785 #ifdef PTHREAD_CREATE_DETACHED
13787 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13790 if( status ) return status;
13793 status = pthread_create( &t, &attr, task, NULL );
13794 if( status ) return status;
13796 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13798 /* give thread a chance to complete */
13799 /* it should remain joinable and hence detachable */
13802 status = pthread_detach( t );
13803 if( status ) return status;
13808 /* Draft 4 pthreads */
13809 status = pthread_create( &t, pthread_attr_default, task, NULL );
13810 if( status ) return status;
13813 /* give thread a chance to complete */
13814 /* it should remain joinable and hence detachable */
13817 status = pthread_detach( &t );
13818 if( status ) return status;
13822 #ifdef HAVE_LINUX_THREADS
13823 pthread_kill_other_threads_np();
13830 if { (eval echo configure:13831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13832 ol_cv_pthread_lpthread=yes
13834 echo "configure: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13837 ol_cv_pthread_lpthread=no
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13844 /* pthread test headers */
13845 #include <pthread.h>
13847 #define NULL (void*)0
13850 static void *task(p)
13853 return (void *) (p == NULL);
13857 int main(argc, argv)
13862 /* pthread test function */
13867 #ifdef HAVE_PTHREADS_FINAL
13868 /* Final pthreads */
13869 pthread_attr_t attr;
13871 status = pthread_attr_init(&attr);
13872 if( status ) return status;
13874 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13876 #if defined( PTHREAD_CREATE_JOINABLE )
13877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13879 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13882 #ifdef PTHREAD_CREATE_DETACHED
13884 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13887 if( status ) return status;
13890 status = pthread_create( &t, &attr, task, NULL );
13891 if( status ) return status;
13893 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13895 /* give thread a chance to complete */
13896 /* it should remain joinable and hence detachable */
13899 status = pthread_detach( t );
13900 if( status ) return status;
13905 /* Draft 4 pthreads */
13906 status = pthread_create( &t, pthread_attr_default, task, NULL );
13907 if( status ) return status;
13910 /* give thread a chance to complete */
13911 /* it should remain joinable and hence detachable */
13914 status = pthread_detach( &t );
13915 if( status ) return status;
13919 #ifdef HAVE_LINUX_THREADS
13920 pthread_kill_other_threads_np();
13928 if { (eval echo configure:13929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13930 ol_cv_pthread_lpthread=yes
13932 echo "configure: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13935 ol_cv_pthread_lpthread=no
13946 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13948 if test $ol_cv_pthread_lpthread = yes ; then
13949 ol_link_pthreads="-lpthread"
13950 ol_link_threads=posix
13954 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13955 if test "$ol_link_threads" = no ; then
13957 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13958 echo "configure:13959: checking for pthread link with -lc_r" >&5
13959 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13967 if test "$cross_compiling" = yes; then
13968 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 /* pthread test headers */
13972 #include <pthread.h>
13974 #define NULL (void*)0
13977 static void *task(p)
13980 return (void *) (p == NULL);
13985 /* pthread test function */
13990 #ifdef HAVE_PTHREADS_FINAL
13991 /* Final pthreads */
13992 pthread_attr_t attr;
13994 status = pthread_attr_init(&attr);
13995 if( status ) return status;
13997 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13999 #if defined( PTHREAD_CREATE_JOINABLE )
14000 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14002 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14005 #ifdef PTHREAD_CREATE_DETACHED
14007 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14010 if( status ) return status;
14013 status = pthread_create( &t, &attr, task, NULL );
14014 if( status ) return status;
14016 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14018 /* give thread a chance to complete */
14019 /* it should remain joinable and hence detachable */
14022 status = pthread_detach( t );
14023 if( status ) return status;
14028 /* Draft 4 pthreads */
14029 status = pthread_create( &t, pthread_attr_default, task, NULL );
14030 if( status ) return status;
14033 /* give thread a chance to complete */
14034 /* it should remain joinable and hence detachable */
14037 status = pthread_detach( &t );
14038 if( status ) return status;
14042 #ifdef HAVE_LINUX_THREADS
14043 pthread_kill_other_threads_np();
14050 if { (eval echo configure:14051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14052 ol_cv_pthread_lc_r=yes
14054 echo "configure: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14057 ol_cv_pthread_lc_r=no
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14063 "configure"
14063 #include "confdefs.h"
14064 /* pthread test headers */
14065 #include <pthread.h>
14067 #define NULL (void*)0
14070 static void *task(p)
14073 return (void *) (p == NULL);
14077 int main(argc, argv)
14082 /* pthread test function */
14087 #ifdef HAVE_PTHREADS_FINAL
14088 /* Final pthreads */
14089 pthread_attr_t attr;
14091 status = pthread_attr_init(&attr);
14092 if( status ) return status;
14094 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14096 #if defined( PTHREAD_CREATE_JOINABLE )
14097 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14099 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14102 #ifdef PTHREAD_CREATE_DETACHED
14104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14107 if( status ) return status;
14110 status = pthread_create( &t, &attr, task, NULL );
14111 if( status ) return status;
14113 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14115 /* give thread a chance to complete */
14116 /* it should remain joinable and hence detachable */
14119 status = pthread_detach( t );
14120 if( status ) return status;
14125 /* Draft 4 pthreads */
14126 status = pthread_create( &t, pthread_attr_default, task, NULL );
14127 if( status ) return status;
14130 /* give thread a chance to complete */
14131 /* it should remain joinable and hence detachable */
14134 status = pthread_detach( &t );
14135 if( status ) return status;
14139 #ifdef HAVE_LINUX_THREADS
14140 pthread_kill_other_threads_np();
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14150 ol_cv_pthread_lc_r=yes
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14155 ol_cv_pthread_lc_r=no
14166 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14168 if test $ol_cv_pthread_lc_r = yes ; then
14169 ol_link_pthreads="-lc_r"
14170 ol_link_threads=posix
14175 # Pthread try link: -threads (ol_cv_pthread_threads)
14176 if test "$ol_link_threads" = no ; then
14178 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14179 echo "configure:14180: checking for pthread link with -threads" >&5
14180 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14181 echo $ac_n "(cached) $ac_c" 1>&6
14186 LIBS="-threads $LIBS"
14188 if test "$cross_compiling" = yes; then
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* pthread test headers */
14193 #include <pthread.h>
14195 #define NULL (void*)0
14198 static void *task(p)
14201 return (void *) (p == NULL);
14206 /* pthread test function */
14211 #ifdef HAVE_PTHREADS_FINAL
14212 /* Final pthreads */
14213 pthread_attr_t attr;
14215 status = pthread_attr_init(&attr);
14216 if( status ) return status;
14218 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14220 #if defined( PTHREAD_CREATE_JOINABLE )
14221 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14223 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14226 #ifdef PTHREAD_CREATE_DETACHED
14228 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14231 if( status ) return status;
14234 status = pthread_create( &t, &attr, task, NULL );
14235 if( status ) return status;
14237 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14239 /* give thread a chance to complete */
14240 /* it should remain joinable and hence detachable */
14243 status = pthread_detach( t );
14244 if( status ) return status;
14249 /* Draft 4 pthreads */
14250 status = pthread_create( &t, pthread_attr_default, task, NULL );
14251 if( status ) return status;
14254 /* give thread a chance to complete */
14255 /* it should remain joinable and hence detachable */
14258 status = pthread_detach( &t );
14259 if( status ) return status;
14263 #ifdef HAVE_LINUX_THREADS
14264 pthread_kill_other_threads_np();
14271 if { (eval echo configure:14272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14273 ol_cv_pthread_threads=yes
14275 echo "configure: failed program was:" >&5
14276 cat conftest.$ac_ext >&5
14278 ol_cv_pthread_threads=no
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 /* pthread test headers */
14286 #include <pthread.h>
14288 #define NULL (void*)0
14291 static void *task(p)
14294 return (void *) (p == NULL);
14298 int main(argc, argv)
14303 /* pthread test function */
14308 #ifdef HAVE_PTHREADS_FINAL
14309 /* Final pthreads */
14310 pthread_attr_t attr;
14312 status = pthread_attr_init(&attr);
14313 if( status ) return status;
14315 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14317 #if defined( PTHREAD_CREATE_JOINABLE )
14318 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14320 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14323 #ifdef PTHREAD_CREATE_DETACHED
14325 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14328 if( status ) return status;
14331 status = pthread_create( &t, &attr, task, NULL );
14332 if( status ) return status;
14334 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14336 /* give thread a chance to complete */
14337 /* it should remain joinable and hence detachable */
14340 status = pthread_detach( t );
14341 if( status ) return status;
14346 /* Draft 4 pthreads */
14347 status = pthread_create( &t, pthread_attr_default, task, NULL );
14348 if( status ) return status;
14351 /* give thread a chance to complete */
14352 /* it should remain joinable and hence detachable */
14355 status = pthread_detach( &t );
14356 if( status ) return status;
14360 #ifdef HAVE_LINUX_THREADS
14361 pthread_kill_other_threads_np();
14369 if { (eval echo configure:14370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14371 ol_cv_pthread_threads=yes
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14376 ol_cv_pthread_threads=no
14387 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14389 if test $ol_cv_pthread_threads = yes ; then
14390 ol_link_pthreads="-threads"
14391 ol_link_threads=posix
14396 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14397 if test "$ol_link_threads" = no ; then
14398 # try -lpthreads -lmach -lexc -lc_r
14399 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14400 echo "configure:14401: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14401 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14402 echo $ac_n "(cached) $ac_c" 1>&6
14407 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14409 if test "$cross_compiling" = yes; then
14410 cat > conftest.$ac_ext <<EOF
14411 #line 14412 "configure"
14412 #include "confdefs.h"
14413 /* pthread test headers */
14414 #include <pthread.h>
14416 #define NULL (void*)0
14419 static void *task(p)
14422 return (void *) (p == NULL);
14427 /* pthread test function */
14432 #ifdef HAVE_PTHREADS_FINAL
14433 /* Final pthreads */
14434 pthread_attr_t attr;
14436 status = pthread_attr_init(&attr);
14437 if( status ) return status;
14439 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14441 #if defined( PTHREAD_CREATE_JOINABLE )
14442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14444 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14447 #ifdef PTHREAD_CREATE_DETACHED
14449 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14452 if( status ) return status;
14455 status = pthread_create( &t, &attr, task, NULL );
14456 if( status ) return status;
14458 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14460 /* give thread a chance to complete */
14461 /* it should remain joinable and hence detachable */
14464 status = pthread_detach( t );
14465 if( status ) return status;
14470 /* Draft 4 pthreads */
14471 status = pthread_create( &t, pthread_attr_default, task, NULL );
14472 if( status ) return status;
14475 /* give thread a chance to complete */
14476 /* it should remain joinable and hence detachable */
14479 status = pthread_detach( &t );
14480 if( status ) return status;
14484 #ifdef HAVE_LINUX_THREADS
14485 pthread_kill_other_threads_np();
14492 if { (eval echo configure:14493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14494 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14496 echo "configure: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14499 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14503 cat > conftest.$ac_ext <<EOF
14504 #line 14505 "configure"
14505 #include "confdefs.h"
14506 /* pthread test headers */
14507 #include <pthread.h>
14509 #define NULL (void*)0
14512 static void *task(p)
14515 return (void *) (p == NULL);
14519 int main(argc, argv)
14524 /* pthread test function */
14529 #ifdef HAVE_PTHREADS_FINAL
14530 /* Final pthreads */
14531 pthread_attr_t attr;
14533 status = pthread_attr_init(&attr);
14534 if( status ) return status;
14536 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14538 #if defined( PTHREAD_CREATE_JOINABLE )
14539 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14541 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14544 #ifdef PTHREAD_CREATE_DETACHED
14546 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14549 if( status ) return status;
14552 status = pthread_create( &t, &attr, task, NULL );
14553 if( status ) return status;
14555 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14557 /* give thread a chance to complete */
14558 /* it should remain joinable and hence detachable */
14561 status = pthread_detach( t );
14562 if( status ) return status;
14567 /* Draft 4 pthreads */
14568 status = pthread_create( &t, pthread_attr_default, task, NULL );
14569 if( status ) return status;
14572 /* give thread a chance to complete */
14573 /* it should remain joinable and hence detachable */
14576 status = pthread_detach( &t );
14577 if( status ) return status;
14581 #ifdef HAVE_LINUX_THREADS
14582 pthread_kill_other_threads_np();
14590 if { (eval echo configure:14591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14592 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14594 echo "configure: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14597 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14608 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14610 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14611 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14612 ol_link_threads=posix
14616 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14617 if test "$ol_link_threads" = no ; then
14618 # try -lpthreads -lmach -lexc
14619 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14620 echo "configure:14621: checking for pthread link with -lpthreads -lmach -lexc" >&5
14621 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14622 echo $ac_n "(cached) $ac_c" 1>&6
14627 LIBS="-lpthreads -lmach -lexc $LIBS"
14629 if test "$cross_compiling" = yes; then
14630 cat > conftest.$ac_ext <<EOF
14631 #line 14632 "configure"
14632 #include "confdefs.h"
14633 /* pthread test headers */
14634 #include <pthread.h>
14636 #define NULL (void*)0
14639 static void *task(p)
14642 return (void *) (p == NULL);
14647 /* pthread test function */
14652 #ifdef HAVE_PTHREADS_FINAL
14653 /* Final pthreads */
14654 pthread_attr_t attr;
14656 status = pthread_attr_init(&attr);
14657 if( status ) return status;
14659 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14661 #if defined( PTHREAD_CREATE_JOINABLE )
14662 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14664 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14667 #ifdef PTHREAD_CREATE_DETACHED
14669 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14672 if( status ) return status;
14675 status = pthread_create( &t, &attr, task, NULL );
14676 if( status ) return status;
14678 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14680 /* give thread a chance to complete */
14681 /* it should remain joinable and hence detachable */
14684 status = pthread_detach( t );
14685 if( status ) return status;
14690 /* Draft 4 pthreads */
14691 status = pthread_create( &t, pthread_attr_default, task, NULL );
14692 if( status ) return status;
14695 /* give thread a chance to complete */
14696 /* it should remain joinable and hence detachable */
14699 status = pthread_detach( &t );
14700 if( status ) return status;
14704 #ifdef HAVE_LINUX_THREADS
14705 pthread_kill_other_threads_np();
14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14714 ol_cv_pthread_lpthreads_lmach_lexc=yes
14716 echo "configure: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14719 ol_cv_pthread_lpthreads_lmach_lexc=no
14723 cat > conftest.$ac_ext <<EOF
14724 #line 14725 "configure"
14725 #include "confdefs.h"
14726 /* pthread test headers */
14727 #include <pthread.h>
14729 #define NULL (void*)0
14732 static void *task(p)
14735 return (void *) (p == NULL);
14739 int main(argc, argv)
14744 /* pthread test function */
14749 #ifdef HAVE_PTHREADS_FINAL
14750 /* Final pthreads */
14751 pthread_attr_t attr;
14753 status = pthread_attr_init(&attr);
14754 if( status ) return status;
14756 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14758 #if defined( PTHREAD_CREATE_JOINABLE )
14759 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14761 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14764 #ifdef PTHREAD_CREATE_DETACHED
14766 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14769 if( status ) return status;
14772 status = pthread_create( &t, &attr, task, NULL );
14773 if( status ) return status;
14775 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14777 /* give thread a chance to complete */
14778 /* it should remain joinable and hence detachable */
14781 status = pthread_detach( t );
14782 if( status ) return status;
14787 /* Draft 4 pthreads */
14788 status = pthread_create( &t, pthread_attr_default, task, NULL );
14789 if( status ) return status;
14792 /* give thread a chance to complete */
14793 /* it should remain joinable and hence detachable */
14796 status = pthread_detach( &t );
14797 if( status ) return status;
14801 #ifdef HAVE_LINUX_THREADS
14802 pthread_kill_other_threads_np();
14810 if { (eval echo configure:14811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14812 ol_cv_pthread_lpthreads_lmach_lexc=yes
14814 echo "configure: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14817 ol_cv_pthread_lpthreads_lmach_lexc=no
14828 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14830 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14831 ol_link_pthreads="-lpthreads -lmach -lexc"
14832 ol_link_threads=posix
14836 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14837 if test "$ol_link_threads" = no ; then
14838 # try -lpthreads -lexc
14839 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14840 echo "configure:14841: checking for pthread link with -lpthreads -lexc" >&5
14841 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14847 LIBS="-lpthreads -lexc $LIBS"
14849 if test "$cross_compiling" = yes; then
14850 cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure"
14852 #include "confdefs.h"
14853 /* pthread test headers */
14854 #include <pthread.h>
14856 #define NULL (void*)0
14859 static void *task(p)
14862 return (void *) (p == NULL);
14867 /* pthread test function */
14872 #ifdef HAVE_PTHREADS_FINAL
14873 /* Final pthreads */
14874 pthread_attr_t attr;
14876 status = pthread_attr_init(&attr);
14877 if( status ) return status;
14879 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14881 #if defined( PTHREAD_CREATE_JOINABLE )
14882 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14884 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14887 #ifdef PTHREAD_CREATE_DETACHED
14889 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14892 if( status ) return status;
14895 status = pthread_create( &t, &attr, task, NULL );
14896 if( status ) return status;
14898 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14900 /* give thread a chance to complete */
14901 /* it should remain joinable and hence detachable */
14904 status = pthread_detach( t );
14905 if( status ) return status;
14910 /* Draft 4 pthreads */
14911 status = pthread_create( &t, pthread_attr_default, task, NULL );
14912 if( status ) return status;
14915 /* give thread a chance to complete */
14916 /* it should remain joinable and hence detachable */
14919 status = pthread_detach( &t );
14920 if( status ) return status;
14924 #ifdef HAVE_LINUX_THREADS
14925 pthread_kill_other_threads_np();
14932 if { (eval echo configure:14933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14934 ol_cv_pthread_lpthreads_lexc=yes
14936 echo "configure: failed program was:" >&5
14937 cat conftest.$ac_ext >&5
14939 ol_cv_pthread_lpthreads_lexc=no
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14946 /* pthread test headers */
14947 #include <pthread.h>
14949 #define NULL (void*)0
14952 static void *task(p)
14955 return (void *) (p == NULL);
14959 int main(argc, argv)
14964 /* pthread test function */
14969 #ifdef HAVE_PTHREADS_FINAL
14970 /* Final pthreads */
14971 pthread_attr_t attr;
14973 status = pthread_attr_init(&attr);
14974 if( status ) return status;
14976 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14978 #if defined( PTHREAD_CREATE_JOINABLE )
14979 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14981 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14984 #ifdef PTHREAD_CREATE_DETACHED
14986 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14989 if( status ) return status;
14992 status = pthread_create( &t, &attr, task, NULL );
14993 if( status ) return status;
14995 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14997 /* give thread a chance to complete */
14998 /* it should remain joinable and hence detachable */
15001 status = pthread_detach( t );
15002 if( status ) return status;
15007 /* Draft 4 pthreads */
15008 status = pthread_create( &t, pthread_attr_default, task, NULL );
15009 if( status ) return status;
15012 /* give thread a chance to complete */
15013 /* it should remain joinable and hence detachable */
15016 status = pthread_detach( &t );
15017 if( status ) return status;
15021 #ifdef HAVE_LINUX_THREADS
15022 pthread_kill_other_threads_np();
15030 if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15032 ol_cv_pthread_lpthreads_lexc=yes
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15037 ol_cv_pthread_lpthreads_lexc=no
15048 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15050 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15051 ol_link_pthreads="-lpthreads -lexc"
15052 ol_link_threads=posix
15057 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15058 if test "$ol_link_threads" = no ; then
15060 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15061 echo "configure:15062: checking for pthread link with -lpthreads" >&5
15062 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15063 echo $ac_n "(cached) $ac_c" 1>&6
15068 LIBS="-lpthreads $LIBS"
15070 if test "$cross_compiling" = yes; then
15071 cat > conftest.$ac_ext <<EOF
15072 #line 15073 "configure"
15073 #include "confdefs.h"
15074 /* pthread test headers */
15075 #include <pthread.h>
15077 #define NULL (void*)0
15080 static void *task(p)
15083 return (void *) (p == NULL);
15088 /* pthread test function */
15093 #ifdef HAVE_PTHREADS_FINAL
15094 /* Final pthreads */
15095 pthread_attr_t attr;
15097 status = pthread_attr_init(&attr);
15098 if( status ) return status;
15100 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15102 #if defined( PTHREAD_CREATE_JOINABLE )
15103 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15105 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15108 #ifdef PTHREAD_CREATE_DETACHED
15110 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15113 if( status ) return status;
15116 status = pthread_create( &t, &attr, task, NULL );
15117 if( status ) return status;
15119 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15121 /* give thread a chance to complete */
15122 /* it should remain joinable and hence detachable */
15125 status = pthread_detach( t );
15126 if( status ) return status;
15131 /* Draft 4 pthreads */
15132 status = pthread_create( &t, pthread_attr_default, task, NULL );
15133 if( status ) return status;
15136 /* give thread a chance to complete */
15137 /* it should remain joinable and hence detachable */
15140 status = pthread_detach( &t );
15141 if( status ) return status;
15145 #ifdef HAVE_LINUX_THREADS
15146 pthread_kill_other_threads_np();
15153 if { (eval echo configure:15154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15155 ol_cv_pthread_lib_lpthreads=yes
15157 echo "configure: failed program was:" >&5
15158 cat conftest.$ac_ext >&5
15160 ol_cv_pthread_lib_lpthreads=no
15164 cat > conftest.$ac_ext <<EOF
15165 #line 15166 "configure"
15166 #include "confdefs.h"
15167 /* pthread test headers */
15168 #include <pthread.h>
15170 #define NULL (void*)0
15173 static void *task(p)
15176 return (void *) (p == NULL);
15180 int main(argc, argv)
15185 /* pthread test function */
15190 #ifdef HAVE_PTHREADS_FINAL
15191 /* Final pthreads */
15192 pthread_attr_t attr;
15194 status = pthread_attr_init(&attr);
15195 if( status ) return status;
15197 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15199 #if defined( PTHREAD_CREATE_JOINABLE )
15200 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15202 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15205 #ifdef PTHREAD_CREATE_DETACHED
15207 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15210 if( status ) return status;
15213 status = pthread_create( &t, &attr, task, NULL );
15214 if( status ) return status;
15216 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15218 /* give thread a chance to complete */
15219 /* it should remain joinable and hence detachable */
15222 status = pthread_detach( t );
15223 if( status ) return status;
15228 /* Draft 4 pthreads */
15229 status = pthread_create( &t, pthread_attr_default, task, NULL );
15230 if( status ) return status;
15233 /* give thread a chance to complete */
15234 /* it should remain joinable and hence detachable */
15237 status = pthread_detach( &t );
15238 if( status ) return status;
15242 #ifdef HAVE_LINUX_THREADS
15243 pthread_kill_other_threads_np();
15251 if { (eval echo configure:15252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15253 ol_cv_pthread_lib_lpthreads=yes
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15258 ol_cv_pthread_lib_lpthreads=no
15269 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15271 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15272 ol_link_pthreads="-lpthreads"
15273 ol_link_threads=posix
15278 if test $ol_link_threads != no ; then
15279 cat >> confdefs.h <<\EOF
15280 #define HAVE_PTHREADS 1
15284 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15286 save_CPPFLAGS="$CPPFLAGS"
15288 LIBS="$LTHREAD_LIBS $LIBS"
15290 for ac_func in sched_yield pthread_yield
15292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15293 echo "configure:15294: checking for $ac_func" >&5
15294 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15295 echo $ac_n "(cached) $ac_c" 1>&6
15297 cat > conftest.$ac_ext <<EOF
15298 #line 15299 "configure"
15299 #include "confdefs.h"
15300 /* System header to define __stub macros and hopefully few prototypes,
15301 which can conflict with char $ac_func(); below. */
15302 #include <assert.h>
15303 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15311 /* The GNU C library defines this for functions which it implements
15312 to always fail with ENOSYS. Some functions are actually named
15313 something starting with __ and the normal name is an alias. */
15314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 if { (eval echo configure:15323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15324 eval "ac_cv_func_$ac_func=yes"
15326 echo "configure: failed program was:" >&5
15327 cat conftest.$ac_ext >&5
15329 eval "ac_cv_func_$ac_func=no"
15334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15335 echo "$ac_t""yes" 1>&6
15336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15337 cat >> confdefs.h <<EOF
15338 #define $ac_tr_func 1
15342 echo "$ac_t""no" 1>&6
15347 if test $ac_cv_func_sched_yield = no -a \
15348 $ac_cv_func_pthread_yield = no ; then
15349 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15350 echo "configure:15351: checking for sched_yield in -lrt" >&5
15351 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
15355 ac_save_LIBS="$LIBS"
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15360 /* Override any gcc2 internal prototype to avoid an error. */
15361 /* We use char because int might match the return type of a gcc2
15362 builtin and then its argument prototype would still apply. */
15363 char sched_yield();
15369 if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15371 eval "ac_cv_lib_$ac_lib_var=yes"
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15376 eval "ac_cv_lib_$ac_lib_var=no"
15379 LIBS="$ac_save_LIBS"
15382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
15384 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15385 cat >> confdefs.h <<\EOF
15386 #define HAVE_SCHED_YIELD 1
15389 ac_cv_func_sched_yield=yes
15391 echo "$ac_t""no" 1>&6
15392 ac_cv_func_sched_yield=no
15396 if test $ac_cv_func_sched_yield = no -a \
15397 $ac_cv_func_pthread_yield = no ; then
15398 for ac_func in thr_yield
15400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15401 echo "configure:15402: checking for $ac_func" >&5
15402 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15403 echo $ac_n "(cached) $ac_c" 1>&6
15405 cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 /* System header to define __stub macros and hopefully few prototypes,
15409 which can conflict with char $ac_func(); below. */
15410 #include <assert.h>
15411 /* Override any gcc2 internal prototype to avoid an error. */
15412 /* We use char because int might match the return type of a gcc2
15413 builtin and then its argument prototype would still apply. */
15419 /* The GNU C library defines this for functions which it implements
15420 to always fail with ENOSYS. Some functions are actually named
15421 something starting with __ and the normal name is an alias. */
15422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15430 if { (eval echo configure:15431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15432 eval "ac_cv_func_$ac_func=yes"
15434 echo "configure: failed program was:" >&5
15435 cat conftest.$ac_ext >&5
15437 eval "ac_cv_func_$ac_func=no"
15442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15443 echo "$ac_t""yes" 1>&6
15444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15445 cat >> confdefs.h <<EOF
15446 #define $ac_tr_func 1
15450 echo "$ac_t""no" 1>&6
15455 if test $ac_cv_func_sched_yield = no -a \
15456 $ac_cv_func_pthread_yield = no -a \
15457 "$ac_cv_func_thr_yield" = no ; then
15458 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15461 for ac_func in pthread_kill pthread_rwlock_destroy
15463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15464 echo "configure:15465: checking for $ac_func" >&5
15465 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15468 cat > conftest.$ac_ext <<EOF
15469 #line 15470 "configure"
15470 #include "confdefs.h"
15471 /* System header to define __stub macros and hopefully few prototypes,
15472 which can conflict with char $ac_func(); below. */
15473 #include <assert.h>
15474 /* Override any gcc2 internal prototype to avoid an error. */
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15482 /* The GNU C library defines this for functions which it implements
15483 to always fail with ENOSYS. Some functions are actually named
15484 something starting with __ and the normal name is an alias. */
15485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15493 if { (eval echo configure:15494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15495 eval "ac_cv_func_$ac_func=yes"
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15500 eval "ac_cv_func_$ac_func=no"
15505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15506 echo "$ac_t""yes" 1>&6
15507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15508 cat >> confdefs.h <<EOF
15509 #define $ac_tr_func 1
15513 echo "$ac_t""no" 1>&6
15518 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15519 echo "configure:15520: checking for pthread_detach with <pthread.h>" >&5
15520 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15521 echo $ac_n "(cached) $ac_c" 1>&6
15524 cat > conftest.$ac_ext <<EOF
15525 #line 15526 "configure"
15526 #include "confdefs.h"
15528 #include <pthread.h>
15530 #define NULL (void*)0
15534 pthread_detach(NULL);
15537 if { (eval echo configure:15538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15539 ol_cv_func_pthread_detach=yes
15541 echo "configure: failed program was:" >&5
15542 cat conftest.$ac_ext >&5
15544 ol_cv_func_pthread_detach=no
15550 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15552 if test $ol_cv_func_pthread_detach = no ; then
15553 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15556 cat >> confdefs.h <<\EOF
15557 #define HAVE_PTHREAD_DETACH 1
15562 pthread_setconcurrency \
15563 pthread_getconcurrency \
15564 thr_setconcurrency \
15565 thr_getconcurrency \
15568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15569 echo "configure:15570: checking for $ac_func" >&5
15570 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15571 echo $ac_n "(cached) $ac_c" 1>&6
15573 cat > conftest.$ac_ext <<EOF
15574 #line 15575 "configure"
15575 #include "confdefs.h"
15576 /* System header to define __stub macros and hopefully few prototypes,
15577 which can conflict with char $ac_func(); below. */
15578 #include <assert.h>
15579 /* Override any gcc2 internal prototype to avoid an error. */
15580 /* We use char because int might match the return type of a gcc2
15581 builtin and then its argument prototype would still apply. */
15587 /* The GNU C library defines this for functions which it implements
15588 to always fail with ENOSYS. Some functions are actually named
15589 something starting with __ and the normal name is an alias. */
15590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15598 if { (eval echo configure:15599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15600 eval "ac_cv_func_$ac_func=yes"
15602 echo "configure: failed program was:" >&5
15603 cat conftest.$ac_ext >&5
15605 eval "ac_cv_func_$ac_func=no"
15610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15611 echo "$ac_t""yes" 1>&6
15612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15613 cat >> confdefs.h <<EOF
15614 #define $ac_tr_func 1
15618 echo "$ac_t""no" 1>&6
15624 for ac_func in pthread_kill_other_threads_np
15626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15627 echo "configure:15628: checking for $ac_func" >&5
15628 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15629 echo $ac_n "(cached) $ac_c" 1>&6
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func(); below. */
15636 #include <assert.h>
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15645 /* The GNU C library defines this for functions which it implements
15646 to always fail with ENOSYS. Some functions are actually named
15647 something starting with __ and the normal name is an alias. */
15648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15656 if { (eval echo configure:15657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15658 eval "ac_cv_func_$ac_func=yes"
15660 echo "configure: failed program was:" >&5
15661 cat conftest.$ac_ext >&5
15663 eval "ac_cv_func_$ac_func=no"
15668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15669 echo "$ac_t""yes" 1>&6
15670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15671 cat >> confdefs.h <<EOF
15672 #define $ac_tr_func 1
15676 echo "$ac_t""no" 1>&6
15680 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15681 echo "configure:15682: checking for LinuxThreads implementation" >&5
15682 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15683 echo $ac_n "(cached) $ac_c" 1>&6
15685 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15688 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15693 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15694 echo "configure:15695: checking for LinuxThreads consistency" >&5
15695 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15696 echo $ac_n "(cached) $ac_c" 1>&6
15699 if test $ol_cv_header_linux_threads = yes -a \
15700 $ol_cv_sys_linux_threads = yes; then
15701 ol_cv_linux_threads=yes
15702 elif test $ol_cv_header_linux_threads = no -a \
15703 $ol_cv_sys_linux_threads = no; then
15704 ol_cv_linux_threads=no
15706 ol_cv_linux_threads=error
15711 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15714 if test $ol_cv_linux_threads = error; then
15715 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15718 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15719 echo "configure:15720: checking if pthread_create() works" >&5
15720 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15721 echo $ac_n "(cached) $ac_c" 1>&6
15724 if test "$cross_compiling" = yes; then
15725 ol_cv_pthread_create_works=yes
15727 cat > conftest.$ac_ext <<EOF
15728 #line 15729 "configure"
15729 #include "confdefs.h"
15730 /* pthread test headers */
15731 #include <pthread.h>
15733 #define NULL (void*)0
15736 static void *task(p)
15739 return (void *) (p == NULL);
15743 int main(argc, argv)
15748 /* pthread test function */
15753 #ifdef HAVE_PTHREADS_FINAL
15754 /* Final pthreads */
15755 pthread_attr_t attr;
15757 status = pthread_attr_init(&attr);
15758 if( status ) return status;
15760 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15762 #if defined( PTHREAD_CREATE_JOINABLE )
15763 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15765 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15768 #ifdef PTHREAD_CREATE_DETACHED
15770 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15773 if( status ) return status;
15776 status = pthread_create( &t, &attr, task, NULL );
15777 if( status ) return status;
15779 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15781 /* give thread a chance to complete */
15782 /* it should remain joinable and hence detachable */
15785 status = pthread_detach( t );
15786 if( status ) return status;
15791 /* Draft 4 pthreads */
15792 status = pthread_create( &t, pthread_attr_default, task, NULL );
15793 if( status ) return status;
15796 /* give thread a chance to complete */
15797 /* it should remain joinable and hence detachable */
15800 status = pthread_detach( &t );
15801 if( status ) return status;
15805 #ifdef HAVE_LINUX_THREADS
15806 pthread_kill_other_threads_np();
15814 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15816 ol_cv_pthread_create_works=yes
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15821 ol_cv_pthread_create_works=no
15828 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15830 if test $ol_cv_pthread_create_works = no ; then
15831 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15834 if test $ol_with_yielding_select = auto ; then
15835 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15836 echo "configure:15837: checking if select yields when using pthreads" >&5
15837 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15838 echo $ac_n "(cached) $ac_c" 1>&6
15841 if test "$cross_compiling" = yes; then
15842 ol_cv_pthread_select_yields=cross
15844 cat > conftest.$ac_ext <<EOF
15845 #line 15846 "configure"
15846 #include "confdefs.h"
15848 #include <sys/types.h>
15849 #include <sys/time.h>
15850 #include <unistd.h>
15851 #include <pthread.h>
15853 #define NULL (void*) 0
15856 static int fildes[2];
15858 static void *task(p)
15870 FD_SET(fildes[0], &rfds);
15872 /* we're not interested in any fds */
15873 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15880 exit(0); /* if we exit here, the select blocked the whole process */
15883 int main(argc, argv)
15889 /* create a pipe to select */
15890 if(pipe(&fildes[0])) {
15895 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15896 (void) pthread_setconcurrency(2);
15898 #ifdef HAVE_THR_SETCONCURRENCY
15899 /* Set Solaris LWP concurrency to 2 */
15900 thr_setconcurrency(2);
15904 #if HAVE_PTHREADS_D4
15905 pthread_create(&t, pthread_attr_default, task, NULL);
15907 pthread_create(&t, NULL, task, NULL);
15910 #if HAVE_SCHED_YIELD
15911 sched_yield(); /* make sure task runs first */
15913 #ifdef HAVE_PTHREAD_YIELD
15914 pthread_yield(); /* make sure task runs first */
15921 if { (eval echo configure:15922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15923 ol_cv_pthread_select_yields=no
15925 echo "configure: failed program was:" >&5
15926 cat conftest.$ac_ext >&5
15928 ol_cv_pthread_select_yields=yes
15935 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15937 if test $ol_cv_pthread_select_yields = cross ; then
15938 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15941 if test $ol_cv_pthread_select_yields = yes ; then
15942 ol_with_yielding_select=yes
15946 CPPFLAGS="$save_CPPFLAGS"
15949 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15953 if test $ol_with_threads = posix ; then
15954 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15958 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15959 -o $ol_with_threads = mach ; then
15961 for ac_hdr in mach/cthreads.h cthreads.h
15963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15965 echo "configure:15966: checking for $ac_hdr" >&5
15966 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15967 echo $ac_n "(cached) $ac_c" 1>&6
15969 cat > conftest.$ac_ext <<EOF
15970 #line 15971 "configure"
15971 #include "confdefs.h"
15974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15975 { (eval echo configure:15976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15977 if test -z "$ac_err"; then
15979 eval "ac_cv_header_$ac_safe=yes"
15982 echo "configure: failed program was:" >&5
15983 cat conftest.$ac_ext >&5
15985 eval "ac_cv_header_$ac_safe=no"
15989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15990 echo "$ac_t""yes" 1>&6
15991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15992 cat >> confdefs.h <<EOF
15993 #define $ac_tr_hdr 1
15997 echo "$ac_t""no" 1>&6
16001 if test $ac_cv_header_mach_cthreads_h = yes ; then
16002 ol_with_threads=found
16004 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16005 echo "configure:16006: checking for cthread_fork" >&5
16006 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16007 echo $ac_n "(cached) $ac_c" 1>&6
16009 cat > conftest.$ac_ext <<EOF
16010 #line 16011 "configure"
16011 #include "confdefs.h"
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char cthread_fork(); below. */
16014 #include <assert.h>
16015 /* Override any gcc2 internal prototype to avoid an error. */
16016 /* We use char because int might match the return type of a gcc2
16017 builtin and then its argument prototype would still apply. */
16018 char cthread_fork();
16023 /* The GNU C library defines this for functions which it implements
16024 to always fail with ENOSYS. Some functions are actually named
16025 something starting with __ and the normal name is an alias. */
16026 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16034 if { (eval echo configure:16035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16036 eval "ac_cv_func_cthread_fork=yes"
16038 echo "configure: failed program was:" >&5
16039 cat conftest.$ac_ext >&5
16041 eval "ac_cv_func_cthread_fork=no"
16046 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16047 echo "$ac_t""yes" 1>&6
16048 ol_link_threads=yes
16050 echo "$ac_t""no" 1>&6
16054 if test $ol_link_threads = no ; then
16055 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16056 echo "configure:16057: checking for cthread_fork with -all_load" >&5
16057 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16058 echo $ac_n "(cached) $ac_c" 1>&6
16062 LIBS="-all_load $LIBS"
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 #include <mach/cthreads.h>
16069 cthread_fork((void *)0, (void *)0);
16073 if { (eval echo configure:16074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16075 ol_cv_cthread_all_load=yes
16077 echo "configure: failed program was:" >&5
16078 cat conftest.$ac_ext >&5
16080 ol_cv_cthread_all_load=no
16087 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16089 if test $ol_cv_cthread_all_load = yes ; then
16090 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16091 ol_link_threads=mach
16092 ol_with_threads=found
16096 elif test $ac_cv_header_cthreads_h = yes ; then
16098 ol_with_threads=found
16101 LIBS="$LIBS -lthreads"
16102 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16103 echo "configure:16104: checking for cthread_fork" >&5
16104 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16105 echo $ac_n "(cached) $ac_c" 1>&6
16107 cat > conftest.$ac_ext <<EOF
16108 #line 16109 "configure"
16109 #include "confdefs.h"
16110 /* System header to define __stub macros and hopefully few prototypes,
16111 which can conflict with char cthread_fork(); below. */
16112 #include <assert.h>
16113 /* Override any gcc2 internal prototype to avoid an error. */
16114 /* We use char because int might match the return type of a gcc2
16115 builtin and then its argument prototype would still apply. */
16116 char cthread_fork();
16121 /* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16132 if { (eval echo configure:16133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16134 eval "ac_cv_func_cthread_fork=yes"
16136 echo "configure: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16139 eval "ac_cv_func_cthread_fork=no"
16144 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16145 echo "$ac_t""yes" 1>&6
16146 ol_link_threads=yes
16148 echo "$ac_t""no" 1>&6
16153 if test $ol_link_threads = yes ; then
16154 LTHREAD_LIBS="-lthreads"
16155 ol_link_threads=mach
16156 ol_with_threads=found
16158 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16161 elif test $ol_with_threads = mach ; then
16162 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16165 if test $ol_link_threads = mach ; then
16166 cat >> confdefs.h <<\EOF
16167 #define HAVE_MACH_CTHREADS 1
16170 elif test $ol_with_threads = found ; then
16171 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16175 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16176 -o $ol_with_threads = pth ; then
16178 for ac_hdr in pth.h
16180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16182 echo "configure:16183: checking for $ac_hdr" >&5
16183 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16184 echo $ac_n "(cached) $ac_c" 1>&6
16186 cat > conftest.$ac_ext <<EOF
16187 #line 16188 "configure"
16188 #include "confdefs.h"
16191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16192 { (eval echo configure:16193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16194 if test -z "$ac_err"; then
16196 eval "ac_cv_header_$ac_safe=yes"
16199 echo "configure: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16202 eval "ac_cv_header_$ac_safe=no"
16206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16207 echo "$ac_t""yes" 1>&6
16208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16209 cat >> confdefs.h <<EOF
16210 #define $ac_tr_hdr 1
16214 echo "$ac_t""no" 1>&6
16219 if test $ac_cv_header_pth_h = yes ; then
16220 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16221 echo "configure:16222: checking for pth_version in -lpth" >&5
16222 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16224 echo $ac_n "(cached) $ac_c" 1>&6
16226 ac_save_LIBS="$LIBS"
16228 cat > conftest.$ac_ext <<EOF
16229 #line 16230 "configure"
16230 #include "confdefs.h"
16231 /* Override any gcc2 internal prototype to avoid an error. */
16232 /* We use char because int might match the return type of a gcc2
16233 builtin and then its argument prototype would still apply. */
16234 char pth_version();
16240 if { (eval echo configure:16241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16242 eval "ac_cv_lib_$ac_lib_var=yes"
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16247 eval "ac_cv_lib_$ac_lib_var=no"
16250 LIBS="$ac_save_LIBS"
16253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16254 echo "$ac_t""yes" 1>&6
16257 echo "$ac_t""no" 1>&6
16262 if test $have_pth = yes ; then
16263 cat >> confdefs.h <<\EOF
16264 #define HAVE_GNU_PTH 1
16267 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16268 ol_link_threads=pth
16269 ol_with_threads=found
16271 if test $ol_with_yielding_select = auto ; then
16272 ol_with_yielding_select=yes
16278 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16279 -o $ol_with_threads = lwp ; then
16281 for ac_hdr in thread.h synch.h
16283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16285 echo "configure:16286: checking for $ac_hdr" >&5
16286 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16287 echo $ac_n "(cached) $ac_c" 1>&6
16289 cat > conftest.$ac_ext <<EOF
16290 #line 16291 "configure"
16291 #include "confdefs.h"
16294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16295 { (eval echo configure:16296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16297 if test -z "$ac_err"; then
16299 eval "ac_cv_header_$ac_safe=yes"
16302 echo "configure: failed program was:" >&5
16303 cat conftest.$ac_ext >&5
16305 eval "ac_cv_header_$ac_safe=no"
16309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16310 echo "$ac_t""yes" 1>&6
16311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16312 cat >> confdefs.h <<EOF
16313 #define $ac_tr_hdr 1
16317 echo "$ac_t""no" 1>&6
16321 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16322 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16323 echo "configure:16324: checking for thr_create in -lthread" >&5
16324 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16328 ac_save_LIBS="$LIBS"
16329 LIBS="-lthread $LIBS"
16330 cat > conftest.$ac_ext <<EOF
16331 #line 16332 "configure"
16332 #include "confdefs.h"
16333 /* Override any gcc2 internal prototype to avoid an error. */
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16342 if { (eval echo configure:16343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16344 eval "ac_cv_lib_$ac_lib_var=yes"
16346 echo "configure: failed program was:" >&5
16347 cat conftest.$ac_ext >&5
16349 eval "ac_cv_lib_$ac_lib_var=no"
16352 LIBS="$ac_save_LIBS"
16355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16356 echo "$ac_t""yes" 1>&6
16359 echo "$ac_t""no" 1>&6
16364 if test $have_thr = yes ; then
16365 cat >> confdefs.h <<\EOF
16369 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16370 ol_link_threads=thr
16372 if test $ol_with_yielding_select = auto ; then
16373 ol_with_yielding_select=yes
16377 thr_setconcurrency \
16378 thr_getconcurrency \
16381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16382 echo "configure:16383: checking for $ac_func" >&5
16383 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func(); below. */
16391 #include <assert.h>
16392 /* Override any gcc2 internal prototype to avoid an error. */
16393 /* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16400 /* The GNU C library defines this for functions which it implements
16401 to always fail with ENOSYS. Some functions are actually named
16402 something starting with __ and the normal name is an alias. */
16403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16413 eval "ac_cv_func_$ac_func=yes"
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16418 eval "ac_cv_func_$ac_func=no"
16423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16424 echo "$ac_t""yes" 1>&6
16425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16426 cat >> confdefs.h <<EOF
16427 #define $ac_tr_func 1
16431 echo "$ac_t""no" 1>&6
16438 for ac_hdr in lwp/lwp.h
16440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16442 echo "configure:16443: checking for $ac_hdr" >&5
16443 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16444 echo $ac_n "(cached) $ac_c" 1>&6
16446 cat > conftest.$ac_ext <<EOF
16447 #line 16448 "configure"
16448 #include "confdefs.h"
16451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16452 { (eval echo configure:16453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16454 if test -z "$ac_err"; then
16456 eval "ac_cv_header_$ac_safe=yes"
16459 echo "configure: failed program was:" >&5
16460 cat conftest.$ac_ext >&5
16462 eval "ac_cv_header_$ac_safe=no"
16466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16467 echo "$ac_t""yes" 1>&6
16468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16469 cat >> confdefs.h <<EOF
16470 #define $ac_tr_hdr 1
16474 echo "$ac_t""no" 1>&6
16478 if test $ac_cv_header_lwp_lwp_h = yes ; then
16479 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16480 echo "configure:16481: checking for lwp_create in -llwp" >&5
16481 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16483 echo $ac_n "(cached) $ac_c" 1>&6
16485 ac_save_LIBS="$LIBS"
16487 cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16490 /* Override any gcc2 internal prototype to avoid an error. */
16491 /* We use char because int might match the return type of a gcc2
16492 builtin and then its argument prototype would still apply. */
16499 if { (eval echo configure:16500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16501 eval "ac_cv_lib_$ac_lib_var=yes"
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16506 eval "ac_cv_lib_$ac_lib_var=no"
16509 LIBS="$ac_save_LIBS"
16512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16513 echo "$ac_t""yes" 1>&6
16516 echo "$ac_t""no" 1>&6
16521 if test $have_lwp = yes ; then
16522 cat >> confdefs.h <<\EOF
16526 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16527 ol_link_threads=lwp
16529 if test $ol_with_yielding_select = auto ; then
16530 ol_with_yielding_select=no
16536 if test $ol_with_yielding_select = yes ; then
16537 cat >> confdefs.h <<\EOF
16538 #define HAVE_YIELDING_SELECT 1
16543 if test $ol_with_threads = manual ; then
16544 ol_link_threads=yes
16546 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16548 for ac_hdr in pthread.h sched.h
16550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16552 echo "configure:16553: checking for $ac_hdr" >&5
16553 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16554 echo $ac_n "(cached) $ac_c" 1>&6
16556 cat > conftest.$ac_ext <<EOF
16557 #line 16558 "configure"
16558 #include "confdefs.h"
16561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16562 { (eval echo configure:16563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16564 if test -z "$ac_err"; then
16566 eval "ac_cv_header_$ac_safe=yes"
16569 echo "configure: failed program was:" >&5
16570 cat conftest.$ac_ext >&5
16572 eval "ac_cv_header_$ac_safe=no"
16576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16577 echo "$ac_t""yes" 1>&6
16578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16579 cat >> confdefs.h <<EOF
16580 #define $ac_tr_hdr 1
16584 echo "$ac_t""no" 1>&6
16588 for ac_func in sched_yield pthread_yield
16590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16591 echo "configure:16592: checking for $ac_func" >&5
16592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
16595 cat > conftest.$ac_ext <<EOF
16596 #line 16597 "configure"
16597 #include "confdefs.h"
16598 /* System header to define __stub macros and hopefully few prototypes,
16599 which can conflict with char $ac_func(); below. */
16600 #include <assert.h>
16601 /* Override any gcc2 internal prototype to avoid an error. */
16602 /* We use char because int might match the return type of a gcc2
16603 builtin and then its argument prototype would still apply. */
16609 /* The GNU C library defines this for functions which it implements
16610 to always fail with ENOSYS. Some functions are actually named
16611 something starting with __ and the normal name is an alias. */
16612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16620 if { (eval echo configure:16621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16622 eval "ac_cv_func_$ac_func=yes"
16624 echo "configure: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16627 eval "ac_cv_func_$ac_func=no"
16632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16633 echo "$ac_t""yes" 1>&6
16634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16635 cat >> confdefs.h <<EOF
16636 #define $ac_tr_func 1
16640 echo "$ac_t""no" 1>&6
16645 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16646 echo "configure:16647: checking for LinuxThreads pthread.h" >&5
16647 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16648 echo $ac_n "(cached) $ac_c" 1>&6
16650 cat > conftest.$ac_ext <<EOF
16651 #line 16652 "configure"
16652 #include "confdefs.h"
16653 #include <pthread.h>
16655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16656 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16658 ol_cv_header_linux_threads=yes
16661 ol_cv_header_linux_threads=no
16668 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16669 if test $ol_cv_header_linux_threads = yes; then
16670 cat >> confdefs.h <<\EOF
16671 #define HAVE_LINUX_THREADS 1
16677 for ac_hdr in mach/cthreads.h
16679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16681 echo "configure:16682: checking for $ac_hdr" >&5
16682 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16683 echo $ac_n "(cached) $ac_c" 1>&6
16685 cat > conftest.$ac_ext <<EOF
16686 #line 16687 "configure"
16687 #include "confdefs.h"
16690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16691 { (eval echo configure:16692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16693 if test -z "$ac_err"; then
16695 eval "ac_cv_header_$ac_safe=yes"
16698 echo "configure: failed program was:" >&5
16699 cat conftest.$ac_ext >&5
16701 eval "ac_cv_header_$ac_safe=no"
16705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16706 echo "$ac_t""yes" 1>&6
16707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16708 cat >> confdefs.h <<EOF
16709 #define $ac_tr_hdr 1
16713 echo "$ac_t""no" 1>&6
16717 for ac_hdr in lwp/lwp.h
16719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16721 echo "configure:16722: checking for $ac_hdr" >&5
16722 if eval "test \"\${ac_cv_header_$ac_safe+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"
16730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16731 { (eval echo configure:16732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16733 if test -z "$ac_err"; then
16735 eval "ac_cv_header_$ac_safe=yes"
16738 echo "configure: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16741 eval "ac_cv_header_$ac_safe=no"
16745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16746 echo "$ac_t""yes" 1>&6
16747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16748 cat >> confdefs.h <<EOF
16749 #define $ac_tr_hdr 1
16753 echo "$ac_t""no" 1>&6
16757 for ac_hdr in thread.h synch.h
16759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16761 echo "configure:16762: checking for $ac_hdr" >&5
16762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16763 echo $ac_n "(cached) $ac_c" 1>&6
16765 cat > conftest.$ac_ext <<EOF
16766 #line 16767 "configure"
16767 #include "confdefs.h"
16770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16771 { (eval echo configure:16772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16773 if test -z "$ac_err"; then
16775 eval "ac_cv_header_$ac_safe=yes"
16778 echo "configure: failed program was:" >&5
16779 cat conftest.$ac_ext >&5
16781 eval "ac_cv_header_$ac_safe=no"
16785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16786 echo "$ac_t""yes" 1>&6
16787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16788 cat >> confdefs.h <<EOF
16789 #define $ac_tr_hdr 1
16793 echo "$ac_t""no" 1>&6
16799 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16800 cat >> confdefs.h <<\EOF
16801 #define REENTRANT 1
16804 cat >> confdefs.h <<\EOF
16805 #define _REENTRANT 1
16808 cat >> confdefs.h <<\EOF
16809 #define THREAD_SAFE 1
16812 cat >> confdefs.h <<\EOF
16813 #define _THREAD_SAFE 1
16816 cat >> confdefs.h <<\EOF
16817 #define THREADSAFE 1
16820 cat >> confdefs.h <<\EOF
16821 #define _THREADSAFE 1
16824 cat >> confdefs.h <<\EOF
16825 #define _SGI_MP_SOURCE 1
16829 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16830 echo "configure:16831: checking for thread specific errno" >&5
16831 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16832 echo $ac_n "(cached) $ac_c" 1>&6
16835 cat > conftest.$ac_ext <<EOF
16836 #line 16837 "configure"
16837 #include "confdefs.h"
16843 if { (eval echo configure:16844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16845 ol_cv_errno_thread_specific=yes
16847 echo "configure: failed program was:" >&5
16848 cat conftest.$ac_ext >&5
16850 ol_cv_errno_thread_specific=no
16856 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16858 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16859 echo "configure:16860: checking for thread specific h_errno" >&5
16860 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16861 echo $ac_n "(cached) $ac_c" 1>&6
16864 cat > conftest.$ac_ext <<EOF
16865 #line 16866 "configure"
16866 #include "confdefs.h"
16872 if { (eval echo configure:16873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16874 ol_cv_h_errno_thread_specific=yes
16876 echo "configure: failed program was:" >&5
16877 cat conftest.$ac_ext >&5
16879 ol_cv_h_errno_thread_specific=no
16885 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16887 if test $ol_cv_errno_thread_specific != yes \
16888 -o $ol_cv_h_errno_thread_specific != yes ; then
16889 LIBS="$LTHREAD_LIBS $LIBS"
16895 if test $ol_link_threads = no ; then
16896 if test $ol_with_threads = yes ; then
16897 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16900 if test $ol_with_threads = auto ; then
16901 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16905 cat >> confdefs.h <<\EOF
16906 #define NO_THREADS 1
16912 if test $ol_link_threads != no ; then
16913 cat >> confdefs.h <<\EOF
16914 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16921 if test $ol_with_ldbm_api = auto \
16922 -o $ol_with_ldbm_api = berkeley \
16923 -o $ol_with_ldbm_api = bcompat ; then
16925 if test $ol_with_ldbm_api = bcompat; then \
16926 for ac_hdr in db_185.h db.h
16928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16930 echo "configure:16931: checking for $ac_hdr" >&5
16931 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16932 echo $ac_n "(cached) $ac_c" 1>&6
16934 cat > conftest.$ac_ext <<EOF
16935 #line 16936 "configure"
16936 #include "confdefs.h"
16939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16940 { (eval echo configure:16941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16942 if test -z "$ac_err"; then
16944 eval "ac_cv_header_$ac_safe=yes"
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16950 eval "ac_cv_header_$ac_safe=no"
16954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16955 echo "$ac_t""yes" 1>&6
16956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16957 cat >> confdefs.h <<EOF
16958 #define $ac_tr_hdr 1
16962 echo "$ac_t""no" 1>&6
16966 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16967 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16968 echo "configure:16969: checking if Berkeley DB header compatibility" >&5
16969 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16970 echo $ac_n "(cached) $ac_c" 1>&6
16973 cat > conftest.$ac_ext <<EOF
16974 #line 16975 "configure"
16975 #include "confdefs.h"
16978 # include <db_185.h>
16983 /* this check could be improved */
16984 #ifndef DB_VERSION_MAJOR
16985 # define DB_VERSION_MAJOR 1
16988 #if DB_VERSION_MAJOR == 1
16993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16994 egrep "__db_version_1" >/dev/null 2>&1; then
16996 ol_cv_header_db1=yes
16999 ol_cv_header_db1=no
17005 echo "$ac_t""$ol_cv_header_db1" 1>&6
17007 if test $ol_cv_header_db1 = yes ; then
17009 if test $ol_cv_lib_db = no ; then
17010 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17011 echo "configure:17012: checking for Berkeley DB link (default)" >&5
17012 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17013 echo $ac_n "(cached) $ac_c" 1>&6
17018 LIBS="$ol_DB_LIB $LIBS"
17020 cat > conftest.$ac_ext <<EOF
17021 #line 17022 "configure"
17022 #include "confdefs.h"
17024 #ifdef HAVE_DB_185_H
17025 # include <db_185.h>
17030 #ifndef DB_VERSION_MAJOR
17031 # define DB_VERSION_MAJOR 1
17035 #define NULL ((void*)0)
17040 #if DB_VERSION_MAJOR > 1
17043 int major, minor, patch;
17045 version = db_version( &major, &minor, &patch );
17047 if( major != DB_VERSION_MAJOR ||
17048 minor < DB_VERSION_MINOR )
17050 printf("Berkeley DB version mismatch\n"
17051 "\texpected: %s\n\tgot: %s\n",
17052 DB_VERSION_STRING, version);
17058 #if DB_VERSION_MAJOR > 2
17059 db_env_create( NULL, 0 );
17060 #elif DB_VERSION_MAJOR > 1
17061 db_appexit( NULL );
17063 (void) dbopen( NULL, 0, 0, 0, NULL);
17068 if { (eval echo configure:17069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17072 echo "configure: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17083 echo "$ac_t""$ol_cv_db_none" 1>&6
17085 if test $ol_cv_db_none = yes ; then
17090 if test $ol_cv_lib_db = no ; then
17091 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17092 echo "configure:17093: checking for Berkeley DB link (-ldb4)" >&5
17093 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17094 echo $ac_n "(cached) $ac_c" 1>&6
17099 LIBS="$ol_DB_LIB $LIBS"
17101 cat > conftest.$ac_ext <<EOF
17102 #line 17103 "configure"
17103 #include "confdefs.h"
17105 #ifdef HAVE_DB_185_H
17106 # include <db_185.h>
17111 #ifndef DB_VERSION_MAJOR
17112 # define DB_VERSION_MAJOR 1
17116 #define NULL ((void*)0)
17121 #if DB_VERSION_MAJOR > 1
17124 int major, minor, patch;
17126 version = db_version( &major, &minor, &patch );
17128 if( major != DB_VERSION_MAJOR ||
17129 minor < DB_VERSION_MINOR )
17131 printf("Berkeley DB version mismatch\n"
17132 "\texpected: %s\n\tgot: %s\n",
17133 DB_VERSION_STRING, version);
17139 #if DB_VERSION_MAJOR > 2
17140 db_env_create( NULL, 0 );
17141 #elif DB_VERSION_MAJOR > 1
17142 db_appexit( NULL );
17144 (void) dbopen( NULL, 0, 0, 0, NULL);
17149 if { (eval echo configure:17150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17153 echo "configure: failed program was:" >&5
17154 cat conftest.$ac_ext >&5
17164 echo "$ac_t""$ol_cv_db_db4" 1>&6
17166 if test $ol_cv_db_db4 = yes ; then
17171 if test $ol_cv_lib_db = no ; then
17172 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17173 echo "configure:17174: checking for Berkeley DB link (-ldb-4)" >&5
17174 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17175 echo $ac_n "(cached) $ac_c" 1>&6
17180 LIBS="$ol_DB_LIB $LIBS"
17182 cat > conftest.$ac_ext <<EOF
17183 #line 17184 "configure"
17184 #include "confdefs.h"
17186 #ifdef HAVE_DB_185_H
17187 # include <db_185.h>
17192 #ifndef DB_VERSION_MAJOR
17193 # define DB_VERSION_MAJOR 1
17197 #define NULL ((void*)0)
17202 #if DB_VERSION_MAJOR > 1
17205 int major, minor, patch;
17207 version = db_version( &major, &minor, &patch );
17209 if( major != DB_VERSION_MAJOR ||
17210 minor < DB_VERSION_MINOR )
17212 printf("Berkeley DB version mismatch\n"
17213 "\texpected: %s\n\tgot: %s\n",
17214 DB_VERSION_STRING, version);
17220 #if DB_VERSION_MAJOR > 2
17221 db_env_create( NULL, 0 );
17222 #elif DB_VERSION_MAJOR > 1
17223 db_appexit( NULL );
17225 (void) dbopen( NULL, 0, 0, 0, NULL);
17230 if { (eval echo configure:17231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17234 echo "configure: failed program was:" >&5
17235 cat conftest.$ac_ext >&5
17245 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17247 if test $ol_cv_db_db_4 = yes ; then
17248 ol_cv_lib_db=-ldb-4
17252 if test $ol_cv_lib_db = no ; then
17253 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17254 echo "configure:17255: checking for Berkeley DB link (-ldb)" >&5
17255 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17256 echo $ac_n "(cached) $ac_c" 1>&6
17261 LIBS="$ol_DB_LIB $LIBS"
17263 cat > conftest.$ac_ext <<EOF
17264 #line 17265 "configure"
17265 #include "confdefs.h"
17267 #ifdef HAVE_DB_185_H
17268 # include <db_185.h>
17273 #ifndef DB_VERSION_MAJOR
17274 # define DB_VERSION_MAJOR 1
17278 #define NULL ((void*)0)
17283 #if DB_VERSION_MAJOR > 1
17286 int major, minor, patch;
17288 version = db_version( &major, &minor, &patch );
17290 if( major != DB_VERSION_MAJOR ||
17291 minor < DB_VERSION_MINOR )
17293 printf("Berkeley DB version mismatch\n"
17294 "\texpected: %s\n\tgot: %s\n",
17295 DB_VERSION_STRING, version);
17301 #if DB_VERSION_MAJOR > 2
17302 db_env_create( NULL, 0 );
17303 #elif DB_VERSION_MAJOR > 1
17304 db_appexit( NULL );
17306 (void) dbopen( NULL, 0, 0, 0, NULL);
17311 if { (eval echo configure:17312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17315 echo "configure: failed program was:" >&5
17316 cat conftest.$ac_ext >&5
17326 echo "$ac_t""$ol_cv_db_db" 1>&6
17328 if test $ol_cv_db_db = yes ; then
17333 if test $ol_cv_lib_db = no ; then
17334 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17335 echo "configure:17336: checking for Berkeley DB link (-ldb3)" >&5
17336 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17337 echo $ac_n "(cached) $ac_c" 1>&6
17342 LIBS="$ol_DB_LIB $LIBS"
17344 cat > conftest.$ac_ext <<EOF
17345 #line 17346 "configure"
17346 #include "confdefs.h"
17348 #ifdef HAVE_DB_185_H
17349 # include <db_185.h>
17354 #ifndef DB_VERSION_MAJOR
17355 # define DB_VERSION_MAJOR 1
17359 #define NULL ((void*)0)
17364 #if DB_VERSION_MAJOR > 1
17367 int major, minor, patch;
17369 version = db_version( &major, &minor, &patch );
17371 if( major != DB_VERSION_MAJOR ||
17372 minor < DB_VERSION_MINOR )
17374 printf("Berkeley DB version mismatch\n"
17375 "\texpected: %s\n\tgot: %s\n",
17376 DB_VERSION_STRING, version);
17382 #if DB_VERSION_MAJOR > 2
17383 db_env_create( NULL, 0 );
17384 #elif DB_VERSION_MAJOR > 1
17385 db_appexit( NULL );
17387 (void) dbopen( NULL, 0, 0, 0, NULL);
17392 if { (eval echo configure:17393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17396 echo "configure: failed program was:" >&5
17397 cat conftest.$ac_ext >&5
17407 echo "$ac_t""$ol_cv_db_db3" 1>&6
17409 if test $ol_cv_db_db3 = yes ; then
17414 if test $ol_cv_lib_db = no ; then
17415 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17416 echo "configure:17417: checking for Berkeley DB link (-ldb-3)" >&5
17417 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17418 echo $ac_n "(cached) $ac_c" 1>&6
17423 LIBS="$ol_DB_LIB $LIBS"
17425 cat > conftest.$ac_ext <<EOF
17426 #line 17427 "configure"
17427 #include "confdefs.h"
17429 #ifdef HAVE_DB_185_H
17430 # include <db_185.h>
17435 #ifndef DB_VERSION_MAJOR
17436 # define DB_VERSION_MAJOR 1
17440 #define NULL ((void*)0)
17445 #if DB_VERSION_MAJOR > 1
17448 int major, minor, patch;
17450 version = db_version( &major, &minor, &patch );
17452 if( major != DB_VERSION_MAJOR ||
17453 minor < DB_VERSION_MINOR )
17455 printf("Berkeley DB version mismatch\n"
17456 "\texpected: %s\n\tgot: %s\n",
17457 DB_VERSION_STRING, version);
17463 #if DB_VERSION_MAJOR > 2
17464 db_env_create( NULL, 0 );
17465 #elif DB_VERSION_MAJOR > 1
17466 db_appexit( NULL );
17468 (void) dbopen( NULL, 0, 0, 0, NULL);
17473 if { (eval echo configure:17474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17477 echo "configure: failed program was:" >&5
17478 cat conftest.$ac_ext >&5
17488 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17490 if test $ol_cv_db_db_3 = yes ; then
17491 ol_cv_lib_db=-ldb-3
17495 if test $ol_cv_lib_db = no ; then
17496 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17497 echo "configure:17498: checking for Berkeley DB link (-ldb2)" >&5
17498 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17499 echo $ac_n "(cached) $ac_c" 1>&6
17504 LIBS="$ol_DB_LIB $LIBS"
17506 cat > conftest.$ac_ext <<EOF
17507 #line 17508 "configure"
17508 #include "confdefs.h"
17510 #ifdef HAVE_DB_185_H
17511 # include <db_185.h>
17516 #ifndef DB_VERSION_MAJOR
17517 # define DB_VERSION_MAJOR 1
17521 #define NULL ((void*)0)
17526 #if DB_VERSION_MAJOR > 1
17529 int major, minor, patch;
17531 version = db_version( &major, &minor, &patch );
17533 if( major != DB_VERSION_MAJOR ||
17534 minor < DB_VERSION_MINOR )
17536 printf("Berkeley DB version mismatch\n"
17537 "\texpected: %s\n\tgot: %s\n",
17538 DB_VERSION_STRING, version);
17544 #if DB_VERSION_MAJOR > 2
17545 db_env_create( NULL, 0 );
17546 #elif DB_VERSION_MAJOR > 1
17547 db_appexit( NULL );
17549 (void) dbopen( NULL, 0, 0, 0, NULL);
17554 if { (eval echo configure:17555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17558 echo "configure: failed program was:" >&5
17559 cat conftest.$ac_ext >&5
17569 echo "$ac_t""$ol_cv_db_db2" 1>&6
17571 if test $ol_cv_db_db2 = yes ; then
17576 if test $ol_cv_lib_db = no ; then
17577 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17578 echo "configure:17579: checking for Berkeley DB link (-ldb-2)" >&5
17579 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17580 echo $ac_n "(cached) $ac_c" 1>&6
17585 LIBS="$ol_DB_LIB $LIBS"
17587 cat > conftest.$ac_ext <<EOF
17588 #line 17589 "configure"
17589 #include "confdefs.h"
17591 #ifdef HAVE_DB_185_H
17592 # include <db_185.h>
17597 #ifndef DB_VERSION_MAJOR
17598 # define DB_VERSION_MAJOR 1
17602 #define NULL ((void*)0)
17607 #if DB_VERSION_MAJOR > 1
17610 int major, minor, patch;
17612 version = db_version( &major, &minor, &patch );
17614 if( major != DB_VERSION_MAJOR ||
17615 minor < DB_VERSION_MINOR )
17617 printf("Berkeley DB version mismatch\n"
17618 "\texpected: %s\n\tgot: %s\n",
17619 DB_VERSION_STRING, version);
17625 #if DB_VERSION_MAJOR > 2
17626 db_env_create( NULL, 0 );
17627 #elif DB_VERSION_MAJOR > 1
17628 db_appexit( NULL );
17630 (void) dbopen( NULL, 0, 0, 0, NULL);
17635 if { (eval echo configure:17636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17639 echo "configure: failed program was:" >&5
17640 cat conftest.$ac_ext >&5
17650 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17652 if test $ol_cv_db_db_2 = yes ; then
17653 ol_cv_lib_db=-ldb-2
17657 if test $ol_cv_lib_db = no ; then
17658 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17659 echo "configure:17660: checking for Berkeley DB link (-ldb1)" >&5
17660 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17661 echo $ac_n "(cached) $ac_c" 1>&6
17666 LIBS="$ol_DB_LIB $LIBS"
17668 cat > conftest.$ac_ext <<EOF
17669 #line 17670 "configure"
17670 #include "confdefs.h"
17672 #ifdef HAVE_DB_185_H
17673 # include <db_185.h>
17678 #ifndef DB_VERSION_MAJOR
17679 # define DB_VERSION_MAJOR 1
17683 #define NULL ((void*)0)
17688 #if DB_VERSION_MAJOR > 1
17691 int major, minor, patch;
17693 version = db_version( &major, &minor, &patch );
17695 if( major != DB_VERSION_MAJOR ||
17696 minor < DB_VERSION_MINOR )
17698 printf("Berkeley DB version mismatch\n"
17699 "\texpected: %s\n\tgot: %s\n",
17700 DB_VERSION_STRING, version);
17706 #if DB_VERSION_MAJOR > 2
17707 db_env_create( NULL, 0 );
17708 #elif DB_VERSION_MAJOR > 1
17709 db_appexit( NULL );
17711 (void) dbopen( NULL, 0, 0, 0, NULL);
17716 if { (eval echo configure:17717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17720 echo "configure: failed program was:" >&5
17721 cat conftest.$ac_ext >&5
17731 echo "$ac_t""$ol_cv_db_db1" 1>&6
17733 if test $ol_cv_db_db1 = yes ; then
17738 if test $ol_cv_lib_db = no ; then
17739 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17740 echo "configure:17741: checking for Berkeley DB link (-ldb-1)" >&5
17741 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17742 echo $ac_n "(cached) $ac_c" 1>&6
17747 LIBS="$ol_DB_LIB $LIBS"
17749 cat > conftest.$ac_ext <<EOF
17750 #line 17751 "configure"
17751 #include "confdefs.h"
17753 #ifdef HAVE_DB_185_H
17754 # include <db_185.h>
17759 #ifndef DB_VERSION_MAJOR
17760 # define DB_VERSION_MAJOR 1
17764 #define NULL ((void*)0)
17769 #if DB_VERSION_MAJOR > 1
17772 int major, minor, patch;
17774 version = db_version( &major, &minor, &patch );
17776 if( major != DB_VERSION_MAJOR ||
17777 minor < DB_VERSION_MINOR )
17779 printf("Berkeley DB version mismatch\n"
17780 "\texpected: %s\n\tgot: %s\n",
17781 DB_VERSION_STRING, version);
17787 #if DB_VERSION_MAJOR > 2
17788 db_env_create( NULL, 0 );
17789 #elif DB_VERSION_MAJOR > 1
17790 db_appexit( NULL );
17792 (void) dbopen( NULL, 0, 0, 0, NULL);
17797 if { (eval echo configure:17798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17801 echo "configure: failed program was:" >&5
17802 cat conftest.$ac_ext >&5
17812 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17814 if test $ol_cv_db_db_1 = yes ; then
17815 ol_cv_lib_db=-ldb-1
17820 if test "$ol_cv_lib_db" != no ; then
17821 ol_cv_berkeley_db=yes
17827 ol_cv_berkeley_db=no
17830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17832 echo "configure:17833: checking for $ac_hdr" >&5
17833 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17834 echo $ac_n "(cached) $ac_c" 1>&6
17836 cat > conftest.$ac_ext <<EOF
17837 #line 17838 "configure"
17838 #include "confdefs.h"
17841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17842 { (eval echo configure:17843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17844 if test -z "$ac_err"; then
17846 eval "ac_cv_header_$ac_safe=yes"
17849 echo "configure: failed program was:" >&5
17850 cat conftest.$ac_ext >&5
17852 eval "ac_cv_header_$ac_safe=no"
17856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17857 echo "$ac_t""yes" 1>&6
17858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17859 cat >> confdefs.h <<EOF
17860 #define $ac_tr_hdr 1
17864 echo "$ac_t""no" 1>&6
17868 if test $ac_cv_header_db_h = yes; then
17870 if test $ol_cv_lib_db = no ; then
17871 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17872 echo "configure:17873: checking for Berkeley DB link (default)" >&5
17873 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17874 echo $ac_n "(cached) $ac_c" 1>&6
17879 LIBS="$ol_DB_LIB $LIBS"
17881 cat > conftest.$ac_ext <<EOF
17882 #line 17883 "configure"
17883 #include "confdefs.h"
17885 #ifdef HAVE_DB_185_H
17886 # include <db_185.h>
17891 #ifndef DB_VERSION_MAJOR
17892 # define DB_VERSION_MAJOR 1
17896 #define NULL ((void*)0)
17901 #if DB_VERSION_MAJOR > 1
17904 int major, minor, patch;
17906 version = db_version( &major, &minor, &patch );
17908 if( major != DB_VERSION_MAJOR ||
17909 minor < DB_VERSION_MINOR )
17911 printf("Berkeley DB version mismatch\n"
17912 "\texpected: %s\n\tgot: %s\n",
17913 DB_VERSION_STRING, version);
17919 #if DB_VERSION_MAJOR > 2
17920 db_env_create( NULL, 0 );
17921 #elif DB_VERSION_MAJOR > 1
17922 db_appexit( NULL );
17924 (void) dbopen( NULL, 0, 0, 0, NULL);
17929 if { (eval echo configure:17930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17933 echo "configure: failed program was:" >&5
17934 cat conftest.$ac_ext >&5
17944 echo "$ac_t""$ol_cv_db_none" 1>&6
17946 if test $ol_cv_db_none = yes ; then
17951 if test $ol_cv_lib_db = no ; then
17952 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17953 echo "configure:17954: checking for Berkeley DB link (-ldb4)" >&5
17954 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17955 echo $ac_n "(cached) $ac_c" 1>&6
17960 LIBS="$ol_DB_LIB $LIBS"
17962 cat > conftest.$ac_ext <<EOF
17963 #line 17964 "configure"
17964 #include "confdefs.h"
17966 #ifdef HAVE_DB_185_H
17967 # include <db_185.h>
17972 #ifndef DB_VERSION_MAJOR
17973 # define DB_VERSION_MAJOR 1
17977 #define NULL ((void*)0)
17982 #if DB_VERSION_MAJOR > 1
17985 int major, minor, patch;
17987 version = db_version( &major, &minor, &patch );
17989 if( major != DB_VERSION_MAJOR ||
17990 minor < DB_VERSION_MINOR )
17992 printf("Berkeley DB version mismatch\n"
17993 "\texpected: %s\n\tgot: %s\n",
17994 DB_VERSION_STRING, version);
18000 #if DB_VERSION_MAJOR > 2
18001 db_env_create( NULL, 0 );
18002 #elif DB_VERSION_MAJOR > 1
18003 db_appexit( NULL );
18005 (void) dbopen( NULL, 0, 0, 0, NULL);
18010 if { (eval echo configure:18011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18014 echo "configure: failed program was:" >&5
18015 cat conftest.$ac_ext >&5
18025 echo "$ac_t""$ol_cv_db_db4" 1>&6
18027 if test $ol_cv_db_db4 = yes ; then
18032 if test $ol_cv_lib_db = no ; then
18033 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18034 echo "configure:18035: checking for Berkeley DB link (-ldb-4)" >&5
18035 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18036 echo $ac_n "(cached) $ac_c" 1>&6
18041 LIBS="$ol_DB_LIB $LIBS"
18043 cat > conftest.$ac_ext <<EOF
18044 #line 18045 "configure"
18045 #include "confdefs.h"
18047 #ifdef HAVE_DB_185_H
18048 # include <db_185.h>
18053 #ifndef DB_VERSION_MAJOR
18054 # define DB_VERSION_MAJOR 1
18058 #define NULL ((void*)0)
18063 #if DB_VERSION_MAJOR > 1
18066 int major, minor, patch;
18068 version = db_version( &major, &minor, &patch );
18070 if( major != DB_VERSION_MAJOR ||
18071 minor < DB_VERSION_MINOR )
18073 printf("Berkeley DB version mismatch\n"
18074 "\texpected: %s\n\tgot: %s\n",
18075 DB_VERSION_STRING, version);
18081 #if DB_VERSION_MAJOR > 2
18082 db_env_create( NULL, 0 );
18083 #elif DB_VERSION_MAJOR > 1
18084 db_appexit( NULL );
18086 (void) dbopen( NULL, 0, 0, 0, NULL);
18091 if { (eval echo configure:18092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18095 echo "configure: failed program was:" >&5
18096 cat conftest.$ac_ext >&5
18106 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18108 if test $ol_cv_db_db_4 = yes ; then
18109 ol_cv_lib_db=-ldb-4
18113 if test $ol_cv_lib_db = no ; then
18114 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18115 echo "configure:18116: checking for Berkeley DB link (-ldb)" >&5
18116 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18117 echo $ac_n "(cached) $ac_c" 1>&6
18122 LIBS="$ol_DB_LIB $LIBS"
18124 cat > conftest.$ac_ext <<EOF
18125 #line 18126 "configure"
18126 #include "confdefs.h"
18128 #ifdef HAVE_DB_185_H
18129 # include <db_185.h>
18134 #ifndef DB_VERSION_MAJOR
18135 # define DB_VERSION_MAJOR 1
18139 #define NULL ((void*)0)
18144 #if DB_VERSION_MAJOR > 1
18147 int major, minor, patch;
18149 version = db_version( &major, &minor, &patch );
18151 if( major != DB_VERSION_MAJOR ||
18152 minor < DB_VERSION_MINOR )
18154 printf("Berkeley DB version mismatch\n"
18155 "\texpected: %s\n\tgot: %s\n",
18156 DB_VERSION_STRING, version);
18162 #if DB_VERSION_MAJOR > 2
18163 db_env_create( NULL, 0 );
18164 #elif DB_VERSION_MAJOR > 1
18165 db_appexit( NULL );
18167 (void) dbopen( NULL, 0, 0, 0, NULL);
18172 if { (eval echo configure:18173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18176 echo "configure: failed program was:" >&5
18177 cat conftest.$ac_ext >&5
18187 echo "$ac_t""$ol_cv_db_db" 1>&6
18189 if test $ol_cv_db_db = yes ; then
18194 if test $ol_cv_lib_db = no ; then
18195 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18196 echo "configure:18197: checking for Berkeley DB link (-ldb3)" >&5
18197 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18198 echo $ac_n "(cached) $ac_c" 1>&6
18203 LIBS="$ol_DB_LIB $LIBS"
18205 cat > conftest.$ac_ext <<EOF
18206 #line 18207 "configure"
18207 #include "confdefs.h"
18209 #ifdef HAVE_DB_185_H
18210 # include <db_185.h>
18215 #ifndef DB_VERSION_MAJOR
18216 # define DB_VERSION_MAJOR 1
18220 #define NULL ((void*)0)
18225 #if DB_VERSION_MAJOR > 1
18228 int major, minor, patch;
18230 version = db_version( &major, &minor, &patch );
18232 if( major != DB_VERSION_MAJOR ||
18233 minor < DB_VERSION_MINOR )
18235 printf("Berkeley DB version mismatch\n"
18236 "\texpected: %s\n\tgot: %s\n",
18237 DB_VERSION_STRING, version);
18243 #if DB_VERSION_MAJOR > 2
18244 db_env_create( NULL, 0 );
18245 #elif DB_VERSION_MAJOR > 1
18246 db_appexit( NULL );
18248 (void) dbopen( NULL, 0, 0, 0, NULL);
18253 if { (eval echo configure:18254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18257 echo "configure: failed program was:" >&5
18258 cat conftest.$ac_ext >&5
18268 echo "$ac_t""$ol_cv_db_db3" 1>&6
18270 if test $ol_cv_db_db3 = yes ; then
18275 if test $ol_cv_lib_db = no ; then
18276 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18277 echo "configure:18278: checking for Berkeley DB link (-ldb-3)" >&5
18278 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18279 echo $ac_n "(cached) $ac_c" 1>&6
18284 LIBS="$ol_DB_LIB $LIBS"
18286 cat > conftest.$ac_ext <<EOF
18287 #line 18288 "configure"
18288 #include "confdefs.h"
18290 #ifdef HAVE_DB_185_H
18291 # include <db_185.h>
18296 #ifndef DB_VERSION_MAJOR
18297 # define DB_VERSION_MAJOR 1
18301 #define NULL ((void*)0)
18306 #if DB_VERSION_MAJOR > 1
18309 int major, minor, patch;
18311 version = db_version( &major, &minor, &patch );
18313 if( major != DB_VERSION_MAJOR ||
18314 minor < DB_VERSION_MINOR )
18316 printf("Berkeley DB version mismatch\n"
18317 "\texpected: %s\n\tgot: %s\n",
18318 DB_VERSION_STRING, version);
18324 #if DB_VERSION_MAJOR > 2
18325 db_env_create( NULL, 0 );
18326 #elif DB_VERSION_MAJOR > 1
18327 db_appexit( NULL );
18329 (void) dbopen( NULL, 0, 0, 0, NULL);
18334 if { (eval echo configure:18335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18338 echo "configure: failed program was:" >&5
18339 cat conftest.$ac_ext >&5
18349 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18351 if test $ol_cv_db_db_3 = yes ; then
18352 ol_cv_lib_db=-ldb-3
18356 if test $ol_cv_lib_db = no ; then
18357 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18358 echo "configure:18359: checking for Berkeley DB link (-ldb2)" >&5
18359 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18360 echo $ac_n "(cached) $ac_c" 1>&6
18365 LIBS="$ol_DB_LIB $LIBS"
18367 cat > conftest.$ac_ext <<EOF
18368 #line 18369 "configure"
18369 #include "confdefs.h"
18371 #ifdef HAVE_DB_185_H
18372 # include <db_185.h>
18377 #ifndef DB_VERSION_MAJOR
18378 # define DB_VERSION_MAJOR 1
18382 #define NULL ((void*)0)
18387 #if DB_VERSION_MAJOR > 1
18390 int major, minor, patch;
18392 version = db_version( &major, &minor, &patch );
18394 if( major != DB_VERSION_MAJOR ||
18395 minor < DB_VERSION_MINOR )
18397 printf("Berkeley DB version mismatch\n"
18398 "\texpected: %s\n\tgot: %s\n",
18399 DB_VERSION_STRING, version);
18405 #if DB_VERSION_MAJOR > 2
18406 db_env_create( NULL, 0 );
18407 #elif DB_VERSION_MAJOR > 1
18408 db_appexit( NULL );
18410 (void) dbopen( NULL, 0, 0, 0, NULL);
18415 if { (eval echo configure:18416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18419 echo "configure: failed program was:" >&5
18420 cat conftest.$ac_ext >&5
18430 echo "$ac_t""$ol_cv_db_db2" 1>&6
18432 if test $ol_cv_db_db2 = yes ; then
18437 if test $ol_cv_lib_db = no ; then
18438 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18439 echo "configure:18440: checking for Berkeley DB link (-ldb-2)" >&5
18440 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18441 echo $ac_n "(cached) $ac_c" 1>&6
18446 LIBS="$ol_DB_LIB $LIBS"
18448 cat > conftest.$ac_ext <<EOF
18449 #line 18450 "configure"
18450 #include "confdefs.h"
18452 #ifdef HAVE_DB_185_H
18453 # include <db_185.h>
18458 #ifndef DB_VERSION_MAJOR
18459 # define DB_VERSION_MAJOR 1
18463 #define NULL ((void*)0)
18468 #if DB_VERSION_MAJOR > 1
18471 int major, minor, patch;
18473 version = db_version( &major, &minor, &patch );
18475 if( major != DB_VERSION_MAJOR ||
18476 minor < DB_VERSION_MINOR )
18478 printf("Berkeley DB version mismatch\n"
18479 "\texpected: %s\n\tgot: %s\n",
18480 DB_VERSION_STRING, version);
18486 #if DB_VERSION_MAJOR > 2
18487 db_env_create( NULL, 0 );
18488 #elif DB_VERSION_MAJOR > 1
18489 db_appexit( NULL );
18491 (void) dbopen( NULL, 0, 0, 0, NULL);
18496 if { (eval echo configure:18497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18500 echo "configure: failed program was:" >&5
18501 cat conftest.$ac_ext >&5
18511 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18513 if test $ol_cv_db_db_2 = yes ; then
18514 ol_cv_lib_db=-ldb-2
18518 if test $ol_cv_lib_db = no ; then
18519 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18520 echo "configure:18521: checking for Berkeley DB link (-ldb1)" >&5
18521 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18522 echo $ac_n "(cached) $ac_c" 1>&6
18527 LIBS="$ol_DB_LIB $LIBS"
18529 cat > conftest.$ac_ext <<EOF
18530 #line 18531 "configure"
18531 #include "confdefs.h"
18533 #ifdef HAVE_DB_185_H
18534 # include <db_185.h>
18539 #ifndef DB_VERSION_MAJOR
18540 # define DB_VERSION_MAJOR 1
18544 #define NULL ((void*)0)
18549 #if DB_VERSION_MAJOR > 1
18552 int major, minor, patch;
18554 version = db_version( &major, &minor, &patch );
18556 if( major != DB_VERSION_MAJOR ||
18557 minor < DB_VERSION_MINOR )
18559 printf("Berkeley DB version mismatch\n"
18560 "\texpected: %s\n\tgot: %s\n",
18561 DB_VERSION_STRING, version);
18567 #if DB_VERSION_MAJOR > 2
18568 db_env_create( NULL, 0 );
18569 #elif DB_VERSION_MAJOR > 1
18570 db_appexit( NULL );
18572 (void) dbopen( NULL, 0, 0, 0, NULL);
18577 if { (eval echo configure:18578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18581 echo "configure: failed program was:" >&5
18582 cat conftest.$ac_ext >&5
18592 echo "$ac_t""$ol_cv_db_db1" 1>&6
18594 if test $ol_cv_db_db1 = yes ; then
18599 if test $ol_cv_lib_db = no ; then
18600 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18601 echo "configure:18602: checking for Berkeley DB link (-ldb-1)" >&5
18602 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18603 echo $ac_n "(cached) $ac_c" 1>&6
18608 LIBS="$ol_DB_LIB $LIBS"
18610 cat > conftest.$ac_ext <<EOF
18611 #line 18612 "configure"
18612 #include "confdefs.h"
18614 #ifdef HAVE_DB_185_H
18615 # include <db_185.h>
18620 #ifndef DB_VERSION_MAJOR
18621 # define DB_VERSION_MAJOR 1
18625 #define NULL ((void*)0)
18630 #if DB_VERSION_MAJOR > 1
18633 int major, minor, patch;
18635 version = db_version( &major, &minor, &patch );
18637 if( major != DB_VERSION_MAJOR ||
18638 minor < DB_VERSION_MINOR )
18640 printf("Berkeley DB version mismatch\n"
18641 "\texpected: %s\n\tgot: %s\n",
18642 DB_VERSION_STRING, version);
18648 #if DB_VERSION_MAJOR > 2
18649 db_env_create( NULL, 0 );
18650 #elif DB_VERSION_MAJOR > 1
18651 db_appexit( NULL );
18653 (void) dbopen( NULL, 0, 0, 0, NULL);
18658 if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18662 echo "configure: failed program was:" >&5
18663 cat conftest.$ac_ext >&5
18673 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18675 if test $ol_cv_db_db_1 = yes ; then
18676 ol_cv_lib_db=-ldb-1
18681 if test "$ol_cv_lib_db" != no ; then
18682 ol_cv_berkeley_db=yes
18683 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18684 echo "configure:18685: checking for Berkeley DB thread support" >&5
18685 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18686 echo $ac_n "(cached) $ac_c" 1>&6
18690 if test $ol_cv_lib_db != yes ; then
18691 LIBS="$ol_cv_lib_db"
18694 if test "$cross_compiling" = yes; then
18695 ol_cv_berkeley_db_thread=cross
18697 cat > conftest.$ac_ext <<EOF
18698 #line 18699 "configure"
18699 #include "confdefs.h"
18701 #ifdef HAVE_DB_185_H
18707 #define NULL ((void *)0)
18712 u_int32_t flags = DB_CREATE |
18718 #if DB_VERSION_MAJOR > 2
18719 DB_ENV *env = NULL;
18721 rc = db_env_create( &env, 0 );
18723 flags |= DB_INIT_MPOOL;
18724 #ifdef DB_MPOOL_PRIVATE
18725 flags |= DB_MPOOL_PRIVATE;
18729 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18733 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18734 rc = env->open( env, NULL, flags, 0 );
18736 rc = env->open( env, NULL, NULL, flags, 0 );
18740 rc = env->close( env, 0 );
18744 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18750 memset( &env, '\0', sizeof(env) );
18752 rc = db_appinit( NULL, NULL, &env, flags );
18755 db_appexit( &env );
18758 unlink("__db_mpool.share");
18759 unlink("__db_lock.share");
18765 if { (eval echo configure:18766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18767 ol_cv_berkeley_db_thread=yes
18769 echo "configure: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18772 ol_cv_berkeley_db_thread=no
18780 if test $ol_cv_berkeley_db_thread != no ; then
18781 cat >> confdefs.h <<\EOF
18782 #define HAVE_BERKELEY_DB_THREAD 1
18789 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18795 if test $ol_cv_berkeley_db != no ; then
18796 cat >> confdefs.h <<\EOF
18797 #define HAVE_BERKELEY_DB 1
18801 ol_link_ldbm=berkeley
18802 ol_with_ldbm_api=berkeley
18804 if test $ol_with_ldbm_type = hash ; then
18805 cat >> confdefs.h <<\EOF
18806 #define LDBM_USE_DBHASH 1
18810 cat >> confdefs.h <<\EOF
18811 #define LDBM_USE_DBBTREE 1
18816 if test $ol_cv_lib_db != yes ; then
18817 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18822 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18823 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18824 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18825 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18826 echo "configure:18827: checking Berkeley DB version for BDB backend" >&5
18827 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18828 echo $ac_n "(cached) $ac_c" 1>&6
18831 cat > conftest.$ac_ext <<EOF
18832 #line 18833 "configure"
18833 #include "confdefs.h"
18837 /* this check could be improved */
18838 #ifndef DB_VERSION_MAJOR
18839 # define DB_VERSION_MAJOR 1
18842 /* require 4.0 or later */
18843 #if DB_VERSION_MAJOR >= 4
18844 __db_version_compat
18848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18849 egrep "__db_version_compat" >/dev/null 2>&1; then
18851 ol_cv_bdb_compat=yes
18854 ol_cv_bdb_compat=no
18860 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18863 if test $ol_cv_bdb_compat = yes ; then
18865 elif test $ol_enable_bdb = yes ; then
18866 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18872 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18873 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18874 ol_with_ldbm_api=none
18877 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18878 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18879 echo "configure:18880: checking for MDBM library" >&5
18880 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18881 echo $ac_n "(cached) $ac_c" 1>&6
18884 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18885 echo "configure:18886: checking for mdbm_set_chain" >&5
18886 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18887 echo $ac_n "(cached) $ac_c" 1>&6
18889 cat > conftest.$ac_ext <<EOF
18890 #line 18891 "configure"
18891 #include "confdefs.h"
18892 /* System header to define __stub macros and hopefully few prototypes,
18893 which can conflict with char mdbm_set_chain(); below. */
18894 #include <assert.h>
18895 /* Override any gcc2 internal prototype to avoid an error. */
18896 /* We use char because int might match the return type of a gcc2
18897 builtin and then its argument prototype would still apply. */
18898 char mdbm_set_chain();
18903 /* The GNU C library defines this for functions which it implements
18904 to always fail with ENOSYS. Some functions are actually named
18905 something starting with __ and the normal name is an alias. */
18906 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18909 f = mdbm_set_chain;
18914 if { (eval echo configure:18915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18916 eval "ac_cv_func_mdbm_set_chain=yes"
18918 echo "configure: failed program was:" >&5
18919 cat conftest.$ac_ext >&5
18921 eval "ac_cv_func_mdbm_set_chain=no"
18926 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18927 echo "$ac_t""yes" 1>&6
18930 echo "$ac_t""no" 1>&6
18932 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18933 echo "configure:18934: checking for mdbm_set_chain in -lmdbm" >&5
18934 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18936 echo $ac_n "(cached) $ac_c" 1>&6
18938 ac_save_LIBS="$LIBS"
18939 LIBS="-lmdbm $LIBS"
18940 cat > conftest.$ac_ext <<EOF
18941 #line 18942 "configure"
18942 #include "confdefs.h"
18943 /* Override any gcc2 internal prototype to avoid an error. */
18944 /* We use char because int might match the return type of a gcc2
18945 builtin and then its argument prototype would still apply. */
18946 char mdbm_set_chain();
18952 if { (eval echo configure:18953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18954 eval "ac_cv_lib_$ac_lib_var=yes"
18956 echo "configure: failed program was:" >&5
18957 cat conftest.$ac_ext >&5
18959 eval "ac_cv_lib_$ac_lib_var=no"
18962 LIBS="$ac_save_LIBS"
18965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18966 echo "$ac_t""yes" 1>&6
18967 ol_cv_lib_mdbm=-lmdbm
18969 echo "$ac_t""no" 1>&6
18980 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18983 for ac_hdr in mdbm.h
18985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18987 echo "configure:18988: checking for $ac_hdr" >&5
18988 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18989 echo $ac_n "(cached) $ac_c" 1>&6
18991 cat > conftest.$ac_ext <<EOF
18992 #line 18993 "configure"
18993 #include "confdefs.h"
18996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18997 { (eval echo configure:18998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18999 if test -z "$ac_err"; then
19001 eval "ac_cv_header_$ac_safe=yes"
19004 echo "configure: failed program was:" >&5
19005 cat conftest.$ac_ext >&5
19007 eval "ac_cv_header_$ac_safe=no"
19011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19012 echo "$ac_t""yes" 1>&6
19013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19014 cat >> confdefs.h <<EOF
19015 #define $ac_tr_hdr 1
19019 echo "$ac_t""no" 1>&6
19023 echo $ac_n "checking for db""... $ac_c" 1>&6
19024 echo "configure:19025: checking for db" >&5
19025 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19026 echo $ac_n "(cached) $ac_c" 1>&6
19029 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19037 echo "$ac_t""$ol_cv_mdbm" 1>&6
19038 if test $ol_cv_mdbm = yes ; then
19039 cat >> confdefs.h <<\EOF
19040 #define HAVE_MDBM 1
19046 if test $ol_cv_mdbm = yes ; then
19048 ol_with_ldbm_api=mdbm
19049 if test $ol_cv_lib_mdbm != yes ; then
19050 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19055 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19056 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19057 echo "configure:19058: checking for GDBM library" >&5
19058 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19059 echo $ac_n "(cached) $ac_c" 1>&6
19062 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19063 echo "configure:19064: checking for gdbm_open" >&5
19064 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19065 echo $ac_n "(cached) $ac_c" 1>&6
19067 cat > conftest.$ac_ext <<EOF
19068 #line 19069 "configure"
19069 #include "confdefs.h"
19070 /* System header to define __stub macros and hopefully few prototypes,
19071 which can conflict with char gdbm_open(); below. */
19072 #include <assert.h>
19073 /* Override any gcc2 internal prototype to avoid an error. */
19074 /* We use char because int might match the return type of a gcc2
19075 builtin and then its argument prototype would still apply. */
19081 /* The GNU C library defines this for functions which it implements
19082 to always fail with ENOSYS. Some functions are actually named
19083 something starting with __ and the normal name is an alias. */
19084 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19092 if { (eval echo configure:19093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19094 eval "ac_cv_func_gdbm_open=yes"
19096 echo "configure: failed program was:" >&5
19097 cat conftest.$ac_ext >&5
19099 eval "ac_cv_func_gdbm_open=no"
19104 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19105 echo "$ac_t""yes" 1>&6
19108 echo "$ac_t""no" 1>&6
19110 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19111 echo "configure:19112: checking for gdbm_open in -lgdbm" >&5
19112 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19113 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19114 echo $ac_n "(cached) $ac_c" 1>&6
19116 ac_save_LIBS="$LIBS"
19117 LIBS="-lgdbm $LIBS"
19118 cat > conftest.$ac_ext <<EOF
19119 #line 19120 "configure"
19120 #include "confdefs.h"
19121 /* Override any gcc2 internal prototype to avoid an error. */
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19130 if { (eval echo configure:19131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19132 eval "ac_cv_lib_$ac_lib_var=yes"
19134 echo "configure: failed program was:" >&5
19135 cat conftest.$ac_ext >&5
19137 eval "ac_cv_lib_$ac_lib_var=no"
19140 LIBS="$ac_save_LIBS"
19143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19144 echo "$ac_t""yes" 1>&6
19145 ol_cv_lib_gdbm=-lgdbm
19147 echo "$ac_t""no" 1>&6
19158 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19161 for ac_hdr in gdbm.h
19163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19165 echo "configure:19166: checking for $ac_hdr" >&5
19166 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19167 echo $ac_n "(cached) $ac_c" 1>&6
19169 cat > conftest.$ac_ext <<EOF
19170 #line 19171 "configure"
19171 #include "confdefs.h"
19174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19175 { (eval echo configure:19176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19177 if test -z "$ac_err"; then
19179 eval "ac_cv_header_$ac_safe=yes"
19182 echo "configure: failed program was:" >&5
19183 cat conftest.$ac_ext >&5
19185 eval "ac_cv_header_$ac_safe=no"
19189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19190 echo "$ac_t""yes" 1>&6
19191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19192 cat >> confdefs.h <<EOF
19193 #define $ac_tr_hdr 1
19197 echo "$ac_t""no" 1>&6
19201 echo $ac_n "checking for db""... $ac_c" 1>&6
19202 echo "configure:19203: checking for db" >&5
19203 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19207 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19215 echo "$ac_t""$ol_cv_gdbm" 1>&6
19216 if test $ol_cv_gdbm = yes ; then
19217 cat >> confdefs.h <<\EOF
19218 #define HAVE_GDBM 1
19224 if test $ol_cv_gdbm = yes ; then
19226 ol_with_ldbm_api=gdbm
19228 if test $ol_cv_lib_gdbm != yes ; then
19229 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19234 if test $ol_with_ldbm_api = ndbm ; then
19235 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19236 echo "configure:19237: checking for NDBM library" >&5
19237 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19238 echo $ac_n "(cached) $ac_c" 1>&6
19241 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19242 echo "configure:19243: checking for dbm_open" >&5
19243 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19244 echo $ac_n "(cached) $ac_c" 1>&6
19246 cat > conftest.$ac_ext <<EOF
19247 #line 19248 "configure"
19248 #include "confdefs.h"
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char dbm_open(); below. */
19251 #include <assert.h>
19252 /* Override any gcc2 internal prototype to avoid an error. */
19253 /* We use char because int might match the return type of a gcc2
19254 builtin and then its argument prototype would still apply. */
19260 /* The GNU C library defines this for functions which it implements
19261 to always fail with ENOSYS. Some functions are actually named
19262 something starting with __ and the normal name is an alias. */
19263 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19271 if { (eval echo configure:19272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19273 eval "ac_cv_func_dbm_open=yes"
19275 echo "configure: failed program was:" >&5
19276 cat conftest.$ac_ext >&5
19278 eval "ac_cv_func_dbm_open=no"
19283 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19284 echo "$ac_t""yes" 1>&6
19287 echo "$ac_t""no" 1>&6
19289 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19290 echo "configure:19291: checking for dbm_open in -lndbm" >&5
19291 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19292 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19293 echo $ac_n "(cached) $ac_c" 1>&6
19295 ac_save_LIBS="$LIBS"
19296 LIBS="-lndbm $LIBS"
19297 cat > conftest.$ac_ext <<EOF
19298 #line 19299 "configure"
19299 #include "confdefs.h"
19300 /* Override any gcc2 internal prototype to avoid an error. */
19301 /* We use char because int might match the return type of a gcc2
19302 builtin and then its argument prototype would still apply. */
19309 if { (eval echo configure:19310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19311 eval "ac_cv_lib_$ac_lib_var=yes"
19313 echo "configure: failed program was:" >&5
19314 cat conftest.$ac_ext >&5
19316 eval "ac_cv_lib_$ac_lib_var=no"
19319 LIBS="$ac_save_LIBS"
19322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19323 echo "$ac_t""yes" 1>&6
19324 ol_cv_lib_ndbm=-lndbm
19326 echo "$ac_t""no" 1>&6
19328 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19329 echo "configure:19330: checking for dbm_open in -ldbm" >&5
19330 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19331 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19332 echo $ac_n "(cached) $ac_c" 1>&6
19334 ac_save_LIBS="$LIBS"
19336 cat > conftest.$ac_ext <<EOF
19337 #line 19338 "configure"
19338 #include "confdefs.h"
19339 /* Override any gcc2 internal prototype to avoid an error. */
19340 /* We use char because int might match the return type of a gcc2
19341 builtin and then its argument prototype would still apply. */
19348 if { (eval echo configure:19349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19350 eval "ac_cv_lib_$ac_lib_var=yes"
19352 echo "configure: failed program was:" >&5
19353 cat conftest.$ac_ext >&5
19355 eval "ac_cv_lib_$ac_lib_var=no"
19358 LIBS="$ac_save_LIBS"
19361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19362 echo "$ac_t""yes" 1>&6
19363 ol_cv_lib_ndbm=-ldbm
19365 echo "$ac_t""no" 1>&6
19378 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19381 for ac_hdr in ndbm.h
19383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19385 echo "configure:19386: checking for $ac_hdr" >&5
19386 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19387 echo $ac_n "(cached) $ac_c" 1>&6
19389 cat > conftest.$ac_ext <<EOF
19390 #line 19391 "configure"
19391 #include "confdefs.h"
19394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19395 { (eval echo configure:19396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19397 if test -z "$ac_err"; then
19399 eval "ac_cv_header_$ac_safe=yes"
19402 echo "configure: failed program was:" >&5
19403 cat conftest.$ac_ext >&5
19405 eval "ac_cv_header_$ac_safe=no"
19409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19410 echo "$ac_t""yes" 1>&6
19411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19412 cat >> confdefs.h <<EOF
19413 #define $ac_tr_hdr 1
19417 echo "$ac_t""no" 1>&6
19421 echo $ac_n "checking for db""... $ac_c" 1>&6
19422 echo "configure:19423: checking for db" >&5
19423 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19424 echo $ac_n "(cached) $ac_c" 1>&6
19427 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19435 echo "$ac_t""$ol_cv_ndbm" 1>&6
19436 if test $ol_cv_ndbm = yes ; then
19437 cat >> confdefs.h <<\EOF
19438 #define HAVE_NDBM 1
19444 if test $ol_cv_ndbm = yes ; then
19446 ol_with_ldbm_api=ndbm
19448 if test $ol_cv_lib_ndbm != yes ; then
19449 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19454 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19455 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19456 if test $ol_enable_ldbm = yes ; then
19457 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19460 echo "configure: warning: disabling LDBM" 1>&2
19464 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19465 BUILD_LIBS_DYNAMIC=shared
19466 cat >> confdefs.h <<\EOF
19467 #define LDAP_LIBS_DYNAMIC 1
19471 BUILD_LIBS_DYNAMIC=static
19474 if test $ol_enable_wrappers != no ; then
19475 for ac_hdr in tcpd.h
19477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19479 echo "configure:19480: checking for $ac_hdr" >&5
19480 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19481 echo $ac_n "(cached) $ac_c" 1>&6
19483 cat > conftest.$ac_ext <<EOF
19484 #line 19485 "configure"
19485 #include "confdefs.h"
19488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19489 { (eval echo configure:19490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19491 if test -z "$ac_err"; then
19493 eval "ac_cv_header_$ac_safe=yes"
19496 echo "configure: failed program was:" >&5
19497 cat conftest.$ac_ext >&5
19499 eval "ac_cv_header_$ac_safe=no"
19503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19504 echo "$ac_t""yes" 1>&6
19505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19506 cat >> confdefs.h <<EOF
19507 #define $ac_tr_hdr 1
19510 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19511 echo "configure:19512: checking for TCP wrappers library" >&5
19513 LIBS="$LIBS -lwrap"
19514 cat > conftest.$ac_ext <<EOF
19515 #line 19516 "configure"
19516 #include "confdefs.h"
19519 int allow_severity = 0;
19520 int deny_severity = 0;
19522 struct request_info *req;
19530 if { (eval echo configure:19531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19532 echo "$ac_t""-lwrap" 1>&6
19536 echo "configure: failed program was:" >&5
19537 cat conftest.$ac_ext >&5
19541 cat > conftest.$ac_ext <<EOF
19542 #line 19543 "configure"
19543 #include "confdefs.h"
19546 int allow_severity = 0;
19547 int deny_severity = 0;
19549 struct request_info *req;
19557 if { (eval echo configure:19558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19559 echo "$ac_t""-lwrap -lnsl" 1>&6
19561 LIBS="$save_LIBS -lnsl"
19563 echo "configure: failed program was:" >&5
19564 cat conftest.$ac_ext >&5
19567 echo "$ac_t""no" 1>&6
19575 echo "$ac_t""no" 1>&6
19581 if test $have_wrappers = yes ; then
19582 cat >> confdefs.h <<\EOF
19583 #define HAVE_TCPD 1
19587 elif test $ol_enable_wrappers = yes ; then
19588 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19590 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19595 if test $ol_enable_syslog != no ; then
19596 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19597 echo "configure:19598: checking for openlog" >&5
19598 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19599 echo $ac_n "(cached) $ac_c" 1>&6
19601 cat > conftest.$ac_ext <<EOF
19602 #line 19603 "configure"
19603 #include "confdefs.h"
19604 /* System header to define __stub macros and hopefully few prototypes,
19605 which can conflict with char openlog(); below. */
19606 #include <assert.h>
19607 /* Override any gcc2 internal prototype to avoid an error. */
19608 /* We use char because int might match the return type of a gcc2
19609 builtin and then its argument prototype would still apply. */
19615 /* The GNU C library defines this for functions which it implements
19616 to always fail with ENOSYS. Some functions are actually named
19617 something starting with __ and the normal name is an alias. */
19618 #if defined (__stub_openlog) || defined (__stub___openlog)
19626 if { (eval echo configure:19627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19628 eval "ac_cv_func_openlog=yes"
19630 echo "configure: failed program was:" >&5
19631 cat conftest.$ac_ext >&5
19633 eval "ac_cv_func_openlog=no"
19638 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19639 echo "$ac_t""yes" 1>&6
19642 echo "$ac_t""no" 1>&6
19645 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19646 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19648 ol_enable_syslog=$ac_cv_func_openlog
19653 if test $ol_enable_sql != no ; then
19654 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19655 echo "configure:19656: checking for SQLDriverConnect in -liodbc" >&5
19656 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19657 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19658 echo $ac_n "(cached) $ac_c" 1>&6
19660 ac_save_LIBS="$LIBS"
19661 LIBS="-liodbc $LIBS"
19662 cat > conftest.$ac_ext <<EOF
19663 #line 19664 "configure"
19664 #include "confdefs.h"
19665 /* Override any gcc2 internal prototype to avoid an error. */
19666 /* We use char because int might match the return type of a gcc2
19667 builtin and then its argument prototype would still apply. */
19668 char SQLDriverConnect();
19674 if { (eval echo configure:19675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19676 eval "ac_cv_lib_$ac_lib_var=yes"
19678 echo "configure: failed program was:" >&5
19679 cat conftest.$ac_ext >&5
19681 eval "ac_cv_lib_$ac_lib_var=no"
19684 LIBS="$ac_save_LIBS"
19687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19688 echo "$ac_t""yes" 1>&6
19691 echo "$ac_t""no" 1>&6
19695 if test $have_iodbc = yes ; then
19696 ol_link_sql="-liodbc"
19698 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19699 echo "configure:19700: checking for SQLDriverConnect in -lodbc" >&5
19700 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19701 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19702 echo $ac_n "(cached) $ac_c" 1>&6
19704 ac_save_LIBS="$LIBS"
19705 LIBS="-lodbc $LIBS"
19706 cat > conftest.$ac_ext <<EOF
19707 #line 19708 "configure"
19708 #include "confdefs.h"
19709 /* Override any gcc2 internal prototype to avoid an error. */
19710 /* We use char because int might match the return type of a gcc2
19711 builtin and then its argument prototype would still apply. */
19712 char SQLDriverConnect();
19718 if { (eval echo configure:19719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19720 eval "ac_cv_lib_$ac_lib_var=yes"
19722 echo "configure: failed program was:" >&5
19723 cat conftest.$ac_ext >&5
19725 eval "ac_cv_lib_$ac_lib_var=no"
19728 LIBS="$ac_save_LIBS"
19731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19732 echo "$ac_t""yes" 1>&6
19735 echo "$ac_t""no" 1>&6
19739 if test $have_odbc = yes ; then
19740 ol_link_sql="-lodbc"
19744 if test $ol_link_sql != no ; then
19745 SLAPD_SQL_LIBS="$ol_link_sql"
19747 elif test $ol_enable_sql != auto ; then
19748 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19753 for ac_hdr in termcap.h ncurses.h
19755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19757 echo "configure:19758: checking for $ac_hdr" >&5
19758 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19759 echo $ac_n "(cached) $ac_c" 1>&6
19761 cat > conftest.$ac_ext <<EOF
19762 #line 19763 "configure"
19763 #include "confdefs.h"
19766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19767 { (eval echo configure:19768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19769 if test -z "$ac_err"; then
19771 eval "ac_cv_header_$ac_safe=yes"
19774 echo "configure: failed program was:" >&5
19775 cat conftest.$ac_ext >&5
19777 eval "ac_cv_header_$ac_safe=no"
19781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19782 echo "$ac_t""yes" 1>&6
19783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19784 cat >> confdefs.h <<EOF
19785 #define $ac_tr_hdr 1
19789 echo "$ac_t""no" 1>&6
19794 if test $ol_link_termcap = no ; then
19795 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19796 echo "configure:19797: checking for tputs in -ltermcap" >&5
19797 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19799 echo $ac_n "(cached) $ac_c" 1>&6
19801 ac_save_LIBS="$LIBS"
19802 LIBS="-ltermcap $LIBS"
19803 cat > conftest.$ac_ext <<EOF
19804 #line 19805 "configure"
19805 #include "confdefs.h"
19806 /* Override any gcc2 internal prototype to avoid an error. */
19807 /* We use char because int might match the return type of a gcc2
19808 builtin and then its argument prototype would still apply. */
19815 if { (eval echo configure:19816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19817 eval "ac_cv_lib_$ac_lib_var=yes"
19819 echo "configure: failed program was:" >&5
19820 cat conftest.$ac_ext >&5
19822 eval "ac_cv_lib_$ac_lib_var=no"
19825 LIBS="$ac_save_LIBS"
19828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19829 echo "$ac_t""yes" 1>&6
19832 echo "$ac_t""no" 1>&6
19836 if test $have_termcap = yes ; then
19837 cat >> confdefs.h <<\EOF
19838 #define HAVE_TERMCAP 1
19841 ol_link_termcap=yes
19842 TERMCAP_LIBS=-ltermcap
19846 if test $ol_link_termcap = no ; then
19847 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19848 echo "configure:19849: checking for initscr in -lncurses" >&5
19849 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19850 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19851 echo $ac_n "(cached) $ac_c" 1>&6
19853 ac_save_LIBS="$LIBS"
19854 LIBS="-lncurses $LIBS"
19855 cat > conftest.$ac_ext <<EOF
19856 #line 19857 "configure"
19857 #include "confdefs.h"
19858 /* Override any gcc2 internal prototype to avoid an error. */
19859 /* We use char because int might match the return type of a gcc2
19860 builtin and then its argument prototype would still apply. */
19867 if { (eval echo configure:19868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19869 eval "ac_cv_lib_$ac_lib_var=yes"
19871 echo "configure: failed program was:" >&5
19872 cat conftest.$ac_ext >&5
19874 eval "ac_cv_lib_$ac_lib_var=no"
19877 LIBS="$ac_save_LIBS"
19880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19881 echo "$ac_t""yes" 1>&6
19884 echo "$ac_t""no" 1>&6
19888 if test $have_ncurses = yes ; then
19889 cat >> confdefs.h <<\EOF
19890 #define HAVE_NCURSES 1
19893 ol_link_termcap=yes
19894 TERMCAP_LIBS=-lncurses
19898 if test $ol_link_termcap = no ; then
19899 cat >> confdefs.h <<\EOF
19900 #define NO_TERMCAP 1
19908 if test $ol_with_cyrus_sasl != no ; then
19909 for ac_hdr in sasl/sasl.h sasl.h
19911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19913 echo "configure:19914: checking for $ac_hdr" >&5
19914 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19915 echo $ac_n "(cached) $ac_c" 1>&6
19917 cat > conftest.$ac_ext <<EOF
19918 #line 19919 "configure"
19919 #include "confdefs.h"
19922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19923 { (eval echo configure:19924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19925 if test -z "$ac_err"; then
19927 eval "ac_cv_header_$ac_safe=yes"
19930 echo "configure: failed program was:" >&5
19931 cat conftest.$ac_ext >&5
19933 eval "ac_cv_header_$ac_safe=no"
19937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19938 echo "$ac_t""yes" 1>&6
19939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19940 cat >> confdefs.h <<EOF
19941 #define $ac_tr_hdr 1
19945 echo "$ac_t""no" 1>&6
19950 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19951 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19952 echo "configure:19953: checking for sasl_client_init in -lsasl2" >&5
19953 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19954 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19955 echo $ac_n "(cached) $ac_c" 1>&6
19957 ac_save_LIBS="$LIBS"
19958 LIBS="-lsasl2 $LIBS"
19959 cat > conftest.$ac_ext <<EOF
19960 #line 19961 "configure"
19961 #include "confdefs.h"
19962 /* Override any gcc2 internal prototype to avoid an error. */
19963 /* We use char because int might match the return type of a gcc2
19964 builtin and then its argument prototype would still apply. */
19965 char sasl_client_init();
19971 if { (eval echo configure:19972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19973 eval "ac_cv_lib_$ac_lib_var=yes"
19975 echo "configure: failed program was:" >&5
19976 cat conftest.$ac_ext >&5
19978 eval "ac_cv_lib_$ac_lib_var=no"
19981 LIBS="$ac_save_LIBS"
19984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19985 echo "$ac_t""yes" 1>&6
19986 ol_link_sasl="-lsasl2"
19988 echo "$ac_t""no" 1>&6
19989 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19990 echo "configure:19991: checking for sasl_client_init in -lsasl" >&5
19991 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19992 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19993 echo $ac_n "(cached) $ac_c" 1>&6
19995 ac_save_LIBS="$LIBS"
19996 LIBS="-lsasl $LIBS"
19997 cat > conftest.$ac_ext <<EOF
19998 #line 19999 "configure"
19999 #include "confdefs.h"
20000 /* Override any gcc2 internal prototype to avoid an error. */
20001 /* We use char because int might match the return type of a gcc2
20002 builtin and then its argument prototype would still apply. */
20003 char sasl_client_init();
20009 if { (eval echo configure:20010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20011 eval "ac_cv_lib_$ac_lib_var=yes"
20013 echo "configure: failed program was:" >&5
20014 cat conftest.$ac_ext >&5
20016 eval "ac_cv_lib_$ac_lib_var=no"
20019 LIBS="$ac_save_LIBS"
20022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20023 echo "$ac_t""yes" 1>&6
20024 ol_link_sasl="-lsasl"
20026 echo "$ac_t""no" 1>&6
20033 if test $ol_link_sasl = no ; then
20034 if test $ol_with_cyrus_sasl != auto ; then
20035 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20037 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20038 echo "configure: warning: SASL authentication not supported!" 1>&2
20039 if test $ol_link_tls = no ; then
20040 echo "configure: warning: Strong authentication not supported!" 1>&2
20044 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20045 echo "configure:20046: checking Cyrus SASL library version" >&5
20046 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20047 echo $ac_n "(cached) $ac_c" 1>&6
20050 cat > conftest.$ac_ext <<EOF
20051 #line 20052 "configure"
20052 #include "confdefs.h"
20054 #ifdef HAVE_SASL_SASL_H
20055 #include <sasl/sasl.h>
20060 /* require 2.1.3 or later */
20061 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20062 char *__sasl_compat = "1.5.x okay";
20063 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20064 __sasl_compat "2.2+ or better okay (we guess)";
20065 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20066 && SASL_VERSION_STEP >=3
20067 __sasl_compat = "2.1.3+ or better okay";
20071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20072 egrep "__sasl_compat" >/dev/null 2>&1; then
20074 ol_cv_sasl_compat=yes
20077 ol_cv_sasl_compat=no
20083 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20085 if test $ol_cv_sasl_compat = no ; then
20087 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20090 cat >> confdefs.h <<\EOF
20091 #define HAVE_CYRUS_SASL 1
20094 SASL_LIBS="$ol_link_sasl"
20095 if test $ol_enable_spasswd != no ; then
20096 ol_link_spasswd=yes
20101 echo "configure: warning: SASL authentication not supported!" 1>&2
20102 if test $ol_link_tls = no ; then
20103 echo "configure: warning: Strong authentication not supported!" 1>&2
20107 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20109 if test -r /dev/urandom ; then
20110 dev="/dev/urandom";
20111 elif test -r /idev/urandom ; then
20112 dev="/idev/urandom";
20113 elif test -r /dev/srandom ; then
20114 dev="/dev/srandom";
20115 elif test -r /dev/random ; then
20117 elif test -r /idev/random ; then
20118 dev="/idev/random";
20121 if test $dev != no ; then
20122 cat >> confdefs.h <<EOF
20123 #define URANDOM_DEVICE "$dev"
20130 if test $ol_with_fetch != no ; then
20132 LIBS="-lfetch -lcom_err $LIBS"
20133 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20134 echo "configure:20135: checking fetch(3) library" >&5
20135 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20136 echo $ac_n "(cached) $ac_c" 1>&6
20139 cat > conftest.$ac_ext <<EOF
20140 #line 20141 "configure"
20141 #include "confdefs.h"
20143 #include <sys/param.h>
20147 struct url *u = fetchParseURL("file:///");
20150 if { (eval echo configure:20151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20152 ol_cv_lib_fetch=yes
20154 echo "configure: failed program was:" >&5
20155 cat conftest.$ac_ext >&5
20162 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20164 if test $ol_cv_lib_fetch != no ; then
20165 ol_link_fetch="-lfetch -lcom_err"
20166 cat >> confdefs.h <<\EOF
20167 #define HAVE_FETCH 1
20173 if test $ol_cv_lib_fetch != no ; then
20174 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20175 ol_link_fetch=freebsd
20177 elif test $ol_with_fetch != auto ; then
20178 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20182 ol_link_readline=no
20183 if test $ol_with_readline != no ; then
20184 for ac_hdr in readline/readline.h readline/history.h
20186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20188 echo "configure:20189: checking for $ac_hdr" >&5
20189 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20190 echo $ac_n "(cached) $ac_c" 1>&6
20192 cat > conftest.$ac_ext <<EOF
20193 #line 20194 "configure"
20194 #include "confdefs.h"
20197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20198 { (eval echo configure:20199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20200 if test -z "$ac_err"; then
20202 eval "ac_cv_header_$ac_safe=yes"
20205 echo "configure: failed program was:" >&5
20206 cat conftest.$ac_ext >&5
20208 eval "ac_cv_header_$ac_safe=no"
20212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20213 echo "$ac_t""yes" 1>&6
20214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20215 cat >> confdefs.h <<EOF
20216 #define $ac_tr_hdr 1
20220 echo "$ac_t""no" 1>&6
20225 if test $ac_cv_header_readline_readline_h = yes ; then
20227 LIBS="$TERMCAP_LIBS $LIBS"
20228 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20229 echo "configure:20230: checking for readline in -lreadline" >&5
20230 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20231 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20232 echo $ac_n "(cached) $ac_c" 1>&6
20234 ac_save_LIBS="$LIBS"
20235 LIBS="-lreadline $LIBS"
20236 cat > conftest.$ac_ext <<EOF
20237 #line 20238 "configure"
20238 #include "confdefs.h"
20239 /* Override any gcc2 internal prototype to avoid an error. */
20240 /* We use char because int might match the return type of a gcc2
20241 builtin and then its argument prototype would still apply. */
20248 if { (eval echo configure:20249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20250 eval "ac_cv_lib_$ac_lib_var=yes"
20252 echo "configure: failed program was:" >&5
20253 cat conftest.$ac_ext >&5
20255 eval "ac_cv_lib_$ac_lib_var=no"
20258 LIBS="$ac_save_LIBS"
20261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20262 echo "$ac_t""yes" 1>&6
20265 echo "$ac_t""no" 1>&6
20271 if test $have_readline = yes ; then
20272 ol_with_readline=found
20273 ol_link_readline=yes
20275 READLINE_LIBS="-lreadline"
20280 if test $ol_link_readline = yes ; then
20281 cat >> confdefs.h <<\EOF
20282 #define HAVE_READLINE 1
20288 if test $ol_enable_crypt != no ; then
20289 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20290 echo "configure:20291: checking for crypt" >&5
20291 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20292 echo $ac_n "(cached) $ac_c" 1>&6
20294 cat > conftest.$ac_ext <<EOF
20295 #line 20296 "configure"
20296 #include "confdefs.h"
20297 /* System header to define __stub macros and hopefully few prototypes,
20298 which can conflict with char crypt(); below. */
20299 #include <assert.h>
20300 /* Override any gcc2 internal prototype to avoid an error. */
20301 /* We use char because int might match the return type of a gcc2
20302 builtin and then its argument prototype would still apply. */
20308 /* The GNU C library defines this for functions which it implements
20309 to always fail with ENOSYS. Some functions are actually named
20310 something starting with __ and the normal name is an alias. */
20311 #if defined (__stub_crypt) || defined (__stub___crypt)
20319 if { (eval echo configure:20320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20321 eval "ac_cv_func_crypt=yes"
20323 echo "configure: failed program was:" >&5
20324 cat conftest.$ac_ext >&5
20326 eval "ac_cv_func_crypt=no"
20331 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20332 echo "$ac_t""yes" 1>&6
20335 echo "$ac_t""no" 1>&6
20337 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20338 echo "configure:20339: checking for crypt in -lcrypt" >&5
20339 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20341 echo $ac_n "(cached) $ac_c" 1>&6
20343 ac_save_LIBS="$LIBS"
20344 LIBS="-lcrypt $LIBS"
20345 cat > conftest.$ac_ext <<EOF
20346 #line 20347 "configure"
20347 #include "confdefs.h"
20348 /* Override any gcc2 internal prototype to avoid an error. */
20349 /* We use char because int might match the return type of a gcc2
20350 builtin and then its argument prototype would still apply. */
20357 if { (eval echo configure:20358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20359 eval "ac_cv_lib_$ac_lib_var=yes"
20361 echo "configure: failed program was:" >&5
20362 cat conftest.$ac_ext >&5
20364 eval "ac_cv_lib_$ac_lib_var=no"
20367 LIBS="$ac_save_LIBS"
20370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20371 echo "$ac_t""yes" 1>&6
20372 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20375 echo "$ac_t""no" 1>&6
20382 if test $have_crypt = yes ; then
20383 cat >> confdefs.h <<\EOF
20384 #define HAVE_CRYPT 1
20388 echo "configure: warning: could not find crypt" 1>&2
20389 if test $ol_enable_crypt = yes ; then
20390 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20393 echo "configure: warning: disabling crypt support" 1>&2
20398 if test $ol_enable_proctitle != no ; then
20399 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20400 echo "configure:20401: checking for setproctitle" >&5
20401 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20402 echo $ac_n "(cached) $ac_c" 1>&6
20404 cat > conftest.$ac_ext <<EOF
20405 #line 20406 "configure"
20406 #include "confdefs.h"
20407 /* System header to define __stub macros and hopefully few prototypes,
20408 which can conflict with char setproctitle(); below. */
20409 #include <assert.h>
20410 /* Override any gcc2 internal prototype to avoid an error. */
20411 /* We use char because int might match the return type of a gcc2
20412 builtin and then its argument prototype would still apply. */
20413 char setproctitle();
20418 /* The GNU C library defines this for functions which it implements
20419 to always fail with ENOSYS. Some functions are actually named
20420 something starting with __ and the normal name is an alias. */
20421 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20429 if { (eval echo configure:20430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20431 eval "ac_cv_func_setproctitle=yes"
20433 echo "configure: failed program was:" >&5
20434 cat conftest.$ac_ext >&5
20436 eval "ac_cv_func_setproctitle=no"
20441 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20442 echo "$ac_t""yes" 1>&6
20443 have_setproctitle=yes
20445 echo "$ac_t""no" 1>&6
20447 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20448 echo "configure:20449: checking for setproctitle in -lutil" >&5
20449 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20451 echo $ac_n "(cached) $ac_c" 1>&6
20453 ac_save_LIBS="$LIBS"
20454 LIBS="-lutil $LIBS"
20455 cat > conftest.$ac_ext <<EOF
20456 #line 20457 "configure"
20457 #include "confdefs.h"
20458 /* Override any gcc2 internal prototype to avoid an error. */
20459 /* We use char because int might match the return type of a gcc2
20460 builtin and then its argument prototype would still apply. */
20461 char setproctitle();
20467 if { (eval echo configure:20468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20469 eval "ac_cv_lib_$ac_lib_var=yes"
20471 echo "configure: failed program was:" >&5
20472 cat conftest.$ac_ext >&5
20474 eval "ac_cv_lib_$ac_lib_var=no"
20477 LIBS="$ac_save_LIBS"
20480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20481 echo "$ac_t""yes" 1>&6
20482 have_setproctitle=yes
20483 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20485 echo "$ac_t""no" 1>&6
20486 have_setproctitle=no
20487 LIBOBJS="$LIBOBJS setproctitle.o"
20488 LIBSRCS="$LIBSRCS setproctitle.c"
20494 if test $have_setproctitle = yes ; then
20495 cat >> confdefs.h <<\EOF
20496 #define HAVE_SETPROCTITLE 1
20502 if test $ol_enable_slp != no ; then
20503 for ac_hdr in slp.h
20505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20507 echo "configure:20508: checking for $ac_hdr" >&5
20508 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20509 echo $ac_n "(cached) $ac_c" 1>&6
20511 cat > conftest.$ac_ext <<EOF
20512 #line 20513 "configure"
20513 #include "confdefs.h"
20516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20517 { (eval echo configure:20518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20519 if test -z "$ac_err"; then
20521 eval "ac_cv_header_$ac_safe=yes"
20524 echo "configure: failed program was:" >&5
20525 cat conftest.$ac_ext >&5
20527 eval "ac_cv_header_$ac_safe=no"
20531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20532 echo "$ac_t""yes" 1>&6
20533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20534 cat >> confdefs.h <<EOF
20535 #define $ac_tr_hdr 1
20539 echo "$ac_t""no" 1>&6
20544 if test $ac_cv_header_slp_h = yes ; then
20545 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20546 echo "configure:20547: checking for SLPOpen in -lslp" >&5
20547 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20548 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20549 echo $ac_n "(cached) $ac_c" 1>&6
20551 ac_save_LIBS="$LIBS"
20553 cat > conftest.$ac_ext <<EOF
20554 #line 20555 "configure"
20555 #include "confdefs.h"
20556 /* Override any gcc2 internal prototype to avoid an error. */
20557 /* We use char because int might match the return type of a gcc2
20558 builtin and then its argument prototype would still apply. */
20565 if { (eval echo configure:20566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20567 eval "ac_cv_lib_$ac_lib_var=yes"
20569 echo "configure: failed program was:" >&5
20570 cat conftest.$ac_ext >&5
20572 eval "ac_cv_lib_$ac_lib_var=no"
20575 LIBS="$ac_save_LIBS"
20578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20579 echo "$ac_t""yes" 1>&6
20582 echo "$ac_t""no" 1>&6
20586 if test $have_slp = yes ; then
20587 cat >> confdefs.h <<\EOF
20591 SLAPD_SLP_LIBS=-lslp
20594 elif test $ol_enable_slp = yes ; then
20595 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20599 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20600 echo "configure:20601: checking for ANSI C header files" >&5
20601 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20602 echo $ac_n "(cached) $ac_c" 1>&6
20604 cat > conftest.$ac_ext <<EOF
20605 #line 20606 "configure"
20606 #include "confdefs.h"
20607 #include <stdlib.h>
20608 #include <stdarg.h>
20609 #include <string.h>
20612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20613 { (eval echo configure:20614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20615 if test -z "$ac_err"; then
20617 ac_cv_header_stdc=yes
20620 echo "configure: failed program was:" >&5
20621 cat conftest.$ac_ext >&5
20623 ac_cv_header_stdc=no
20627 if test $ac_cv_header_stdc = yes; then
20628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20629 cat > conftest.$ac_ext <<EOF
20630 #line 20631 "configure"
20631 #include "confdefs.h"
20632 #include <string.h>
20634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20635 egrep "memchr" >/dev/null 2>&1; then
20639 ac_cv_header_stdc=no
20645 if test $ac_cv_header_stdc = yes; then
20646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20647 cat > conftest.$ac_ext <<EOF
20648 #line 20649 "configure"
20649 #include "confdefs.h"
20650 #include <stdlib.h>
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653 egrep "free" >/dev/null 2>&1; then
20657 ac_cv_header_stdc=no
20663 if test $ac_cv_header_stdc = yes; then
20664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20665 if test "$cross_compiling" = yes; then
20668 cat > conftest.$ac_ext <<EOF
20669 #line 20670 "configure"
20670 #include "confdefs.h"
20672 #if ((' ' & 0x0FF) == 0x020)
20673 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20674 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20676 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20677 || ('j' <= (c) && (c) <= 'r') \
20678 || ('s' <= (c) && (c) <= 'z'))
20679 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20682 int main () { int i; for (i = 0; i < 256; i++)
20683 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20687 if { (eval echo configure:20688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20691 echo "configure: failed program was:" >&5
20692 cat conftest.$ac_ext >&5
20694 ac_cv_header_stdc=no
20702 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20703 if test $ac_cv_header_stdc = yes; then
20704 cat >> confdefs.h <<\EOF
20705 #define STDC_HEADERS 1
20710 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20711 echo "configure:20712: checking for mode_t" >&5
20712 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20713 echo $ac_n "(cached) $ac_c" 1>&6
20715 cat > conftest.$ac_ext <<EOF
20716 #line 20717 "configure"
20717 #include "confdefs.h"
20718 #include <sys/types.h>
20720 #include <stdlib.h>
20721 #include <stddef.h>
20725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20726 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20728 eval "ac_cv_type_mode_t=yes"
20731 eval "ac_cv_type_mode_t=no"
20736 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20737 echo "$ac_t""yes" 1>&6
20739 echo "$ac_t""no" 1>&6
20740 cat >> confdefs.h <<EOF
20746 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20747 echo "configure:20748: checking for off_t" >&5
20748 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20749 echo $ac_n "(cached) $ac_c" 1>&6
20751 cat > conftest.$ac_ext <<EOF
20752 #line 20753 "configure"
20753 #include "confdefs.h"
20754 #include <sys/types.h>
20756 #include <stdlib.h>
20757 #include <stddef.h>
20761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20762 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20764 eval "ac_cv_type_off_t=yes"
20767 eval "ac_cv_type_off_t=no"
20772 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20773 echo "$ac_t""yes" 1>&6
20775 echo "$ac_t""no" 1>&6
20776 cat >> confdefs.h <<EOF
20782 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20783 echo "configure:20784: checking for pid_t" >&5
20784 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20785 echo $ac_n "(cached) $ac_c" 1>&6
20787 cat > conftest.$ac_ext <<EOF
20788 #line 20789 "configure"
20789 #include "confdefs.h"
20790 #include <sys/types.h>
20792 #include <stdlib.h>
20793 #include <stddef.h>
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20800 eval "ac_cv_type_pid_t=yes"
20803 eval "ac_cv_type_pid_t=no"
20808 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20809 echo "$ac_t""yes" 1>&6
20811 echo "$ac_t""no" 1>&6
20812 cat >> confdefs.h <<EOF
20818 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20819 echo "configure:20820: checking for ptrdiff_t" >&5
20820 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20821 echo $ac_n "(cached) $ac_c" 1>&6
20823 cat > conftest.$ac_ext <<EOF
20824 #line 20825 "configure"
20825 #include "confdefs.h"
20826 #include <stddef.h>
20831 if { (eval echo configure:20832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20833 am_cv_type_ptrdiff_t=yes
20835 echo "configure: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20838 am_cv_type_ptrdiff_t=no
20843 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20844 if test $am_cv_type_ptrdiff_t = yes; then
20845 cat >> confdefs.h <<\EOF
20846 #define HAVE_PTRDIFF_T 1
20851 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20852 echo "configure:20853: checking return type of signal handlers" >&5
20853 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20854 echo $ac_n "(cached) $ac_c" 1>&6
20856 cat > conftest.$ac_ext <<EOF
20857 #line 20858 "configure"
20858 #include "confdefs.h"
20859 #include <sys/types.h>
20860 #include <signal.h>
20865 extern "C" void (*signal (int, void (*)(int)))(int);
20867 void (*signal ()) ();
20874 if { (eval echo configure:20875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20876 ac_cv_type_signal=void
20878 echo "configure: failed program was:" >&5
20879 cat conftest.$ac_ext >&5
20881 ac_cv_type_signal=int
20886 echo "$ac_t""$ac_cv_type_signal" 1>&6
20887 cat >> confdefs.h <<EOF
20888 #define RETSIGTYPE $ac_cv_type_signal
20892 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20893 echo "configure:20894: checking for size_t" >&5
20894 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20895 echo $ac_n "(cached) $ac_c" 1>&6
20897 cat > conftest.$ac_ext <<EOF
20898 #line 20899 "configure"
20899 #include "confdefs.h"
20900 #include <sys/types.h>
20902 #include <stdlib.h>
20903 #include <stddef.h>
20907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20908 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20910 eval "ac_cv_type_size_t=yes"
20913 eval "ac_cv_type_size_t=no"
20918 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20919 echo "$ac_t""yes" 1>&6
20921 echo "$ac_t""no" 1>&6
20922 cat >> confdefs.h <<EOF
20923 #define size_t unsigned
20929 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20930 echo "configure:20931: checking for ssize_t" >&5
20931 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20932 echo $ac_n "(cached) $ac_c" 1>&6
20934 cat > conftest.$ac_ext <<EOF
20935 #line 20936 "configure"
20936 #include "confdefs.h"
20937 #include <sys/types.h>
20939 #include <stdlib.h>
20940 #include <stddef.h>
20944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20945 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20947 eval "ac_cv_type_ssize_t=yes"
20950 eval "ac_cv_type_ssize_t=no"
20955 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20956 echo "$ac_t""yes" 1>&6
20958 echo "$ac_t""no" 1>&6
20959 cat >> confdefs.h <<EOF
20960 #define ssize_t signed int
20965 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20966 echo "configure:20967: checking for caddr_t" >&5
20967 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20968 echo $ac_n "(cached) $ac_c" 1>&6
20970 cat > conftest.$ac_ext <<EOF
20971 #line 20972 "configure"
20972 #include "confdefs.h"
20973 #include <sys/types.h>
20975 #include <stdlib.h>
20976 #include <stddef.h>
20980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20981 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20983 eval "ac_cv_type_caddr_t=yes"
20986 eval "ac_cv_type_caddr_t=no"
20991 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20992 echo "$ac_t""yes" 1>&6
20994 echo "$ac_t""no" 1>&6
20995 cat >> confdefs.h <<EOF
20996 #define caddr_t char *
21002 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21003 echo "configure:21004: checking for socklen_t" >&5
21004 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21005 echo $ac_n "(cached) $ac_c" 1>&6
21007 cat > conftest.$ac_ext <<EOF
21008 #line 21009 "configure"
21009 #include "confdefs.h"
21011 #ifdef HAVE_SYS_TYPES_H
21012 #include <sys/types.h>
21014 #ifdef HAVE_SYS_SOCKET_H
21015 #include <sys/socket.h>
21022 if { (eval echo configure:21023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21024 ol_cv_type_socklen_t=yes
21026 echo "configure: failed program was:" >&5
21027 cat conftest.$ac_ext >&5
21029 ol_cv_type_socklen_t=no
21034 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21035 if test $ol_cv_type_socklen_t = no; then
21036 cat >> confdefs.h <<\EOF
21037 #define socklen_t int
21042 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21043 echo "configure:21044: checking for member st_blksize in aggregate type struct stat" >&5
21044 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21045 echo $ac_n "(cached) $ac_c" 1>&6
21047 cat > conftest.$ac_ext <<EOF
21048 #line 21049 "configure"
21049 #include "confdefs.h"
21050 #include <sys/types.h>
21051 #include <sys/stat.h>
21053 struct stat foo; foo.st_blksize;
21056 if { (eval echo configure:21057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21058 ac_cv_c_struct_member_st_blksize=yes
21060 echo "configure: failed program was:" >&5
21061 cat conftest.$ac_ext >&5
21063 ac_cv_c_struct_member_st_blksize=no
21068 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21069 st_blksize="$ac_cv_c_struct_member_st_blksize"
21070 if test $ac_cv_c_struct_member_st_blksize = yes; then
21071 cat >> confdefs.h <<\EOF
21072 #define HAVE_ST_BLKSIZE 1
21077 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21078 echo "configure:21079: checking whether time.h and sys/time.h may both be included" >&5
21079 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21080 echo $ac_n "(cached) $ac_c" 1>&6
21082 cat > conftest.$ac_ext <<EOF
21083 #line 21084 "configure"
21084 #include "confdefs.h"
21085 #include <sys/types.h>
21086 #include <sys/time.h>
21092 if { (eval echo configure:21093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21094 ac_cv_header_time=yes
21096 echo "configure: failed program was:" >&5
21097 cat conftest.$ac_ext >&5
21099 ac_cv_header_time=no
21104 echo "$ac_t""$ac_cv_header_time" 1>&6
21105 if test $ac_cv_header_time = yes; then
21106 cat >> confdefs.h <<\EOF
21107 #define TIME_WITH_SYS_TIME 1
21112 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21113 echo "configure:21114: checking whether struct tm is in sys/time.h or time.h" >&5
21114 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21115 echo $ac_n "(cached) $ac_c" 1>&6
21117 cat > conftest.$ac_ext <<EOF
21118 #line 21119 "configure"
21119 #include "confdefs.h"
21120 #include <sys/types.h>
21123 struct tm *tp; tp->tm_sec;
21126 if { (eval echo configure:21127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21128 ac_cv_struct_tm=time.h
21130 echo "configure: failed program was:" >&5
21131 cat conftest.$ac_ext >&5
21133 ac_cv_struct_tm=sys/time.h
21138 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21139 if test $ac_cv_struct_tm = sys/time.h; then
21140 cat >> confdefs.h <<\EOF
21141 #define TM_IN_SYS_TIME 1
21146 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21147 echo "configure:21148: checking for uid_t in sys/types.h" >&5
21148 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21149 echo $ac_n "(cached) $ac_c" 1>&6
21151 cat > conftest.$ac_ext <<EOF
21152 #line 21153 "configure"
21153 #include "confdefs.h"
21154 #include <sys/types.h>
21156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21157 egrep "uid_t" >/dev/null 2>&1; then
21159 ac_cv_type_uid_t=yes
21162 ac_cv_type_uid_t=no
21168 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21169 if test $ac_cv_type_uid_t = no; then
21170 cat >> confdefs.h <<\EOF
21174 cat >> confdefs.h <<\EOF
21180 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21181 echo "configure:21182: checking for sig_atomic_t" >&5
21182 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21183 echo $ac_n "(cached) $ac_c" 1>&6
21185 cat > conftest.$ac_ext <<EOF
21186 #line 21187 "configure"
21187 #include "confdefs.h"
21188 #include <signal.h>
21190 sig_atomic_t atomic;
21193 if { (eval echo configure:21194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21195 ol_cv_type_sig_atomic_t=yes
21197 echo "configure: failed program was:" >&5
21198 cat conftest.$ac_ext >&5
21200 ol_cv_type_sig_atomic_t=no
21205 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21206 if test $ol_cv_type_sig_atomic_t = no; then
21207 cat >> confdefs.h <<\EOF
21208 #define sig_atomic_t int
21215 # test for pw_gecos in struct passwd
21216 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21217 echo "configure:21218: checking struct passwd for pw_gecos" >&5
21218 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21219 echo $ac_n "(cached) $ac_c" 1>&6
21222 cat > conftest.$ac_ext <<EOF
21223 #line 21224 "configure"
21224 #include "confdefs.h"
21229 pwd.pw_gecos = pwd.pw_name;
21233 if { (eval echo configure:21234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21235 ol_cv_struct_passwd_pw_gecos=yes
21237 echo "configure: failed program was:" >&5
21238 cat conftest.$ac_ext >&5
21240 ol_cv_struct_passwd_pw_gecos=no
21245 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21246 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21247 cat >> confdefs.h <<\EOF
21248 #define HAVE_PW_GECOS 1
21253 # test for pw_passwd in struct passwd
21254 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21255 echo "configure:21256: checking struct passwd for pw_passwd" >&5
21256 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21257 echo $ac_n "(cached) $ac_c" 1>&6
21260 cat > conftest.$ac_ext <<EOF
21261 #line 21262 "configure"
21262 #include "confdefs.h"
21267 pwd.pw_passwd = pwd.pw_name;
21271 if { (eval echo configure:21272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21273 ol_cv_struct_passwd_pw_passwd=yes
21275 echo "configure: failed program was:" >&5
21276 cat conftest.$ac_ext >&5
21278 ol_cv_struct_passwd_pw_passwd=no
21283 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21284 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21285 cat >> confdefs.h <<\EOF
21286 #define HAVE_PW_PASSWD 1
21292 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21293 echo "configure:21294: checking if toupper() requires islower()" >&5
21294 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21295 echo $ac_n "(cached) $ac_c" 1>&6
21298 if test "$cross_compiling" = yes; then
21299 ol_cv_c_upper_lower=safe
21301 cat > conftest.$ac_ext <<EOF
21302 #line 21303 "configure"
21303 #include "confdefs.h"
21308 if ('C' == toupper('C'))
21314 if { (eval echo configure:21315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21316 ol_cv_c_upper_lower=no
21318 echo "configure: failed program was:" >&5
21319 cat conftest.$ac_ext >&5
21321 ol_cv_c_upper_lower=yes
21328 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21329 if test $ol_cv_c_upper_lower != no ; then
21330 cat >> confdefs.h <<\EOF
21331 #define C_UPPER_LOWER 1
21336 echo $ac_n "checking for working const""... $ac_c" 1>&6
21337 echo "configure:21338: checking for working const" >&5
21338 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21339 echo $ac_n "(cached) $ac_c" 1>&6
21341 cat > conftest.$ac_ext <<EOF
21342 #line 21343 "configure"
21343 #include "confdefs.h"
21347 /* Ultrix mips cc rejects this. */
21348 typedef int charset[2]; const charset x;
21349 /* SunOS 4.1.1 cc rejects this. */
21350 char const *const *ccp;
21352 /* NEC SVR4.0.2 mips cc rejects this. */
21353 struct point {int x, y;};
21354 static struct point const zero = {0,0};
21355 /* AIX XL C 1.02.0.0 rejects this.
21356 It does not let you subtract one const X* pointer from another in an arm
21357 of an if-expression whose if-part is not a constant expression */
21358 const char *g = "string";
21359 ccp = &g + (g ? g-g : 0);
21360 /* HPUX 7.0 cc rejects these. */
21363 ccp = (char const *const *) p;
21364 { /* SCO 3.2v4 cc rejects this. */
21366 char const *s = 0 ? (char *) 0 : (char const *) 0;
21370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21371 int x[] = {25, 17};
21372 const int *foo = &x[0];
21375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21376 typedef const int *iptr;
21380 { /* AIX XL C 1.02.0.0 rejects this saying
21381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21382 struct s { int j; const int *ap[3]; };
21383 struct s *b; b->j = 5;
21385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21386 const int foo = 10;
21391 if { (eval echo configure:21392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21395 echo "configure: failed program was:" >&5
21396 cat conftest.$ac_ext >&5
21403 echo "$ac_t""$ac_cv_c_const" 1>&6
21404 if test $ac_cv_c_const = no; then
21405 cat >> confdefs.h <<\EOF
21411 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21412 echo "configure:21413: checking if compiler understands volatile" >&5
21413 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21414 echo $ac_n "(cached) $ac_c" 1>&6
21416 cat > conftest.$ac_ext <<EOF
21417 #line 21418 "configure"
21418 #include "confdefs.h"
21421 volatile int a; int * volatile b = x ? &y : &z;
21422 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21426 if { (eval echo configure:21427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21428 ol_cv_c_volatile=yes
21430 echo "configure: failed program was:" >&5
21431 cat conftest.$ac_ext >&5
21433 ol_cv_c_volatile=no
21438 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21439 if test $ol_cv_c_volatile = yes; then
21442 cat >> confdefs.h <<\EOF
21449 if test $cross_compiling = yes ; then
21450 cat >> confdefs.h <<\EOF
21451 #define CROSS_COMPILING 1
21455 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21456 echo "configure:21457: checking whether byte ordering is bigendian" >&5
21457 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21458 echo $ac_n "(cached) $ac_c" 1>&6
21460 ac_cv_c_bigendian=unknown
21461 # See if sys/param.h defines the BYTE_ORDER macro.
21462 cat > conftest.$ac_ext <<EOF
21463 #line 21464 "configure"
21464 #include "confdefs.h"
21465 #include <sys/types.h>
21466 #include <sys/param.h>
21469 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21470 bogus endian macros
21474 if { (eval echo configure:21475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21476 # It does; now see whether it defined to BIG_ENDIAN or not.
21477 cat > conftest.$ac_ext <<EOF
21478 #line 21479 "configure"
21479 #include "confdefs.h"
21480 #include <sys/types.h>
21481 #include <sys/param.h>
21484 #if BYTE_ORDER != BIG_ENDIAN
21489 if { (eval echo configure:21490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21491 ac_cv_c_bigendian=yes
21493 echo "configure: failed program was:" >&5
21494 cat conftest.$ac_ext >&5
21496 ac_cv_c_bigendian=no
21500 echo "configure: failed program was:" >&5
21501 cat conftest.$ac_ext >&5
21504 if test $ac_cv_c_bigendian = unknown; then
21505 if test "$cross_compiling" = yes; then
21506 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21508 cat > conftest.$ac_ext <<EOF
21509 #line 21510 "configure"
21510 #include "confdefs.h"
21512 /* Are we little or big endian? From Harbison&Steele. */
21516 char c[sizeof (long)];
21519 exit (u.c[sizeof (long) - 1] == 1);
21522 if { (eval echo configure:21523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21524 ac_cv_c_bigendian=no
21526 echo "configure: failed program was:" >&5
21527 cat conftest.$ac_ext >&5
21529 ac_cv_c_bigendian=yes
21537 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21538 if test $ac_cv_c_bigendian = yes; then
21539 cat >> confdefs.h <<\EOF
21540 #define WORDS_BIGENDIAN 1
21547 echo $ac_n "checking size of short""... $ac_c" 1>&6
21548 echo "configure:21549: checking size of short" >&5
21549 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21550 echo $ac_n "(cached) $ac_c" 1>&6
21552 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21553 cat > conftest.$ac_ext <<EOF
21554 #line 21555 "configure"
21555 #include "confdefs.h"
21556 #include "confdefs.h"
21557 #include <sys/types.h>
21561 switch (0) case 0: case (sizeof (short) == $ac_size):;
21564 if { (eval echo configure:21565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21566 ac_cv_sizeof_short=$ac_size
21568 echo "configure: failed program was:" >&5
21569 cat conftest.$ac_ext >&5
21572 if test x$ac_cv_sizeof_short != x ; then break; fi
21577 if test x$ac_cv_sizeof_short = x ; then
21578 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21580 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21581 cat >> confdefs.h <<EOF
21582 #define SIZEOF_SHORT $ac_cv_sizeof_short
21586 echo $ac_n "checking size of int""... $ac_c" 1>&6
21587 echo "configure:21588: checking size of int" >&5
21588 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21589 echo $ac_n "(cached) $ac_c" 1>&6
21591 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21595 #include "confdefs.h"
21596 #include <sys/types.h>
21600 switch (0) case 0: case (sizeof (int) == $ac_size):;
21603 if { (eval echo configure:21604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21605 ac_cv_sizeof_int=$ac_size
21607 echo "configure: failed program was:" >&5
21608 cat conftest.$ac_ext >&5
21611 if test x$ac_cv_sizeof_int != x ; then break; fi
21616 if test x$ac_cv_sizeof_int = x ; then
21617 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21619 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21620 cat >> confdefs.h <<EOF
21621 #define SIZEOF_INT $ac_cv_sizeof_int
21625 echo $ac_n "checking size of long""... $ac_c" 1>&6
21626 echo "configure:21627: checking size of long" >&5
21627 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21628 echo $ac_n "(cached) $ac_c" 1>&6
21630 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21631 cat > conftest.$ac_ext <<EOF
21632 #line 21633 "configure"
21633 #include "confdefs.h"
21634 #include "confdefs.h"
21635 #include <sys/types.h>
21639 switch (0) case 0: case (sizeof (long) == $ac_size):;
21642 if { (eval echo configure:21643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21644 ac_cv_sizeof_long=$ac_size
21646 echo "configure: failed program was:" >&5
21647 cat conftest.$ac_ext >&5
21650 if test x$ac_cv_sizeof_long != x ; then break; fi
21655 if test x$ac_cv_sizeof_long = x ; then
21656 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21658 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21659 cat >> confdefs.h <<EOF
21660 #define SIZEOF_LONG $ac_cv_sizeof_long
21665 if test "$ac_cv_sizeof_int" -lt 4 ; then
21666 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21668 cat >> confdefs.h <<\EOF
21669 #define LBER_INT_T long
21673 cat >> confdefs.h <<\EOF
21674 #define LBER_INT_T int
21679 cat >> confdefs.h <<\EOF
21680 #define LBER_LEN_T long
21683 cat >> confdefs.h <<\EOF
21684 #define LBER_SOCKET_T int
21687 cat >> confdefs.h <<\EOF
21688 #define LBER_TAG_T long
21692 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21693 echo "configure:21694: checking for 8-bit clean memcmp" >&5
21694 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21695 echo $ac_n "(cached) $ac_c" 1>&6
21697 if test "$cross_compiling" = yes; then
21698 ac_cv_func_memcmp_clean=no
21700 cat > conftest.$ac_ext <<EOF
21701 #line 21702 "configure"
21702 #include "confdefs.h"
21706 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21707 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21711 if { (eval echo configure:21712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21713 ac_cv_func_memcmp_clean=yes
21715 echo "configure: failed program was:" >&5
21716 cat conftest.$ac_ext >&5
21718 ac_cv_func_memcmp_clean=no
21725 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21726 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21728 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21729 echo "configure:21730: checking for strftime" >&5
21730 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21731 echo $ac_n "(cached) $ac_c" 1>&6
21733 cat > conftest.$ac_ext <<EOF
21734 #line 21735 "configure"
21735 #include "confdefs.h"
21736 /* System header to define __stub macros and hopefully few prototypes,
21737 which can conflict with char strftime(); below. */
21738 #include <assert.h>
21739 /* Override any gcc2 internal prototype to avoid an error. */
21740 /* We use char because int might match the return type of a gcc2
21741 builtin and then its argument prototype would still apply. */
21747 /* The GNU C library defines this for functions which it implements
21748 to always fail with ENOSYS. Some functions are actually named
21749 something starting with __ and the normal name is an alias. */
21750 #if defined (__stub_strftime) || defined (__stub___strftime)
21758 if { (eval echo configure:21759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21760 eval "ac_cv_func_strftime=yes"
21762 echo "configure: failed program was:" >&5
21763 cat conftest.$ac_ext >&5
21765 eval "ac_cv_func_strftime=no"
21770 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21771 echo "$ac_t""yes" 1>&6
21772 cat >> confdefs.h <<\EOF
21773 #define HAVE_STRFTIME 1
21777 echo "$ac_t""no" 1>&6
21778 # strftime is in -lintl on SCO UNIX.
21779 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21780 echo "configure:21781: checking for strftime in -lintl" >&5
21781 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21782 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21783 echo $ac_n "(cached) $ac_c" 1>&6
21785 ac_save_LIBS="$LIBS"
21786 LIBS="-lintl $LIBS"
21787 cat > conftest.$ac_ext <<EOF
21788 #line 21789 "configure"
21789 #include "confdefs.h"
21790 /* Override any gcc2 internal prototype to avoid an error. */
21791 /* We use char because int might match the return type of a gcc2
21792 builtin and then its argument prototype would still apply. */
21799 if { (eval echo configure:21800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21801 eval "ac_cv_lib_$ac_lib_var=yes"
21803 echo "configure: failed program was:" >&5
21804 cat conftest.$ac_ext >&5
21806 eval "ac_cv_lib_$ac_lib_var=no"
21809 LIBS="$ac_save_LIBS"
21812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21813 echo "$ac_t""yes" 1>&6
21814 cat >> confdefs.h <<\EOF
21815 #define HAVE_STRFTIME 1
21818 LIBS="-lintl $LIBS"
21820 echo "$ac_t""no" 1>&6
21826 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21827 echo "configure:21828: checking for inet_aton()" >&5
21828 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21829 echo $ac_n "(cached) $ac_c" 1>&6
21831 cat > conftest.$ac_ext <<EOF
21832 #line 21833 "configure"
21833 #include "confdefs.h"
21835 #ifdef HAVE_SYS_TYPES_H
21836 # include <sys/types.h>
21838 #ifdef HAVE_SYS_SOCKET_H
21839 # include <sys/socket.h>
21840 # ifdef HAVE_SYS_SELECT_H
21841 # include <sys/select.h>
21843 # include <netinet/in.h>
21844 # ifdef HAVE_ARPA_INET_H
21845 # include <arpa/inet.h>
21851 int rc = inet_aton( "255.255.255.255", &in );
21854 if { (eval echo configure:21855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21856 ol_cv_func_inet_aton=yes
21858 echo "configure: failed program was:" >&5
21859 cat conftest.$ac_ext >&5
21861 ol_cv_func_inet_aton=no
21866 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21867 if test $ol_cv_func_inet_aton != no; then
21868 cat >> confdefs.h <<\EOF
21869 #define HAVE_INET_ATON 1
21875 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21876 echo "configure:21877: checking for _spawnlp" >&5
21877 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21878 echo $ac_n "(cached) $ac_c" 1>&6
21880 cat > conftest.$ac_ext <<EOF
21881 #line 21882 "configure"
21882 #include "confdefs.h"
21883 /* System header to define __stub macros and hopefully few prototypes,
21884 which can conflict with char _spawnlp(); below. */
21885 #include <assert.h>
21886 /* Override any gcc2 internal prototype to avoid an error. */
21887 /* We use char because int might match the return type of a gcc2
21888 builtin and then its argument prototype would still apply. */
21894 /* The GNU C library defines this for functions which it implements
21895 to always fail with ENOSYS. Some functions are actually named
21896 something starting with __ and the normal name is an alias. */
21897 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21905 if { (eval echo configure:21906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21907 eval "ac_cv_func__spawnlp=yes"
21909 echo "configure: failed program was:" >&5
21910 cat conftest.$ac_ext >&5
21912 eval "ac_cv_func__spawnlp=no"
21917 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21918 echo "$ac_t""yes" 1>&6
21919 cat >> confdefs.h <<\EOF
21920 #define HAVE_SPAWNLP 1
21924 echo "$ac_t""no" 1>&6
21928 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21929 echo "configure:21930: checking for _snprintf" >&5
21930 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21931 echo $ac_n "(cached) $ac_c" 1>&6
21933 cat > conftest.$ac_ext <<EOF
21934 #line 21935 "configure"
21935 #include "confdefs.h"
21936 /* System header to define __stub macros and hopefully few prototypes,
21937 which can conflict with char _snprintf(); below. */
21938 #include <assert.h>
21939 /* Override any gcc2 internal prototype to avoid an error. */
21940 /* We use char because int might match the return type of a gcc2
21941 builtin and then its argument prototype would still apply. */
21947 /* The GNU C library defines this for functions which it implements
21948 to always fail with ENOSYS. Some functions are actually named
21949 something starting with __ and the normal name is an alias. */
21950 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21958 if { (eval echo configure:21959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21960 eval "ac_cv_func__snprintf=yes"
21962 echo "configure: failed program was:" >&5
21963 cat conftest.$ac_ext >&5
21965 eval "ac_cv_func__snprintf=no"
21970 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21971 echo "$ac_t""yes" 1>&6
21972 ac_cv_func_snprintf=yes
21973 cat >> confdefs.h <<\EOF
21974 #define snprintf _snprintf
21979 echo "$ac_t""no" 1>&6
21983 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21984 echo "configure:21985: checking for _vsnprintf" >&5
21985 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21986 echo $ac_n "(cached) $ac_c" 1>&6
21988 cat > conftest.$ac_ext <<EOF
21989 #line 21990 "configure"
21990 #include "confdefs.h"
21991 /* System header to define __stub macros and hopefully few prototypes,
21992 which can conflict with char _vsnprintf(); below. */
21993 #include <assert.h>
21994 /* Override any gcc2 internal prototype to avoid an error. */
21995 /* We use char because int might match the return type of a gcc2
21996 builtin and then its argument prototype would still apply. */
22002 /* The GNU C library defines this for functions which it implements
22003 to always fail with ENOSYS. Some functions are actually named
22004 something starting with __ and the normal name is an alias. */
22005 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22013 if { (eval echo configure:22014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22015 eval "ac_cv_func__vsnprintf=yes"
22017 echo "configure: failed program was:" >&5
22018 cat conftest.$ac_ext >&5
22020 eval "ac_cv_func__vsnprintf=no"
22025 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22026 echo "$ac_t""yes" 1>&6
22027 ac_cv_func_vsnprintf=yes
22028 cat >> confdefs.h <<\EOF
22029 #define vsnprintf _vsnprintf
22034 echo "$ac_t""no" 1>&6
22038 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22039 echo "configure:22040: checking for vprintf" >&5
22040 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22041 echo $ac_n "(cached) $ac_c" 1>&6
22043 cat > conftest.$ac_ext <<EOF
22044 #line 22045 "configure"
22045 #include "confdefs.h"
22046 /* System header to define __stub macros and hopefully few prototypes,
22047 which can conflict with char vprintf(); below. */
22048 #include <assert.h>
22049 /* Override any gcc2 internal prototype to avoid an error. */
22050 /* We use char because int might match the return type of a gcc2
22051 builtin and then its argument prototype would still apply. */
22057 /* The GNU C library defines this for functions which it implements
22058 to always fail with ENOSYS. Some functions are actually named
22059 something starting with __ and the normal name is an alias. */
22060 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22068 if { (eval echo configure:22069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22070 eval "ac_cv_func_vprintf=yes"
22072 echo "configure: failed program was:" >&5
22073 cat conftest.$ac_ext >&5
22075 eval "ac_cv_func_vprintf=no"
22080 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22081 echo "$ac_t""yes" 1>&6
22082 cat >> confdefs.h <<\EOF
22083 #define HAVE_VPRINTF 1
22087 echo "$ac_t""no" 1>&6
22090 if test "$ac_cv_func_vprintf" != yes; then
22091 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22092 echo "configure:22093: checking for _doprnt" >&5
22093 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22094 echo $ac_n "(cached) $ac_c" 1>&6
22096 cat > conftest.$ac_ext <<EOF
22097 #line 22098 "configure"
22098 #include "confdefs.h"
22099 /* System header to define __stub macros and hopefully few prototypes,
22100 which can conflict with char _doprnt(); below. */
22101 #include <assert.h>
22102 /* Override any gcc2 internal prototype to avoid an error. */
22103 /* We use char because int might match the return type of a gcc2
22104 builtin and then its argument prototype would still apply. */
22110 /* The GNU C library defines this for functions which it implements
22111 to always fail with ENOSYS. Some functions are actually named
22112 something starting with __ and the normal name is an alias. */
22113 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22121 if { (eval echo configure:22122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22123 eval "ac_cv_func__doprnt=yes"
22125 echo "configure: failed program was:" >&5
22126 cat conftest.$ac_ext >&5
22128 eval "ac_cv_func__doprnt=no"
22133 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22134 echo "$ac_t""yes" 1>&6
22135 cat >> confdefs.h <<\EOF
22136 #define HAVE_DOPRNT 1
22140 echo "$ac_t""no" 1>&6
22146 if test $ac_cv_func_vprintf = yes ; then
22147 for ac_func in vsnprintf vsprintf
22149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22150 echo "configure:22151: checking for $ac_func" >&5
22151 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22152 echo $ac_n "(cached) $ac_c" 1>&6
22154 cat > conftest.$ac_ext <<EOF
22155 #line 22156 "configure"
22156 #include "confdefs.h"
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func(); below. */
22159 #include <assert.h>
22160 /* Override any gcc2 internal prototype to avoid an error. */
22161 /* We use char because int might match the return type of a gcc2
22162 builtin and then its argument prototype would still apply. */
22168 /* The GNU C library defines this for functions which it implements
22169 to always fail with ENOSYS. Some functions are actually named
22170 something starting with __ and the normal name is an alias. */
22171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22179 if { (eval echo configure:22180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22181 eval "ac_cv_func_$ac_func=yes"
22183 echo "configure: failed program was:" >&5
22184 cat conftest.$ac_ext >&5
22186 eval "ac_cv_func_$ac_func=no"
22191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22192 echo "$ac_t""yes" 1>&6
22193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22194 cat >> confdefs.h <<EOF
22195 #define $ac_tr_func 1
22199 echo "$ac_t""no" 1>&6
22260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22261 echo "configure:22262: checking for $ac_func" >&5
22262 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22263 echo $ac_n "(cached) $ac_c" 1>&6
22265 cat > conftest.$ac_ext <<EOF
22266 #line 22267 "configure"
22267 #include "confdefs.h"
22268 /* System header to define __stub macros and hopefully few prototypes,
22269 which can conflict with char $ac_func(); below. */
22270 #include <assert.h>
22271 /* Override any gcc2 internal prototype to avoid an error. */
22272 /* We use char because int might match the return type of a gcc2
22273 builtin and then its argument prototype would still apply. */
22279 /* The GNU C library defines this for functions which it implements
22280 to always fail with ENOSYS. Some functions are actually named
22281 something starting with __ and the normal name is an alias. */
22282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22290 if { (eval echo configure:22291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22292 eval "ac_cv_func_$ac_func=yes"
22294 echo "configure: failed program was:" >&5
22295 cat conftest.$ac_ext >&5
22297 eval "ac_cv_func_$ac_func=no"
22302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22303 echo "$ac_t""yes" 1>&6
22304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22305 cat >> confdefs.h <<EOF
22306 #define $ac_tr_func 1
22310 echo "$ac_t""no" 1>&6
22315 for ac_func in getopt
22317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22318 echo "configure:22319: checking for $ac_func" >&5
22319 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22320 echo $ac_n "(cached) $ac_c" 1>&6
22322 cat > conftest.$ac_ext <<EOF
22323 #line 22324 "configure"
22324 #include "confdefs.h"
22325 /* System header to define __stub macros and hopefully few prototypes,
22326 which can conflict with char $ac_func(); below. */
22327 #include <assert.h>
22328 /* Override any gcc2 internal prototype to avoid an error. */
22329 /* We use char because int might match the return type of a gcc2
22330 builtin and then its argument prototype would still apply. */
22336 /* The GNU C library defines this for functions which it implements
22337 to always fail with ENOSYS. Some functions are actually named
22338 something starting with __ and the normal name is an alias. */
22339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22347 if { (eval echo configure:22348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22349 eval "ac_cv_func_$ac_func=yes"
22351 echo "configure: failed program was:" >&5
22352 cat conftest.$ac_ext >&5
22354 eval "ac_cv_func_$ac_func=no"
22359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22360 echo "$ac_t""yes" 1>&6
22361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22362 cat >> confdefs.h <<EOF
22363 #define $ac_tr_func 1
22367 echo "$ac_t""no" 1>&6
22368 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22374 if test "$ac_cv_func_getopt" != yes; then
22375 LIBSRCS="$LIBSRCS getopt.c"
22378 # Check Configuration
22379 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22380 echo "configure:22381: checking declaration of sys_errlist" >&5
22381 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22382 echo $ac_n "(cached) $ac_c" 1>&6
22385 cat > conftest.$ac_ext <<EOF
22386 #line 22387 "configure"
22387 #include "confdefs.h"
22390 #include <sys/types.h>
22393 #include <stdlib.h>
22396 char *c = (char *) *sys_errlist
22399 if { (eval echo configure:22400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22401 ol_cv_dcl_sys_errlist=yes
22402 ol_cv_have_sys_errlist=yes
22404 echo "configure: failed program was:" >&5
22405 cat conftest.$ac_ext >&5
22407 ol_cv_dcl_sys_errlist=no
22412 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22414 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22415 if test $ol_cv_dcl_sys_errlist = no ; then
22416 cat >> confdefs.h <<\EOF
22417 #define DECL_SYS_ERRLIST 1
22421 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22422 echo "configure:22423: checking existence of sys_errlist" >&5
22423 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22424 echo $ac_n "(cached) $ac_c" 1>&6
22427 cat > conftest.$ac_ext <<EOF
22428 #line 22429 "configure"
22429 #include "confdefs.h"
22432 char *c = (char *) *sys_errlist
22435 if { (eval echo configure:22436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22437 ol_cv_have_sys_errlist=yes
22439 echo "configure: failed program was:" >&5
22440 cat conftest.$ac_ext >&5
22442 ol_cv_have_sys_errlist=no
22447 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22449 if test $ol_cv_have_sys_errlist = yes ; then
22450 cat >> confdefs.h <<\EOF
22451 #define HAVE_SYS_ERRLIST 1
22458 if test "$ol_enable_debug" != no ; then
22459 cat >> confdefs.h <<\EOF
22460 #define LDAP_DEBUG 1
22464 if test "$ol_enable_syslog" = yes ; then
22465 cat >> confdefs.h <<\EOF
22466 #define LDAP_SYSLOG 1
22470 if test "$ol_enable_cache" = no ; then
22471 cat >> confdefs.h <<\EOF
22472 #define LDAP_NOCACHE 1
22476 if test "$ol_link_kbind" != no ; then
22477 cat >> confdefs.h <<\EOF
22478 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22482 if test "$ol_enable_proctitle" != no ; then
22483 cat >> confdefs.h <<\EOF
22484 #define LDAP_PROCTITLE 1
22488 if test "$ol_enable_referrals" != no ; then
22489 cat >> confdefs.h <<\EOF
22490 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22494 if test "$ol_enable_local" != no; then
22495 cat >> confdefs.h <<\EOF
22496 #define LDAP_PF_LOCAL 1
22500 if test "$ol_link_ipv6" != no; then
22501 cat >> confdefs.h <<\EOF
22502 #define LDAP_PF_INET6 1
22506 if test "$ol_enable_cleartext" != no ; then
22507 cat >> confdefs.h <<\EOF
22508 #define SLAPD_CLEARTEXT 1
22512 if test "$ol_enable_crypt" != no ; then
22513 cat >> confdefs.h <<\EOF
22514 #define SLAPD_CRYPT 1
22518 if test "$ol_link_kpasswd" != no ; then
22519 cat >> confdefs.h <<\EOF
22520 #define SLAPD_KPASSWD 1
22524 if test "$ol_link_spasswd" != no ; then
22525 cat >> confdefs.h <<\EOF
22526 #define SLAPD_SPASSWD 1
22530 if test "$ol_enable_multimaster" != no ; then
22531 cat >> confdefs.h <<\EOF
22532 #define SLAPD_MULTIMASTER 1
22536 if test "$ol_enable_phonetic" != no ; then
22537 cat >> confdefs.h <<\EOF
22538 #define SLAPD_PHONETIC 1
22542 if test "$ol_enable_rlookups" != no ; then
22543 cat >> confdefs.h <<\EOF
22544 #define SLAPD_RLOOKUPS 1
22548 if test "$ol_enable_aci" != no ; then
22549 cat >> confdefs.h <<\EOF
22550 #define SLAPD_ACI_ENABLED 1
22555 if test "$ol_link_modules" != no ; then
22556 cat >> confdefs.h <<\EOF
22557 #define SLAPD_MODULES 1
22561 SLAPD_MODULES_LDFLAGS="-dlopen self"
22564 if test "$ol_enable_bdb" != no ; then
22565 cat >> confdefs.h <<\EOF
22566 #define SLAPD_BDB 1
22571 if test "$ol_with_bdb_module" != static ; then
22572 cat >> confdefs.h <<\EOF
22573 #define SLAPD_BDB_DYNAMIC 1
22577 BUILD_BDB_DYNAMIC=shared
22578 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22580 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22584 if test "$ol_link_dnssrv" != no ; then
22585 cat >> confdefs.h <<\EOF
22586 #define SLAPD_DNSSRV 1
22591 if test "$ol_with_dnssrv_module" != static ; then
22592 cat >> confdefs.h <<\EOF
22593 #define SLAPD_DNSSRV_DYNAMIC 1
22597 BUILD_DNSSRV_DYNAMIC=shared
22598 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22600 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22604 if test "$ol_enable_ldap" != no ; then
22605 cat >> confdefs.h <<\EOF
22606 #define SLAPD_LDAP 1
22611 if test "$ol_with_ldap_module" != static ; then
22612 cat >> confdefs.h <<\EOF
22613 #define SLAPD_LDAP_DYNAMIC 1
22617 BUILD_LDAP_DYNAMIC=shared
22618 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22620 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22624 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22625 cat >> confdefs.h <<\EOF
22626 #define SLAPD_LDBM 1
22632 if test "$ol_with_ldbm_module" != static ; then
22633 cat >> confdefs.h <<\EOF
22634 #define SLAPD_LDBM_DYNAMIC 1
22638 BUILD_LDBM_DYNAMIC=shared
22639 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22641 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22645 if test "$ol_enable_meta" != no ; then
22646 if test "$ol_enable_ldap" = no ; then
22647 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22649 if test "$ol_enable_rewrite" = no ; then
22650 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22652 cat >> confdefs.h <<\EOF
22653 #define SLAPD_META 1
22660 if test "$ol_with_meta_module" != static ; then
22661 cat >> confdefs.h <<\EOF
22662 #define SLAPD_META_DYNAMIC 1
22666 BUILD_META_DYNAMIC=shared
22667 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22669 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22673 if test "$ol_enable_monitor" != no ; then
22674 cat >> confdefs.h <<\EOF
22675 #define SLAPD_MONITOR 1
22680 if test "$ol_with_monitor_module" != static ; then
22681 cat >> confdefs.h <<\EOF
22682 #define SLAPD_MONITOR_DYNAMIC 1
22686 BUILD_MONITOR_DYNAMIC=shared
22687 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22689 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22693 if test "$ol_enable_null" != no ; then
22694 cat >> confdefs.h <<\EOF
22695 #define SLAPD_NULL 1
22700 if test "$ol_with_null_module" != static ; then
22701 cat >> confdefs.h <<\EOF
22702 #define SLAPD_NULL_DYNAMIC 1
22706 BUILD_NULL_DYNAMIC=shared
22707 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22709 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22713 if test "$ol_enable_passwd" != no ; then
22714 cat >> confdefs.h <<\EOF
22715 #define SLAPD_PASSWD 1
22720 if test "$ol_with_passwd_module" != static ; then
22721 cat >> confdefs.h <<\EOF
22722 #define SLAPD_PASSWD_DYNAMIC 1
22726 BUILD_PASSWD_DYNAMIC=shared
22727 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22729 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22733 if test "$ol_link_perl" != no ; then
22734 cat >> confdefs.h <<\EOF
22735 #define SLAPD_PERL 1
22740 if test "$ol_with_perl_module" != static ; then
22741 cat >> confdefs.h <<\EOF
22742 #define SLAPD_PERL_DYNAMIC 1
22746 BUILD_PERL_DYNAMIC=shared
22747 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22749 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22753 if test "$ol_enable_shell" != no ; then
22754 cat >> confdefs.h <<\EOF
22755 #define SLAPD_SHELL 1
22760 if test "$ol_with_shell_module" != static ; then
22761 cat >> confdefs.h <<\EOF
22762 #define SLAPD_SHELL_DYNAMIC 1
22766 BUILD_SHELL_DYNAMIC=shared
22767 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22769 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22773 if test "$ol_link_sql" != no ; then
22774 cat >> confdefs.h <<\EOF
22775 #define SLAPD_SQL 1
22780 if test "$ol_with_sql_module" != static; then
22781 cat >> confdefs.h <<\EOF
22782 #define SLAPD_SQL_DYNAMIC 1
22786 BUILD_SQL_DYNAMIC=shared
22787 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22789 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22793 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22794 $BUILD_SLAPD = yes ; then
22798 if test "$ol_enable_rewrite" != no ; then
22799 cat >> confdefs.h <<\EOF
22800 #define ENABLE_REWRITE 1
22808 if test "$ac_cv_mingw32" = yes ; then
22810 SLAPD_MODULES_LDFLAGS=
22880 # Check whether --with-xxinstall or --without-xxinstall was given.
22881 if test "${with_xxinstall+set}" = set; then
22882 withval="$with_xxinstall"
22890 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22893 # Let make expand exec_prefix.
22894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22896 # Any assignment to VPATH causes Sun make to only execute
22897 # the first set of double-colon rules, so remove it if not needed.
22898 # If there is a colon in the path, we need to keep it.
22899 if test "x$srcdir" = x.; then
22900 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22903 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22905 DEFS=-DHAVE_CONFIG_H
22907 # Without the "./", some shells look in PATH for config.status.
22908 : ${CONFIG_STATUS=./config.status}
22910 echo creating $CONFIG_STATUS
22911 rm -f $CONFIG_STATUS
22912 cat > $CONFIG_STATUS <<EOF
22914 # Generated automatically by configure.
22915 # Run this file to recreate the current configuration.
22916 # This directory was configured as follows,
22917 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22919 # $0 $ac_configure_args
22921 # Compiler output produced by configure, useful for debugging
22922 # configure, is in ./config.log if it exists.
22924 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22927 case "\$ac_option" in
22928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22932 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22934 -help | --help | --hel | --he | --h)
22935 echo "\$ac_cs_usage"; exit 0 ;;
22936 *) echo "\$ac_cs_usage"; exit 1 ;;
22940 ac_given_srcdir=$srcdir
22941 ac_given_INSTALL="$INSTALL"
22943 trap 'rm -fr `echo "\
22944 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22945 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22946 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22947 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22948 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22949 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22950 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22951 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22952 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22953 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22954 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22955 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22956 include/Makefile:build/top.mk:include/Makefile.in \
22957 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22958 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22959 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22960 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22961 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22962 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22963 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22964 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22965 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22966 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22967 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22968 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22969 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22970 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22971 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22972 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22973 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22974 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22975 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22976 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22977 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22978 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22979 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22980 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22981 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22982 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22983 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22984 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22985 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22987 cat >> $CONFIG_STATUS <<EOF
22989 # Protect against being on the right side of a sed subst in config.status.
22990 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22991 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22995 s%@CFLAGS@%$CFLAGS%g
22996 s%@CPPFLAGS@%$CPPFLAGS%g
22997 s%@CXXFLAGS@%$CXXFLAGS%g
22998 s%@FFLAGS@%$FFLAGS%g
23000 s%@LDFLAGS@%$LDFLAGS%g
23002 s%@exec_prefix@%$exec_prefix%g
23003 s%@prefix@%$prefix%g
23004 s%@program_transform_name@%$program_transform_name%g
23005 s%@bindir@%$bindir%g
23006 s%@sbindir@%$sbindir%g
23007 s%@libexecdir@%$libexecdir%g
23008 s%@datadir@%$datadir%g
23009 s%@sysconfdir@%$sysconfdir%g
23010 s%@sharedstatedir@%$sharedstatedir%g
23011 s%@localstatedir@%$localstatedir%g
23012 s%@libdir@%$libdir%g
23013 s%@includedir@%$includedir%g
23014 s%@oldincludedir@%$oldincludedir%g
23015 s%@infodir@%$infodir%g
23016 s%@mandir@%$mandir%g
23018 s%@host_alias@%$host_alias%g
23019 s%@host_cpu@%$host_cpu%g
23020 s%@host_vendor@%$host_vendor%g
23021 s%@host_os@%$host_os%g
23022 s%@target@%$target%g
23023 s%@target_alias@%$target_alias%g
23024 s%@target_cpu@%$target_cpu%g
23025 s%@target_vendor@%$target_vendor%g
23026 s%@target_os@%$target_os%g
23028 s%@build_alias@%$build_alias%g
23029 s%@build_cpu@%$build_cpu%g
23030 s%@build_vendor@%$build_vendor%g
23031 s%@build_os@%$build_os%g
23032 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23033 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23034 s%@INSTALL_DATA@%$INSTALL_DATA%g
23035 s%@PACKAGE@%$PACKAGE%g
23036 s%@VERSION@%$VERSION%g
23037 s%@ACLOCAL@%$ACLOCAL%g
23038 s%@AUTOCONF@%$AUTOCONF%g
23039 s%@AUTOMAKE@%$AUTOMAKE%g
23040 s%@AUTOHEADER@%$AUTOHEADER%g
23041 s%@MAKEINFO@%$MAKEINFO%g
23042 s%@install_sh@%$install_sh%g
23045 s%@AMTARFLAGS@%$AMTARFLAGS%g
23046 s%@SET_MAKE@%$SET_MAKE%g
23047 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23048 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23049 s%@top_builddir@%$top_builddir%g
23050 s%@ldap_subdir@%$ldap_subdir%g
23054 s%@OBJEXT@%$OBJEXT%g
23055 s%@EXEEXT@%$EXEEXT%g
23057 s%@RANLIB@%$RANLIB%g
23059 s%@DLLTOOL@%$DLLTOOL%g
23061 s%@OBJDUMP@%$OBJDUMP%g
23063 s%@LIBTOOL@%$LIBTOOL%g
23065 s%@SENDMAIL@%$SENDMAIL%g
23066 s%@EDITOR@%$EDITOR%g
23067 s%@PERLBIN@%$PERLBIN%g
23068 s%@OL_MKDEP@%$OL_MKDEP%g
23069 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23070 s%@LIBOBJS@%$LIBOBJS%g
23071 s%@LIBSRCS@%$LIBSRCS%g
23073 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23074 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23075 s%@BUILD_BDB@%$BUILD_BDB%g
23076 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23077 s%@BUILD_LDAP@%$BUILD_LDAP%g
23078 s%@BUILD_LDBM@%$BUILD_LDBM%g
23079 s%@BUILD_META@%$BUILD_META%g
23080 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23081 s%@BUILD_NULL@%$BUILD_NULL%g
23082 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23083 s%@BUILD_PERL@%$BUILD_PERL%g
23084 s%@BUILD_SHELL@%$BUILD_SHELL%g
23085 s%@BUILD_SQL@%$BUILD_SQL%g
23086 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23087 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23088 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23089 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23090 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23091 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23092 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23093 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23094 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23095 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23096 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23097 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23098 s%@LDBM_LIB@%$LDBM_LIB%g
23099 s%@LDAP_LIBS@%$LDAP_LIBS%g
23100 s%@LDIF_LIBS@%$LDIF_LIBS%g
23101 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23102 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23103 s%@LDBM_LIBS@%$LDBM_LIBS%g
23104 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23105 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23106 s%@WRAP_LIBS@%$WRAP_LIBS%g
23107 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23108 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23109 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23110 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23111 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23112 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23113 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23114 s%@KRB4_LIBS@%$KRB4_LIBS%g
23115 s%@KRB5_LIBS@%$KRB5_LIBS%g
23116 s%@READLINE_LIBS@%$READLINE_LIBS%g
23117 s%@SASL_LIBS@%$SASL_LIBS%g
23118 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23119 s%@TLS_LIBS@%$TLS_LIBS%g
23120 s%@MODULES_LIBS@%$MODULES_LIBS%g
23121 s%@AUTH_LIBS@%$AUTH_LIBS%g
23122 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23123 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23124 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23125 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23130 cat >> $CONFIG_STATUS <<\EOF
23132 # Split the substitutions into bite-sized pieces for seds with
23133 # small command number limits, like on Digital OSF/1 and HP-UX.
23134 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23135 ac_file=1 # Number of current file.
23136 ac_beg=1 # First line for current file.
23137 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23140 while $ac_more_lines; do
23141 if test $ac_beg -gt 1; then
23142 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23144 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23146 if test ! -s conftest.s$ac_file; then
23147 ac_more_lines=false
23148 rm -f conftest.s$ac_file
23150 if test -z "$ac_sed_cmds"; then
23151 ac_sed_cmds="sed -f conftest.s$ac_file"
23153 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23155 ac_file=`expr $ac_file + 1`
23157 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23160 if test -z "$ac_sed_cmds"; then
23165 cat >> $CONFIG_STATUS <<EOF
23167 CONFIG_FILES=\${CONFIG_FILES-"\
23168 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23169 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23170 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23171 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23172 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23173 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23174 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23175 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23176 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
23177 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
23178 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
23179 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23180 include/Makefile:build/top.mk:include/Makefile.in \
23181 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23182 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23183 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23184 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23185 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23186 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23187 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23188 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23189 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23190 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23191 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23192 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23193 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23194 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23195 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23196 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23197 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23198 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23199 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23200 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23201 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23202 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23203 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23204 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23205 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23206 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23207 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23208 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23211 cat >> $CONFIG_STATUS <<\EOF
23212 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23213 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23215 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23216 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23217 *) ac_file_in="${ac_file}.in" ;;
23220 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23222 # Remove last slash and all that follows it. Not all systems have dirname.
23223 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23224 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23225 # The file is in a subdirectory.
23226 test ! -d "$ac_dir" && mkdir "$ac_dir"
23227 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23228 # A "../" for each directory in $ac_dir_suffix.
23229 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23231 ac_dir_suffix= ac_dots=
23234 case "$ac_given_srcdir" in
23236 if test -z "$ac_dots"; then top_srcdir=.
23237 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23238 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23239 *) # Relative path.
23240 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23241 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23244 case "$ac_given_INSTALL" in
23245 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23246 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23249 echo creating "$ac_file"
23251 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23253 *[Mm]akefile*) ac_comsub="1i\\
23254 # $configure_input" ;;
23258 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23260 s%@configure_input@%$configure_input%g
23261 s%@srcdir@%$srcdir%g
23262 s%@top_srcdir@%$top_srcdir%g
23263 s%@INSTALL@%$INSTALL%g
23264 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23268 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23269 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23271 # ac_d sets the value in "#define NAME VALUE" lines.
23272 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23273 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23276 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23277 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23278 ac_uB='\([ ]\)%\1#\2define\3'
23281 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23282 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23283 ac_eB='$%\1#\2define\3'
23287 if test "${CONFIG_HEADERS+set}" != set; then
23289 cat >> $CONFIG_STATUS <<EOF
23290 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23292 cat >> $CONFIG_STATUS <<\EOF
23294 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23297 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23298 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23299 *) ac_file_in="${ac_file}.in" ;;
23302 echo creating $ac_file
23304 rm -f conftest.frag conftest.in conftest.out
23305 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23306 cat $ac_file_inputs > conftest.in
23310 # Transform confdefs.h into a sed script conftest.vals that substitutes
23311 # the proper values into config.h.in to produce config.h. And first:
23312 # Protect against being on the right side of a sed subst in config.status.
23313 # Protect against being in an unquoted here document in config.status.
23314 rm -f conftest.vals
23315 cat > conftest.hdr <<\EOF
23318 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23322 sed -n -f conftest.hdr confdefs.h > conftest.vals
23325 # This sed command replaces #undef with comments. This is necessary, for
23326 # example, in the case of _POSIX_SOURCE, which is predefined and required
23327 # on some systems where configure will not decide to define it.
23328 cat >> conftest.vals <<\EOF
23329 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23332 # Break up conftest.vals because some shells have a limit on
23333 # the size of here documents, and old seds have small limits too.
23335 rm -f conftest.tail
23338 ac_lines=`grep -c . conftest.vals`
23339 # grep -c gives empty output for an empty file on some AIX systems.
23340 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23341 # Write a limited-size here document to conftest.frag.
23342 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23343 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23345 sed -f conftest.frag conftest.in > conftest.out
23347 mv conftest.out conftest.in
23348 ' >> $CONFIG_STATUS
23349 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23350 rm -f conftest.vals
23351 mv conftest.tail conftest.vals
23353 rm -f conftest.vals
23355 cat >> $CONFIG_STATUS <<\EOF
23356 rm -f conftest.frag conftest.h
23357 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23358 cat conftest.in >> conftest.h
23360 if cmp -s $ac_file conftest.h 2>/dev/null; then
23361 echo "$ac_file is unchanged"
23364 # Remove last slash and all that follows it. Not all systems have dirname.
23365 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23366 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23367 # The file is in a subdirectory.
23368 test ! -d "$ac_dir" && mkdir "$ac_dir"
23371 mv conftest.h $ac_file
23376 cat >> $CONFIG_STATUS <<EOF
23379 cat >> $CONFIG_STATUS <<\EOF
23382 echo Please run \"make depend\" to build dependencies
23386 chmod +x $CONFIG_STATUS
23387 rm -fr confdefs* $ac_clean_files
23388 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1