3 # from OpenLDAP: pkg/ldap/configure.in,v 1.457 2003/02/09 17:03:40 kurt Exp
5 # Copyright 1998-2003 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-2003 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-dynamic enable linking built binaries with dynamic libs [no]"
35 --enable-syslog enable syslog support [auto]"
37 --enable-proctitle enable proctitle support [yes]"
39 --enable-ipv6 enable IPv6 support [auto]"
41 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
43 --enable-x-compile enable cross compiling [no]"
45 --with-cyrus-sasl with Cyrus SASL support [auto]"
47 --with-fetch with fetch(3) URL support [auto]"
49 --with-kerberos with Kerberos support [auto]"
51 --with-readline with readline support [auto]"
53 --with-threads with threads [auto]"
55 --with-tls with TLS/SSL support [auto]"
57 --with-yielding-select with implicitly yielding select [auto]"
60 SLAPD (Standalone LDAP Daemon) Options:"
62 --enable-slapd enable building slapd [yes]"
64 --enable-aci enable per-object ACIs (experimental) [no]"
66 --enable-cleartext enable cleartext passwords [yes]"
68 --enable-crypt enable crypt(3) passwords [no]"
70 --enable-kpasswd enable Kerberos password verification [no]"
72 --enable-lmpasswd enable LAN Manager passwords [no]"
74 --enable-spasswd enable (Cyrus) SASL password verification [no]"
76 --enable-modules enable dynamic module support [no]"
78 --enable-phonetic enable phonetic/soundex [no]"
80 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
82 --enable-rlookups enable reverse lookups of client hostnames [no]"
84 --enable-slp enable SLPv2 support [no]"
86 --enable-wrappers enable tcp wrapper support [no]"
88 --enable-slapi enable installation of slapi library [no]"
90 --enable-bdb enable Berkeley DB backend [yes]"
92 --with-bdb-module module type static|dynamic [static]"
94 --enable-dnssrv enable dnssrv backend [no]"
96 --with-dnssrv-module module type static|dynamic [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type static|dynamic [static]"
102 --enable-ldbm enable ldbm backend [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-module module type static|dynamic [static]"
108 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
110 --enable-meta enable metadirectory backend [no]"
112 --with-meta-module module type static|dynamic [static]"
114 --enable-monitor enable monitor backend [no]"
116 --with-monitor-module module type static|dynamic [static]"
118 --enable-null enable null backend [no]"
120 --with-null-module module type static|dynamic [static]"
122 --enable-passwd enable passwd backend [no]"
124 --with-passwd-module module type static|dynamic [static]"
126 --enable-perl enable perl backend [no]"
128 --with-perl-module module type static|dynamic [static]"
130 --enable-shell enable shell backend [no]"
132 --with-shell-module module type static|dynamic [static]"
134 --enable-sql enable sql backend [no]"
136 --with-sql-module module type static|dynamic [static]"
138 --enable-tcl enable tcl backend [no]"
140 --with-tcl-module module type static|dynamic [static]"
143 SLURPD (Replication Daemon) Options:"
145 --enable-slurpd enable building slurpd [auto]"
148 Library Generation & Linking Options"
150 --enable-static[=PKGS] build static libraries [default=yes]"
152 --enable-shared[=PKGS] build shared libraries [default=yes]"
154 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
156 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
158 # Find the correct PATH separator. Usually this is `:', but
159 # DJGPP uses `;' like DOS.
160 if test "X${PATH_SEPARATOR+set}" != Xset; then
161 UNAME=${UNAME-`uname 2>/dev/null`}
163 *-DOS) lt_cv_sys_path_separator=';' ;;
164 *) lt_cv_sys_path_separator=':' ;;
166 PATH_SEPARATOR=$lt_cv_sys_path_separator
170 # Check that we are running under the correct shell.
171 SHELL=${CONFIG_SHELL-/bin/sh}
175 # Remove one level of quotation (which was required for Make).
176 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
181 if test "X$1" = X--no-reexec; then
182 # Discard the --no-reexec flag, and continue.
184 elif test "X$1" = X--fallback-echo; then
185 # Avoid inline document here, it may be left over
187 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
188 # Yippee, $echo works!
191 # Restart under the correct shell.
192 exec $SHELL "$0" --no-reexec ${1+"$@"}
195 if test "X$1" = X--fallback-echo; then
196 # used as fallback echo
204 # The HP-UX ksh and POSIX shell print the target directory to stdout
206 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
208 if test -z "$ECHO"; then
209 if test "X${echo_test_string+set}" != Xset; then
210 # find a string as large as possible, as long as the shell can cope with it
211 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
212 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
213 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
214 echo_test_string="`eval $cmd`" &&
215 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
222 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
223 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
224 test "X$echo_testing_string" = "X$echo_test_string"; then
227 # The Solaris, AIX, and Digital Unix default echo programs unquote
228 # backslashes. This makes it impossible to quote backslashes using
229 # echo "$something" | sed 's/\\/\\\\/g'
231 # So, first we look for a working echo in the user's PATH.
233 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
234 for dir in $PATH /usr/ucb; do
235 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
236 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
237 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
238 test "X$echo_testing_string" = "X$echo_test_string"; then
245 if test "X$echo" = Xecho; then
246 # We didn't find a better echo, so look for alternatives.
247 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
248 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
249 test "X$echo_testing_string" = "X$echo_test_string"; then
250 # This shell has a builtin print -r that does the trick.
252 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
253 test "X$CONFIG_SHELL" != X/bin/ksh; then
254 # If we have ksh, try running configure again with it.
255 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
256 export ORIGINAL_CONFIG_SHELL
257 CONFIG_SHELL=/bin/ksh
259 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
263 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
264 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
268 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
274 SHELL="$CONFIG_SHELL"
276 echo="$CONFIG_SHELL $0 --fallback-echo"
277 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
278 test "X$echo_testing_string" = 'X\t' &&
279 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
280 test "X$echo_testing_string" = "X$echo_test_string"; then
281 echo="$CONFIG_SHELL $0 --fallback-echo"
283 # maybe with a smaller string...
286 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
287 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
294 if test "$prev" != 'sed 50q "$0"'; then
295 echo_test_string=`eval $prev`
296 export echo_test_string
297 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
299 # Oops. We lost completely, so just stick with echo.
308 # Copy echo and quote the copy suitably for passing to libtool from
309 # the Makefile, instead of quoting the original, which is used later.
311 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
312 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
317 --disable-libtool-lock avoid locking (might break parallel builds)"
319 --with-pic try to use only PIC/non-PIC objects [default=use both]"
322 See INSTALL file for further details."
324 # Initialize some variables set by options.
325 # The variables have the same names as the options, with
326 # dashes changed to underlines.
328 cache_file=./config.cache
337 program_transform_name=s,x,x,
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
358 # Initialize some other variables.
361 SHELL=${CONFIG_SHELL-/bin/sh}
362 # Maximum number of lines to put in a shell here document.
369 # If the previous option needs an argument, assign it.
370 if test -n "$ac_prev"; then
371 eval "$ac_prev=\$ac_option"
377 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
381 # Accept the important Cygnus configure options, so we can diagnose typos.
385 -bindir | --bindir | --bindi | --bind | --bin | --bi)
387 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
388 bindir="$ac_optarg" ;;
390 -build | --build | --buil | --bui | --bu)
392 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
393 build="$ac_optarg" ;;
395 -cache-file | --cache-file | --cache-fil | --cache-fi \
396 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
397 ac_prev=cache_file ;;
398 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
399 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
400 cache_file="$ac_optarg" ;;
402 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
404 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
406 datadir="$ac_optarg" ;;
408 -disable-* | --disable-*)
409 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
414 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
415 eval "enable_${ac_feature}=no" ;;
417 -enable-* | --enable-*)
418 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
421 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
423 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
428 eval "enable_${ac_feature}='$ac_optarg'" ;;
430 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
431 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
432 | --exec | --exe | --ex)
433 ac_prev=exec_prefix ;;
434 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
435 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
436 | --exec=* | --exe=* | --ex=*)
437 exec_prefix="$ac_optarg" ;;
439 -gas | --gas | --ga | --g)
440 # Obsolete; use --with-gas.
443 -help | --help | --hel | --he)
444 # Omit some internal or obsolete options to make the list less imposing.
445 # This message is too long to be a string in the A/UX 3.1 sh.
447 Usage: configure [options] [host]
448 Options: [defaults in brackets after descriptions]
450 --cache-file=FILE cache test results in FILE
451 --help print this message
452 --no-create do not create output files
453 --quiet, --silent do not print \`checking...' messages
454 --version print the version of autoconf that created configure
455 Directory and file names:
456 --prefix=PREFIX install architecture-independent files in PREFIX
458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
460 --bindir=DIR user executables in DIR [EPREFIX/bin]
461 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
462 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
463 --datadir=DIR read-only architecture-independent data in DIR
465 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
466 --sharedstatedir=DIR modifiable architecture-independent data in DIR
468 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
469 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
470 --includedir=DIR C header files in DIR [PREFIX/include]
471 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
472 --infodir=DIR info documentation in DIR [PREFIX/info]
473 --mandir=DIR man documentation in DIR [PREFIX/man]
474 --srcdir=DIR find the sources in DIR [configure dir or ..]
475 --program-prefix=PREFIX prepend PREFIX to installed program names
476 --program-suffix=SUFFIX append SUFFIX to installed program names
477 --program-transform-name=PROGRAM
478 run sed PROGRAM on installed program names
482 --build=BUILD configure for building on BUILD [BUILD=HOST]
483 --host=HOST configure for HOST [guessed]
484 --target=TARGET configure for TARGET [TARGET=HOST]
485 Features and packages:
486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
490 --x-includes=DIR X include files are in DIR
491 --x-libraries=DIR X library files are in DIR
493 if test -n "$ac_help"; then
494 echo "--enable and --with options recognized:$ac_help"
498 -host | --host | --hos | --ho)
500 -host=* | --host=* | --hos=* | --ho=*)
503 -includedir | --includedir | --includedi | --included | --include \
504 | --includ | --inclu | --incl | --inc)
505 ac_prev=includedir ;;
506 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
507 | --includ=* | --inclu=* | --incl=* | --inc=*)
508 includedir="$ac_optarg" ;;
510 -infodir | --infodir | --infodi | --infod | --info | --inf)
512 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
513 infodir="$ac_optarg" ;;
515 -libdir | --libdir | --libdi | --libd)
517 -libdir=* | --libdir=* | --libdi=* | --libd=*)
518 libdir="$ac_optarg" ;;
520 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
521 | --libexe | --libex | --libe)
522 ac_prev=libexecdir ;;
523 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
524 | --libexe=* | --libex=* | --libe=*)
525 libexecdir="$ac_optarg" ;;
527 -localstatedir | --localstatedir | --localstatedi | --localstated \
528 | --localstate | --localstat | --localsta | --localst \
529 | --locals | --local | --loca | --loc | --lo)
530 ac_prev=localstatedir ;;
531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
532 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
533 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
534 localstatedir="$ac_optarg" ;;
536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
539 mandir="$ac_optarg" ;;
542 # Obsolete; use --without-fp.
545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
555 | --oldin | --oldi | --old | --ol | --o)
556 ac_prev=oldincludedir ;;
557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
560 oldincludedir="$ac_optarg" ;;
562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
565 prefix="$ac_optarg" ;;
567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
568 | --program-pre | --program-pr | --program-p)
569 ac_prev=program_prefix ;;
570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
572 program_prefix="$ac_optarg" ;;
574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
575 | --program-suf | --program-su | --program-s)
576 ac_prev=program_suffix ;;
577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
579 program_suffix="$ac_optarg" ;;
581 -program-transform-name | --program-transform-name \
582 | --program-transform-nam | --program-transform-na \
583 | --program-transform-n | --program-transform- \
584 | --program-transform | --program-transfor \
585 | --program-transfo | --program-transf \
586 | --program-trans | --program-tran \
587 | --progr-tra | --program-tr | --program-t)
588 ac_prev=program_transform_name ;;
589 -program-transform-name=* | --program-transform-name=* \
590 | --program-transform-nam=* | --program-transform-na=* \
591 | --program-transform-n=* | --program-transform-=* \
592 | --program-transform=* | --program-transfor=* \
593 | --program-transfo=* | --program-transf=* \
594 | --program-trans=* | --program-tran=* \
595 | --progr-tra=* | --program-tr=* | --program-t=*)
596 program_transform_name="$ac_optarg" ;;
598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
599 | -silent | --silent | --silen | --sile | --sil)
602 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
604 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
606 sbindir="$ac_optarg" ;;
608 -sharedstatedir | --sharedstatedir | --sharedstatedi \
609 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
610 | --sharedst | --shareds | --shared | --share | --shar \
612 ac_prev=sharedstatedir ;;
613 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
614 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
615 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
617 sharedstatedir="$ac_optarg" ;;
619 -site | --site | --sit)
621 -site=* | --site=* | --sit=*)
624 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
626 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
627 srcdir="$ac_optarg" ;;
629 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
630 | --syscon | --sysco | --sysc | --sys | --sy)
631 ac_prev=sysconfdir ;;
632 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
633 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
634 sysconfdir="$ac_optarg" ;;
636 -target | --target | --targe | --targ | --tar | --ta | --t)
638 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
639 target="$ac_optarg" ;;
641 -v | -verbose | --verbose | --verbos | --verbo | --verb)
644 -version | --version | --versio | --versi | --vers)
645 echo "configure generated by autoconf version 2.13.1"
649 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
650 # Reject names that are not valid shell variable names.
651 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
652 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
654 ac_package=`echo $ac_package| sed 's/-/_/g'`
659 eval "with_${ac_package}='$ac_optarg'" ;;
661 -without-* | --without-*)
662 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
663 # Reject names that are not valid shell variable names.
664 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
665 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
667 ac_package=`echo $ac_package| sed 's/-/_/g'`
668 eval "with_${ac_package}=no" ;;
671 # Obsolete; use --with-x.
674 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
675 | --x-incl | --x-inc | --x-in | --x-i)
676 ac_prev=x_includes ;;
677 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
678 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
679 x_includes="$ac_optarg" ;;
681 -x-libraries | --x-libraries | --x-librarie | --x-librari \
682 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
683 ac_prev=x_libraries ;;
684 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
685 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
686 x_libraries="$ac_optarg" ;;
688 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
692 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
693 echo "configure: warning: $ac_option: invalid host type" 1>&2
695 if test "x$nonopt" != xNONE; then
696 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
704 if test -n "$ac_prev"; then
705 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
708 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
710 # File descriptor usage:
713 # 2 errors and warnings
714 # 3 some systems may open it to /dev/tty
715 # 4 used on the Kubota Titan
716 # 6 checking for... messages and results
717 # 5 compiler messages saved in config.log
718 if test "$silent" = yes; then
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
730 # Strip out --no-create and --no-recursion so they do not pile up.
731 # Also quote any args containing shell metacharacters.
736 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
737 | --no-cr | --no-c) ;;
738 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
739 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
740 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
741 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
742 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
747 # Only set these to C if already set. These must not be set unconditionally
748 # because not all systems understand e.g. LANG=C (notably SCO).
749 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
750 # Non-C LC_CTYPE values break the ctype check.
751 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
752 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
753 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
754 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
757 rm -rf conftest* confdefs.h
758 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
761 # A filename unique to this package, relative to the directory that
762 # configure is in, which we can look for to find out if srcdir is correct.
763 ac_unique_file=build/version.sh
765 # Find the source files, if location was not specified.
766 if test -z "$srcdir"; then
767 ac_srcdir_defaulted=yes
768 # Try the directory containing this script, then its parent.
770 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
771 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
773 if test ! -r $srcdir/$ac_unique_file; then
777 ac_srcdir_defaulted=no
779 if test ! -r $srcdir/$ac_unique_file; then
780 if test "$ac_srcdir_defaulted" = yes; then
781 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
783 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
786 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
788 # Prefer explicitly selected file to automatically selected ones.
789 if test -z "$CONFIG_SITE"; then
790 if test "x$prefix" != xNONE; then
791 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
793 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
796 for ac_site_file in $CONFIG_SITE; do
797 if test -r "$ac_site_file"; then
798 echo "loading site script $ac_site_file"
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
813 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
814 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
815 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
822 ac_n= ac_c='\c' ac_t=
826 # set unset (borrowed from autoconf 2.49c)
827 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
833 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
836 for ac_dir in build $srcdir/build; do
837 if test -f $ac_dir/install-sh; then
839 ac_install_sh="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh; then
843 ac_install_sh="$ac_aux_dir/install.sh -c"
845 elif test -f $ac_dir/shtool; then
847 ac_install_sh="$ac_aux_dir/shtool install -c"
851 if test -z "$ac_aux_dir"; then
852 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
856 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
858 eval `$ac_aux_dir/version.sh`
859 if test -z "$OL_STRING"; then
860 { echo "configure: error: could not determine version" 1>&2; exit 1; }
863 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
864 ac_cv_shtool="$ac_aux_dir/shtool"
866 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
869 SHTOOL="$ac_cv_shtool"
871 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
872 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
875 if test -d $ac_aux_dir/CVS; then
876 OPENLDAP_CVS="(from CVS sources) "
879 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
882 echo $ac_n "checking host system type""... $ac_c" 1>&6
883 echo "configure:884: checking host system type" >&5
884 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
886 # Make sure we can run config.sub.
887 if $ac_config_sub sun4 >/dev/null 2>&1; then :
888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
891 ac_cv_host_alias=$host
892 case "$ac_cv_host_alias" in
896 if ac_cv_host_alias=`$ac_config_guess`; then :
897 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 *) ac_cv_host_alias=$nonopt ;;
903 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
904 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
906 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo $ac_n "(cached) $ac_c" 1>&6
911 echo "$ac_t""$ac_cv_host" 1>&6
914 host_alias=$ac_cv_host_alias
915 host_cpu=$ac_cv_host_cpu
916 host_vendor=$ac_cv_host_vendor
917 host_os=$ac_cv_host_os
923 echo $ac_n "checking target system type""... $ac_c" 1>&6
924 echo "configure:925: checking target system type" >&5
925 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
927 # Make sure we can run config.sub.
928 if $ac_config_sub sun4 >/dev/null 2>&1; then :
929 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
932 ac_cv_target_alias=$target
933 case "$ac_cv_target_alias" in
937 ac_cv_target_alias=$host_alias ;;
939 *) ac_cv_target_alias=$nonopt ;;
943 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
944 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
945 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
946 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo $ac_n "(cached) $ac_c" 1>&6
951 echo "$ac_t""$ac_cv_target" 1>&6
954 target_alias=$ac_cv_target_alias
955 target_cpu=$ac_cv_target_cpu
956 target_vendor=$ac_cv_target_vendor
957 target_os=$ac_cv_target_os
963 echo $ac_n "checking build system type""... $ac_c" 1>&6
964 echo "configure:965: checking build system type" >&5
965 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
967 # Make sure we can run config.sub.
968 if $ac_config_sub sun4 >/dev/null 2>&1; then :
969 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
972 ac_cv_build_alias=$build
973 case "$ac_cv_build_alias" in
977 ac_cv_build_alias=$host_alias ;;
979 *) ac_cv_build_alias=$nonopt ;;
983 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
984 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
985 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
986 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo $ac_n "(cached) $ac_c" 1>&6
991 echo "$ac_t""$ac_cv_build" 1>&6
994 build_alias=$ac_cv_build_alias
995 build_cpu=$ac_cv_build_cpu
996 build_vendor=$ac_cv_build_vendor
997 build_os=$ac_cv_build_os
1003 # Do some error checking and defaulting for the host and target type.
1005 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1008 # 1. You are not allowed to specify --host, --target, and nonopt at the
1010 # 2. Host defaults to nonopt.
1011 # 3. If nonopt is not specified, then host defaults to the current host,
1012 # as determined by config.guess.
1013 # 4. Target and build default to nonopt.
1014 # 5. If nonopt is not specified, then target and build default to host.
1016 # The aliases save the names the user supplied, while $host etc.
1017 # will get canonicalized.
1018 case $host---$target---$nonopt in
1019 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1020 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1023 test "$host_alias" != "$target_alias" &&
1024 test "$program_prefix$program_suffix$program_transform_name" = \
1026 program_prefix=${target_alias}-
1029 # Find a good install program. We prefer a C program (faster),
1030 # so one script is as good as another. But avoid the broken or
1031 # incompatible versions:
1032 # SysV /etc/install, /usr/sbin/install
1033 # SunOS /usr/etc/install
1034 # IRIX /sbin/install
1036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1039 # ./install, which can be erroneously created by make from ./install.sh.
1040 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1041 echo "configure:1042: checking for a BSD compatible install" >&5
1042 if test -z "$INSTALL"; then
1043 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1047 for ac_dir in $PATH; do
1048 # Account for people who put trailing slashes in PATH elements.
1050 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1052 # OSF1 and SCO ODT 3.0 have their own names for install.
1053 # Don't use installbsd from OSF since it installs stuff as root
1055 for ac_prog in ginstall scoinst install; do
1056 if test -f $ac_dir/$ac_prog; then
1057 if test $ac_prog = install &&
1058 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1059 # AIX install. It has an incompatible calling convention.
1061 elif test $ac_prog = install &&
1062 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # program-specific install script used by HP pwplus--don't use.
1066 ac_cv_path_install="$ac_dir/$ac_prog -c"
1077 if test "${ac_cv_path_install+set}" = set; then
1078 INSTALL="$ac_cv_path_install"
1080 # As a last resort, use the slow shell script. We don't cache a
1081 # path for INSTALL within a source directory, because that will
1082 # break other packages using the cache if that directory is
1083 # removed, or if the path is relative.
1084 INSTALL="$ac_install_sh"
1087 echo "$ac_t""$INSTALL" 1>&6
1089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1090 # It thinks the first close brace ends the variable substitution.
1091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1097 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether build environment is sane" >&5
1101 echo timestamp > conftestfile
1102 # Do `set' in a subshell so we don't clobber the current shell's
1103 # arguments. Must try -L first in case configure is actually a
1104 # symlink; some systems play weird games with the mod time of symlinks
1105 # (eg FreeBSD returns the mod time of the symlink's containing
1108 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1109 if test "$*" = "X"; then
1111 set X `ls -t $srcdir/configure conftestfile`
1113 if test "$*" != "X $srcdir/configure conftestfile" \
1114 && test "$*" != "X conftestfile $srcdir/configure"; then
1116 # If neither matched, then we have a broken ls. This can happen
1117 # if, for instance, CONFIG_SHELL is bash and it inherits a
1118 # broken ls alias from the environment. This has actually
1119 # happened. Such a system could not be considered "sane".
1120 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1121 alias in your environment" 1>&2; exit 1; }
1124 test "$2" = conftestfile
1130 { echo "configure: error: newly created file is older than distributed files!
1131 Check your system clock" 1>&2; exit 1; }
1134 echo "$ac_t""yes" 1>&6
1135 if test "$program_transform_name" = s,x,x,; then
1136 program_transform_name=
1138 # Double any \ or $. echo might interpret backslashes.
1139 cat <<\EOF_SED > conftestsed
1140 s,\\,\\\\,g; s,\$,$$,g
1142 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1145 test "$program_prefix" != NONE &&
1146 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1147 # Use a double $ so make ignores it.
1148 test "$program_suffix" != NONE &&
1149 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1151 # sed with no file args requires a program.
1152 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1154 for ac_prog in mawk gawk nawk awk
1156 # Extract the first word of "$ac_prog", so it can be a program name with args.
1157 set dummy $ac_prog; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$AWK"; then
1164 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1168 for ac_dir in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_AWK="$ac_prog"
1178 AWK="$ac_cv_prog_AWK"
1179 if test -n "$AWK"; then
1180 echo "$ac_t""$AWK" 1>&6
1182 echo "$ac_t""no" 1>&6
1185 test -n "$AWK" && break
1188 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether ${MAKE-make} sets \${MAKE}" >&5
1190 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1191 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftestmake <<\EOF
1196 @echo 'ac_maketemp="${MAKE}"'
1198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1199 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1200 if test -n "$ac_maketemp"; then
1201 eval ac_cv_prog_make_${ac_make}_set=yes
1203 eval ac_cv_prog_make_${ac_make}_set=no
1207 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1208 echo "$ac_t""yes" 1>&6
1211 echo "$ac_t""no" 1>&6
1212 SET_MAKE="MAKE=${MAKE-make}"
1221 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1222 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1227 missing_dir=`cd $ac_aux_dir && pwd`
1228 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1229 echo "configure:1230: checking for working aclocal" >&5
1230 # Run test in a subshell; some versions of sh will print an error if
1231 # an executable is not found, even if stderr is redirected.
1232 # Redirect stdin to placate older versions of autoconf. Sigh.
1233 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1235 echo "$ac_t""found" 1>&6
1237 ACLOCAL="$missing_dir/missing aclocal"
1238 echo "$ac_t""missing" 1>&6
1241 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1242 echo "configure:1243: checking for working autoconf" >&5
1243 # Run test in a subshell; some versions of sh will print an error if
1244 # an executable is not found, even if stderr is redirected.
1245 # Redirect stdin to placate older versions of autoconf. Sigh.
1246 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1248 echo "$ac_t""found" 1>&6
1250 AUTOCONF="$missing_dir/missing autoconf"
1251 echo "$ac_t""missing" 1>&6
1254 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1255 echo "configure:1256: checking for working automake" >&5
1256 # Run test in a subshell; some versions of sh will print an error if
1257 # an executable is not found, even if stderr is redirected.
1258 # Redirect stdin to placate older versions of autoconf. Sigh.
1259 if (automake --version) < /dev/null > /dev/null 2>&1; then
1261 echo "$ac_t""found" 1>&6
1263 AUTOMAKE="$missing_dir/missing automake"
1264 echo "$ac_t""missing" 1>&6
1267 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1268 echo "configure:1269: checking for working autoheader" >&5
1269 # Run test in a subshell; some versions of sh will print an error if
1270 # an executable is not found, even if stderr is redirected.
1271 # Redirect stdin to placate older versions of autoconf. Sigh.
1272 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1273 AUTOHEADER=autoheader
1274 echo "$ac_t""found" 1>&6
1276 AUTOHEADER="$missing_dir/missing autoheader"
1277 echo "$ac_t""missing" 1>&6
1280 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1281 echo "configure:1282: checking for working makeinfo" >&5
1282 # Run test in a subshell; some versions of sh will print an error if
1283 # an executable is not found, even if stderr is redirected.
1284 # Redirect stdin to placate older versions of autoconf. Sigh.
1285 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1287 echo "$ac_t""found" 1>&6
1289 MAKEINFO="$missing_dir/missing makeinfo"
1290 echo "$ac_t""missing" 1>&6
1293 install_sh="$missing_dir/install-sh"
1294 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1296 for ac_prog in gnutar gtar tar
1298 # Extract the first word of "$ac_prog", so it can be a program name with args.
1299 set dummy $ac_prog; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$AMTAR"; then
1306 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1310 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_AMTAR="$ac_prog"
1320 AMTAR="$ac_cv_prog_AMTAR"
1321 if test -n "$AMTAR"; then
1322 echo "$ac_t""$AMTAR" 1>&6
1324 echo "$ac_t""no" 1>&6
1327 test -n "$AMTAR" && break
1332 if test -n "$AMTAR"; then
1333 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1338 cat >> confdefs.h <<EOF
1339 #define OPENLDAP_PACKAGE "$PACKAGE"
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_VERSION "$VERSION"
1347 cat >> confdefs.h <<EOF
1348 #define LDAP_VENDOR_VERSION $OL_API_INC
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1364 OPENLDAP_LIBVERSION=$OL_API_LIB
1366 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1370 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1371 echo "configure:1372: checking configure arguments" >&5
1376 ldap_subdir="/openldap"
1378 # Check whether --with-subdir or --without-subdir was given.
1379 if test "${with_subdir+set}" = set; then
1380 withval="$with_subdir"
1387 ldap_subdir="$withval"
1390 ldap_subdir="/$withval"
1397 # OpenLDAP --enable-debug
1398 # Check whether --enable-debug or --disable-debug was given.
1399 if test "${enable_debug+set}" = set; then
1400 enableval="$enable_debug"
1403 for ol_val in auto yes no ; do
1404 if test "$enableval" = "$ol_val" ; then
1408 if test "$ol_arg" = "invalid" ; then
1409 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1411 ol_enable_debug="$ol_arg"
1414 ol_enable_debug="yes"
1416 # end --enable-debug
1417 # OpenLDAP --enable-dynamic
1418 # Check whether --enable-dynamic or --disable-dynamic was given.
1419 if test "${enable_dynamic+set}" = set; then
1420 enableval="$enable_dynamic"
1423 for ol_val in auto yes no ; do
1424 if test "$enableval" = "$ol_val" ; then
1428 if test "$ol_arg" = "invalid" ; then
1429 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1431 ol_enable_dynamic="$ol_arg"
1434 ol_enable_dynamic="no"
1436 # end --enable-dynamic
1437 # OpenLDAP --enable-syslog
1438 # Check whether --enable-syslog or --disable-syslog was given.
1439 if test "${enable_syslog+set}" = set; then
1440 enableval="$enable_syslog"
1443 for ol_val in auto yes no ; do
1444 if test "$enableval" = "$ol_val" ; then
1448 if test "$ol_arg" = "invalid" ; then
1449 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1451 ol_enable_syslog="$ol_arg"
1454 ol_enable_syslog="auto"
1456 # end --enable-syslog
1457 # OpenLDAP --enable-proctitle
1458 # Check whether --enable-proctitle or --disable-proctitle was given.
1459 if test "${enable_proctitle+set}" = set; then
1460 enableval="$enable_proctitle"
1463 for ol_val in auto yes no ; do
1464 if test "$enableval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1471 ol_enable_proctitle="$ol_arg"
1474 ol_enable_proctitle="yes"
1476 # end --enable-proctitle
1477 ol_enable_referrals=${ol_enable_referrals-no}
1478 ol_enable_kbind=${ol_enable_kbind-no}
1479 # OpenLDAP --enable-ipv6
1480 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1481 if test "${enable_ipv6+set}" = set; then
1482 enableval="$enable_ipv6"
1485 for ol_val in auto yes no ; do
1486 if test "$enableval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1493 ol_enable_ipv6="$ol_arg"
1496 ol_enable_ipv6="auto"
1499 # OpenLDAP --enable-local
1500 # Check whether --enable-local or --disable-local was given.
1501 if test "${enable_local+set}" = set; then
1502 enableval="$enable_local"
1505 for ol_val in auto yes no ; do
1506 if test "$enableval" = "$ol_val" ; then
1510 if test "$ol_arg" = "invalid" ; then
1511 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1513 ol_enable_local="$ol_arg"
1516 ol_enable_local="auto"
1518 # end --enable-local
1519 # OpenLDAP --enable-x_compile
1520 # Check whether --enable-x_compile or --disable-x_compile was given.
1521 if test "${enable_x_compile+set}" = set; then
1522 enableval="$enable_x_compile"
1525 for ol_val in yes no ; do
1526 if test "$enableval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1533 ol_enable_x_compile="$ol_arg"
1536 ol_enable_x_compile="no"
1538 # end --enable-x_compile
1541 # OpenLDAP --with-cyrus_sasl
1542 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1543 if test "${with_cyrus_sasl+set}" = set; then
1544 withval="$with_cyrus_sasl"
1547 for ol_val in auto yes no ; do
1548 if test "$withval" = "$ol_val" ; then
1552 if test "$ol_arg" = "invalid" ; then
1553 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1555 ol_with_cyrus_sasl="$ol_arg"
1558 ol_with_cyrus_sasl="auto"
1560 # end --with-cyrus_sasl
1562 # OpenLDAP --with-fetch
1563 # Check whether --with-fetch or --without-fetch was given.
1564 if test "${with_fetch+set}" = set; then
1565 withval="$with_fetch"
1568 for ol_val in auto yes no ; do
1569 if test "$withval" = "$ol_val" ; then
1573 if test "$ol_arg" = "invalid" ; then
1574 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1576 ol_with_fetch="$ol_arg"
1579 ol_with_fetch="auto"
1583 # OpenLDAP --with-kerberos
1584 # Check whether --with-kerberos or --without-kerberos was given.
1585 if test "${with_kerberos+set}" = set; then
1586 withval="$with_kerberos"
1589 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1590 if test "$withval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1597 ol_with_kerberos="$ol_arg"
1600 ol_with_kerberos="auto"
1602 # end --with-kerberos
1604 # OpenLDAP --with-readline
1605 # Check whether --with-readline or --without-readline was given.
1606 if test "${with_readline+set}" = set; then
1607 withval="$with_readline"
1610 for ol_val in auto yes no ; do
1611 if test "$withval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1618 ol_with_readline="$ol_arg"
1621 ol_with_readline="auto"
1623 # end --with-readline
1625 # OpenLDAP --with-threads
1626 # Check whether --with-threads or --without-threads was given.
1627 if test "${with_threads+set}" = set; then
1628 withval="$with_threads"
1631 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1632 if test "$withval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1639 ol_with_threads="$ol_arg"
1642 ol_with_threads="auto"
1644 # end --with-threads
1646 # OpenLDAP --with-tls
1647 # Check whether --with-tls or --without-tls was given.
1648 if test "${with_tls+set}" = set; then
1652 for ol_val in auto ssleay openssl yes no ; do
1653 if test "$withval" = "$ol_val" ; then
1657 if test "$ol_arg" = "invalid" ; then
1658 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1660 ol_with_tls="$ol_arg"
1667 # OpenLDAP --with-yielding_select
1668 # Check whether --with-yielding_select or --without-yielding_select was given.
1669 if test "${with_yielding_select+set}" = set; then
1670 withval="$with_yielding_select"
1673 for ol_val in auto yes no manual ; do
1674 if test "$withval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1681 ol_with_yielding_select="$ol_arg"
1684 ol_with_yielding_select="auto"
1686 # end --with-yielding_select
1690 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1691 if test "${with_xxslapdoptions+set}" = set; then
1692 withval="$with_xxslapdoptions"
1696 # OpenLDAP --enable-slapd
1697 # Check whether --enable-slapd or --disable-slapd was given.
1698 if test "${enable_slapd+set}" = set; then
1699 enableval="$enable_slapd"
1702 for ol_val in auto yes no ; do
1703 if test "$enableval" = "$ol_val" ; then
1707 if test "$ol_arg" = "invalid" ; then
1708 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1710 ol_enable_slapd="$ol_arg"
1713 ol_enable_slapd="yes"
1715 # end --enable-slapd
1716 # OpenLDAP --enable-aci
1717 # Check whether --enable-aci or --disable-aci was given.
1718 if test "${enable_aci+set}" = set; then
1719 enableval="$enable_aci"
1722 for ol_val in auto yes no ; do
1723 if test "$enableval" = "$ol_val" ; then
1727 if test "$ol_arg" = "invalid" ; then
1728 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1730 ol_enable_aci="$ol_arg"
1736 # OpenLDAP --enable-cleartext
1737 # Check whether --enable-cleartext or --disable-cleartext was given.
1738 if test "${enable_cleartext+set}" = set; then
1739 enableval="$enable_cleartext"
1742 for ol_val in auto yes no ; do
1743 if test "$enableval" = "$ol_val" ; then
1747 if test "$ol_arg" = "invalid" ; then
1748 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1750 ol_enable_cleartext="$ol_arg"
1753 ol_enable_cleartext="yes"
1755 # end --enable-cleartext
1756 # OpenLDAP --enable-crypt
1757 # Check whether --enable-crypt or --disable-crypt was given.
1758 if test "${enable_crypt+set}" = set; then
1759 enableval="$enable_crypt"
1762 for ol_val in auto yes no ; do
1763 if test "$enableval" = "$ol_val" ; then
1767 if test "$ol_arg" = "invalid" ; then
1768 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1770 ol_enable_crypt="$ol_arg"
1773 ol_enable_crypt="no"
1775 # end --enable-crypt
1776 # OpenLDAP --enable-kpasswd
1777 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1778 if test "${enable_kpasswd+set}" = set; then
1779 enableval="$enable_kpasswd"
1782 for ol_val in auto yes no ; do
1783 if test "$enableval" = "$ol_val" ; then
1787 if test "$ol_arg" = "invalid" ; then
1788 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1790 ol_enable_kpasswd="$ol_arg"
1793 ol_enable_kpasswd="no"
1795 # end --enable-kpasswd
1796 # OpenLDAP --enable-lmpasswd
1797 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1798 if test "${enable_lmpasswd+set}" = set; then
1799 enableval="$enable_lmpasswd"
1802 for ol_val in auto yes no ; do
1803 if test "$enableval" = "$ol_val" ; then
1807 if test "$ol_arg" = "invalid" ; then
1808 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1810 ol_enable_lmpasswd="$ol_arg"
1813 ol_enable_lmpasswd="no"
1815 # end --enable-lmpasswd
1816 # OpenLDAP --enable-spasswd
1817 # Check whether --enable-spasswd or --disable-spasswd was given.
1818 if test "${enable_spasswd+set}" = set; then
1819 enableval="$enable_spasswd"
1822 for ol_val in auto yes no ; do
1823 if test "$enableval" = "$ol_val" ; then
1827 if test "$ol_arg" = "invalid" ; then
1828 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1830 ol_enable_spasswd="$ol_arg"
1833 ol_enable_spasswd="no"
1835 # end --enable-spasswd
1836 # OpenLDAP --enable-modules
1837 # Check whether --enable-modules or --disable-modules was given.
1838 if test "${enable_modules+set}" = set; then
1839 enableval="$enable_modules"
1842 for ol_val in auto yes no ; do
1843 if test "$enableval" = "$ol_val" ; then
1847 if test "$ol_arg" = "invalid" ; then
1848 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1850 ol_enable_modules="$ol_arg"
1853 ol_enable_modules="no"
1855 # end --enable-modules
1856 ol_enable_multimaster=${ol_enable_multimaster-no}
1857 # OpenLDAP --enable-phonetic
1858 # Check whether --enable-phonetic or --disable-phonetic was given.
1859 if test "${enable_phonetic+set}" = set; then
1860 enableval="$enable_phonetic"
1863 for ol_val in auto yes no ; do
1864 if test "$enableval" = "$ol_val" ; then
1868 if test "$ol_arg" = "invalid" ; then
1869 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1871 ol_enable_phonetic="$ol_arg"
1874 ol_enable_phonetic="no"
1876 # end --enable-phonetic
1877 # OpenLDAP --enable-rewrite
1878 # Check whether --enable-rewrite or --disable-rewrite was given.
1879 if test "${enable_rewrite+set}" = set; then
1880 enableval="$enable_rewrite"
1883 for ol_val in auto yes no ; do
1884 if test "$enableval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1891 ol_enable_rewrite="$ol_arg"
1894 ol_enable_rewrite="no"
1896 # end --enable-rewrite
1897 # OpenLDAP --enable-rlookups
1898 # Check whether --enable-rlookups or --disable-rlookups was given.
1899 if test "${enable_rlookups+set}" = set; then
1900 enableval="$enable_rlookups"
1903 for ol_val in auto yes no ; do
1904 if test "$enableval" = "$ol_val" ; then
1908 if test "$ol_arg" = "invalid" ; then
1909 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1911 ol_enable_rlookups="$ol_arg"
1914 ol_enable_rlookups="no"
1916 # end --enable-rlookups
1917 # OpenLDAP --enable-slp
1918 # Check whether --enable-slp or --disable-slp was given.
1919 if test "${enable_slp+set}" = set; then
1920 enableval="$enable_slp"
1923 for ol_val in auto yes no ; do
1924 if test "$enableval" = "$ol_val" ; then
1928 if test "$ol_arg" = "invalid" ; then
1929 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1931 ol_enable_slp="$ol_arg"
1937 # OpenLDAP --enable-wrappers
1938 # Check whether --enable-wrappers or --disable-wrappers was given.
1939 if test "${enable_wrappers+set}" = set; then
1940 enableval="$enable_wrappers"
1943 for ol_val in auto yes no ; do
1944 if test "$enableval" = "$ol_val" ; then
1948 if test "$ol_arg" = "invalid" ; then
1949 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1951 ol_enable_wrappers="$ol_arg"
1954 ol_enable_wrappers="no"
1956 # end --enable-wrappers
1958 # OpenLDAP --enable-slapi
1959 # Check whether --enable-slapi or --disable-slapi was given.
1960 if test "${enable_slapi+set}" = set; then
1961 enableval="$enable_slapi"
1964 for ol_val in auto yes no ; do
1965 if test "$enableval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1972 ol_enable_slapi="$ol_arg"
1975 ol_enable_slapi="no"
1977 # end --enable-slapi
1979 # OpenLDAP --enable-bdb
1980 # Check whether --enable-bdb or --disable-bdb was given.
1981 if test "${enable_bdb+set}" = set; then
1982 enableval="$enable_bdb"
1985 for ol_val in auto yes no ; do
1986 if test "$enableval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1993 ol_enable_bdb="$ol_arg"
1999 # OpenLDAP --with-bdb_module
2000 # Check whether --with-bdb_module or --without-bdb_module was given.
2001 if test "${with_bdb_module+set}" = set; then
2002 withval="$with_bdb_module"
2005 for ol_val in static dynamic ; do
2006 if test "$withval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2013 ol_with_bdb_module="$ol_arg"
2016 ol_with_bdb_module="static"
2018 # end --with-bdb_module
2020 # OpenLDAP --enable-dnssrv
2021 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2022 if test "${enable_dnssrv+set}" = set; then
2023 enableval="$enable_dnssrv"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2034 ol_enable_dnssrv="$ol_arg"
2037 ol_enable_dnssrv="no"
2039 # end --enable-dnssrv
2040 # OpenLDAP --with-dnssrv_module
2041 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2042 if test "${with_dnssrv_module+set}" = set; then
2043 withval="$with_dnssrv_module"
2046 for ol_val in static dynamic ; do
2047 if test "$withval" = "$ol_val" ; then
2051 if test "$ol_arg" = "invalid" ; then
2052 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2054 ol_with_dnssrv_module="$ol_arg"
2057 ol_with_dnssrv_module="static"
2059 # end --with-dnssrv_module
2061 # OpenLDAP --enable-ldap
2062 # Check whether --enable-ldap or --disable-ldap was given.
2063 if test "${enable_ldap+set}" = set; then
2064 enableval="$enable_ldap"
2067 for ol_val in auto yes no ; do
2068 if test "$enableval" = "$ol_val" ; then
2072 if test "$ol_arg" = "invalid" ; then
2073 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2075 ol_enable_ldap="$ol_arg"
2081 # OpenLDAP --with-ldap_module
2082 # Check whether --with-ldap_module or --without-ldap_module was given.
2083 if test "${with_ldap_module+set}" = set; then
2084 withval="$with_ldap_module"
2087 for ol_val in static dynamic ; do
2088 if test "$withval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2095 ol_with_ldap_module="$ol_arg"
2098 ol_with_ldap_module="static"
2100 # end --with-ldap_module
2102 # OpenLDAP --enable-ldbm
2103 # Check whether --enable-ldbm or --disable-ldbm was given.
2104 if test "${enable_ldbm+set}" = set; then
2105 enableval="$enable_ldbm"
2108 for ol_val in auto yes no ; do
2109 if test "$enableval" = "$ol_val" ; then
2113 if test "$ol_arg" = "invalid" ; then
2114 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2116 ol_enable_ldbm="$ol_arg"
2122 # OpenLDAP --with-ldbm_api
2123 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2124 if test "${with_ldbm_api+set}" = set; then
2125 withval="$with_ldbm_api"
2128 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2129 if test "$withval" = "$ol_val" ; then
2133 if test "$ol_arg" = "invalid" ; then
2134 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2136 ol_with_ldbm_api="$ol_arg"
2139 ol_with_ldbm_api="auto"
2141 # end --with-ldbm_api
2143 # OpenLDAP --with-ldbm_module
2144 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2145 if test "${with_ldbm_module+set}" = set; then
2146 withval="$with_ldbm_module"
2149 for ol_val in static dynamic ; do
2150 if test "$withval" = "$ol_val" ; then
2154 if test "$ol_arg" = "invalid" ; then
2155 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2157 ol_with_ldbm_module="$ol_arg"
2160 ol_with_ldbm_module="static"
2162 # end --with-ldbm_module
2164 # OpenLDAP --with-ldbm_type
2165 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2166 if test "${with_ldbm_type+set}" = set; then
2167 withval="$with_ldbm_type"
2170 for ol_val in auto btree hash ; do
2171 if test "$withval" = "$ol_val" ; then
2175 if test "$ol_arg" = "invalid" ; then
2176 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2178 ol_with_ldbm_type="$ol_arg"
2181 ol_with_ldbm_type="auto"
2183 # end --with-ldbm_type
2185 # OpenLDAP --enable-meta
2186 # Check whether --enable-meta or --disable-meta was given.
2187 if test "${enable_meta+set}" = set; then
2188 enableval="$enable_meta"
2191 for ol_val in auto yes no ; do
2192 if test "$enableval" = "$ol_val" ; then
2196 if test "$ol_arg" = "invalid" ; then
2197 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2199 ol_enable_meta="$ol_arg"
2205 # OpenLDAP --with-meta_module
2206 # Check whether --with-meta_module or --without-meta_module was given.
2207 if test "${with_meta_module+set}" = set; then
2208 withval="$with_meta_module"
2211 for ol_val in static dynamic ; do
2212 if test "$withval" = "$ol_val" ; then
2216 if test "$ol_arg" = "invalid" ; then
2217 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2219 ol_with_meta_module="$ol_arg"
2222 ol_with_meta_module="static"
2224 # end --with-meta_module
2226 # OpenLDAP --enable-monitor
2227 # Check whether --enable-monitor or --disable-monitor was given.
2228 if test "${enable_monitor+set}" = set; then
2229 enableval="$enable_monitor"
2232 for ol_val in auto yes no ; do
2233 if test "$enableval" = "$ol_val" ; then
2237 if test "$ol_arg" = "invalid" ; then
2238 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2240 ol_enable_monitor="$ol_arg"
2243 ol_enable_monitor="no"
2245 # end --enable-monitor
2246 # OpenLDAP --with-monitor_module
2247 # Check whether --with-monitor_module or --without-monitor_module was given.
2248 if test "${with_monitor_module+set}" = set; then
2249 withval="$with_monitor_module"
2252 for ol_val in static dynamic ; do
2253 if test "$withval" = "$ol_val" ; then
2257 if test "$ol_arg" = "invalid" ; then
2258 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2260 ol_with_monitor_module="$ol_arg"
2263 ol_with_monitor_module="static"
2265 # end --with-monitor_module
2267 # OpenLDAP --enable-null
2268 # Check whether --enable-null or --disable-null was given.
2269 if test "${enable_null+set}" = set; then
2270 enableval="$enable_null"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2281 ol_enable_null="$ol_arg"
2287 # OpenLDAP --with-null_module
2288 # Check whether --with-null_module or --without-null_module was given.
2289 if test "${with_null_module+set}" = set; then
2290 withval="$with_null_module"
2293 for ol_val in static dynamic ; do
2294 if test "$withval" = "$ol_val" ; then
2298 if test "$ol_arg" = "invalid" ; then
2299 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2301 ol_with_null_module="$ol_arg"
2304 ol_with_null_module="static"
2306 # end --with-null_module
2308 # OpenLDAP --enable-passwd
2309 # Check whether --enable-passwd or --disable-passwd was given.
2310 if test "${enable_passwd+set}" = set; then
2311 enableval="$enable_passwd"
2314 for ol_val in auto yes no ; do
2315 if test "$enableval" = "$ol_val" ; then
2319 if test "$ol_arg" = "invalid" ; then
2320 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2322 ol_enable_passwd="$ol_arg"
2325 ol_enable_passwd="no"
2327 # end --enable-passwd
2328 # OpenLDAP --with-passwd_module
2329 # Check whether --with-passwd_module or --without-passwd_module was given.
2330 if test "${with_passwd_module+set}" = set; then
2331 withval="$with_passwd_module"
2334 for ol_val in static dynamic ; do
2335 if test "$withval" = "$ol_val" ; then
2339 if test "$ol_arg" = "invalid" ; then
2340 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2342 ol_with_passwd_module="$ol_arg"
2345 ol_with_passwd_module="static"
2347 # end --with-passwd_module
2349 # OpenLDAP --enable-perl
2350 # Check whether --enable-perl or --disable-perl was given.
2351 if test "${enable_perl+set}" = set; then
2352 enableval="$enable_perl"
2355 for ol_val in auto yes no ; do
2356 if test "$enableval" = "$ol_val" ; then
2360 if test "$ol_arg" = "invalid" ; then
2361 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2363 ol_enable_perl="$ol_arg"
2369 # OpenLDAP --with-perl_module
2370 # Check whether --with-perl_module or --without-perl_module was given.
2371 if test "${with_perl_module+set}" = set; then
2372 withval="$with_perl_module"
2375 for ol_val in static dynamic ; do
2376 if test "$withval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2383 ol_with_perl_module="$ol_arg"
2386 ol_with_perl_module="static"
2388 # end --with-perl_module
2390 # OpenLDAP --enable-shell
2391 # Check whether --enable-shell or --disable-shell was given.
2392 if test "${enable_shell+set}" = set; then
2393 enableval="$enable_shell"
2396 for ol_val in auto yes no ; do
2397 if test "$enableval" = "$ol_val" ; then
2401 if test "$ol_arg" = "invalid" ; then
2402 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2404 ol_enable_shell="$ol_arg"
2407 ol_enable_shell="no"
2409 # end --enable-shell
2410 # OpenLDAP --with-shell_module
2411 # Check whether --with-shell_module or --without-shell_module was given.
2412 if test "${with_shell_module+set}" = set; then
2413 withval="$with_shell_module"
2416 for ol_val in static dynamic ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2424 ol_with_shell_module="$ol_arg"
2427 ol_with_shell_module="static"
2429 # end --with-shell_module
2431 # OpenLDAP --enable-sql
2432 # Check whether --enable-sql or --disable-sql was given.
2433 if test "${enable_sql+set}" = set; then
2434 enableval="$enable_sql"
2437 for ol_val in auto yes no ; do
2438 if test "$enableval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2445 ol_enable_sql="$ol_arg"
2451 # OpenLDAP --with-sql_module
2452 # Check whether --with-sql_module or --without-sql_module was given.
2453 if test "${with_sql_module+set}" = set; then
2454 withval="$with_sql_module"
2457 for ol_val in static dynamic ; do
2458 if test "$withval" = "$ol_val" ; then
2462 if test "$ol_arg" = "invalid" ; then
2463 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2465 ol_with_sql_module="$ol_arg"
2468 ol_with_sql_module="static"
2470 # end --with-sql_module
2472 # OpenLDAP --enable-tcl
2473 # Check whether --enable-tcl or --disable-tcl was given.
2474 if test "${enable_tcl+set}" = set; then
2475 enableval="$enable_tcl"
2478 for ol_val in auto yes no ; do
2479 if test "$enableval" = "$ol_val" ; then
2483 if test "$ol_arg" = "invalid" ; then
2484 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2486 ol_enable_tcl="$ol_arg"
2492 # OpenLDAP --with-tcl_module
2493 # Check whether --with-tcl_module or --without-tcl_module was given.
2494 if test "${with_tcl_module+set}" = set; then
2495 withval="$with_tcl_module"
2498 for ol_val in static dynamic ; do
2499 if test "$withval" = "$ol_val" ; then
2503 if test "$ol_arg" = "invalid" ; then
2504 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2506 ol_with_tcl_module="$ol_arg"
2509 ol_with_tcl_module="static"
2511 # end --with-tcl_module
2514 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2515 if test "${with_xxslurpdoptions+set}" = set; then
2516 withval="$with_xxslurpdoptions"
2520 # OpenLDAP --enable-slurpd
2521 # Check whether --enable-slurpd or --disable-slurpd was given.
2522 if test "${enable_slurpd+set}" = set; then
2523 enableval="$enable_slurpd"
2526 for ol_val in auto yes no ; do
2527 if test "$enableval" = "$ol_val" ; then
2531 if test "$ol_arg" = "invalid" ; then
2532 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2534 ol_enable_slurpd="$ol_arg"
2537 ol_enable_slurpd="auto"
2539 # end --enable-slurpd
2541 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2542 if test "${with_xxliboptions+set}" = set; then
2543 withval="$with_xxliboptions"
2547 # Check whether --enable-static or --disable-static was given.
2548 if test "${enable_static+set}" = set; then
2549 enableval="$enable_static"
2550 p=${PACKAGE-default}
2552 yes) enable_static=yes ;;
2553 no) enable_static=no ;;
2556 # Look at the argument we got. We use all the common list separators.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2558 for pkg in $enableval; do
2559 if test "X$pkg" = "X$p"; then
2570 # Check whether --enable-shared or --disable-shared was given.
2571 if test "${enable_shared+set}" = set; then
2572 enableval="$enable_shared"
2573 p=${PACKAGE-default}
2575 yes) enable_shared=yes ;;
2576 no) enable_shared=no ;;
2579 # Look at the argument we got. We use all the common list separators.
2580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2581 for pkg in $enableval; do
2582 if test "X$pkg" = "X$p"; then
2596 if test $ol_enable_slapd = no ; then
2597 if test $ol_enable_slapi = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2600 if test $ol_enable_bdb = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2603 if test $ol_enable_dnssrv = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2606 if test $ol_enable_ldap = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2609 if test $ol_enable_ldbm = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2612 if test $ol_enable_meta = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2615 if test $ol_enable_monitor = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2618 if test $ol_enable_null = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2621 if test $ol_enable_passwd = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2624 if test $ol_enable_perl = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2627 if test $ol_enable_shell = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2630 if test $ol_enable_tcl = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2633 if test $ol_enable_sql = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2636 if test $ol_enable_modules = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2639 if test $ol_enable_multimaster = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2642 if test $ol_enable_wrappers = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2645 if test $ol_enable_phonetic = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2648 if test $ol_enable_rlookups = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2651 if test $ol_enable_aci = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2654 if test $ol_with_ldbm_api != auto ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2657 if test $ol_with_ldbm_type != auto ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2660 if test $ol_with_bdb_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2663 if test $ol_with_dnssrv_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2666 if test $ol_with_ldap_module != static ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2669 if test $ol_with_ldbm_module != static ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2672 if test $ol_with_meta_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2675 if test $ol_with_monitor_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2678 if test $ol_with_null_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2681 if test $ol_with_passwd_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2684 if test $ol_with_perl_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2687 if test $ol_with_shell_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2690 if test $ol_with_tcl_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2693 if test $ol_with_sql_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2696 if test $ol_enable_slurpd = yes ; then
2697 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2699 if test $ol_enable_rewrite = yes ; then
2700 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2703 # force settings to no
2710 ol_enable_monitor=no
2718 ol_enable_modules=no
2719 ol_enable_multimaster=no
2720 ol_enable_phonetic=no
2721 ol_enable_rlookups=no
2723 ol_enable_wrappers=no
2724 ol_enable_dynamic=no
2727 ol_with_ldbm_type=no
2729 ol_with_bdb_module=static
2730 ol_with_dnssrv_module=static
2731 ol_with_ldap_module=static
2732 ol_with_ldbm_module=static
2733 ol_with_meta_module=static
2734 ol_with_monitor_module=static
2735 ol_with_null_module=static
2736 ol_with_passwd_module=static
2737 ol_with_perl_module=static
2738 ol_with_shell_module=static
2739 ol_with_tcl_module=static
2740 ol_with_sql_module=static
2744 ol_enable_rewrite=no
2746 elif test $ol_enable_ldbm = no ; then
2748 if test $ol_with_ldbm_api != auto ; then
2749 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2752 if test $ol_with_ldbm_type != auto ; then
2753 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2756 if test $ol_with_ldbm_module != static ; then
2757 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2760 if test $ol_enable_modules != yes -a \
2761 $ol_enable_bdb = no -a \
2762 $ol_enable_dnssrv = no -a \
2763 $ol_enable_ldap = no -a \
2764 $ol_enable_meta = no -a \
2765 $ol_enable_monitor = no -a \
2766 $ol_enable_null = no -a \
2767 $ol_enable_passwd = no -a \
2768 $ol_enable_perl = no -a \
2769 $ol_enable_shell = no -a \
2770 $ol_enable_sql = no -a \
2771 $ol_enable_tcl = no ; then
2773 if test $ol_enable_slapd = yes ; then
2774 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2776 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2782 ol_with_ldbm_type=no
2783 ol_with_ldbm_module=static
2785 if test $ol_enable_bdb != no ; then
2786 ol_with_ldbm_api=berkeley
2790 if test $ol_with_ldbm_api = gdbm -a \
2791 $ol_with_ldbm_type = btree ; then
2792 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2794 if test $ol_with_ldbm_api = mdbm -a \
2795 $ol_with_ldbm_type = btree ; then
2796 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2798 if test $ol_with_ldbm_api = ndbm -a \
2799 $ol_with_ldbm_type = btree ; then
2800 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2803 if test $ol_enable_bdb = yes ; then
2804 if test $ol_with_ldbm_api = auto ; then
2805 ol_with_ldbm_api=berkeley
2806 elif test $ol_with_ldbm_api != berkeley ; then
2807 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2810 elif test $ol_enable_bdb = auto ; then
2811 if test $ol_with_ldbm_api != berkeley \
2812 -o $ol_with_ldbm_api != auto ; then
2813 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2819 if test $ol_enable_slurpd = yes ; then
2820 if test $ol_with_threads = no ; then
2821 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2825 if test $ol_enable_lmpasswd = yes ; then
2826 if test $ol_with_tls = no ; then
2827 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2831 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2832 if test $ol_with_kerberos = no ; then
2833 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2834 elif test $ol_with_kerberos = auto ; then
2835 ol_with_kerberos=yes
2838 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2839 if test $ol_with_kerberos = auto ; then
2841 elif test $ol_with_kerberos != no ; then
2842 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2847 if test $ol_enable_spasswd = yes ; then
2848 if test $ol_with_cyrus_sasl = no ; then
2849 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2851 ol_with_cyrus_sasl=yes
2854 echo "$ac_t""done" 1>&6
2886 BUILD_BDB_DYNAMIC=static
2887 BUILD_DNSSRV_DYNAMIC=static
2888 BUILD_LDAP_DYNAMIC=static
2889 BUILD_LDBM_DYNAMIC=static
2890 BUILD_META_DYNAMIC=static
2891 BUILD_MONITOR_DYNAMIC=static
2892 BUILD_NULL_DYNAMIC=static
2893 BUILD_PASSWD_DYNAMIC=static
2894 BUILD_PERL_DYNAMIC=static
2895 BUILD_SHELL_DYNAMIC=static
2896 BUILD_TCL_DYNAMIC=static
2897 BUILD_SQL_DYNAMIC=static
2899 SLAPD_MODULES_LDFLAGS=
2900 SLAPD_MODULES_CPPFLAGS=
2902 SLAPD_STATIC_BACKENDS=
2903 SLAPD_DYNAMIC_BACKENDS=
2929 # Find a good install program. We prefer a C program (faster),
2930 # so one script is as good as another. But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # ./install, which can be erroneously created by make from ./install.sh.
2940 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2941 echo "configure:2942: checking for a BSD compatible install" >&5
2942 if test -z "$INSTALL"; then
2943 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2947 for ac_dir in $PATH; do
2948 # Account for people who put trailing slashes in PATH elements.
2950 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2952 # OSF1 and SCO ODT 3.0 have their own names for install.
2953 # Don't use installbsd from OSF since it installs stuff as root
2955 for ac_prog in ginstall scoinst install; do
2956 if test -f $ac_dir/$ac_prog; then
2957 if test $ac_prog = install &&
2958 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2959 # AIX install. It has an incompatible calling convention.
2961 elif test $ac_prog = install &&
2962 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2963 # program-specific install script used by HP pwplus--don't use.
2966 ac_cv_path_install="$ac_dir/$ac_prog -c"
2977 if test "${ac_cv_path_install+set}" = set; then
2978 INSTALL="$ac_cv_path_install"
2980 # As a last resort, use the slow shell script. We don't cache a
2981 # path for INSTALL within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the path is relative.
2984 INSTALL="$ac_install_sh"
2987 echo "$ac_t""$INSTALL" 1>&6
2989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2990 # It thinks the first close brace ends the variable substitution.
2991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_MKVERSION 1
3007 *-*-aix*) if test -z "$CC" ; then
3008 case "$ol_with_threads" in
3009 auto | yes | posix) ol_aix_threads=yes ;;
3015 if test $ol_aix_threads = yes ; then
3016 if test -z "${CC}" ; then
3017 for ac_prog in cc_r xlc_r cc
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_CC+set}\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # 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_CC="$ac_prog"
3042 if test -n "$CC"; then
3043 echo "$ac_t""$CC" 1>&6
3045 echo "$ac_t""no" 1>&6
3048 test -n "$CC" && break
3052 if test "$CC" = cc ; then
3053 if test $ol_with_threads != auto ; then
3054 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3056 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3062 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3063 ol_with_threads=posix
3064 ol_cv_pthread_create=yes
3068 if test -z "${CC}"; then
3069 for ac_prog in cc gcc
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_word" >&5
3075 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3083 for ac_dir in $ac_dummy; do
3084 test -z "$ac_dir" && ac_dir=.
3085 if test -f $ac_dir/$ac_word; then
3086 ac_cv_prog_CC="$ac_prog"
3094 if test -n "$CC"; then
3095 echo "$ac_t""$CC" 1>&6
3097 echo "$ac_t""no" 1>&6
3100 test -n "$CC" && break
3102 test -n "$CC" || CC="missing"
3105 if test "${CC}" = "missing" ; then
3106 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3110 if test -z "${AR}"; then
3111 for ac_prog in ar gar
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3117 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 if test -n "$AR"; then
3121 ac_cv_prog_AR="$AR" # Let the user override the test.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_AR="$ac_prog"
3136 if test -n "$AR"; then
3137 echo "$ac_t""$AR" 1>&6
3139 echo "$ac_t""no" 1>&6
3142 test -n "$AR" && break
3144 test -n "$AR" || AR="missing"
3147 if test "${AR}" = "missing" ; then
3148 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3154 # Find the correct PATH separator. Usually this is `:', but
3155 # DJGPP uses `;' like DOS.
3156 if test "X${PATH_SEPARATOR+set}" != Xset; then
3157 UNAME=${UNAME-`uname 2>/dev/null`}
3159 *-DOS) lt_cv_sys_path_separator=';' ;;
3160 *) lt_cv_sys_path_separator=':' ;;
3162 PATH_SEPARATOR=$lt_cv_sys_path_separator
3165 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3166 echo "configure:3167: checking for Cygwin environment" >&5
3167 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3177 #define __CYGWIN__ __CYGWIN32__
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3194 echo "$ac_t""$ac_cv_cygwin" 1>&6
3196 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3197 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3198 echo "configure:3199: checking for mingw32 environment" >&5
3199 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3214 echo "configure: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3222 echo "$ac_t""$ac_cv_mingw32" 1>&6
3224 test "$ac_cv_mingw32" = yes && MINGW32=yes
3225 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3226 echo "configure:3227: checking for EMX OS/2 environment" >&5
3227 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3250 echo "$ac_t""$ac_cv_emxos2" 1>&6
3252 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3253 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3254 echo "configure:3255: checking how to run the C preprocessor" >&5
3255 # On Suns, sometimes $CPP names a directory.
3256 if test -n "$CPP" && test -d "$CPP"; then
3259 if test -z "$CPP"; then
3260 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 # This must be in double quotes, not single quotes, because CPP may get
3264 # substituted into the Makefile and "${CC-cc}" will confuse make.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp.
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3275 { (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3277 if test -z "$ac_err"; then
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 CPP="${CC-cc} -E -traditional-cpp"
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3292 { (eval echo configure:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3294 if test -z "$ac_err"; then
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 CPP="${CC-cc} -nologo -E"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3309 { (eval echo configure:3310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3311 if test -z "$ac_err"; then
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3325 ac_cv_prog_CPP="$CPP"
3327 CPP="$ac_cv_prog_CPP"
3329 ac_cv_prog_CPP="$CPP"
3331 echo "$ac_t""$CPP" 1>&6
3333 # Check whether --enable-fast-install or --disable-fast-install was given.
3334 if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3344 for pkg in $enableval; do
3345 if test "X$pkg" = "X$p"; then
3346 enable_fast_install=yes
3353 enable_fast_install=yes
3356 # Extract the first word of "gcc", so it can be a program name with args.
3357 set dummy gcc; ac_word=$2
3358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_word" >&5
3360 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f $ac_dir/$ac_word; then
3379 if test -n "$CC"; then
3380 echo "$ac_t""$CC" 1>&6
3382 echo "$ac_t""no" 1>&6
3385 if test -z "$CC"; then
3386 # Extract the first word of "cc", so it can be a program name with args.
3387 set dummy cc; ac_word=$2
3388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3389 echo "configure:3390: checking for $ac_word" >&5
3390 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3399 for ac_dir in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir=.
3401 if test -f $ac_dir/$ac_word; then
3402 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3403 ac_prog_rejected=yes
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy $ac_cv_prog_CC
3415 if test $# -gt 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3420 set dummy "$ac_dir/$ac_word" "$@"
3428 if test -n "$CC"; then
3429 echo "$ac_t""$CC" 1>&6
3431 echo "$ac_t""no" 1>&6
3434 if test -z "$CC"; then
3435 case "`uname -s`" in
3436 *win32* | *WIN32* | *CYGWIN*)
3437 # Extract the first word of "cl", so it can be a program name with args.
3438 set dummy cl; ac_word=$2
3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_word" >&5
3441 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3449 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3460 if test -n "$CC"; then
3461 echo "$ac_t""$CC" 1>&6
3463 echo "$ac_t""no" 1>&6
3468 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3471 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3472 echo "configure:3473: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3479 cross_compiling=$ac_cv_prog_cc_cross
3481 cat > conftest.$ac_ext << EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3488 if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 ac_cv_prog_cc_works=yes
3490 # If we can't run a trivial program, we are probably using a cross compiler.
3491 if (./conftest; exit) 2>/dev/null; then
3492 ac_cv_prog_cc_cross=no
3494 ac_cv_prog_cc_cross=yes
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 ac_cv_prog_cc_works=no
3503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3507 cross_compiling=$ac_cv_prog_cc_cross
3509 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3510 if test $ac_cv_prog_cc_works = no; then
3511 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3513 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3514 echo "configure:3515: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3515 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3516 cross_compiling=$ac_cv_prog_cc_cross
3518 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether we are using GNU C" >&5
3520 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.c <<EOF
3528 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3535 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3537 if test $ac_cv_prog_gcc = yes; then
3543 ac_test_CFLAGS="${CFLAGS+set}"
3544 ac_save_CFLAGS="$CFLAGS"
3546 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3547 echo "configure:3548: checking whether ${CC-cc} accepts -g" >&5
3548 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 echo 'void f(){}' > conftest.c
3552 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3561 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS="$ac_save_CFLAGS"
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3571 if test "$GCC" = yes; then
3578 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3579 if test "${with_gnu_ld+set}" = set; then
3580 withval="$with_gnu_ld"
3581 test "$withval" = no || with_gnu_ld=yes
3587 if test "$GCC" = yes; then
3588 # Check if gcc -print-prog-name=ld gives a path.
3589 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3590 echo "configure:3591: checking for ld used by GCC" >&5
3593 # gcc leaves a trailing carriage return which upsets mingw
3594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3599 # Accept absolute paths.
3600 [\\/]* | [A-Za-z]:[\\/]*)
3601 re_direlt='/[^/][^/]*/\.\./'
3602 # Canonicalize the path of ld
3603 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3604 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3605 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3607 test -z "$LD" && LD="$ac_prog"
3610 # If it fails, then pretend we aren't using GCC.
3614 # If it is relative, then search for the first ld in PATH.
3618 elif test "$with_gnu_ld" = yes; then
3619 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3620 echo "configure:3621: checking for GNU ld" >&5
3622 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3623 echo "configure:3624: checking for non-GNU ld" >&5
3625 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 if test -z "$LD"; then
3629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3630 for ac_dir in $PATH; do
3631 test -z "$ac_dir" && ac_dir=.
3632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3633 lt_cv_path_LD="$ac_dir/$ac_prog"
3634 # Check to see if the program is GNU ld. I'd rather use --version,
3635 # but apparently some GNU ld's only accept -v.
3636 # Break only if it was the GNU/non-GNU ld that we prefer.
3637 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3638 test "$with_gnu_ld" != no && break
3640 test "$with_gnu_ld" != yes && break
3646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3651 if test -n "$LD"; then
3652 echo "$ac_t""$LD" 1>&6
3654 echo "$ac_t""no" 1>&6
3656 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3657 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3658 echo "configure:3659: checking if the linker ($LD) is GNU ld" >&5
3659 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3663 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3664 lt_cv_prog_gnu_ld=yes
3666 lt_cv_prog_gnu_ld=no
3670 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3671 with_gnu_ld=$lt_cv_prog_gnu_ld
3674 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $LD option to reload object files" >&5
3676 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 lt_cv_ld_reload_flag='-r'
3682 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3683 reload_flag=$lt_cv_ld_reload_flag
3684 test -n "$reload_flag" && reload_flag=" $reload_flag"
3686 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3687 echo "configure:3688: checking for BSD-compatible nm" >&5
3688 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 if test -n "$NM"; then
3692 # Let the user override the test.
3695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3696 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3697 test -z "$ac_dir" && ac_dir=.
3698 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3699 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3700 # Check to see if the nm accepts a BSD-compat flag.
3701 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3702 # nm: unknown option "B" ignored
3703 # Tru64's nm complains that /dev/null is an invalid object file
3704 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3705 lt_cv_path_NM="$tmp_nm -B"
3707 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3708 lt_cv_path_NM="$tmp_nm -p"
3711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3712 continue # so that we can try to find one that supports BSD flags
3717 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3722 echo "$ac_t""$NM" 1>&6
3724 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3725 echo "configure:3726: checking for a sed that does not truncate output" >&5
3726 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 # Loop through the user's path and test for sed and gsed.
3730 # Then use that list of sed's as ones to test for truncation.
3731 as_executable_p="test -f"
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_prog in sed gsed; do
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3740 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3746 # Create a temporary directory, and hook for its removal unless debugging.
3749 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3750 trap '{ (exit 1); exit 1; }' 1 2 13 15
3753 # Create a (secure) tmp directory for tmp files.
3756 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3757 test -n "$tmp" && test -d "$tmp"
3760 tmp=$TMPDIR/sed$$-$RANDOM
3761 (umask 077 && mkdir $tmp)
3764 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3765 { (exit 1); exit 1; }
3769 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3770 # along with /bin/sed that truncates output.
3771 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3772 test ! -f ${_sed} && break
3773 cat /dev/null > "$tmp/sed.in"
3775 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3776 # Check for GNU sed and select it if it is found.
3777 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3778 lt_cv_path_SED=${_sed}
3782 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3783 mv "$tmp/sed.tmp" "$tmp/sed.in"
3784 cp "$tmp/sed.in" "$tmp/sed.nl"
3785 echo >>"$tmp/sed.nl"
3786 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3787 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3788 # 40000 chars as input seems more than enough
3789 test $_count -gt 10 && break
3790 _count=`expr $_count + 1`
3791 if test $_count -gt $_max; then
3793 lt_cv_path_SED=$_sed
3801 if test "X$SED" != "X"; then
3806 echo "$ac_t""$SED" 1>&6
3808 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3809 echo "configure:3810: checking whether ln -s works" >&5
3810 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3814 if ln -s X conftestdata 2>/dev/null
3817 ac_cv_prog_LN_S="ln -s"
3822 LN_S="$ac_cv_prog_LN_S"
3823 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3824 echo "$ac_t""yes" 1>&6
3826 echo "$ac_t""no" 1>&6
3829 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3830 echo "configure:3831: checking how to recognise dependent libraries" >&5
3831 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 lt_cv_file_magic_cmd='$MAGIC_CMD'
3835 lt_cv_file_magic_test_file=
3836 lt_cv_deplibs_check_method='unknown'
3837 # Need to set the preceding variable on all platforms that support
3838 # interlibrary dependencies.
3839 # 'none' -- dependencies not supported.
3840 # `unknown' -- same as none, but documents that we really don't know.
3841 # 'pass_all' -- all dependencies passed with no checks.
3842 # 'test_compile' -- check by making test program.
3843 # 'file_magic [[regex]]' -- check by looking for files in library path
3844 # which responds to the $file_magic_cmd with a given egrep regex.
3845 # If you have `file' or equivalent on your system and you're not sure
3846 # whether `pass_all' will *always* work, you probably want this one.
3850 lt_cv_deplibs_check_method=pass_all
3854 lt_cv_deplibs_check_method=pass_all
3858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3859 lt_cv_file_magic_cmd='/usr/bin/file -L'
3860 lt_cv_file_magic_test_file=/shlib/libc.so
3863 cygwin* | mingw* | pw32*)
3864 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3865 lt_cv_file_magic_cmd='$OBJDUMP -f'
3868 darwin* | rhapsody*)
3869 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3870 lt_cv_file_magic_cmd='/usr/bin/file -L'
3872 rhapsody* | darwin1.[012])
3873 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3876 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3882 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3885 # Not sure whether the presence of OpenBSD here was a mistake.
3886 # Let's accept both of them until this is cleared up.
3887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3888 lt_cv_file_magic_cmd=/usr/bin/file
3889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3893 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_deplibs_check_method=pass_all
3902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3903 lt_cv_file_magic_cmd=/usr/bin/file
3904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3907 irix5* | irix6* | nonstopux*)
3909 irix5* | nonstopux*)
3910 # this will be overridden with pass_all, but let us keep it just in case
3911 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3915 *-32|*"-32 ") libmagic=32-bit;;
3916 *-n32|*"-n32 ") libmagic=N32;;
3917 *-64|*"-64 ") libmagic=64-bit;;
3918 *) libmagic=never-match;;
3920 # this will be overridden with pass_all, but let us keep it just in case
3921 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3924 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3925 lt_cv_deplibs_check_method=pass_all
3928 # This must be Linux ELF.
3931 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3932 lt_cv_deplibs_check_method=pass_all ;;
3934 # glibc up to 2.1.1 does not perform some relocations on ARM
3935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3937 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3942 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3944 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3950 lt_cv_file_magic_cmd=/usr/bin/file
3951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3955 lt_cv_file_magic_cmd=/usr/bin/file
3956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3960 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3964 osf3* | osf4* | osf5*)
3965 # this will be overridden with pass_all, but let us keep it just in case
3966 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3967 lt_cv_file_magic_test_file=/shlib/libc.so
3968 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_deplibs_check_method=pass_all
3976 lt_cv_deplibs_check_method=pass_all
3977 lt_cv_file_magic_test_file=/lib/libc.so
3980 sysv5uw[78]* | sysv4*uw2*)
3981 lt_cv_deplibs_check_method=pass_all
3984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3985 case $host_vendor in
3987 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]'
3988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3991 lt_cv_deplibs_check_method=pass_all
3994 lt_cv_file_magic_cmd='/bin/file'
3995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3998 lt_cv_file_magic_cmd='/bin/file'
3999 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4000 lt_cv_file_magic_test_file=/lib/libc.so
4003 lt_cv_deplibs_check_method=pass_all
4011 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4012 file_magic_cmd=$lt_cv_file_magic_cmd
4013 deplibs_check_method=$lt_cv_deplibs_check_method
4015 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4016 echo "configure:4017: checking for object suffix" >&5
4017 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4021 echo 'int i = 1;' > conftest.$ac_ext
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 for ac_file in conftest.*; do
4026 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4030 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4035 echo "$ac_t""$ac_cv_objext" 1>&6
4036 OBJEXT=$ac_cv_objext
4037 ac_objext=$ac_cv_objext
4042 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4043 echo "configure:4044: checking for executable suffix" >&5
4044 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4051 echo 'int main () { return 0; }' > conftest.$ac_ext
4053 if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4054 for file in conftest.*; do
4056 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4057 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4061 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4064 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4069 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4070 echo "$ac_t""${ac_cv_exeext}" 1>&6
4073 if test $host != $build; then
4074 ac_tool_prefix=${host_alias}-
4082 # Check for command to grab the raw symbol name followed by C symbol from nm.
4083 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4084 echo "configure:4085: checking command to parse $NM output" >&5
4085 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4089 # These are sane defaults that work on at least a few old systems.
4090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4092 # Character class describing NM global symbol codes.
4093 symcode='[BCDEGRST]'
4095 # Regexp to match symbols that can be accessed directly from C.
4096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4098 # Transform the above into a raw symbol and a C symbol.
4099 symxfrm='\1 \2\3 \3'
4101 # Transform an extracted symbol line into a proper C declaration
4102 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4104 # Transform an extracted symbol line into symbol name and symbol address
4105 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'"
4107 # Define system-specific variables.
4112 cygwin* | mingw* | pw32*)
4113 symcode='[ABCDGISTW]'
4115 hpux*) # Its linker distinguishes data from code symbols
4116 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4117 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'"
4120 symcode='[BCDEGRST]'
4123 symcode='[BCDEGQRST]'
4133 # Handle CRLF in mingw tool chain
4137 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4141 # If we're using GNU nm, then use its standard symbol codes.
4142 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4143 symcode='[ABCDGISTW]'
4146 # Try without a prefix undercore, then with it.
4147 for ac_symprfx in "" "_"; do
4149 # Write the raw and C identifiers.
4150 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4152 # Check to see that the pipe works correctly.
4155 cat > conftest.$ac_ext <<EOF
4160 void nm_test_func(){}
4164 int main(){nm_test_var='a';nm_test_func();return(0);}
4167 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 # Now try to grab the symbols.
4170 if { (eval echo configure:4171: \"$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
4171 # Try sorting and uniquifying the output.
4172 if sort "$nlist" | uniq > "$nlist"T; then
4173 mv -f "$nlist"T "$nlist"
4178 # Make sure that we snagged all the symbols we need.
4179 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4180 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4181 cat <<EOF > conftest.$ac_ext
4187 # Now generate the symbol file.
4188 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4190 cat <<EOF >> conftest.$ac_ext
4191 #if defined (__STDC__) && __STDC__
4192 # define lt_ptr void *
4194 # define lt_ptr char *
4198 /* The mapping between symbol names and symbols. */
4203 lt_preloaded_symbols[] =
4206 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4207 cat <<\EOF >> conftest.$ac_ext
4215 # Now try linking the two files.
4216 mv conftest.$ac_objext conftstm.$ac_objext
4218 save_CFLAGS="$CFLAGS"
4219 LIBS="conftstm.$ac_objext"
4220 CFLAGS="$CFLAGS$no_builtin_flag"
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4225 CFLAGS="$save_CFLAGS"
4227 echo "cannot find nm_test_func in $nlist" >&5
4230 echo "cannot find nm_test_var in $nlist" >&5
4233 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4236 echo "$progname: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4239 rm -f conftest* conftst*
4241 # Do not use the global_symbol_pipe unless it works.
4242 if test "$pipe_works" = yes; then
4245 lt_cv_sys_global_symbol_pipe=
4251 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4253 global_symbol_to_cdecl=
4254 global_symbol_to_c_name_address=
4256 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4257 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4259 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4261 echo "$ac_t""failed" 1>&6
4263 echo "$ac_t""ok" 1>&6
4266 for ac_hdr in dlfcn.h
4268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4270 echo "configure:4271: checking for $ac_hdr" >&5
4271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4280 { (eval echo configure:4281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4282 if test -z "$ac_err"; then
4284 eval "ac_cv_header_$ac_safe=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 eval "ac_cv_header_$ac_safe=no"
4294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4295 echo "$ac_t""yes" 1>&6
4296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4297 cat >> confdefs.h <<EOF
4298 #define $ac_tr_hdr 1
4302 echo "$ac_t""no" 1>&6
4311 # Only perform the check for file, if the check method requires it
4312 case $deplibs_check_method in
4314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4315 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4316 echo "configure:4317: checking for ${ac_tool_prefix}file" >&5
4317 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4328 ac_save_MAGIC_CMD="$MAGIC_CMD"
4329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4330 ac_dummy="/usr/bin:$PATH"
4331 for ac_dir in $ac_dummy; do
4332 test -z "$ac_dir" && ac_dir=.
4333 if test -f $ac_dir/${ac_tool_prefix}file; then
4334 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4335 if test -n "$file_magic_test_file"; then
4336 case $deplibs_check_method in
4338 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4341 egrep "$file_magic_regex" > /dev/null; then
4346 *** Warning: the command libtool uses to detect shared libraries,
4347 *** $file_magic_cmd, produces output that libtool cannot recognize.
4348 *** The result is that libtool may fail to recognize shared libraries
4349 *** as such. This will affect the creation of libtool libraries that
4350 *** depend on shared libraries, but programs linked with such libtool
4351 *** libraries will work regardless of this problem. Nevertheless, you
4352 *** may want to report the problem to your system manager and/or to
4353 *** bug-libtool@gnu.org
4363 MAGIC_CMD="$ac_save_MAGIC_CMD"
4368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4369 if test -n "$MAGIC_CMD"; then
4370 echo "$ac_t""$MAGIC_CMD" 1>&6
4372 echo "$ac_t""no" 1>&6
4375 if test -z "$lt_cv_path_MAGIC_CMD"; then
4376 if test -n "$ac_tool_prefix"; then
4377 echo $ac_n "checking for file""... $ac_c" 1>&6
4378 echo "configure:4379: checking for file" >&5
4379 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4390 ac_save_MAGIC_CMD="$MAGIC_CMD"
4391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 ac_dummy="/usr/bin:$PATH"
4393 for ac_dir in $ac_dummy; do
4394 test -z "$ac_dir" && ac_dir=.
4395 if test -f $ac_dir/file; then
4396 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4397 if test -n "$file_magic_test_file"; then
4398 case $deplibs_check_method in
4400 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4403 egrep "$file_magic_regex" > /dev/null; then
4408 *** Warning: the command libtool uses to detect shared libraries,
4409 *** $file_magic_cmd, produces output that libtool cannot recognize.
4410 *** The result is that libtool may fail to recognize shared libraries
4411 *** as such. This will affect the creation of libtool libraries that
4412 *** depend on shared libraries, but programs linked with such libtool
4413 *** libraries will work regardless of this problem. Nevertheless, you
4414 *** may want to report the problem to your system manager and/or to
4415 *** bug-libtool@gnu.org
4425 MAGIC_CMD="$ac_save_MAGIC_CMD"
4430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4431 if test -n "$MAGIC_CMD"; then
4432 echo "$ac_t""$MAGIC_CMD" 1>&6
4434 echo "$ac_t""no" 1>&6
4446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_word" >&5
4450 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 if test -n "$RANLIB"; then
4454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4468 RANLIB="$ac_cv_prog_RANLIB"
4469 if test -n "$RANLIB"; then
4470 echo "$ac_t""$RANLIB" 1>&6
4472 echo "$ac_t""no" 1>&6
4476 if test -z "$ac_cv_prog_RANLIB"; then
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "ranlib", so it can be a program name with args.
4479 set dummy ranlib; ac_word=$2
4480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_word" >&5
4482 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 if test -n "$RANLIB"; then
4486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4490 for ac_dir in $ac_dummy; do
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f $ac_dir/$ac_word; then
4493 ac_cv_prog_RANLIB="ranlib"
4498 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4501 RANLIB="$ac_cv_prog_RANLIB"
4502 if test -n "$RANLIB"; then
4503 echo "$ac_t""$RANLIB" 1>&6
4505 echo "$ac_t""no" 1>&6
4513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4514 set dummy ${ac_tool_prefix}strip; ac_word=$2
4515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_word" >&5
4517 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 if test -n "$STRIP"; then
4521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4525 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f $ac_dir/$ac_word; then
4528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4535 STRIP="$ac_cv_prog_STRIP"
4536 if test -n "$STRIP"; then
4537 echo "$ac_t""$STRIP" 1>&6
4539 echo "$ac_t""no" 1>&6
4543 if test -z "$ac_cv_prog_STRIP"; then
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "strip", so it can be a program name with args.
4546 set dummy strip; ac_word=$2
4547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_word" >&5
4549 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 if test -n "$STRIP"; then
4553 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4557 for ac_dir in $ac_dummy; do
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f $ac_dir/$ac_word; then
4560 ac_cv_prog_STRIP="strip"
4565 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4568 STRIP="$ac_cv_prog_STRIP"
4569 if test -n "$STRIP"; then
4570 echo "$ac_t""$STRIP" 1>&6
4572 echo "$ac_t""no" 1>&6
4582 enable_win32_dll=yes
4584 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4585 if test "${enable_libtool_lock+set}" = set; then
4586 enableval="$enable_libtool_lock"
4590 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4592 # Some flags need to be propagated to the compiler or linker for good
4596 # Find out which ABI we are using.
4597 echo '#line 4598 "configure"' > conftest.$ac_ext
4598 if { (eval echo configure:4599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4599 case `/usr/bin/file conftest.$ac_objext` in
4615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4616 SAVE_CFLAGS="$CFLAGS"
4617 CFLAGS="$CFLAGS -belf"
4618 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4619 echo "configure:4620: checking whether the C compiler needs -belf" >&5
4620 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4629 cross_compiling=$ac_cv_prog_cc_cross
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 lt_cv_cc_needs_belf=yes
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 lt_cv_cc_needs_belf=no
4650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4654 cross_compiling=$ac_cv_prog_cc_cross
4658 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4661 CFLAGS="$SAVE_CFLAGS"
4665 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4666 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4669 echo "configure:4670: checking for $ac_word" >&5
4670 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 if test -n "$DLLTOOL"; then
4674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4678 for ac_dir in $ac_dummy; do
4679 test -z "$ac_dir" && ac_dir=.
4680 if test -f $ac_dir/$ac_word; then
4681 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4688 DLLTOOL="$ac_cv_prog_DLLTOOL"
4689 if test -n "$DLLTOOL"; then
4690 echo "$ac_t""$DLLTOOL" 1>&6
4692 echo "$ac_t""no" 1>&6
4696 if test -z "$ac_cv_prog_DLLTOOL"; then
4697 if test -n "$ac_tool_prefix"; then
4698 # Extract the first word of "dlltool", so it can be a program name with args.
4699 set dummy dlltool; ac_word=$2
4700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_word" >&5
4702 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 if test -n "$DLLTOOL"; then
4706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4710 for ac_dir in $ac_dummy; do
4711 test -z "$ac_dir" && ac_dir=.
4712 if test -f $ac_dir/$ac_word; then
4713 ac_cv_prog_DLLTOOL="dlltool"
4718 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4721 DLLTOOL="$ac_cv_prog_DLLTOOL"
4722 if test -n "$DLLTOOL"; then
4723 echo "$ac_t""$DLLTOOL" 1>&6
4725 echo "$ac_t""no" 1>&6
4733 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}as; ac_word=$2
4735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_word" >&5
4737 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 if test -n "$AS"; then
4741 ac_cv_prog_AS="$AS" # Let the user override the test.
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4745 for ac_dir in $ac_dummy; do
4746 test -z "$ac_dir" && ac_dir=.
4747 if test -f $ac_dir/$ac_word; then
4748 ac_cv_prog_AS="${ac_tool_prefix}as"
4756 if test -n "$AS"; then
4757 echo "$ac_t""$AS" 1>&6
4759 echo "$ac_t""no" 1>&6
4763 if test -z "$ac_cv_prog_AS"; then
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "as", so it can be a program name with args.
4766 set dummy as; ac_word=$2
4767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4768 echo "configure:4769: checking for $ac_word" >&5
4769 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 if test -n "$AS"; then
4773 ac_cv_prog_AS="$AS" # Let the user override the test.
4775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4777 for ac_dir in $ac_dummy; do
4778 test -z "$ac_dir" && ac_dir=.
4779 if test -f $ac_dir/$ac_word; then
4785 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4789 if test -n "$AS"; then
4790 echo "$ac_t""$AS" 1>&6
4792 echo "$ac_t""no" 1>&6
4800 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4803 echo "configure:4804: checking for $ac_word" >&5
4804 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 if test -n "$OBJDUMP"; then
4808 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4812 for ac_dir in $ac_dummy; do
4813 test -z "$ac_dir" && ac_dir=.
4814 if test -f $ac_dir/$ac_word; then
4815 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4822 OBJDUMP="$ac_cv_prog_OBJDUMP"
4823 if test -n "$OBJDUMP"; then
4824 echo "$ac_t""$OBJDUMP" 1>&6
4826 echo "$ac_t""no" 1>&6
4830 if test -z "$ac_cv_prog_OBJDUMP"; then
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "objdump", so it can be a program name with args.
4833 set dummy objdump; ac_word=$2
4834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_word" >&5
4836 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 if test -n "$OBJDUMP"; then
4840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4844 for ac_dir in $ac_dummy; do
4845 test -z "$ac_dir" && ac_dir=.
4846 if test -f $ac_dir/$ac_word; then
4847 ac_cv_prog_OBJDUMP="objdump"
4852 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4855 OBJDUMP="$ac_cv_prog_OBJDUMP"
4856 if test -n "$OBJDUMP"; then
4857 echo "$ac_t""$OBJDUMP" 1>&6
4859 echo "$ac_t""no" 1>&6
4868 # recent cygwin and mingw systems supply a stub DllMain which the user
4869 # can override, but on older systems we have to supply one
4870 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4871 echo "configure:4872: checking if libtool should supply DllMain function" >&5
4872 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4880 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 lt_cv_need_dllmain=no
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 lt_cv_need_dllmain=yes
4896 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4899 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4900 # old mingw systems require "-dll" to link a DLL, while more recent ones
4902 SAVE_CFLAGS="$CFLAGS"
4903 CFLAGS="$CFLAGS -mdll"
4904 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4905 echo "configure:4906: checking how to link DLLs" >&5
4906 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 lt_cv_cc_dll_switch=-mdll
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4924 lt_cv_cc_dll_switch=-dll
4929 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4930 CFLAGS="$SAVE_CFLAGS" ;;
4931 *-*-cygwin* | *-*-pw32*)
4932 # cygwin systems need to pass --dll to the linker, and not link
4933 # crt.o which will require a WinMain@16 definition.
4934 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4940 # Sed substitution that helps us do robust quoting. It backslashifies
4941 # metacharacters that are still active within double-quoted strings.
4942 Xsed='sed -e s/^X//'
4943 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4945 # Same as above, but do not quote variable references.
4946 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4948 # Sed substitution to delay expansion of an escaped shell variable in a
4949 # double_quote_subst'ed string.
4950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4956 default_ofile=libtool
4957 can_build_shared=yes
4959 # All known linkers require a `.a' archive for static linking (except M$VC,
4960 # which needs '.lib').
4962 ltmain="$ac_aux_dir/ltmain.sh"
4963 ofile="$default_ofile"
4964 with_gnu_ld="$lt_cv_prog_gnu_ld"
4965 need_locks="$enable_libtool_lock"
4968 old_CFLAGS="$CFLAGS"
4970 # Set sane defaults for various variables
4971 test -z "$AR" && AR=ar
4972 test -z "$AR_FLAGS" && AR_FLAGS=cru
4973 test -z "$AS" && AS=as
4974 test -z "$CC" && CC=cc
4975 test -z "$DLLTOOL" && DLLTOOL=dlltool
4976 test -z "$LD" && LD=ld
4977 test -z "$LN_S" && LN_S="ln -s"
4978 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4979 test -z "$NM" && NM=nm
4980 test -z "$OBJDUMP" && OBJDUMP=objdump
4981 test -z "$RANLIB" && RANLIB=:
4982 test -z "$STRIP" && STRIP=:
4983 test -z "$ac_objext" && ac_objext=o
4985 if test x"$host" != x"$build"; then
4986 ac_tool_prefix=${host_alias}-
4991 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4994 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4999 # AIX sometimes has problems with the GCC collect2 program. For some
5000 # reason, if we set the COLLECT_NAMES environment variable, the problems
5001 # vanish in a puff of smoke.
5002 if test "X${COLLECT_NAMES+set}" != Xset; then
5004 export COLLECT_NAMES
5009 # Determine commands to create old-style static archives.
5010 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5011 old_postinstall_cmds='chmod 644 $oldlib'
5012 old_postuninstall_cmds=
5014 if test -n "$RANLIB"; then
5017 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5020 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5026 # Allow CC to be a program name with arguments.
5030 ## FIXME: this should be a separate macro
5032 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5033 echo "configure:5034: checking for objdir" >&5
5034 rm -f .libs 2>/dev/null
5035 mkdir .libs 2>/dev/null
5036 if test -d .libs; then
5039 # MS-DOS does not allow filenames that begin with a dot.
5042 rmdir .libs 2>/dev/null
5043 echo "$ac_t""$objdir" 1>&6
5048 ## FIXME: this should be a separate macro
5050 # Check whether --with-pic or --without-pic was given.
5051 if test "${with_pic+set}" = set; then
5058 test -z "$pic_mode" && pic_mode=default
5060 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5061 # in isolation, and that seeing it set (from the cache) indicates that
5062 # the associated values are set (in the cache) correctly too.
5063 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5064 echo "configure:5065: checking for $compiler option to produce PIC" >&5
5065 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5069 lt_cv_prog_cc_shlib=
5071 lt_cv_prog_cc_static=
5072 lt_cv_prog_cc_no_builtin=
5073 lt_cv_prog_cc_can_build_shared=$can_build_shared
5075 if test "$GCC" = yes; then
5076 lt_cv_prog_cc_wl='-Wl,'
5077 lt_cv_prog_cc_static='-static'
5081 # Below there is a dirty hack to force normal static linking with -ldl
5082 # The problem is because libdl dynamically linked with both libc and
5083 # libC (AIX C++ library), which obviously doesn't included in libraries
5084 # list by gcc. This cause undefined symbols with -static flags.
5085 # This hack allows C programs to be linked with "-static -ldl", but
5086 # not sure about C++ programs.
5087 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5090 # FIXME: we need at least 68020 code to build shared libraries, but
5091 # adding the `-m68020' flag to GCC prevents building anything better,
5093 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5096 # PIC is the default for these OSes.
5098 darwin* | rhapsody*)
5099 # PIC is the default on this platform
5100 # Common symbols not allowed in MH_DYLIB files
5101 lt_cv_prog_cc_pic='-fno-common'
5103 cygwin* | mingw* | pw32* | os2*)
5104 # This hack is so that the source file can tell whether it is being
5105 # built for inclusion in a dll (and should export symbols for example).
5106 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5109 if test -d /usr/nec; then
5110 lt_cv_prog_cc_pic=-Kconform_pic
5114 lt_cv_prog_cc_pic='-fPIC'
5118 # PORTME Check for PIC flags for the system compiler.
5120 aix3* | aix4* | aix5*)
5121 lt_cv_prog_cc_wl='-Wl,'
5122 # All AIX code is PIC.
5123 if test "$host_cpu" = ia64; then
5124 # AIX 5 now supports IA64 processor
5125 lt_cv_prog_cc_static='-Bstatic'
5127 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5131 hpux9* | hpux10* | hpux11*)
5132 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5133 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5135 lt_cv_prog_cc_pic='+Z'
5138 irix5* | irix6* | nonstopux*)
5139 lt_cv_prog_cc_wl='-Wl,'
5140 lt_cv_prog_cc_static='-non_shared'
5141 # PIC (with -KPIC) is the default.
5144 cygwin* | mingw* | pw32* | os2*)
5145 # This hack is so that the source file can tell whether it is being
5146 # built for inclusion in a dll (and should export symbols for example).
5147 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5151 lt_cv_prog_cc_pic='-KPIC'
5152 lt_cv_prog_cc_static='-Bstatic'
5155 osf3* | osf4* | osf5*)
5156 # All OSF/1 code is PIC.
5157 lt_cv_prog_cc_wl='-Wl,'
5158 lt_cv_prog_cc_static='-non_shared'
5162 lt_cv_prog_cc_pic='-Kpic'
5163 lt_cv_prog_cc_static='-dn'
5164 lt_cv_prog_cc_shlib='-belf'
5168 lt_cv_prog_cc_pic='-KPIC'
5169 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_wl='-Wl,'
5174 lt_cv_prog_cc_pic='-PIC'
5175 lt_cv_prog_cc_static='-Bstatic'
5176 lt_cv_prog_cc_wl='-Qoption ld '
5179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5180 lt_cv_prog_cc_pic='-KPIC'
5181 lt_cv_prog_cc_static='-Bstatic'
5182 lt_cv_prog_cc_wl='-Wl,'
5186 lt_cv_prog_cc_pic='-pic'
5187 lt_cv_prog_cc_static='-Bstatic'
5191 if test -d /usr/nec ;then
5192 lt_cv_prog_cc_pic='-Kconform_pic'
5193 lt_cv_prog_cc_static='-Bstatic'
5198 lt_cv_prog_cc_can_build_shared=no
5205 if test -z "$lt_cv_prog_cc_pic"; then
5206 echo "$ac_t""none" 1>&6
5208 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5210 # Check to make sure the pic_flag actually works.
5211 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5212 echo "configure:5213: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5213 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 save_CFLAGS="$CFLAGS"
5217 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 hpux9* | hpux10* | hpux11*)
5230 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5231 # they create non-PIC objects. So, if there were any warnings, we
5232 # assume that PIC is not supported.
5233 if test -s conftest.err; then
5234 lt_cv_prog_cc_pic_works=no
5236 lt_cv_prog_cc_pic_works=yes
5240 lt_cv_prog_cc_pic_works=yes
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 lt_cv_prog_cc_pic_works=no
5252 CFLAGS="$save_CFLAGS"
5257 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5259 lt_cv_prog_cc_can_build_shared=no
5261 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5264 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5269 # Check for any special shared library compilation flags.
5270 if test -n "$lt_cv_prog_cc_shlib"; then
5271 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5272 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5274 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5275 lt_cv_prog_cc_can_build_shared=no
5279 ## FIXME: this should be a separate macro
5281 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5282 echo "configure:5283: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5283 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 lt_cv_prog_cc_static_works=no
5287 save_LDFLAGS="$LDFLAGS"
5288 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5297 if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5299 lt_cv_prog_cc_static_works=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5305 LDFLAGS="$save_LDFLAGS"
5310 # Belt *and* braces to stop my trousers falling down:
5311 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5312 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5314 pic_flag="$lt_cv_prog_cc_pic"
5315 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5316 wl="$lt_cv_prog_cc_wl"
5317 link_static_flag="$lt_cv_prog_cc_static"
5318 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5319 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5324 ## FIXME: this should be a separate macro
5326 # Check to see if options -o and -c are simultaneously supported by compiler
5327 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5328 echo "configure:5329: checking if $compiler supports -c -o file.$ac_objext" >&5
5329 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5333 $rm -r conftest 2>/dev/null
5336 echo "int some_variable = 0;" > conftest.$ac_ext
5338 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5339 # that will create temporary files in the current directory regardless of
5340 # the output directory. Thus, making CWD read-only will cause this test
5341 # to fail, enabling locking or at least warning the user not to do parallel
5344 save_CFLAGS="$CFLAGS"
5345 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5348 # The compiler can only warn and ignore the option if not recognized
5349 # So say no if there are warnings
5350 if test -s out/conftest.err; then
5351 lt_cv_compiler_c_o=no
5353 lt_cv_compiler_c_o=yes
5356 # Append any errors to the config.log.
5357 cat out/conftest.err 1>&5
5358 lt_cv_compiler_c_o=no
5360 CFLAGS="$save_CFLAGS"
5366 $rm -r conftest 2>/dev/null
5370 compiler_c_o=$lt_cv_compiler_c_o
5371 echo "$ac_t""$compiler_c_o" 1>&6
5373 if test x"$compiler_c_o" = x"yes"; then
5374 # Check to see if we can write to a .lo
5375 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5376 echo "configure:5377: checking if $compiler supports -c -o file.lo" >&5
5377 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5381 lt_cv_compiler_o_lo=no
5382 save_CFLAGS="$CFLAGS"
5383 CFLAGS="$CFLAGS -c -o conftest.lo"
5384 save_objext="$ac_objext"
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5391 int some_variable = 0;
5394 if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5396 # The compiler can only warn and ignore the option if not recognized
5397 # So say no if there are warnings
5398 if test -s conftest.err; then
5399 lt_cv_compiler_o_lo=no
5401 lt_cv_compiler_o_lo=yes
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5409 ac_objext="$save_objext"
5410 CFLAGS="$save_CFLAGS"
5414 compiler_o_lo=$lt_cv_compiler_o_lo
5415 echo "$ac_t""$compiler_o_lo" 1>&6
5422 ## FIXME: this should be a separate macro
5424 # Check to see if we can do hard links to lock some files if needed
5425 hard_links="nottested"
5426 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5427 # do not overwrite the value of need_locks provided by the user
5428 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5429 echo "configure:5430: checking if we can lock with hard links" >&5
5432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5434 ln conftest.a conftest.b 2>&5 || hard_links=no
5435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5436 echo "$ac_t""$hard_links" 1>&6
5437 if test "$hard_links" = no; then
5438 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5447 ## FIXME: this should be a separate macro
5449 if test "$GCC" = yes; then
5450 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5451 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5452 echo "configure:5453: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5453 echo "int some_variable = 0;" > conftest.$ac_ext
5454 save_CFLAGS="$CFLAGS"
5455 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5456 compiler_rtti_exceptions=no
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5462 int some_variable = 0;
5465 if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5467 # The compiler can only warn and ignore the option if not recognized
5468 # So say no if there are warnings
5469 if test -s conftest.err; then
5470 compiler_rtti_exceptions=no
5472 compiler_rtti_exceptions=yes
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5480 CFLAGS="$save_CFLAGS"
5481 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5483 if test "$compiler_rtti_exceptions" = "yes"; then
5484 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5486 no_builtin_flag=' -fno-builtin'
5492 ## FIXME: this should be a separate macro
5494 # See if the linker supports building shared libraries.
5495 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5496 echo "configure:5497: checking whether the linker ($LD) supports shared libraries" >&5
5498 allow_undefined_flag=
5500 need_lib_prefix=unknown
5501 need_version=unknown
5502 # when you set need_version to no, make sure it does not cause -set_version
5503 # flags to be left without arguments
5505 archive_expsym_cmds=
5506 old_archive_from_new_cmds=
5507 old_archive_from_expsyms_cmds=
5508 export_dynamic_flag_spec=
5509 whole_archive_flag_spec=
5510 thread_safe_flag_spec=
5511 hardcode_into_libs=no
5512 hardcode_libdir_flag_spec=
5513 hardcode_libdir_separator=
5516 hardcode_shlibpath_var=unsupported
5518 link_all_deplibs=unknown
5519 always_export_symbols=no
5520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5521 # include_expsyms should be a list of space-separated symbols to be *always*
5522 # included in the symbol list
5524 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5527 # as well as any symbol that contains `d'.
5528 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5530 # platforms (ab)use it in PIC code, but their linkers get confused if
5531 # the symbol is explicitly referenced. Since portable code cannot
5532 # rely on this symbol name, it's probably fine to never include it in
5533 # preloaded symbol tables.
5534 extract_expsyms_cmds=
5537 cygwin* | mingw* | pw32*)
5538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5539 # When not using gcc, we currently assume that we are using
5540 # Microsoft Visual C++.
5541 if test "$GCC" != yes; then
5551 if test "$with_gnu_ld" = yes; then
5552 # If archive_cmds runs LD, not CC, wlarc should be empty
5555 # See if GNU ld supports shared libraries.
5557 aix3* | aix4* | aix5*)
5558 # On AIX, the GNU linker is very broken
5559 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5563 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5564 *** to be unable to reliably create shared libraries on AIX.
5565 *** Therefore, libtool is disabling shared libraries support. If you
5566 *** really care for shared libraries, you may want to modify your PATH
5567 *** so that a non-GNU linker is found, and then restart.
5573 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)'
5574 hardcode_libdir_flag_spec='-L$libdir'
5575 hardcode_minus_L=yes
5577 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5578 # that the semantics of dynamic libraries on AmigaOS, at least up
5579 # to version 4, is to share data among multiple programs linked
5580 # with the same dynamic library. Since this doesn't match the
5581 # behavior of shared libraries on other platforms, we can use
5587 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5588 allow_undefined_flag=unsupported
5589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5590 # support --undefined. This deserves some investigation. FIXME
5591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5597 cygwin* | mingw* | pw32*)
5598 # hardcode_libdir_flag_spec is actually meaningless, as there is
5599 # no search path for DLLs.
5600 hardcode_libdir_flag_spec='-L$libdir'
5601 allow_undefined_flag=unsupported
5602 always_export_symbols=yes
5604 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5605 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5606 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5607 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5608 else $CC -o impgen impgen.c ; fi)~
5609 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5611 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5613 # cygwin and mingw dlls have different entry points and sets of symbols
5615 # FIXME: what about values for MSVC?
5616 dll_entry=__cygwin_dll_entry@12
5617 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5621 dll_entry=_DllMainCRTStartup@12
5622 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5626 # mingw and cygwin differ, and it's simplest to just exclude the union
5627 # of the two symbol sets.
5628 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5630 # recent cygwin and mingw systems supply a stub DllMain which the user
5631 # can override, but on older systems we have to supply one (in ltdll.c)
5632 if test "x$lt_cv_need_dllmain" = "xyes"; then
5633 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5634 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~
5635 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5641 # Extract the symbol export list from an `--export-all' def file,
5642 # then regenerate the def file from the symbol export list, so that
5643 # the compiled dll only exports the symbol export list.
5644 # Be careful not to strip the DATA tag left be newer dlltools.
5645 export_symbols_cmds="$ltdll_cmds"'
5646 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5647 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5649 # If the export-symbols file already is a .def file (1st line
5650 # is EXPORTS), use it as is.
5651 # If DATA tags from a recent dlltool are present, honour them!
5652 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5653 cp $export_symbols $output_objdir/$soname-def;
5655 echo EXPORTS > $output_objdir/$soname-def;
5657 cat $export_symbols | while read symbol; do
5660 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5661 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5662 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5664 _lt_hint=`expr 1 + \$_lt_hint`;
5668 $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~
5669 $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~
5670 $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~
5671 $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~
5672 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5677 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5680 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5681 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5686 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5690 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5691 *** create shared libraries on Solaris systems. Therefore, libtool
5692 *** is disabling shared libraries support. We urge you to upgrade GNU
5693 *** binutils to release 2.9.1 or newer. Another option is to modify
5694 *** your PATH or compiler configuration so that the native linker is
5695 *** used, and then restart.
5698 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5710 hardcode_shlibpath_var=no
5714 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5723 if test "$ld_shlibs" = yes; then
5724 runpath_var=LD_RUN_PATH
5725 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5726 export_dynamic_flag_spec='${wl}--export-dynamic'
5728 cygwin* | mingw* | pw32*)
5729 # dlltool doesn't understand --whole-archive et. al.
5730 whole_archive_flag_spec=
5733 # ancient GNU ld didn't support --whole-archive et. al.
5734 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5735 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5737 whole_archive_flag_spec=
5743 # PORTME fill in a description of your system's linker (not GNU ld)
5746 allow_undefined_flag=unsupported
5747 always_export_symbols=yes
5748 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'
5749 # Note: this linker hardcodes the directories in LIBPATH if there
5750 # are no directories specified by -L.
5751 hardcode_minus_L=yes
5752 if test "$GCC" = yes && test -z "$link_static_flag"; then
5753 # Neither direct hardcoding nor static linking is supported with a
5755 hardcode_direct=unsupported
5760 if test "$host_cpu" = ia64; then
5761 # On IA64, the linker does run time linking by default, so we don't
5762 # have to do anything special.
5763 aix_use_runtimelinking=no
5764 exp_sym_flag='-Bexport'
5767 aix_use_runtimelinking=no
5769 # Test if we are trying to use run time linking or normal
5770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5771 # need to do runtime linking.
5772 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5773 for ld_flag in $LDFLAGS; do
5776 aix_use_runtimelinking=yes
5783 exp_sym_flag='-bexport'
5784 no_entry_flag='-bnoentry'
5787 # When large executables or shared objects are built, AIX ld can
5788 # have problems creating the table of contents. If linking a library
5789 # or program results in "error TOC overflow" add -mminimal-toc to
5790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5795 hardcode_libdir_separator=':'
5796 if test "$GCC" = yes; then
5797 case $host_os in aix4.[012]|aix4.[012].*)
5798 collect2name=`${CC} -print-prog-name=collect2`
5799 if test -f "$collect2name" && \
5800 strings "$collect2name" | grep resolve_lib_name >/dev/null
5802 # We have reworked collect2
5805 # We have old collect2
5806 hardcode_direct=unsupported
5807 # It fails to find uninstalled libraries when the uninstalled
5808 # path is not listed in the libpath. Setting hardcode_minus_L
5809 # to unsupported forces relinking
5810 hardcode_minus_L=yes
5811 hardcode_libdir_flag_spec='-L$libdir'
5812 hardcode_libdir_separator=
5816 shared_flag='-shared'
5819 if test "$host_cpu" = ia64; then
5820 shared_flag='${wl}-G'
5822 if test "$aix_use_runtimelinking" = yes; then
5823 shared_flag='${wl}-G'
5825 shared_flag='${wl}-bM:SRE'
5830 # It seems that -bexpall can do strange things, so it is better to
5831 # generate a list of symbols to export.
5832 always_export_symbols=yes
5833 if test "$aix_use_runtimelinking" = yes; then
5834 # Warning - without using the other runtime loading flags (-brtl),
5835 # -berok will link without error, but may produce a broken library.
5836 allow_undefined_flag='-berok'
5837 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5838 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"
5840 if test "$host_cpu" = ia64; then
5841 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5842 allow_undefined_flag="-z nodefs"
5843 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"
5845 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5846 # Warning - without using the other run time loading flags,
5847 # -berok will link without error, but may produce a broken library.
5848 allow_undefined_flag='${wl}-berok'
5849 # This is a bit strange, but is similar to how AIX traditionally builds
5850 # it's shared libraries.
5851 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'
5857 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)'
5858 hardcode_libdir_flag_spec='-L$libdir'
5859 hardcode_minus_L=yes
5860 # see comment about different semantics on the GNU ld section
5864 cygwin* | mingw* | pw32*)
5865 # When not using gcc, we currently assume that we are using
5866 # Microsoft Visual C++.
5867 # hardcode_libdir_flag_spec is actually meaningless, as there is
5868 # no search path for DLLs.
5869 hardcode_libdir_flag_spec=' '
5870 allow_undefined_flag=unsupported
5871 # Tell ltmain to make .lib files, not .a files.
5873 # FIXME: Setting linknames here is a bad hack.
5874 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5875 # The linker will automatically build a .lib file if we build a DLL.
5876 old_archive_from_new_cmds='true'
5877 # FIXME: Should let the user specify the lib program.
5878 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5879 fix_srcfile_path='`cygpath -w "$srcfile"`'
5882 darwin* | rhapsody*)
5884 rhapsody* | darwin1.[012])
5885 allow_undefined_flag='-undefined suppress'
5888 allow_undefined_flag='-flat_namespace -undefined suppress'
5891 # FIXME: Relying on posixy $() will cause problems for
5892 # cross-compilation, but unfortunately the echo tests do not
5893 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5894 # `"' quotes if we put them in here... so don't!
5895 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5896 # We need to add '_' to the symbols in $export_symbols first
5897 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5899 hardcode_shlibpath_var=no
5900 whole_archive_flag_spec='-all_load $convenience'
5907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5908 # support. Future versions do this automatically, but an explicit c++rt0.o
5909 # does not break anything, and helps significantly (at the cost of a little
5912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5913 hardcode_libdir_flag_spec='-R$libdir'
5915 hardcode_shlibpath_var=no
5918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5922 hardcode_minus_L=yes
5923 hardcode_shlibpath_var=no
5926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5928 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5929 hardcode_libdir_flag_spec='-R$libdir'
5931 hardcode_shlibpath_var=no
5934 hpux9* | hpux10* | hpux11*)
5936 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' ;;
5937 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5940 hardcode_libdir_separator=:
5942 hardcode_minus_L=yes # Not in the search PATH, but as the default
5943 # location of the library.
5944 export_dynamic_flag_spec='${wl}-E'
5947 irix5* | irix6* | nonstopux*)
5948 if test "$GCC" = yes; then
5949 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'
5950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5952 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'
5953 hardcode_libdir_flag_spec='-rpath $libdir'
5955 hardcode_libdir_separator=:
5956 link_all_deplibs=yes
5960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5965 hardcode_libdir_flag_spec='-R$libdir'
5967 hardcode_shlibpath_var=no
5971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5974 hardcode_libdir_separator=:
5975 hardcode_shlibpath_var=no
5980 hardcode_shlibpath_var=no
5981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5984 export_dynamic_flag_spec='${wl}-E'
5987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5989 hardcode_libdir_flag_spec='-R$libdir'
5992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6000 hardcode_libdir_flag_spec='-L$libdir'
6001 hardcode_minus_L=yes
6002 allow_undefined_flag=unsupported
6003 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'
6004 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6008 if test "$GCC" = yes; then
6009 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6010 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'
6012 allow_undefined_flag=' -expect_unresolved \*'
6013 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'
6015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6016 hardcode_libdir_separator=:
6019 osf4* | osf5*) # as osf3* with the addition of -msym flag
6020 if test "$GCC" = yes; then
6021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6022 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'
6023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6025 allow_undefined_flag=' -expect_unresolved \*'
6026 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'
6027 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6028 $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'
6030 #Both c and cxx compiler support -rpath directly
6031 hardcode_libdir_flag_spec='-rpath $libdir'
6033 hardcode_libdir_separator=:
6037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6038 hardcode_shlibpath_var=no
6039 runpath_var=LD_RUN_PATH
6040 hardcode_runpath_var=yes
6041 export_dynamic_flag_spec='${wl}-Bexport'
6045 # gcc --version < 3.0 without binutils cannot create self contained
6046 # shared libraries reliably, requiring libgcc.a to resolve some of
6047 # the object symbols generated in some cases. Libraries that use
6048 # assert need libgcc.a to resolve __eprintf, for example. Linking
6049 # a copy of libgcc.a into every shared library to guarantee resolving
6050 # such symbols causes other problems: According to Tim Van Holder
6051 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6052 # (to the application) exception stack for one thing.
6053 no_undefined_flag=' -z defs'
6054 if test "$GCC" = yes; then
6055 case `$CC --version 2>/dev/null` in
6059 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6060 *** create self contained shared libraries on Solaris systems, without
6061 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6062 *** -no-undefined support, which will at least allow you to build shared
6063 *** libraries. However, you may find that when you link such libraries
6064 *** into an application without using GCC, you have to manually add
6065 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6066 *** upgrade to a newer version of GCC. Another option is to rebuild your
6067 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6074 # $CC -shared without GNU ld will not create a library from C++
6075 # object files and a static libstdc++, better avoid it by now
6076 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6077 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6079 hardcode_libdir_flag_spec='-R$libdir'
6080 hardcode_shlibpath_var=no
6082 solaris2.[0-5] | solaris2.[0-5].*) ;;
6083 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6084 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6086 link_all_deplibs=yes
6090 if test "x$host_vendor" = xsequent; then
6091 # Use $CC to link under sequent, because it throws in some extra .o
6092 # files that make .init and .fini sections work.
6093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6097 hardcode_libdir_flag_spec='-L$libdir'
6099 hardcode_minus_L=yes
6100 hardcode_shlibpath_var=no
6104 case $host_vendor in
6106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107 hardcode_direct=yes # is this really true???
6110 ## LD is ld it makes a PLAMLIB
6111 ## CC just makes a GrossModule.
6112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6113 reload_cmds='$CC -r -o $output$reload_objs'
6117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6121 runpath_var='LD_RUN_PATH'
6122 hardcode_shlibpath_var=no
6126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6127 hardcode_shlibpath_var=no
6128 export_dynamic_flag_spec='-Bexport'
6132 no_undefined_flag=' -z text'
6133 # $CC -shared without GNU ld will not create a library from C++
6134 # object files and a static libstdc++, better avoid it by now
6135 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6136 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6138 hardcode_libdir_flag_spec=
6139 hardcode_shlibpath_var=no
6140 runpath_var='LD_RUN_PATH'
6144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6145 hardcode_libdir_flag_spec='-L$libdir'
6146 hardcode_shlibpath_var=no
6150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6151 hardcode_libdir_flag_spec='-L$libdir'
6152 hardcode_shlibpath_var=no
6156 if test -d /usr/nec; then
6157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6158 hardcode_shlibpath_var=no
6159 runpath_var=LD_RUN_PATH
6160 hardcode_runpath_var=yes
6166 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6169 hardcode_shlibpath_var=no
6170 hardcode_runpath_var=yes
6171 runpath_var=LD_RUN_PATH
6174 sysv5uw7* | unixware7*)
6175 no_undefined_flag='${wl}-z ${wl}text'
6176 if test "$GCC" = yes; then
6177 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6179 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181 runpath_var='LD_RUN_PATH'
6182 hardcode_shlibpath_var=no
6190 echo "$ac_t""$ld_shlibs" 1>&6
6191 test "$ld_shlibs" = no && can_build_shared=no
6195 ## FIXME: this should be a separate macro
6197 # Check hardcoding attributes.
6198 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6199 echo "configure:6200: checking how to hardcode library paths into programs" >&5
6201 if test -n "$hardcode_libdir_flag_spec" || \
6202 test -n "$runpath_var"; then
6204 # We can hardcode non-existant directories.
6205 if test "$hardcode_direct" != no &&
6206 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6207 # have to relink, otherwise we might link with an installed library
6208 # when we should be linking with a yet-to-be-installed one
6209 ## test "$hardcode_shlibpath_var" != no &&
6210 test "$hardcode_minus_L" != no; then
6211 # Linking always hardcodes the temporary library directory.
6212 hardcode_action=relink
6214 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6215 hardcode_action=immediate
6218 # We cannot hardcode anything, or else we can only hardcode existing
6220 hardcode_action=unsupported
6222 echo "$ac_t""$hardcode_action" 1>&6
6226 ## FIXME: this should be a separate macro
6230 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6231 echo "configure:6232: checking whether stripping libraries is possible" >&5
6232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6235 echo "$ac_t""yes" 1>&6
6237 echo "$ac_t""no" 1>&6
6242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6243 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6245 ## FIXME: this should be a separate macro
6247 # PORTME Fill in your ld.so characteristics
6248 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6249 echo "configure:6250: checking dynamic linker characteristics" >&5
6251 libname_spec='lib$name'
6258 shlibpath_overrides_runpath=unknown
6260 dynamic_linker="$host_os ld.so"
6261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6267 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6268 shlibpath_var=LIBPATH
6270 # AIX has no versioning support, so we append a major version to the name.
6271 soname_spec='${libname}${release}.so$major'
6278 hardcode_into_libs=yes
6279 if test "$host_cpu" = ia64; then
6280 # AIX 5 supports IA64
6281 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6282 shlibpath_var=LD_LIBRARY_PATH
6284 # With GCC up to 2.95.x, collect2 would create an import file
6285 # for dependence libraries. The import file would start with
6286 # the line `#! .'. This would cause the generated library to
6287 # depend on `.', always an invalid library. This was fixed in
6288 # development snapshots of GCC prior to 3.0.
6290 aix4 | aix4.[01] | aix4.[01].*)
6291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6293 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6300 # AIX (on Power*) has no versioning support, so currently we can
6301 # not hardcode correct soname into executable. Probably we can
6302 # add versioning support to collect2, so additional links can
6303 # be useful in future.
6304 if test "$aix_use_runtimelinking" = yes; then
6305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6306 # instead of lib<name>.a to let people know that these are not
6307 # typical AIX shared libraries.
6308 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6310 # We preserve .a as extension for shared libraries through AIX4.2
6311 # and later when we are not doing run time linking.
6312 library_names_spec='${libname}${release}.a $libname.a'
6313 soname_spec='${libname}${release}.so$major'
6315 shlibpath_var=LIBPATH
6317 hardcode_into_libs=yes
6321 library_names_spec='$libname.ixlibrary $libname.a'
6322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6323 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'
6327 library_names_spec='${libname}.so'
6328 dynamic_linker="$host_os ld.so"
6329 shlibpath_var=LIBRARY_PATH
6335 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6336 soname_spec='${libname}${release}.so$major'
6337 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6338 shlibpath_var=LD_LIBRARY_PATH
6339 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6340 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6341 export_dynamic_flag_spec=-rdynamic
6342 # the default ld.so.conf also contains /usr/contrib/lib and
6343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6344 # libtool to hard-code these into programs
6347 cygwin* | mingw* | pw32*)
6348 version_type=windows
6351 case $GCC,$host_os in
6353 library_names_spec='$libname.dll.a'
6354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6355 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6356 dldir=$destdir/`dirname \$dlpath`~
6357 test -d \$dldir || mkdir -p \$dldir~
6358 $install_prog .libs/$dlname \$dldir/$dlname'
6359 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6360 dlpath=$dir/\$dldll~
6364 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6371 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6374 dynamic_linker='Win32 ld.exe'
6375 # FIXME: first we should search . and the directory the executable is in
6379 darwin* | rhapsody*)
6380 dynamic_linker="$host_os dyld"
6384 # FIXME: Relying on posixy $() will cause problems for
6385 # cross-compilation, but unfortunately the echo tests do not
6386 # yet detect zsh echo's removal of \ escapes.
6387 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)'
6388 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6389 shlibpath_overrides_runpath=yes
6390 shlibpath_var=DYLD_LIBRARY_PATH
6398 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6399 version_type=freebsd-$objformat
6400 case $version_type in
6402 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6407 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6411 shlibpath_var=LD_LIBRARY_PATH
6414 shlibpath_overrides_runpath=yes
6417 shlibpath_overrides_runpath=no
6418 hardcode_into_libs=yes
6427 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6428 soname_spec='${libname}${release}.so$major'
6429 shlibpath_var=LD_LIBRARY_PATH
6430 hardcode_into_libs=yes
6433 hpux9* | hpux10* | hpux11*)
6434 # Give a soname corresponding to the major version so that dld.sl refuses to
6435 # link against other versions.
6436 dynamic_linker="$host_os dld.sl"
6440 shlibpath_var=SHLIB_PATH
6441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6442 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6443 soname_spec='${libname}${release}.sl$major'
6444 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6445 postinstall_cmds='chmod 555 $lib'
6448 irix5* | irix6* | nonstopux*)
6450 nonstopux*) version_type=nonstopux ;;
6451 *) version_type=irix ;;
6455 soname_spec='${libname}${release}.so$major'
6456 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6458 irix5* | nonstopux*)
6462 case $LD in # libtool.m4 will add one of these switches to LD
6463 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6464 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6465 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6466 *) libsuff= shlibsuff= libmagic=never-match;;
6470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6471 shlibpath_overrides_runpath=no
6472 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6473 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6476 # No shared lib support for Linux oldld, aout, or coff.
6477 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6481 # This must be Linux ELF.
6486 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6487 soname_spec='${libname}${release}.so$major'
6488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6489 shlibpath_var=LD_LIBRARY_PATH
6490 shlibpath_overrides_runpath=no
6491 # This implies no fast_install, which is unacceptable.
6492 # Some rework will be needed to allow for fast_install
6493 # before this can be enabled.
6494 hardcode_into_libs=yes
6496 # We used to test for /lib/ld.so.1 and disable shared libraries on
6497 # powerpc, because MkLinux only supported shared libraries with the
6498 # GNU dynamic linker. Since this was broken with cross compilers,
6499 # most powerpc-linux boxes support dynamic linking these days and
6500 # people can always --disable-shared, the test was removed, and we
6501 # assume the GNU/Linux dynamic linker is in use.
6502 dynamic_linker='GNU/Linux ld.so'
6509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6510 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6512 dynamic_linker='NetBSD (a.out) ld.so'
6514 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6515 soname_spec='${libname}${release}.so$major'
6516 dynamic_linker='NetBSD ld.elf_so'
6518 shlibpath_var=LD_LIBRARY_PATH
6519 shlibpath_overrides_runpath=yes
6520 hardcode_into_libs=yes
6525 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6526 shlibpath_var=LD_LIBRARY_PATH
6527 shlibpath_overrides_runpath=yes
6534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6536 openbsd2.[89] | openbsd2.[89].*)
6537 shlibpath_overrides_runpath=no
6540 shlibpath_overrides_runpath=yes
6544 shlibpath_overrides_runpath=yes
6546 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6548 shlibpath_var=LD_LIBRARY_PATH
6552 libname_spec='$name'
6554 library_names_spec='$libname.dll $libname.a'
6555 dynamic_linker='OS/2 ld.exe'
6556 shlibpath_var=LIBPATH
6559 osf3* | osf4* | osf5*)
6562 soname_spec='${libname}${release}.so$major'
6563 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6564 shlibpath_var=LD_LIBRARY_PATH
6565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6567 hardcode_into_libs=yes
6572 soname_spec='${libname}${release}.so$major'
6573 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6574 shlibpath_var=LD_LIBRARY_PATH
6581 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6582 soname_spec='${libname}${release}.so$major'
6583 shlibpath_var=LD_LIBRARY_PATH
6584 shlibpath_overrides_runpath=yes
6585 hardcode_into_libs=yes
6586 # ldd complains unless libraries are executable
6587 postinstall_cmds='chmod +x $lib'
6592 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6594 shlibpath_var=LD_LIBRARY_PATH
6595 shlibpath_overrides_runpath=yes
6596 if test "$with_gnu_ld" = yes; then
6602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6604 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6605 soname_spec='${libname}${release}.so$major'
6606 shlibpath_var=LD_LIBRARY_PATH
6607 case $host_vendor in
6609 shlibpath_overrides_runpath=no
6611 export_dynamic_flag_spec='${wl}-Blargedynsym'
6612 runpath_var=LD_RUN_PATH
6620 shlibpath_overrides_runpath=no
6621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6628 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6629 soname_spec='${libname}${release}.so$major'
6630 shlibpath_var=LD_LIBRARY_PATH
6637 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6638 soname_spec='${libname}${release}.so$major'
6639 shlibpath_var=LD_LIBRARY_PATH
6643 if test -d /usr/nec ;then
6645 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6646 soname_spec='$libname.so.$major'
6647 shlibpath_var=LD_LIBRARY_PATH
6655 echo "$ac_t""$dynamic_linker" 1>&6
6656 test "$dynamic_linker" = no && can_build_shared=no
6660 ## FIXME: this should be a separate macro
6662 # Report the final consequences.
6663 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6664 echo "configure:6665: checking if libtool supports shared libraries" >&5
6665 echo "$ac_t""$can_build_shared" 1>&6
6669 ## FIXME: this should be a separate macro
6671 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6672 echo "configure:6673: checking whether to build shared libraries" >&5
6673 test "$can_build_shared" = "no" && enable_shared=no
6675 # On AIX, shared libraries and static libraries use the same namespace, and
6676 # are all built from PIC.
6679 test "$enable_shared" = yes && enable_static=no
6680 if test -n "$RANLIB"; then
6681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6682 postinstall_cmds='$RANLIB $lib'
6687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6688 test "$enable_shared" = yes && enable_static=no
6692 echo "$ac_t""$enable_shared" 1>&6
6696 ## FIXME: this should be a separate macro
6698 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6699 echo "configure:6700: checking whether to build static libraries" >&5
6700 # Make sure either enable_shared or enable_static is yes.
6701 test "$enable_shared" = yes || enable_static=yes
6702 echo "$ac_t""$enable_static" 1>&6
6706 if test "$hardcode_action" = relink; then
6707 # Fast installation is not supported
6708 enable_fast_install=no
6709 elif test "$shlibpath_overrides_runpath" = yes ||
6710 test "$enable_shared" = no; then
6711 # Fast installation is not necessary
6712 enable_fast_install=needless
6715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6716 if test "$GCC" = yes; then
6717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6720 if test "x$enable_dlopen" != xyes; then
6721 enable_dlopen=unknown
6722 enable_dlopen_self=unknown
6723 enable_dlopen_self_static=unknown
6730 lt_cv_dlopen="load_add_on"
6732 lt_cv_dlopen_self=yes
6735 cygwin* | mingw* | pw32*)
6736 lt_cv_dlopen="LoadLibrary"
6741 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6742 echo "configure:6743: checking for shl_load" >&5
6743 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6744 echo $ac_n "(cached) $ac_c" 1>&6
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6749 /* System header to define __stub macros and hopefully few prototypes,
6750 which can conflict with char shl_load(); below. */
6752 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6760 /* The GNU C library defines this for functions which it implements
6761 to always fail with ENOSYS. Some functions are actually named
6762 something starting with __ and the normal name is an alias. */
6763 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 eval "ac_cv_func_shl_load=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_func_shl_load=no"
6783 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6784 echo "$ac_t""yes" 1>&6
6785 lt_cv_dlopen="shl_load"
6787 echo "$ac_t""no" 1>&6
6788 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6789 echo "configure:6790: checking for shl_load in -ldld" >&5
6790 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6794 ac_save_LIBS="$LIBS"
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810 eval "ac_cv_lib_$ac_lib_var=yes"
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 eval "ac_cv_lib_$ac_lib_var=no"
6818 LIBS="$ac_save_LIBS"
6821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6825 echo "$ac_t""no" 1>&6
6826 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6827 echo "configure:6828: checking for dlopen" >&5
6828 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 /* System header to define __stub macros and hopefully few prototypes,
6835 which can conflict with char dlopen(); below. */
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6845 /* The GNU C library defines this for functions which it implements
6846 to always fail with ENOSYS. Some functions are actually named
6847 something starting with __ and the normal name is an alias. */
6848 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 eval "ac_cv_func_dlopen=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 eval "ac_cv_func_dlopen=no"
6868 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6869 echo "$ac_t""yes" 1>&6
6870 lt_cv_dlopen="dlopen"
6872 echo "$ac_t""no" 1>&6
6873 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6874 echo "configure:6875: checking for dlopen in -ldl" >&5
6875 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6876 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6877 echo $ac_n "(cached) $ac_c" 1>&6
6879 ac_save_LIBS="$LIBS"
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6893 if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6895 eval "ac_cv_lib_$ac_lib_var=yes"
6897 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6900 eval "ac_cv_lib_$ac_lib_var=no"
6903 LIBS="$ac_save_LIBS"
6906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6907 echo "$ac_t""yes" 1>&6
6908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6910 echo "$ac_t""no" 1>&6
6911 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6912 echo "configure:6913: checking for dlopen in -lsvld" >&5
6913 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6914 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 ac_save_LIBS="$LIBS"
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 eval "ac_cv_lib_$ac_lib_var=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_lib_$ac_lib_var=no"
6941 LIBS="$ac_save_LIBS"
6944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6945 echo "$ac_t""yes" 1>&6
6946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6948 echo "$ac_t""no" 1>&6
6949 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6950 echo "configure:6951: checking for dld_link in -ldld" >&5
6951 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6952 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6953 echo $ac_n "(cached) $ac_c" 1>&6
6955 ac_save_LIBS="$LIBS"
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* Override any gcc2 internal prototype to avoid an error. */
6961 /* We use char because int might match the return type of a gcc2
6962 builtin and then its argument prototype would still apply. */
6969 if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6971 eval "ac_cv_lib_$ac_lib_var=yes"
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6976 eval "ac_cv_lib_$ac_lib_var=no"
6979 LIBS="$ac_save_LIBS"
6982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6983 echo "$ac_t""yes" 1>&6
6984 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6986 echo "$ac_t""no" 1>&6
7007 if test "x$lt_cv_dlopen" != xno; then
7013 case $lt_cv_dlopen in
7015 save_CPPFLAGS="$CPPFLAGS"
7016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7018 save_LDFLAGS="$LDFLAGS"
7019 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7022 LIBS="$lt_cv_dlopen_libs $LIBS"
7024 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether a program can dlopen itself" >&5
7026 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 if test "$cross_compiling" = yes; then :
7030 lt_cv_dlopen_self=cross
7032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7033 lt_status=$lt_dlunknown
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7045 # define LT_DLGLOBAL RTLD_GLOBAL
7048 # define LT_DLGLOBAL DL_GLOBAL
7050 # define LT_DLGLOBAL 0
7054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7055 find out it does not work in some platform. */
7056 #ifndef LT_DLLAZY_OR_NOW
7058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7061 # define LT_DLLAZY_OR_NOW DL_LAZY
7064 # define LT_DLLAZY_OR_NOW RTLD_NOW
7067 # define LT_DLLAZY_OR_NOW DL_NOW
7069 # define LT_DLLAZY_OR_NOW 0
7077 extern "C" void exit (int);
7080 void fnord() { int i=42;}
7083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7084 int status = $lt_dlunknown;
7088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7090 /* dlclose (self); */
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7097 (./conftest; exit; ) 2>/dev/null
7100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7102 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7105 # compilation failed
7106 lt_cv_dlopen_self=no
7114 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7116 if test "x$lt_cv_dlopen_self" = xyes; then
7117 LDFLAGS="$LDFLAGS $link_static_flag"
7118 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7119 echo "configure:7120: checking whether a statically linked program can dlopen itself" >&5
7120 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7121 echo $ac_n "(cached) $ac_c" 1>&6
7123 if test "$cross_compiling" = yes; then :
7124 lt_cv_dlopen_self_static=cross
7126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7127 lt_status=$lt_dlunknown
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7139 # define LT_DLGLOBAL RTLD_GLOBAL
7142 # define LT_DLGLOBAL DL_GLOBAL
7144 # define LT_DLGLOBAL 0
7148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7149 find out it does not work in some platform. */
7150 #ifndef LT_DLLAZY_OR_NOW
7152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7155 # define LT_DLLAZY_OR_NOW DL_LAZY
7158 # define LT_DLLAZY_OR_NOW RTLD_NOW
7161 # define LT_DLLAZY_OR_NOW DL_NOW
7163 # define LT_DLLAZY_OR_NOW 0
7171 extern "C" void exit (int);
7174 void fnord() { int i=42;}
7177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7178 int status = $lt_dlunknown;
7182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7184 /* dlclose (self); */
7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7191 (./conftest; exit; ) 2>/dev/null
7194 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7195 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7196 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7199 # compilation failed
7200 lt_cv_dlopen_self_static=no
7208 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7211 CPPFLAGS="$save_CPPFLAGS"
7212 LDFLAGS="$save_LDFLAGS"
7217 case $lt_cv_dlopen_self in
7218 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7219 *) enable_dlopen_self=unknown ;;
7222 case $lt_cv_dlopen_self_static in
7223 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7224 *) enable_dlopen_self_static=unknown ;;
7229 ## FIXME: this should be a separate macro
7231 if test "$enable_shared" = yes && test "$GCC" = yes; then
7232 case $archive_cmds in
7234 # FIXME: we may have to deal with multi-command sequences.
7237 # Test whether the compiler implicitly links with -lc since on some
7238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7239 # to ld, don't add -lc before -lgcc.
7240 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7241 echo "configure:7242: checking whether -lc should be explicitly linked in" >&5
7242 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7246 echo 'static int dummy;' > conftest.$ac_ext
7248 if { (eval echo configure:7249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251 libobjs=conftest.$ac_objext
7253 wl=$lt_cv_prog_cc_wl
7259 save_allow_undefined_flag=$allow_undefined_flag
7260 allow_undefined_flag=
7261 if { (eval echo configure:7262: \"$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; }
7263 lt_cv_archive_cmds_need_lc=no
7265 lt_cv_archive_cmds_need_lc=yes
7267 allow_undefined_flag=$save_allow_undefined_flag
7269 cat conftest.err 1>&5
7273 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7277 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7281 ## FIXME: this should be a separate macro
7283 # The second clause should only fire when bootstrapping the
7284 # libtool distribution, otherwise you forgot to ship ltmain.sh
7285 # with your package, and you will get complaints that there are
7286 # no rules to generate ltmain.sh.
7287 if test -f "$ltmain"; then
7290 # If there is no Makefile yet, we rely on a make rule to execute
7291 # `config.status --recheck' to rerun these tests and create the
7292 # libtool script then.
7293 test -f Makefile && make "$ltmain"
7296 if test -f "$ltmain"; then
7297 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7300 echo creating $ofile
7302 # Now quote all the things that may contain metacharacters while being
7303 # careful not to overquote the AC_SUBSTed values. We take copies of the
7304 # variables and quote the copies for generation of the libtool script.
7305 for var in echo old_CC old_CFLAGS SED \
7306 AR AR_FLAGS CC LD LN_S NM SHELL \
7307 reload_flag reload_cmds wl \
7308 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7309 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7310 library_names_spec soname_spec \
7311 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7312 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7313 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7314 old_striplib striplib file_magic_cmd export_symbols_cmds \
7315 deplibs_check_method allow_undefined_flag no_undefined_flag \
7316 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7317 global_symbol_to_c_name_address \
7318 hardcode_libdir_flag_spec hardcode_libdir_separator \
7319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7320 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7323 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7324 old_postinstall_cmds | old_postuninstall_cmds | \
7325 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7326 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7327 postinstall_cmds | postuninstall_cmds | \
7328 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7329 # Double-quote double-evaled strings.
7330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7338 cat <<__EOF__ > "${ofile}T"
7341 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7342 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7343 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7345 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7346 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7348 # This program is free software; you can redistribute it and/or modify
7349 # it under the terms of the GNU General Public License as published by
7350 # the Free Software Foundation; either version 2 of the License, or
7351 # (at your option) any later version.
7353 # This program is distributed in the hope that it will be useful, but
7354 # WITHOUT ANY WARRANTY; without even the implied warranty of
7355 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7356 # General Public License for more details.
7358 # You should have received a copy of the GNU General Public License
7359 # along with this program; if not, write to the Free Software
7360 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7362 # As a special exception to the GNU General Public License, if you
7363 # distribute this file as part of a program that contains a
7364 # configuration script generated by Autoconf, you may include it under
7365 # the same distribution terms that you use for the rest of that program.
7367 # A sed that does not truncate output.
7370 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7371 Xsed="${SED} -e s/^X//"
7373 # The HP-UX ksh and POSIX shell print the target directory to stdout
7375 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7377 # ### BEGIN LIBTOOL CONFIG
7379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7381 # Shell to use when invoking shell scripts.
7384 # Whether or not to build shared libraries.
7385 build_libtool_libs=$enable_shared
7387 # Whether or not to build static libraries.
7388 build_old_libs=$enable_static
7390 # Whether or not to add -lc for building shared libraries.
7391 build_libtool_need_lc=$need_lc
7393 # Whether or not to optimize for fast installation.
7394 fast_install=$enable_fast_install
7397 host_alias=$host_alias
7400 # An echo program that does not interpret backslashes.
7405 AR_FLAGS=$lt_AR_FLAGS
7407 # The default C compiler.
7410 # Is the compiler the GNU C compiler?
7413 # The linker used to build libraries.
7416 # Whether we need hard or soft links.
7419 # A BSD-compatible nm program.
7422 # A symbol stripping program
7425 # Used to examine libraries when file_magic_cmd begins "file"
7426 MAGIC_CMD=$MAGIC_CMD
7428 # Used on cygwin: DLL creation program.
7431 # Used on cygwin: object dumper.
7434 # Used on cygwin: assembler.
7437 # The name of the directory that contains temporary libtool files.
7440 # How to create reloadable object files.
7441 reload_flag=$lt_reload_flag
7442 reload_cmds=$lt_reload_cmds
7444 # How to pass a linker flag through the compiler.
7447 # Object file suffix (normally "o").
7450 # Old archive suffix (normally "a").
7453 # Executable file suffix (normally "").
7456 # Additional compiler flags for building library objects.
7457 pic_flag=$lt_pic_flag
7460 # Does compiler simultaneously support -c and -o options?
7461 compiler_c_o=$lt_compiler_c_o
7463 # Can we write directly to a .lo ?
7464 compiler_o_lo=$lt_compiler_o_lo
7466 # Must we lock files when doing compilation ?
7467 need_locks=$lt_need_locks
7469 # Do we need the lib prefix for modules?
7470 need_lib_prefix=$need_lib_prefix
7472 # Do we need a version for libraries?
7473 need_version=$need_version
7475 # Whether dlopen is supported.
7476 dlopen_support=$enable_dlopen
7478 # Whether dlopen of programs is supported.
7479 dlopen_self=$enable_dlopen_self
7481 # Whether dlopen of statically linked programs is supported.
7482 dlopen_self_static=$enable_dlopen_self_static
7484 # Compiler flag to prevent dynamic linking.
7485 link_static_flag=$lt_link_static_flag
7487 # Compiler flag to turn off builtin functions.
7488 no_builtin_flag=$lt_no_builtin_flag
7490 # Compiler flag to allow reflexive dlopens.
7491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7493 # Compiler flag to generate shared objects directly from archives.
7494 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7496 # Compiler flag to generate thread-safe objects.
7497 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7499 # Library versioning type.
7500 version_type=$version_type
7502 # Format of library name prefix.
7503 libname_spec=$lt_libname_spec
7505 # List of archive names. First name is the real one, the rest are links.
7506 # The last name is the one that the linker finds with -lNAME.
7507 library_names_spec=$lt_library_names_spec
7509 # The coded name of the library, if different from the real name.
7510 soname_spec=$lt_soname_spec
7512 # Commands used to build and install an old-style archive.
7514 old_archive_cmds=$lt_old_archive_cmds
7515 old_postinstall_cmds=$lt_old_postinstall_cmds
7516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7518 # Create an old-style archive from a shared archive.
7519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7521 # Create a temporary old-style archive to link instead of a shared archive.
7522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7524 # Commands used to build and install a shared archive.
7525 archive_cmds=$lt_archive_cmds
7526 archive_expsym_cmds=$lt_archive_expsym_cmds
7527 postinstall_cmds=$lt_postinstall_cmds
7528 postuninstall_cmds=$lt_postuninstall_cmds
7530 # Commands to strip libraries.
7531 old_striplib=$lt_old_striplib
7532 striplib=$lt_striplib
7534 # Method to check whether dependent libraries are shared objects.
7535 deplibs_check_method=$lt_deplibs_check_method
7537 # Command to use when deplibs_check_method == file_magic.
7538 file_magic_cmd=$lt_file_magic_cmd
7540 # Flag that allows shared libraries with undefined symbols to be built.
7541 allow_undefined_flag=$lt_allow_undefined_flag
7543 # Flag that forces no undefined symbols.
7544 no_undefined_flag=$lt_no_undefined_flag
7546 # Commands used to finish a libtool library installation in a directory.
7547 finish_cmds=$lt_finish_cmds
7549 # Same as above, but a single script fragment to be evaled but not shown.
7550 finish_eval=$lt_finish_eval
7552 # Take the output of nm and produce a listing of raw symbols and C names.
7553 global_symbol_pipe=$lt_global_symbol_pipe
7555 # Transform the output of nm in a proper C declaration
7556 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7558 # Transform the output of nm in a C name address pair
7559 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7561 # This is the shared library runtime path variable.
7562 runpath_var=$runpath_var
7564 # This is the shared library path variable.
7565 shlibpath_var=$shlibpath_var
7567 # Is shlibpath searched before the hard-coded library search path?
7568 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7570 # How to hardcode a shared library path into an executable.
7571 hardcode_action=$hardcode_action
7573 # Whether we should hardcode library paths into libraries.
7574 hardcode_into_libs=$hardcode_into_libs
7576 # Flag to hardcode \$libdir into a binary during linking.
7577 # This must work even if \$libdir does not exist.
7578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7580 # Whether we need a single -rpath flag with a separated argument.
7581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7583 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7585 hardcode_direct=$hardcode_direct
7587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7589 hardcode_minus_L=$hardcode_minus_L
7591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7592 # the resulting binary.
7593 hardcode_shlibpath_var=$hardcode_shlibpath_var
7595 # Variables whose values should be saved in libtool wrapper scripts and
7596 # restored at relink time.
7597 variables_saved_for_relink="$variables_saved_for_relink"
7599 # Whether libtool must link a program against all its dependency libraries.
7600 link_all_deplibs=$link_all_deplibs
7602 # Compile-time system search path for libraries
7603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7605 # Run-time system search path for libraries
7606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7608 # Fix the shell variable \$srcfile for the compiler.
7609 fix_srcfile_path="$fix_srcfile_path"
7611 # Set to yes if exported symbols are required.
7612 always_export_symbols=$always_export_symbols
7614 # The commands to list exported symbols.
7615 export_symbols_cmds=$lt_export_symbols_cmds
7617 # The commands to extract the exported symbol list from a shared archive.
7618 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7620 # Symbols that should not be listed in the preloaded symbols.
7621 exclude_expsyms=$lt_exclude_expsyms
7623 # Symbols that must always be exported.
7624 include_expsyms=$lt_include_expsyms
7626 # ### END LIBTOOL CONFIG
7632 cat <<\EOF >> "${ofile}T"
7634 # AIX sometimes has problems with the GCC collect2 program. For some
7635 # reason, if we set the COLLECT_NAMES environment variable, the problems
7636 # vanish in a puff of smoke.
7637 if test "X${COLLECT_NAMES+set}" != Xset; then
7639 export COLLECT_NAMES
7646 cygwin* | mingw* | pw32* | os2*)
7647 cat <<'EOF' >> "${ofile}T"
7648 # This is a source program that is used to create dlls on Windows
7649 # Don't remove nor modify the starting and closing comments
7650 # /* ltdll.c starts here */
7651 # #define WIN32_LEAN_AND_MEAN
7652 # #include <windows.h>
7653 # #undef WIN32_LEAN_AND_MEAN
7654 # #include <stdio.h>
7656 # #ifndef __CYGWIN__
7657 # # ifdef __CYGWIN32__
7658 # # define __CYGWIN__ __CYGWIN32__
7662 # #ifdef __cplusplus
7665 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7666 # #ifdef __cplusplus
7671 # #include <cygwin/cygwin_dll.h>
7672 # DECLARE_CYGWIN_DLL( DllMain );
7674 # HINSTANCE __hDllInstance_base;
7677 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7679 # __hDllInstance_base = hInst;
7682 # /* ltdll.c ends here */
7683 # This is a source program that is used to create import libraries
7684 # on Windows for dlls which lack them. Don't remove nor modify the
7685 # starting and closing comments
7686 # /* impgen.c starts here */
7687 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7689 # This file is part of GNU libtool.
7691 # This program is free software; you can redistribute it and/or modify
7692 # it under the terms of the GNU General Public License as published by
7693 # the Free Software Foundation; either version 2 of the License, or
7694 # (at your option) any later version.
7696 # This program is distributed in the hope that it will be useful,
7697 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7698 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7699 # GNU General Public License for more details.
7701 # You should have received a copy of the GNU General Public License
7702 # along with this program; if not, write to the Free Software
7703 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7706 # #include <stdio.h> /* for printf() */
7707 # #include <unistd.h> /* for open(), lseek(), read() */
7708 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7709 # #include <string.h> /* for strdup() */
7711 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7713 # #define O_BINARY 0
7716 # static unsigned int
7717 # pe_get16 (fd, offset)
7721 # unsigned char b[2];
7722 # lseek (fd, offset, SEEK_SET);
7724 # return b[0] + (b[1]<<8);
7727 # static unsigned int
7728 # pe_get32 (fd, offset)
7732 # unsigned char b[4];
7733 # lseek (fd, offset, SEEK_SET);
7735 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7738 # static unsigned int
7742 # unsigned char *b = ptr;
7743 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7752 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7753 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7754 # unsigned long name_rvas, nexp;
7755 # unsigned char *expdata, *erva;
7756 # char *filename, *dll_name;
7758 # filename = argv[1];
7760 # dll = open(filename, O_RDONLY|O_BINARY);
7764 # dll_name = filename;
7766 # for (i=0; filename[i]; i++)
7767 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7768 # dll_name = filename + i +1;
7770 # pe_header_offset = pe_get32 (dll, 0x3c);
7771 # opthdr_ofs = pe_header_offset + 4 + 20;
7772 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7774 # if (num_entries < 1) /* no exports */
7777 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7778 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7779 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7780 # secptr = (pe_header_offset + 4 + 20 +
7781 # pe_get16 (dll, pe_header_offset + 4 + 16));
7784 # for (i = 0; i < nsections; i++)
7787 # unsigned long secptr1 = secptr + 40 * i;
7788 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7789 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7790 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7791 # lseek(dll, secptr1, SEEK_SET);
7792 # read(dll, sname, 8);
7793 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7795 # expptr = fptr + (export_rva - vaddr);
7796 # if (export_rva + export_size > vaddr + vsize)
7797 # export_size = vsize - (export_rva - vaddr);
7802 # expdata = (unsigned char*)malloc(export_size);
7803 # lseek (dll, expptr, SEEK_SET);
7804 # read (dll, expdata, export_size);
7805 # erva = expdata - export_rva;
7807 # nexp = pe_as32 (expdata+24);
7808 # name_rvas = pe_as32 (expdata+32);
7810 # printf ("EXPORTS\n");
7811 # for (i = 0; i<nexp; i++)
7813 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7814 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7819 # /* impgen.c ends here */
7825 # We use sed instead of cat because bash on DJGPP gets confused if
7826 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7827 # text mode, it properly converts lines to CR/LF. This bash problem
7828 # is reportedly fixed, but why not run on old versions too?
7829 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7831 mv -f "${ofile}T" "$ofile" || \
7832 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7842 # This can be used to rebuild libtool when needed
7843 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7845 # Always use our own libtool.
7846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7848 # Prevent multiple expansion
7852 # test for ln hardlink support
7853 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7854 echo "configure:7855: checking whether ln works" >&5
7855 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7858 rm -f conftest.src conftest.dst
7859 echo "conftest" > conftest.src
7860 if ln conftest.src conftest.dst 2>/dev/null
7862 ol_cv_prog_LN_H="ln"
7864 ol_cv_prog_LN_H="cp"
7866 rm -f conftest.src conftest.dst
7869 LN_H="$ol_cv_prog_LN_H"
7870 if test "$ol_cv_prog_LN_H" = "ln"; then
7871 echo "$ac_t""yes" 1>&6
7873 echo "$ac_t""no" 1>&6
7876 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7877 echo "configure:7878: checking whether ln -s works" >&5
7878 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7882 if ln -s X conftestdata 2>/dev/null
7885 ac_cv_prog_LN_S="ln -s"
7890 LN_S="$ac_cv_prog_LN_S"
7891 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7892 echo "$ac_t""yes" 1>&6
7894 echo "$ac_t""no" 1>&6
7899 if test $ol_enable_perl != no ; then
7900 # Extract the first word of "perl", so it can be a program name with args.
7901 set dummy perl; ac_word=$2
7902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7903 echo "configure:7904: checking for $ac_word" >&5
7904 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7909 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7912 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7917 for ac_dir in $ac_dummy; do
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/$ac_word; then
7920 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7925 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7929 PERLBIN="$ac_cv_path_PERLBIN"
7930 if test -n "$PERLBIN"; then
7931 echo "$ac_t""$PERLBIN" 1>&6
7933 echo "$ac_t""no" 1>&6
7937 if test "no$PERLBIN" = "no" ; then
7938 if test $ol_enable_perl = yes ; then
7939 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7943 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7944 if test x"$ol_with_perl_module" = "xstatic" ; then
7945 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7947 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7953 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7954 echo "configure:7955: checking how to run the C preprocessor" >&5
7955 # On Suns, sometimes $CPP names a directory.
7956 if test -n "$CPP" && test -d "$CPP"; then
7959 if test -z "$CPP"; then
7960 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7963 # This must be in double quotes, not single quotes, because CPP may get
7964 # substituted into the Makefile and "${CC-cc}" will confuse make.
7966 # On the NeXT, cc -E runs the code through the compiler's parser,
7967 # not just through cpp.
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7977 if test -z "$ac_err"; then
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7984 CPP="${CC-cc} -E -traditional-cpp"
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7994 if test -z "$ac_err"; then
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8001 CPP="${CC-cc} -nologo -E"
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8009 { (eval echo configure:8010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8011 if test -z "$ac_err"; then
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8025 ac_cv_prog_CPP="$CPP"
8027 CPP="$ac_cv_prog_CPP"
8029 ac_cv_prog_CPP="$CPP"
8031 echo "$ac_t""$CPP" 1>&6
8034 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8035 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8037 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8038 echo "configure: warning: programs compiled here do run here..." 1>&2
8039 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8041 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8042 echo "configure: warning: programs compiled here do not run here..." 1>&2
8043 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8047 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8048 echo "configure:8049: checking for Cygwin environment" >&5
8049 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8059 #define __CYGWIN__ __CYGWIN32__
8064 if { (eval echo configure:8065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8068 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8076 echo "$ac_t""$ac_cv_cygwin" 1>&6
8078 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8079 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8080 echo "configure:8081: checking for mingw32 environment" >&5
8081 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8092 if { (eval echo configure:8093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8096 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8104 echo "$ac_t""$ac_cv_mingw32" 1>&6
8106 test "$ac_cv_mingw32" = yes && MINGW32=yes
8110 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8111 echo "configure:8112: checking for executable suffix" >&5
8112 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8113 echo $ac_n "(cached) $ac_c" 1>&6
8115 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8119 echo 'int main () { return 0; }' > conftest.$ac_ext
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8122 for file in conftest.*; do
8124 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8125 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8129 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8132 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8137 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8138 echo "$ac_t""${ac_cv_exeext}" 1>&6
8141 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8142 echo "configure:8143: checking for object suffix" >&5
8143 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8144 echo $ac_n "(cached) $ac_c" 1>&6
8147 echo 'int i = 1;' > conftest.$ac_ext
8148 if { (eval echo configure:8149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8149 for ac_file in conftest.*; do
8152 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8156 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8161 echo "$ac_t""$ac_cv_objext" 1>&6
8162 OBJEXT=$ac_cv_objext
8163 ac_objext=$ac_cv_objext
8166 cat >> confdefs.h <<EOF
8167 #define EXEEXT "${EXEEXT}"
8171 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8172 echo "configure:8173: checking for be_app in -lbe" >&5
8173 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8174 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 ac_save_LIBS="$LIBS"
8178 LIBS="-lbe -lroot -lnet $LIBS"
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8191 if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8193 eval "ac_cv_lib_$ac_lib_var=yes"
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8198 eval "ac_cv_lib_$ac_lib_var=no"
8201 LIBS="$ac_save_LIBS"
8204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 LIBS="$LIBS -lbe -lroot -lnet"
8208 echo "$ac_t""no" 1>&6
8216 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8217 echo "configure:8218: checking for ${CC-cc} option to accept ANSI C" >&5
8218 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8221 am_cv_prog_cc_stdc=no
8223 # Don't try gcc -ansi; that turns off useful extensions and
8224 # breaks some systems' header files.
8225 # AIX -qlanglvl=ansi
8226 # Ultrix and OSF/1 -std1
8227 # HP-UX 10.20 and later -Ae
8228 # HP-UX older versions -Aa -D_HPUX_SOURCE
8229 # SVR4 -Xc -D__EXTENSIONS__
8230 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8232 CC="$ac_save_CC $ac_arg"
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8238 #include <sys/types.h>
8239 #include <sys/stat.h>
8240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8241 struct buf { int x; };
8242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8243 static char *e (p, i)
8249 static char *f (char * (*g) (char **, int), char **p, ...)
8254 s = g (p, va_arg (v,int));
8258 int test (int i, double x);
8259 struct s1 {int (*f) (int a);};
8260 struct s2 {int (*f) (double a);};
8261 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8267 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8271 if { (eval echo configure:8272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8273 am_cv_prog_cc_stdc="$ac_arg"; break
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8284 if test -z "$am_cv_prog_cc_stdc"; then
8285 echo "$ac_t""none needed" 1>&6
8287 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8289 case "x$am_cv_prog_cc_stdc" in
8291 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8294 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8295 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8298 # test for make depend flag
8301 if test -z "${MKDEP}"; then
8303 if test -z "${MKDEP_FLAGS}"; then
8304 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8305 echo "configure:8306: checking for ${OL_MKDEP} depend flag" >&5
8306 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8311 for flag in "-M" "-xM"; do
8312 cat > conftest.c <<EOF
8315 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8316 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8318 if test ! -f conftest."${ac_object}" ; then
8320 OL_MKDEP_FLAGS="$flag"
8329 echo "$ac_t""$ol_cv_mkdep" 1>&6
8332 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8337 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8342 if test "${ol_cv_mkdep}" = no ; then
8343 # this will soon become an error
8344 echo "configure: warning: do not know how to generate dependencies" 1>&2
8347 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8348 echo "configure:8349: checking for afopen in -ls" >&5
8349 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8350 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 ac_save_LIBS="$LIBS"
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8369 eval "ac_cv_lib_$ac_lib_var=yes"
8371 echo "configure: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8374 eval "ac_cv_lib_$ac_lib_var=no"
8377 LIBS="$ac_save_LIBS"
8380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8384 cat >> confdefs.h <<\EOF
8385 #define HAVE_AIX_SECURITY 1
8390 echo "$ac_t""no" 1>&6
8396 ac_cv_func_getopt=no
8397 cat >> confdefs.h <<\EOF
8398 #define BOTH_STRINGS_H 1
8405 if test $ol_enable_modules != no ; then
8406 for ac_hdr in ltdl.h
8408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8410 echo "configure:8411: checking for $ac_hdr" >&5
8411 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8414 cat > conftest.$ac_ext <<EOF
8415 #line 8416 "configure"
8416 #include "confdefs.h"
8419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8420 { (eval echo configure:8421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8422 if test -z "$ac_err"; then
8424 eval "ac_cv_header_$ac_safe=yes"
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 eval "ac_cv_header_$ac_safe=no"
8434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8435 echo "$ac_t""yes" 1>&6
8436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8437 cat >> confdefs.h <<EOF
8438 #define $ac_tr_hdr 1
8442 echo "$ac_t""no" 1>&6
8447 if test $ac_cv_header_ltdl_h = no ; then
8448 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8451 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8452 echo "configure:8453: checking for lt_dlinit in -lltdl" >&5
8453 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8457 ac_save_LIBS="$LIBS"
8459 cat > conftest.$ac_ext <<EOF
8460 #line 8461 "configure"
8461 #include "confdefs.h"
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8471 if { (eval echo configure:8472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8473 eval "ac_cv_lib_$ac_lib_var=yes"
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 eval "ac_cv_lib_$ac_lib_var=no"
8481 LIBS="$ac_save_LIBS"
8484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8488 cat >> confdefs.h <<\EOF
8489 #define HAVE_LIBLTDL 1
8494 echo "$ac_t""no" 1>&6
8498 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8499 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8503 ol_with_bdb_module=static
8504 ol_with_dnssrv_module=static
8505 ol_with_ldap_module=static
8506 ol_with_ldbm_module=static
8507 ol_with_meta_module=static
8508 ol_with_monitor_module=static
8509 ol_with_null_module=static
8510 ol_with_passwd_module=static
8511 ol_with_perl_module=static
8512 ol_with_shell_module=static
8513 ol_with_tcl_module=static
8514 ol_with_sql_module=static
8518 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8519 echo "configure:8520: checking for EBCDIC" >&5
8520 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8529 #include <__ASCII__/generate_error.h>
8533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8534 { (eval echo configure:8535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8536 if test -z "$ac_err"; then
8538 ol_cv_cpp_ebcdic=yes
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8549 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8550 if test $ol_cv_cpp_ebcdic = yes ; then
8551 cat >> confdefs.h <<\EOF
8552 #define HAVE_EBCDIC 1
8557 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8558 echo "configure:8559: checking for ANSI C header files" >&5
8559 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8571 { (eval echo configure:8572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8573 if test -z "$ac_err"; then
8575 ol_cv_header_stdc=yes
8578 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8581 ol_cv_header_stdc=no
8585 if test $ol_cv_header_stdc = yes; then
8586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8593 egrep "memchr" >/dev/null 2>&1; then
8597 ol_cv_header_stdc=no
8603 if test $ol_cv_header_stdc = yes; then
8604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 egrep "free" >/dev/null 2>&1; then
8615 ol_cv_header_stdc=no
8621 if test $ol_cv_header_stdc = yes; then
8622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8623 if test "$cross_compiling" = yes; then
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8634 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8635 || ('j' <= (c) && (c) <= 'r') \
8636 || ('s' <= (c) && (c) <= 'z'))
8637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8640 int main () { int i; for (i = 0; i < 256; i++)
8641 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 ol_cv_header_stdc=no
8660 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8661 if test $ol_cv_header_stdc = yes; then
8662 cat >> confdefs.h <<\EOF
8663 #define STDC_HEADERS 1
8667 ac_cv_header_stdc=disable
8670 if test $ol_cv_header_stdc != yes; then
8671 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8675 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8678 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8679 echo "configure:8680: checking for $ac_hdr that defines DIR" >&5
8680 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8683 cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure"
8685 #include "confdefs.h"
8686 #include <sys/types.h>
8692 if { (eval echo configure:8693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8694 eval "ac_cv_header_dirent_$ac_safe=yes"
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8699 eval "ac_cv_header_dirent_$ac_safe=no"
8703 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8704 echo "$ac_t""yes" 1>&6
8705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8706 cat >> confdefs.h <<EOF
8707 #define $ac_tr_hdr 1
8709 ac_header_dirent=$ac_hdr; break
8711 echo "$ac_t""no" 1>&6
8714 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8715 if test $ac_header_dirent = dirent.h; then
8716 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8717 echo "configure:8718: checking for opendir in -ldir" >&5
8718 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8722 ac_save_LIBS="$LIBS"
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8736 if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8738 eval "ac_cv_lib_$ac_lib_var=yes"
8740 echo "configure: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8743 eval "ac_cv_lib_$ac_lib_var=no"
8746 LIBS="$ac_save_LIBS"
8749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8750 echo "$ac_t""yes" 1>&6
8753 echo "$ac_t""no" 1>&6
8757 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8758 echo "configure:8759: checking for opendir in -lx" >&5
8759 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8760 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8763 ac_save_LIBS="$LIBS"
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8777 if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8779 eval "ac_cv_lib_$ac_lib_var=yes"
8781 echo "configure: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8784 eval "ac_cv_lib_$ac_lib_var=no"
8787 LIBS="$ac_save_LIBS"
8790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8791 echo "$ac_t""yes" 1>&6
8794 echo "$ac_t""no" 1>&6
8799 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8800 echo "configure:8801: checking for sys/wait.h that is POSIX.1 compatible" >&5
8801 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8807 #include <sys/types.h>
8808 #include <sys/wait.h>
8810 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8813 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8818 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8821 if { (eval echo configure:8822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8823 ac_cv_header_sys_wait_h=yes
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8828 ac_cv_header_sys_wait_h=no
8833 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8834 if test $ac_cv_header_sys_wait_h = yes; then
8835 cat >> confdefs.h <<\EOF
8836 #define HAVE_SYS_WAIT_H 1
8841 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8842 echo "configure:8843: checking POSIX termios" >&5
8843 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 #include <sys/types.h>
8851 #include <termios.h>
8853 /* SunOS 4.0.3 has termios.h but not the library calls. */
8857 if { (eval echo configure:8858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8859 am_cv_sys_posix_termios=yes
8861 echo "configure: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8864 am_cv_sys_posix_termios=no
8869 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8872 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8873 echo "configure:8874: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8874 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8877 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8879 gwinsz_in_termios_h=no
8880 if test $am_cv_sys_posix_termios = yes; then
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884 #include <sys/types.h>
8885 # include <termios.h>
8891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 egrep "yes" >/dev/null 2>&1; then
8894 gwinsz_in_termios_h=yes
8900 if test $gwinsz_in_termios_h = no; then
8901 cat > conftest.$ac_ext <<EOF
8902 #line 8903 "configure"
8903 #include "confdefs.h"
8904 #include <sys/types.h>
8905 # include <sys/ioctl.h>
8911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8912 egrep "yes" >/dev/null 2>&1; then
8914 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8922 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8923 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8924 cat >> confdefs.h <<\EOF
8925 #define GWINSZ_IN_SYS_IOCTL 1
8930 if test $am_cv_sys_posix_termios = yes ; then
8931 cat >> confdefs.h <<\EOF
8932 #define HAVE_POSIX_TERMIOS 1
8985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8987 echo "configure:8988: checking for $ac_hdr" >&5
8988 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8991 cat > conftest.$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8997 { (eval echo configure:8998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8999 if test -z "$ac_err"; then
9001 eval "ac_cv_header_$ac_safe=yes"
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9007 eval "ac_cv_header_$ac_safe=no"
9011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9012 echo "$ac_t""yes" 1>&6
9013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9014 cat >> confdefs.h <<EOF
9015 #define $ac_tr_hdr 1
9019 echo "$ac_t""no" 1>&6
9026 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
9027 echo "configure:9028: checking for dlopen" >&5
9028 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9031 cat > conftest.$ac_ext <<EOF
9032 #line 9033 "configure"
9033 #include "confdefs.h"
9034 /* System header to define __stub macros and hopefully few prototypes,
9035 which can conflict with char dlopen(); below. */
9037 /* Override any gcc2 internal prototype to avoid an error. */
9038 /* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9045 /* The GNU C library defines this for functions which it implements
9046 to always fail with ENOSYS. Some functions are actually named
9047 something starting with __ and the normal name is an alias. */
9048 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 eval "ac_cv_func_dlopen=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_func_dlopen=no"
9068 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9069 echo "$ac_t""yes" 1>&6
9072 echo "$ac_t""no" 1>&6
9073 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9074 echo "configure:9075: checking for dlopen in -ldl" >&5
9075 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9077 echo $ac_n "(cached) $ac_c" 1>&6
9079 ac_save_LIBS="$LIBS"
9081 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9095 eval "ac_cv_lib_$ac_lib_var=yes"
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 eval "ac_cv_lib_$ac_lib_var=no"
9103 LIBS="$ac_save_LIBS"
9106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9107 echo "$ac_t""yes" 1>&6
9108 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9110 cat >> confdefs.h <<EOF
9111 #define $ac_tr_lib 1
9117 echo "$ac_t""no" 1>&6
9123 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9124 echo "configure:9125: checking for sigset in -lV3" >&5
9125 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9126 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9129 ac_save_LIBS="$LIBS"
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 /* Override any gcc2 internal prototype to avoid an error. */
9135 /* We use char because int might match the return type of a gcc2
9136 builtin and then its argument prototype would still apply. */
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9145 eval "ac_cv_lib_$ac_lib_var=yes"
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9150 eval "ac_cv_lib_$ac_lib_var=no"
9153 LIBS="$ac_save_LIBS"
9156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9157 echo "$ac_t""yes" 1>&6
9158 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9160 cat >> confdefs.h <<EOF
9161 #define $ac_tr_lib 1
9167 echo "$ac_t""no" 1>&6
9171 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9172 echo "configure:9173: checking for winsock" >&5
9174 for curlib in ws2_32 wsock32; do
9175 LIBS="$LIBS -l$curlib"
9176 cat > conftest.$ac_ext <<EOF
9177 #line 9178 "configure"
9178 #include "confdefs.h"
9182 char closesocket@4();
9183 char gethostname@8();
9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9205 if test $have_winsock = yes; then
9206 cat >> confdefs.h <<\EOF
9207 #define HAVE_WINSOCK 1
9210 ac_cv_func_socket=yes
9211 ac_cv_func_select=yes
9212 ac_cv_func_closesocket=yes
9213 ac_cv_func_gethostname=yes
9214 if test $curlib = ws2_32; then
9215 have_winsock=winsock2
9216 cat >> confdefs.h <<\EOF
9217 #define HAVE_WINSOCK2 1
9225 echo "$ac_t""$have_winsock" 1>&6
9228 echo $ac_n "checking for socket""... $ac_c" 1>&6
9229 echo "configure:9230: checking for socket" >&5
9230 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9231 echo $ac_n "(cached) $ac_c" 1>&6
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 /* System header to define __stub macros and hopefully few prototypes,
9237 which can conflict with char socket(); below. */
9239 /* Override any gcc2 internal prototype to avoid an error. */
9240 /* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9247 /* The GNU C library defines this for functions which it implements
9248 to always fail with ENOSYS. Some functions are actually named
9249 something starting with __ and the normal name is an alias. */
9250 #if defined (__stub_socket) || defined (__stub___socket)
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9260 eval "ac_cv_func_socket=yes"
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 eval "ac_cv_func_socket=no"
9270 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9271 echo "$ac_t""yes" 1>&6
9274 echo "$ac_t""no" 1>&6
9276 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9277 echo "configure:9278: checking for main in -lsocket" >&5
9278 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9279 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9282 ac_save_LIBS="$LIBS"
9283 LIBS="-lsocket $LIBS"
9284 cat > conftest.$ac_ext <<EOF
9285 #line 9286 "configure"
9286 #include "confdefs.h"
9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9294 eval "ac_cv_lib_$ac_lib_var=yes"
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9299 eval "ac_cv_lib_$ac_lib_var=no"
9302 LIBS="$ac_save_LIBS"
9305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
9307 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9309 cat >> confdefs.h <<EOF
9310 #define $ac_tr_lib 1
9313 LIBS="-lsocket $LIBS"
9316 echo "$ac_t""no" 1>&6
9319 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9320 echo "configure:9321: checking for main in -lnet" >&5
9321 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9322 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9325 ac_save_LIBS="$LIBS"
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9337 eval "ac_cv_lib_$ac_lib_var=yes"
9339 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9342 eval "ac_cv_lib_$ac_lib_var=no"
9345 LIBS="$ac_save_LIBS"
9348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9349 echo "$ac_t""yes" 1>&6
9350 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9352 cat >> confdefs.h <<EOF
9353 #define $ac_tr_lib 1
9359 echo "$ac_t""no" 1>&6
9362 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9363 echo "configure:9364: checking for main in -lnsl_s" >&5
9364 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9365 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9368 ac_save_LIBS="$LIBS"
9369 LIBS="-lnsl_s $LIBS"
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9378 if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9380 eval "ac_cv_lib_$ac_lib_var=yes"
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9385 eval "ac_cv_lib_$ac_lib_var=no"
9388 LIBS="$ac_save_LIBS"
9391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9392 echo "$ac_t""yes" 1>&6
9393 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9395 cat >> confdefs.h <<EOF
9396 #define $ac_tr_lib 1
9399 LIBS="-lnsl_s $LIBS"
9402 echo "$ac_t""no" 1>&6
9405 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9406 echo "configure:9407: checking for main in -lnsl" >&5
9407 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9408 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9411 ac_save_LIBS="$LIBS"
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9423 eval "ac_cv_lib_$ac_lib_var=yes"
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9428 eval "ac_cv_lib_$ac_lib_var=no"
9431 LIBS="$ac_save_LIBS"
9434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9435 echo "$ac_t""yes" 1>&6
9436 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9438 cat >> confdefs.h <<EOF
9439 #define $ac_tr_lib 1
9445 echo "$ac_t""no" 1>&6
9448 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9449 echo "configure:9450: checking for socket in -linet" >&5
9450 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9451 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9454 ac_save_LIBS="$LIBS"
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 /* Override any gcc2 internal prototype to avoid an error. */
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9468 if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9470 eval "ac_cv_lib_$ac_lib_var=yes"
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9475 eval "ac_cv_lib_$ac_lib_var=no"
9478 LIBS="$ac_save_LIBS"
9481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9482 echo "$ac_t""yes" 1>&6
9483 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9484 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9485 cat >> confdefs.h <<EOF
9486 #define $ac_tr_lib 1
9492 echo "$ac_t""no" 1>&6
9495 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9496 echo "configure:9497: checking for main in -lgen" >&5
9497 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9501 ac_save_LIBS="$LIBS"
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9511 if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9513 eval "ac_cv_lib_$ac_lib_var=yes"
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9518 eval "ac_cv_lib_$ac_lib_var=no"
9521 LIBS="$ac_save_LIBS"
9524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9525 echo "$ac_t""yes" 1>&6
9526 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_lib 1
9535 echo "$ac_t""no" 1>&6
9542 echo $ac_n "checking for select""... $ac_c" 1>&6
9543 echo "configure:9544: checking for select" >&5
9544 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char select(); below. */
9553 /* Override any gcc2 internal prototype to avoid an error. */
9554 /* We use char because int might match the return type of a gcc2
9555 builtin and then its argument prototype would still apply. */
9561 /* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564 #if defined (__stub_select) || defined (__stub___select)
9572 if { (eval echo configure:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9574 eval "ac_cv_func_select=yes"
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9579 eval "ac_cv_func_select=no"
9584 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9585 echo "$ac_t""yes" 1>&6
9588 echo "$ac_t""no" 1>&6
9589 { echo "configure: error: select() required." 1>&2; exit 1; }
9593 if test "${ac_cv_header_winsock_h}" != yes; then
9594 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9595 echo "configure:9596: checking types of arguments for select()" >&5
9596 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9599 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9602 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9605 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9606 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9607 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #ifdef HAVE_SYS_TYPES_H
9612 #include <sys/types.h>
9614 #ifdef HAVE_SYS_TIME_H
9615 #include <sys/time.h>
9617 #ifdef HAVE_SYS_SELECT_H
9618 #include <sys/select.h>
9620 #ifdef HAVE_SYS_SOCKET_H
9621 #include <sys/socket.h>
9623 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);
9628 if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9630 ac_not_found=no ; break 3
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9647 if test "$ac_not_found" = yes; then
9648 ac_cv_func_select_arg1=int
9649 ac_cv_func_select_arg234='int *'
9650 ac_cv_func_select_arg5='struct timeval *'
9652 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9653 cat >> confdefs.h <<EOF
9654 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9657 cat >> confdefs.h <<EOF
9658 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9661 cat >> confdefs.h <<EOF
9662 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9669 for ac_hdr in regex.h
9671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9673 echo "configure:9674: checking for $ac_hdr" >&5
9674 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9683 { (eval echo configure:9684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9685 if test -z "$ac_err"; then
9687 eval "ac_cv_header_$ac_safe=yes"
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9693 eval "ac_cv_header_$ac_safe=no"
9697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9698 echo "$ac_t""yes" 1>&6
9699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9700 cat >> confdefs.h <<EOF
9701 #define $ac_tr_hdr 1
9705 echo "$ac_t""no" 1>&6
9709 if test "$ac_cv_header_regex_h" != yes ; then
9710 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9713 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9714 echo "configure:9715: checking for library containing regfree" >&5
9715 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9718 ac_func_search_save_LIBS="$LIBS"
9719 ac_cv_search_regfree="no"
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 /* Override any gcc2 internal prototype to avoid an error. */
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 ac_cv_search_regfree="none required"
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9740 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9756 ac_cv_search_regfree="-l$ac_lib"
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9764 LIBS="$ac_func_search_save_LIBS"
9767 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9768 if test "$ac_cv_search_regfree" != "no"; then
9769 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9772 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9776 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9777 echo "configure:9778: checking for compatible POSIX regex" >&5
9778 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9782 if test "$cross_compiling" = yes; then
9783 ol_cv_c_posix_regex=cross
9785 cat > conftest.$ac_ext <<EOF
9786 #line 9787 "configure"
9787 #include "confdefs.h"
9789 #include <sys/types.h>
9791 static char *pattern, *string;
9799 if(regcomp(&re, pattern, 0)) {
9803 string = "ALL MATCH";
9805 rc = regexec(&re, string, 0, (void*)0, 0);
9812 if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9814 ol_cv_c_posix_regex=yes
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9819 ol_cv_c_posix_regex=no
9826 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9828 if test "$ol_cv_c_posix_regex" = no ; then
9829 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9834 for ac_hdr in sys/uuid.h
9836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9838 echo "configure:9839: checking for $ac_hdr" >&5
9839 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9840 echo $ac_n "(cached) $ac_c" 1>&6
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9848 { (eval echo configure:9849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9850 if test -z "$ac_err"; then
9852 eval "ac_cv_header_$ac_safe=yes"
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9858 eval "ac_cv_header_$ac_safe=no"
9862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9863 echo "$ac_t""yes" 1>&6
9864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9865 cat >> confdefs.h <<EOF
9866 #define $ac_tr_hdr 1
9870 echo "$ac_t""no" 1>&6
9874 if test $ac_cv_header_sys_uuid_h = yes ; then
9877 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9878 echo "configure:9879: checking for library containing uuid_to_str" >&5
9879 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9882 ac_func_search_save_LIBS="$LIBS"
9883 ac_cv_search_uuid_to_str="no"
9884 cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9887 /* Override any gcc2 internal prototype to avoid an error. */
9888 /* We use char because int might match the return type of a gcc2
9889 builtin and then its argument prototype would still apply. */
9896 if { (eval echo configure:9897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9898 ac_cv_search_uuid_to_str="none required"
9900 echo "configure: failed program was:" >&5
9901 cat conftest.$ac_ext >&5
9904 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9918 if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9920 ac_cv_search_uuid_to_str="-l$ac_lib"
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9928 LIBS="$ac_func_search_save_LIBS"
9931 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9932 if test "$ac_cv_search_uuid_to_str" != "no"; then
9933 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9940 if test have_uuid = yes ; then
9941 cat >> confdefs.h <<\EOF
9942 #define HAVE_UUID_TO_STR 1
9946 test "$ac_cv_search_uuid_to_str" = "none required" || \
9947 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9951 if test $have_uuid = no ; then
9952 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9953 echo "configure:9954: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9955 LIBS="$LIBS -lrpcrt4"
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9960 char UuidCreate@4();
9961 char UuidToStringA@8();
9970 if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9980 if test $need_rpcrt = yes; then
9981 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9984 echo "$ac_t""$need_rpcrt" 1>&6
9988 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9989 echo "configure:9990: checking for res_query" >&5
9990 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9993 cat > conftest.$ac_ext <<EOF
9994 #line 9995 "configure"
9995 #include "confdefs.h"
9996 /* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char res_query(); below. */
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10007 /* The GNU C library defines this for functions which it implements
10008 to always fail with ENOSYS. Some functions are actually named
10009 something starting with __ and the normal name is an alias. */
10010 #if defined (__stub_res_query) || defined (__stub___res_query)
10018 if { (eval echo configure:10019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10020 eval "ac_cv_func_res_query=yes"
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10025 eval "ac_cv_func_res_query=no"
10030 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10031 echo "$ac_t""yes" 1>&6
10034 echo "$ac_t""no" 1>&6
10037 if test $ac_cv_func_res_query = no ; then
10038 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10039 echo "configure:10040: checking for __res_query" >&5
10040 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char __res_query(); below. */
10048 #include <assert.h>
10049 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char __res_query();
10057 /* The GNU C library defines this for functions which it implements
10058 to always fail with ENOSYS. Some functions are actually named
10059 something starting with __ and the normal name is an alias. */
10060 #if defined (__stub___res_query) || defined (__stub_____res_query)
10068 if { (eval echo configure:10069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10070 eval "ac_cv_func___res_query=yes"
10072 echo "configure: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10075 eval "ac_cv_func___res_query=no"
10080 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10081 echo "$ac_t""yes" 1>&6
10084 echo "$ac_t""no" 1>&6
10087 ac_cv_func_res_query=$ac_cv_func___res_query
10090 if test $ac_cv_func_res_query = no ; then
10091 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10092 echo "configure:10093: checking for res_query in -lbind" >&5
10093 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10097 ac_save_LIBS="$LIBS"
10098 LIBS="-lbind $LIBS"
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 eval "ac_cv_lib_$ac_lib_var=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_lib_$ac_lib_var=no"
10121 LIBS="$ac_save_LIBS"
10124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10125 echo "$ac_t""yes" 1>&6
10126 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10128 cat >> confdefs.h <<EOF
10129 #define $ac_tr_lib 1
10132 LIBS="-lbind $LIBS"
10135 echo "$ac_t""no" 1>&6
10138 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10141 if test $ac_cv_func_res_query = no ; then
10142 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10143 echo "configure:10144: checking for __res_query in -lbind" >&5
10144 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10145 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10148 ac_save_LIBS="$LIBS"
10149 LIBS="-lbind $LIBS"
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 /* Override any gcc2 internal prototype to avoid an error. */
10154 /* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10156 char __res_query();
10162 if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10164 eval "ac_cv_lib_$ac_lib_var=yes"
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10169 eval "ac_cv_lib_$ac_lib_var=no"
10172 LIBS="$ac_save_LIBS"
10175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10176 echo "$ac_t""yes" 1>&6
10177 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10179 cat >> confdefs.h <<EOF
10180 #define $ac_tr_lib 1
10183 LIBS="-lbind $LIBS"
10186 echo "$ac_t""no" 1>&6
10189 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10192 if test $ac_cv_func_res_query = no ; then
10193 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10194 echo "configure:10195: checking for res_query in -lresolv" >&5
10195 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10199 ac_save_LIBS="$LIBS"
10200 LIBS="-lresolv $LIBS"
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 /* Override any gcc2 internal prototype to avoid an error. */
10205 /* We use char because int might match the return type of a gcc2
10206 builtin and then its argument prototype would still apply. */
10213 if { (eval echo configure:10214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10215 eval "ac_cv_lib_$ac_lib_var=yes"
10217 echo "configure: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10220 eval "ac_cv_lib_$ac_lib_var=no"
10223 LIBS="$ac_save_LIBS"
10226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10227 echo "$ac_t""yes" 1>&6
10228 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10230 cat >> confdefs.h <<EOF
10231 #define $ac_tr_lib 1
10234 LIBS="-lresolv $LIBS"
10237 echo "$ac_t""no" 1>&6
10240 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10243 if test $ac_cv_func_res_query = no ; then
10244 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10245 echo "configure:10246: checking for __res_query in -lresolv" >&5
10246 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10248 echo $ac_n "(cached) $ac_c" 1>&6
10250 ac_save_LIBS="$LIBS"
10251 LIBS="-lresolv $LIBS"
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 /* Override any gcc2 internal prototype to avoid an error. */
10256 /* We use char because int might match the return type of a gcc2
10257 builtin and then its argument prototype would still apply. */
10258 char __res_query();
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10266 eval "ac_cv_lib_$ac_lib_var=yes"
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10271 eval "ac_cv_lib_$ac_lib_var=no"
10274 LIBS="$ac_save_LIBS"
10277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10278 echo "$ac_t""yes" 1>&6
10279 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10280 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10281 cat >> confdefs.h <<EOF
10282 #define $ac_tr_lib 1
10285 LIBS="-lresolv $LIBS"
10288 echo "$ac_t""no" 1>&6
10291 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10294 if test "$ac_cv_func_res_query" = yes ; then
10295 cat >> confdefs.h <<\EOF
10296 #define HAVE_RES_QUERY 1
10300 if test $ol_enable_dnssrv != no ; then
10305 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10306 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10309 for ac_func in getaddrinfo gai_strerror inet_ntop
10311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10312 echo "configure:10313: checking for $ac_func" >&5
10313 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10314 echo $ac_n "(cached) $ac_c" 1>&6
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 /* System header to define __stub macros and hopefully few prototypes,
10320 which can conflict with char $ac_func(); below. */
10321 #include <assert.h>
10322 /* Override any gcc2 internal prototype to avoid an error. */
10323 /* We use char because int might match the return type of a gcc2
10324 builtin and then its argument prototype would still apply. */
10330 /* The GNU C library defines this for functions which it implements
10331 to always fail with ENOSYS. Some functions are actually named
10332 something starting with __ and the normal name is an alias. */
10333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10341 if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10343 eval "ac_cv_func_$ac_func=yes"
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10348 eval "ac_cv_func_$ac_func=no"
10353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10354 echo "$ac_t""yes" 1>&6
10355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10356 cat >> confdefs.h <<EOF
10357 #define $ac_tr_func 1
10361 echo "$ac_t""no" 1>&6
10367 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10368 if test $ol_enable_ipv6 = yes ; then
10369 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10371 elif test $ol_enable_ipv6 != no ; then
10372 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10373 echo "configure:10374: checking INET6_ADDRSTRLEN" >&5
10374 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10378 cat > conftest.$ac_ext <<EOF
10379 #line 10380 "configure"
10380 #include "confdefs.h"
10382 # include <netinet/in.h>
10383 # ifdef INET6_ADDRSTRLEN
10384 __has_inet6_addrstrlen__;
10388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10389 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10391 ol_cv_inet6_addrstrlen=yes
10394 ol_cv_inet6_addrstrlen=no
10400 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10403 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10404 echo "configure:10405: checking struct sockaddr_storage" >&5
10405 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10413 #include <sys/types.h>
10414 #include <sys/socket.h>
10418 struct sockaddr_storage ss;
10422 if { (eval echo configure:10423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10424 ol_cv_struct_sockaddr_storage=yes
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10429 ol_cv_struct_sockaddr_storage=no
10434 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10436 if test $ol_cv_inet6_addrstrlen = yes \
10437 -a $ol_cv_struct_sockaddr_storage = yes ; then
10439 elif test $ol_enable_ipv6 = yes \
10440 -a $ol_cv_inet6_addrstrlen = no ; then
10441 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10442 elif test $ol_enable_ipv6 = yes \
10443 -a $ol_cv_struct_sockaddr_storage = no ; then
10444 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10448 if test $ol_enable_local != no ; then
10449 for ac_hdr in sys/un.h
10451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10453 echo "configure:10454: checking for $ac_hdr" >&5
10454 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10463 { (eval echo configure:10464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10465 if test -z "$ac_err"; then
10467 eval "ac_cv_header_$ac_safe=yes"
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10473 eval "ac_cv_header_$ac_safe=no"
10477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10478 echo "$ac_t""yes" 1>&6
10479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10480 cat >> confdefs.h <<EOF
10481 #define $ac_tr_hdr 1
10485 echo "$ac_t""no" 1>&6
10490 if test $ol_enable_local = auto ; then
10491 ol_enable_local=$ac_cv_header_sys_un_h
10492 elif test $ac_cv_header_sys_un_h = no ; then
10493 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10502 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10503 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10504 -o $ol_with_kerberos = k425 ; then
10506 for ac_hdr in krb5.h
10508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10510 echo "configure:10511: checking for $ac_hdr" >&5
10511 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520 { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522 if test -z "$ac_err"; then
10524 eval "ac_cv_header_$ac_safe=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_header_$ac_safe=no"
10534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10535 echo "$ac_t""yes" 1>&6
10536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10537 cat >> confdefs.h <<EOF
10538 #define $ac_tr_hdr 1
10542 echo "$ac_t""no" 1>&6
10547 if test $ac_cv_header_krb5_h = yes ; then
10548 for ac_hdr in heim_err.h
10550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10552 echo "configure:10553: checking for $ac_hdr" >&5
10553 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10562 { (eval echo configure:10563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10564 if test -z "$ac_err"; then
10566 eval "ac_cv_header_$ac_safe=yes"
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10572 eval "ac_cv_header_$ac_safe=no"
10576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10577 echo "$ac_t""yes" 1>&6
10578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10579 cat >> confdefs.h <<EOF
10580 #define $ac_tr_hdr 1
10584 echo "$ac_t""no" 1>&6
10588 if test $ac_cv_header_heim_err_h = yes ; then
10594 if test $krb5_impl = mit; then
10595 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10596 echo "configure:10597: checking for main in -lk5crypto" >&5
10597 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10598 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10601 ac_save_LIBS="$LIBS"
10602 LIBS="-lk5crypto $LIBS"
10603 cat > conftest.$ac_ext <<EOF
10604 #line 10605 "configure"
10605 #include "confdefs.h"
10611 if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10613 eval "ac_cv_lib_$ac_lib_var=yes"
10615 echo "configure: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10618 eval "ac_cv_lib_$ac_lib_var=no"
10621 LIBS="$ac_save_LIBS"
10624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 krb5crypto=k5crypto
10628 echo "$ac_t""no" 1>&6
10633 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10634 echo "configure:10635: checking for main in -lkrb5" >&5
10635 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10639 ac_save_LIBS="$LIBS"
10640 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10651 eval "ac_cv_lib_$ac_lib_var=yes"
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10656 eval "ac_cv_lib_$ac_lib_var=no"
10659 LIBS="$ac_save_LIBS"
10662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10663 echo "$ac_t""yes" 1>&6
10665 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10667 echo "$ac_t""no" 1>&6
10672 elif test $krb5_impl = heimdal; then
10673 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10674 echo "configure:10675: checking for main in -ldes" >&5
10675 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10679 ac_save_LIBS="$LIBS"
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10689 if { (eval echo configure:10690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10691 eval "ac_cv_lib_$ac_lib_var=yes"
10693 echo "configure: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10696 eval "ac_cv_lib_$ac_lib_var=no"
10699 LIBS="$ac_save_LIBS"
10702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10703 echo "$ac_t""yes" 1>&6
10706 echo "$ac_t""no" 1>&6
10711 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10712 echo "configure:10713: checking for main in -lkrb5" >&5
10713 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10717 ac_save_LIBS="$LIBS"
10718 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10719 cat > conftest.$ac_ext <<EOF
10720 #line 10721 "configure"
10721 #include "confdefs.h"
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10729 eval "ac_cv_lib_$ac_lib_var=yes"
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10734 eval "ac_cv_lib_$ac_lib_var=no"
10737 LIBS="$ac_save_LIBS"
10740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10741 echo "$ac_t""yes" 1>&6
10743 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10745 echo "$ac_t""no" 1>&6
10750 cat >> confdefs.h <<\EOF
10751 #define HAVE_HEIMDAL_KERBEROS 1
10757 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10760 if test $have_krb5 = yes ; then
10763 cat >> confdefs.h <<\EOF
10764 #define HAVE_KRB5 1
10768 if test $ol_enable_kpasswd != no ; then
10769 ol_link_kpasswd=yes;
10772 if test $ol_with_kerberos = k5only ; then
10773 ol_with_kerberos=found
10776 elif test $ol_with_kerberos != auto ; then
10777 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10783 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10784 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10786 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10790 echo "configure:10791: checking for $ac_hdr" >&5
10791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10792 echo $ac_n "(cached) $ac_c" 1>&6
10794 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure"
10796 #include "confdefs.h"
10799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10800 { (eval echo configure:10801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10802 if test -z "$ac_err"; then
10804 eval "ac_cv_header_$ac_safe=yes"
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10810 eval "ac_cv_header_$ac_safe=no"
10814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10815 echo "$ac_t""yes" 1>&6
10816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10817 cat >> confdefs.h <<EOF
10818 #define $ac_tr_hdr 1
10822 echo "$ac_t""no" 1>&6
10827 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10828 if test $krb5_impl = mit; then
10829 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10830 echo "configure:10831: checking for main in -lkrb4" >&5
10831 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10832 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10833 echo $ac_n "(cached) $ac_c" 1>&6
10835 ac_save_LIBS="$LIBS"
10836 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure"
10839 #include "confdefs.h"
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847 eval "ac_cv_lib_$ac_lib_var=yes"
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10852 eval "ac_cv_lib_$ac_lib_var=no"
10855 LIBS="$ac_save_LIBS"
10858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10859 echo "$ac_t""yes" 1>&6
10861 KRB4_LIBS="-lkrb4 -ldes425"
10863 echo "$ac_t""no" 1>&6
10868 elif test $krb5_impl = heimdal; then
10869 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10870 echo "configure:10871: checking for main in -lkrb4" >&5
10871 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10875 ac_save_LIBS="$LIBS"
10876 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887 eval "ac_cv_lib_$ac_lib_var=yes"
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10892 eval "ac_cv_lib_$ac_lib_var=no"
10895 LIBS="$ac_save_LIBS"
10898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10899 echo "$ac_t""yes" 1>&6
10903 echo "$ac_t""no" 1>&6
10910 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10913 if test $have_k425 = yes ; then
10914 ol_with_kerberos=found
10917 cat >> confdefs.h <<\EOF
10918 #define HAVE_KRB425 1
10921 cat >> confdefs.h <<\EOF
10922 #define HAVE_KRB4 1
10926 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10927 echo "configure:10928: checking for des_debug in Kerberos libraries" >&5
10928 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10933 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10934 cat > conftest.$ac_ext <<EOF
10935 #line 10936 "configure"
10936 #include "confdefs.h"
10938 #include <kerberosIV/krb.h>
10939 #include <kerberosIV/des.h>
10940 extern int des_debug;
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 ol_cv_var_des_debug=yes
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10955 ol_cv_var_des_debug=no
10962 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10964 if test $ol_cv_var_des_debug = yes ; then
10965 cat >> confdefs.h <<\EOF
10966 #define HAVE_DES_DEBUG 1
10976 if test $ol_link_krb5 = yes ; then
10977 ol_with_kerberos=found
10980 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10981 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10983 for ac_hdr in krb.h des.h krb-archaeology.h
10985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10987 echo "configure:10988: checking for $ac_hdr" >&5
10988 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10991 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure"
10993 #include "confdefs.h"
10996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10997 { (eval echo configure:10998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10999 if test -z "$ac_err"; then
11001 eval "ac_cv_header_$ac_safe=yes"
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11007 eval "ac_cv_header_$ac_safe=no"
11011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11012 echo "$ac_t""yes" 1>&6
11013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11014 cat >> confdefs.h <<EOF
11015 #define $ac_tr_hdr 1
11019 echo "$ac_t""no" 1>&6
11024 if test $ac_cv_header_krb_h = yes ; then
11025 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11026 echo "configure:11027: checking for main in -lkrb" >&5
11027 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11031 ac_save_LIBS="$LIBS"
11032 LIBS="-lkrb -ldes $LIBS"
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11043 eval "ac_cv_lib_$ac_lib_var=yes"
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11048 eval "ac_cv_lib_$ac_lib_var=no"
11051 LIBS="$ac_save_LIBS"
11054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11058 echo "$ac_t""no" 1>&6
11063 if test $have_k4 = yes ; then
11064 ol_with_kerberos=found
11067 cat >> confdefs.h <<\EOF
11068 #define HAVE_KRB4 1
11072 KRB4_LIBS="-lkrb -ldes"
11074 if test $ac_cv_header_krb_archaeology_h = yes ; then
11075 cat >> confdefs.h <<\EOF
11076 #define HAVE_KTH_KERBEROS 1
11084 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11085 ol_link_kpasswd=yes
11088 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11091 elif test $ol_enable_kbind = yes ; then
11092 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11095 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11096 cat >> confdefs.h <<\EOF
11097 #define HAVE_KERBEROS 1
11101 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11102 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11106 if test $ol_with_tls != no ; then
11107 for ac_hdr in openssl/ssl.h ssl.h
11109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11111 echo "configure:11112: checking for $ac_hdr" >&5
11112 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11121 { (eval echo configure:11122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11123 if test -z "$ac_err"; then
11125 eval "ac_cv_header_$ac_safe=yes"
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11131 eval "ac_cv_header_$ac_safe=no"
11135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11136 echo "$ac_t""yes" 1>&6
11137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11138 cat >> confdefs.h <<EOF
11139 #define $ac_tr_hdr 1
11143 echo "$ac_t""no" 1>&6
11148 if test $ac_cv_header_openssl_ssl_h = yes \
11149 -o $ac_cv_header_ssl_h = yes ; then
11150 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11151 echo "configure:11152: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11152 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11156 ac_save_LIBS="$LIBS"
11157 LIBS="-lssl -lcrypto $LIBS"
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161 /* Override any gcc2 internal prototype to avoid an error. */
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164 char SSLeay_add_ssl_algorithms();
11167 SSLeay_add_ssl_algorithms()
11170 if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11172 eval "ac_cv_lib_$ac_lib_var=yes"
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11177 eval "ac_cv_lib_$ac_lib_var=no"
11180 LIBS="$ac_save_LIBS"
11183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11184 echo "$ac_t""yes" 1>&6
11188 echo "$ac_t""no" 1>&6
11193 if test $have_ssleay = no ; then
11194 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11195 echo "configure:11196: checking for SSL_library_init in -lssl" >&5
11196 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11197 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
11200 ac_save_LIBS="$LIBS"
11201 LIBS="-lssl -lcrypto $LIBS"
11202 cat > conftest.$ac_ext <<EOF
11203 #line 11204 "configure"
11204 #include "confdefs.h"
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 /* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11208 char SSL_library_init();
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11216 eval "ac_cv_lib_$ac_lib_var=yes"
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11221 eval "ac_cv_lib_$ac_lib_var=no"
11224 LIBS="$ac_save_LIBS"
11227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11228 echo "$ac_t""yes" 1>&6
11232 echo "$ac_t""no" 1>&6
11238 if test $have_ssleay = no ; then
11239 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11240 echo "configure:11241: checking for ssl3_accept in -lssl" >&5
11241 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11242 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11245 ac_save_LIBS="$LIBS"
11246 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 /* Override any gcc2 internal prototype to avoid an error. */
11251 /* We use char because int might match the return type of a gcc2
11252 builtin and then its argument prototype would still apply. */
11253 char ssl3_accept();
11259 if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11261 eval "ac_cv_lib_$ac_lib_var=yes"
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11266 eval "ac_cv_lib_$ac_lib_var=no"
11269 LIBS="$ac_save_LIBS"
11272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11273 echo "$ac_t""yes" 1>&6
11277 echo "$ac_t""no" 1>&6
11283 if test $have_ssleay = yes ; then
11287 cat >> confdefs.h <<\EOF
11288 #define HAVE_SSLEAY 1
11292 if test $need_rsaref = yes; then
11293 cat >> confdefs.h <<\EOF
11294 #define HAVE_RSAREF 1
11298 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11300 TLS_LIBS="-lssl -lcrypto"
11306 echo "configure: warning: TLS data protection not supported!" 1>&2
11309 if test $ol_link_tls = yes ; then
11310 cat >> confdefs.h <<\EOF
11315 elif test $ol_with_tls = auto ; then
11316 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11317 echo "configure: warning: TLS data protection not supported!" 1>&2
11319 elif test $ol_with_tls != no ; then
11320 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11323 if test $ol_enable_lmpasswd != no; then
11324 if test $ol_link_tls != yes ; then
11325 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11328 cat >> confdefs.h <<\EOF
11329 #define SLAPD_LMHASH 1
11336 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11337 -o $ol_with_threads = nt ; then
11340 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11341 echo "configure:11342: checking for _beginthread" >&5
11342 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11343 echo $ac_n "(cached) $ac_c" 1>&6
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 /* System header to define __stub macros and hopefully few prototypes,
11349 which can conflict with char _beginthread(); below. */
11350 #include <assert.h>
11351 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11354 char _beginthread();
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11370 if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11372 eval "ac_cv_func__beginthread=yes"
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11377 eval "ac_cv_func__beginthread=no"
11382 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11383 echo "$ac_t""yes" 1>&6
11386 echo "$ac_t""no" 1>&6
11390 if test $ac_cv_func__beginthread = yes ; then
11391 cat >> confdefs.h <<\EOF
11392 #define HAVE_NT_THREADS 1
11395 ol_cv_nt_threads=yes
11399 if test "$ol_cv_nt_threads" = yes ; then
11401 ol_with_threads=found
11402 ol_with_yielding_select=yes
11404 cat >> confdefs.h <<\EOF
11405 #define HAVE_NT_SERVICE_MANAGER 1
11408 cat >> confdefs.h <<\EOF
11409 #define HAVE_NT_EVENT_LOG 1
11414 if test $ol_with_threads = nt ; then
11415 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11419 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11420 -o $ol_with_threads = posix ; then
11422 for ac_hdr in pthread.h
11424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11426 echo "configure:11427: checking for $ac_hdr" >&5
11427 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11428 echo $ac_n "(cached) $ac_c" 1>&6
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11436 { (eval echo configure:11437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11438 if test -z "$ac_err"; then
11440 eval "ac_cv_header_$ac_safe=yes"
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11446 eval "ac_cv_header_$ac_safe=no"
11450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11451 echo "$ac_t""yes" 1>&6
11452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11453 cat >> confdefs.h <<EOF
11454 #define $ac_tr_hdr 1
11458 echo "$ac_t""no" 1>&6
11463 if test $ac_cv_header_pthread_h = yes ; then
11464 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11465 echo "configure:11466: checking POSIX thread version" >&5
11466 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11474 # include <pthread.h>
11478 int i = PTHREAD_CREATE_JOINABLE;
11482 if { (eval echo configure:11483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11485 cat > conftest.$ac_ext <<EOF
11486 #line 11487 "configure"
11487 #include "confdefs.h"
11488 #include <pthread.h>
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 egrep "pthread_detach" >/dev/null 2>&1; then
11493 ol_cv_pthread_version=10
11496 ol_cv_pthread_version=8
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11509 # include <pthread.h>
11510 # ifdef PTHREAD_CREATE_UNDETACHED
11515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11516 egrep "draft7" >/dev/null 2>&1; then
11518 ol_cv_pthread_version=7
11522 cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11525 #include <pthread.h>
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 egrep "pthread_attr_init" >/dev/null 2>&1; then
11530 ol_cv_pthread_version=6
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11538 # include <pthread.h>
11539 #ifdef PTHREAD_MUTEX_INITIALIZER
11544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 egrep "draft5" >/dev/null 2>&1; then
11547 ol_cv_pthread_version=5
11550 ol_cv_pthread_version=4
11565 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11568 if test $ol_cv_pthread_version != 0 ; then
11569 cat >> confdefs.h <<EOF
11570 #define HAVE_PTHREADS $ol_cv_pthread_version
11574 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11577 # consider threads found
11578 ol_with_threads=found
11581 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11582 echo "configure:11583: checking for LinuxThreads pthread.h" >&5
11583 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11589 #include <pthread.h>
11591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11592 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11594 ol_cv_header_linux_threads=yes
11597 ol_cv_header_linux_threads=no
11604 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11605 if test $ol_cv_header_linux_threads = yes; then
11606 cat >> confdefs.h <<\EOF
11607 #define HAVE_LINUX_THREADS 1
11613 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11614 echo "configure:11615: checking for GNU Pth pthread.h" >&5
11615 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11618 cat > conftest.$ac_ext <<EOF
11619 #line 11620 "configure"
11620 #include "confdefs.h"
11621 #include <pthread.h>
11622 #ifdef _POSIX_THREAD_IS_GNU_PTH
11627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11628 egrep "__gnu_pth__" >/dev/null 2>&1; then
11630 ol_cv_header_gnu_pth_pthread_h=yes
11633 ol_cv_header_gnu_pth_pthread_h=no
11640 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11643 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11644 for ac_hdr in sched.h
11646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11648 echo "configure:11649: checking for $ac_hdr" >&5
11649 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11652 cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11658 { (eval echo configure:11659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11660 if test -z "$ac_err"; then
11662 eval "ac_cv_header_$ac_safe=yes"
11665 echo "configure: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11668 eval "ac_cv_header_$ac_safe=no"
11672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11673 echo "$ac_t""yes" 1>&6
11674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11675 cat >> confdefs.h <<EOF
11676 #define $ac_tr_hdr 1
11680 echo "$ac_t""no" 1>&6
11687 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11688 echo "configure:11689: checking for pthread_create in default libraries" >&5
11689 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11693 if test "$cross_compiling" = yes; then
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11697 /* pthread test headers */
11698 #include <pthread.h>
11699 #if HAVE_PTHREADS < 7
11703 #define NULL (void*)0
11706 static void *task(p)
11709 return (void *) (p == NULL);
11714 /* pthread test function */
11715 #ifndef PTHREAD_CREATE_DETACHED
11716 #define PTHREAD_CREATE_DETACHED 1
11720 int detach = PTHREAD_CREATE_DETACHED;
11722 #if HAVE_PTHREADS > 4
11723 /* Final pthreads */
11724 pthread_attr_t attr;
11726 status = pthread_attr_init(&attr);
11727 if( status ) return status;
11729 #if HAVE_PTHREADS < 7
11730 status = pthread_attr_setdetachstate(&attr, &detach);
11731 if( status < 0 ) status = errno;
11733 status = pthread_attr_setdetachstate(&attr, detach);
11735 if( status ) return status;
11736 status = pthread_create( &t, &attr, task, NULL );
11737 #if HAVE_PTHREADS < 7
11738 if( status < 0 ) status = errno;
11740 if( status ) return status;
11742 /* Draft 4 pthreads */
11743 status = pthread_create( &t, pthread_attr_default, task, NULL );
11744 if( status ) return errno;
11746 /* give thread a chance to complete */
11747 /* it should remain joinable and hence detachable */
11750 status = pthread_detach( &t );
11751 if( status ) return errno;
11754 #ifdef HAVE_LINUX_THREADS
11755 pthread_kill_other_threads_np();
11762 if { (eval echo configure:11763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11764 ol_cv_pthread_create=yes
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11769 ol_cv_pthread_create=no
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* pthread test headers */
11777 #include <pthread.h>
11778 #if HAVE_PTHREADS < 7
11782 #define NULL (void*)0
11785 static void *task(p)
11788 return (void *) (p == NULL);
11792 int main(argc, argv)
11797 /* pthread test function */
11798 #ifndef PTHREAD_CREATE_DETACHED
11799 #define PTHREAD_CREATE_DETACHED 1
11803 int detach = PTHREAD_CREATE_DETACHED;
11805 #if HAVE_PTHREADS > 4
11806 /* Final pthreads */
11807 pthread_attr_t attr;
11809 status = pthread_attr_init(&attr);
11810 if( status ) return status;
11812 #if HAVE_PTHREADS < 7
11813 status = pthread_attr_setdetachstate(&attr, &detach);
11814 if( status < 0 ) status = errno;
11816 status = pthread_attr_setdetachstate(&attr, detach);
11818 if( status ) return status;
11819 status = pthread_create( &t, &attr, task, NULL );
11820 #if HAVE_PTHREADS < 7
11821 if( status < 0 ) status = errno;
11823 if( status ) return status;
11825 /* Draft 4 pthreads */
11826 status = pthread_create( &t, pthread_attr_default, task, NULL );
11827 if( status ) return errno;
11829 /* give thread a chance to complete */
11830 /* it should remain joinable and hence detachable */
11833 status = pthread_detach( &t );
11834 if( status ) return errno;
11837 #ifdef HAVE_LINUX_THREADS
11838 pthread_kill_other_threads_np();
11846 if { (eval echo configure:11847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11848 ol_cv_pthread_create=yes
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11853 ol_cv_pthread_create=no
11860 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11862 if test $ol_cv_pthread_create != no ; then
11863 ol_link_threads=posix
11864 ol_link_pthreads=""
11867 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11868 if test "$ol_link_threads" = no ; then
11870 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11871 echo "configure:11872: checking for pthread link with -kthread" >&5
11872 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11873 echo $ac_n "(cached) $ac_c" 1>&6
11878 LIBS="-kthread $LIBS"
11880 if test "$cross_compiling" = yes; then
11881 cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11884 /* pthread test headers */
11885 #include <pthread.h>
11886 #if HAVE_PTHREADS < 7
11890 #define NULL (void*)0
11893 static void *task(p)
11896 return (void *) (p == NULL);
11901 /* pthread test function */
11902 #ifndef PTHREAD_CREATE_DETACHED
11903 #define PTHREAD_CREATE_DETACHED 1
11907 int detach = PTHREAD_CREATE_DETACHED;
11909 #if HAVE_PTHREADS > 4
11910 /* Final pthreads */
11911 pthread_attr_t attr;
11913 status = pthread_attr_init(&attr);
11914 if( status ) return status;
11916 #if HAVE_PTHREADS < 7
11917 status = pthread_attr_setdetachstate(&attr, &detach);
11918 if( status < 0 ) status = errno;
11920 status = pthread_attr_setdetachstate(&attr, detach);
11922 if( status ) return status;
11923 status = pthread_create( &t, &attr, task, NULL );
11924 #if HAVE_PTHREADS < 7
11925 if( status < 0 ) status = errno;
11927 if( status ) return status;
11929 /* Draft 4 pthreads */
11930 status = pthread_create( &t, pthread_attr_default, task, NULL );
11931 if( status ) return errno;
11933 /* give thread a chance to complete */
11934 /* it should remain joinable and hence detachable */
11937 status = pthread_detach( &t );
11938 if( status ) return errno;
11941 #ifdef HAVE_LINUX_THREADS
11942 pthread_kill_other_threads_np();
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11951 ol_cv_pthread_kthread=yes
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 ol_cv_pthread_kthread=no
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 /* pthread test headers */
11964 #include <pthread.h>
11965 #if HAVE_PTHREADS < 7
11969 #define NULL (void*)0
11972 static void *task(p)
11975 return (void *) (p == NULL);
11979 int main(argc, argv)
11984 /* pthread test function */
11985 #ifndef PTHREAD_CREATE_DETACHED
11986 #define PTHREAD_CREATE_DETACHED 1
11990 int detach = PTHREAD_CREATE_DETACHED;
11992 #if HAVE_PTHREADS > 4
11993 /* Final pthreads */
11994 pthread_attr_t attr;
11996 status = pthread_attr_init(&attr);
11997 if( status ) return status;
11999 #if HAVE_PTHREADS < 7
12000 status = pthread_attr_setdetachstate(&attr, &detach);
12001 if( status < 0 ) status = errno;
12003 status = pthread_attr_setdetachstate(&attr, detach);
12005 if( status ) return status;
12006 status = pthread_create( &t, &attr, task, NULL );
12007 #if HAVE_PTHREADS < 7
12008 if( status < 0 ) status = errno;
12010 if( status ) return status;
12012 /* Draft 4 pthreads */
12013 status = pthread_create( &t, pthread_attr_default, task, NULL );
12014 if( status ) return errno;
12016 /* give thread a chance to complete */
12017 /* it should remain joinable and hence detachable */
12020 status = pthread_detach( &t );
12021 if( status ) return errno;
12024 #ifdef HAVE_LINUX_THREADS
12025 pthread_kill_other_threads_np();
12033 if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12035 ol_cv_pthread_kthread=yes
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12040 ol_cv_pthread_kthread=no
12051 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12053 if test $ol_cv_pthread_kthread = yes ; then
12054 ol_link_pthreads="-kthread"
12055 ol_link_threads=posix
12059 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12060 if test "$ol_link_threads" = no ; then
12062 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12063 echo "configure:12064: checking for pthread link with -pthread" >&5
12064 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12070 LIBS="-pthread $LIBS"
12072 if test "$cross_compiling" = yes; then
12073 cat > conftest.$ac_ext <<EOF
12074 #line 12075 "configure"
12075 #include "confdefs.h"
12076 /* pthread test headers */
12077 #include <pthread.h>
12078 #if HAVE_PTHREADS < 7
12082 #define NULL (void*)0
12085 static void *task(p)
12088 return (void *) (p == NULL);
12093 /* pthread test function */
12094 #ifndef PTHREAD_CREATE_DETACHED
12095 #define PTHREAD_CREATE_DETACHED 1
12099 int detach = PTHREAD_CREATE_DETACHED;
12101 #if HAVE_PTHREADS > 4
12102 /* Final pthreads */
12103 pthread_attr_t attr;
12105 status = pthread_attr_init(&attr);
12106 if( status ) return status;
12108 #if HAVE_PTHREADS < 7
12109 status = pthread_attr_setdetachstate(&attr, &detach);
12110 if( status < 0 ) status = errno;
12112 status = pthread_attr_setdetachstate(&attr, detach);
12114 if( status ) return status;
12115 status = pthread_create( &t, &attr, task, NULL );
12116 #if HAVE_PTHREADS < 7
12117 if( status < 0 ) status = errno;
12119 if( status ) return status;
12121 /* Draft 4 pthreads */
12122 status = pthread_create( &t, pthread_attr_default, task, NULL );
12123 if( status ) return errno;
12125 /* give thread a chance to complete */
12126 /* it should remain joinable and hence detachable */
12129 status = pthread_detach( &t );
12130 if( status ) return errno;
12133 #ifdef HAVE_LINUX_THREADS
12134 pthread_kill_other_threads_np();
12141 if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12143 ol_cv_pthread_pthread=yes
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12148 ol_cv_pthread_pthread=no
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 /* pthread test headers */
12156 #include <pthread.h>
12157 #if HAVE_PTHREADS < 7
12161 #define NULL (void*)0
12164 static void *task(p)
12167 return (void *) (p == NULL);
12171 int main(argc, argv)
12176 /* pthread test function */
12177 #ifndef PTHREAD_CREATE_DETACHED
12178 #define PTHREAD_CREATE_DETACHED 1
12182 int detach = PTHREAD_CREATE_DETACHED;
12184 #if HAVE_PTHREADS > 4
12185 /* Final pthreads */
12186 pthread_attr_t attr;
12188 status = pthread_attr_init(&attr);
12189 if( status ) return status;
12191 #if HAVE_PTHREADS < 7
12192 status = pthread_attr_setdetachstate(&attr, &detach);
12193 if( status < 0 ) status = errno;
12195 status = pthread_attr_setdetachstate(&attr, detach);
12197 if( status ) return status;
12198 status = pthread_create( &t, &attr, task, NULL );
12199 #if HAVE_PTHREADS < 7
12200 if( status < 0 ) status = errno;
12202 if( status ) return status;
12204 /* Draft 4 pthreads */
12205 status = pthread_create( &t, pthread_attr_default, task, NULL );
12206 if( status ) return errno;
12208 /* give thread a chance to complete */
12209 /* it should remain joinable and hence detachable */
12212 status = pthread_detach( &t );
12213 if( status ) return errno;
12216 #ifdef HAVE_LINUX_THREADS
12217 pthread_kill_other_threads_np();
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12227 ol_cv_pthread_pthread=yes
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12232 ol_cv_pthread_pthread=no
12243 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12245 if test $ol_cv_pthread_pthread = yes ; then
12246 ol_link_pthreads="-pthread"
12247 ol_link_threads=posix
12251 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12252 if test "$ol_link_threads" = no ; then
12254 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12255 echo "configure:12256: checking for pthread link with -pthreads" >&5
12256 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12257 echo $ac_n "(cached) $ac_c" 1>&6
12262 LIBS="-pthreads $LIBS"
12264 if test "$cross_compiling" = yes; then
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12268 /* pthread test headers */
12269 #include <pthread.h>
12270 #if HAVE_PTHREADS < 7
12274 #define NULL (void*)0
12277 static void *task(p)
12280 return (void *) (p == NULL);
12285 /* pthread test function */
12286 #ifndef PTHREAD_CREATE_DETACHED
12287 #define PTHREAD_CREATE_DETACHED 1
12291 int detach = PTHREAD_CREATE_DETACHED;
12293 #if HAVE_PTHREADS > 4
12294 /* Final pthreads */
12295 pthread_attr_t attr;
12297 status = pthread_attr_init(&attr);
12298 if( status ) return status;
12300 #if HAVE_PTHREADS < 7
12301 status = pthread_attr_setdetachstate(&attr, &detach);
12302 if( status < 0 ) status = errno;
12304 status = pthread_attr_setdetachstate(&attr, detach);
12306 if( status ) return status;
12307 status = pthread_create( &t, &attr, task, NULL );
12308 #if HAVE_PTHREADS < 7
12309 if( status < 0 ) status = errno;
12311 if( status ) return status;
12313 /* Draft 4 pthreads */
12314 status = pthread_create( &t, pthread_attr_default, task, NULL );
12315 if( status ) return errno;
12317 /* give thread a chance to complete */
12318 /* it should remain joinable and hence detachable */
12321 status = pthread_detach( &t );
12322 if( status ) return errno;
12325 #ifdef HAVE_LINUX_THREADS
12326 pthread_kill_other_threads_np();
12333 if { (eval echo configure:12334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12335 ol_cv_pthread_pthreads=yes
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12340 ol_cv_pthread_pthreads=no
12344 cat > conftest.$ac_ext <<EOF
12345 #line 12346 "configure"
12346 #include "confdefs.h"
12347 /* pthread test headers */
12348 #include <pthread.h>
12349 #if HAVE_PTHREADS < 7
12353 #define NULL (void*)0
12356 static void *task(p)
12359 return (void *) (p == NULL);
12363 int main(argc, argv)
12368 /* pthread test function */
12369 #ifndef PTHREAD_CREATE_DETACHED
12370 #define PTHREAD_CREATE_DETACHED 1
12374 int detach = PTHREAD_CREATE_DETACHED;
12376 #if HAVE_PTHREADS > 4
12377 /* Final pthreads */
12378 pthread_attr_t attr;
12380 status = pthread_attr_init(&attr);
12381 if( status ) return status;
12383 #if HAVE_PTHREADS < 7
12384 status = pthread_attr_setdetachstate(&attr, &detach);
12385 if( status < 0 ) status = errno;
12387 status = pthread_attr_setdetachstate(&attr, detach);
12389 if( status ) return status;
12390 status = pthread_create( &t, &attr, task, NULL );
12391 #if HAVE_PTHREADS < 7
12392 if( status < 0 ) status = errno;
12394 if( status ) return status;
12396 /* Draft 4 pthreads */
12397 status = pthread_create( &t, pthread_attr_default, task, NULL );
12398 if( status ) return errno;
12400 /* give thread a chance to complete */
12401 /* it should remain joinable and hence detachable */
12404 status = pthread_detach( &t );
12405 if( status ) return errno;
12408 #ifdef HAVE_LINUX_THREADS
12409 pthread_kill_other_threads_np();
12417 if { (eval echo configure:12418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12419 ol_cv_pthread_pthreads=yes
12421 echo "configure: failed program was:" >&5
12422 cat conftest.$ac_ext >&5
12424 ol_cv_pthread_pthreads=no
12435 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12437 if test $ol_cv_pthread_pthreads = yes ; then
12438 ol_link_pthreads="-pthreads"
12439 ol_link_threads=posix
12443 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12444 if test "$ol_link_threads" = no ; then
12446 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12447 echo "configure:12448: checking for pthread link with -mthreads" >&5
12448 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12449 echo $ac_n "(cached) $ac_c" 1>&6
12454 LIBS="-mthreads $LIBS"
12456 if test "$cross_compiling" = yes; then
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 /* pthread test headers */
12461 #include <pthread.h>
12462 #if HAVE_PTHREADS < 7
12466 #define NULL (void*)0
12469 static void *task(p)
12472 return (void *) (p == NULL);
12477 /* pthread test function */
12478 #ifndef PTHREAD_CREATE_DETACHED
12479 #define PTHREAD_CREATE_DETACHED 1
12483 int detach = PTHREAD_CREATE_DETACHED;
12485 #if HAVE_PTHREADS > 4
12486 /* Final pthreads */
12487 pthread_attr_t attr;
12489 status = pthread_attr_init(&attr);
12490 if( status ) return status;
12492 #if HAVE_PTHREADS < 7
12493 status = pthread_attr_setdetachstate(&attr, &detach);
12494 if( status < 0 ) status = errno;
12496 status = pthread_attr_setdetachstate(&attr, detach);
12498 if( status ) return status;
12499 status = pthread_create( &t, &attr, task, NULL );
12500 #if HAVE_PTHREADS < 7
12501 if( status < 0 ) status = errno;
12503 if( status ) return status;
12505 /* Draft 4 pthreads */
12506 status = pthread_create( &t, pthread_attr_default, task, NULL );
12507 if( status ) return errno;
12509 /* give thread a chance to complete */
12510 /* it should remain joinable and hence detachable */
12513 status = pthread_detach( &t );
12514 if( status ) return errno;
12517 #ifdef HAVE_LINUX_THREADS
12518 pthread_kill_other_threads_np();
12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12527 ol_cv_pthread_mthreads=yes
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12532 ol_cv_pthread_mthreads=no
12536 cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 /* pthread test headers */
12540 #include <pthread.h>
12541 #if HAVE_PTHREADS < 7
12545 #define NULL (void*)0
12548 static void *task(p)
12551 return (void *) (p == NULL);
12555 int main(argc, argv)
12560 /* pthread test function */
12561 #ifndef PTHREAD_CREATE_DETACHED
12562 #define PTHREAD_CREATE_DETACHED 1
12566 int detach = PTHREAD_CREATE_DETACHED;
12568 #if HAVE_PTHREADS > 4
12569 /* Final pthreads */
12570 pthread_attr_t attr;
12572 status = pthread_attr_init(&attr);
12573 if( status ) return status;
12575 #if HAVE_PTHREADS < 7
12576 status = pthread_attr_setdetachstate(&attr, &detach);
12577 if( status < 0 ) status = errno;
12579 status = pthread_attr_setdetachstate(&attr, detach);
12581 if( status ) return status;
12582 status = pthread_create( &t, &attr, task, NULL );
12583 #if HAVE_PTHREADS < 7
12584 if( status < 0 ) status = errno;
12586 if( status ) return status;
12588 /* Draft 4 pthreads */
12589 status = pthread_create( &t, pthread_attr_default, task, NULL );
12590 if( status ) return errno;
12592 /* give thread a chance to complete */
12593 /* it should remain joinable and hence detachable */
12596 status = pthread_detach( &t );
12597 if( status ) return errno;
12600 #ifdef HAVE_LINUX_THREADS
12601 pthread_kill_other_threads_np();
12609 if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12611 ol_cv_pthread_mthreads=yes
12613 echo "configure: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12616 ol_cv_pthread_mthreads=no
12627 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12629 if test $ol_cv_pthread_mthreads = yes ; then
12630 ol_link_pthreads="-mthreads"
12631 ol_link_threads=posix
12635 # Pthread try link: -thread (ol_cv_pthread_thread)
12636 if test "$ol_link_threads" = no ; then
12638 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12639 echo "configure:12640: checking for pthread link with -thread" >&5
12640 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12641 echo $ac_n "(cached) $ac_c" 1>&6
12646 LIBS="-thread $LIBS"
12648 if test "$cross_compiling" = yes; then
12649 cat > conftest.$ac_ext <<EOF
12650 #line 12651 "configure"
12651 #include "confdefs.h"
12652 /* pthread test headers */
12653 #include <pthread.h>
12654 #if HAVE_PTHREADS < 7
12658 #define NULL (void*)0
12661 static void *task(p)
12664 return (void *) (p == NULL);
12669 /* pthread test function */
12670 #ifndef PTHREAD_CREATE_DETACHED
12671 #define PTHREAD_CREATE_DETACHED 1
12675 int detach = PTHREAD_CREATE_DETACHED;
12677 #if HAVE_PTHREADS > 4
12678 /* Final pthreads */
12679 pthread_attr_t attr;
12681 status = pthread_attr_init(&attr);
12682 if( status ) return status;
12684 #if HAVE_PTHREADS < 7
12685 status = pthread_attr_setdetachstate(&attr, &detach);
12686 if( status < 0 ) status = errno;
12688 status = pthread_attr_setdetachstate(&attr, detach);
12690 if( status ) return status;
12691 status = pthread_create( &t, &attr, task, NULL );
12692 #if HAVE_PTHREADS < 7
12693 if( status < 0 ) status = errno;
12695 if( status ) return status;
12697 /* Draft 4 pthreads */
12698 status = pthread_create( &t, pthread_attr_default, task, NULL );
12699 if( status ) return errno;
12701 /* give thread a chance to complete */
12702 /* it should remain joinable and hence detachable */
12705 status = pthread_detach( &t );
12706 if( status ) return errno;
12709 #ifdef HAVE_LINUX_THREADS
12710 pthread_kill_other_threads_np();
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12719 ol_cv_pthread_thread=yes
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12724 ol_cv_pthread_thread=no
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12730 "configure"
12730 #include "confdefs.h"
12731 /* pthread test headers */
12732 #include <pthread.h>
12733 #if HAVE_PTHREADS < 7
12737 #define NULL (void*)0
12740 static void *task(p)
12743 return (void *) (p == NULL);
12747 int main(argc, argv)
12752 /* pthread test function */
12753 #ifndef PTHREAD_CREATE_DETACHED
12754 #define PTHREAD_CREATE_DETACHED 1
12758 int detach = PTHREAD_CREATE_DETACHED;
12760 #if HAVE_PTHREADS > 4
12761 /* Final pthreads */
12762 pthread_attr_t attr;
12764 status = pthread_attr_init(&attr);
12765 if( status ) return status;
12767 #if HAVE_PTHREADS < 7
12768 status = pthread_attr_setdetachstate(&attr, &detach);
12769 if( status < 0 ) status = errno;
12771 status = pthread_attr_setdetachstate(&attr, detach);
12773 if( status ) return status;
12774 status = pthread_create( &t, &attr, task, NULL );
12775 #if HAVE_PTHREADS < 7
12776 if( status < 0 ) status = errno;
12778 if( status ) return status;
12780 /* Draft 4 pthreads */
12781 status = pthread_create( &t, pthread_attr_default, task, NULL );
12782 if( status ) return errno;
12784 /* give thread a chance to complete */
12785 /* it should remain joinable and hence detachable */
12788 status = pthread_detach( &t );
12789 if( status ) return errno;
12792 #ifdef HAVE_LINUX_THREADS
12793 pthread_kill_other_threads_np();
12801 if { (eval echo configure:12802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12803 ol_cv_pthread_thread=yes
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12808 ol_cv_pthread_thread=no
12819 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12821 if test $ol_cv_pthread_thread = yes ; then
12822 ol_link_pthreads="-thread"
12823 ol_link_threads=posix
12828 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12829 if test "$ol_link_threads" = no ; then
12830 # try -lpthread -lmach -lexc -lc_r
12831 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12832 echo "configure:12833: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12833 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12834 echo $ac_n "(cached) $ac_c" 1>&6
12839 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12841 if test "$cross_compiling" = yes; then
12842 cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 /* pthread test headers */
12846 #include <pthread.h>
12847 #if HAVE_PTHREADS < 7
12851 #define NULL (void*)0
12854 static void *task(p)
12857 return (void *) (p == NULL);
12862 /* pthread test function */
12863 #ifndef PTHREAD_CREATE_DETACHED
12864 #define PTHREAD_CREATE_DETACHED 1
12868 int detach = PTHREAD_CREATE_DETACHED;
12870 #if HAVE_PTHREADS > 4
12871 /* Final pthreads */
12872 pthread_attr_t attr;
12874 status = pthread_attr_init(&attr);
12875 if( status ) return status;
12877 #if HAVE_PTHREADS < 7
12878 status = pthread_attr_setdetachstate(&attr, &detach);
12879 if( status < 0 ) status = errno;
12881 status = pthread_attr_setdetachstate(&attr, detach);
12883 if( status ) return status;
12884 status = pthread_create( &t, &attr, task, NULL );
12885 #if HAVE_PTHREADS < 7
12886 if( status < 0 ) status = errno;
12888 if( status ) return status;
12890 /* Draft 4 pthreads */
12891 status = pthread_create( &t, pthread_attr_default, task, NULL );
12892 if( status ) return errno;
12894 /* give thread a chance to complete */
12895 /* it should remain joinable and hence detachable */
12898 status = pthread_detach( &t );
12899 if( status ) return errno;
12902 #ifdef HAVE_LINUX_THREADS
12903 pthread_kill_other_threads_np();
12910 if { (eval echo configure:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12912 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12917 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12921 cat > conftest.$ac_ext <<EOF
12922 #line 12923 "configure"
12923 #include "confdefs.h"
12924 /* pthread test headers */
12925 #include <pthread.h>
12926 #if HAVE_PTHREADS < 7
12930 #define NULL (void*)0
12933 static void *task(p)
12936 return (void *) (p == NULL);
12940 int main(argc, argv)
12945 /* pthread test function */
12946 #ifndef PTHREAD_CREATE_DETACHED
12947 #define PTHREAD_CREATE_DETACHED 1
12951 int detach = PTHREAD_CREATE_DETACHED;
12953 #if HAVE_PTHREADS > 4
12954 /* Final pthreads */
12955 pthread_attr_t attr;
12957 status = pthread_attr_init(&attr);
12958 if( status ) return status;
12960 #if HAVE_PTHREADS < 7
12961 status = pthread_attr_setdetachstate(&attr, &detach);
12962 if( status < 0 ) status = errno;
12964 status = pthread_attr_setdetachstate(&attr, detach);
12966 if( status ) return status;
12967 status = pthread_create( &t, &attr, task, NULL );
12968 #if HAVE_PTHREADS < 7
12969 if( status < 0 ) status = errno;
12971 if( status ) return status;
12973 /* Draft 4 pthreads */
12974 status = pthread_create( &t, pthread_attr_default, task, NULL );
12975 if( status ) return errno;
12977 /* give thread a chance to complete */
12978 /* it should remain joinable and hence detachable */
12981 status = pthread_detach( &t );
12982 if( status ) return errno;
12985 #ifdef HAVE_LINUX_THREADS
12986 pthread_kill_other_threads_np();
12994 if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12996 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12998 echo "configure: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13001 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13012 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13014 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13015 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13016 ol_link_threads=posix
13020 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13021 if test "$ol_link_threads" = no ; then
13022 # try -lpthread -lmach -lexc
13023 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13024 echo "configure:13025: checking for pthread link with -lpthread -lmach -lexc" >&5
13025 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13031 LIBS="-lpthread -lmach -lexc $LIBS"
13033 if test "$cross_compiling" = yes; then
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13037 /* pthread test headers */
13038 #include <pthread.h>
13039 #if HAVE_PTHREADS < 7
13043 #define NULL (void*)0
13046 static void *task(p)
13049 return (void *) (p == NULL);
13054 /* pthread test function */
13055 #ifndef PTHREAD_CREATE_DETACHED
13056 #define PTHREAD_CREATE_DETACHED 1
13060 int detach = PTHREAD_CREATE_DETACHED;
13062 #if HAVE_PTHREADS > 4
13063 /* Final pthreads */
13064 pthread_attr_t attr;
13066 status = pthread_attr_init(&attr);
13067 if( status ) return status;
13069 #if HAVE_PTHREADS < 7
13070 status = pthread_attr_setdetachstate(&attr, &detach);
13071 if( status < 0 ) status = errno;
13073 status = pthread_attr_setdetachstate(&attr, detach);
13075 if( status ) return status;
13076 status = pthread_create( &t, &attr, task, NULL );
13077 #if HAVE_PTHREADS < 7
13078 if( status < 0 ) status = errno;
13080 if( status ) return status;
13082 /* Draft 4 pthreads */
13083 status = pthread_create( &t, pthread_attr_default, task, NULL );
13084 if( status ) return errno;
13086 /* give thread a chance to complete */
13087 /* it should remain joinable and hence detachable */
13090 status = pthread_detach( &t );
13091 if( status ) return errno;
13094 #ifdef HAVE_LINUX_THREADS
13095 pthread_kill_other_threads_np();
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13104 ol_cv_pthread_lpthread_lmach_lexc=yes
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13109 ol_cv_pthread_lpthread_lmach_lexc=no
13113 cat > conftest.$ac_ext <<EOF
13114 #line 13115 "configure"
13115 #include "confdefs.h"
13116 /* pthread test headers */
13117 #include <pthread.h>
13118 #if HAVE_PTHREADS < 7
13122 #define NULL (void*)0
13125 static void *task(p)
13128 return (void *) (p == NULL);
13132 int main(argc, argv)
13137 /* pthread test function */
13138 #ifndef PTHREAD_CREATE_DETACHED
13139 #define PTHREAD_CREATE_DETACHED 1
13143 int detach = PTHREAD_CREATE_DETACHED;
13145 #if HAVE_PTHREADS > 4
13146 /* Final pthreads */
13147 pthread_attr_t attr;
13149 status = pthread_attr_init(&attr);
13150 if( status ) return status;
13152 #if HAVE_PTHREADS < 7
13153 status = pthread_attr_setdetachstate(&attr, &detach);
13154 if( status < 0 ) status = errno;
13156 status = pthread_attr_setdetachstate(&attr, detach);
13158 if( status ) return status;
13159 status = pthread_create( &t, &attr, task, NULL );
13160 #if HAVE_PTHREADS < 7
13161 if( status < 0 ) status = errno;
13163 if( status ) return status;
13165 /* Draft 4 pthreads */
13166 status = pthread_create( &t, pthread_attr_default, task, NULL );
13167 if( status ) return errno;
13169 /* give thread a chance to complete */
13170 /* it should remain joinable and hence detachable */
13173 status = pthread_detach( &t );
13174 if( status ) return errno;
13177 #ifdef HAVE_LINUX_THREADS
13178 pthread_kill_other_threads_np();
13186 if { (eval echo configure:13187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13188 ol_cv_pthread_lpthread_lmach_lexc=yes
13190 echo "configure: failed program was:" >&5
13191 cat conftest.$ac_ext >&5
13193 ol_cv_pthread_lpthread_lmach_lexc=no
13204 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13206 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13207 ol_link_pthreads="-lpthread -lmach -lexc"
13208 ol_link_threads=posix
13213 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13214 if test "$ol_link_threads" = no ; then
13215 # try -lpthread -Wl,-woff,85
13216 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13217 echo "configure:13218: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13218 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13219 echo $ac_n "(cached) $ac_c" 1>&6
13224 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13226 if test "$cross_compiling" = yes; then
13227 cat > conftest.$ac_ext <<EOF
13228 #line 13229 "configure"
13229 #include "confdefs.h"
13230 /* pthread test headers */
13231 #include <pthread.h>
13232 #if HAVE_PTHREADS < 7
13236 #define NULL (void*)0
13239 static void *task(p)
13242 return (void *) (p == NULL);
13247 /* pthread test function */
13248 #ifndef PTHREAD_CREATE_DETACHED
13249 #define PTHREAD_CREATE_DETACHED 1
13253 int detach = PTHREAD_CREATE_DETACHED;
13255 #if HAVE_PTHREADS > 4
13256 /* Final pthreads */
13257 pthread_attr_t attr;
13259 status = pthread_attr_init(&attr);
13260 if( status ) return status;
13262 #if HAVE_PTHREADS < 7
13263 status = pthread_attr_setdetachstate(&attr, &detach);
13264 if( status < 0 ) status = errno;
13266 status = pthread_attr_setdetachstate(&attr, detach);
13268 if( status ) return status;
13269 status = pthread_create( &t, &attr, task, NULL );
13270 #if HAVE_PTHREADS < 7
13271 if( status < 0 ) status = errno;
13273 if( status ) return status;
13275 /* Draft 4 pthreads */
13276 status = pthread_create( &t, pthread_attr_default, task, NULL );
13277 if( status ) return errno;
13279 /* give thread a chance to complete */
13280 /* it should remain joinable and hence detachable */
13283 status = pthread_detach( &t );
13284 if( status ) return errno;
13287 #ifdef HAVE_LINUX_THREADS
13288 pthread_kill_other_threads_np();
13295 if { (eval echo configure:13296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13297 ol_cv_pthread_lib_lpthread_woff=yes
13299 echo "configure: failed program was:" >&5
13300 cat conftest.$ac_ext >&5
13302 ol_cv_pthread_lib_lpthread_woff=no
13306 cat > conftest.$ac_ext <<EOF
13307 #line 13308 "configure"
13308 #include "confdefs.h"
13309 /* pthread test headers */
13310 #include <pthread.h>
13311 #if HAVE_PTHREADS < 7
13315 #define NULL (void*)0
13318 static void *task(p)
13321 return (void *) (p == NULL);
13325 int main(argc, argv)
13330 /* pthread test function */
13331 #ifndef PTHREAD_CREATE_DETACHED
13332 #define PTHREAD_CREATE_DETACHED 1
13336 int detach = PTHREAD_CREATE_DETACHED;
13338 #if HAVE_PTHREADS > 4
13339 /* Final pthreads */
13340 pthread_attr_t attr;
13342 status = pthread_attr_init(&attr);
13343 if( status ) return status;
13345 #if HAVE_PTHREADS < 7
13346 status = pthread_attr_setdetachstate(&attr, &detach);
13347 if( status < 0 ) status = errno;
13349 status = pthread_attr_setdetachstate(&attr, detach);
13351 if( status ) return status;
13352 status = pthread_create( &t, &attr, task, NULL );
13353 #if HAVE_PTHREADS < 7
13354 if( status < 0 ) status = errno;
13356 if( status ) return status;
13358 /* Draft 4 pthreads */
13359 status = pthread_create( &t, pthread_attr_default, task, NULL );
13360 if( status ) return errno;
13362 /* give thread a chance to complete */
13363 /* it should remain joinable and hence detachable */
13366 status = pthread_detach( &t );
13367 if( status ) return errno;
13370 #ifdef HAVE_LINUX_THREADS
13371 pthread_kill_other_threads_np();
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13381 ol_cv_pthread_lib_lpthread_woff=yes
13383 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13386 ol_cv_pthread_lib_lpthread_woff=no
13397 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13399 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13400 ol_link_pthreads="-lpthread -Wl,-woff,85"
13401 ol_link_threads=posix
13406 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13407 if test "$ol_link_threads" = no ; then
13409 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13410 echo "configure:13411: checking for pthread link with -lpthread" >&5
13411 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
13417 LIBS="-lpthread $LIBS"
13419 if test "$cross_compiling" = yes; then
13420 cat > conftest.$ac_ext <<EOF
13421 #line 13422 "configure"
13422 #include "confdefs.h"
13423 /* pthread test headers */
13424 #include <pthread.h>
13425 #if HAVE_PTHREADS < 7
13429 #define NULL (void*)0
13432 static void *task(p)
13435 return (void *) (p == NULL);
13440 /* pthread test function */
13441 #ifndef PTHREAD_CREATE_DETACHED
13442 #define PTHREAD_CREATE_DETACHED 1
13446 int detach = PTHREAD_CREATE_DETACHED;
13448 #if HAVE_PTHREADS > 4
13449 /* Final pthreads */
13450 pthread_attr_t attr;
13452 status = pthread_attr_init(&attr);
13453 if( status ) return status;
13455 #if HAVE_PTHREADS < 7
13456 status = pthread_attr_setdetachstate(&attr, &detach);
13457 if( status < 0 ) status = errno;
13459 status = pthread_attr_setdetachstate(&attr, detach);
13461 if( status ) return status;
13462 status = pthread_create( &t, &attr, task, NULL );
13463 #if HAVE_PTHREADS < 7
13464 if( status < 0 ) status = errno;
13466 if( status ) return status;
13468 /* Draft 4 pthreads */
13469 status = pthread_create( &t, pthread_attr_default, task, NULL );
13470 if( status ) return errno;
13472 /* give thread a chance to complete */
13473 /* it should remain joinable and hence detachable */
13476 status = pthread_detach( &t );
13477 if( status ) return errno;
13480 #ifdef HAVE_LINUX_THREADS
13481 pthread_kill_other_threads_np();
13488 if { (eval echo configure:13489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13490 ol_cv_pthread_lpthread=yes
13492 echo "configure: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13495 ol_cv_pthread_lpthread=no
13499 cat > conftest.$ac_ext <<EOF
13500 #line 13501 "configure"
13501 #include "confdefs.h"
13502 /* pthread test headers */
13503 #include <pthread.h>
13504 #if HAVE_PTHREADS < 7
13508 #define NULL (void*)0
13511 static void *task(p)
13514 return (void *) (p == NULL);
13518 int main(argc, argv)
13523 /* pthread test function */
13524 #ifndef PTHREAD_CREATE_DETACHED
13525 #define PTHREAD_CREATE_DETACHED 1
13529 int detach = PTHREAD_CREATE_DETACHED;
13531 #if HAVE_PTHREADS > 4
13532 /* Final pthreads */
13533 pthread_attr_t attr;
13535 status = pthread_attr_init(&attr);
13536 if( status ) return status;
13538 #if HAVE_PTHREADS < 7
13539 status = pthread_attr_setdetachstate(&attr, &detach);
13540 if( status < 0 ) status = errno;
13542 status = pthread_attr_setdetachstate(&attr, detach);
13544 if( status ) return status;
13545 status = pthread_create( &t, &attr, task, NULL );
13546 #if HAVE_PTHREADS < 7
13547 if( status < 0 ) status = errno;
13549 if( status ) return status;
13551 /* Draft 4 pthreads */
13552 status = pthread_create( &t, pthread_attr_default, task, NULL );
13553 if( status ) return errno;
13555 /* give thread a chance to complete */
13556 /* it should remain joinable and hence detachable */
13559 status = pthread_detach( &t );
13560 if( status ) return errno;
13563 #ifdef HAVE_LINUX_THREADS
13564 pthread_kill_other_threads_np();
13572 if { (eval echo configure:13573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13574 ol_cv_pthread_lpthread=yes
13576 echo "configure: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13579 ol_cv_pthread_lpthread=no
13590 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13592 if test $ol_cv_pthread_lpthread = yes ; then
13593 ol_link_pthreads="-lpthread"
13594 ol_link_threads=posix
13598 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13599 if test "$ol_link_threads" = no ; then
13601 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13602 echo "configure:13603: checking for pthread link with -lc_r" >&5
13603 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13611 if test "$cross_compiling" = yes; then
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13615 /* pthread test headers */
13616 #include <pthread.h>
13617 #if HAVE_PTHREADS < 7
13621 #define NULL (void*)0
13624 static void *task(p)
13627 return (void *) (p == NULL);
13632 /* pthread test function */
13633 #ifndef PTHREAD_CREATE_DETACHED
13634 #define PTHREAD_CREATE_DETACHED 1
13638 int detach = PTHREAD_CREATE_DETACHED;
13640 #if HAVE_PTHREADS > 4
13641 /* Final pthreads */
13642 pthread_attr_t attr;
13644 status = pthread_attr_init(&attr);
13645 if( status ) return status;
13647 #if HAVE_PTHREADS < 7
13648 status = pthread_attr_setdetachstate(&attr, &detach);
13649 if( status < 0 ) status = errno;
13651 status = pthread_attr_setdetachstate(&attr, detach);
13653 if( status ) return status;
13654 status = pthread_create( &t, &attr, task, NULL );
13655 #if HAVE_PTHREADS < 7
13656 if( status < 0 ) status = errno;
13658 if( status ) return status;
13660 /* Draft 4 pthreads */
13661 status = pthread_create( &t, pthread_attr_default, task, NULL );
13662 if( status ) return errno;
13664 /* give thread a chance to complete */
13665 /* it should remain joinable and hence detachable */
13668 status = pthread_detach( &t );
13669 if( status ) return errno;
13672 #ifdef HAVE_LINUX_THREADS
13673 pthread_kill_other_threads_np();
13680 if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13682 ol_cv_pthread_lc_r=yes
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13687 ol_cv_pthread_lc_r=no
13691 cat > conftest.$ac_ext <<EOF
13692 #line 13693 "configure"
13693 #include "confdefs.h"
13694 /* pthread test headers */
13695 #include <pthread.h>
13696 #if HAVE_PTHREADS < 7
13700 #define NULL (void*)0
13703 static void *task(p)
13706 return (void *) (p == NULL);
13710 int main(argc, argv)
13715 /* pthread test function */
13716 #ifndef PTHREAD_CREATE_DETACHED
13717 #define PTHREAD_CREATE_DETACHED 1
13721 int detach = PTHREAD_CREATE_DETACHED;
13723 #if HAVE_PTHREADS > 4
13724 /* Final pthreads */
13725 pthread_attr_t attr;
13727 status = pthread_attr_init(&attr);
13728 if( status ) return status;
13730 #if HAVE_PTHREADS < 7
13731 status = pthread_attr_setdetachstate(&attr, &detach);
13732 if( status < 0 ) status = errno;
13734 status = pthread_attr_setdetachstate(&attr, detach);
13736 if( status ) return status;
13737 status = pthread_create( &t, &attr, task, NULL );
13738 #if HAVE_PTHREADS < 7
13739 if( status < 0 ) status = errno;
13741 if( status ) return status;
13743 /* Draft 4 pthreads */
13744 status = pthread_create( &t, pthread_attr_default, task, NULL );
13745 if( status ) return errno;
13747 /* give thread a chance to complete */
13748 /* it should remain joinable and hence detachable */
13751 status = pthread_detach( &t );
13752 if( status ) return errno;
13755 #ifdef HAVE_LINUX_THREADS
13756 pthread_kill_other_threads_np();
13764 if { (eval echo configure:13765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13766 ol_cv_pthread_lc_r=yes
13768 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13771 ol_cv_pthread_lc_r=no
13782 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13784 if test $ol_cv_pthread_lc_r = yes ; then
13785 ol_link_pthreads="-lc_r"
13786 ol_link_threads=posix
13791 # Pthread try link: -threads (ol_cv_pthread_threads)
13792 if test "$ol_link_threads" = no ; then
13794 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13795 echo "configure:13796: checking for pthread link with -threads" >&5
13796 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13797 echo $ac_n "(cached) $ac_c" 1>&6
13802 LIBS="-threads $LIBS"
13804 if test "$cross_compiling" = yes; then
13805 cat > conftest.$ac_ext <<EOF
13806 #line 13807 "configure"
13807 #include "confdefs.h"
13808 /* pthread test headers */
13809 #include <pthread.h>
13810 #if HAVE_PTHREADS < 7
13814 #define NULL (void*)0
13817 static void *task(p)
13820 return (void *) (p == NULL);
13825 /* pthread test function */
13826 #ifndef PTHREAD_CREATE_DETACHED
13827 #define PTHREAD_CREATE_DETACHED 1
13831 int detach = PTHREAD_CREATE_DETACHED;
13833 #if HAVE_PTHREADS > 4
13834 /* Final pthreads */
13835 pthread_attr_t attr;
13837 status = pthread_attr_init(&attr);
13838 if( status ) return status;
13840 #if HAVE_PTHREADS < 7
13841 status = pthread_attr_setdetachstate(&attr, &detach);
13842 if( status < 0 ) status = errno;
13844 status = pthread_attr_setdetachstate(&attr, detach);
13846 if( status ) return status;
13847 status = pthread_create( &t, &attr, task, NULL );
13848 #if HAVE_PTHREADS < 7
13849 if( status < 0 ) status = errno;
13851 if( status ) return status;
13853 /* Draft 4 pthreads */
13854 status = pthread_create( &t, pthread_attr_default, task, NULL );
13855 if( status ) return errno;
13857 /* give thread a chance to complete */
13858 /* it should remain joinable and hence detachable */
13861 status = pthread_detach( &t );
13862 if( status ) return errno;
13865 #ifdef HAVE_LINUX_THREADS
13866 pthread_kill_other_threads_np();
13873 if { (eval echo configure:13874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13875 ol_cv_pthread_threads=yes
13877 echo "configure: failed program was:" >&5
13878 cat conftest.$ac_ext >&5
13880 ol_cv_pthread_threads=no
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 /* pthread test headers */
13888 #include <pthread.h>
13889 #if HAVE_PTHREADS < 7
13893 #define NULL (void*)0
13896 static void *task(p)
13899 return (void *) (p == NULL);
13903 int main(argc, argv)
13908 /* pthread test function */
13909 #ifndef PTHREAD_CREATE_DETACHED
13910 #define PTHREAD_CREATE_DETACHED 1
13914 int detach = PTHREAD_CREATE_DETACHED;
13916 #if HAVE_PTHREADS > 4
13917 /* Final pthreads */
13918 pthread_attr_t attr;
13920 status = pthread_attr_init(&attr);
13921 if( status ) return status;
13923 #if HAVE_PTHREADS < 7
13924 status = pthread_attr_setdetachstate(&attr, &detach);
13925 if( status < 0 ) status = errno;
13927 status = pthread_attr_setdetachstate(&attr, detach);
13929 if( status ) return status;
13930 status = pthread_create( &t, &attr, task, NULL );
13931 #if HAVE_PTHREADS < 7
13932 if( status < 0 ) status = errno;
13934 if( status ) return status;
13936 /* Draft 4 pthreads */
13937 status = pthread_create( &t, pthread_attr_default, task, NULL );
13938 if( status ) return errno;
13940 /* give thread a chance to complete */
13941 /* it should remain joinable and hence detachable */
13944 status = pthread_detach( &t );
13945 if( status ) return errno;
13948 #ifdef HAVE_LINUX_THREADS
13949 pthread_kill_other_threads_np();
13957 if { (eval echo configure:13958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13959 ol_cv_pthread_threads=yes
13961 echo "configure: failed program was:" >&5
13962 cat conftest.$ac_ext >&5
13964 ol_cv_pthread_threads=no
13975 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13977 if test $ol_cv_pthread_threads = yes ; then
13978 ol_link_pthreads="-threads"
13979 ol_link_threads=posix
13984 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13985 if test "$ol_link_threads" = no ; then
13986 # try -lpthreads -lmach -lexc -lc_r
13987 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13988 echo "configure:13989: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13989 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13990 echo $ac_n "(cached) $ac_c" 1>&6
13995 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13997 if test "$cross_compiling" = yes; then
13998 cat > conftest.$ac_ext <<EOF
13999 #line 14000 "configure"
14000 #include "confdefs.h"
14001 /* pthread test headers */
14002 #include <pthread.h>
14003 #if HAVE_PTHREADS < 7
14007 #define NULL (void*)0
14010 static void *task(p)
14013 return (void *) (p == NULL);
14018 /* pthread test function */
14019 #ifndef PTHREAD_CREATE_DETACHED
14020 #define PTHREAD_CREATE_DETACHED 1
14024 int detach = PTHREAD_CREATE_DETACHED;
14026 #if HAVE_PTHREADS > 4
14027 /* Final pthreads */
14028 pthread_attr_t attr;
14030 status = pthread_attr_init(&attr);
14031 if( status ) return status;
14033 #if HAVE_PTHREADS < 7
14034 status = pthread_attr_setdetachstate(&attr, &detach);
14035 if( status < 0 ) status = errno;
14037 status = pthread_attr_setdetachstate(&attr, detach);
14039 if( status ) return status;
14040 status = pthread_create( &t, &attr, task, NULL );
14041 #if HAVE_PTHREADS < 7
14042 if( status < 0 ) status = errno;
14044 if( status ) return status;
14046 /* Draft 4 pthreads */
14047 status = pthread_create( &t, pthread_attr_default, task, NULL );
14048 if( status ) return errno;
14050 /* give thread a chance to complete */
14051 /* it should remain joinable and hence detachable */
14054 status = pthread_detach( &t );
14055 if( status ) return errno;
14058 #ifdef HAVE_LINUX_THREADS
14059 pthread_kill_other_threads_np();
14066 if { (eval echo configure:14067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14068 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14070 echo "configure: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14073 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14077 cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 /* pthread test headers */
14081 #include <pthread.h>
14082 #if HAVE_PTHREADS < 7
14086 #define NULL (void*)0
14089 static void *task(p)
14092 return (void *) (p == NULL);
14096 int main(argc, argv)
14101 /* pthread test function */
14102 #ifndef PTHREAD_CREATE_DETACHED
14103 #define PTHREAD_CREATE_DETACHED 1
14107 int detach = PTHREAD_CREATE_DETACHED;
14109 #if HAVE_PTHREADS > 4
14110 /* Final pthreads */
14111 pthread_attr_t attr;
14113 status = pthread_attr_init(&attr);
14114 if( status ) return status;
14116 #if HAVE_PTHREADS < 7
14117 status = pthread_attr_setdetachstate(&attr, &detach);
14118 if( status < 0 ) status = errno;
14120 status = pthread_attr_setdetachstate(&attr, detach);
14122 if( status ) return status;
14123 status = pthread_create( &t, &attr, task, NULL );
14124 #if HAVE_PTHREADS < 7
14125 if( status < 0 ) status = errno;
14127 if( status ) return status;
14129 /* Draft 4 pthreads */
14130 status = pthread_create( &t, pthread_attr_default, task, NULL );
14131 if( status ) return errno;
14133 /* give thread a chance to complete */
14134 /* it should remain joinable and hence detachable */
14137 status = pthread_detach( &t );
14138 if( status ) return errno;
14141 #ifdef HAVE_LINUX_THREADS
14142 pthread_kill_other_threads_np();
14150 if { (eval echo configure:14151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14152 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14154 echo "configure: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
14157 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14168 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14170 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14171 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14172 ol_link_threads=posix
14176 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14177 if test "$ol_link_threads" = no ; then
14178 # try -lpthreads -lmach -lexc
14179 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14180 echo "configure:14181: checking for pthread link with -lpthreads -lmach -lexc" >&5
14181 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14182 echo $ac_n "(cached) $ac_c" 1>&6
14187 LIBS="-lpthreads -lmach -lexc $LIBS"
14189 if test "$cross_compiling" = yes; then
14190 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure"
14192 #include "confdefs.h"
14193 /* pthread test headers */
14194 #include <pthread.h>
14195 #if HAVE_PTHREADS < 7
14199 #define NULL (void*)0
14202 static void *task(p)
14205 return (void *) (p == NULL);
14210 /* pthread test function */
14211 #ifndef PTHREAD_CREATE_DETACHED
14212 #define PTHREAD_CREATE_DETACHED 1
14216 int detach = PTHREAD_CREATE_DETACHED;
14218 #if HAVE_PTHREADS > 4
14219 /* Final pthreads */
14220 pthread_attr_t attr;
14222 status = pthread_attr_init(&attr);
14223 if( status ) return status;
14225 #if HAVE_PTHREADS < 7
14226 status = pthread_attr_setdetachstate(&attr, &detach);
14227 if( status < 0 ) status = errno;
14229 status = pthread_attr_setdetachstate(&attr, detach);
14231 if( status ) return status;
14232 status = pthread_create( &t, &attr, task, NULL );
14233 #if HAVE_PTHREADS < 7
14234 if( status < 0 ) status = errno;
14236 if( status ) return status;
14238 /* Draft 4 pthreads */
14239 status = pthread_create( &t, pthread_attr_default, task, NULL );
14240 if( status ) return errno;
14242 /* give thread a chance to complete */
14243 /* it should remain joinable and hence detachable */
14246 status = pthread_detach( &t );
14247 if( status ) return errno;
14250 #ifdef HAVE_LINUX_THREADS
14251 pthread_kill_other_threads_np();
14258 if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14260 ol_cv_pthread_lpthreads_lmach_lexc=yes
14262 echo "configure: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14265 ol_cv_pthread_lpthreads_lmach_lexc=no
14269 cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 /* pthread test headers */
14273 #include <pthread.h>
14274 #if HAVE_PTHREADS < 7
14278 #define NULL (void*)0
14281 static void *task(p)
14284 return (void *) (p == NULL);
14288 int main(argc, argv)
14293 /* pthread test function */
14294 #ifndef PTHREAD_CREATE_DETACHED
14295 #define PTHREAD_CREATE_DETACHED 1
14299 int detach = PTHREAD_CREATE_DETACHED;
14301 #if HAVE_PTHREADS > 4
14302 /* Final pthreads */
14303 pthread_attr_t attr;
14305 status = pthread_attr_init(&attr);
14306 if( status ) return status;
14308 #if HAVE_PTHREADS < 7
14309 status = pthread_attr_setdetachstate(&attr, &detach);
14310 if( status < 0 ) status = errno;
14312 status = pthread_attr_setdetachstate(&attr, detach);
14314 if( status ) return status;
14315 status = pthread_create( &t, &attr, task, NULL );
14316 #if HAVE_PTHREADS < 7
14317 if( status < 0 ) status = errno;
14319 if( status ) return status;
14321 /* Draft 4 pthreads */
14322 status = pthread_create( &t, pthread_attr_default, task, NULL );
14323 if( status ) return errno;
14325 /* give thread a chance to complete */
14326 /* it should remain joinable and hence detachable */
14329 status = pthread_detach( &t );
14330 if( status ) return errno;
14333 #ifdef HAVE_LINUX_THREADS
14334 pthread_kill_other_threads_np();
14342 if { (eval echo configure:14343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14344 ol_cv_pthread_lpthreads_lmach_lexc=yes
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14349 ol_cv_pthread_lpthreads_lmach_lexc=no
14360 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14362 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14363 ol_link_pthreads="-lpthreads -lmach -lexc"
14364 ol_link_threads=posix
14368 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14369 if test "$ol_link_threads" = no ; then
14370 # try -lpthreads -lexc
14371 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14372 echo "configure:14373: checking for pthread link with -lpthreads -lexc" >&5
14373 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14374 echo $ac_n "(cached) $ac_c" 1>&6
14379 LIBS="-lpthreads -lexc $LIBS"
14381 if test "$cross_compiling" = yes; then
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 /* pthread test headers */
14386 #include <pthread.h>
14387 #if HAVE_PTHREADS < 7
14391 #define NULL (void*)0
14394 static void *task(p)
14397 return (void *) (p == NULL);
14402 /* pthread test function */
14403 #ifndef PTHREAD_CREATE_DETACHED
14404 #define PTHREAD_CREATE_DETACHED 1
14408 int detach = PTHREAD_CREATE_DETACHED;
14410 #if HAVE_PTHREADS > 4
14411 /* Final pthreads */
14412 pthread_attr_t attr;
14414 status = pthread_attr_init(&attr);
14415 if( status ) return status;
14417 #if HAVE_PTHREADS < 7
14418 status = pthread_attr_setdetachstate(&attr, &detach);
14419 if( status < 0 ) status = errno;
14421 status = pthread_attr_setdetachstate(&attr, detach);
14423 if( status ) return status;
14424 status = pthread_create( &t, &attr, task, NULL );
14425 #if HAVE_PTHREADS < 7
14426 if( status < 0 ) status = errno;
14428 if( status ) return status;
14430 /* Draft 4 pthreads */
14431 status = pthread_create( &t, pthread_attr_default, task, NULL );
14432 if( status ) return errno;
14434 /* give thread a chance to complete */
14435 /* it should remain joinable and hence detachable */
14438 status = pthread_detach( &t );
14439 if( status ) return errno;
14442 #ifdef HAVE_LINUX_THREADS
14443 pthread_kill_other_threads_np();
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452 ol_cv_pthread_lpthreads_lexc=yes
14454 echo "configure: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14457 ol_cv_pthread_lpthreads_lexc=no
14461 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14464 /* pthread test headers */
14465 #include <pthread.h>
14466 #if HAVE_PTHREADS < 7
14470 #define NULL (void*)0
14473 static void *task(p)
14476 return (void *) (p == NULL);
14480 int main(argc, argv)
14485 /* pthread test function */
14486 #ifndef PTHREAD_CREATE_DETACHED
14487 #define PTHREAD_CREATE_DETACHED 1
14491 int detach = PTHREAD_CREATE_DETACHED;
14493 #if HAVE_PTHREADS > 4
14494 /* Final pthreads */
14495 pthread_attr_t attr;
14497 status = pthread_attr_init(&attr);
14498 if( status ) return status;
14500 #if HAVE_PTHREADS < 7
14501 status = pthread_attr_setdetachstate(&attr, &detach);
14502 if( status < 0 ) status = errno;
14504 status = pthread_attr_setdetachstate(&attr, detach);
14506 if( status ) return status;
14507 status = pthread_create( &t, &attr, task, NULL );
14508 #if HAVE_PTHREADS < 7
14509 if( status < 0 ) status = errno;
14511 if( status ) return status;
14513 /* Draft 4 pthreads */
14514 status = pthread_create( &t, pthread_attr_default, task, NULL );
14515 if( status ) return errno;
14517 /* give thread a chance to complete */
14518 /* it should remain joinable and hence detachable */
14521 status = pthread_detach( &t );
14522 if( status ) return errno;
14525 #ifdef HAVE_LINUX_THREADS
14526 pthread_kill_other_threads_np();
14534 if { (eval echo configure:14535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14536 ol_cv_pthread_lpthreads_lexc=yes
14538 echo "configure: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14541 ol_cv_pthread_lpthreads_lexc=no
14552 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14554 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14555 ol_link_pthreads="-lpthreads -lexc"
14556 ol_link_threads=posix
14561 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14562 if test "$ol_link_threads" = no ; then
14564 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14565 echo "configure:14566: checking for pthread link with -lpthreads" >&5
14566 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14567 echo $ac_n "(cached) $ac_c" 1>&6
14572 LIBS="-lpthreads $LIBS"
14574 if test "$cross_compiling" = yes; then
14575 cat > conftest.$ac_ext <<EOF
14576 #line 14577 "configure"
14577 #include "confdefs.h"
14578 /* pthread test headers */
14579 #include <pthread.h>
14580 #if HAVE_PTHREADS < 7
14584 #define NULL (void*)0
14587 static void *task(p)
14590 return (void *) (p == NULL);
14595 /* pthread test function */
14596 #ifndef PTHREAD_CREATE_DETACHED
14597 #define PTHREAD_CREATE_DETACHED 1
14601 int detach = PTHREAD_CREATE_DETACHED;
14603 #if HAVE_PTHREADS > 4
14604 /* Final pthreads */
14605 pthread_attr_t attr;
14607 status = pthread_attr_init(&attr);
14608 if( status ) return status;
14610 #if HAVE_PTHREADS < 7
14611 status = pthread_attr_setdetachstate(&attr, &detach);
14612 if( status < 0 ) status = errno;
14614 status = pthread_attr_setdetachstate(&attr, detach);
14616 if( status ) return status;
14617 status = pthread_create( &t, &attr, task, NULL );
14618 #if HAVE_PTHREADS < 7
14619 if( status < 0 ) status = errno;
14621 if( status ) return status;
14623 /* Draft 4 pthreads */
14624 status = pthread_create( &t, pthread_attr_default, task, NULL );
14625 if( status ) return errno;
14627 /* give thread a chance to complete */
14628 /* it should remain joinable and hence detachable */
14631 status = pthread_detach( &t );
14632 if( status ) return errno;
14635 #ifdef HAVE_LINUX_THREADS
14636 pthread_kill_other_threads_np();
14643 if { (eval echo configure:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14645 ol_cv_pthread_lib_lpthreads=yes
14647 echo "configure: failed program was:" >&5
14648 cat conftest.$ac_ext >&5
14650 ol_cv_pthread_lib_lpthreads=no
14654 cat > conftest.$ac_ext <<EOF
14655 #line 14656 "configure"
14656 #include "confdefs.h"
14657 /* pthread test headers */
14658 #include <pthread.h>
14659 #if HAVE_PTHREADS < 7
14663 #define NULL (void*)0
14666 static void *task(p)
14669 return (void *) (p == NULL);
14673 int main(argc, argv)
14678 /* pthread test function */
14679 #ifndef PTHREAD_CREATE_DETACHED
14680 #define PTHREAD_CREATE_DETACHED 1
14684 int detach = PTHREAD_CREATE_DETACHED;
14686 #if HAVE_PTHREADS > 4
14687 /* Final pthreads */
14688 pthread_attr_t attr;
14690 status = pthread_attr_init(&attr);
14691 if( status ) return status;
14693 #if HAVE_PTHREADS < 7
14694 status = pthread_attr_setdetachstate(&attr, &detach);
14695 if( status < 0 ) status = errno;
14697 status = pthread_attr_setdetachstate(&attr, detach);
14699 if( status ) return status;
14700 status = pthread_create( &t, &attr, task, NULL );
14701 #if HAVE_PTHREADS < 7
14702 if( status < 0 ) status = errno;
14704 if( status ) return status;
14706 /* Draft 4 pthreads */
14707 status = pthread_create( &t, pthread_attr_default, task, NULL );
14708 if( status ) return errno;
14710 /* give thread a chance to complete */
14711 /* it should remain joinable and hence detachable */
14714 status = pthread_detach( &t );
14715 if( status ) return errno;
14718 #ifdef HAVE_LINUX_THREADS
14719 pthread_kill_other_threads_np();
14727 if { (eval echo configure:14728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14729 ol_cv_pthread_lib_lpthreads=yes
14731 echo "configure: failed program was:" >&5
14732 cat conftest.$ac_ext >&5
14734 ol_cv_pthread_lib_lpthreads=no
14745 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14747 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14748 ol_link_pthreads="-lpthreads"
14749 ol_link_threads=posix
14754 if test $ol_link_threads != no ; then
14755 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14757 save_CPPFLAGS="$CPPFLAGS"
14759 LIBS="$LTHREAD_LIBS $LIBS"
14761 for ac_func in sched_yield pthread_yield thr_yield
14763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14764 echo "configure:14765: checking for $ac_func" >&5
14765 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14766 echo $ac_n "(cached) $ac_c" 1>&6
14768 cat > conftest.$ac_ext <<EOF
14769 #line 14770 "configure"
14770 #include "confdefs.h"
14771 /* System header to define __stub macros and hopefully few prototypes,
14772 which can conflict with char $ac_func(); below. */
14773 #include <assert.h>
14774 /* Override any gcc2 internal prototype to avoid an error. */
14775 /* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14782 /* The GNU C library defines this for functions which it implements
14783 to always fail with ENOSYS. Some functions are actually named
14784 something starting with __ and the normal name is an alias. */
14785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14793 if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14795 eval "ac_cv_func_$ac_func=yes"
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14800 eval "ac_cv_func_$ac_func=no"
14805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14806 echo "$ac_t""yes" 1>&6
14807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14808 cat >> confdefs.h <<EOF
14809 #define $ac_tr_func 1
14813 echo "$ac_t""no" 1>&6
14818 if test $ac_cv_func_sched_yield = no -a \
14819 $ac_cv_func_pthread_yield = no -a \
14820 $ac_cv_func_thr_yield = no ; then
14821 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14822 echo "configure:14823: checking for sched_yield in -lrt" >&5
14823 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14824 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14825 echo $ac_n "(cached) $ac_c" 1>&6
14827 ac_save_LIBS="$LIBS"
14829 cat > conftest.$ac_ext <<EOF
14830 #line 14831 "configure"
14831 #include "confdefs.h"
14832 /* Override any gcc2 internal prototype to avoid an error. */
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14835 char sched_yield();
14841 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14843 eval "ac_cv_lib_$ac_lib_var=yes"
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14848 eval "ac_cv_lib_$ac_lib_var=no"
14851 LIBS="$ac_save_LIBS"
14854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14855 echo "$ac_t""yes" 1>&6
14856 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14857 cat >> confdefs.h <<\EOF
14858 #define HAVE_SCHED_YIELD 1
14861 ac_cv_func_sched_yield=yes
14863 echo "$ac_t""no" 1>&6
14864 ac_cv_func_sched_yield=no
14868 if test $ac_cv_func_sched_yield = no -a \
14869 $ac_cv_func_pthread_yield = no -a \
14870 "$ac_cv_func_thr_yield" = no ; then
14871 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14874 for ac_func in pthread_kill pthread_rwlock_destroy
14876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14877 echo "configure:14878: checking for $ac_func" >&5
14878 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14879 echo $ac_n "(cached) $ac_c" 1>&6
14881 cat > conftest.$ac_ext <<EOF
14882 #line 14883 "configure"
14883 #include "confdefs.h"
14884 /* System header to define __stub macros and hopefully few prototypes,
14885 which can conflict with char $ac_func(); below. */
14886 #include <assert.h>
14887 /* Override any gcc2 internal prototype to avoid an error. */
14888 /* We use char because int might match the return type of a gcc2
14889 builtin and then its argument prototype would still apply. */
14895 /* The GNU C library defines this for functions which it implements
14896 to always fail with ENOSYS. Some functions are actually named
14897 something starting with __ and the normal name is an alias. */
14898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14906 if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14908 eval "ac_cv_func_$ac_func=yes"
14910 echo "configure: failed program was:" >&5
14911 cat conftest.$ac_ext >&5
14913 eval "ac_cv_func_$ac_func=no"
14918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14919 echo "$ac_t""yes" 1>&6
14920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14921 cat >> confdefs.h <<EOF
14922 #define $ac_tr_func 1
14926 echo "$ac_t""no" 1>&6
14931 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14932 echo "configure:14933: checking for pthread_detach with <pthread.h>" >&5
14933 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14941 #include <pthread.h>
14943 #define NULL (void*)0
14947 pthread_detach(NULL);
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14952 ol_cv_func_pthread_detach=yes
14954 echo "configure: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14957 ol_cv_func_pthread_detach=no
14963 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14965 if test $ol_cv_func_pthread_detach = no ; then
14966 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14969 cat >> confdefs.h <<\EOF
14970 #define HAVE_PTHREAD_DETACH 1
14975 pthread_setconcurrency \
14976 pthread_getconcurrency \
14977 thr_setconcurrency \
14978 thr_getconcurrency \
14981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14982 echo "configure:14983: checking for $ac_func" >&5
14983 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14984 echo $ac_n "(cached) $ac_c" 1>&6
14986 cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 /* System header to define __stub macros and hopefully few prototypes,
14990 which can conflict with char $ac_func(); below. */
14991 #include <assert.h>
14992 /* Override any gcc2 internal prototype to avoid an error. */
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
15000 /* The GNU C library defines this for functions which it implements
15001 to always fail with ENOSYS. Some functions are actually named
15002 something starting with __ and the normal name is an alias. */
15003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15013 eval "ac_cv_func_$ac_func=yes"
15015 echo "configure: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15018 eval "ac_cv_func_$ac_func=no"
15023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15024 echo "$ac_t""yes" 1>&6
15025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15026 cat >> confdefs.h <<EOF
15027 #define $ac_tr_func 1
15031 echo "$ac_t""no" 1>&6
15037 for ac_func in pthread_kill_other_threads_np
15039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15040 echo "configure:15041: checking for $ac_func" >&5
15041 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15042 echo $ac_n "(cached) $ac_c" 1>&6
15044 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char $ac_func(); below. */
15049 #include <assert.h>
15050 /* Override any gcc2 internal prototype to avoid an error. */
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15058 /* The GNU C library defines this for functions which it implements
15059 to always fail with ENOSYS. Some functions are actually named
15060 something starting with __ and the normal name is an alias. */
15061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15069 if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15071 eval "ac_cv_func_$ac_func=yes"
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15076 eval "ac_cv_func_$ac_func=no"
15081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15082 echo "$ac_t""yes" 1>&6
15083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15084 cat >> confdefs.h <<EOF
15085 #define $ac_tr_func 1
15089 echo "$ac_t""no" 1>&6
15093 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15094 echo "configure:15095: checking for LinuxThreads implementation" >&5
15095 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15096 echo $ac_n "(cached) $ac_c" 1>&6
15098 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15101 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15106 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15107 echo "configure:15108: checking for LinuxThreads consistency" >&5
15108 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15109 echo $ac_n "(cached) $ac_c" 1>&6
15112 if test $ol_cv_header_linux_threads = yes -a \
15113 $ol_cv_sys_linux_threads = yes; then
15114 ol_cv_linux_threads=yes
15115 elif test $ol_cv_header_linux_threads = no -a \
15116 $ol_cv_sys_linux_threads = no; then
15117 ol_cv_linux_threads=no
15119 ol_cv_linux_threads=error
15124 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15127 if test $ol_cv_linux_threads = error; then
15128 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15131 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15132 echo "configure:15133: checking if pthread_create() works" >&5
15133 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15134 echo $ac_n "(cached) $ac_c" 1>&6
15137 if test "$cross_compiling" = yes; then
15138 ol_cv_pthread_create_works=yes
15140 cat > conftest.$ac_ext <<EOF
15141 #line 15142 "configure"
15142 #include "confdefs.h"
15143 /* pthread test headers */
15144 #include <pthread.h>
15145 #if HAVE_PTHREADS < 7
15149 #define NULL (void*)0
15152 static void *task(p)
15155 return (void *) (p == NULL);
15159 int main(argc, argv)
15164 /* pthread test function */
15165 #ifndef PTHREAD_CREATE_DETACHED
15166 #define PTHREAD_CREATE_DETACHED 1
15170 int detach = PTHREAD_CREATE_DETACHED;
15172 #if HAVE_PTHREADS > 4
15173 /* Final pthreads */
15174 pthread_attr_t attr;
15176 status = pthread_attr_init(&attr);
15177 if( status ) return status;
15179 #if HAVE_PTHREADS < 7
15180 status = pthread_attr_setdetachstate(&attr, &detach);
15181 if( status < 0 ) status = errno;
15183 status = pthread_attr_setdetachstate(&attr, detach);
15185 if( status ) return status;
15186 status = pthread_create( &t, &attr, task, NULL );
15187 #if HAVE_PTHREADS < 7
15188 if( status < 0 ) status = errno;
15190 if( status ) return status;
15192 /* Draft 4 pthreads */
15193 status = pthread_create( &t, pthread_attr_default, task, NULL );
15194 if( status ) return errno;
15196 /* give thread a chance to complete */
15197 /* it should remain joinable and hence detachable */
15200 status = pthread_detach( &t );
15201 if( status ) return errno;
15204 #ifdef HAVE_LINUX_THREADS
15205 pthread_kill_other_threads_np();
15213 if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15215 ol_cv_pthread_create_works=yes
15217 echo "configure: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15220 ol_cv_pthread_create_works=no
15227 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15229 if test $ol_cv_pthread_create_works = no ; then
15230 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15233 if test $ol_with_yielding_select = auto ; then
15234 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15235 echo "configure:15236: checking if select yields when using pthreads" >&5
15236 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15237 echo $ac_n "(cached) $ac_c" 1>&6
15240 if test "$cross_compiling" = yes; then
15241 ol_cv_pthread_select_yields=cross
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15247 #include <sys/types.h>
15248 #include <sys/time.h>
15249 #include <unistd.h>
15250 #include <pthread.h>
15252 #define NULL (void*) 0
15255 static int fildes[2];
15257 static void *task(p)
15269 FD_SET(fildes[0], &rfds);
15271 /* we're not interested in any fds */
15272 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15279 exit(0); /* if we exit here, the select blocked the whole process */
15282 int main(argc, argv)
15288 /* create a pipe to select */
15289 if(pipe(&fildes[0])) {
15294 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15295 (void) pthread_setconcurrency(2);
15297 #ifdef HAVE_THR_SETCONCURRENCY
15298 /* Set Solaris LWP concurrency to 2 */
15299 thr_setconcurrency(2);
15303 #if HAVE_PTHREADS < 6
15304 pthread_create(&t, pthread_attr_default, task, NULL);
15306 pthread_create(&t, NULL, task, NULL);
15309 /* make sure task runs first */
15312 #elif defined( HAVE_SCHED_YIELD )
15314 #elif defined( HAVE_PTHREAD_YIELD )
15321 if { (eval echo configure:15322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15323 ol_cv_pthread_select_yields=no
15325 echo "configure: failed program was:" >&5
15326 cat conftest.$ac_ext >&5
15328 ol_cv_pthread_select_yields=yes
15335 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15337 if test $ol_cv_pthread_select_yields = cross ; then
15338 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15341 if test $ol_cv_pthread_select_yields = yes ; then
15342 ol_with_yielding_select=yes
15346 CPPFLAGS="$save_CPPFLAGS"
15349 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15353 if test $ol_with_threads = posix ; then
15354 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15358 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15359 -o $ol_with_threads = mach ; then
15361 for ac_hdr in mach/cthreads.h cthreads.h
15363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15365 echo "configure:15366: checking for $ac_hdr" >&5
15366 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15367 echo $ac_n "(cached) $ac_c" 1>&6
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15375 { (eval echo configure:15376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15377 if test -z "$ac_err"; then
15379 eval "ac_cv_header_$ac_safe=yes"
15382 echo "configure: failed program was:" >&5
15383 cat conftest.$ac_ext >&5
15385 eval "ac_cv_header_$ac_safe=no"
15389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15390 echo "$ac_t""yes" 1>&6
15391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15392 cat >> confdefs.h <<EOF
15393 #define $ac_tr_hdr 1
15397 echo "$ac_t""no" 1>&6
15401 if test $ac_cv_header_mach_cthreads_h = yes ; then
15402 ol_with_threads=found
15404 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15405 echo "configure:15406: checking for cthread_fork" >&5
15406 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15409 cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 /* System header to define __stub macros and hopefully few prototypes,
15413 which can conflict with char cthread_fork(); below. */
15414 #include <assert.h>
15415 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15418 char cthread_fork();
15423 /* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15434 if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15436 eval "ac_cv_func_cthread_fork=yes"
15438 echo "configure: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15441 eval "ac_cv_func_cthread_fork=no"
15446 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15447 echo "$ac_t""yes" 1>&6
15448 ol_link_threads=yes
15450 echo "$ac_t""no" 1>&6
15454 if test $ol_link_threads = no ; then
15455 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15456 echo "configure:15457: checking for cthread_fork with -all_load" >&5
15457 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15462 LIBS="-all_load $LIBS"
15463 cat > conftest.$ac_ext <<EOF
15464 #line 15465 "configure"
15465 #include "confdefs.h"
15466 #include <mach/cthreads.h>
15469 cthread_fork((void *)0, (void *)0);
15473 if { (eval echo configure:15474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15475 ol_cv_cthread_all_load=yes
15477 echo "configure: failed program was:" >&5
15478 cat conftest.$ac_ext >&5
15480 ol_cv_cthread_all_load=no
15487 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15489 if test $ol_cv_cthread_all_load = yes ; then
15490 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15491 ol_link_threads=mach
15492 ol_with_threads=found
15496 elif test $ac_cv_header_cthreads_h = yes ; then
15498 ol_with_threads=found
15501 LIBS="$LIBS -lthreads"
15502 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15503 echo "configure:15504: checking for cthread_fork" >&5
15504 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15507 cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char cthread_fork(); below. */
15512 #include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15516 char cthread_fork();
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15532 if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15534 eval "ac_cv_func_cthread_fork=yes"
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15539 eval "ac_cv_func_cthread_fork=no"
15544 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 ol_link_threads=yes
15548 echo "$ac_t""no" 1>&6
15553 if test $ol_link_threads = yes ; then
15554 LTHREAD_LIBS="-lthreads"
15555 ol_link_threads=mach
15556 ol_with_threads=found
15558 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15561 elif test $ol_with_threads = mach ; then
15562 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15565 if test $ol_link_threads = mach ; then
15566 cat >> confdefs.h <<\EOF
15567 #define HAVE_MACH_CTHREADS 1
15570 elif test $ol_with_threads = found ; then
15571 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15575 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15576 -o $ol_with_threads = pth ; then
15578 for ac_hdr in pth.h
15580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15582 echo "configure:15583: checking for $ac_hdr" >&5
15583 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15584 echo $ac_n "(cached) $ac_c" 1>&6
15586 cat > conftest.$ac_ext <<EOF
15587 #line 15588 "configure"
15588 #include "confdefs.h"
15591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15592 { (eval echo configure:15593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15594 if test -z "$ac_err"; then
15596 eval "ac_cv_header_$ac_safe=yes"
15599 echo "configure: failed program was:" >&5
15600 cat conftest.$ac_ext >&5
15602 eval "ac_cv_header_$ac_safe=no"
15606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15607 echo "$ac_t""yes" 1>&6
15608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15609 cat >> confdefs.h <<EOF
15610 #define $ac_tr_hdr 1
15614 echo "$ac_t""no" 1>&6
15619 if test $ac_cv_header_pth_h = yes ; then
15620 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15621 echo "configure:15622: checking for pth_version in -lpth" >&5
15622 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15624 echo $ac_n "(cached) $ac_c" 1>&6
15626 ac_save_LIBS="$LIBS"
15628 cat > conftest.$ac_ext <<EOF
15629 #line 15630 "configure"
15630 #include "confdefs.h"
15631 /* Override any gcc2 internal prototype to avoid an error. */
15632 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */
15634 char pth_version();
15640 if { (eval echo configure:15641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15642 eval "ac_cv_lib_$ac_lib_var=yes"
15644 echo "configure: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15647 eval "ac_cv_lib_$ac_lib_var=no"
15650 LIBS="$ac_save_LIBS"
15653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15654 echo "$ac_t""yes" 1>&6
15657 echo "$ac_t""no" 1>&6
15662 if test $have_pth = yes ; then
15663 cat >> confdefs.h <<\EOF
15664 #define HAVE_GNU_PTH 1
15667 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15668 ol_link_threads=pth
15669 ol_with_threads=found
15671 if test $ol_with_yielding_select = auto ; then
15672 ol_with_yielding_select=yes
15678 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15679 -o $ol_with_threads = lwp ; then
15681 for ac_hdr in thread.h synch.h
15683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15685 echo "configure:15686: checking for $ac_hdr" >&5
15686 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15687 echo $ac_n "(cached) $ac_c" 1>&6
15689 cat > conftest.$ac_ext <<EOF
15690 #line 15691 "configure"
15691 #include "confdefs.h"
15694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15695 { (eval echo configure:15696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15697 if test -z "$ac_err"; then
15699 eval "ac_cv_header_$ac_safe=yes"
15702 echo "configure: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15705 eval "ac_cv_header_$ac_safe=no"
15709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15710 echo "$ac_t""yes" 1>&6
15711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15712 cat >> confdefs.h <<EOF
15713 #define $ac_tr_hdr 1
15717 echo "$ac_t""no" 1>&6
15721 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15722 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15723 echo "configure:15724: checking for thr_create in -lthread" >&5
15724 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15725 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15726 echo $ac_n "(cached) $ac_c" 1>&6
15728 ac_save_LIBS="$LIBS"
15729 LIBS="-lthread $LIBS"
15730 cat > conftest.$ac_ext <<EOF
15731 #line 15732 "configure"
15732 #include "confdefs.h"
15733 /* Override any gcc2 internal prototype to avoid an error. */
15734 /* We use char because int might match the return type of a gcc2
15735 builtin and then its argument prototype would still apply. */
15742 if { (eval echo configure:15743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15744 eval "ac_cv_lib_$ac_lib_var=yes"
15746 echo "configure: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15749 eval "ac_cv_lib_$ac_lib_var=no"
15752 LIBS="$ac_save_LIBS"
15755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15756 echo "$ac_t""yes" 1>&6
15759 echo "$ac_t""no" 1>&6
15764 if test $have_thr = yes ; then
15765 cat >> confdefs.h <<\EOF
15769 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15770 ol_link_threads=thr
15772 if test $ol_with_yielding_select = auto ; then
15773 ol_with_yielding_select=yes
15777 thr_setconcurrency \
15778 thr_getconcurrency \
15781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15782 echo "configure:15783: checking for $ac_func" >&5
15783 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15784 echo $ac_n "(cached) $ac_c" 1>&6
15786 cat > conftest.$ac_ext <<EOF
15787 #line 15788 "configure"
15788 #include "confdefs.h"
15789 /* System header to define __stub macros and hopefully few prototypes,
15790 which can conflict with char $ac_func(); below. */
15791 #include <assert.h>
15792 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15800 /* The GNU C library defines this for functions which it implements
15801 to always fail with ENOSYS. Some functions are actually named
15802 something starting with __ and the normal name is an alias. */
15803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15811 if { (eval echo configure:15812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15813 eval "ac_cv_func_$ac_func=yes"
15815 echo "configure: failed program was:" >&5
15816 cat conftest.$ac_ext >&5
15818 eval "ac_cv_func_$ac_func=no"
15823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15824 echo "$ac_t""yes" 1>&6
15825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15826 cat >> confdefs.h <<EOF
15827 #define $ac_tr_func 1
15831 echo "$ac_t""no" 1>&6
15838 for ac_hdr in lwp/lwp.h
15840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15842 echo "configure:15843: checking for $ac_hdr" >&5
15843 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15844 echo $ac_n "(cached) $ac_c" 1>&6
15846 cat > conftest.$ac_ext <<EOF
15847 #line 15848 "configure"
15848 #include "confdefs.h"
15851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15852 { (eval echo configure:15853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15854 if test -z "$ac_err"; then
15856 eval "ac_cv_header_$ac_safe=yes"
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15862 eval "ac_cv_header_$ac_safe=no"
15866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15869 cat >> confdefs.h <<EOF
15870 #define $ac_tr_hdr 1
15874 echo "$ac_t""no" 1>&6
15878 if test $ac_cv_header_lwp_lwp_h = yes ; then
15879 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15880 echo "configure:15881: checking for lwp_create in -llwp" >&5
15881 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15882 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15885 ac_save_LIBS="$LIBS"
15887 cat > conftest.$ac_ext <<EOF
15888 #line 15889 "configure"
15889 #include "confdefs.h"
15890 /* Override any gcc2 internal prototype to avoid an error. */
15891 /* We use char because int might match the return type of a gcc2
15892 builtin and then its argument prototype would still apply. */
15899 if { (eval echo configure:15900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15901 eval "ac_cv_lib_$ac_lib_var=yes"
15903 echo "configure: failed program was:" >&5
15904 cat conftest.$ac_ext >&5
15906 eval "ac_cv_lib_$ac_lib_var=no"
15909 LIBS="$ac_save_LIBS"
15912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15916 echo "$ac_t""no" 1>&6
15921 if test $have_lwp = yes ; then
15922 cat >> confdefs.h <<\EOF
15926 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15927 ol_link_threads=lwp
15929 if test $ol_with_yielding_select = auto ; then
15930 ol_with_yielding_select=no
15936 if test $ol_with_yielding_select = yes ; then
15937 cat >> confdefs.h <<\EOF
15938 #define HAVE_YIELDING_SELECT 1
15943 if test $ol_with_threads = manual ; then
15944 ol_link_threads=yes
15946 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15948 for ac_hdr in pthread.h sched.h
15950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15952 echo "configure:15953: checking for $ac_hdr" >&5
15953 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15954 echo $ac_n "(cached) $ac_c" 1>&6
15956 cat > conftest.$ac_ext <<EOF
15957 #line 15958 "configure"
15958 #include "confdefs.h"
15961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15962 { (eval echo configure:15963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15964 if test -z "$ac_err"; then
15966 eval "ac_cv_header_$ac_safe=yes"
15969 echo "configure: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15972 eval "ac_cv_header_$ac_safe=no"
15976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15977 echo "$ac_t""yes" 1>&6
15978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15979 cat >> confdefs.h <<EOF
15980 #define $ac_tr_hdr 1
15984 echo "$ac_t""no" 1>&6
15988 for ac_func in sched_yield pthread_yield
15990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15991 echo "configure:15992: checking for $ac_func" >&5
15992 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15993 echo $ac_n "(cached) $ac_c" 1>&6
15995 cat > conftest.$ac_ext <<EOF
15996 #line 15997 "configure"
15997 #include "confdefs.h"
15998 /* System header to define __stub macros and hopefully few prototypes,
15999 which can conflict with char $ac_func(); below. */
16000 #include <assert.h>
16001 /* Override any gcc2 internal prototype to avoid an error. */
16002 /* We use char because int might match the return type of a gcc2
16003 builtin and then its argument prototype would still apply. */
16009 /* The GNU C library defines this for functions which it implements
16010 to always fail with ENOSYS. Some functions are actually named
16011 something starting with __ and the normal name is an alias. */
16012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16020 if { (eval echo configure:16021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16022 eval "ac_cv_func_$ac_func=yes"
16024 echo "configure: failed program was:" >&5
16025 cat conftest.$ac_ext >&5
16027 eval "ac_cv_func_$ac_func=no"
16032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16033 echo "$ac_t""yes" 1>&6
16034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16035 cat >> confdefs.h <<EOF
16036 #define $ac_tr_func 1
16040 echo "$ac_t""no" 1>&6
16045 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16046 echo "configure:16047: checking for LinuxThreads pthread.h" >&5
16047 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16048 echo $ac_n "(cached) $ac_c" 1>&6
16050 cat > conftest.$ac_ext <<EOF
16051 #line 16052 "configure"
16052 #include "confdefs.h"
16053 #include <pthread.h>
16055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16056 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16058 ol_cv_header_linux_threads=yes
16061 ol_cv_header_linux_threads=no
16068 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16069 if test $ol_cv_header_linux_threads = yes; then
16070 cat >> confdefs.h <<\EOF
16071 #define HAVE_LINUX_THREADS 1
16077 for ac_hdr in mach/cthreads.h
16079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16081 echo "configure:16082: checking for $ac_hdr" >&5
16082 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16083 echo $ac_n "(cached) $ac_c" 1>&6
16085 cat > conftest.$ac_ext <<EOF
16086 #line 16087 "configure"
16087 #include "confdefs.h"
16090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16091 { (eval echo configure:16092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16093 if test -z "$ac_err"; then
16095 eval "ac_cv_header_$ac_safe=yes"
16098 echo "configure: failed program was:" >&5
16099 cat conftest.$ac_ext >&5
16101 eval "ac_cv_header_$ac_safe=no"
16105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16106 echo "$ac_t""yes" 1>&6
16107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16108 cat >> confdefs.h <<EOF
16109 #define $ac_tr_hdr 1
16113 echo "$ac_t""no" 1>&6
16117 for ac_hdr in lwp/lwp.h
16119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16121 echo "configure:16122: checking for $ac_hdr" >&5
16122 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16125 cat > conftest.$ac_ext <<EOF
16126 #line 16127 "configure"
16127 #include "confdefs.h"
16130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16131 { (eval echo configure:16132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16133 if test -z "$ac_err"; then
16135 eval "ac_cv_header_$ac_safe=yes"
16138 echo "configure: failed program was:" >&5
16139 cat conftest.$ac_ext >&5
16141 eval "ac_cv_header_$ac_safe=no"
16145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16146 echo "$ac_t""yes" 1>&6
16147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16148 cat >> confdefs.h <<EOF
16149 #define $ac_tr_hdr 1
16153 echo "$ac_t""no" 1>&6
16157 for ac_hdr in thread.h synch.h
16159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16161 echo "configure:16162: checking for $ac_hdr" >&5
16162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
16165 cat > conftest.$ac_ext <<EOF
16166 #line 16167 "configure"
16167 #include "confdefs.h"
16170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16171 { (eval echo configure:16172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16173 if test -z "$ac_err"; then
16175 eval "ac_cv_header_$ac_safe=yes"
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16181 eval "ac_cv_header_$ac_safe=no"
16185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16186 echo "$ac_t""yes" 1>&6
16187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16188 cat >> confdefs.h <<EOF
16189 #define $ac_tr_hdr 1
16193 echo "$ac_t""no" 1>&6
16199 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16200 cat >> confdefs.h <<\EOF
16201 #define REENTRANT 1
16204 cat >> confdefs.h <<\EOF
16205 #define _REENTRANT 1
16208 cat >> confdefs.h <<\EOF
16209 #define THREAD_SAFE 1
16212 cat >> confdefs.h <<\EOF
16213 #define _THREAD_SAFE 1
16216 cat >> confdefs.h <<\EOF
16217 #define THREADSAFE 1
16220 cat >> confdefs.h <<\EOF
16221 #define _THREADSAFE 1
16224 cat >> confdefs.h <<\EOF
16225 #define _SGI_MP_SOURCE 1
16229 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16230 echo "configure:16231: checking for thread specific errno" >&5
16231 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16232 echo $ac_n "(cached) $ac_c" 1>&6
16235 cat > conftest.$ac_ext <<EOF
16236 #line 16237 "configure"
16237 #include "confdefs.h"
16243 if { (eval echo configure:16244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16245 ol_cv_errno_thread_specific=yes
16247 echo "configure: failed program was:" >&5
16248 cat conftest.$ac_ext >&5
16250 ol_cv_errno_thread_specific=no
16256 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16258 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16259 echo "configure:16260: checking for thread specific h_errno" >&5
16260 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16261 echo $ac_n "(cached) $ac_c" 1>&6
16264 cat > conftest.$ac_ext <<EOF
16265 #line 16266 "configure"
16266 #include "confdefs.h"
16272 if { (eval echo configure:16273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16274 ol_cv_h_errno_thread_specific=yes
16276 echo "configure: failed program was:" >&5
16277 cat conftest.$ac_ext >&5
16279 ol_cv_h_errno_thread_specific=no
16285 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16287 if test $ol_cv_errno_thread_specific != yes \
16288 -o $ol_cv_h_errno_thread_specific != yes ; then
16289 LIBS="$LTHREAD_LIBS $LIBS"
16295 if test $ol_link_threads = no ; then
16296 if test $ol_with_threads = yes ; then
16297 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16300 if test $ol_with_threads = auto ; then
16301 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16305 cat >> confdefs.h <<\EOF
16306 #define NO_THREADS 1
16312 if test $ol_link_threads != no ; then
16313 cat >> confdefs.h <<\EOF
16314 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16321 gethostbyname_r gethostbyaddr_r \
16324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16325 echo "configure:16326: checking for $ac_func" >&5
16326 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16327 echo $ac_n "(cached) $ac_c" 1>&6
16329 cat > conftest.$ac_ext <<EOF
16330 #line 16331 "configure"
16331 #include "confdefs.h"
16332 /* System header to define __stub macros and hopefully few prototypes,
16333 which can conflict with char $ac_func(); below. */
16334 #include <assert.h>
16335 /* Override any gcc2 internal prototype to avoid an error. */
16336 /* We use char because int might match the return type of a gcc2
16337 builtin and then its argument prototype would still apply. */
16343 /* The GNU C library defines this for functions which it implements
16344 to always fail with ENOSYS. Some functions are actually named
16345 something starting with __ and the normal name is an alias. */
16346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16354 if { (eval echo configure:16355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16356 eval "ac_cv_func_$ac_func=yes"
16358 echo "configure: failed program was:" >&5
16359 cat conftest.$ac_ext >&5
16361 eval "ac_cv_func_$ac_func=no"
16366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16367 echo "$ac_t""yes" 1>&6
16368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16369 cat >> confdefs.h <<EOF
16370 #define $ac_tr_func 1
16374 echo "$ac_t""no" 1>&6
16379 if test "$ac_cv_func_ctime_r" = no ; then
16380 ol_cv_func_ctime_r_nargs=0
16382 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16383 echo "configure:16384: checking number of arguments of ctime_r" >&5
16384 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16387 cat > conftest.$ac_ext <<EOF
16388 #line 16389 "configure"
16389 #include "confdefs.h"
16392 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16395 if { (eval echo configure:16396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16397 ol_cv_func_ctime_r_nargs3=yes
16399 echo "configure: failed program was:" >&5
16400 cat conftest.$ac_ext >&5
16402 ol_cv_func_ctime_r_nargs3=no
16406 cat > conftest.$ac_ext <<EOF
16407 #line 16408 "configure"
16408 #include "confdefs.h"
16411 time_t ti; char *buffer; ctime_r(&ti,buffer);
16414 if { (eval echo configure:16415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16416 ol_cv_func_ctime_r_nargs2=yes
16418 echo "configure: failed program was:" >&5
16419 cat conftest.$ac_ext >&5
16421 ol_cv_func_ctime_r_nargs2=no
16425 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16426 $ol_cv_func_ctime_r_nargs2 = no ; then
16428 ol_cv_func_ctime_r_nargs=3
16430 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16431 $ol_cv_func_ctime_r_nargs2 = yes ; then
16433 ol_cv_func_ctime_r_nargs=2
16436 ol_cv_func_ctime_r_nargs=0
16441 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16443 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16444 cat >> confdefs.h <<EOF
16445 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16452 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16453 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16454 echo "configure:16455: checking number of arguments of gethostbyname_r" >&5
16455 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16456 echo $ac_n "(cached) $ac_c" 1>&6
16458 cat > conftest.$ac_ext <<EOF
16459 #line 16460 "configure"
16460 #include "confdefs.h"
16461 #include <sys/types.h>
16462 #include <sys/socket.h>
16463 #include <netinet/in.h>
16465 #define BUFSIZE (sizeof(struct hostent)+10)
16467 struct hostent hent; char buffer[BUFSIZE];
16468 int bufsize=BUFSIZE;int h_errno;
16469 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16470 buffer, bufsize, &h_errno);
16473 if { (eval echo configure:16474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16475 ol_cv_func_gethostbyname_r_nargs5=yes
16477 echo "configure: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16480 ol_cv_func_gethostbyname_r_nargs5=no
16484 cat > conftest.$ac_ext <<EOF
16485 #line 16486 "configure"
16486 #include "confdefs.h"
16487 #include <sys/types.h>
16488 #include <sys/socket.h>
16489 #include <netinet/in.h>
16491 #define BUFSIZE (sizeof(struct hostent)+10)
16493 struct hostent hent;struct hostent *rhent;
16494 char buffer[BUFSIZE];
16495 int bufsize=BUFSIZE;int h_errno;
16496 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16500 if { (eval echo configure:16501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16502 ol_cv_func_gethostbyname_r_nargs6=yes
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16507 ol_cv_func_gethostbyname_r_nargs6=no
16511 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16512 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16514 ol_cv_func_gethostbyname_r_nargs=5
16516 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16517 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16519 ol_cv_func_gethostbyname_r_nargs=6
16522 ol_cv_func_gethostbyname_r_nargs=0
16527 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16528 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16529 cat >> confdefs.h <<EOF
16530 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16536 ol_cv_func_gethostbyname_r_nargs=0
16539 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16540 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16541 echo "configure:16542: checking number of arguments of gethostbyaddr_r" >&5
16542 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16543 echo $ac_n "(cached) $ac_c" 1>&6
16545 cat > conftest.$ac_ext <<EOF
16546 #line 16547 "configure"
16547 #include "confdefs.h"
16548 #include <sys/types.h>
16549 #include <sys/socket.h>
16550 #include <netinet/in.h>
16552 #define BUFSIZE (sizeof(struct hostent)+10)
16554 struct hostent hent; char buffer[BUFSIZE];
16555 struct in_addr add;
16556 size_t alen=sizeof(struct in_addr);
16557 int bufsize=BUFSIZE;int h_errno;
16558 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16559 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16562 if { (eval echo configure:16563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16564 ol_cv_func_gethostbyaddr_r_nargs7=yes
16566 echo "configure: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16569 ol_cv_func_gethostbyaddr_r_nargs7=no
16573 cat > conftest.$ac_ext <<EOF
16574 #line 16575 "configure"
16575 #include "confdefs.h"
16576 #include <sys/types.h>
16577 #include <sys/socket.h>
16578 #include <netinet/in.h>
16580 #define BUFSIZE (sizeof(struct hostent)+10)
16582 struct hostent hent;
16583 struct hostent *rhent; char buffer[BUFSIZE];
16584 struct in_addr add;
16585 size_t alen=sizeof(struct in_addr);
16586 int bufsize=BUFSIZE;int h_errno;
16587 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16588 alen, AF_INET, &hent, buffer, bufsize,
16592 if { (eval echo configure:16593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16594 ol_cv_func_gethostbyaddr_r_nargs8=yes
16596 echo "configure: failed program was:" >&5
16597 cat conftest.$ac_ext >&5
16599 ol_cv_func_gethostbyaddr_r_nargs8=no
16603 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16604 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16606 ol_cv_func_gethostbyaddr_r_nargs=7
16608 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16609 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16611 ol_cv_func_gethostbyaddr_r_nargs=8
16614 ol_cv_func_gethostbyaddr_r_nargs=0
16619 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16620 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16621 cat >> confdefs.h <<EOF
16622 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16628 ol_cv_func_gethostbyaddr_r_nargs=0
16633 if test $ol_with_ldbm_api = auto \
16634 -o $ol_with_ldbm_api = berkeley \
16635 -o $ol_with_ldbm_api = bcompat ; then
16637 if test $ol_with_ldbm_api = bcompat; then \
16638 for ac_hdr in db_185.h db.h
16640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16642 echo "configure:16643: checking for $ac_hdr" >&5
16643 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16644 echo $ac_n "(cached) $ac_c" 1>&6
16646 cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16652 { (eval echo configure:16653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16654 if test -z "$ac_err"; then
16656 eval "ac_cv_header_$ac_safe=yes"
16659 echo "configure: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16662 eval "ac_cv_header_$ac_safe=no"
16666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16667 echo "$ac_t""yes" 1>&6
16668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16669 cat >> confdefs.h <<EOF
16670 #define $ac_tr_hdr 1
16674 echo "$ac_t""no" 1>&6
16678 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16679 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16680 echo "configure:16681: checking if Berkeley DB header compatibility" >&5
16681 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16682 echo $ac_n "(cached) $ac_c" 1>&6
16685 cat > conftest.$ac_ext <<EOF
16686 #line 16687 "configure"
16687 #include "confdefs.h"
16690 # include <db_185.h>
16695 /* this check could be improved */
16696 #ifndef DB_VERSION_MAJOR
16697 # define DB_VERSION_MAJOR 1
16700 #if DB_VERSION_MAJOR == 1
16705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16706 egrep "__db_version_1" >/dev/null 2>&1; then
16708 ol_cv_header_db1=yes
16711 ol_cv_header_db1=no
16717 echo "$ac_t""$ol_cv_header_db1" 1>&6
16719 if test $ol_cv_header_db1 = yes ; then
16721 if test $ol_cv_lib_db = no ; then
16722 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16723 echo "configure:16724: checking for Berkeley DB link (default)" >&5
16724 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16725 echo $ac_n "(cached) $ac_c" 1>&6
16730 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16732 cat > conftest.$ac_ext <<EOF
16733 #line 16734 "configure"
16734 #include "confdefs.h"
16736 #ifdef HAVE_DB_185_H
16737 # include <db_185.h>
16742 #ifndef DB_VERSION_MAJOR
16743 # define DB_VERSION_MAJOR 1
16747 #define NULL ((void*)0)
16752 #if DB_VERSION_MAJOR > 1
16755 int major, minor, patch;
16757 version = db_version( &major, &minor, &patch );
16759 if( major != DB_VERSION_MAJOR ||
16760 minor < DB_VERSION_MINOR )
16762 printf("Berkeley DB version mismatch\n"
16763 "\texpected: %s\n\tgot: %s\n",
16764 DB_VERSION_STRING, version);
16770 #if DB_VERSION_MAJOR > 2
16771 db_env_create( NULL, 0 );
16772 #elif DB_VERSION_MAJOR > 1
16773 db_appexit( NULL );
16775 (void) dbopen( NULL, 0, 0, 0, NULL);
16780 if { (eval echo configure:16781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16784 echo "configure: failed program was:" >&5
16785 cat conftest.$ac_ext >&5
16795 echo "$ac_t""$ol_cv_db_none" 1>&6
16797 if test $ol_cv_db_none = yes ; then
16802 if test $ol_cv_lib_db = no ; then
16803 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16804 echo "configure:16805: checking for Berkeley DB link (-ldb41)" >&5
16805 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16806 echo $ac_n "(cached) $ac_c" 1>&6
16811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16813 cat > conftest.$ac_ext <<EOF
16814 #line 16815 "configure"
16815 #include "confdefs.h"
16817 #ifdef HAVE_DB_185_H
16818 # include <db_185.h>
16823 #ifndef DB_VERSION_MAJOR
16824 # define DB_VERSION_MAJOR 1
16828 #define NULL ((void*)0)
16833 #if DB_VERSION_MAJOR > 1
16836 int major, minor, patch;
16838 version = db_version( &major, &minor, &patch );
16840 if( major != DB_VERSION_MAJOR ||
16841 minor < DB_VERSION_MINOR )
16843 printf("Berkeley DB version mismatch\n"
16844 "\texpected: %s\n\tgot: %s\n",
16845 DB_VERSION_STRING, version);
16851 #if DB_VERSION_MAJOR > 2
16852 db_env_create( NULL, 0 );
16853 #elif DB_VERSION_MAJOR > 1
16854 db_appexit( NULL );
16856 (void) dbopen( NULL, 0, 0, 0, NULL);
16861 if { (eval echo configure:16862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16865 echo "configure: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16876 echo "$ac_t""$ol_cv_db_db41" 1>&6
16878 if test $ol_cv_db_db41 = yes ; then
16879 ol_cv_lib_db=-ldb41
16883 if test $ol_cv_lib_db = no ; then
16884 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16885 echo "configure:16886: checking for Berkeley DB link (-ldb-41)" >&5
16886 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16892 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16894 cat > conftest.$ac_ext <<EOF
16895 #line 16896 "configure"
16896 #include "confdefs.h"
16898 #ifdef HAVE_DB_185_H
16899 # include <db_185.h>
16904 #ifndef DB_VERSION_MAJOR
16905 # define DB_VERSION_MAJOR 1
16909 #define NULL ((void*)0)
16914 #if DB_VERSION_MAJOR > 1
16917 int major, minor, patch;
16919 version = db_version( &major, &minor, &patch );
16921 if( major != DB_VERSION_MAJOR ||
16922 minor < DB_VERSION_MINOR )
16924 printf("Berkeley DB version mismatch\n"
16925 "\texpected: %s\n\tgot: %s\n",
16926 DB_VERSION_STRING, version);
16932 #if DB_VERSION_MAJOR > 2
16933 db_env_create( NULL, 0 );
16934 #elif DB_VERSION_MAJOR > 1
16935 db_appexit( NULL );
16937 (void) dbopen( NULL, 0, 0, 0, NULL);
16942 if { (eval echo configure:16943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16946 echo "configure: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16957 echo "$ac_t""$ol_cv_db_db_41" 1>&6
16959 if test $ol_cv_db_db_41 = yes ; then
16960 ol_cv_lib_db=-ldb-41
16964 if test $ol_cv_lib_db = no ; then
16965 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16966 echo "configure:16967: checking for Berkeley DB link (-ldb4)" >&5
16967 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16968 echo $ac_n "(cached) $ac_c" 1>&6
16973 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16975 cat > conftest.$ac_ext <<EOF
16976 #line 16977 "configure"
16977 #include "confdefs.h"
16979 #ifdef HAVE_DB_185_H
16980 # include <db_185.h>
16985 #ifndef DB_VERSION_MAJOR
16986 # define DB_VERSION_MAJOR 1
16990 #define NULL ((void*)0)
16995 #if DB_VERSION_MAJOR > 1
16998 int major, minor, patch;
17000 version = db_version( &major, &minor, &patch );
17002 if( major != DB_VERSION_MAJOR ||
17003 minor < DB_VERSION_MINOR )
17005 printf("Berkeley DB version mismatch\n"
17006 "\texpected: %s\n\tgot: %s\n",
17007 DB_VERSION_STRING, version);
17013 #if DB_VERSION_MAJOR > 2
17014 db_env_create( NULL, 0 );
17015 #elif DB_VERSION_MAJOR > 1
17016 db_appexit( NULL );
17018 (void) dbopen( NULL, 0, 0, 0, NULL);
17023 if { (eval echo configure:17024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17027 echo "configure: failed program was:" >&5
17028 cat conftest.$ac_ext >&5
17038 echo "$ac_t""$ol_cv_db_db4" 1>&6
17040 if test $ol_cv_db_db4 = yes ; then
17045 if test $ol_cv_lib_db = no ; then
17046 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17047 echo "configure:17048: checking for Berkeley DB link (-ldb-4)" >&5
17048 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17049 echo $ac_n "(cached) $ac_c" 1>&6
17054 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17056 cat > conftest.$ac_ext <<EOF
17057 #line 17058 "configure"
17058 #include "confdefs.h"
17060 #ifdef HAVE_DB_185_H
17061 # include <db_185.h>
17066 #ifndef DB_VERSION_MAJOR
17067 # define DB_VERSION_MAJOR 1
17071 #define NULL ((void*)0)
17076 #if DB_VERSION_MAJOR > 1
17079 int major, minor, patch;
17081 version = db_version( &major, &minor, &patch );
17083 if( major != DB_VERSION_MAJOR ||
17084 minor < DB_VERSION_MINOR )
17086 printf("Berkeley DB version mismatch\n"
17087 "\texpected: %s\n\tgot: %s\n",
17088 DB_VERSION_STRING, version);
17094 #if DB_VERSION_MAJOR > 2
17095 db_env_create( NULL, 0 );
17096 #elif DB_VERSION_MAJOR > 1
17097 db_appexit( NULL );
17099 (void) dbopen( NULL, 0, 0, 0, NULL);
17104 if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17108 echo "configure: failed program was:" >&5
17109 cat conftest.$ac_ext >&5
17119 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17121 if test $ol_cv_db_db_4 = yes ; then
17122 ol_cv_lib_db=-ldb-4
17126 if test $ol_cv_lib_db = no ; then
17127 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17128 echo "configure:17129: checking for Berkeley DB link (-ldb)" >&5
17129 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17130 echo $ac_n "(cached) $ac_c" 1>&6
17135 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17137 cat > conftest.$ac_ext <<EOF
17138 #line 17139 "configure"
17139 #include "confdefs.h"
17141 #ifdef HAVE_DB_185_H
17142 # include <db_185.h>
17147 #ifndef DB_VERSION_MAJOR
17148 # define DB_VERSION_MAJOR 1
17152 #define NULL ((void*)0)
17157 #if DB_VERSION_MAJOR > 1
17160 int major, minor, patch;
17162 version = db_version( &major, &minor, &patch );
17164 if( major != DB_VERSION_MAJOR ||
17165 minor < DB_VERSION_MINOR )
17167 printf("Berkeley DB version mismatch\n"
17168 "\texpected: %s\n\tgot: %s\n",
17169 DB_VERSION_STRING, version);
17175 #if DB_VERSION_MAJOR > 2
17176 db_env_create( NULL, 0 );
17177 #elif DB_VERSION_MAJOR > 1
17178 db_appexit( NULL );
17180 (void) dbopen( NULL, 0, 0, 0, NULL);
17185 if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17189 echo "configure: failed program was:" >&5
17190 cat conftest.$ac_ext >&5
17200 echo "$ac_t""$ol_cv_db_db" 1>&6
17202 if test $ol_cv_db_db = yes ; then
17207 if test $ol_cv_lib_db = no ; then
17208 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17209 echo "configure:17210: checking for Berkeley DB link (-ldb3)" >&5
17210 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17211 echo $ac_n "(cached) $ac_c" 1>&6
17216 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17218 cat > conftest.$ac_ext <<EOF
17219 #line 17220 "configure"
17220 #include "confdefs.h"
17222 #ifdef HAVE_DB_185_H
17223 # include <db_185.h>
17228 #ifndef DB_VERSION_MAJOR
17229 # define DB_VERSION_MAJOR 1
17233 #define NULL ((void*)0)
17238 #if DB_VERSION_MAJOR > 1
17241 int major, minor, patch;
17243 version = db_version( &major, &minor, &patch );
17245 if( major != DB_VERSION_MAJOR ||
17246 minor < DB_VERSION_MINOR )
17248 printf("Berkeley DB version mismatch\n"
17249 "\texpected: %s\n\tgot: %s\n",
17250 DB_VERSION_STRING, version);
17256 #if DB_VERSION_MAJOR > 2
17257 db_env_create( NULL, 0 );
17258 #elif DB_VERSION_MAJOR > 1
17259 db_appexit( NULL );
17261 (void) dbopen( NULL, 0, 0, 0, NULL);
17266 if { (eval echo configure:17267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17270 echo "configure: failed program was:" >&5
17271 cat conftest.$ac_ext >&5
17281 echo "$ac_t""$ol_cv_db_db3" 1>&6
17283 if test $ol_cv_db_db3 = yes ; then
17288 if test $ol_cv_lib_db = no ; then
17289 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17290 echo "configure:17291: checking for Berkeley DB link (-ldb-3)" >&5
17291 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17292 echo $ac_n "(cached) $ac_c" 1>&6
17297 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17299 cat > conftest.$ac_ext <<EOF
17300 #line 17301 "configure"
17301 #include "confdefs.h"
17303 #ifdef HAVE_DB_185_H
17304 # include <db_185.h>
17309 #ifndef DB_VERSION_MAJOR
17310 # define DB_VERSION_MAJOR 1
17314 #define NULL ((void*)0)
17319 #if DB_VERSION_MAJOR > 1
17322 int major, minor, patch;
17324 version = db_version( &major, &minor, &patch );
17326 if( major != DB_VERSION_MAJOR ||
17327 minor < DB_VERSION_MINOR )
17329 printf("Berkeley DB version mismatch\n"
17330 "\texpected: %s\n\tgot: %s\n",
17331 DB_VERSION_STRING, version);
17337 #if DB_VERSION_MAJOR > 2
17338 db_env_create( NULL, 0 );
17339 #elif DB_VERSION_MAJOR > 1
17340 db_appexit( NULL );
17342 (void) dbopen( NULL, 0, 0, 0, NULL);
17347 if { (eval echo configure:17348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17351 echo "configure: failed program was:" >&5
17352 cat conftest.$ac_ext >&5
17362 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17364 if test $ol_cv_db_db_3 = yes ; then
17365 ol_cv_lib_db=-ldb-3
17369 if test $ol_cv_lib_db = no ; then
17370 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17371 echo "configure:17372: checking for Berkeley DB link (-ldb2)" >&5
17372 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17373 echo $ac_n "(cached) $ac_c" 1>&6
17378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17380 cat > conftest.$ac_ext <<EOF
17381 #line 17382 "configure"
17382 #include "confdefs.h"
17384 #ifdef HAVE_DB_185_H
17385 # include <db_185.h>
17390 #ifndef DB_VERSION_MAJOR
17391 # define DB_VERSION_MAJOR 1
17395 #define NULL ((void*)0)
17400 #if DB_VERSION_MAJOR > 1
17403 int major, minor, patch;
17405 version = db_version( &major, &minor, &patch );
17407 if( major != DB_VERSION_MAJOR ||
17408 minor < DB_VERSION_MINOR )
17410 printf("Berkeley DB version mismatch\n"
17411 "\texpected: %s\n\tgot: %s\n",
17412 DB_VERSION_STRING, version);
17418 #if DB_VERSION_MAJOR > 2
17419 db_env_create( NULL, 0 );
17420 #elif DB_VERSION_MAJOR > 1
17421 db_appexit( NULL );
17423 (void) dbopen( NULL, 0, 0, 0, NULL);
17428 if { (eval echo configure:17429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17432 echo "configure: failed program was:" >&5
17433 cat conftest.$ac_ext >&5
17443 echo "$ac_t""$ol_cv_db_db2" 1>&6
17445 if test $ol_cv_db_db2 = yes ; then
17450 if test $ol_cv_lib_db = no ; then
17451 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17452 echo "configure:17453: checking for Berkeley DB link (-ldb-2)" >&5
17453 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17454 echo $ac_n "(cached) $ac_c" 1>&6
17459 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17461 cat > conftest.$ac_ext <<EOF
17462 #line 17463 "configure"
17463 #include "confdefs.h"
17465 #ifdef HAVE_DB_185_H
17466 # include <db_185.h>
17471 #ifndef DB_VERSION_MAJOR
17472 # define DB_VERSION_MAJOR 1
17476 #define NULL ((void*)0)
17481 #if DB_VERSION_MAJOR > 1
17484 int major, minor, patch;
17486 version = db_version( &major, &minor, &patch );
17488 if( major != DB_VERSION_MAJOR ||
17489 minor < DB_VERSION_MINOR )
17491 printf("Berkeley DB version mismatch\n"
17492 "\texpected: %s\n\tgot: %s\n",
17493 DB_VERSION_STRING, version);
17499 #if DB_VERSION_MAJOR > 2
17500 db_env_create( NULL, 0 );
17501 #elif DB_VERSION_MAJOR > 1
17502 db_appexit( NULL );
17504 (void) dbopen( NULL, 0, 0, 0, NULL);
17509 if { (eval echo configure:17510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17513 echo "configure: failed program was:" >&5
17514 cat conftest.$ac_ext >&5
17524 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17526 if test $ol_cv_db_db_2 = yes ; then
17527 ol_cv_lib_db=-ldb-2
17531 if test $ol_cv_lib_db = no ; then
17532 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17533 echo "configure:17534: checking for Berkeley DB link (-ldb1)" >&5
17534 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17535 echo $ac_n "(cached) $ac_c" 1>&6
17540 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17542 cat > conftest.$ac_ext <<EOF
17543 #line 17544 "configure"
17544 #include "confdefs.h"
17546 #ifdef HAVE_DB_185_H
17547 # include <db_185.h>
17552 #ifndef DB_VERSION_MAJOR
17553 # define DB_VERSION_MAJOR 1
17557 #define NULL ((void*)0)
17562 #if DB_VERSION_MAJOR > 1
17565 int major, minor, patch;
17567 version = db_version( &major, &minor, &patch );
17569 if( major != DB_VERSION_MAJOR ||
17570 minor < DB_VERSION_MINOR )
17572 printf("Berkeley DB version mismatch\n"
17573 "\texpected: %s\n\tgot: %s\n",
17574 DB_VERSION_STRING, version);
17580 #if DB_VERSION_MAJOR > 2
17581 db_env_create( NULL, 0 );
17582 #elif DB_VERSION_MAJOR > 1
17583 db_appexit( NULL );
17585 (void) dbopen( NULL, 0, 0, 0, NULL);
17590 if { (eval echo configure:17591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17594 echo "configure: failed program was:" >&5
17595 cat conftest.$ac_ext >&5
17605 echo "$ac_t""$ol_cv_db_db1" 1>&6
17607 if test $ol_cv_db_db1 = yes ; then
17612 if test $ol_cv_lib_db = no ; then
17613 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17614 echo "configure:17615: checking for Berkeley DB link (-ldb-1)" >&5
17615 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17616 echo $ac_n "(cached) $ac_c" 1>&6
17621 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17623 cat > conftest.$ac_ext <<EOF
17624 #line 17625 "configure"
17625 #include "confdefs.h"
17627 #ifdef HAVE_DB_185_H
17628 # include <db_185.h>
17633 #ifndef DB_VERSION_MAJOR
17634 # define DB_VERSION_MAJOR 1
17638 #define NULL ((void*)0)
17643 #if DB_VERSION_MAJOR > 1
17646 int major, minor, patch;
17648 version = db_version( &major, &minor, &patch );
17650 if( major != DB_VERSION_MAJOR ||
17651 minor < DB_VERSION_MINOR )
17653 printf("Berkeley DB version mismatch\n"
17654 "\texpected: %s\n\tgot: %s\n",
17655 DB_VERSION_STRING, version);
17661 #if DB_VERSION_MAJOR > 2
17662 db_env_create( NULL, 0 );
17663 #elif DB_VERSION_MAJOR > 1
17664 db_appexit( NULL );
17666 (void) dbopen( NULL, 0, 0, 0, NULL);
17671 if { (eval echo configure:17672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17675 echo "configure: failed program was:" >&5
17676 cat conftest.$ac_ext >&5
17686 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17688 if test $ol_cv_db_db_1 = yes ; then
17689 ol_cv_lib_db=-ldb-1
17694 if test "$ol_cv_lib_db" != no ; then
17695 ol_cv_berkeley_db=yes
17701 ol_cv_berkeley_db=no
17704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17706 echo "configure:17707: checking for $ac_hdr" >&5
17707 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17708 echo $ac_n "(cached) $ac_c" 1>&6
17710 cat > conftest.$ac_ext <<EOF
17711 #line 17712 "configure"
17712 #include "confdefs.h"
17715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17716 { (eval echo configure:17717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17718 if test -z "$ac_err"; then
17720 eval "ac_cv_header_$ac_safe=yes"
17723 echo "configure: failed program was:" >&5
17724 cat conftest.$ac_ext >&5
17726 eval "ac_cv_header_$ac_safe=no"
17730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17731 echo "$ac_t""yes" 1>&6
17732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17733 cat >> confdefs.h <<EOF
17734 #define $ac_tr_hdr 1
17738 echo "$ac_t""no" 1>&6
17742 if test $ac_cv_header_db_h = yes; then
17744 if test $ol_cv_lib_db = no ; then
17745 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17746 echo "configure:17747: checking for Berkeley DB link (default)" >&5
17747 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17748 echo $ac_n "(cached) $ac_c" 1>&6
17753 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17755 cat > conftest.$ac_ext <<EOF
17756 #line 17757 "configure"
17757 #include "confdefs.h"
17759 #ifdef HAVE_DB_185_H
17760 # include <db_185.h>
17765 #ifndef DB_VERSION_MAJOR
17766 # define DB_VERSION_MAJOR 1
17770 #define NULL ((void*)0)
17775 #if DB_VERSION_MAJOR > 1
17778 int major, minor, patch;
17780 version = db_version( &major, &minor, &patch );
17782 if( major != DB_VERSION_MAJOR ||
17783 minor < DB_VERSION_MINOR )
17785 printf("Berkeley DB version mismatch\n"
17786 "\texpected: %s\n\tgot: %s\n",
17787 DB_VERSION_STRING, version);
17793 #if DB_VERSION_MAJOR > 2
17794 db_env_create( NULL, 0 );
17795 #elif DB_VERSION_MAJOR > 1
17796 db_appexit( NULL );
17798 (void) dbopen( NULL, 0, 0, 0, NULL);
17803 if { (eval echo configure:17804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17807 echo "configure: failed program was:" >&5
17808 cat conftest.$ac_ext >&5
17818 echo "$ac_t""$ol_cv_db_none" 1>&6
17820 if test $ol_cv_db_none = yes ; then
17825 if test $ol_cv_lib_db = no ; then
17826 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17827 echo "configure:17828: checking for Berkeley DB link (-ldb41)" >&5
17828 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17829 echo $ac_n "(cached) $ac_c" 1>&6
17834 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17836 cat > conftest.$ac_ext <<EOF
17837 #line 17838 "configure"
17838 #include "confdefs.h"
17840 #ifdef HAVE_DB_185_H
17841 # include <db_185.h>
17846 #ifndef DB_VERSION_MAJOR
17847 # define DB_VERSION_MAJOR 1
17851 #define NULL ((void*)0)
17856 #if DB_VERSION_MAJOR > 1
17859 int major, minor, patch;
17861 version = db_version( &major, &minor, &patch );
17863 if( major != DB_VERSION_MAJOR ||
17864 minor < DB_VERSION_MINOR )
17866 printf("Berkeley DB version mismatch\n"
17867 "\texpected: %s\n\tgot: %s\n",
17868 DB_VERSION_STRING, version);
17874 #if DB_VERSION_MAJOR > 2
17875 db_env_create( NULL, 0 );
17876 #elif DB_VERSION_MAJOR > 1
17877 db_appexit( NULL );
17879 (void) dbopen( NULL, 0, 0, 0, NULL);
17884 if { (eval echo configure:17885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17888 echo "configure: failed program was:" >&5
17889 cat conftest.$ac_ext >&5
17899 echo "$ac_t""$ol_cv_db_db41" 1>&6
17901 if test $ol_cv_db_db41 = yes ; then
17902 ol_cv_lib_db=-ldb41
17906 if test $ol_cv_lib_db = no ; then
17907 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17908 echo "configure:17909: checking for Berkeley DB link (-ldb-41)" >&5
17909 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17910 echo $ac_n "(cached) $ac_c" 1>&6
17915 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17917 cat > conftest.$ac_ext <<EOF
17918 #line 17919 "configure"
17919 #include "confdefs.h"
17921 #ifdef HAVE_DB_185_H
17922 # include <db_185.h>
17927 #ifndef DB_VERSION_MAJOR
17928 # define DB_VERSION_MAJOR 1
17932 #define NULL ((void*)0)
17937 #if DB_VERSION_MAJOR > 1
17940 int major, minor, patch;
17942 version = db_version( &major, &minor, &patch );
17944 if( major != DB_VERSION_MAJOR ||
17945 minor < DB_VERSION_MINOR )
17947 printf("Berkeley DB version mismatch\n"
17948 "\texpected: %s\n\tgot: %s\n",
17949 DB_VERSION_STRING, version);
17955 #if DB_VERSION_MAJOR > 2
17956 db_env_create( NULL, 0 );
17957 #elif DB_VERSION_MAJOR > 1
17958 db_appexit( NULL );
17960 (void) dbopen( NULL, 0, 0, 0, NULL);
17965 if { (eval echo configure:17966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17969 echo "configure: failed program was:" >&5
17970 cat conftest.$ac_ext >&5
17980 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17982 if test $ol_cv_db_db_41 = yes ; then
17983 ol_cv_lib_db=-ldb-41
17987 if test $ol_cv_lib_db = no ; then
17988 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17989 echo "configure:17990: checking for Berkeley DB link (-ldb4)" >&5
17990 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17991 echo $ac_n "(cached) $ac_c" 1>&6
17996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17998 cat > conftest.$ac_ext <<EOF
17999 #line 18000 "configure"
18000 #include "confdefs.h"
18002 #ifdef HAVE_DB_185_H
18003 # include <db_185.h>
18008 #ifndef DB_VERSION_MAJOR
18009 # define DB_VERSION_MAJOR 1
18013 #define NULL ((void*)0)
18018 #if DB_VERSION_MAJOR > 1
18021 int major, minor, patch;
18023 version = db_version( &major, &minor, &patch );
18025 if( major != DB_VERSION_MAJOR ||
18026 minor < DB_VERSION_MINOR )
18028 printf("Berkeley DB version mismatch\n"
18029 "\texpected: %s\n\tgot: %s\n",
18030 DB_VERSION_STRING, version);
18036 #if DB_VERSION_MAJOR > 2
18037 db_env_create( NULL, 0 );
18038 #elif DB_VERSION_MAJOR > 1
18039 db_appexit( NULL );
18041 (void) dbopen( NULL, 0, 0, 0, NULL);
18046 if { (eval echo configure:18047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18050 echo "configure: failed program was:" >&5
18051 cat conftest.$ac_ext >&5
18061 echo "$ac_t""$ol_cv_db_db4" 1>&6
18063 if test $ol_cv_db_db4 = yes ; then
18068 if test $ol_cv_lib_db = no ; then
18069 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18070 echo "configure:18071: checking for Berkeley DB link (-ldb-4)" >&5
18071 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18072 echo $ac_n "(cached) $ac_c" 1>&6
18077 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18079 cat > conftest.$ac_ext <<EOF
18080 #line 18081 "configure"
18081 #include "confdefs.h"
18083 #ifdef HAVE_DB_185_H
18084 # include <db_185.h>
18089 #ifndef DB_VERSION_MAJOR
18090 # define DB_VERSION_MAJOR 1
18094 #define NULL ((void*)0)
18099 #if DB_VERSION_MAJOR > 1
18102 int major, minor, patch;
18104 version = db_version( &major, &minor, &patch );
18106 if( major != DB_VERSION_MAJOR ||
18107 minor < DB_VERSION_MINOR )
18109 printf("Berkeley DB version mismatch\n"
18110 "\texpected: %s\n\tgot: %s\n",
18111 DB_VERSION_STRING, version);
18117 #if DB_VERSION_MAJOR > 2
18118 db_env_create( NULL, 0 );
18119 #elif DB_VERSION_MAJOR > 1
18120 db_appexit( NULL );
18122 (void) dbopen( NULL, 0, 0, 0, NULL);
18127 if { (eval echo configure:18128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18131 echo "configure: failed program was:" >&5
18132 cat conftest.$ac_ext >&5
18142 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18144 if test $ol_cv_db_db_4 = yes ; then
18145 ol_cv_lib_db=-ldb-4
18149 if test $ol_cv_lib_db = no ; then
18150 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18151 echo "configure:18152: checking for Berkeley DB link (-ldb)" >&5
18152 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18153 echo $ac_n "(cached) $ac_c" 1>&6
18158 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18160 cat > conftest.$ac_ext <<EOF
18161 #line 18162 "configure"
18162 #include "confdefs.h"
18164 #ifdef HAVE_DB_185_H
18165 # include <db_185.h>
18170 #ifndef DB_VERSION_MAJOR
18171 # define DB_VERSION_MAJOR 1
18175 #define NULL ((void*)0)
18180 #if DB_VERSION_MAJOR > 1
18183 int major, minor, patch;
18185 version = db_version( &major, &minor, &patch );
18187 if( major != DB_VERSION_MAJOR ||
18188 minor < DB_VERSION_MINOR )
18190 printf("Berkeley DB version mismatch\n"
18191 "\texpected: %s\n\tgot: %s\n",
18192 DB_VERSION_STRING, version);
18198 #if DB_VERSION_MAJOR > 2
18199 db_env_create( NULL, 0 );
18200 #elif DB_VERSION_MAJOR > 1
18201 db_appexit( NULL );
18203 (void) dbopen( NULL, 0, 0, 0, NULL);
18208 if { (eval echo configure:18209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18212 echo "configure: failed program was:" >&5
18213 cat conftest.$ac_ext >&5
18223 echo "$ac_t""$ol_cv_db_db" 1>&6
18225 if test $ol_cv_db_db = yes ; then
18230 if test $ol_cv_lib_db = no ; then
18231 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18232 echo "configure:18233: checking for Berkeley DB link (-ldb3)" >&5
18233 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18234 echo $ac_n "(cached) $ac_c" 1>&6
18239 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18241 cat > conftest.$ac_ext <<EOF
18242 #line 18243 "configure"
18243 #include "confdefs.h"
18245 #ifdef HAVE_DB_185_H
18246 # include <db_185.h>
18251 #ifndef DB_VERSION_MAJOR
18252 # define DB_VERSION_MAJOR 1
18256 #define NULL ((void*)0)
18261 #if DB_VERSION_MAJOR > 1
18264 int major, minor, patch;
18266 version = db_version( &major, &minor, &patch );
18268 if( major != DB_VERSION_MAJOR ||
18269 minor < DB_VERSION_MINOR )
18271 printf("Berkeley DB version mismatch\n"
18272 "\texpected: %s\n\tgot: %s\n",
18273 DB_VERSION_STRING, version);
18279 #if DB_VERSION_MAJOR > 2
18280 db_env_create( NULL, 0 );
18281 #elif DB_VERSION_MAJOR > 1
18282 db_appexit( NULL );
18284 (void) dbopen( NULL, 0, 0, 0, NULL);
18289 if { (eval echo configure:18290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18293 echo "configure: failed program was:" >&5
18294 cat conftest.$ac_ext >&5
18304 echo "$ac_t""$ol_cv_db_db3" 1>&6
18306 if test $ol_cv_db_db3 = yes ; then
18311 if test $ol_cv_lib_db = no ; then
18312 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18313 echo "configure:18314: checking for Berkeley DB link (-ldb-3)" >&5
18314 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18315 echo $ac_n "(cached) $ac_c" 1>&6
18320 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18322 cat > conftest.$ac_ext <<EOF
18323 #line 18324 "configure"
18324 #include "confdefs.h"
18326 #ifdef HAVE_DB_185_H
18327 # include <db_185.h>
18332 #ifndef DB_VERSION_MAJOR
18333 # define DB_VERSION_MAJOR 1
18337 #define NULL ((void*)0)
18342 #if DB_VERSION_MAJOR > 1
18345 int major, minor, patch;
18347 version = db_version( &major, &minor, &patch );
18349 if( major != DB_VERSION_MAJOR ||
18350 minor < DB_VERSION_MINOR )
18352 printf("Berkeley DB version mismatch\n"
18353 "\texpected: %s\n\tgot: %s\n",
18354 DB_VERSION_STRING, version);
18360 #if DB_VERSION_MAJOR > 2
18361 db_env_create( NULL, 0 );
18362 #elif DB_VERSION_MAJOR > 1
18363 db_appexit( NULL );
18365 (void) dbopen( NULL, 0, 0, 0, NULL);
18370 if { (eval echo configure:18371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18374 echo "configure: failed program was:" >&5
18375 cat conftest.$ac_ext >&5
18385 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18387 if test $ol_cv_db_db_3 = yes ; then
18388 ol_cv_lib_db=-ldb-3
18392 if test $ol_cv_lib_db = no ; then
18393 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18394 echo "configure:18395: checking for Berkeley DB link (-ldb2)" >&5
18395 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18396 echo $ac_n "(cached) $ac_c" 1>&6
18401 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18403 cat > conftest.$ac_ext <<EOF
18404 #line 18405 "configure"
18405 #include "confdefs.h"
18407 #ifdef HAVE_DB_185_H
18408 # include <db_185.h>
18413 #ifndef DB_VERSION_MAJOR
18414 # define DB_VERSION_MAJOR 1
18418 #define NULL ((void*)0)
18423 #if DB_VERSION_MAJOR > 1
18426 int major, minor, patch;
18428 version = db_version( &major, &minor, &patch );
18430 if( major != DB_VERSION_MAJOR ||
18431 minor < DB_VERSION_MINOR )
18433 printf("Berkeley DB version mismatch\n"
18434 "\texpected: %s\n\tgot: %s\n",
18435 DB_VERSION_STRING, version);
18441 #if DB_VERSION_MAJOR > 2
18442 db_env_create( NULL, 0 );
18443 #elif DB_VERSION_MAJOR > 1
18444 db_appexit( NULL );
18446 (void) dbopen( NULL, 0, 0, 0, NULL);
18451 if { (eval echo configure:18452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18455 echo "configure: failed program was:" >&5
18456 cat conftest.$ac_ext >&5
18466 echo "$ac_t""$ol_cv_db_db2" 1>&6
18468 if test $ol_cv_db_db2 = yes ; then
18473 if test $ol_cv_lib_db = no ; then
18474 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18475 echo "configure:18476: checking for Berkeley DB link (-ldb-2)" >&5
18476 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18477 echo $ac_n "(cached) $ac_c" 1>&6
18482 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18484 cat > conftest.$ac_ext <<EOF
18485 #line 18486 "configure"
18486 #include "confdefs.h"
18488 #ifdef HAVE_DB_185_H
18489 # include <db_185.h>
18494 #ifndef DB_VERSION_MAJOR
18495 # define DB_VERSION_MAJOR 1
18499 #define NULL ((void*)0)
18504 #if DB_VERSION_MAJOR > 1
18507 int major, minor, patch;
18509 version = db_version( &major, &minor, &patch );
18511 if( major != DB_VERSION_MAJOR ||
18512 minor < DB_VERSION_MINOR )
18514 printf("Berkeley DB version mismatch\n"
18515 "\texpected: %s\n\tgot: %s\n",
18516 DB_VERSION_STRING, version);
18522 #if DB_VERSION_MAJOR > 2
18523 db_env_create( NULL, 0 );
18524 #elif DB_VERSION_MAJOR > 1
18525 db_appexit( NULL );
18527 (void) dbopen( NULL, 0, 0, 0, NULL);
18532 if { (eval echo configure:18533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18536 echo "configure: failed program was:" >&5
18537 cat conftest.$ac_ext >&5
18547 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18549 if test $ol_cv_db_db_2 = yes ; then
18550 ol_cv_lib_db=-ldb-2
18554 if test $ol_cv_lib_db = no ; then
18555 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18556 echo "configure:18557: checking for Berkeley DB link (-ldb1)" >&5
18557 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18558 echo $ac_n "(cached) $ac_c" 1>&6
18563 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18565 cat > conftest.$ac_ext <<EOF
18566 #line 18567 "configure"
18567 #include "confdefs.h"
18569 #ifdef HAVE_DB_185_H
18570 # include <db_185.h>
18575 #ifndef DB_VERSION_MAJOR
18576 # define DB_VERSION_MAJOR 1
18580 #define NULL ((void*)0)
18585 #if DB_VERSION_MAJOR > 1
18588 int major, minor, patch;
18590 version = db_version( &major, &minor, &patch );
18592 if( major != DB_VERSION_MAJOR ||
18593 minor < DB_VERSION_MINOR )
18595 printf("Berkeley DB version mismatch\n"
18596 "\texpected: %s\n\tgot: %s\n",
18597 DB_VERSION_STRING, version);
18603 #if DB_VERSION_MAJOR > 2
18604 db_env_create( NULL, 0 );
18605 #elif DB_VERSION_MAJOR > 1
18606 db_appexit( NULL );
18608 (void) dbopen( NULL, 0, 0, 0, NULL);
18613 if { (eval echo configure:18614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18617 echo "configure: failed program was:" >&5
18618 cat conftest.$ac_ext >&5
18628 echo "$ac_t""$ol_cv_db_db1" 1>&6
18630 if test $ol_cv_db_db1 = yes ; then
18635 if test $ol_cv_lib_db = no ; then
18636 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18637 echo "configure:18638: checking for Berkeley DB link (-ldb-1)" >&5
18638 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18639 echo $ac_n "(cached) $ac_c" 1>&6
18644 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18646 cat > conftest.$ac_ext <<EOF
18647 #line 18648 "configure"
18648 #include "confdefs.h"
18650 #ifdef HAVE_DB_185_H
18651 # include <db_185.h>
18656 #ifndef DB_VERSION_MAJOR
18657 # define DB_VERSION_MAJOR 1
18661 #define NULL ((void*)0)
18666 #if DB_VERSION_MAJOR > 1
18669 int major, minor, patch;
18671 version = db_version( &major, &minor, &patch );
18673 if( major != DB_VERSION_MAJOR ||
18674 minor < DB_VERSION_MINOR )
18676 printf("Berkeley DB version mismatch\n"
18677 "\texpected: %s\n\tgot: %s\n",
18678 DB_VERSION_STRING, version);
18684 #if DB_VERSION_MAJOR > 2
18685 db_env_create( NULL, 0 );
18686 #elif DB_VERSION_MAJOR > 1
18687 db_appexit( NULL );
18689 (void) dbopen( NULL, 0, 0, 0, NULL);
18694 if { (eval echo configure:18695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18698 echo "configure: failed program was:" >&5
18699 cat conftest.$ac_ext >&5
18709 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18711 if test $ol_cv_db_db_1 = yes ; then
18712 ol_cv_lib_db=-ldb-1
18717 if test "$ol_cv_lib_db" != no ; then
18718 ol_cv_berkeley_db=yes
18719 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18720 echo "configure:18721: checking for Berkeley DB thread support" >&5
18721 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18722 echo $ac_n "(cached) $ac_c" 1>&6
18726 LIBS="$LTHREAD_LIBS $LIBS"
18727 if test $ol_cv_lib_db != yes ; then
18728 LIBS="$ol_cv_lib_db $LIBS"
18731 if test "$cross_compiling" = yes; then
18732 ol_cv_berkeley_db_thread=cross
18734 cat > conftest.$ac_ext <<EOF
18735 #line 18736 "configure"
18736 #include "confdefs.h"
18738 #ifdef HAVE_DB_185_H
18744 #define NULL ((void *)0)
18749 u_int32_t flags = DB_CREATE |
18755 #if DB_VERSION_MAJOR > 2
18756 DB_ENV *env = NULL;
18758 rc = db_env_create( &env, 0 );
18760 flags |= DB_INIT_MPOOL;
18761 #ifdef DB_MPOOL_PRIVATE
18762 flags |= DB_MPOOL_PRIVATE;
18766 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18770 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18771 rc = env->open( env, NULL, flags, 0 );
18773 rc = env->open( env, NULL, NULL, flags, 0 );
18777 rc = env->close( env, 0 );
18781 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18787 memset( &env, '\0', sizeof(env) );
18789 rc = db_appinit( NULL, NULL, &env, flags );
18792 db_appexit( &env );
18795 unlink("__db_mpool.share");
18796 unlink("__db_lock.share");
18802 if { (eval echo configure:18803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18804 ol_cv_berkeley_db_thread=yes
18806 echo "configure: failed program was:" >&5
18807 cat conftest.$ac_ext >&5
18809 ol_cv_berkeley_db_thread=no
18819 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18821 if test $ol_cv_berkeley_db_thread != no ; then
18822 cat >> confdefs.h <<\EOF
18823 #define HAVE_BERKELEY_DB_THREAD 1
18833 if test $ol_cv_berkeley_db != no ; then
18834 cat >> confdefs.h <<\EOF
18835 #define HAVE_BERKELEY_DB 1
18839 ol_link_ldbm=berkeley
18840 ol_with_ldbm_api=berkeley
18842 if test $ol_with_ldbm_type = hash ; then
18843 cat >> confdefs.h <<\EOF
18844 #define LDBM_USE_DBHASH 1
18848 cat >> confdefs.h <<\EOF
18849 #define LDBM_USE_DBBTREE 1
18854 if test $ol_cv_lib_db != yes ; then
18855 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18860 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18861 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18862 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18863 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18864 echo "configure:18865: checking Berkeley DB version for BDB backend" >&5
18865 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18866 echo $ac_n "(cached) $ac_c" 1>&6
18869 cat > conftest.$ac_ext <<EOF
18870 #line 18871 "configure"
18871 #include "confdefs.h"
18875 /* this check could be improved */
18876 #ifndef DB_VERSION_MAJOR
18877 # define DB_VERSION_MAJOR 1
18879 #ifndef DB_VERSION_MINOR
18880 # define DB_VERSION_MINOR 0
18883 /* require 4.0 or later */
18884 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
18885 __db_version_compat
18889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18890 egrep "__db_version_compat" >/dev/null 2>&1; then
18892 ol_cv_bdb_compat=yes
18895 ol_cv_bdb_compat=no
18901 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18904 if test $ol_cv_bdb_compat = yes ; then
18906 elif test $ol_enable_bdb = yes ; then
18907 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18913 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18914 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18915 ol_with_ldbm_api=none
18918 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18919 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18920 echo "configure:18921: checking for MDBM library" >&5
18921 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18922 echo $ac_n "(cached) $ac_c" 1>&6
18925 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18926 echo "configure:18927: checking for mdbm_set_chain" >&5
18927 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18928 echo $ac_n "(cached) $ac_c" 1>&6
18930 cat > conftest.$ac_ext <<EOF
18931 #line 18932 "configure"
18932 #include "confdefs.h"
18933 /* System header to define __stub macros and hopefully few prototypes,
18934 which can conflict with char mdbm_set_chain(); below. */
18935 #include <assert.h>
18936 /* Override any gcc2 internal prototype to avoid an error. */
18937 /* We use char because int might match the return type of a gcc2
18938 builtin and then its argument prototype would still apply. */
18939 char mdbm_set_chain();
18944 /* The GNU C library defines this for functions which it implements
18945 to always fail with ENOSYS. Some functions are actually named
18946 something starting with __ and the normal name is an alias. */
18947 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18950 f = mdbm_set_chain;
18955 if { (eval echo configure:18956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18957 eval "ac_cv_func_mdbm_set_chain=yes"
18959 echo "configure: failed program was:" >&5
18960 cat conftest.$ac_ext >&5
18962 eval "ac_cv_func_mdbm_set_chain=no"
18967 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18968 echo "$ac_t""yes" 1>&6
18971 echo "$ac_t""no" 1>&6
18973 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18974 echo "configure:18975: checking for mdbm_set_chain in -lmdbm" >&5
18975 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18976 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18977 echo $ac_n "(cached) $ac_c" 1>&6
18979 ac_save_LIBS="$LIBS"
18980 LIBS="-lmdbm $LIBS"
18981 cat > conftest.$ac_ext <<EOF
18982 #line 18983 "configure"
18983 #include "confdefs.h"
18984 /* Override any gcc2 internal prototype to avoid an error. */
18985 /* We use char because int might match the return type of a gcc2
18986 builtin and then its argument prototype would still apply. */
18987 char mdbm_set_chain();
18993 if { (eval echo configure:18994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18995 eval "ac_cv_lib_$ac_lib_var=yes"
18997 echo "configure: failed program was:" >&5
18998 cat conftest.$ac_ext >&5
19000 eval "ac_cv_lib_$ac_lib_var=no"
19003 LIBS="$ac_save_LIBS"
19006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19007 echo "$ac_t""yes" 1>&6
19008 ol_cv_lib_mdbm=-lmdbm
19010 echo "$ac_t""no" 1>&6
19021 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19024 for ac_hdr in mdbm.h
19026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19028 echo "configure:19029: checking for $ac_hdr" >&5
19029 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19030 echo $ac_n "(cached) $ac_c" 1>&6
19032 cat > conftest.$ac_ext <<EOF
19033 #line 19034 "configure"
19034 #include "confdefs.h"
19037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19038 { (eval echo configure:19039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19040 if test -z "$ac_err"; then
19042 eval "ac_cv_header_$ac_safe=yes"
19045 echo "configure: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19048 eval "ac_cv_header_$ac_safe=no"
19052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19053 echo "$ac_t""yes" 1>&6
19054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19055 cat >> confdefs.h <<EOF
19056 #define $ac_tr_hdr 1
19060 echo "$ac_t""no" 1>&6
19064 echo $ac_n "checking for db""... $ac_c" 1>&6
19065 echo "configure:19066: checking for db" >&5
19066 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
19070 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19078 echo "$ac_t""$ol_cv_mdbm" 1>&6
19079 if test $ol_cv_mdbm = yes ; then
19080 cat >> confdefs.h <<\EOF
19081 #define HAVE_MDBM 1
19087 if test $ol_cv_mdbm = yes ; then
19089 ol_with_ldbm_api=mdbm
19090 if test $ol_cv_lib_mdbm != yes ; then
19091 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19096 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19097 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19098 echo "configure:19099: checking for GDBM library" >&5
19099 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19100 echo $ac_n "(cached) $ac_c" 1>&6
19103 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19104 echo "configure:19105: checking for gdbm_open" >&5
19105 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19106 echo $ac_n "(cached) $ac_c" 1>&6
19108 cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19111 /* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char gdbm_open(); below. */
19113 #include <assert.h>
19114 /* Override any gcc2 internal prototype to avoid an error. */
19115 /* We use char because int might match the return type of a gcc2
19116 builtin and then its argument prototype would still apply. */
19122 /* The GNU C library defines this for functions which it implements
19123 to always fail with ENOSYS. Some functions are actually named
19124 something starting with __ and the normal name is an alias. */
19125 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19133 if { (eval echo configure:19134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19135 eval "ac_cv_func_gdbm_open=yes"
19137 echo "configure: failed program was:" >&5
19138 cat conftest.$ac_ext >&5
19140 eval "ac_cv_func_gdbm_open=no"
19145 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19146 echo "$ac_t""yes" 1>&6
19149 echo "$ac_t""no" 1>&6
19151 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19152 echo "configure:19153: checking for gdbm_open in -lgdbm" >&5
19153 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19155 echo $ac_n "(cached) $ac_c" 1>&6
19157 ac_save_LIBS="$LIBS"
19158 LIBS="-lgdbm $LIBS"
19159 cat > conftest.$ac_ext <<EOF
19160 #line 19161 "configure"
19161 #include "confdefs.h"
19162 /* Override any gcc2 internal prototype to avoid an error. */
19163 /* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19171 if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19173 eval "ac_cv_lib_$ac_lib_var=yes"
19175 echo "configure: failed program was:" >&5
19176 cat conftest.$ac_ext >&5
19178 eval "ac_cv_lib_$ac_lib_var=no"
19181 LIBS="$ac_save_LIBS"
19184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19185 echo "$ac_t""yes" 1>&6
19186 ol_cv_lib_gdbm=-lgdbm
19188 echo "$ac_t""no" 1>&6
19199 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19202 for ac_hdr in gdbm.h
19204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19206 echo "configure:19207: checking for $ac_hdr" >&5
19207 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19208 echo $ac_n "(cached) $ac_c" 1>&6
19210 cat > conftest.$ac_ext <<EOF
19211 #line 19212 "configure"
19212 #include "confdefs.h"
19215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19216 { (eval echo configure:19217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19218 if test -z "$ac_err"; then
19220 eval "ac_cv_header_$ac_safe=yes"
19223 echo "configure: failed program was:" >&5
19224 cat conftest.$ac_ext >&5
19226 eval "ac_cv_header_$ac_safe=no"
19230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19231 echo "$ac_t""yes" 1>&6
19232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19233 cat >> confdefs.h <<EOF
19234 #define $ac_tr_hdr 1
19238 echo "$ac_t""no" 1>&6
19242 echo $ac_n "checking for db""... $ac_c" 1>&6
19243 echo "configure:19244: checking for db" >&5
19244 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19245 echo $ac_n "(cached) $ac_c" 1>&6
19248 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19256 echo "$ac_t""$ol_cv_gdbm" 1>&6
19257 if test $ol_cv_gdbm = yes ; then
19258 cat >> confdefs.h <<\EOF
19259 #define HAVE_GDBM 1
19265 if test $ol_cv_gdbm = yes ; then
19267 ol_with_ldbm_api=gdbm
19269 if test $ol_cv_lib_gdbm != yes ; then
19270 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19275 if test $ol_with_ldbm_api = ndbm ; then
19276 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19277 echo "configure:19278: checking for NDBM library" >&5
19278 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19279 echo $ac_n "(cached) $ac_c" 1>&6
19282 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19283 echo "configure:19284: checking for dbm_open" >&5
19284 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19285 echo $ac_n "(cached) $ac_c" 1>&6
19287 cat > conftest.$ac_ext <<EOF
19288 #line 19289 "configure"
19289 #include "confdefs.h"
19290 /* System header to define __stub macros and hopefully few prototypes,
19291 which can conflict with char dbm_open(); below. */
19292 #include <assert.h>
19293 /* Override any gcc2 internal prototype to avoid an error. */
19294 /* We use char because int might match the return type of a gcc2
19295 builtin and then its argument prototype would still apply. */
19301 /* The GNU C library defines this for functions which it implements
19302 to always fail with ENOSYS. Some functions are actually named
19303 something starting with __ and the normal name is an alias. */
19304 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19312 if { (eval echo configure:19313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19314 eval "ac_cv_func_dbm_open=yes"
19316 echo "configure: failed program was:" >&5
19317 cat conftest.$ac_ext >&5
19319 eval "ac_cv_func_dbm_open=no"
19324 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19325 echo "$ac_t""yes" 1>&6
19328 echo "$ac_t""no" 1>&6
19330 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19331 echo "configure:19332: checking for dbm_open in -lndbm" >&5
19332 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19334 echo $ac_n "(cached) $ac_c" 1>&6
19336 ac_save_LIBS="$LIBS"
19337 LIBS="-lndbm $LIBS"
19338 cat > conftest.$ac_ext <<EOF
19339 #line 19340 "configure"
19340 #include "confdefs.h"
19341 /* Override any gcc2 internal prototype to avoid an error. */
19342 /* We use char because int might match the return type of a gcc2
19343 builtin and then its argument prototype would still apply. */
19350 if { (eval echo configure:19351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19352 eval "ac_cv_lib_$ac_lib_var=yes"
19354 echo "configure: failed program was:" >&5
19355 cat conftest.$ac_ext >&5
19357 eval "ac_cv_lib_$ac_lib_var=no"
19360 LIBS="$ac_save_LIBS"
19363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19364 echo "$ac_t""yes" 1>&6
19365 ol_cv_lib_ndbm=-lndbm
19367 echo "$ac_t""no" 1>&6
19369 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19370 echo "configure:19371: checking for dbm_open in -ldbm" >&5
19371 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19373 echo $ac_n "(cached) $ac_c" 1>&6
19375 ac_save_LIBS="$LIBS"
19377 cat > conftest.$ac_ext <<EOF
19378 #line 19379 "configure"
19379 #include "confdefs.h"
19380 /* Override any gcc2 internal prototype to avoid an error. */
19381 /* We use char because int might match the return type of a gcc2
19382 builtin and then its argument prototype would still apply. */
19389 if { (eval echo configure:19390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19391 eval "ac_cv_lib_$ac_lib_var=yes"
19393 echo "configure: failed program was:" >&5
19394 cat conftest.$ac_ext >&5
19396 eval "ac_cv_lib_$ac_lib_var=no"
19399 LIBS="$ac_save_LIBS"
19402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19403 echo "$ac_t""yes" 1>&6
19404 ol_cv_lib_ndbm=-ldbm
19406 echo "$ac_t""no" 1>&6
19419 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19422 for ac_hdr in ndbm.h
19424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19426 echo "configure:19427: checking for $ac_hdr" >&5
19427 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19428 echo $ac_n "(cached) $ac_c" 1>&6
19430 cat > conftest.$ac_ext <<EOF
19431 #line 19432 "configure"
19432 #include "confdefs.h"
19435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19436 { (eval echo configure:19437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19438 if test -z "$ac_err"; then
19440 eval "ac_cv_header_$ac_safe=yes"
19443 echo "configure: failed program was:" >&5
19444 cat conftest.$ac_ext >&5
19446 eval "ac_cv_header_$ac_safe=no"
19450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19451 echo "$ac_t""yes" 1>&6
19452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19453 cat >> confdefs.h <<EOF
19454 #define $ac_tr_hdr 1
19458 echo "$ac_t""no" 1>&6
19462 echo $ac_n "checking for db""... $ac_c" 1>&6
19463 echo "configure:19464: checking for db" >&5
19464 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19465 echo $ac_n "(cached) $ac_c" 1>&6
19468 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19476 echo "$ac_t""$ol_cv_ndbm" 1>&6
19477 if test $ol_cv_ndbm = yes ; then
19478 cat >> confdefs.h <<\EOF
19479 #define HAVE_NDBM 1
19485 if test $ol_cv_ndbm = yes ; then
19487 ol_with_ldbm_api=ndbm
19489 if test $ol_cv_lib_ndbm != yes ; then
19490 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19495 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19496 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19497 if test $ol_enable_ldbm = yes ; then
19498 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19501 echo "configure: warning: disabling LDBM" 1>&2
19506 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19507 BUILD_LIBS_DYNAMIC=shared
19508 cat >> confdefs.h <<\EOF
19509 #define LDAP_LIBS_DYNAMIC 1
19514 BUILD_LIBS_DYNAMIC=static
19518 if test $ol_enable_wrappers != no ; then
19519 for ac_hdr in tcpd.h
19521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19523 echo "configure:19524: checking for $ac_hdr" >&5
19524 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19525 echo $ac_n "(cached) $ac_c" 1>&6
19527 cat > conftest.$ac_ext <<EOF
19528 #line 19529 "configure"
19529 #include "confdefs.h"
19532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19533 { (eval echo configure:19534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19535 if test -z "$ac_err"; then
19537 eval "ac_cv_header_$ac_safe=yes"
19540 echo "configure: failed program was:" >&5
19541 cat conftest.$ac_ext >&5
19543 eval "ac_cv_header_$ac_safe=no"
19547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19548 echo "$ac_t""yes" 1>&6
19549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19550 cat >> confdefs.h <<EOF
19551 #define $ac_tr_hdr 1
19554 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19555 echo "configure:19556: checking for TCP wrappers library" >&5
19557 LIBS="$LIBS -lwrap"
19558 cat > conftest.$ac_ext <<EOF
19559 #line 19560 "configure"
19560 #include "confdefs.h"
19563 int allow_severity = 0;
19564 int deny_severity = 0;
19566 struct request_info *req;
19574 if { (eval echo configure:19575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19576 echo "$ac_t""-lwrap" 1>&6
19580 echo "configure: failed program was:" >&5
19581 cat conftest.$ac_ext >&5
19585 cat > conftest.$ac_ext <<EOF
19586 #line 19587 "configure"
19587 #include "confdefs.h"
19590 int allow_severity = 0;
19591 int deny_severity = 0;
19593 struct request_info *req;
19601 if { (eval echo configure:19602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19603 echo "$ac_t""-lwrap -lnsl" 1>&6
19605 LIBS="$save_LIBS -lnsl"
19607 echo "configure: failed program was:" >&5
19608 cat conftest.$ac_ext >&5
19611 echo "$ac_t""no" 1>&6
19619 echo "$ac_t""no" 1>&6
19625 if test $have_wrappers = yes ; then
19626 cat >> confdefs.h <<\EOF
19627 #define HAVE_TCPD 1
19631 elif test $ol_enable_wrappers = yes ; then
19632 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19634 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19639 if test $ol_enable_syslog != no ; then
19640 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19641 echo "configure:19642: checking for openlog" >&5
19642 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19643 echo $ac_n "(cached) $ac_c" 1>&6
19645 cat > conftest.$ac_ext <<EOF
19646 #line 19647 "configure"
19647 #include "confdefs.h"
19648 /* System header to define __stub macros and hopefully few prototypes,
19649 which can conflict with char openlog(); below. */
19650 #include <assert.h>
19651 /* Override any gcc2 internal prototype to avoid an error. */
19652 /* We use char because int might match the return type of a gcc2
19653 builtin and then its argument prototype would still apply. */
19659 /* The GNU C library defines this for functions which it implements
19660 to always fail with ENOSYS. Some functions are actually named
19661 something starting with __ and the normal name is an alias. */
19662 #if defined (__stub_openlog) || defined (__stub___openlog)
19670 if { (eval echo configure:19671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19672 eval "ac_cv_func_openlog=yes"
19674 echo "configure: failed program was:" >&5
19675 cat conftest.$ac_ext >&5
19677 eval "ac_cv_func_openlog=no"
19682 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19683 echo "$ac_t""yes" 1>&6
19686 echo "$ac_t""no" 1>&6
19689 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19690 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19692 ol_enable_syslog=$ac_cv_func_openlog
19697 if test $ol_enable_sql != no ; then
19698 for ac_hdr in sql.h sqlext.h
19700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19702 echo "configure:19703: checking for $ac_hdr" >&5
19703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19704 echo $ac_n "(cached) $ac_c" 1>&6
19706 cat > conftest.$ac_ext <<EOF
19707 #line 19708 "configure"
19708 #include "confdefs.h"
19711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19712 { (eval echo configure:19713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19714 if test -z "$ac_err"; then
19716 eval "ac_cv_header_$ac_safe=yes"
19719 echo "configure: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19722 eval "ac_cv_header_$ac_safe=no"
19726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19727 echo "$ac_t""yes" 1>&6
19728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19729 cat >> confdefs.h <<EOF
19730 #define $ac_tr_hdr 1
19734 echo "$ac_t""no" 1>&6
19735 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19741 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19742 echo "configure:19743: checking for SQLDriverConnect in -liodbc" >&5
19743 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19744 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19745 echo $ac_n "(cached) $ac_c" 1>&6
19747 ac_save_LIBS="$LIBS"
19748 LIBS="-liodbc $LIBS"
19749 cat > conftest.$ac_ext <<EOF
19750 #line 19751 "configure"
19751 #include "confdefs.h"
19752 /* Override any gcc2 internal prototype to avoid an error. */
19753 /* We use char because int might match the return type of a gcc2
19754 builtin and then its argument prototype would still apply. */
19755 char SQLDriverConnect();
19761 if { (eval echo configure:19762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19763 eval "ac_cv_lib_$ac_lib_var=yes"
19765 echo "configure: failed program was:" >&5
19766 cat conftest.$ac_ext >&5
19768 eval "ac_cv_lib_$ac_lib_var=no"
19771 LIBS="$ac_save_LIBS"
19774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19775 echo "$ac_t""yes" 1>&6
19778 echo "$ac_t""no" 1>&6
19782 if test $have_iodbc = yes ; then
19783 ol_link_sql="-liodbc"
19785 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19786 echo "configure:19787: checking for SQLDriverConnect in -lodbc" >&5
19787 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19789 echo $ac_n "(cached) $ac_c" 1>&6
19791 ac_save_LIBS="$LIBS"
19792 LIBS="-lodbc $LIBS"
19793 cat > conftest.$ac_ext <<EOF
19794 #line 19795 "configure"
19795 #include "confdefs.h"
19796 /* Override any gcc2 internal prototype to avoid an error. */
19797 /* We use char because int might match the return type of a gcc2
19798 builtin and then its argument prototype would still apply. */
19799 char SQLDriverConnect();
19805 if { (eval echo configure:19806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19807 eval "ac_cv_lib_$ac_lib_var=yes"
19809 echo "configure: failed program was:" >&5
19810 cat conftest.$ac_ext >&5
19812 eval "ac_cv_lib_$ac_lib_var=no"
19815 LIBS="$ac_save_LIBS"
19818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19819 echo "$ac_t""yes" 1>&6
19822 echo "$ac_t""no" 1>&6
19826 if test $have_odbc = yes ; then
19827 ol_link_sql="-lodbc"
19831 if test $ol_link_sql != no ; then
19832 SLAPD_SQL_LIBS="$ol_link_sql"
19834 elif test $ol_enable_sql != auto ; then
19835 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19839 if test $ol_enable_tcl != no ; then
19840 for ac_hdr in tcl.h
19842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19844 echo "configure:19845: checking for $ac_hdr" >&5
19845 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19846 echo $ac_n "(cached) $ac_c" 1>&6
19848 cat > conftest.$ac_ext <<EOF
19849 #line 19850 "configure"
19850 #include "confdefs.h"
19853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19854 { (eval echo configure:19855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19856 if test -z "$ac_err"; then
19858 eval "ac_cv_header_$ac_safe=yes"
19861 echo "configure: failed program was:" >&5
19862 cat conftest.$ac_ext >&5
19864 eval "ac_cv_header_$ac_safe=no"
19868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19869 echo "$ac_t""yes" 1>&6
19870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19871 cat >> confdefs.h <<EOF
19872 #define $ac_tr_hdr 1
19876 echo "$ac_t""no" 1>&6
19881 if test $ac_cv_header_tcl_h != yes ; then
19884 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19885 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19886 echo "configure:19887: checking for main in -l$lib" >&5
19887 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19889 echo $ac_n "(cached) $ac_c" 1>&6
19891 ac_save_LIBS="$LIBS"
19892 LIBS="-l$lib $LIBS"
19893 cat > conftest.$ac_ext <<EOF
19894 #line 19895 "configure"
19895 #include "confdefs.h"
19901 if { (eval echo configure:19902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19903 eval "ac_cv_lib_$ac_lib_var=yes"
19905 echo "configure: failed program was:" >&5
19906 cat conftest.$ac_ext >&5
19908 eval "ac_cv_lib_$ac_lib_var=no"
19911 LIBS="$ac_save_LIBS"
19914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19915 echo "$ac_t""yes" 1>&6
19917 if test x"$ol_with_tcl_module" = "xstatic" ; then
19918 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19920 MOD_TCL_LIB="-l${lib}"
19923 echo "$ac_t""no" 1>&6
19930 if test $have_tcl != yes ; then
19931 echo "configure: warning: could not find -ltcl" 1>&2
19932 if test $ol_enable_tcl = yes ; then
19933 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19941 for ac_hdr in termcap.h ncurses.h
19943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19945 echo "configure:19946: checking for $ac_hdr" >&5
19946 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19947 echo $ac_n "(cached) $ac_c" 1>&6
19949 cat > conftest.$ac_ext <<EOF
19950 #line 19951 "configure"
19951 #include "confdefs.h"
19954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19955 { (eval echo configure:19956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19957 if test -z "$ac_err"; then
19959 eval "ac_cv_header_$ac_safe=yes"
19962 echo "configure: failed program was:" >&5
19963 cat conftest.$ac_ext >&5
19965 eval "ac_cv_header_$ac_safe=no"
19969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19970 echo "$ac_t""yes" 1>&6
19971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19972 cat >> confdefs.h <<EOF
19973 #define $ac_tr_hdr 1
19977 echo "$ac_t""no" 1>&6
19982 if test $ol_link_termcap = no ; then
19983 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19984 echo "configure:19985: checking for tputs in -ltermcap" >&5
19985 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19986 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19987 echo $ac_n "(cached) $ac_c" 1>&6
19989 ac_save_LIBS="$LIBS"
19990 LIBS="-ltermcap $LIBS"
19991 cat > conftest.$ac_ext <<EOF
19992 #line 19993 "configure"
19993 #include "confdefs.h"
19994 /* Override any gcc2 internal prototype to avoid an error. */
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
20003 if { (eval echo configure:20004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20005 eval "ac_cv_lib_$ac_lib_var=yes"
20007 echo "configure: failed program was:" >&5
20008 cat conftest.$ac_ext >&5
20010 eval "ac_cv_lib_$ac_lib_var=no"
20013 LIBS="$ac_save_LIBS"
20016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20017 echo "$ac_t""yes" 1>&6
20020 echo "$ac_t""no" 1>&6
20024 if test $have_termcap = yes ; then
20025 cat >> confdefs.h <<\EOF
20026 #define HAVE_TERMCAP 1
20029 ol_link_termcap=yes
20030 TERMCAP_LIBS=-ltermcap
20034 if test $ol_link_termcap = no ; then
20035 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20036 echo "configure:20037: checking for initscr in -lncurses" >&5
20037 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20039 echo $ac_n "(cached) $ac_c" 1>&6
20041 ac_save_LIBS="$LIBS"
20042 LIBS="-lncurses $LIBS"
20043 cat > conftest.$ac_ext <<EOF
20044 #line 20045 "configure"
20045 #include "confdefs.h"
20046 /* Override any gcc2 internal prototype to avoid an error. */
20047 /* We use char because int might match the return type of a gcc2
20048 builtin and then its argument prototype would still apply. */
20055 if { (eval echo configure:20056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20057 eval "ac_cv_lib_$ac_lib_var=yes"
20059 echo "configure: failed program was:" >&5
20060 cat conftest.$ac_ext >&5
20062 eval "ac_cv_lib_$ac_lib_var=no"
20065 LIBS="$ac_save_LIBS"
20068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20069 echo "$ac_t""yes" 1>&6
20072 echo "$ac_t""no" 1>&6
20076 if test $have_ncurses = yes ; then
20077 cat >> confdefs.h <<\EOF
20078 #define HAVE_NCURSES 1
20081 ol_link_termcap=yes
20082 TERMCAP_LIBS=-lncurses
20086 if test $ol_link_termcap = no ; then
20087 cat >> confdefs.h <<\EOF
20088 #define NO_TERMCAP 1
20096 if test $ol_with_cyrus_sasl != no ; then
20097 for ac_hdr in sasl/sasl.h sasl.h
20099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20101 echo "configure:20102: checking for $ac_hdr" >&5
20102 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20103 echo $ac_n "(cached) $ac_c" 1>&6
20105 cat > conftest.$ac_ext <<EOF
20106 #line 20107 "configure"
20107 #include "confdefs.h"
20110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20111 { (eval echo configure:20112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20113 if test -z "$ac_err"; then
20115 eval "ac_cv_header_$ac_safe=yes"
20118 echo "configure: failed program was:" >&5
20119 cat conftest.$ac_ext >&5
20121 eval "ac_cv_header_$ac_safe=no"
20125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20126 echo "$ac_t""yes" 1>&6
20127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20128 cat >> confdefs.h <<EOF
20129 #define $ac_tr_hdr 1
20133 echo "$ac_t""no" 1>&6
20138 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20139 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20140 echo "configure:20141: checking for sasl_client_init in -lsasl2" >&5
20141 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20143 echo $ac_n "(cached) $ac_c" 1>&6
20145 ac_save_LIBS="$LIBS"
20146 LIBS="-lsasl2 $LIBS"
20147 cat > conftest.$ac_ext <<EOF
20148 #line 20149 "configure"
20149 #include "confdefs.h"
20150 /* Override any gcc2 internal prototype to avoid an error. */
20151 /* We use char because int might match the return type of a gcc2
20152 builtin and then its argument prototype would still apply. */
20153 char sasl_client_init();
20159 if { (eval echo configure:20160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20161 eval "ac_cv_lib_$ac_lib_var=yes"
20163 echo "configure: failed program was:" >&5
20164 cat conftest.$ac_ext >&5
20166 eval "ac_cv_lib_$ac_lib_var=no"
20169 LIBS="$ac_save_LIBS"
20172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20173 echo "$ac_t""yes" 1>&6
20174 ol_link_sasl="-lsasl2"
20176 echo "$ac_t""no" 1>&6
20177 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20178 echo "configure:20179: checking for sasl_client_init in -lsasl" >&5
20179 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20180 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20181 echo $ac_n "(cached) $ac_c" 1>&6
20183 ac_save_LIBS="$LIBS"
20184 LIBS="-lsasl $LIBS"
20185 cat > conftest.$ac_ext <<EOF
20186 #line 20187 "configure"
20187 #include "confdefs.h"
20188 /* Override any gcc2 internal prototype to avoid an error. */
20189 /* We use char because int might match the return type of a gcc2
20190 builtin and then its argument prototype would still apply. */
20191 char sasl_client_init();
20197 if { (eval echo configure:20198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20199 eval "ac_cv_lib_$ac_lib_var=yes"
20201 echo "configure: failed program was:" >&5
20202 cat conftest.$ac_ext >&5
20204 eval "ac_cv_lib_$ac_lib_var=no"
20207 LIBS="$ac_save_LIBS"
20210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20211 echo "$ac_t""yes" 1>&6
20212 ol_link_sasl="-lsasl"
20214 echo "$ac_t""no" 1>&6
20221 if test $ol_link_sasl = no ; then
20222 if test $ol_with_cyrus_sasl != auto ; then
20223 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20225 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20226 echo "configure: warning: SASL authentication not supported!" 1>&2
20227 if test $ol_link_tls = no ; then
20228 echo "configure: warning: Strong authentication not supported!" 1>&2
20232 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20233 echo "configure:20234: checking Cyrus SASL library version" >&5
20234 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20235 echo $ac_n "(cached) $ac_c" 1>&6
20238 cat > conftest.$ac_ext <<EOF
20239 #line 20240 "configure"
20240 #include "confdefs.h"
20242 #ifdef HAVE_SASL_SASL_H
20243 #include <sasl/sasl.h>
20248 /* require 2.1.3 or later */
20249 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20250 char *__sasl_compat = "1.5.x okay";
20251 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20252 __sasl_compat "2.2+ or better okay (we guess)";
20253 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20254 && SASL_VERSION_STEP >=3
20255 __sasl_compat = "2.1.3+ or better okay";
20259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20260 egrep "__sasl_compat" >/dev/null 2>&1; then
20262 ol_cv_sasl_compat=yes
20265 ol_cv_sasl_compat=no
20271 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20273 if test $ol_cv_sasl_compat = no ; then
20275 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20278 cat >> confdefs.h <<\EOF
20279 #define HAVE_CYRUS_SASL 1
20282 SASL_LIBS="$ol_link_sasl"
20283 if test $ol_enable_spasswd != no ; then
20284 ol_link_spasswd=yes
20287 ac_save_LIBS="$LIBS"
20288 LIBS="$LIBS $ol_link_sasl"
20289 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20290 echo "configure:20291: checking for sasl_version" >&5
20291 if eval "test \"\${ac_cv_func_sasl_version+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 sasl_version(); 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. */
20303 char sasl_version();
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_sasl_version) || defined (__stub___sasl_version)
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_sasl_version=yes"
20323 echo "configure: failed program was:" >&5
20324 cat conftest.$ac_ext >&5
20326 eval "ac_cv_func_sasl_version=no"
20331 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20332 echo "$ac_t""yes" 1>&6
20333 cat >> confdefs.h <<\EOF
20334 #define HAVE_SASL_VERSION 1
20338 echo "$ac_t""no" 1>&6
20341 LIBS="$ac_save_LIBS"
20345 echo "configure: warning: SASL authentication not supported!" 1>&2
20346 if test $ol_link_tls = no ; then
20347 echo "configure: warning: Strong authentication not supported!" 1>&2
20351 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20353 if test -r /dev/urandom ; then
20354 dev="/dev/urandom";
20355 elif test -r /idev/urandom ; then
20356 dev="/idev/urandom";
20357 elif test -r /dev/srandom ; then
20358 dev="/dev/srandom";
20359 elif test -r /dev/random ; then
20361 elif test -r /idev/random ; then
20362 dev="/idev/random";
20365 if test $dev != no ; then
20366 cat >> confdefs.h <<EOF
20367 #define URANDOM_DEVICE "$dev"
20374 if test $ol_with_fetch != no ; then
20376 LIBS="-lfetch -lcom_err $LIBS"
20377 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20378 echo "configure:20379: checking fetch(3) library" >&5
20379 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20380 echo $ac_n "(cached) $ac_c" 1>&6
20383 cat > conftest.$ac_ext <<EOF
20384 #line 20385 "configure"
20385 #include "confdefs.h"
20387 #include <sys/param.h>
20391 struct url *u = fetchParseURL("file:///");
20394 if { (eval echo configure:20395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20396 ol_cv_lib_fetch=yes
20398 echo "configure: failed program was:" >&5
20399 cat conftest.$ac_ext >&5
20406 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20408 if test $ol_cv_lib_fetch != no ; then
20409 ol_link_fetch="-lfetch -lcom_err"
20410 cat >> confdefs.h <<\EOF
20411 #define HAVE_FETCH 1
20417 if test $ol_cv_lib_fetch != no ; then
20418 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20419 ol_link_fetch=freebsd
20421 elif test $ol_with_fetch != auto ; then
20422 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20426 ol_link_readline=no
20427 if test $ol_with_readline != no ; then
20428 for ac_hdr in readline/readline.h readline/history.h
20430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20432 echo "configure:20433: checking for $ac_hdr" >&5
20433 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20434 echo $ac_n "(cached) $ac_c" 1>&6
20436 cat > conftest.$ac_ext <<EOF
20437 #line 20438 "configure"
20438 #include "confdefs.h"
20441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20442 { (eval echo configure:20443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20444 if test -z "$ac_err"; then
20446 eval "ac_cv_header_$ac_safe=yes"
20449 echo "configure: failed program was:" >&5
20450 cat conftest.$ac_ext >&5
20452 eval "ac_cv_header_$ac_safe=no"
20456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20457 echo "$ac_t""yes" 1>&6
20458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20459 cat >> confdefs.h <<EOF
20460 #define $ac_tr_hdr 1
20464 echo "$ac_t""no" 1>&6
20469 if test $ac_cv_header_readline_readline_h = yes ; then
20471 LIBS="$TERMCAP_LIBS $LIBS"
20472 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20473 echo "configure:20474: checking for readline in -lreadline" >&5
20474 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20475 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20476 echo $ac_n "(cached) $ac_c" 1>&6
20478 ac_save_LIBS="$LIBS"
20479 LIBS="-lreadline $LIBS"
20480 cat > conftest.$ac_ext <<EOF
20481 #line 20482 "configure"
20482 #include "confdefs.h"
20483 /* Override any gcc2 internal prototype to avoid an error. */
20484 /* We use char because int might match the return type of a gcc2
20485 builtin and then its argument prototype would still apply. */
20492 if { (eval echo configure:20493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20494 eval "ac_cv_lib_$ac_lib_var=yes"
20496 echo "configure: failed program was:" >&5
20497 cat conftest.$ac_ext >&5
20499 eval "ac_cv_lib_$ac_lib_var=no"
20502 LIBS="$ac_save_LIBS"
20505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20506 echo "$ac_t""yes" 1>&6
20509 echo "$ac_t""no" 1>&6
20515 if test $have_readline = yes ; then
20516 ol_with_readline=found
20517 ol_link_readline=yes
20519 READLINE_LIBS="-lreadline"
20524 if test $ol_link_readline = yes ; then
20525 cat >> confdefs.h <<\EOF
20526 #define HAVE_READLINE 1
20532 if test $ol_enable_crypt != no ; then
20534 LIBS="$TLS_LIBS $LIBS"
20536 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20537 echo "configure:20538: checking for crypt" >&5
20538 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20539 echo $ac_n "(cached) $ac_c" 1>&6
20541 cat > conftest.$ac_ext <<EOF
20542 #line 20543 "configure"
20543 #include "confdefs.h"
20544 /* System header to define __stub macros and hopefully few prototypes,
20545 which can conflict with char crypt(); below. */
20546 #include <assert.h>
20547 /* Override any gcc2 internal prototype to avoid an error. */
20548 /* We use char because int might match the return type of a gcc2
20549 builtin and then its argument prototype would still apply. */
20555 /* The GNU C library defines this for functions which it implements
20556 to always fail with ENOSYS. Some functions are actually named
20557 something starting with __ and the normal name is an alias. */
20558 #if defined (__stub_crypt) || defined (__stub___crypt)
20566 if { (eval echo configure:20567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20568 eval "ac_cv_func_crypt=yes"
20570 echo "configure: failed program was:" >&5
20571 cat conftest.$ac_ext >&5
20573 eval "ac_cv_func_crypt=no"
20578 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20579 echo "$ac_t""yes" 1>&6
20582 echo "$ac_t""no" 1>&6
20585 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20586 echo "configure:20587: checking for crypt in -lcrypt" >&5
20587 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20588 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20589 echo $ac_n "(cached) $ac_c" 1>&6
20591 ac_save_LIBS="$LIBS"
20592 LIBS="-lcrypt $LIBS"
20593 cat > conftest.$ac_ext <<EOF
20594 #line 20595 "configure"
20595 #include "confdefs.h"
20596 /* Override any gcc2 internal prototype to avoid an error. */
20597 /* We use char because int might match the return type of a gcc2
20598 builtin and then its argument prototype would still apply. */
20605 if { (eval echo configure:20606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20607 eval "ac_cv_lib_$ac_lib_var=yes"
20609 echo "configure: failed program was:" >&5
20610 cat conftest.$ac_ext >&5
20612 eval "ac_cv_lib_$ac_lib_var=no"
20615 LIBS="$ac_save_LIBS"
20618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20619 echo "$ac_t""yes" 1>&6
20620 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20623 echo "$ac_t""no" 1>&6
20632 if test $have_crypt = yes ; then
20633 cat >> confdefs.h <<\EOF
20634 #define HAVE_CRYPT 1
20638 echo "configure: warning: could not find crypt" 1>&2
20639 if test $ol_enable_crypt = yes ; then
20640 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20643 echo "configure: warning: disabling crypt support" 1>&2
20648 if test $ol_enable_proctitle != no ; then
20649 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20650 echo "configure:20651: checking for setproctitle" >&5
20651 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20652 echo $ac_n "(cached) $ac_c" 1>&6
20654 cat > conftest.$ac_ext <<EOF
20655 #line 20656 "configure"
20656 #include "confdefs.h"
20657 /* System header to define __stub macros and hopefully few prototypes,
20658 which can conflict with char setproctitle(); below. */
20659 #include <assert.h>
20660 /* Override any gcc2 internal prototype to avoid an error. */
20661 /* We use char because int might match the return type of a gcc2
20662 builtin and then its argument prototype would still apply. */
20663 char setproctitle();
20668 /* The GNU C library defines this for functions which it implements
20669 to always fail with ENOSYS. Some functions are actually named
20670 something starting with __ and the normal name is an alias. */
20671 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20679 if { (eval echo configure:20680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20681 eval "ac_cv_func_setproctitle=yes"
20683 echo "configure: failed program was:" >&5
20684 cat conftest.$ac_ext >&5
20686 eval "ac_cv_func_setproctitle=no"
20691 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20692 echo "$ac_t""yes" 1>&6
20693 have_setproctitle=yes
20695 echo "$ac_t""no" 1>&6
20697 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20698 echo "configure:20699: checking for setproctitle in -lutil" >&5
20699 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20700 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20701 echo $ac_n "(cached) $ac_c" 1>&6
20703 ac_save_LIBS="$LIBS"
20704 LIBS="-lutil $LIBS"
20705 cat > conftest.$ac_ext <<EOF
20706 #line 20707 "configure"
20707 #include "confdefs.h"
20708 /* Override any gcc2 internal prototype to avoid an error. */
20709 /* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20711 char setproctitle();
20717 if { (eval echo configure:20718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20719 eval "ac_cv_lib_$ac_lib_var=yes"
20721 echo "configure: failed program was:" >&5
20722 cat conftest.$ac_ext >&5
20724 eval "ac_cv_lib_$ac_lib_var=no"
20727 LIBS="$ac_save_LIBS"
20730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20731 echo "$ac_t""yes" 1>&6
20732 have_setproctitle=yes
20733 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20735 echo "$ac_t""no" 1>&6
20736 have_setproctitle=no
20737 LIBOBJS="$LIBOBJS setproctitle.o"
20738 LIBSRCS="$LIBSRCS setproctitle.c"
20744 if test $have_setproctitle = yes ; then
20745 cat >> confdefs.h <<\EOF
20746 #define HAVE_SETPROCTITLE 1
20752 if test $ol_enable_slp != no ; then
20753 for ac_hdr in slp.h
20755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20757 echo "configure:20758: checking for $ac_hdr" >&5
20758 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20759 echo $ac_n "(cached) $ac_c" 1>&6
20761 cat > conftest.$ac_ext <<EOF
20762 #line 20763 "configure"
20763 #include "confdefs.h"
20766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20767 { (eval echo configure:20768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20769 if test -z "$ac_err"; then
20771 eval "ac_cv_header_$ac_safe=yes"
20774 echo "configure: failed program was:" >&5
20775 cat conftest.$ac_ext >&5
20777 eval "ac_cv_header_$ac_safe=no"
20781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20782 echo "$ac_t""yes" 1>&6
20783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20784 cat >> confdefs.h <<EOF
20785 #define $ac_tr_hdr 1
20789 echo "$ac_t""no" 1>&6
20794 if test $ac_cv_header_slp_h = yes ; then
20795 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20796 echo "configure:20797: checking for SLPOpen in -lslp" >&5
20797 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20799 echo $ac_n "(cached) $ac_c" 1>&6
20801 ac_save_LIBS="$LIBS"
20803 cat > conftest.$ac_ext <<EOF
20804 #line 20805 "configure"
20805 #include "confdefs.h"
20806 /* Override any gcc2 internal prototype to avoid an error. */
20807 /* We use char because int might match the return type of a gcc2
20808 builtin and then its argument prototype would still apply. */
20815 if { (eval echo configure:20816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20817 eval "ac_cv_lib_$ac_lib_var=yes"
20819 echo "configure: failed program was:" >&5
20820 cat conftest.$ac_ext >&5
20822 eval "ac_cv_lib_$ac_lib_var=no"
20825 LIBS="$ac_save_LIBS"
20828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20829 echo "$ac_t""yes" 1>&6
20832 echo "$ac_t""no" 1>&6
20836 if test $have_slp = yes ; then
20837 cat >> confdefs.h <<\EOF
20841 SLAPD_SLP_LIBS=-lslp
20844 elif test $ol_enable_slp = yes ; then
20845 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20849 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20850 echo "configure:20851: checking for ANSI C header files" >&5
20851 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20852 echo $ac_n "(cached) $ac_c" 1>&6
20854 cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <stdlib.h>
20858 #include <stdarg.h>
20859 #include <string.h>
20862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20863 { (eval echo configure:20864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20865 if test -z "$ac_err"; then
20867 ac_cv_header_stdc=yes
20870 echo "configure: failed program was:" >&5
20871 cat conftest.$ac_ext >&5
20873 ac_cv_header_stdc=no
20877 if test $ac_cv_header_stdc = yes; then
20878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20879 cat > conftest.$ac_ext <<EOF
20880 #line 20881 "configure"
20881 #include "confdefs.h"
20882 #include <string.h>
20884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20885 egrep "memchr" >/dev/null 2>&1; then
20889 ac_cv_header_stdc=no
20895 if test $ac_cv_header_stdc = yes; then
20896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20897 cat > conftest.$ac_ext <<EOF
20898 #line 20899 "configure"
20899 #include "confdefs.h"
20900 #include <stdlib.h>
20902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20903 egrep "free" >/dev/null 2>&1; then
20907 ac_cv_header_stdc=no
20913 if test $ac_cv_header_stdc = yes; then
20914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20915 if test "$cross_compiling" = yes; then
20918 cat > conftest.$ac_ext <<EOF
20919 #line 20920 "configure"
20920 #include "confdefs.h"
20922 #if ((' ' & 0x0FF) == 0x020)
20923 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20924 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20926 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20927 || ('j' <= (c) && (c) <= 'r') \
20928 || ('s' <= (c) && (c) <= 'z'))
20929 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20932 int main () { int i; for (i = 0; i < 256; i++)
20933 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20937 if { (eval echo configure:20938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20941 echo "configure: failed program was:" >&5
20942 cat conftest.$ac_ext >&5
20944 ac_cv_header_stdc=no
20952 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20953 if test $ac_cv_header_stdc = yes; then
20954 cat >> confdefs.h <<\EOF
20955 #define STDC_HEADERS 1
20960 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20961 echo "configure:20962: checking for mode_t" >&5
20962 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20963 echo $ac_n "(cached) $ac_c" 1>&6
20965 cat > conftest.$ac_ext <<EOF
20966 #line 20967 "configure"
20967 #include "confdefs.h"
20968 #include <sys/types.h>
20970 #include <stdlib.h>
20971 #include <stddef.h>
20975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20976 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20978 eval "ac_cv_type_mode_t=yes"
20981 eval "ac_cv_type_mode_t=no"
20986 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20987 echo "$ac_t""yes" 1>&6
20989 echo "$ac_t""no" 1>&6
20990 cat >> confdefs.h <<EOF
20996 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20997 echo "configure:20998: checking for off_t" >&5
20998 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20999 echo $ac_n "(cached) $ac_c" 1>&6
21001 cat > conftest.$ac_ext <<EOF
21002 #line 21003 "configure"
21003 #include "confdefs.h"
21004 #include <sys/types.h>
21006 #include <stdlib.h>
21007 #include <stddef.h>
21011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21012 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21014 eval "ac_cv_type_off_t=yes"
21017 eval "ac_cv_type_off_t=no"
21022 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21023 echo "$ac_t""yes" 1>&6
21025 echo "$ac_t""no" 1>&6
21026 cat >> confdefs.h <<EOF
21032 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21033 echo "configure:21034: checking for pid_t" >&5
21034 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21035 echo $ac_n "(cached) $ac_c" 1>&6
21037 cat > conftest.$ac_ext <<EOF
21038 #line 21039 "configure"
21039 #include "confdefs.h"
21040 #include <sys/types.h>
21042 #include <stdlib.h>
21043 #include <stddef.h>
21047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21048 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21050 eval "ac_cv_type_pid_t=yes"
21053 eval "ac_cv_type_pid_t=no"
21058 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21059 echo "$ac_t""yes" 1>&6
21061 echo "$ac_t""no" 1>&6
21062 cat >> confdefs.h <<EOF
21068 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21069 echo "configure:21070: checking for ptrdiff_t" >&5
21070 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21071 echo $ac_n "(cached) $ac_c" 1>&6
21073 cat > conftest.$ac_ext <<EOF
21074 #line 21075 "configure"
21075 #include "confdefs.h"
21076 #include <stddef.h>
21081 if { (eval echo configure:21082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21083 am_cv_type_ptrdiff_t=yes
21085 echo "configure: failed program was:" >&5
21086 cat conftest.$ac_ext >&5
21088 am_cv_type_ptrdiff_t=no
21093 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21094 if test $am_cv_type_ptrdiff_t = yes; then
21095 cat >> confdefs.h <<\EOF
21096 #define HAVE_PTRDIFF_T 1
21101 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21102 echo "configure:21103: checking return type of signal handlers" >&5
21103 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21104 echo $ac_n "(cached) $ac_c" 1>&6
21106 cat > conftest.$ac_ext <<EOF
21107 #line 21108 "configure"
21108 #include "confdefs.h"
21109 #include <sys/types.h>
21110 #include <signal.h>
21115 extern "C" void (*signal (int, void (*)(int)))(int);
21117 void (*signal ()) ();
21124 if { (eval echo configure:21125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21126 ac_cv_type_signal=void
21128 echo "configure: failed program was:" >&5
21129 cat conftest.$ac_ext >&5
21131 ac_cv_type_signal=int
21136 echo "$ac_t""$ac_cv_type_signal" 1>&6
21137 cat >> confdefs.h <<EOF
21138 #define RETSIGTYPE $ac_cv_type_signal
21142 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21143 echo "configure:21144: checking for size_t" >&5
21144 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21145 echo $ac_n "(cached) $ac_c" 1>&6
21147 cat > conftest.$ac_ext <<EOF
21148 #line 21149 "configure"
21149 #include "confdefs.h"
21150 #include <sys/types.h>
21152 #include <stdlib.h>
21153 #include <stddef.h>
21157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21158 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21160 eval "ac_cv_type_size_t=yes"
21163 eval "ac_cv_type_size_t=no"
21168 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21169 echo "$ac_t""yes" 1>&6
21171 echo "$ac_t""no" 1>&6
21172 cat >> confdefs.h <<EOF
21173 #define size_t unsigned
21179 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21180 echo "configure:21181: checking for ssize_t" >&5
21181 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21182 echo $ac_n "(cached) $ac_c" 1>&6
21184 cat > conftest.$ac_ext <<EOF
21185 #line 21186 "configure"
21186 #include "confdefs.h"
21187 #include <sys/types.h>
21189 #include <stdlib.h>
21190 #include <stddef.h>
21194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21195 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21197 eval "ac_cv_type_ssize_t=yes"
21200 eval "ac_cv_type_ssize_t=no"
21205 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21206 echo "$ac_t""yes" 1>&6
21208 echo "$ac_t""no" 1>&6
21209 cat >> confdefs.h <<EOF
21210 #define ssize_t signed int
21215 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21216 echo "configure:21217: checking for caddr_t" >&5
21217 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21218 echo $ac_n "(cached) $ac_c" 1>&6
21220 cat > conftest.$ac_ext <<EOF
21221 #line 21222 "configure"
21222 #include "confdefs.h"
21223 #include <sys/types.h>
21225 #include <stdlib.h>
21226 #include <stddef.h>
21230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21231 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21233 eval "ac_cv_type_caddr_t=yes"
21236 eval "ac_cv_type_caddr_t=no"
21241 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21242 echo "$ac_t""yes" 1>&6
21244 echo "$ac_t""no" 1>&6
21245 cat >> confdefs.h <<EOF
21246 #define caddr_t char *
21252 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21253 echo "configure:21254: checking for socklen_t" >&5
21254 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21255 echo $ac_n "(cached) $ac_c" 1>&6
21257 cat > conftest.$ac_ext <<EOF
21258 #line 21259 "configure"
21259 #include "confdefs.h"
21261 #ifdef HAVE_SYS_TYPES_H
21262 #include <sys/types.h>
21264 #ifdef HAVE_SYS_SOCKET_H
21265 #include <sys/socket.h>
21272 if { (eval echo configure:21273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21274 ol_cv_type_socklen_t=yes
21276 echo "configure: failed program was:" >&5
21277 cat conftest.$ac_ext >&5
21279 ol_cv_type_socklen_t=no
21284 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21285 if test $ol_cv_type_socklen_t = no; then
21286 cat >> confdefs.h <<\EOF
21287 #define socklen_t int
21292 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21293 echo "configure:21294: checking for member st_blksize in aggregate type struct stat" >&5
21294 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21295 echo $ac_n "(cached) $ac_c" 1>&6
21297 cat > conftest.$ac_ext <<EOF
21298 #line 21299 "configure"
21299 #include "confdefs.h"
21300 #include <sys/types.h>
21301 #include <sys/stat.h>
21303 struct stat foo; foo.st_blksize;
21306 if { (eval echo configure:21307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21308 ac_cv_c_struct_member_st_blksize=yes
21310 echo "configure: failed program was:" >&5
21311 cat conftest.$ac_ext >&5
21313 ac_cv_c_struct_member_st_blksize=no
21318 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21319 st_blksize="$ac_cv_c_struct_member_st_blksize"
21320 if test $ac_cv_c_struct_member_st_blksize = yes; then
21321 cat >> confdefs.h <<\EOF
21322 #define HAVE_ST_BLKSIZE 1
21327 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21328 echo "configure:21329: checking whether time.h and sys/time.h may both be included" >&5
21329 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21330 echo $ac_n "(cached) $ac_c" 1>&6
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21335 #include <sys/types.h>
21336 #include <sys/time.h>
21342 if { (eval echo configure:21343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21344 ac_cv_header_time=yes
21346 echo "configure: failed program was:" >&5
21347 cat conftest.$ac_ext >&5
21349 ac_cv_header_time=no
21354 echo "$ac_t""$ac_cv_header_time" 1>&6
21355 if test $ac_cv_header_time = yes; then
21356 cat >> confdefs.h <<\EOF
21357 #define TIME_WITH_SYS_TIME 1
21362 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21363 echo "configure:21364: checking whether struct tm is in sys/time.h or time.h" >&5
21364 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21365 echo $ac_n "(cached) $ac_c" 1>&6
21367 cat > conftest.$ac_ext <<EOF
21368 #line 21369 "configure"
21369 #include "confdefs.h"
21370 #include <sys/types.h>
21373 struct tm *tp; tp->tm_sec;
21376 if { (eval echo configure:21377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21378 ac_cv_struct_tm=time.h
21380 echo "configure: failed program was:" >&5
21381 cat conftest.$ac_ext >&5
21383 ac_cv_struct_tm=sys/time.h
21388 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21389 if test $ac_cv_struct_tm = sys/time.h; then
21390 cat >> confdefs.h <<\EOF
21391 #define TM_IN_SYS_TIME 1
21396 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21397 echo "configure:21398: checking for uid_t in sys/types.h" >&5
21398 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21399 echo $ac_n "(cached) $ac_c" 1>&6
21401 cat > conftest.$ac_ext <<EOF
21402 #line 21403 "configure"
21403 #include "confdefs.h"
21404 #include <sys/types.h>
21406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21407 egrep "uid_t" >/dev/null 2>&1; then
21409 ac_cv_type_uid_t=yes
21412 ac_cv_type_uid_t=no
21418 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21419 if test $ac_cv_type_uid_t = no; then
21420 cat >> confdefs.h <<\EOF
21424 cat >> confdefs.h <<\EOF
21430 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21431 echo "configure:21432: checking for sig_atomic_t" >&5
21432 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21433 echo $ac_n "(cached) $ac_c" 1>&6
21435 cat > conftest.$ac_ext <<EOF
21436 #line 21437 "configure"
21437 #include "confdefs.h"
21438 #include <signal.h>
21440 sig_atomic_t atomic;
21443 if { (eval echo configure:21444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21445 ol_cv_type_sig_atomic_t=yes
21447 echo "configure: failed program was:" >&5
21448 cat conftest.$ac_ext >&5
21450 ol_cv_type_sig_atomic_t=no
21455 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21456 if test $ol_cv_type_sig_atomic_t = no; then
21457 cat >> confdefs.h <<\EOF
21458 #define sig_atomic_t int
21465 # test for pw_gecos in struct passwd
21466 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21467 echo "configure:21468: checking struct passwd for pw_gecos" >&5
21468 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21469 echo $ac_n "(cached) $ac_c" 1>&6
21472 cat > conftest.$ac_ext <<EOF
21473 #line 21474 "configure"
21474 #include "confdefs.h"
21479 pwd.pw_gecos = pwd.pw_name;
21483 if { (eval echo configure:21484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21485 ol_cv_struct_passwd_pw_gecos=yes
21487 echo "configure: failed program was:" >&5
21488 cat conftest.$ac_ext >&5
21490 ol_cv_struct_passwd_pw_gecos=no
21495 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21496 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21497 cat >> confdefs.h <<\EOF
21498 #define HAVE_PW_GECOS 1
21503 # test for pw_passwd in struct passwd
21504 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21505 echo "configure:21506: checking struct passwd for pw_passwd" >&5
21506 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21507 echo $ac_n "(cached) $ac_c" 1>&6
21510 cat > conftest.$ac_ext <<EOF
21511 #line 21512 "configure"
21512 #include "confdefs.h"
21517 pwd.pw_passwd = pwd.pw_name;
21521 if { (eval echo configure:21522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21523 ol_cv_struct_passwd_pw_passwd=yes
21525 echo "configure: failed program was:" >&5
21526 cat conftest.$ac_ext >&5
21528 ol_cv_struct_passwd_pw_passwd=no
21533 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21534 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21535 cat >> confdefs.h <<\EOF
21536 #define HAVE_PW_PASSWD 1
21542 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21543 echo "configure:21544: checking if toupper() requires islower()" >&5
21544 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21545 echo $ac_n "(cached) $ac_c" 1>&6
21548 if test "$cross_compiling" = yes; then
21549 ol_cv_c_upper_lower=safe
21551 cat > conftest.$ac_ext <<EOF
21552 #line 21553 "configure"
21553 #include "confdefs.h"
21558 if ('C' == toupper('C'))
21564 if { (eval echo configure:21565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21566 ol_cv_c_upper_lower=no
21568 echo "configure: failed program was:" >&5
21569 cat conftest.$ac_ext >&5
21571 ol_cv_c_upper_lower=yes
21578 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21579 if test $ol_cv_c_upper_lower != no ; then
21580 cat >> confdefs.h <<\EOF
21581 #define C_UPPER_LOWER 1
21586 echo $ac_n "checking for working const""... $ac_c" 1>&6
21587 echo "configure:21588: checking for working const" >&5
21588 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21589 echo $ac_n "(cached) $ac_c" 1>&6
21591 cat > conftest.$ac_ext <<EOF
21592 #line 21593 "configure"
21593 #include "confdefs.h"
21597 /* Ultrix mips cc rejects this. */
21598 typedef int charset[2]; const charset x;
21599 /* SunOS 4.1.1 cc rejects this. */
21600 char const *const *ccp;
21602 /* NEC SVR4.0.2 mips cc rejects this. */
21603 struct point {int x, y;};
21604 static struct point const zero = {0,0};
21605 /* AIX XL C 1.02.0.0 rejects this.
21606 It does not let you subtract one const X* pointer from another in an arm
21607 of an if-expression whose if-part is not a constant expression */
21608 const char *g = "string";
21609 ccp = &g + (g ? g-g : 0);
21610 /* HPUX 7.0 cc rejects these. */
21613 ccp = (char const *const *) p;
21614 { /* SCO 3.2v4 cc rejects this. */
21616 char const *s = 0 ? (char *) 0 : (char const *) 0;
21620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21621 int x[] = {25, 17};
21622 const int *foo = &x[0];
21625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21626 typedef const int *iptr;
21630 { /* AIX XL C 1.02.0.0 rejects this saying
21631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21632 struct s { int j; const int *ap[3]; };
21633 struct s *b; b->j = 5;
21635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21636 const int foo = 10;
21641 if { (eval echo configure:21642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21645 echo "configure: failed program was:" >&5
21646 cat conftest.$ac_ext >&5
21653 echo "$ac_t""$ac_cv_c_const" 1>&6
21654 if test $ac_cv_c_const = no; then
21655 cat >> confdefs.h <<\EOF
21661 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21662 echo "configure:21663: checking if compiler understands volatile" >&5
21663 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21664 echo $ac_n "(cached) $ac_c" 1>&6
21666 cat > conftest.$ac_ext <<EOF
21667 #line 21668 "configure"
21668 #include "confdefs.h"
21671 volatile int a; int * volatile b = x ? &y : &z;
21672 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21676 if { (eval echo configure:21677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21678 ol_cv_c_volatile=yes
21680 echo "configure: failed program was:" >&5
21681 cat conftest.$ac_ext >&5
21683 ol_cv_c_volatile=no
21688 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21689 if test $ol_cv_c_volatile = yes; then
21692 cat >> confdefs.h <<\EOF
21699 if test $cross_compiling = yes ; then
21700 cat >> confdefs.h <<\EOF
21701 #define CROSS_COMPILING 1
21705 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21706 echo "configure:21707: checking whether byte ordering is bigendian" >&5
21707 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21708 echo $ac_n "(cached) $ac_c" 1>&6
21710 ac_cv_c_bigendian=unknown
21711 # See if sys/param.h defines the BYTE_ORDER macro.
21712 cat > conftest.$ac_ext <<EOF
21713 #line 21714 "configure"
21714 #include "confdefs.h"
21715 #include <sys/types.h>
21716 #include <sys/param.h>
21719 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21720 bogus endian macros
21724 if { (eval echo configure:21725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21726 # It does; now see whether it defined to BIG_ENDIAN or not.
21727 cat > conftest.$ac_ext <<EOF
21728 #line 21729 "configure"
21729 #include "confdefs.h"
21730 #include <sys/types.h>
21731 #include <sys/param.h>
21734 #if BYTE_ORDER != BIG_ENDIAN
21739 if { (eval echo configure:21740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21741 ac_cv_c_bigendian=yes
21743 echo "configure: failed program was:" >&5
21744 cat conftest.$ac_ext >&5
21746 ac_cv_c_bigendian=no
21750 echo "configure: failed program was:" >&5
21751 cat conftest.$ac_ext >&5
21754 if test $ac_cv_c_bigendian = unknown; then
21755 if test "$cross_compiling" = yes; then
21756 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21758 cat > conftest.$ac_ext <<EOF
21759 #line 21760 "configure"
21760 #include "confdefs.h"
21762 /* Are we little or big endian? From Harbison&Steele. */
21766 char c[sizeof (long)];
21769 exit (u.c[sizeof (long) - 1] == 1);
21772 if { (eval echo configure:21773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21774 ac_cv_c_bigendian=no
21776 echo "configure: failed program was:" >&5
21777 cat conftest.$ac_ext >&5
21779 ac_cv_c_bigendian=yes
21787 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21788 if test $ac_cv_c_bigendian = yes; then
21789 cat >> confdefs.h <<\EOF
21790 #define WORDS_BIGENDIAN 1
21797 echo $ac_n "checking size of short""... $ac_c" 1>&6
21798 echo "configure:21799: checking size of short" >&5
21799 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21800 echo $ac_n "(cached) $ac_c" 1>&6
21802 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21803 cat > conftest.$ac_ext <<EOF
21804 #line 21805 "configure"
21805 #include "confdefs.h"
21806 #include "confdefs.h"
21807 #include <sys/types.h>
21811 switch (0) case 0: case (sizeof (short) == $ac_size):;
21814 if { (eval echo configure:21815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21816 ac_cv_sizeof_short=$ac_size
21818 echo "configure: failed program was:" >&5
21819 cat conftest.$ac_ext >&5
21822 if test x$ac_cv_sizeof_short != x ; then break; fi
21827 if test x$ac_cv_sizeof_short = x ; then
21828 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21830 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21831 cat >> confdefs.h <<EOF
21832 #define SIZEOF_SHORT $ac_cv_sizeof_short
21836 echo $ac_n "checking size of int""... $ac_c" 1>&6
21837 echo "configure:21838: checking size of int" >&5
21838 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21839 echo $ac_n "(cached) $ac_c" 1>&6
21841 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21842 cat > conftest.$ac_ext <<EOF
21843 #line 21844 "configure"
21844 #include "confdefs.h"
21845 #include "confdefs.h"
21846 #include <sys/types.h>
21850 switch (0) case 0: case (sizeof (int) == $ac_size):;
21853 if { (eval echo configure:21854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21855 ac_cv_sizeof_int=$ac_size
21857 echo "configure: failed program was:" >&5
21858 cat conftest.$ac_ext >&5
21861 if test x$ac_cv_sizeof_int != x ; then break; fi
21866 if test x$ac_cv_sizeof_int = x ; then
21867 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21869 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21870 cat >> confdefs.h <<EOF
21871 #define SIZEOF_INT $ac_cv_sizeof_int
21875 echo $ac_n "checking size of long""... $ac_c" 1>&6
21876 echo "configure:21877: checking size of long" >&5
21877 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21878 echo $ac_n "(cached) $ac_c" 1>&6
21880 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21881 cat > conftest.$ac_ext <<EOF
21882 #line 21883 "configure"
21883 #include "confdefs.h"
21884 #include "confdefs.h"
21885 #include <sys/types.h>
21889 switch (0) case 0: case (sizeof (long) == $ac_size):;
21892 if { (eval echo configure:21893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21894 ac_cv_sizeof_long=$ac_size
21896 echo "configure: failed program was:" >&5
21897 cat conftest.$ac_ext >&5
21900 if test x$ac_cv_sizeof_long != x ; then break; fi
21905 if test x$ac_cv_sizeof_long = x ; then
21906 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21908 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21909 cat >> confdefs.h <<EOF
21910 #define SIZEOF_LONG $ac_cv_sizeof_long
21915 if test "$ac_cv_sizeof_int" -lt 4 ; then
21916 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21918 cat >> confdefs.h <<\EOF
21919 #define LBER_INT_T long
21923 cat >> confdefs.h <<\EOF
21924 #define LBER_INT_T int
21929 cat >> confdefs.h <<\EOF
21930 #define LBER_LEN_T long
21933 cat >> confdefs.h <<\EOF
21934 #define LBER_SOCKET_T int
21937 cat >> confdefs.h <<\EOF
21938 #define LBER_TAG_T long
21942 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21943 echo "configure:21944: checking for 8-bit clean memcmp" >&5
21944 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21945 echo $ac_n "(cached) $ac_c" 1>&6
21947 if test "$cross_compiling" = yes; then
21948 ac_cv_func_memcmp_clean=no
21950 cat > conftest.$ac_ext <<EOF
21951 #line 21952 "configure"
21952 #include "confdefs.h"
21956 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21957 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21961 if { (eval echo configure:21962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21963 ac_cv_func_memcmp_clean=yes
21965 echo "configure: failed program was:" >&5
21966 cat conftest.$ac_ext >&5
21968 ac_cv_func_memcmp_clean=no
21975 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21976 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21978 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21979 echo "configure:21980: checking for strftime" >&5
21980 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21981 echo $ac_n "(cached) $ac_c" 1>&6
21983 cat > conftest.$ac_ext <<EOF
21984 #line 21985 "configure"
21985 #include "confdefs.h"
21986 /* System header to define __stub macros and hopefully few prototypes,
21987 which can conflict with char strftime(); below. */
21988 #include <assert.h>
21989 /* Override any gcc2 internal prototype to avoid an error. */
21990 /* We use char because int might match the return type of a gcc2
21991 builtin and then its argument prototype would still apply. */
21997 /* The GNU C library defines this for functions which it implements
21998 to always fail with ENOSYS. Some functions are actually named
21999 something starting with __ and the normal name is an alias. */
22000 #if defined (__stub_strftime) || defined (__stub___strftime)
22008 if { (eval echo configure:22009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22010 eval "ac_cv_func_strftime=yes"
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22015 eval "ac_cv_func_strftime=no"
22020 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22021 echo "$ac_t""yes" 1>&6
22022 cat >> confdefs.h <<\EOF
22023 #define HAVE_STRFTIME 1
22027 echo "$ac_t""no" 1>&6
22028 # strftime is in -lintl on SCO UNIX.
22029 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22030 echo "configure:22031: checking for strftime in -lintl" >&5
22031 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22032 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22033 echo $ac_n "(cached) $ac_c" 1>&6
22035 ac_save_LIBS="$LIBS"
22036 LIBS="-lintl $LIBS"
22037 cat > conftest.$ac_ext <<EOF
22038 #line 22039 "configure"
22039 #include "confdefs.h"
22040 /* Override any gcc2 internal prototype to avoid an error. */
22041 /* We use char because int might match the return type of a gcc2
22042 builtin and then its argument prototype would still apply. */
22049 if { (eval echo configure:22050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22051 eval "ac_cv_lib_$ac_lib_var=yes"
22053 echo "configure: failed program was:" >&5
22054 cat conftest.$ac_ext >&5
22056 eval "ac_cv_lib_$ac_lib_var=no"
22059 LIBS="$ac_save_LIBS"
22062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22063 echo "$ac_t""yes" 1>&6
22064 cat >> confdefs.h <<\EOF
22065 #define HAVE_STRFTIME 1
22068 LIBS="-lintl $LIBS"
22070 echo "$ac_t""no" 1>&6
22076 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22077 echo "configure:22078: checking for inet_aton()" >&5
22078 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22079 echo $ac_n "(cached) $ac_c" 1>&6
22081 cat > conftest.$ac_ext <<EOF
22082 #line 22083 "configure"
22083 #include "confdefs.h"
22085 #ifdef HAVE_SYS_TYPES_H
22086 # include <sys/types.h>
22088 #ifdef HAVE_SYS_SOCKET_H
22089 # include <sys/socket.h>
22090 # ifdef HAVE_SYS_SELECT_H
22091 # include <sys/select.h>
22093 # include <netinet/in.h>
22094 # ifdef HAVE_ARPA_INET_H
22095 # include <arpa/inet.h>
22101 int rc = inet_aton( "255.255.255.255", &in );
22104 if { (eval echo configure:22105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22106 ol_cv_func_inet_aton=yes
22108 echo "configure: failed program was:" >&5
22109 cat conftest.$ac_ext >&5
22111 ol_cv_func_inet_aton=no
22116 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22117 if test $ol_cv_func_inet_aton != no; then
22118 cat >> confdefs.h <<\EOF
22119 #define HAVE_INET_ATON 1
22125 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22126 echo "configure:22127: checking for _spawnlp" >&5
22127 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22128 echo $ac_n "(cached) $ac_c" 1>&6
22130 cat > conftest.$ac_ext <<EOF
22131 #line 22132 "configure"
22132 #include "confdefs.h"
22133 /* System header to define __stub macros and hopefully few prototypes,
22134 which can conflict with char _spawnlp(); below. */
22135 #include <assert.h>
22136 /* Override any gcc2 internal prototype to avoid an error. */
22137 /* We use char because int might match the return type of a gcc2
22138 builtin and then its argument prototype would still apply. */
22144 /* The GNU C library defines this for functions which it implements
22145 to always fail with ENOSYS. Some functions are actually named
22146 something starting with __ and the normal name is an alias. */
22147 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22155 if { (eval echo configure:22156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22157 eval "ac_cv_func__spawnlp=yes"
22159 echo "configure: failed program was:" >&5
22160 cat conftest.$ac_ext >&5
22162 eval "ac_cv_func__spawnlp=no"
22167 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22168 echo "$ac_t""yes" 1>&6
22169 cat >> confdefs.h <<\EOF
22170 #define HAVE_SPAWNLP 1
22174 echo "$ac_t""no" 1>&6
22178 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22179 echo "configure:22180: checking for _snprintf" >&5
22180 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22181 echo $ac_n "(cached) $ac_c" 1>&6
22183 cat > conftest.$ac_ext <<EOF
22184 #line 22185 "configure"
22185 #include "confdefs.h"
22186 /* System header to define __stub macros and hopefully few prototypes,
22187 which can conflict with char _snprintf(); below. */
22188 #include <assert.h>
22189 /* Override any gcc2 internal prototype to avoid an error. */
22190 /* We use char because int might match the return type of a gcc2
22191 builtin and then its argument prototype would still apply. */
22197 /* The GNU C library defines this for functions which it implements
22198 to always fail with ENOSYS. Some functions are actually named
22199 something starting with __ and the normal name is an alias. */
22200 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22208 if { (eval echo configure:22209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22210 eval "ac_cv_func__snprintf=yes"
22212 echo "configure: failed program was:" >&5
22213 cat conftest.$ac_ext >&5
22215 eval "ac_cv_func__snprintf=no"
22220 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22221 echo "$ac_t""yes" 1>&6
22222 ac_cv_func_snprintf=yes
22223 cat >> confdefs.h <<\EOF
22224 #define snprintf _snprintf
22229 echo "$ac_t""no" 1>&6
22233 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22234 echo "configure:22235: checking for _vsnprintf" >&5
22235 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22236 echo $ac_n "(cached) $ac_c" 1>&6
22238 cat > conftest.$ac_ext <<EOF
22239 #line 22240 "configure"
22240 #include "confdefs.h"
22241 /* System header to define __stub macros and hopefully few prototypes,
22242 which can conflict with char _vsnprintf(); below. */
22243 #include <assert.h>
22244 /* Override any gcc2 internal prototype to avoid an error. */
22245 /* We use char because int might match the return type of a gcc2
22246 builtin and then its argument prototype would still apply. */
22252 /* The GNU C library defines this for functions which it implements
22253 to always fail with ENOSYS. Some functions are actually named
22254 something starting with __ and the normal name is an alias. */
22255 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22263 if { (eval echo configure:22264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22265 eval "ac_cv_func__vsnprintf=yes"
22267 echo "configure: failed program was:" >&5
22268 cat conftest.$ac_ext >&5
22270 eval "ac_cv_func__vsnprintf=no"
22275 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22276 echo "$ac_t""yes" 1>&6
22277 ac_cv_func_vsnprintf=yes
22278 cat >> confdefs.h <<\EOF
22279 #define vsnprintf _vsnprintf
22284 echo "$ac_t""no" 1>&6
22288 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22289 echo "configure:22290: checking for vprintf" >&5
22290 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22291 echo $ac_n "(cached) $ac_c" 1>&6
22293 cat > conftest.$ac_ext <<EOF
22294 #line 22295 "configure"
22295 #include "confdefs.h"
22296 /* System header to define __stub macros and hopefully few prototypes,
22297 which can conflict with char vprintf(); below. */
22298 #include <assert.h>
22299 /* Override any gcc2 internal prototype to avoid an error. */
22300 /* We use char because int might match the return type of a gcc2
22301 builtin and then its argument prototype would still apply. */
22307 /* The GNU C library defines this for functions which it implements
22308 to always fail with ENOSYS. Some functions are actually named
22309 something starting with __ and the normal name is an alias. */
22310 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22318 if { (eval echo configure:22319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22320 eval "ac_cv_func_vprintf=yes"
22322 echo "configure: failed program was:" >&5
22323 cat conftest.$ac_ext >&5
22325 eval "ac_cv_func_vprintf=no"
22330 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22331 echo "$ac_t""yes" 1>&6
22332 cat >> confdefs.h <<\EOF
22333 #define HAVE_VPRINTF 1
22337 echo "$ac_t""no" 1>&6
22340 if test "$ac_cv_func_vprintf" != yes; then
22341 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22342 echo "configure:22343: checking for _doprnt" >&5
22343 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22344 echo $ac_n "(cached) $ac_c" 1>&6
22346 cat > conftest.$ac_ext <<EOF
22347 #line 22348 "configure"
22348 #include "confdefs.h"
22349 /* System header to define __stub macros and hopefully few prototypes,
22350 which can conflict with char _doprnt(); below. */
22351 #include <assert.h>
22352 /* Override any gcc2 internal prototype to avoid an error. */
22353 /* We use char because int might match the return type of a gcc2
22354 builtin and then its argument prototype would still apply. */
22360 /* The GNU C library defines this for functions which it implements
22361 to always fail with ENOSYS. Some functions are actually named
22362 something starting with __ and the normal name is an alias. */
22363 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22371 if { (eval echo configure:22372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22373 eval "ac_cv_func__doprnt=yes"
22375 echo "configure: failed program was:" >&5
22376 cat conftest.$ac_ext >&5
22378 eval "ac_cv_func__doprnt=no"
22383 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22384 echo "$ac_t""yes" 1>&6
22385 cat >> confdefs.h <<\EOF
22386 #define HAVE_DOPRNT 1
22390 echo "$ac_t""no" 1>&6
22396 if test $ac_cv_func_vprintf = yes ; then
22397 for ac_func in snprintf vsnprintf
22399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22400 echo "configure:22401: checking for $ac_func" >&5
22401 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22402 echo $ac_n "(cached) $ac_c" 1>&6
22404 cat > conftest.$ac_ext <<EOF
22405 #line 22406 "configure"
22406 #include "confdefs.h"
22407 /* System header to define __stub macros and hopefully few prototypes,
22408 which can conflict with char $ac_func(); below. */
22409 #include <assert.h>
22410 /* Override any gcc2 internal prototype to avoid an error. */
22411 /* We use char because int might match the return type of a gcc2
22412 builtin and then its argument prototype would still apply. */
22418 /* The GNU C library defines this for functions which it implements
22419 to always fail with ENOSYS. Some functions are actually named
22420 something starting with __ and the normal name is an alias. */
22421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22429 if { (eval echo configure:22430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22431 eval "ac_cv_func_$ac_func=yes"
22433 echo "configure: failed program was:" >&5
22434 cat conftest.$ac_ext >&5
22436 eval "ac_cv_func_$ac_func=no"
22441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22442 echo "$ac_t""yes" 1>&6
22443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22444 cat >> confdefs.h <<EOF
22445 #define $ac_tr_func 1
22449 echo "$ac_t""no" 1>&6
22511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22512 echo "configure:22513: checking for $ac_func" >&5
22513 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22514 echo $ac_n "(cached) $ac_c" 1>&6
22516 cat > conftest.$ac_ext <<EOF
22517 #line 22518 "configure"
22518 #include "confdefs.h"
22519 /* System header to define __stub macros and hopefully few prototypes,
22520 which can conflict with char $ac_func(); below. */
22521 #include <assert.h>
22522 /* Override any gcc2 internal prototype to avoid an error. */
22523 /* We use char because int might match the return type of a gcc2
22524 builtin and then its argument prototype would still apply. */
22530 /* The GNU C library defines this for functions which it implements
22531 to always fail with ENOSYS. Some functions are actually named
22532 something starting with __ and the normal name is an alias. */
22533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22541 if { (eval echo configure:22542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22543 eval "ac_cv_func_$ac_func=yes"
22545 echo "configure: failed program was:" >&5
22546 cat conftest.$ac_ext >&5
22548 eval "ac_cv_func_$ac_func=no"
22553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22554 echo "$ac_t""yes" 1>&6
22555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22556 cat >> confdefs.h <<EOF
22557 #define $ac_tr_func 1
22561 echo "$ac_t""no" 1>&6
22566 for ac_func in getopt getpeereid
22568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22569 echo "configure:22570: checking for $ac_func" >&5
22570 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22571 echo $ac_n "(cached) $ac_c" 1>&6
22573 cat > conftest.$ac_ext <<EOF
22574 #line 22575 "configure"
22575 #include "confdefs.h"
22576 /* System header to define __stub macros and hopefully few prototypes,
22577 which can conflict with char $ac_func(); below. */
22578 #include <assert.h>
22579 /* Override any gcc2 internal prototype to avoid an error. */
22580 /* We use char because int might match the return type of a gcc2
22581 builtin and then its argument prototype would still apply. */
22587 /* The GNU C library defines this for functions which it implements
22588 to always fail with ENOSYS. Some functions are actually named
22589 something starting with __ and the normal name is an alias. */
22590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22598 if { (eval echo configure:22599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22600 eval "ac_cv_func_$ac_func=yes"
22602 echo "configure: failed program was:" >&5
22603 cat conftest.$ac_ext >&5
22605 eval "ac_cv_func_$ac_func=no"
22610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22611 echo "$ac_t""yes" 1>&6
22612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22613 cat >> confdefs.h <<EOF
22614 #define $ac_tr_func 1
22618 echo "$ac_t""no" 1>&6
22619 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22625 if test "$ac_cv_func_getopt" != yes; then
22626 LIBSRCS="$LIBSRCS getopt.c"
22628 if test "$ac_cv_func_getpeereid" != yes; then
22629 LIBSRCS="$LIBSRCS getpeereid.c"
22631 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22632 if test "$ac_cv_func_snprintf" != yes; then
22633 cat >> confdefs.h <<\EOF
22634 #define snprintf ber_pvt_snprintf
22638 if test "$ac_cv_func_vsnprintf" != yes; then
22639 cat >> confdefs.h <<\EOF
22640 #define vsnprintf ber_pvt_vsnprintf
22646 # Check Configuration
22647 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22648 echo "configure:22649: checking declaration of sys_errlist" >&5
22649 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22650 echo $ac_n "(cached) $ac_c" 1>&6
22653 cat > conftest.$ac_ext <<EOF
22654 #line 22655 "configure"
22655 #include "confdefs.h"
22658 #include <sys/types.h>
22661 #include <stdlib.h>
22664 char *c = (char *) *sys_errlist
22667 if { (eval echo configure:22668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22669 ol_cv_dcl_sys_errlist=yes
22670 ol_cv_have_sys_errlist=yes
22672 echo "configure: failed program was:" >&5
22673 cat conftest.$ac_ext >&5
22675 ol_cv_dcl_sys_errlist=no
22680 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22682 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22683 if test $ol_cv_dcl_sys_errlist = no ; then
22684 cat >> confdefs.h <<\EOF
22685 #define DECL_SYS_ERRLIST 1
22689 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22690 echo "configure:22691: checking existence of sys_errlist" >&5
22691 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22692 echo $ac_n "(cached) $ac_c" 1>&6
22695 cat > conftest.$ac_ext <<EOF
22696 #line 22697 "configure"
22697 #include "confdefs.h"
22700 char *c = (char *) *sys_errlist
22703 if { (eval echo configure:22704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22705 ol_cv_have_sys_errlist=yes
22707 echo "configure: failed program was:" >&5
22708 cat conftest.$ac_ext >&5
22710 ol_cv_have_sys_errlist=no
22715 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22717 if test $ol_cv_have_sys_errlist = yes ; then
22718 cat >> confdefs.h <<\EOF
22719 #define HAVE_SYS_ERRLIST 1
22726 if test "$ol_enable_slapi" != no ; then
22727 for ac_hdr in ltdl.h
22729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22731 echo "configure:22732: checking for $ac_hdr" >&5
22732 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22733 echo $ac_n "(cached) $ac_c" 1>&6
22735 cat > conftest.$ac_ext <<EOF
22736 #line 22737 "configure"
22737 #include "confdefs.h"
22740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22741 { (eval echo configure:22742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22743 if test -z "$ac_err"; then
22745 eval "ac_cv_header_$ac_safe=yes"
22748 echo "configure: failed program was:" >&5
22749 cat conftest.$ac_ext >&5
22751 eval "ac_cv_header_$ac_safe=no"
22755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22756 echo "$ac_t""yes" 1>&6
22757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22758 cat >> confdefs.h <<EOF
22759 #define $ac_tr_hdr 1
22763 echo "$ac_t""no" 1>&6
22768 if test $ac_cv_header_ltdl_h != yes ; then
22769 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
22771 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
22772 echo "configure:22773: checking for lt_dlinit in -lltdl" >&5
22773 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
22774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22775 echo $ac_n "(cached) $ac_c" 1>&6
22777 ac_save_LIBS="$LIBS"
22778 LIBS="-lltdl $LIBS"
22779 cat > conftest.$ac_ext <<EOF
22780 #line 22781 "configure"
22781 #include "confdefs.h"
22782 /* Override any gcc2 internal prototype to avoid an error. */
22783 /* We use char because int might match the return type of a gcc2
22784 builtin and then its argument prototype would still apply. */
22791 if { (eval echo configure:22792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22793 eval "ac_cv_lib_$ac_lib_var=yes"
22795 echo "configure: failed program was:" >&5
22796 cat conftest.$ac_ext >&5
22798 eval "ac_cv_lib_$ac_lib_var=no"
22801 LIBS="$ac_save_LIBS"
22804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22805 echo "$ac_t""yes" 1>&6
22808 LIBSLAPI=./libslapi.a
22809 LIBSLAPITOOLS=../libslapi.a
22810 cat >> confdefs.h <<\EOF
22811 #define HAVE_LIBLTDL 1
22816 echo "$ac_t""no" 1>&6
22817 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
22821 cat >> confdefs.h <<\EOF
22822 #define LDAP_SLAPI 1
22827 if test "$ol_enable_debug" != no ; then
22828 cat >> confdefs.h <<\EOF
22829 #define LDAP_DEBUG 1
22833 if test "$ol_enable_syslog" = yes ; then
22834 cat >> confdefs.h <<\EOF
22835 #define LDAP_SYSLOG 1
22839 if test "$ol_link_kbind" != no ; then
22840 cat >> confdefs.h <<\EOF
22841 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22845 if test "$ol_enable_proctitle" != no ; then
22846 cat >> confdefs.h <<\EOF
22847 #define LDAP_PROCTITLE 1
22851 if test "$ol_enable_referrals" != no ; then
22852 cat >> confdefs.h <<\EOF
22853 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22857 if test "$ol_enable_local" != no; then
22858 cat >> confdefs.h <<\EOF
22859 #define LDAP_PF_LOCAL 1
22863 if test "$ol_link_ipv6" != no; then
22864 cat >> confdefs.h <<\EOF
22865 #define LDAP_PF_INET6 1
22869 if test "$ol_enable_cleartext" != no ; then
22870 cat >> confdefs.h <<\EOF
22871 #define SLAPD_CLEARTEXT 1
22875 if test "$ol_enable_crypt" != no ; then
22876 cat >> confdefs.h <<\EOF
22877 #define SLAPD_CRYPT 1
22881 if test "$ol_link_kpasswd" != no ; then
22882 cat >> confdefs.h <<\EOF
22883 #define SLAPD_KPASSWD 1
22887 if test "$ol_link_spasswd" != no ; then
22888 cat >> confdefs.h <<\EOF
22889 #define SLAPD_SPASSWD 1
22893 if test "$ol_enable_multimaster" != no ; then
22894 cat >> confdefs.h <<\EOF
22895 #define SLAPD_MULTIMASTER 1
22899 if test "$ol_enable_phonetic" != no ; then
22900 cat >> confdefs.h <<\EOF
22901 #define SLAPD_PHONETIC 1
22905 if test "$ol_enable_rlookups" != no ; then
22906 cat >> confdefs.h <<\EOF
22907 #define SLAPD_RLOOKUPS 1
22911 if test "$ol_enable_aci" != no ; then
22912 cat >> confdefs.h <<\EOF
22913 #define SLAPD_ACI_ENABLED 1
22918 if test "$ol_link_modules" != no ; then
22919 cat >> confdefs.h <<\EOF
22920 #define SLAPD_MODULES 1
22924 SLAPD_MODULES_LDFLAGS="-dlopen self"
22927 if test "$ol_enable_bdb" != no ; then
22928 cat >> confdefs.h <<\EOF
22929 #define SLAPD_BDB 1
22934 if test "$ol_with_bdb_module" != static ; then
22935 cat >> confdefs.h <<\EOF
22936 #define SLAPD_BDB_DYNAMIC 1
22940 BUILD_BDB_DYNAMIC=shared
22941 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22943 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22947 if test "$ol_link_dnssrv" != no ; then
22948 cat >> confdefs.h <<\EOF
22949 #define SLAPD_DNSSRV 1
22954 if test "$ol_with_dnssrv_module" != static ; then
22955 cat >> confdefs.h <<\EOF
22956 #define SLAPD_DNSSRV_DYNAMIC 1
22960 BUILD_DNSSRV_DYNAMIC=shared
22961 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22963 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22967 if test "$ol_enable_ldap" != no ; then
22968 cat >> confdefs.h <<\EOF
22969 #define SLAPD_LDAP 1
22974 if test "$ol_with_ldap_module" != static ; then
22975 cat >> confdefs.h <<\EOF
22976 #define SLAPD_LDAP_DYNAMIC 1
22980 BUILD_LDAP_DYNAMIC=shared
22981 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22983 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22987 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22988 cat >> confdefs.h <<\EOF
22989 #define SLAPD_LDBM 1
22994 if test "$ol_with_ldbm_module" != static ; then
22995 cat >> confdefs.h <<\EOF
22996 #define SLAPD_LDBM_DYNAMIC 1
23000 BUILD_LDBM_DYNAMIC=shared
23001 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23003 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23007 if test "$ol_enable_meta" != no ; then
23008 if test "$ol_enable_ldap" = no ; then
23009 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23011 if test "$ol_enable_rewrite" = no ; then
23012 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23014 cat >> confdefs.h <<\EOF
23015 #define SLAPD_META 1
23022 if test "$ol_with_meta_module" != static ; then
23023 cat >> confdefs.h <<\EOF
23024 #define SLAPD_META_DYNAMIC 1
23028 BUILD_META_DYNAMIC=shared
23029 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23031 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23035 if test "$ol_enable_monitor" != no ; then
23036 cat >> confdefs.h <<\EOF
23037 #define SLAPD_MONITOR 1
23042 if test "$ol_with_monitor_module" != static ; then
23043 cat >> confdefs.h <<\EOF
23044 #define SLAPD_MONITOR_DYNAMIC 1
23048 BUILD_MONITOR_DYNAMIC=shared
23049 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23051 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23055 if test "$ol_enable_null" != no ; then
23056 cat >> confdefs.h <<\EOF
23057 #define SLAPD_NULL 1
23062 if test "$ol_with_null_module" != static ; then
23063 cat >> confdefs.h <<\EOF
23064 #define SLAPD_NULL_DYNAMIC 1
23068 BUILD_NULL_DYNAMIC=shared
23069 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23071 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23075 if test "$ol_enable_passwd" != no ; then
23076 cat >> confdefs.h <<\EOF
23077 #define SLAPD_PASSWD 1
23082 if test "$ol_with_passwd_module" != static ; then
23083 cat >> confdefs.h <<\EOF
23084 #define SLAPD_PASSWD_DYNAMIC 1
23088 BUILD_PASSWD_DYNAMIC=shared
23089 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23091 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23095 if test "$ol_link_perl" != no ; then
23096 cat >> confdefs.h <<\EOF
23097 #define SLAPD_PERL 1
23102 if test "$ol_with_perl_module" != static ; then
23103 cat >> confdefs.h <<\EOF
23104 #define SLAPD_PERL_DYNAMIC 1
23108 BUILD_PERL_DYNAMIC=shared
23109 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23111 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23115 if test "$ol_enable_shell" != no ; then
23116 if test "$ol_link_thread" != no ; then
23117 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23119 cat >> confdefs.h <<\EOF
23120 #define SLAPD_SHELL 1
23125 if test "$ol_with_shell_module" != static ; then
23126 cat >> confdefs.h <<\EOF
23127 #define SLAPD_SHELL_DYNAMIC 1
23131 BUILD_SHELL_DYNAMIC=shared
23132 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23134 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23138 if test "$ol_enable_tcl" != no ; then
23139 cat >> confdefs.h <<\EOF
23140 #define SLAPD_TCL 1
23145 if test "$ol_with_tcl_module" != static; then
23146 cat >> confdefs.h <<\EOF
23147 #define SLAPD_TCL_DYNAMIC 1
23151 BUILD_TCL_DYNAMIC=shared
23152 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
23154 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
23158 if test "$ol_link_sql" != no ; then
23159 cat >> confdefs.h <<\EOF
23160 #define SLAPD_SQL 1
23165 if test "$ol_with_sql_module" != static; then
23166 cat >> confdefs.h <<\EOF
23167 #define SLAPD_SQL_DYNAMIC 1
23171 BUILD_SQL_DYNAMIC=shared
23172 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23174 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23178 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23179 $BUILD_SLAPD = yes ; then
23183 if test "$ol_enable_rewrite" != no ; then
23184 cat >> confdefs.h <<\EOF
23185 #define ENABLE_REWRITE 1
23191 if test "$ol_enable_slapi" != no ; then
23192 cat >> confdefs.h <<\EOF
23193 #define ENABLE_SLAPI 1
23197 SLAPD_SLAPI_DEPEND=libslapi.a
23202 if test "$ac_cv_mingw32" = yes ; then
23204 SLAPD_MODULES_LDFLAGS=
23209 if test -z "$SLAPD_STATIC_BACKENDS"; then
23210 SLAPD_NO_STATIC='#'
23287 # Check whether --with-xxinstall or --without-xxinstall was given.
23288 if test "${with_xxinstall+set}" = set; then
23289 withval="$with_xxinstall"
23297 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23300 # Let make expand exec_prefix.
23301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23303 # Any assignment to VPATH causes Sun make to only execute
23304 # the first set of double-colon rules, so remove it if not needed.
23305 # If there is a colon in the path, we need to keep it.
23306 if test "x$srcdir" = x.; then
23307 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23310 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23312 DEFS=-DHAVE_CONFIG_H
23314 # Without the "./", some shells look in PATH for config.status.
23315 : ${CONFIG_STATUS=./config.status}
23317 echo creating $CONFIG_STATUS
23318 rm -f $CONFIG_STATUS
23319 cat > $CONFIG_STATUS <<EOF
23321 # Generated automatically by configure.
23322 # Run this file to recreate the current configuration.
23323 # This directory was configured as follows,
23324 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23326 # $0 $ac_configure_args
23328 # Compiler output produced by configure, useful for debugging
23329 # configure, is in ./config.log if it exists.
23331 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23334 case "\$ac_option" in
23335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23336 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23337 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23338 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23339 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23341 -help | --help | --hel | --he | --h)
23342 echo "\$ac_cs_usage"; exit 0 ;;
23343 *) echo "\$ac_cs_usage"; exit 1 ;;
23347 ac_given_srcdir=$srcdir
23348 ac_given_INSTALL="$INSTALL"
23350 trap 'rm -fr `echo "\
23351 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23352 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23353 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23354 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23355 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23356 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23357 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23358 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23359 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23360 include/Makefile:build/top.mk:include/Makefile.in \
23361 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23362 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23363 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23364 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23365 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23366 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23367 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23368 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23369 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23370 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23371 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23372 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23373 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23374 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23375 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23376 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23377 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23378 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23379 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23380 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23381 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23382 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23383 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23384 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23385 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23386 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23387 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23388 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23389 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23390 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23391 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23393 cat >> $CONFIG_STATUS <<EOF
23395 # Protect against being on the right side of a sed subst in config.status.
23396 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23397 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23401 s%@CFLAGS@%$CFLAGS%g
23402 s%@CPPFLAGS@%$CPPFLAGS%g
23403 s%@CXXFLAGS@%$CXXFLAGS%g
23404 s%@FFLAGS@%$FFLAGS%g
23406 s%@LDFLAGS@%$LDFLAGS%g
23408 s%@exec_prefix@%$exec_prefix%g
23409 s%@prefix@%$prefix%g
23410 s%@program_transform_name@%$program_transform_name%g
23411 s%@bindir@%$bindir%g
23412 s%@sbindir@%$sbindir%g
23413 s%@libexecdir@%$libexecdir%g
23414 s%@datadir@%$datadir%g
23415 s%@sysconfdir@%$sysconfdir%g
23416 s%@sharedstatedir@%$sharedstatedir%g
23417 s%@localstatedir@%$localstatedir%g
23418 s%@libdir@%$libdir%g
23419 s%@includedir@%$includedir%g
23420 s%@oldincludedir@%$oldincludedir%g
23421 s%@infodir@%$infodir%g
23422 s%@mandir@%$mandir%g
23424 s%@host_alias@%$host_alias%g
23425 s%@host_cpu@%$host_cpu%g
23426 s%@host_vendor@%$host_vendor%g
23427 s%@host_os@%$host_os%g
23428 s%@target@%$target%g
23429 s%@target_alias@%$target_alias%g
23430 s%@target_cpu@%$target_cpu%g
23431 s%@target_vendor@%$target_vendor%g
23432 s%@target_os@%$target_os%g
23434 s%@build_alias@%$build_alias%g
23435 s%@build_cpu@%$build_cpu%g
23436 s%@build_vendor@%$build_vendor%g
23437 s%@build_os@%$build_os%g
23438 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23439 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23440 s%@INSTALL_DATA@%$INSTALL_DATA%g
23441 s%@PACKAGE@%$PACKAGE%g
23442 s%@VERSION@%$VERSION%g
23443 s%@ACLOCAL@%$ACLOCAL%g
23444 s%@AUTOCONF@%$AUTOCONF%g
23445 s%@AUTOMAKE@%$AUTOMAKE%g
23446 s%@AUTOHEADER@%$AUTOHEADER%g
23447 s%@MAKEINFO@%$MAKEINFO%g
23448 s%@install_sh@%$install_sh%g
23451 s%@AMTARFLAGS@%$AMTARFLAGS%g
23452 s%@SET_MAKE@%$SET_MAKE%g
23453 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23454 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23455 s%@top_builddir@%$top_builddir%g
23456 s%@ldap_subdir@%$ldap_subdir%g
23460 s%@OBJEXT@%$OBJEXT%g
23461 s%@EXEEXT@%$EXEEXT%g
23463 s%@RANLIB@%$RANLIB%g
23465 s%@DLLTOOL@%$DLLTOOL%g
23467 s%@OBJDUMP@%$OBJDUMP%g
23469 s%@LIBTOOL@%$LIBTOOL%g
23471 s%@PERLBIN@%$PERLBIN%g
23472 s%@OL_MKDEP@%$OL_MKDEP%g
23473 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23474 s%@LTSTATIC@%$LTSTATIC%g
23475 s%@LIBOBJS@%$LIBOBJS%g
23476 s%@LIBSRCS@%$LIBSRCS%g
23478 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23479 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23480 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23481 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23482 s%@BUILD_BDB@%$BUILD_BDB%g
23483 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23484 s%@BUILD_LDAP@%$BUILD_LDAP%g
23485 s%@BUILD_LDBM@%$BUILD_LDBM%g
23486 s%@BUILD_META@%$BUILD_META%g
23487 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23488 s%@BUILD_NULL@%$BUILD_NULL%g
23489 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23490 s%@BUILD_PERL@%$BUILD_PERL%g
23491 s%@BUILD_SHELL@%$BUILD_SHELL%g
23492 s%@BUILD_SQL@%$BUILD_SQL%g
23493 s%@BUILD_TCL@%$BUILD_TCL%g
23494 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23495 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23496 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23497 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23498 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23499 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23500 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23501 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23502 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23503 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23504 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23505 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23506 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23507 s%@LDAP_LIBS@%$LDAP_LIBS%g
23508 s%@LDIF_LIBS@%$LDIF_LIBS%g
23509 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23510 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23511 s%@LDBM_LIBS@%$LDBM_LIBS%g
23512 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23513 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23514 s%@WRAP_LIBS@%$WRAP_LIBS%g
23515 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23516 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23517 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23518 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23519 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23520 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23521 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23522 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23523 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23524 s%@KRB4_LIBS@%$KRB4_LIBS%g
23525 s%@KRB5_LIBS@%$KRB5_LIBS%g
23526 s%@READLINE_LIBS@%$READLINE_LIBS%g
23527 s%@SASL_LIBS@%$SASL_LIBS%g
23528 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23529 s%@TLS_LIBS@%$TLS_LIBS%g
23530 s%@MODULES_LIBS@%$MODULES_LIBS%g
23531 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23532 s%@LIBSLAPI@%$LIBSLAPI%g
23533 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23534 s%@AUTH_LIBS@%$AUTH_LIBS%g
23535 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23536 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23537 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23538 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23543 cat >> $CONFIG_STATUS <<\EOF
23545 # Split the substitutions into bite-sized pieces for seds with
23546 # small command number limits, like on Digital OSF/1 and HP-UX.
23547 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23548 ac_file=1 # Number of current file.
23549 ac_beg=1 # First line for current file.
23550 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23553 while $ac_more_lines; do
23554 if test $ac_beg -gt 1; then
23555 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23557 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23559 if test ! -s conftest.s$ac_file; then
23560 ac_more_lines=false
23561 rm -f conftest.s$ac_file
23563 if test -z "$ac_sed_cmds"; then
23564 ac_sed_cmds="sed -f conftest.s$ac_file"
23566 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23568 ac_file=`expr $ac_file + 1`
23570 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23573 if test -z "$ac_sed_cmds"; then
23578 cat >> $CONFIG_STATUS <<EOF
23580 CONFIG_FILES=\${CONFIG_FILES-"\
23581 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23582 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23583 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23584 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23585 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23586 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23587 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23588 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23589 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23590 include/Makefile:build/top.mk:include/Makefile.in \
23591 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23592 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23593 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23594 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23595 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23596 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23597 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23598 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23599 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23600 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23601 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23602 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23603 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23604 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23605 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23606 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23607 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23608 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23609 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23610 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23611 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23612 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23613 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23614 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23615 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23616 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23617 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23618 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23619 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23620 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23623 cat >> $CONFIG_STATUS <<\EOF
23624 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23627 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23628 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23629 *) ac_file_in="${ac_file}.in" ;;
23632 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23634 # Remove last slash and all that follows it. Not all systems have dirname.
23635 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23636 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23637 # The file is in a subdirectory.
23638 test ! -d "$ac_dir" && mkdir "$ac_dir"
23639 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23640 # A "../" for each directory in $ac_dir_suffix.
23641 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23643 ac_dir_suffix= ac_dots=
23646 case "$ac_given_srcdir" in
23648 if test -z "$ac_dots"; then top_srcdir=.
23649 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23650 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23651 *) # Relative path.
23652 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23653 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23656 case "$ac_given_INSTALL" in
23657 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23658 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23661 echo creating "$ac_file"
23663 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23665 *[Mm]akefile*) ac_comsub="1i\\
23666 # $configure_input" ;;
23670 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23672 s%@configure_input@%$configure_input%g
23673 s%@srcdir@%$srcdir%g
23674 s%@top_srcdir@%$top_srcdir%g
23675 s%@INSTALL@%$INSTALL%g
23676 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23680 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23681 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23683 # ac_d sets the value in "#define NAME VALUE" lines.
23684 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23685 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23688 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23689 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23690 ac_uB='\([ ]\)%\1#\2define\3'
23693 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23694 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23695 ac_eB='$%\1#\2define\3'
23699 if test "${CONFIG_HEADERS+set}" != set; then
23701 cat >> $CONFIG_STATUS <<EOF
23702 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23704 cat >> $CONFIG_STATUS <<\EOF
23706 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23709 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23710 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23711 *) ac_file_in="${ac_file}.in" ;;
23714 echo creating $ac_file
23716 rm -f conftest.frag conftest.in conftest.out
23717 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23718 cat $ac_file_inputs > conftest.in
23722 # Transform confdefs.h into a sed script conftest.vals that substitutes
23723 # the proper values into config.h.in to produce config.h. And first:
23724 # Protect against being on the right side of a sed subst in config.status.
23725 # Protect against being in an unquoted here document in config.status.
23726 rm -f conftest.vals
23727 cat > conftest.hdr <<\EOF
23730 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23734 sed -n -f conftest.hdr confdefs.h > conftest.vals
23737 # This sed command replaces #undef with comments. This is necessary, for
23738 # example, in the case of _POSIX_SOURCE, which is predefined and required
23739 # on some systems where configure will not decide to define it.
23740 cat >> conftest.vals <<\EOF
23741 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23744 # Break up conftest.vals because some shells have a limit on
23745 # the size of here documents, and old seds have small limits too.
23747 rm -f conftest.tail
23750 ac_lines=`grep -c . conftest.vals`
23751 # grep -c gives empty output for an empty file on some AIX systems.
23752 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23753 # Write a limited-size here document to conftest.frag.
23754 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23755 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23757 sed -f conftest.frag conftest.in > conftest.out
23759 mv conftest.out conftest.in
23760 ' >> $CONFIG_STATUS
23761 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23762 rm -f conftest.vals
23763 mv conftest.tail conftest.vals
23765 rm -f conftest.vals
23767 cat >> $CONFIG_STATUS <<\EOF
23768 rm -f conftest.frag conftest.h
23769 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23770 cat conftest.in >> conftest.h
23772 if cmp -s $ac_file conftest.h 2>/dev/null; then
23773 echo "$ac_file is unchanged"
23776 # Remove last slash and all that follows it. Not all systems have dirname.
23777 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23778 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23779 # The file is in a subdirectory.
23780 test ! -d "$ac_dir" && mkdir "$ac_dir"
23783 mv conftest.h $ac_file
23788 cat >> $CONFIG_STATUS <<EOF
23791 cat >> $CONFIG_STATUS <<\EOF
23794 echo Please run \"make depend\" to build dependencies
23798 chmod +x $CONFIG_STATUS
23799 rm -fr confdefs* $ac_clean_files
23800 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1